Created
October 22, 2022 04:46
-
-
Save woody34/934bb73725a2436e274578c90c9e4108 to your computer and use it in GitHub Desktop.
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
sudo apt-get install tightvncserver -y | |
vncserver :1 -name le-potato -depth 16 -geometry 1920x1080 | |
nano /etc/systemd/system/vncserver.service | |
[Unit] | |
Description=TightVNC server | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
User=root | |
PAMName=login | |
PIDFile=/root/.vnc/%H:1.pid | |
ExecStartPre=-/usr/bin/vncserver -kill :1 > /dev/null 2>&1 | |
ExecStart=/usr/bin/vncserver | |
ExecStop=/usr/bin/vncserver -kill :1 | |
[Install] | |
WantedBy=multi-user.target | |
systemctl daemon-reload | |
systemctl enable --now vncserver | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment