вторник, 15 августа 2017 г.

/lib/systemd/system/vncserver.service

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
User=sharer

Environment=HOME=/home/sharer
ExecStartPre=-/usr/bin/vncserver -kill :1
ExecStart=/usr/bin/vncserver -geometry 1280x720 -dpi 96 -localhost
-nolisten tcp
ExecStop=/usr/bin/vncserver -kill :1

[Install]
WantedBy=multi-user.target

--