The tutorial will tell you how to run desktop environment inside Windows Subsystem for Linux. And you don't need to build a developement environment with virtual machines any more. :)
Your PC must be running a 64-bit version of Windows 10 Anniversary Update build 14393 or later.
To find your PC's CPU architecture and Windows version/build number, open Settings>System>About. Look for the OS Build and System Type fields.
In order to run Bash on Windows, you will need to manually:
After you have accepted the License, the Ubuntu user-mode image will be downloaded and a “Bash on Ubuntu on Windows” shortcut will be added to your start menu.
Install the lastest version of VcXsrv.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xfce4-terminal
sudo apt-get install xfce4
Add DISPLAY=:0.0 to your ~/.bashrc
, and don't forget to run source ~/.bashrc
. :)
export DISPLAY=:0.0
export LIBGL_ALWAYS_INDIRECT=1
You need to replace
<listen>unix:tmpdir=/tmp</listen>
with
<listen>tcp:host=localhost,port=0</listen>
in /etc/dbus-1/session.conf.
You need to replace
<auth>EXTERNAL</auth>
with
<auth>ANONYMOUS</auth>
<allow_anonymous/>
in /etc/dbus-1/session.conf.
Open XLaunch, choose “One large window” or “One large window without titlebar” and set the “display number” to 0. Other settings leave as default and finish the configuration.
Execute the following command inside “Bash on Ubuntu on Windows”.
startxfce4
Install the lastest version of Hack fonts.
sudo apt-get install fonts-noto
sudo apt-get install fonts-noto-hinted
sudo apt-get install fonts-noto-mono
sudo apt-get install fonts-noto-unhinted
sudo apt-get install fonts-noto-cjk
Add the following shell code to your bashrc
if grep -q Microsoft /proc/version; then
if [ "$(umask)" == '0000' ]; then
umask 0022
fi
fi
sudo apt-get install fcitx
sudo apt-get install fcitx-pinyin
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
sudo apt-get install guake
Please enjoy your development environment. :)