Last active
August 29, 2015 14:10
-
-
Save bmsleight/7cd3b0511d78a071df03 to your computer and use it in GitHub Desktop.
Cloudie Thingie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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