Last active
December 28, 2024 10:33
-
-
Save miguelmota/9cd15049843ddf1ee1a52196f5c7e5ea to your computer and use it in GitHub Desktop.
Arch linux VNC server setup
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
session=lxqt | |
geometry=1920x1080 | |
localhost # comment this out to allow connections from anywhere | |
alwaysshared |
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
sudo pacman -S tigervnc | |
vncpasswd | |
vim /etc/tigervnc/vncserver.users | |
vim ~/.vnc/config | |
sudo systemctl start vncserver@:1 | |
# ufw allow 5901 | |
# vncvierwer |
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
:1=your_username |
echo ":1:USER" >> /etc/tigervnc/vncserver.users
This is incorrect. It should be:
echo ":1=$USER" >> /etc/tigervnc/vncserver.users
$USER
will be expanded to your username.
Also, output redirection isn't performed by sudo. So sudo cat
won't work.
What works for me:
sudo bash -c "cat <<EOF > $HOME/.vnc/config
session=\$XDG_SESSION_DESKTOP
geometry=1920x1080
localhost=no
alwaysshared
EOF"
as always, ymmv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks man!!! This helped me a lot!
I made this to be more easier to configure....