Created
January 20, 2025 14:12
-
-
Save theodric/c079f22ec2388121269540b2752f9c97 to your computer and use it in GitHub Desktop.
Simple systemd unit file to run vncserver as root on boot (lol security)
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
[Unit] | |
Description=VNC Server | |
After=network.target | |
[Service] | |
Type=forking | |
Environment="HOME=/root" | |
ExecStart=/usr/bin/vncserver | |
ExecStop=/usr/bin/vncserver -kill :1 | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment