Created
February 13, 2025 23:09
-
-
Save RichardNesbitt/647a1617007d0b18488b95472b940f60 to your computer and use it in GitHub Desktop.
Clear and Launch new VNCServer Sessions - Ubuntu
This file contains hidden or 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
rm -rf ~/.vnc && mkdir ~/.vnc | |
cat > ~/.vnc/xstartup << 'EOL' | |
#!/bin/bash | |
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources | |
export XKL_XMODMAP_DISABLE=1 | |
export XDG_CURRENT_DESKTOP="XFCE" | |
export DISPLAY=:1 | |
export XAUTHORITY=$HOME/.Xauthority | |
xsetroot -solid grey | |
vncconfig -iconic & | |
startxfce4 & | |
EOL | |
chmod +x ~/.vnc/xstartup && touch ~/.Xresources && vncserver :1 -geometry 1024x768 -depth 24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've chained the commands into 3 copy/pasteable chunks that can be executed from the shell