Skip to content

Instantly share code, notes, and snippets.

@bmsleight
Last active August 29, 2015 14:10
Show Gist options
  • Save bmsleight/7cd3b0511d78a071df03 to your computer and use it in GitHub Desktop.
Save bmsleight/7cd3b0511d78a071df03 to your computer and use it in GitHub Desktop.
Cloudie Thingie
/usr/local/sbin/cloud
pkg_add x11vnc
pkg_add xfce
x11vnc -storepasswd /home/bms/.vnc/passwd
x11vnc --ssl SAVE -http -rfbauth /home/bms/.vnc/passwd -forever -loop100 -display :0
(Sets certs)
kudos to http://www.tumfatig.net/20120614/the-remote-openbsd-5-1-desktop/
echo "A cloud!" >/tmp/cloud.txt
su bms -c "/usr/X11R6/bin/Xvfb :0 -screen 0 1024x768x24" &
su bms -c "/usr/local/bin/x11vnc --ssl SAVE -http -rfbauth /home/bms/.vnc/passwd -forever -loop100 -display :0" &
sleep 2
echo "A cloud!"
sleep 5
su bms -l -c "DISPLAY=:0 /usr/local/bin/xfce4-session "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment