XMING + Bash on Ubuntu on Windows = X11 Window System Running from Windows 10 Subsystem for Linux

Download this episode

Download Video

Description

XMING + Bash on Ubuntu on Windows = X11 Window System Running from Windows10 Subsystem for Linux

Demonstrating Bash on Ubuntu on Windows with various X11 and GTK applications using XMING for hosting graphical applications running in the Windows 10 Subsystem for Linux.

Tags:

Linux, Windows 10

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      bipinsubedi
    • User profile image
      toolboc

      @bipinsubedi: Sweet!  I had a feeling it was possible!  It looks like xcowsay can only handle a max of 2 words as arguments or throws an error when ran from the Linux subsystem... Either way, GTK + X11 apps work!  Love, love, love Bash on Ubuntu on Windows! 

    • User profile image
      mobluse

      I saw that you expected the completion to works as normally in Bash. This can be fixed: github.com/Microsoft/BashOnWindows/issues/73

    • User profile image
      David_Burela

      for an easier way to install xming, you can do it via chocolatey

      https://chocolatey.org/packages/Xming

       

    • User profile image
      JL5

      I hope that MS brings in official support for X Windows apps, like Apple does...

      Lots of great apps can be "ported" to Windows at the click of a button. One day we could have a tool wrapping up a deb file in an exe installer. I'm sure NSIS could do this with some modifications, as it already supports shell scripts.

    • User profile image
      Abbyjeet

      @toolboc:Can we upgrade the underlying Ubuntu system from version 14.04 to 16.04 using dist-upgrade? I tried and it failed for me. Theoretically, I believe we should be able to do it.

    • User profile image
      EricThe​Astronomer

      Thank you! I couldn't figure out what I was doing wrong with GUIs until I saw you included localhost in the display variable. Awesome. Now I can actually work with the subsystem!

    • User profile image
      toolboc

      @EricTheAstronomer: it is my understanding that the usage of 'localhost' enforces a TCP/IP connection instead of default sockets.  This appears to be a necessity at this time.  I was literally 'bashing' my head for a good half hour or so trying things, and to my surprise xeyes appeared to my delight once I specified localhost ;)

    • User profile image
      tertra

      what about rsync and cronjobs, that would be interesting

    • User profile image
      pajocomo

      Has anyone been able to make xconsole work?

    • User profile image
      Vasco

      DISPLAY=:0.0 won't work over SSH, but DISPLAY=localhost:0.0 will do it.
      Kudos @pjdecarlo

    • User profile image
      vncorecao

      how to run kdesvn?

    • User profile image
      Memory Leak

      Serously, you don"t need to run ubuntu on windows to get xwindows working om Windows. I use to run cygwin version of xfree86 back in windows 2000 days to connect to Solaris server at university over ssh. I am quite sure it is still avialable. Beside I don't understand excitenment of runing Ubuntu on Windows. How more resiurce waistfull beside runing in wm can it get? Most of Linux apps are already ported to Windows anyway, and those few that are not can be probably run in either cygwin environment or msys/mingw flavor.

    • User profile image
      Nad

      There will be no 32bit support as of yet (or at all)

    • User profile image
      whalake

      Well I got all this to work 3xThumbs Up and then I tried....

      Adding

      "export DISPLAY=localhost:0.0" to

      >sudo nano ~/.bashrc

       

      now life is like a box of chock-lets! 

      Please can I have some more---------      ;)

      4 Massive thumbs UUUUUPPPPP!!!!!

       

    • User profile image
      MBU

      WOW, just posting this from a firefox instance running on ubuntu for Windows 10 with the xming server. No sweat at all, just setup xming, export display (with localhost), apt-get firefox, done!

    • User profile image
      akelux

      Cool thing :)

    • User profile image
      jmg

      adding export DISPLAY=localhost:0.0 totally didn't work....any other suggestions?

    • User profile image
      Shayne O

      Ok , running XBill on windows 10 under Ubuntu is very very amusing.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.