Windows link to a linux executable with x forwarding

597 views Asked by At

I have Linux and Windows server and all Windows clients. I usually use PuTTY + Xming to run some Linux software, forwarding X to the Windows client.

I wonder if it possible to put some icons on the Windows desktop to start specific software with no or little effort for users.

2

There are 2 answers

1
user314104 On BEST ANSWER

You can create .xlaunch files with the current version of Xming. When you install XLaunch, allow it to install PuTTY and associate .xlaunch files with Xming.

Run XLaunch to walk through the wizard.

On the second page of the wizard, choose "Start a program":

Session type page of XLaunch wizard

On the third page of the wizard, choose "Using PuTTY (plink.exe)" and enter the name of the program you'd like to run remotely and set the hostname and username. If you're using Pageant for SSH keys, leave the password field blank; otherwise, enter a password.

Start program page of XLaunch wizard

On the fifth page of the XLaunch wizard, click "Save configuration." Put this file on your desktop.

Finish configuration page of XLaunch wizard

2
user314104 On

For a quick solution, make a batch file to launch Xming asynchronously (ignoring failure and letting it terminate when Xming is already running), and then launch PuTTY (or plink) synchronously. Use PuTTY and / or plink's command line options to load appropriate profiles with X11 forwarding and the command(s) that you'd like to run.