Guest User
a guest
Apr 20th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. [Unit]
  2. Description=Remote desktop service (VNC)
  3. Requires=network.target [email protected]
  4. After=network.target [email protected]
  5.  
  6. [Service]
  7. Type=simple
  8.  
  9. User=pi
  10. PAMName=login
  11.  
  12. ExecStartPre=/bin/sh -c '/usr/bin/x0vncserver -kill %i > /dev/null 2>&1 || :'
  13. ExecStart=/usr/bin/x0vncserver -display %i -PasswordFile ${HOME}/.vnc/passwd -CompareFB
  14. ExecStop=/usr/bin/x0vncserver -kill %i
  15.  
  16. Restart=always
  17. RestartSec=10
  18.  
  19. [Install]
  20. WantedBy=graphical.target
Advertisement
Add Comment
Please, Sign In to add comment