Over a million developers have joined DZone.

One-click Connect From Cygwin To Full-screen Linux (X Stuff Required)

Optional: execute the following once (see http://hacks.oreilly.com/pub/h/66 for 
details), to avoid typing in the password.

set LINUX_HOST=mylinuxhost
ssh-keygen -t rsa
ssh %USERNAME%@%LINUX_HOST% "mkdir .ssh; chmod 0700 .ssh"
bash -c 'scp ~/.ssh/id_rsa.pub %LINUX_HOST%:.ssh/authorized_keys2'

Now, if you save the following as a BATCH file, you can just click it 
to connect to fullscreen Linux: 

set LINUX_HOST=mylinuxhost
start /min xinit 
xhost +%LINUX_HOST%
ssh %LINUX_HOST% "declare -x DISPLAY=%COMPUTERNAME%:0; echo $DISPLAY;gnome-session"'

Sometimes xhost + does not execute in time. O well. Just close
all windows that got opened and try again.

If you didn't do the step one (ssh keys), you will be prompted 
to enter the linux password; this increases the chances of the above

The single terminal window appearing in the Linux desktop is in fact 
a window from your PC. 


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}