gt22

Untitled

Jun 28th, 2018
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. [Service]
  2. Environment=RESOLUTION=800x600
  3. Environment=COLOR=16
  4. Environment=DISPLAY=1
  5.  
  6. [Unit]
  7. Description=VNC Server
  8.  
  9. [Service]
  10. Type=forking
  11. ExecStart=/usr/bin/vncserver -depth ${DEPTH} -geometry ${RESOLUTION} :${DISPLAY}
  12. ExecStop=/usr/bin/vncserver -kill :${DISPLAY}
  13. ExecReload=/usr/bin/vncserver -kill :${DISPLAY} && /usr/bin/vncserver -depth ${DEPTH} -geometry ${RESOLUTION} :${DISPLAY}
  14. User=root
  15.  
  16. [Install]
  17. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment