Skip to content

Instantly share code, notes, and snippets.

@RichardNesbitt
RichardNesbitt / commands.sh
Created February 13, 2025 23:09
Clear and Launch new VNCServer Sessions - Ubuntu
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