Responce said: xfce4 is already the newest version (4.16). xfce4-goodies is already the newest version (4.14.0). xrdp is already the newest version (0.9.12-1.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hi, the RDP localhost:3390 didn't work. localhost:3398 did opened the server page but login didn't work (username & password was correct though) could you please comment on this? many thanks mate!
WARNING for anyone just watching this. ALOT of people are having trouble with this method. And although there are usually ways to resolve them, the questions aren’t being answered in the comments. Not to hate on this guy this is a great guide just doesn’t include any troubleshooting details.. ! if your reading this please like it so it’s seen by more people! I almost got it but I’m the remote when the gui login comes up, soon as I log in everything crashes. And I have yet to find a solution.
If you have trouble connecting via remote desktop, the article in the comments has a typo which does not update the port correctly: Try the command: sudo sed -i 's/3398/3390/g' /etc/xrdp/xrdp.ini At 5:04, the video has an error trying to replace 3389 (not 3398) with 3390. Try the provided command in this comment and rerun the start command:
how do i know which port to connect to the server it did start and give me this massge * Starting slim slim [ OK ] but when i connect on the remote desktop it does not work
I'd take one of those stretched out videos, because I clearly missed something somewhere along the way. I posted my question about it under TroubleChoot's pinned comment.
everything works fine except that after login in the remote connection, the screen is blank. just black screen with the blue bar above for closing, minimize, and pin and localhost name
This works for Windows 10, but will you release an update for Windows 11? There seems to be a conflict between xrdp and the window manager built into wslg.
excellent video, however when i got stuck , i went to your website where instructions there were easy to follow which made it easier to follow the steps. thanks for the upload.
in remote desktop i get this error [Window Title] Remote Desktop Connection [Content] Remote Desktop can't connect to the remote computer for one of these reasons: 1) Remote access to the server is not enabled 2) The remote computer is turned off 3) The remote computer is not available on the network Make sure the remote computer is turned on and connected to the network, and that remote access is enabled. [^] Hide details [OK] [Expanded Information] Error code: 0x204 Extended error code: 0x0 Timestamp (UTC): 09/24/23 02:37:46 PM Press Ctrl+C to copy.
I funally got around to trying this today (Jan 30 2024, yes I know I'm really late on this) and every time I go to log into Ubuntu in the remote window, a couple seconds after I hit enter the window just closes. So if anyone sees this and has some sugestions, I'd really appreciate the input.
So i tried to do this in windows 11. Didn't get a GUI for one when initally setting up ubuntu from the microsoft store at all however i followed all of your steps. BUT i can sudo snap install anything at all as it can't comunicate with anything? Would i have done anything wrong?
I did all the procedure, and when I go to connect to the remote area, the environment does not appear, the screen is all blue, in this part 6:15. Can you help me?
hi! What a great video, thank you!!! Except, after logging on to xfce4, im greeted with a blank blue window and the desktop never actually comes to life... any idea where to look?
I was able to do it and open the terminal. it brought a small window inside saying, connecting to sesman ip 127..... port 3350, then sending info to session manager, pls wait and login fails... question. the username and pwd are the same (unix) as when setting up ubuntu at install, correct? thanks
thanks for the tutorial 🙏 I run onto a problem tho. When you open the Ubuntu you have the whole GUI from the ubuntu. Mine always starts in CLI... any idea ? 😅😅
I followed the instructions to the letter, however when I get Windows RD to login, I get the xrdp screen to enter my creds. Enter username & password. Then it just crashes out. Am I doing something wrong? Windows 11 Pro 23H2 WSL2 - Connecting to Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy Installing xfce4 as per the guide and still no closer to solving this issue or having a gui in WSL winthin Windows 11 Pro 23H2.
i've got a problem when trying to connect to the remote desktop via the remote desktop connection app. In the video he says you have to type in "localhost:3390", but the remote desktop app says that ":" is an invalid character and i can't use it, what should i do?
I was to ask a question, on the desktop gui installation is there a certain command for Cinnamon desktop environment? I installed every other package tho I could
When I run the set of 4 commands the following message is displayed: echo xfce4-session > ~/.xsessioncp: cannot stat '/etc/xrdp/xrdp.ini': No such file or directory This not allowing me to continue the setup. Any sort of help is appreciated. Thanks.
tried to install ubuntu from the microsoft store but i didnt get the installer set up shown in the video. it just set up my account in a terminal window
Thanks for this really helpful. I have one question though. On my windows 10 pro installation. When I try to remote connect, I'm not able to login using my Ubuntu login credentials. Any advice would be greatly appreciated. Thanks once again.
Everything works for me, but remote desktop won't connect to localhost:3390. It tries for a while & then gives a generic error message (can not connect for one of the following reasons...). What could be the problem?
I have done everything but when i try to get onto localhost:3390 via RDP it doesnt let me says give you that error message with the 3 reason why it didnt work
localhost:3390 from rdp, gives me an error with optoins 1) this account is not permitted in the list of gateway, 2) remote pc written in NetBios format
Did you previously set a gateway in RDP for something else? Try to telnet into localhost 3390. If you get a blank screen returned then it's running. In RDP make sure no gateway is selected on the advanced tab.
hello @TroubleChute, i have an issue, after entering my username and password there's a black screen, can you give me some hints on how to fix this ? and thanks for your work really appreciated
Thanks for the video! After finishing the installation I found that the RDP connection closes right after the login screen. The error reported in ~/.xorgxrdp.10.log file was: systemd-logind: failed to take device /dev/dri/card0: Operation not permitted The solution for me was to create additional user and use it for RDP connection.
@@ccooksey1215 `sudo adduser somenewusername` , set pass, then when logging in to xrdp just use that new user. looks like it doesn't like the fact that you're logging in as sudo... :)
i was able to run all commands with no errors but with 2 differences: 1. when i installed Ubuntu from the store (made sure its the same as in the video) i wasn't presented with a GUI but a text based one. 2. i did not run into any DNS server issues. after the last step i got the: * Starting Remote Desktop Protocol server [ OK ] but when I use the same windows 10 pc to RDC into: localhost:3390 after a long Initiating a connection i get a 3 error cant connect. remote access not enabled/remote computer is turned off/not available on the network. last 2 seem inapplicable. the 1st one i got a confirmation that it was started, so.. any ideas?
You can always export your X sessions. Have a X server running natively on Windows and your windows will be native to Windows. You could've always done this since UNIX days
how is this different from just virtual machine? Is it just that as you add desktop env to WSL2, it just diminishes the benefits of using WSL2 in the first place and that WSL2 is more intended for just cmd line interface and operation?
I have followed those very steps but whenever I launch ubuntu, it opens cmd. I can't access the complete system like the desktops and stuff. Please help
** Install xrdp as well! Use the following command:
sudo apt install -y xrdp xfce4 xfce4-goodies
I have :-) so what is xrdp
Responce said: xfce4 is already the newest version (4.16).
xfce4-goodies is already the newest version (4.14.0).
xrdp is already the newest version (0.9.12-1.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
@@AreTwo2 Remote Desktop Prototop Server
Hi, the RDP localhost:3390 didn't work. localhost:3398 did opened the server page but login didn't work (username & password was correct though) could you please comment on this? many thanks mate!
@@Isaacmats1 need to
WARNING for anyone just watching this. ALOT of people are having trouble with this method. And although there are usually ways to resolve them, the questions aren’t being answered in the comments. Not to hate on this guy this is a great guide just doesn’t include any troubleshooting details..
! if your reading this please like it so it’s seen by more people!
I almost got it but I’m the remote when the gui login comes up, soon as I log in everything crashes. And I have yet to find a solution.
Same, I even uninstalled WSL and started all over again
Any luck?
same
same
TroubleChute doesnt troubleshoot?? Outrageous!
You are able to convey in 7.5 minutes what hundreds of others stretch out to a half hour! Great vid!
If you have trouble connecting via remote desktop, the article in the comments has a typo which does not update the port correctly:
Try the command:
sudo sed -i 's/3398/3390/g' /etc/xrdp/xrdp.ini
At 5:04, the video has an error trying to replace 3389 (not 3398) with 3390.
Try the provided command in this comment and rerun the start command:
Legend
Thanks!
my file seems to have actually come with 3389 as the original port number
You saved my day.
fucking hero
This guy just saved my life! I was about to take a painkiller for the terrible headache I got following others' instructions!
It seems a lot of people have the same problem: every step seems to work fine, but finally logging into the WSL through the RDP seems to fail.
I wish I had read the article first before deciding on trying to installing gnome. Thanks for the great work!
Wonderful. After wasting so much time with other videos, this is the only solution I found that actually worked. Thanks a lot
Great video - worked on my pc like a charm following your steps - Cheers!!
how do i know which port to connect to the server
it did start and give me this massge * Starting slim slim [ OK ]
but when i connect on the remote desktop it does not work
I'd take one of those stretched out videos, because I clearly missed something somewhere along the way. I posted my question about it under TroubleChoot's pinned comment.
May the YT algo bless you keep making such content
I've been struggling with the DNS problem for a day. And then I found this. Thank you so much man
How did you get the GUI at 2:41 mine only shows a terminal design
Same to me it's only shows a f****ing terminal -_-
Great video, both content wise as well as presentation wise! You got a new subscriber... 😏
You got some voice, mate. Greetings from Spain. I was about to go crazy with Gnome
Very much appreciate this. Kept hyaving all sorts of issues and the articles weren't helping. Finally decided to just check youtube
Great guide, thank you!
why does my ubuntu version from the windows store doesn't open a gui to install it, but a regular console prompt ??
Same here.
I followed exactly and I never got the Ubuntu GUI installer. It asks to create a username and pw then puts me at a command prompt.
Thanks a lot! I worked just as described!
everything works fine except that after login in the remote connection, the screen is blank. just black screen with the blue bar above for closing, minimize, and pin and localhost name
you have to add a new user and use not the sudo one on the login screen!
This works for Windows 10, but will you release an update for Windows 11? There seems to be a conflict between xrdp and the window manager built into wslg.
terminal is not opening in remote desktop , what to do?
Awesome, much appreciated.
excellent video, however when i got stuck , i went to your website where instructions there were easy to follow which made it easier to follow the steps. thanks for the upload.
Great video bro.
in remote desktop i get this error [Window Title]
Remote Desktop Connection
[Content]
Remote Desktop can't connect to the remote computer for one of these reasons:
1) Remote access to the server is not enabled
2) The remote computer is turned off
3) The remote computer is not available on the network
Make sure the remote computer is turned on and connected to the network, and that remote access is enabled.
[^] Hide details [OK]
[Expanded Information]
Error code: 0x204
Extended error code: 0x0
Timestamp (UTC): 09/24/23 02:37:46 PM
Press Ctrl+C to copy.
Any way to use GNOME instead of XFCE4?
Is ther any way to install gnome desktop.
Awesome video. How's the performance?
Is it possible to run KDE plasma desktop on WSL2?
After a couple of time, while i am connect, using rdp, ubuntu goes to blackscreen. Can you help with that problem?
i am unable to do the remote connection with localhost:3390
any suggestions?
Try a different port or disabling firewall
In my computer when I use the remote connection,it keeps black screen or crashdown when I login
I don't get a GUI for the ubuntu installer.
idk how they did it
If I want to use Ubuntu-Desktop instead of XFCE4, what are the differences for the install/ setup ?
Not super useful to mention that it can be done but not even mention what to change to use a different GUI.
Because it's not worth doing.@@mdixon4az
im in windows 11 latest updates and it does not show a GUI at all. Only terminal.
If you do not get the GUI for the installer, thats ok. Just set user and password in the terminal and proceed, it dosen´t matter in the end.
i did not get the graphical interface for setting after installing ubuntu from the store
All good, but rdp lags like hell and btw why we actually need one, when there's a wslg?
sudo startxfce4 seems like an option
I funally got around to trying this today (Jan 30 2024, yes I know I'm really late on this) and every time I go to log into Ubuntu in the remote window, a couple seconds after I hit enter the window just closes. So if anyone sees this and has some sugestions, I'd really appreciate the input.
Awesome! Thaks a lot!
i tried to to this but no installer came up, just a terminal window.. i followed everythign you did here
I had the same problem, and also I cant connect to the remote desktop. It is just stuck in the black screen. pls help
So i tried to do this in windows 11. Didn't get a GUI for one when initally setting up ubuntu from the microsoft store at all however i followed all of your steps. BUT i can sudo snap install anything at all as it can't comunicate with anything? Would i have done anything wrong?
I did all the procedure, and when I go to connect to the remote area, the environment does not appear, the screen is all blue, in this part 6:15. Can you help me?
So Cool!
Is thos approach better than Virtual machine? For example installation on Virtual Box or VM ware?
Commands typed at 4:59
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/max_bpp=32/#max_bpp=32
max_bpp=128/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/xserverbpp=24/#xserverbpp=24
xserverbpp=128/g' /etc/xrdp/xrdp.ini
didn't work on remote desktop connection and also it said something different when i did the step before that
hi! What a great video, thank you!!! Except, after logging on to xfce4, im greeted with a blank blue window and the desktop never actually comes to life... any idea where to look?
I've followed your instructions step-by-step, everything went fine, but i can't connect through remote desktop. Working on Win10
Same, found any solutions?
Great tutorial.. thx u !!!!!!! subscribed and thumb up
Hey thanks for the guide. Which start menu is this?
after logging in I only see blank black screen, I cant see the icons
I was able to do it and open the terminal. it brought a small window inside saying, connecting to sesman ip 127..... port 3350, then sending info to session manager, pls wait and login fails... question. the username and pwd are the same (unix) as when setting up ubuntu at install, correct? thanks
were you able to fix it i have the same problem
@@khalilmoallaqat8999 unfortunately not yet
same issue, any luck fixing it?
@@rodolfomontenegroochoa6614 i ended up working within Win11 for now
The fact that you had debian and arch avaible and chose to use ubuntu baffles me.
debian and arch doesn't have a lot of guides for when it's in WSL, i had a lot of problems doing the simplest things
Worked for me.Thanks! BUT I needed to connect on Remote Desktop adding my ip address. "localhost:3390" didn't work.
dont work for me either, what show I do? thanks
yes exactly what i was looking for... i mean... not trying to set up a HyprLand as the default windows shell or anything. lol.
Been trying to do this for about 2 weeks. No luck.
thanks for the tutorial 🙏 I run onto a problem tho. When you open the Ubuntu you have the whole GUI from the ubuntu. Mine always starts in CLI... any idea ? 😅😅
I follow this instruction, and after connecting to remote desktop I got only black screen and nothin happend and idea what I did wrong?
very useful, thanks. but in xrdp section, must showed how to install xrdp package
I followed the instructions to the letter, however when I get Windows RD to login, I get the xrdp screen to enter my creds.
Enter username & password. Then it just crashes out. Am I doing something wrong?
Windows 11 Pro 23H2
WSL2 - Connecting to Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
Installing xfce4 as per the guide and still no closer to solving this issue or having a gui in WSL winthin Windows 11 Pro 23H2.
i've got a problem when trying to connect to the remote desktop via the remote desktop connection app. In the video he says you have to type in "localhost:3390", but the remote desktop app says that ":" is an invalid character and i can't use it, what should i do?
I was to ask a question, on the desktop gui installation is there a certain command for Cinnamon desktop environment? I installed every other package tho I could
When I run the set of 4 commands the following message is displayed:
echo xfce4-session > ~/.xsessioncp: cannot stat '/etc/xrdp/xrdp.ini': No such file or directory
This not allowing me to continue the setup.
Any sort of help is appreciated. Thanks.
"sudo apt install xrdp" needed before this 4 commands
Awesome.
Can you make a video on how you made the start menu?
i think he used "start is back" program. you can search here on youtube how to use it.
tried to install ubuntu from the microsoft store but i didnt get the installer set up shown in the video. it just set up my account in a terminal window
How do you get Ubuntu GUI? i get terminal.. Please help..
I don't understand what you DNS problem is. I've never had that happen, even when running U18 on W7.
Thanks for this really helpful. I have one question though. On my windows 10 pro installation. When I try to remote connect, I'm not able to login using my Ubuntu login credentials. Any advice would be greatly appreciated. Thanks once again.
Same for me
how can I log in in to xrdp ?
Everything works for me, but remote desktop won't connect to localhost:3390. It tries for a while & then gives a generic error message (can not connect for one of the following reasons...). What could be the problem?
hey dude have had any luck yet i have the same issue too
@@srali7609 any success? Same problem here
@gabperry1660 I gave up bro, I had a laptop at home that I installed ubuntu on so using that for my terminals Linux needs
Same here. Bombed out last step.
I have also ran into problems with this and you do not include any troubleshooting methods
ok so i've done everything i needed and it opened as showed. I've close it and how exactly do i open it back again?
What startxfce4 command would look like if i'd like to use gnome?
Hi thank you for your video.
But I got error when connect using RDP
I got error "login failed for display 0".
Need help
I have done everything but when i try to get onto localhost:3390 via RDP it doesnt let me says give you that error message with the 3 reason why it didnt work
Please help I got to the server edit but IDK how to get out, what does sudo mean, does it have a shortcut?
I can’t seem to get into the desktop environment it is just black with a cursor
localhost:3390 from rdp, gives me an error with optoins 1) this account is not permitted in the list of gateway, 2) remote pc written in NetBios format
Did you previously set a gateway in RDP for something else? Try to telnet into localhost 3390. If you get a blank screen returned then it's running. In RDP make sure no gateway is selected on the advanced tab.
hello @TroubleChute, i have an issue, after entering my username and password there's a black screen, can you give me some hints on how to fix this ?
and thanks for your work really appreciated
I'm having the same issue, have you got it resolved ?
I am also having the same issue
I know this was 3 months ago but same, anyone figure it out?
Plus I don’t get a black screen mine just crashes…
Im having trouble with network manager, cant seem to be able to connect it, ive tried all the commands
When I type in that first wsl command I get "Arguments for running Linux binaries" and a bunch of command line help.
my install is OK but the remote desktop is back windows. I tried to install NoCachine. It runs well
Thanks for the video! After finishing the installation I found that the RDP connection closes right after the login screen.
The error reported in ~/.xorgxrdp.10.log file was:
systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
The solution for me was to create additional user and use it for RDP connection.
Could you please expand and explain your solution?
@@ccooksey1215 `sudo adduser somenewusername` , set pass, then when logging in to xrdp just use that new user. looks like it doesn't like the fact that you're logging in as sudo... :)
@@maslak thank you!! It works creating by loging with a new user.
You are such a hero, this solved my problem not getting in the system.
What a PIA. This needs to be easier.
Great! it worked! performance was awful though
7:19 my installer doesn't start up as shown, only shows up cmd....what to do?
everything works, but after wsl is restarted rdp doesn't connect anymore
Hi, I wanna uninstall everything I did in this video. How do I do that? Thanks.
It might also help to add this "sudo ufw allow 3390"
Had to sub... Ciao.
i was able to run all commands with no errors but with 2 differences:
1. when i installed Ubuntu from the store (made sure its the same as in the video) i wasn't presented with a GUI but a text based one.
2. i did not run into any DNS server issues.
after the last step i got the:
* Starting Remote Desktop Protocol server [ OK ]
but when I use the same windows 10 pc to RDC into:
localhost:3390
after a long Initiating a connection i get a 3 error cant connect. remote access not enabled/remote computer is turned off/not available on the network.
last 2 seem inapplicable. the 1st one i got a confirmation that it was started, so..
any ideas?
For the GUI, i think the video author is using Windows 11.
What OS are you using, what build no.?
Search in windows for 'System Information'
@@ShrirajGPethe I think that's the case, I will try on Win 11
localhost:3390 is invalid remote computer name is what I am getting. ":" is not a valid character on the textbox.
thanks! how can we have the windows tiles on the start menu again? please showcase that!!
wow! that's really cool and worked very well for me. Now my question is... How can I execute Ubuntu default interface (ubuntu-desktop)?
Does it work without issues?
I am stuck on blue screen ??????
Same here. I log on with Xorg as in 6:12 and then I just get that blue/turquoise/teal background and nothing happens. Did you eventually fix it?
Isn't there a better, more native approach in 2023 ?
You can always export your X sessions. Have a X server running natively on Windows and your windows will be native to Windows.
You could've always done this since UNIX days
how is this different from just virtual machine? Is it just that as you add desktop env to WSL2, it just diminishes the benefits of using WSL2 in the first place and that WSL2 is more intended for just cmd line interface and operation?
this runs smoother on older pcs. vms dont
I have followed those very steps but whenever I launch ubuntu, it opens cmd. I can't access the complete system like the desktops and stuff. Please help
the same..im stuck here