Skip to content

Instantly share code, notes, and snippets.

@theodric
Created January 20, 2025 14:12
Show Gist options
  • Save theodric/c079f22ec2388121269540b2752f9c97 to your computer and use it in GitHub Desktop.
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)
[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