![]() Copy silent.vbs and plink-silent.cmd (see attached files) to the directory where PLink.exe is installed.Manually try starting Eclipse from Windows by running the following command:.Windows: Eclipse shortcut using SSH X11 tunnel: Download and unpack Eclipse for Linux to ~/eclipse.WSL2 Ubuntu: Install Eclipse & prerequisites: Launch config.xlaunch to start the X Server manually for now.Copy config.xlaunch as shown below to the Startup folder (Win+R: shell:startup).X display location: 127.0.0.1:0.0 (this should match whatever DISPLAY value is shown in VcXsrv logs).Enable X11 forwarding (if you want to start X11 programs).Port: 22 (or whatever OpenSSH port you configured on WSL2 Ubuntu).Windows: Create putty profile to connect to WSL2 Ubuntu: Add the SSH public key to ~/.ssh/authorized_keys on WSL2 Ubuntu.Save private key to ppk file this will used later when connecting to WSL2 Ubuntu using Putty or PLink.Generate new key pair, or convert existing key pair.Windows: Configure SSH public key authentication using PuttyGen: Windows: Create scheduled task that runs on user logon, running C:\Windows\System32\bash.exe with arguments /home//bin/startup.sh.WSL2 Ubuntu: mkdir -p ~/bin echo "sudo service ssh start" > ~/bin/startup.sh.Putty, Plink & PuttyGen installed on WindowsĮdit /etc/ssh/sshd_config: X11Forwarding yes.Using SSH X11 forwarding, with network connection initiated from Windows to WSL2 Ubuntu, which is particularly useful on company laptops that refuse all incoming network connections on Windows.Connecting to VcXsrv directly from WSL2.Run Eclipse on WSL2 Ubuntu, displaying the Eclipse UI on VcXsrv running on Windows.This gist provides a summary on how to accomplish the following tasks:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |