![]() ![]() Sudo apt remove rhythmbox sudo apt autoremove :/shared /nfsshared nfs4 defaults,user,execĐĒ :/shared /shared nfs4 defaults,user,execĐĒ /music /music cifs tomount,uid=3000,gid=3001,credentials=/etc/samba/credentials/server,sec=ntlmsspĐĒ Sudo usermod -a -G dialout andrewmemorybackupĬredentials directory in /etc/samba/credentials # while we're here, let's put us in dialout Sudo chown -R andrewmemory.andrewmemory andrewmemory # edit /etc/group and replace andrewmemory with andrewmemory,andrewmemorybackup Git config -global credential.helper cache -timeout=36000 Git config -global user.email config -global user.name "Doctor Memory" Sudo apt install emacs meld cifs-utils samba-common nfs-client hardinfo default-jre I’ve come up with a procedure that seems to work for me to set up my environment the way I like it. ![]() © 2020-2023 Thomas Ward.I recently had the chance to set up Ubuntu on several different hard drives I iterated through. Or input on the article using any of the methods on my I hope this article helps! Please contact me with any questions Test out your new setup by running a graphical application in WSL2.Īn easy option is to start R and run hist(cars$dist).Įnjoy X11 forwarding from WSL2 to Windows. This is normal, so always click "Yes" as this is WSL2 updating the firewall rules If you want "netsh.exe" to make changes to your advice. You will notice a slight delay and a Windows User Account Control box asking Sometimes when you launch a new terminal window, # Tell X11 programs to render on Windows, not linux, side # Appropriately set DISPLAY to Windows X11 server Powershell.exe -Command "Start-Process netsh.exe -ArgumentList \"advfirewall firewall set rule name=X11-Forwarding new localip=$WINDOWS_IP remoteip=$LINUX_IP \" -Verb RunAs" # Update firewall rule if firewall rules IPs don't match actual ones To set this up, you can copy the below to a script and run it from within To avoid this, we will make Windows Firewall only accept internet traffic Start sending graphical display information to your computer. This means someone could theoretically, if they are on your same network, Many guides on X11 forwarding and WSL2 make this firewall rule too permissive,Īllowing connections from any computer to your computer. We do this step first to avoid Windows Firewall from auto-creating an insecure firewall rule You will install the display server in the next step. You will now need to configure Windows Firewall to permit connections The instructions below are confirmed to work with Ubuntu. You can pick any Linux distribution you want. Make sure to follow the instructions for WSL2, not 1. I recommend doing the manual steps to avoid having to join the Windows Insider Program Installation instructions are available from microsoft Configuring WSL2 to auto-update the firewall rule when IP addresses change and know.Installing an X11 display server, VcXsrv.Configuring Windows firewall to only allow connections to the X11 display serverįrom the WSL2 instance running on your computer.It does not let Windows Firewall open up the X11 display server port to the entire world, Configure WSL2 to send graphics to VcXsrvĪnd configure X11 forwarding so graphical programs run from inside WSL2.X11 Forwarding and Windows Subsystem for Linux 2 ![]() Thoughts on AI, surgery, programming, and more. Thomas Ward's website Thomas Ward's website. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |