Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Integrate Linux into Windows #2537

Closed
zjjpp opened this issue Oct 3, 2017 · 12 comments
Closed

How to Integrate Linux into Windows #2537

zjjpp opened this issue Oct 3, 2017 · 12 comments
Labels

Comments

@zjjpp
Copy link

@zjjpp zjjpp commented Oct 3, 2017

Using the latest version of Ubuntu from the Windows Store, you can easily integrate Linux into Windows.
First, install VcXsrv or XMing. Set it to separate windows and run export DISPLAY=localhost:0, then follow these directions.
In a fresh install, simply type sudo apt update && sudo apt install xfce4 and when it is installed, run xfce4-session. Instead of taking up the entire screen with the desktop, it becomes transparent and gives you the dock and the top bar. Right-click the top panel and set it to autohide, or it will interfere with maximized windows. That is pretty much all, and you can run all the linux programs you want.
There may be lag at first, but it will go away.
(tested with XMing)
If you want to make it auto-start on login, make a batch file with the following commands and use task scheduler to make it auto run:
@echo off
start "XMING" "C:\Program Files (x86)\Xming\Xming.exe" :0 -clipboard -multiwindow
start "WSL" wsl xfce4-session --display localhost:0

@iz0eyj

This comment has been minimized.

Copy link

@iz0eyj iz0eyj commented Oct 4, 2017

I use the mixed desktop from a very long time and I think it represents the real power of WSL.
snip_20171004144149

@spences10

This comment has been minimized.

Copy link

@spences10 spences10 commented Oct 6, 2017

Wait, so what @iz0eyj has pictured is a Windows window with Linux running in it?

@iz0eyj

This comment has been minimized.

Copy link

@iz0eyj iz0eyj commented Oct 9, 2017

@spences10
I'm late, sorry.
This is the normal W10 Desktop integrated with xfce4 (menù on the right, now opened) running on WSL
as described by @zjjpp
The browser is the Linux version of Vivaldi.

I prefer VcXsrv

@spences10

This comment has been minimized.

Copy link

@spences10 spences10 commented Oct 9, 2017

This yes?

image

Is there documentation for this? So I can educate myself

I use Vivaldi too

Thanks

@iz0eyj

This comment has been minimized.

Copy link

@iz0eyj iz0eyj commented Oct 10, 2017

Yes, this.
No doc because at the moment microsoft don't supports GUI software on WSL, but it is simple.
You can begin installing VcXsrv on Windows (free software), then follow the post of @zjjpp to get a first running environment.
To run Vivaldi (and Chrome) you can follow the Chrome-on-WSL-guru @therealkenc

@iz0eyj

This comment has been minimized.

Copy link

@iz0eyj iz0eyj commented Oct 11, 2017

@spences10 @therealkenc @zjjpp
Vivaldi's HTML5 score.
WSL version is the foreground window.
Please @benhillis ... a bit of work on audio support and dbus :)

snip_20171011105537

@PhMajerus

This comment has been minimized.

Copy link

@PhMajerus PhMajerus commented Oct 23, 2017

@spences10
I have an incomplete document I started writing about this if you want.
It doesn't have everything I wanted and isn't updated for the Fall Creators Update yet, but will give you all the information about how WSL works and how to get GUI apps running:
https://docs.com/majerus/8108/windows-nt-lxss

@spences10

This comment has been minimized.

Copy link

@spences10 spences10 commented Oct 23, 2017

Wow, ok, thanks @PhMajerus 👍

@WSLUser

This comment has been minimized.

Copy link

@WSLUser WSLUser commented Oct 23, 2017

@PhMajerus Great guide! I know you haven't updated for FCU yet but do you have anything for dbus support? Also, like so many others, I'm a fan of the Plasma Desktop and would prefer to utilize that if possible, I've tried playing around with it before with CU and AU but I've never managed to get the desktop environment to display properly. Also FCU specific, I had to uninstall, reinstall my Ubuntu instance utilizing the Windows Store and now my workarounds to upgrade from LTS no longer work (modifying the conf file to switch from lts has no joy now it seems). If there's a new workaround to allow updates to the developmental release that you know of or know somebody who has one, I would greatly appreciate seeing it in your guide. I usually beta test new OS builds in my spare time and not having the latest Ubuntu build (17.10 as of now) is very frustrating. Lastly, now that we have OpenSuse available, getting the OpenSuse commands to do everything you've listed in your guide available so we can recreate the same experience using that distro would be great. I've never worked with that distro before so having some starting point for configuring it would help immensely. So far I've only managed to figure out the zypper commands (so weird compared to Get commands for Powershell and APT.)

@styfle

This comment has been minimized.

Copy link

@styfle styfle commented Oct 23, 2017

@PhMajerus That document is going to get deleted soon when docs.com is decomissioned. You should move it to a GitHub README.md or simply a gist.

@PhMajerus

This comment has been minimized.

Copy link

@PhMajerus PhMajerus commented Oct 24, 2017

@styfle I know, I have a local copy for when docs.com goes offline.
I just haven't decided yet if it will be on GitHub, OneDrive, or personal blog... I'll probably keep writing in Word because it's faster and export as PDF though.

@benhillis

This comment has been minimized.

Copy link
Member

@benhillis benhillis commented May 24, 2018

Thanks for the discussion.

@benhillis benhillis closed this May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.