Dual Language Article. To change the language, select in TOC at the left.
双语文章。若要修改语言,选择左侧的目录进行切换。

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:

    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.

中文

从BashOnWindows GitHub网站上的文章 进行整理和翻译。

现在,只要你利用X server, CCSM, Compiz和其他组件,与Bash On Ubuntu On Windows相互配合,你现在可以在Windows 10上直接运行Linux桌面环境.

除非你是Linux发烧友,不建议使用此Linux桌面环境。

Unity桌面环境:

  1. 在 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. 安装VcXsrv并打开XLaunch。 选择 “One large window” 并在display number 输入0,如图:


    一路next下去就行,直到他完成配置

  3. 打开Bash On Windows并安装 ubuntu-desktopunityccsm

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

    输出显示:

    1
    export DISPLAY=localhost:0

    并打开ccsm

  4. ccsm中可能显示不出鼠标指针,因为没有加载玩所有内容。如图选择插件。


  5. 现在关闭ccsm并打开 compiz.

    Compiz会花些时间载入,稍稍等待下桌面环境就会出现

  6. 关闭桌面环境的方法只能是关闭bash窗口,或者杀Compiz进程。

XFCE桌面环境:

  1. 使用与Unity同样的方法配置VcXsrv。(1-4步)

  2. 安装xfce4-session

    1
    sudo apt-get install xfce4-session

    并运行xfce4-session.