Skip to content

Instantly share code, notes, and snippets.

@dysinger
Created December 19, 2009 18:03
Show Gist options
  • Select an option

  • Save dysinger/260173 to your computer and use it in GitHub Desktop.

Select an option

Save dysinger/260173 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Install & configure xmonad on the server
sudo apt-get install -y xmonad
# Install & run tightvnc on the server
sudo apt-get install -y tightvncserver
tightvncserver :1
# Enter a password & restart w/ xmonad friendly script
tightvncserver -kill :1
perl -p -i -e 's/^\#x-/x-/g' ~/.vnc/xstartup
tightvncserver :1
# On the Mac
ssh -i your-ec2-ssh-key -L 5901:localhost:5901 user@host.name
open vnc://127.0.0.1:5901 ;# or apple-k in finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment