Last active
November 16, 2020 07:42
-
-
Save aleksseven/2d115683319e4703d00e83fcbb74368f 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
GNU nano 4.8 /etc/systemd/system/[email protected] | |
#[Service] | |
#Type=forking | |
#User=alex | |
#Group=alex | |
#WorkingDirectory=/home/alex | |
#PIDFile=/home/alex/.vnc/%H:%i.pid | |
#ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1 | |
#ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i | |
#ExecStop=/usr/bin/vncserver -kill :%i | |
#[Install] | |
#WantedBy=multi-user.target | |
[Unit] | |
Description=VNC Server by Alex | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
User=alex | |
# Clean any existing files in /tmp/.X11-unix environment | |
ExecStartPre=/usr/bin/vncserver -kill :%i > /dev/null 2>&1 || : | |
ExecStart=/usr/bin/vncserver -geometry 800x600 -depth 24 -localhost no :%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