Mad prof strikes again GUI on UBUNTU in Windows (WSL) !!! Solved

  1. jimbo45's Avatar
    Posts : 6,378
    Windows / Linux : Centos, Ubuntu, OpenSuse
       24 Apr 2018 #1

    Mad prof strikes again GUI on UBUNTU in Windows (WSL) !!!


    Hi folks

    I've been interested in the idea of a GUI on the Ubuntu system in Windows - for those that have enabled Linux subsystem on Windows.

    As delivered it's a limited cmd line still OK but wouldn't it be nice to have a GUI in it.

    This program essentially does a reasonably good job -- vcxsrv

    VcXsrv Windows X Server download | SourceForge.net

    install (on Windows) , start it (it's called Xlaunch on your Windows desktop) and then start the Ubuntu subsystem

    do apt-get update

    install say a graphical editor e.g Nautilus -- you might have to run the apt update again to get all the repositories -- then it will load a load of modules and away you go.

    You still have to start the application though from the command line.

    Ensure before you call the program that you have enabled the Xserver on the WSL.
    As root you have to do the following cmd

    export DISPLAY=:0

    Now run the program you want e.g Nautilus ( A Ubuntu graphical file manager) - ignore a load of error / warning messages on the console

    You should see a window like this

    Click image for larger version. 

Name:	ubuntu.png 
Views:	2 
Size:	548.4 KB 
ID:	185908

    again for grsync (graphical front end for rsync)

    Click image for larger version. 

Name:	ubuntu1.png 
Views:	0 
Size:	1,020.0 KB 
ID:	185909

    Have fun folks !!! Don't forget to connect the display with the export command shown above before trying to get to the application.

    "The Nordic Mad Prof strikes again" !!!!

    Ensure you have plenty of HDD space if you are installing a load of stuff though.
    Not all GUI programs will work but a decent amount do. Worth a go.

    I've marked the post as solved as this gives a reasonable amount of GUI programs that work on WSL.

    Cheers
    jimbo
      My ComputerSystem Spec

  2. slicendice's Avatar
    Posts : 3,806
    Windows 10 Pro x64 v1809 Build 17763.288 (Branch: RS5 Release Preview)
       24 Apr 2018 #2

    Yep, that is exactly how to do it.

    Thanks for bringing a good reference guide here to TF.
      My ComputersSystem Spec

  3. jimbo45's Avatar
    Posts : 6,378
    Windows / Linux : Centos, Ubuntu, OpenSuse
    Thread Starter
       24 Apr 2018 #3

    slicendice said: View Post
    Yep, that is exactly how to do it.

    Thanks for bringing a good reference guide here to TF.
    Hi there

    @slicendice

    Thanks for Rep

    I was actually just messing about with this as I've got a bit of spare time today (probably too much).
    I'm working now to see if I can get a full desktop - I'd prefer KDE but I think I probably could get the Ubuntu standard unity desktop

    Problem also is I've only got one window -- I'm not sure if I have to start multiple instances of the Linux subsystem to get multiple windows open.

    Still it's fun playing with this -- you need a decent machine though as installing the ubuntu-desktop, unity and kubuntu-desktop take a longish time (not minutes as on a Native system !!).

    Cheers
    jimbo
      My ComputerSystem Spec

  4. slicendice's Avatar
    Posts : 3,806
    Windows 10 Pro x64 v1809 Build 17763.288 (Branch: RS5 Release Preview)
       24 Apr 2018 #4

    Try this to detach the GUI app from your Bash:
    Code:
    grsync &
      My ComputersSystem Spec

  5. jimbo45's Avatar
    Posts : 6,378
    Windows / Linux : Centos, Ubuntu, OpenSuse
    Thread Starter
       24 Apr 2018 #5

    slicendice said: View Post
    Try this to detach the GUI app from your Bash:
    Code:
    grsync &
    Hi there
    @slicendice

    amazing what a glass of scotch / few beers can do !!!!

    yours was a good idea works fine good idea -

    BTW uninstall these - if they get installed because that causes all sorts of errors stopping further software being installed.

    sudo apt-get purge -f unity-scope-gdrive account-plugin-google account-plugin-facebook

    Not sure how this got included but it's there -- then an apt install -f should fix the libraries again.


    Now for a desktop GUI

    Install these

    apt-get install compiz-core
    apt-get install compizconfig-settings-manager


    After all these programs are installed, run ccsm from Bash. From the ccsm interface, you'll need to enable the following Compiz plugins:

    General:
    Commands
    Composite
    Copy to texture
    OpenGL

    Desktop:
    Ubuntu Unity Plugin

    Image Loading:
    PNG

    Utility:
    Compiz Library Toolbox
    Windows Management
    Move Window
    Place Windows
    Resize Window
    Scale
    Snapping Windows

    Now try running compiz

    it might give you a black screen - just ctrl-alt-del into task manager and kill Ubuntu.

    Nearly there though -- I'm sure I'll get a desktop GUI working soon though


    kippis /skal !!!

    jimbo
      My ComputerSystem Spec

  6. slicendice's Avatar
    Posts : 3,806
    Windows 10 Pro x64 v1809 Build 17763.288 (Branch: RS5 Release Preview)
       24 Apr 2018 #6

    You're getting close. Glad I could help. :)

    Kippis!
      My ComputersSystem Spec


 

Related Threads
Read more: Electron critical vulnerability strikes app developers | ZDNet
Hello, hope someone can help. I am trying to remove ubuntu from the EFI file. I assigned the EFI file with the letter Z and have managed to list the directory. When I use the command PS Z:\EFI> rmdir /s ubuntu (to remove ubuntu from the...
Hi all. I've noticed my computer is saving any photos I happen to download off the web or my camera and storing to a hard drive folder without my permission. Is there any way of stopping this happening in future, and deleting what is already in...
Dear ​the laptop: Acer travelmate 4672WLMi MFG.DATE: 0608 Travelmate 4670 series Model NO.: ZB1 ​ original OS
Upgrading from Windows 7 Prof. in Windows Updates and Activation
Hello All: I am running Windows 7 Prof. x64 OEM on my HP Elitebook notebook. Do I upgrade to Windows 10 using the integrated upgrade tool (2GB) or do I download the upgrade from Techbench which is 3GB. What is the difference between the 2....
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 10:03.
Find Us