Skip to content

Instantly share code, notes, and snippets.

@goodarzi
Created February 9, 2024 19:32
Show Gist options
  • Save goodarzi/a3bbe0be9ef769d018fc56386ed8ac9e to your computer and use it in GitHub Desktop.
Save goodarzi/a3bbe0be9ef769d018fc56386ed8ac9e to your computer and use it in GitHub Desktop.
Install vnc server debian 12 (bookworm)
#!/usr/bin/env bash
sudo apt install tightvncserver
if [ ! -e $HOME/.Xresources ]; then
touch $HOME/.Xresources
fi
echo ":1=$USER" | sudo tee -a /etc/tigervnc/vncserver.users
cat << _eof_ > $HOME/.vnc/config
session=xfce
alwaysshared
localhost=no
_eof_
vncpasswd
sudo systemctl start tigervncserver@:1
sudo systemctl enable tigervncserver@:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment