... display remote linux machine on windows

by ada last modified May 26, 2015 08:46 AM
So here you are, stuck with a Windows, craving for that Linux-feeling? Rescue for the doomed.

Preamble

For simply accessing a remote host via SSH, use Putty.

If you have you have a lot of power under your arsenal (CPU+RAM), feel free to locally install a Linux on your Windows with VirtualBox.

Otherwise praise and...

Install Cygwin

Download Cygwin, execute installer-file (ending with '.exe'), follow the installer by clicking 'Continue' until you see the table with possible programs to choose.

Enable desired components

We need a Bash, SSH and XServer. Bash is enabled by default, for the others enter 'openssh', respectively 'xinit' in the searchfield and tick the refering boxes (you might need to toggle checkbox-visibility with a click on 'Skip' first). Continue following the installer.

Sync display-vars

We need to make sure, that both machines have the same DISPLAY-variable set, before starting the XServer. As Cygwin sets the var to '0.0' by default, we set the same on the remote Linux.

Open Cygwin (doublelclick on its icon, which you should find on your Desktop, now), enter:

ssh username@your-remote-host.org

Logged in? Great, now we set the display:

export DISPLAY=:0.0

Ok, that's it, exit with Strg+D

Runtime!

Start XServer:

xinit.exe

Now the Cygwin-window should open and in it is another Bash-window, there enter:

ssh -Y username@your-remote-host.org

Where Y will cause to pipe the session to your display on '0.0' (can be changed, don't ask me how).

Now run firefox, for example:

firefox plone.org

You should now see the browser executed on the remote machine right in front of your face. Congrats, dear fellow sufferer, you just broke free. The sky is the limit ;)

--------------------------------------------------------

Update: Good doc for Unix-to-Unix:

http://askubuntu.com/questions/163155/how-do-i-access-my-remote-ubuntu-server-via-x-windows-from-my-mac