Enable Ubuntu Desktop Environment On Windows 10

date: Jul 13, 2016
language: English 正體中文

Right now, using X server, CCSM, Compiz and other components with Bash On Ubuntu On Windows, You can now run Linux desktop environment from Windows desktop.

Coding In xface4

Retrieved from this post in BashOnWindows GitHub site.

For Unity

  1. Run following code on Bash On Windows:

    echo "export DISPLAY=:0.0" >> ~/.bashrc
    sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf
  2. Install VcXsrv and open XLaunch. Choose “One large window” with display number as 0 like this:

    Other settings leave as default and finish the configuration.

  3. Now open bash, install ubuntu-desktop, unity and ccsm:

    sudo apt-get install ubuntu-desktop unity compizconfig-settings-manager

    Export the display:

    export DISPLAY=localhost:0

    and open ccsm.

  4. Inside ccsm mouse pointer may be not visible due to icon not loaded. Enable the following plugins.

  5. Now close ccsm and open compiz.

    Compiz will load and seconds later unity will show up.

  6. To exit from unity close bash or kill compiz, the only way of closing unity.


  1. The same configuration for VcXsrv applies here.

  2. Install xfce4-session:

    sudo apt-get install xfce4-session

    and run xfce4-session.


Creative Commons License

Unless specified, all the articles are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

It uses a self-hosted Open Web Analytics to get insights. Click here to optout.

The site is powered by Hexo. The source code of this website is here, so that you can see the spaghetti code behind my blog.

Main | Blog | Comic | Podcasts (Preparing) | RSS | Sitemap
2008 - 2022 | Patrick WU Jinming