Skip to content

Instantly share code, notes, and snippets.

@thegreatestminer thegreatestminer/

Last active Jan 5, 2020
What would you like to do?
vnc for colab, assumes you already tunneled SSH, because having a command run for 3 minutes is unethical
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
exec /usr/bin/startxfce4 &" >> xstartup
mkdir $HOME/.vnc
mv xstartup $HOME/.vnc/
chmod +x $HOME/.vnc/xstartup
# VNC hates you if you don't don't mention USER.
USER=$(whoami) 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.