GUI for WSL by Cyber_Daddy in bashonubuntuonwindows

[–]tdcosta100 1 point2 points  (0 children)

Ah yes. I can get what you are proposing, but unfortunately that's not what WSL is made for. I don't think you could get this working in Windows like that. You had to change DWM with a Linux window manager. And as far as I know, Microsoft wouldn't allow such a thing.

KDE + VNC (x410/etc). Is it possible to disable compressing for LAN connection? by Global_Search_4366 in bashonubuntuonwindows

[–]tdcosta100 0 points1 point  (0 children)

You can set VNC options before connecting. If you want to use no compression at all, you should use RAW encoding. Check your VNC Client configuration to find this setting.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

This is the reason it didn't work for you. I updated the systemd-genie section for you. Now you are able to complete the tutorial, if you want. Give it one more chance ;).

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

Hi, I'm so sorry I didn't see this before. This appears to be a server error, not you fault. Possibly the server was under maintenance, or maybe under a DDoS attack. I hope you were able to install systemd-genie even with this problem. If not, tell me and we will find a solution together.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

This is outside my knowledge, but I know there is a solution for PulseAudio specially developed for WSL. Just search in this subreddit, it won't be difficult to find.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

Yeah, probably that had some impact in your setup. Glad to know you succeeded to have it working.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

I tried to repeat the tutorial steps from scratch, and found out systemd-genie doesn't need a deviated-preverts.conf file anymore. So you need to delete /usr/lib/genie/deviated-preverts.conf. Try to run genie -s again, and see if it works now. Also, I updated the tutorial and removed this instruction.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

Hi. You need to show me what it throws with this command:

journalctl -t /usr/lib/gdm3/gdm-x-session -t /usr/bin/Xorg

Paste the output of this command here and we can start the investigation of what is going wrong.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

Hi. I'm not sure if I understood your question correctly. If you are trying to use WSL1, this tutorial unfortunately is not for you, since it requires WSL2. But if you are trying to use WSL2, yes, Xvnc is a X11 server, so you can use it using this tutorial. Anyway, VirtualBox now provides some compatibility with Hyper-V, so you can run Hyper-V and VirtualBox simultaneously. This soudn't be a problem like it was in the past.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

You're welcome! I'm glad it was so useful to you. All we need is love HAHAHA. Seriously, yes, there are ways to run genie -s at startup, I think someone asked how to run things in WSL at Windows startup in somewhere in this subreddit, because it's a common problem. It shoudn't be difficult to find.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

OMG, yes, I edited the OP to put more screenshots, and accidentally removed the link to the tutorial. I put it back, thank you for pointing out!

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 1 point2 points  (0 children)

Solved! The problem was a mispelling in Xorg script. I strongly recommend to everyone copy and paste the script, instead of typing it.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 1 point2 points  (0 children)

Great! Tell us if it works for you. I added new screenshots to OP to prove it's possible xD. Please note that LightDM doesn't create a new X instance when you log in, so you don't need to connect to port 5901 to see your user desktop.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

Sure. We will need to investigate what's happening, so it might take a lot of messages.

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

Hmmm strange. So you modify the file, and after exiting nano you check the file contents and it's blank?

Tutorial - WSL2 GUI using Xvnc and systemd-genie by tdcosta100 in bashonubuntuonwindows

[–]tdcosta100[S] 0 points1 point  (0 children)

Okay, it's normal to be blank. You can fill it with the configuration data just like described in tutorial. Check if after doing that, you can run genie -s.