Created
February 9, 2024 19:32
-
-
Save goodarzi/a3bbe0be9ef769d018fc56386ed8ac9e to your computer and use it in GitHub Desktop.
Install vnc server debian 12 (bookworm)
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
#!/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