Enable Ubuntu Desktop Environment On Windows 10

---
date: Jul 13, 2016
tags:
-
---

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:

    1
    2
    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:

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

    Export the display:

    1
    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.

For XFCE

  1. The same configuration for VcXsrv applies here.

  2. Install xfce4-session:

    1
    sudo apt-get install xfce4-session

    and run xfce4-session.

Navigation


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

The site is powered by Hexo hosted on GitHub Pages.
It uses a self-hosted Open Web Analytics to get insights. Click here to optout.
It is using the glorious CSS from bettermotherf**kingwebsite.com with some tweaks. Censored the f-word for good.

The source code of this website is hosted at here, so that you can see the spaghetti code behind my blog.

Main | RSS | Sitemap
2008 - 2022 | Patrick WU Jinming