How to Install WSL2 & Ubuntu Linux GUI (XFCE Desktop) on Windows 10
ฝัง
- เผยแพร่เมื่อ 5 ก.ย. 2024
- We go through How to Install WSL2 & Ubuntu Linux GUI (XFCE Desktop) on Windows 10. We first install WSL2 and make sure we have the latest update of Windows 10 before installing the container for Ubuntu Linux 20.04 and then we follow it up with installing a GUI (XFCE DE) for Ubuntu Linux 20.04. This then helps us use a GUI / Desktop with WSL2 & Ubuntu Linux 20.04
We'll use vcxsrv to connect to our desktop environment that we end up installing on Ubuntu using WSL2 and Windows 10. If you've every wanted to try Linux on Windows today we'll go through how. This is a system to use Linux designed by Microsoft and helps you leverage a subsystem of Windows in order to run Linux on your computer. This is a fairly new feature at least the second update (WSL2) and helps give better support for your Linux container.
IF you run into any issues trying to restart your xfce server running on Ubuntu use the following command: export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
There's a known bug that prevents you from running "startxfce4" over and over again because it seems like there's a locked file in the background.
My Linux Cheat Sheet and 25 Page Checklist here:
📚 learn.savvynik...
Share this free tool and support Small TH-camrs
editbulk.com
(I made this tool to help creators)
Useful Links/Commands:
Discord Link - / discord
Ubuntu Container - www.microsoft....
VcXsrv - sourceforge.ne...
WSL2 Win Kernel - docs.microsoft...
#linux #wsl2 #howto
You sir are a genious! I finally got to set up my remote session after misserably failing every attempt to connect through windows' default remote session set-up.
Thank you very much!
Glad I could help, make sure to smash that like button for me if you haven't already ^^
Thanks. Works ALMOST like a charm. If xfce4 display is still blank, use "sudo startxfce4". As a general rule, with Linux, if it fails, try with "sudo" before you start pulling out your hair.
haha thanks for sharing the exp
this comment save me.
thank u so much!!! you saved me after couple of hours of failing!!
it gives me
/usr/bin/startxfce4: X server already running on display 10.0.0.222:0
xrdb: Resource temporarily unavailable
xrdb: Can't open display '10.0.0.222:0'
any help
Hey dude, just wanna say thanks so much! It worked first try for me. Hope the comments asking questions aren't too repetitive :)
You're welcome!! Haha they can definitely get repetitive, but these are the types of comments that more than make up for it =) glad you found the video helpful.
Thanks for the tutorial. I couldn't find the article that gave these same instructions. But I did find your video and it is very easy to follow along with . Thanks !!!!!!!
You're welcome! There is no article it's my setup haha. Anyways I'm glad you found it helpful. Make sure to smash that like button for me =)
It has been reported that enabling the "Virtual Machine Platform" feature from Windows can cause issues with other Hypervisors including VMware and Virtual Box. Be aware and disable the feature if issues arise. A future Windows update might fix the issue, but as of now I haven't found a work-a-round.
Couple More Mentions : IF you run into any issues trying to restart your xfce server running on Ubuntu use the following command: export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
There's a known bug that prevents you from running "startxfce4" over and over again because it seems like there's a locked file in the background.
Also if you get Installation failed with error 0x80070003 or error 0x80370102 make sure to enable HyperVisor support (VT-x or AMDv) in your BIOs settings.
For more troubleshooting refer to - docs.microsoft.com/en-us/windows/wsl/install-win10
Also the Windows update mentioned to be installed before doing all of this has re-introduced the BSOD caused by tcp/ip service failing. I had to wait for M$ to give me an update almost a month after it first appeared to get this failure to stop. The mentioned update started it again and just like before BSOD occurs every 24 to 48 hours. I shut down ALL wireless and use only the RJ-45 connection, shut down Virtual Box (use it only when necessary), updated all drivers as before and yet the problem is back again. I have been around windows since 3.1 and for me the last stable version was XP. As for me everything since as been a nightmare with constant bugs. Some times I wonder if the RTM is really just the Beta Version dumped on unsuspecting consumers thus earning M$ the reputation of never buy any M$ product until AFTER Service Pack 1 for the M$ product. Personally I am fast approaching the point of full conversion to Linux and looking at Windows in my rear view mirror.
@@scgrigsby - Ouch that sounds like a nightmare and I'm with you all the way. The last good Windows that I enjoyed using was probably Win7 (I still use to this day). After that it has been a disaster using Windows... and I could believe they're pushing beta patches just because of other bugs that they think need to be addressed quickly and are foregoing the actual full debug process, but that's just speculation of course. I've had to move almost everything to Windows. Although some of the programs I use for work are just not available (and sadly probably never will be) on Linux. It'll be nice one day when I can make the full conversion, but for now, I'll mainly use Linux personally and have to bare with the issues that come.
This is still an issue, and this advice helped me. Thanks.
Thank you it worked. I had a little problem allowing WSL 2 instead of WSL 1 but i solved it on with wsl --set-version Ubuntu 2
Glad you found the vid helpful!
Thank You! So much I'm extremely thankful to you . Your guidance make it possible do this difficult task . I 've tried too much tries from different sources but I can't do it . But only due to your guidance it's make it possible. Thank You.
Glad it helped!
Ah yes, Lindows 10.
Good ol windows! Haha for the people who don't want to step away and like using the windows tools xD
SavvyNik And also for people who want to learn Linux but use Windows tools and don't want to mess around with WINE. I have no choice but to mess around with WINE until something works, as Windows has gotten worse and worse throughout the 2010's.
@@justsomerandompersononthei2595 Yeah the only thing it requires sometimes is patience :D
The tutorial is easy to follow. Thank you!
Awesome to hear! Glad you enjoyed it and make sure to smash that like button for me if you haven't already =)
For those who are facing black screen (X server already running on display X.X.X.X:0 ) after relaunch or reboot try this :
Go and open resolve.conf : nano /etc/resolv.conf
Note down the new port address it might have changed due to reboot.
open ~/.bashrc : nano ~/.bashrc and edit the port number
then run : source ~/.bashrc
and start the xfce again : startxfce4
launch your old Xlaunch config file. :)
Thanks for sharing this =)
You are a lifesaver...thanks a lot
By "Edit port number" do you mean change the :0 at the end to some other number? If so that is not working for me.
thanks for sharing. i struggle hard to get this from different website but with your video. it worked.
Awesome to hear!! Glad you found it helpful. Make sure to smash that like button for me if you haven't already =)
You're a superstart! Thanks. All good and done smoothly on my Windows Ubuntu
You're welcome! Glad you got things running smoothly.
It says after startxfce4 "/usr/bin/startxfce4: X server already running on display 172.31.240.1:0"
what might be the problem?
I have the same problem (but with another ip, 192.168.xx.x), did you fixed it?
@@jemoeder841 same problem , did you found solution for this problem ??
@omrani omaima, for me the fix was going to my firewall settings and allow Xserver on public networks. For a reason my computer sees my home network as a public one, so connections were blocked to Xserver. Hope this helps!
@@jemoeder841 thanks 😃 , it works
@@jemoeder841 yes, it worked like a charm. Thank you..
I did everything as explained in your video, however when I finally did "startxfce4", I got the following error:
"/usr/bin/startxfce4: X server already running on display 172.17.112.1:0". The mentioned ip address was the result of the command "cat /etc/resolv.conf" and that I included in the appended line of .bashrc as suggested.
Did you find a solution for that?
@@TilSkywalker No, I did not. I returned to WSL version 1 with Xming xserver, it allows me to run most linux graphical programs, better than in WSL 2. Plus, I am using VMWare Workstation Player to install and test many linux distros, installing all virtual machines into a dedicated ssd drive, internally installed for this specific purpose. I am quite satisfied with this solution.
I had over 2 hours of fighting with this one and finally, I found a fix from the depths of google. For me, it was the firewall that was blocking the whole connection. I allowed xlaunch to connect locally.
@@samihautamaki6229 Thank you
@@samihautamaki6229 how do you launch xlaunch locally
Wow, nice tutorial!! Thanks a lot, it worked for me perfectly!
Awesome! Glad I could help =)
I found out that now, WSLg is available... even for Win 10. I'm hearing that you need WSL2 first. Don't know if that's true. I have/had WSL2 with XFCE and Ubuntu. Issued wsl -update and went to WSLg. If I issue WSL -version, I see WSLg there. In WSLg, you don't need XFCE. Just issue your GUI startup applications right in the WSL/Ubuntu terminal. They now play great and includes audio.
This does not works when you need to see desktop - it only opens standalone app - with no evnironment - only app isself
this is the only way what have work for me!! THANKS MAN!
You're welcome!! Make sure to smash the like button for me if you haven't already!
Nick your tutorial is perfect, thank you. Perhaps it will be useful to know that in addition to the X server "VcXsrv" xfce also works well with GWSL, which is always based on VcXsrv.
Thanks for the info! Glad you enjoyed the tutorial.
The installation worked fine, but when I am leaving Ubuntu for about 15 minutes, everything just freezes and I have to restart
Apparently, preventing Ubuntu from going to sleep, will prevent this from happening
Linux側のデスクトップをメインにして使いたい。
UbuntuにWindowsアプリのアイコンを置いてLinux画面のままWindowsソフトが起動できたら最高だ。
Compizも使えると更に良い。
ゲームのためだけにメインPCよりもスペックの良いサブPCを購入するなんてナンセンスだから。
Thank you very much for the nice explanation!
You're welcome. Glad you enjoyed the video. Make sure to smash that like button for me on the vid if you haven't already =)
I don't have "lightdm", as beginner I'm not even sure how it's involved, but it does not pop up automatically if i install XFCE4
I had the same issue. It stayed at the terminal
/usr/bin/startxfce4: Starting X server
/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
I was gonna say hes a genious but i see I must say he is a freaking genious instead!
Haha well that’s kind
please help, mine says,
"/usr/bin/startxfce4: X server already running on display 192.168.10.1:0
xrdb: Connection refused
xrdb: Can't open display '192.168.10.1:0'
Unable to init server: Could not connect: Connection refused
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage."
I am also facing same problem
Excellent presentation.
Glad you liked it!
Excelente, me ayudo mucho tu tuto! :D
Very nice.. its working...Thank you
No problem, glad I could help! Make sure to smash that like button for me if you haven't already =)
thanks for your clear command guidance,can you say how to end xfce4
@Bhuvaneshwaran Ramamurthy
- You can use the logout button or in terminal xfce4-session-logout (xfce4-session-logout --halt
). That should log you out of the current xfce session. Otherwise, you can kill the processes for the x server (this isn't graceful).
Why install xfce and not the xubuntu package? That way you get the better Ubuntu xfce themeing?
gonna try this out 😍😍😍😍
Have fun =D
i was all day in totorials and your workkkkkkkssssssssssssssssss
Awesome to hear! Make sure to smash that like button for me if you haven't already =)
@@SavvyNik really a thank you from deep of the heart❤️❤️❤️it was simple clear easy and most of all it works +1 like +1 subscribe +1 ennible notifivation +1 save vedio +1 😂😂😂
Well that means a lot!! Thanks for supporting the channel I appreciate it. Super glad you got things working.
How fix it?(
/usr/bin/startxfce4: X server already running on display 192.168.0.1
xrdb: Can't open display '192.168.0.1'
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.
If try
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
then
/usr/bin/startxfce4: X server already running on display 192.168.0.1
192.168.0.1
fec0:0:0:ffff::1:0
xrdb: Connection refused
xrdb: Can't open display '192.168.0.1
192.168.0.1
fec0:0:0:ffff::1:0'
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.
Read my pinned comment it might help you.
@@SavvyNik I tried it, doesnt work(( Logs are up.
@@WarlikeLaux hope this should solve your problem
Go and open resolve.conf : nano /etc/resolv.conf
Note down the new port address it might have changed due to reboot.
open ~/.bashrc : nano ~/.bashrc and edit the port number
then run : source ~/.bashrc
and start the xfce again : startxfce4
launch your old Xlaunch config file. :)
Thanks for sharing. Worked perfectly fine. Can someone please explain what the additional parameter "-ac" for VcXsvr does?
I believe it disables access control because there's a bug with the type of access to the server otherwise. This allows the server to be accessed publicly on the local network and gets around some known issue. You can reference this github issue: github.com/microsoft/WSL/issues/4106
@@SavvyNik Thanks man. Really appreciate it.
@@imsangimchen2900 No problem, make sure to smash that like button for me on the video if you haven't already =)
@@SavvyNik consider it done :)
@@imsangimchen2900 Awesome ^^
thank you for sharing.
No problem Christian =)
when I type startxfce4 and push enter I get xrdb: Connection timed out
I have the same problem
I added C:/Program Files/VcXsrv/vcxsrv.exe to firewall exceptions and it started working.
@@fleatoncontour5213 thanks man
SN... Nice video... Bit I think you will find there is no sound... Any idea? How to get it working? Kali win-hex does all of this... But Ubuntu ... Can't get the sound, pulse Audio to work. A nice problem to solve, if you can.
Not something I've messed with. Never needed sound. I'm sure if you google it someone has tried. Kali win-hex makes things much easier.
@@SavvyNik I found a solution. I'll post the link if anyone is interested. Cheers.
@@jonathanmoore5619 Yeah you should post the link. You're not the first person to ask. Thanks!
@@SavvyNik th-cam.com/video/nKCe9UE-quA/w-d-xo.html
Here it is.... Ubuntu.
@@jonathanmoore5619 Thanks for sharing this!
Nice Video, how much storage space has the subsystem?
It grows until it can't grow anymore... haha it's whatever the system storage is.
default display manager pink screen doesn't come up after installing desktop
thanks, great video
Glad you liked it! You're welcome.
I appreciate for the tutorial :)
No problem!
wow! thank you!
Np
was getting connection refused with nameserver than manually checking ip of windows machine then putting it there solved it
Thank you so much, it works fine i've a question, how can i shut down from the xfce? For now i cntrl+c in the wls 2 shell but is there another way?
There is a command like xfce shutdown/quit but I don't remember it anymore. I'm sure if you do a little searching you'll find it.
I am following step by step and I was not prompted for the display manager. Anyone know how I get to the menu?
startxfce4: X server already running on display - and no window with display...
video is wrong, you should use local ip of your windows pc adapter, and not wsl ip adapter
startxfce4 tells me it's already running but the Linux desktop window remains all blank and black
What if the purple screen never pops up asking what I want to install???
This seems to not work anymore, the installation does not ask for a display manager and nothing shows up on VcXsrv.
goddamm . perfect tutorial. went all the way through. but the browser aint working though. unexpected error. i think i can bypass that by installing chrome or something. thanks buddy!
awesome, Thank you very much.
You are welcome! Glad you found the video helpful =)
How different is doing this compared to running Ubuntu in virtual box? Is this lighter?
Yes it can take less space if you’re worried about it
instead using virtual machine for run ubuntu , Is this method will reduce of consuming our resources ??? or both method will take similar resources
If you use the WSL2 method you'll probably be down to less resource usage since everything's built into Windows and you don't have to start another program to run and virtualize Linux over top of Windows.
The purple screen, Package configuration did not come up for me @ 10:13 in the video. I ran sudo apt install xfce4 on the ubuntu console and I got no errors. Im stuck here
Hi oscarc. I had a same issue. Did you solve it ? thanks.
@@lebanbo55 no sorry It did not workout for me. I kept searching online for other sources then gave up
But in another PC i'm getting error like this:
xrdb:connection timed out
xrdb:can't open display '172.24.128.1:0'
please solve this error?
Read the pinned comment.
this is really good video
Thanks
Brother plz make video to install ubuntu desktop on windows 10
Does this work using remote desktop connection? I am only seeing the black screen and in the power shell console it just says:
"/usr/bin/startxfce4: X server already running on display 172.-.-.-:0" and nothing else is happening.
Please guide me.
Thank you for the information.
However, I met a problem which the xfce's taskbar is always on the top of Windows. How can I change the setting to show the screen which is movable? Now I can see both the Windows taskbar at the bottom and the Ubuntu taskbar at the top at the same time.
Please sir I have tried every command in the powershell but I keep getting help list of commands
I got /usr/bin/startxfce4: Starting X server
/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
Hi have you managed to get the sound working in your xfce desktop - I see your volumeicon on the panel muted. Every video I have seen has this apart from youtuber Novaspirit Tech but I still have no success in getting audio to work following his instructions.
No, volume isn't something I was concerned about working with this setup.
hey savvyNik
thx for this viedo
and i got an error that the last step
when i start the xfce4
Ubuntu show the "X server already running on display xxx.xx.xxx.1:0""
And then window still keep black
how to fix this issue?
THX!! (BTW, i use WLS2)
Look at the pinned comment and see if that might help.
Nice!
What's the difference between this and the videos I saw connecting to the enviroment / server through Windows Remote Connection?
I am new to this, I mean which one works more smoothly
The newer WSL2 with GUI works better (look up gwsl).
@@SavvyNik tyvm for your fast reply, so gwsl is still not comparable to Oracle Virtual Box for example? I wanted to have a seemless way to get Linux up and running as an App within Windows 11, guess not possible yet?
How to Restart the X server? When I write "startxfce4" it shows "X server is already running on display...." but getting a black screen in X Server
well done
感謝你的教學~
Web browser is not working it gives an error
What does this mean? /usr/bin/startxfce4: X server already running on display 172.168.150.1:0
If there’s already an instance of the display running you get this error. It’s common with WSL that services don’t exit out properly do you windows restrictions. Look in the pinned comment for a fix. Others have mentioned they’ve had success by adding WSL or the instance to windows firewall.
Hi Savvy, just saw this video as one of my friends who still use Windows said he needed to use WSL but with a GUI. I've been using Mint as my default OS (i do have Win 10 but it's been a few months since I used it) and he said he liked that desktop env. I use the Cinnamon desktop for Mint.. so I was wondering if there is a way to install Cinnamon instead of XFCE...
I don't know how personally. I haven't tried anything else besides XFCE. WSL is still very underdeveloped I would personally suggest using a virtual machine instead for your friend.
@@jumarkow Awesome!! Thanks for the instructions. I'm sure it will help some others!
If you want a GUI XFCE desktop for RDP in Ubuntu 22.04 do the following:
sudo apt install dbus-x11
sudo apt install -y xrdp xfce4 xfce4-goodies
sudo /etc/init.d/xrdp start
sudo nano /etc/xrdp/xrdp.ini (change rdp port away from 3389 save file)
sudo /etc/init.d/xrdp restart
sudo /etc/init.d/xrdp start
echo "sudo /etc/init.d/xrdp start > /dev/null" >> ~/.bashrc (to auto run xrdp at start)
On the final step I get X server already running on display [my IP address]
try the first pinned comment fix
@@SavvyNik Thanks. The fix was to allow the app through windows firewall publicly. I didn't like this so managed to bypass the need for XFCE Desktop completely by installing and configuring xrdp and connecting via localhost Remote Desktop Connection. All the best!
Awesome to hear!! Glad you got things figured out.
Help, when i put in the start command, it says already running and nothing happens with xlaunch
I am getting cannot open display connection refused error.. what to do
Thanks, every things is OK but no sound.
Great. Not sure about the sound I don't typically use it.
the configuring lightdm 10:18 didn't show up for me
help the ubuntu says that its already started and the screen is still black
i do have ssd 128gb and hdd 1tb. I have win10 on ssd . I want to install wsl2 on hdd.Is there any chance to install on hdd. Can I install pycharm in ubuntu wsl2
I don't know of a way to specify a specific storage device of where WSL will belong to. It resides on the Windows platform for which you enable it on. You can run pycharm but WSL isn't really meant for this. I would suggest a virtual machine in virtual box with Ubuntu installed and then you can do both those things that you are asking about. Make sure to smash that like button for me.
-bash: export: `x.x.x.x:0': not a valid identifier at 11:58 ... any solutions ?
Thanks
You're welcome!
Any recommendation for audio?
I ran the command:
pulseaudio --start --> to active PulseAudio as it seemed it wasn't
However, I get no audio output. Help please!!!!
I'm fairly new to Linux and I wish to learn more - eventually moving to Kali to learn ethical hacking (it's all part of a journey that I am very well aware is neither short nor easy).
Sorry Jose, I don't know of a way to port audio through WSL (not saying that you can't), but it's not something I've tried since it's mainly meant for being able to issue linux commands in a terminal. The XFCE desktop is really just an extra for people. You might want to try a VM if your interested in getting sound and being able to host Linux on your computer (maybe virtual box).
@@SavvyNik Thank you for the reply. I am just wondering. I do have a cheap laptop loaded with Linux as the OS so I'll just keep with that one. :)
@@markojudas Yeah that's probably a great idea =D
thats wild
Thanks for your nice turotial. After "startxfce4". The VcXsrv Server - Display is still blank and I am getting follwing message:
/usr/bin/startxfce4: X server already running on display 172.22.0.1:0
xrdb: Connection timed out
xrdb: Can't open display '172.22.0.1:0'
Unable to init server: Could not connect: Connection refused
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.
Hi, even i face the same issue. Are you able to resolve it. If so please share the steps
@SavvyNik, please can you advise what needs to be done here
is it possible to improve the performance of the gui? i get some trails like there was lack of video memory allocated, better than remote desktop for sure but still far from native
Not really.. you could try it in a Virtual Machine if you wanted better performance, but then it's not integrated with your native windows env.
@@SavvyNik oh.. btw after setting up the xfce4 setup ect. The normal gui pop up doesn't work anymore, is there a way to have both? Launch the server to get the full desktop but also have the pop up gui? Thanks
Not that I'm aware of.
bro my not work cd and ls in win10
this is problem but how to fix it plz upload
Hi sir, I want to ask, I'm using a Tigger vnc, don't use a rich vnc in the video, is that possible ??
Not sure haven't used it
I've tried this many times. X server already running on display 172.27.176.1:0. I can't get past this.
Same here . Stuck
@@benniesmit8479
try setting it to:
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
export LIBGL_ALWAYS_INDIRECT=1
then run:
source ~/.bashrc
startxfce4
Instead of loading that gui at 10:13 it just returned me to the command line.?
That selects what display manager you want to use and then the packages installation should continue unless you've already installed the packages before. Eventually you do end up back in the command line interface.
@@SavvyNik I never got the gui menu that was depicted at 10:13. I did however get the xfce open.
@@ygrittesnow1701 Maybe you didn't have one already defaulted? Interesting, but glad you got XFCE working.
what I need to write if I need to install GNOME
I need help with lunching GNOME in the ubuntu app on wsl 2. Does anyone know to do this task?
Is it better to install Linux like this or in Virtual Machine, which one has a better performance?
It's probably better to do Virtual Machine if you want the total experience of Linux.WSL will mainly give you access to a terminal/command line interface through a linux subsystem. Which doesn't really give you the desktop experience. You can set one up like we do in the video but that isn't the best way.
for me, windows update its saying 21h2 what to do?
sudo apt-get install kubuntu-desktop is for kde envornment because kde makes me go *Y E S*
How did that work out?
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102
LxssManager
Error: 5
= =
Ouch.. seems like Windows has failed you lol
hello, i need help :C im get this after i open ubuntu 20.04 LTS :Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
Seems like you're missing a feature? Make sure you have WSL and Virtual Machine selected in your Windows features list. Other than that look up the specific error. You might also want to make sure you have VT-x / AMD-v (virtualization) enabled in your BIOs.
thank you for the reply ill make sure to check it out 🙏
@@urugari6357 no problem!
@@SavvyNik Hey SavvyNik, i am having another problem now its says
/usr/bin/startxfce4: X server already running on display :0
xrdb: Connection timed out
xrdb: Can't open display '192.168.128.1:0'
Unable to init server: Could not connect: Connection refused
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage. i used the following command that you have provided but it isn't working
@@urugari6357 hmm the pinned command didn't work for you? export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
Follow all steps. But could not get the black screen and later part done
Were you at least able to get the command line interface to work?
@@SavvyNik all the earlier steps. That is installing xfce4 then that graphics default. Also saving nano editor file. Only the last two things i.e. black screen and final step to get gui is not working.
@@suhailanjumabdurraheemsayy7639 did you make sure to put the -ac flag inside of vcxsrv?
@@SavvyNik yes sir. I put -ac as well.
@@SavvyNik finally done. I was typing start xfce4 instead of startxfce4 without space. Finally Done. Thanks a lot.
Hi, this is a really great video. However, could you please assist. I did all the steps and in the end after typing "startxfce4" it says /usr/bin/startxfce4: X server already running on display 172.18.208.1:0 and nothing happens after that,
One of the comments in the comments section said to make sure to add vcxsrv into your firewall settings.
For anyone facing issues:
1) Go to start and type "Allow an app through windows firewall"
2) Add VSXSRV application (C:\Program Files\VcXsrv\vcxsrv.exe)
Otherwise you can try the pinned comment.
You know what helped me? Using my local IPv4 address (mine was 192.168.0.11) instead of the using the nameserver address.
In Power Shell:
PS C:\Users\me> ipconfig
Ethernet adapter Ethernet 4:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 192.168.0.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
@@indepmo Thanks for sharing.
@@SavvyNik if only I could get pulse audio to work... This project has been looming for days.
@@indepmo yeah that's a mess lol wish you the best xD
How about LinuxLite5.2 OS in WSL?
It's not currently supported.
i get a segmentation fault error any help ?
in case sudo apt update fails : do-release-upgrade