Enable Ubuntu Desktop Environment On Windows 10

date: Jul 13, 2016

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.

Free Software Fundation Member

The site is proudly powered by Hexo hosted on GitHub Pages.

The site is powered by the glorious CSS from bettermotherf**kingwebsite.com with some tweaks. Censored the f-word for good.

Main | Access | CDN | RSS | Sitemap
2008 - 2020 | Patrick WU Jinming