Created
March 2, 2019 01:29
-
-
Save aimeemikaelac/8e95c045f72dfe75e5478ca86a5a20bc to your computer and use it in GitHub Desktop.
vnc server systemd config
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
[Unit] | |
Description=Start TightVNC server at startup | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
User=aimee | |
PAMName=login | |
PIDFile=/home/aimee/.vnc/%H:%i.pid | |
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1 | |
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1920x1080 :%i | |
ExecStop=/usr/bin/vncserver -kill :%i | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment