Skip to content

Instantly share code, notes, and snippets.

@thegreatestminer thegreatestminer/vnc.sh
Last active Sep 5, 2019

Embed
What would you like to do?
vnc for colab, assumes you already tunneled SSH, because having a command run for 3 minutes is unethical
#!/bin/bash
apt update
apt install xfce4 xfce4-goodies tightvncserver firefox
echo "#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
/etc/X11/Xsession
export XKL_XMODMAP_DISABLE=1
exec /usr/bin/startxfce4 &" >> xstartup
mkdir $HOME/.vnc
mv xstartup $HOME/.vnc/
chmod +x $HOME/.vnc/xstartup
vncserver -geometry 1280x720 -httpport 5901
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.