Public part of my dotfiles.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
416 B

4 years ago
  1. [Unit]
  2. Description=Remote desktop service (VNC)
  3. [Service]
  4. Type=simple
  5. # wait for Xorg started by ${USER}
  6. ExecStartPre=/bin/sh -c 'while ! pgrep -U "$USER" Xorg; do sleep 2; done'
  7. ExecStart=/usr/bin/x0vncserver -rfbauth /home/${USER}/.vnc/passwd
  8. # or login with your username & password
  9. #ExecStart=/usr/bin/x0vncserver -PAMService=login -PlainUsers=${USER} -SecurityTypes=TLSPlain
  10. [Install]
  11. WantedBy=default.target