Last active
August 8, 2020 16:34
-
-
Save thegreatestminer/eb782d0ec7622751ca768e2d5dd414ef to your computer and use it in GitHub Desktop.
vnc for colab, assumes you already tunneled SSH, because having a command run for 3 minutes is unethical
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
#!/bin/bash | |
apt update | |
apt install xfce4 xfce4-goodies vnc4server 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 | |
# VNC hates you if you don't don't mention USER. | |
USER=$(whoami) vnc4server -geometry 1280x720 -httpport 5901 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment