esera automation 19200 Linux Manual - Página 4
Procurar online ou descarregar pdf Manual para Equipamento de gravação esera automation 19200 Linux. esera automation 19200 Linux 9 páginas.
8.3
Autostart of VNC Server via systemd-Service
To start the TightVNCServer automatically at boot time, the systemd service is required. This variant of the VNC
start has the advantage that you can control it a bit more finely, if you dare to do so from the command line.
First we create a new file in the systemd system directory:
sudo nano /etc/systemd/system/[email protected]
The content of the file looks like this::
[Unit]
Description=VNC mit TightVNCServer
After=syslog.target network.target
[Service]
Type=forking
User=pi
PAMName=login
PIDFile=/home/pi/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
In the line beginning with "ExecStart..." there are the VNC parameters "-depth" and "-geometry", which can be
adjusted as desired.
Then save and close the file: Ctrl + O, Return, Ctrl + X.
Then you have to tell systemd that there is a new service/daemon.
sudo systemctl daemon reload
The following commands explain how to control this VNC service on the command line
Start VNC-Service
sudo systemctl start [email protected]
Stop running VNC-Service
sudo systemctl stop [email protected]
Show Status VNC-Service
sudo systemctl status [email protected]
Enable automatic startup at boot-up
sudo systemctl enable [email protected]
Disable automatic startup on boot:
sudo systemctl disable [email protected]
Display whether the VNC service is started automatically at boot time:
sudo systemctl is-enabled [email protected]
All rights reserved. Reproduction as well as electronic duplication of this user guide, complete or in part, requires the written consent of
ESERA GmbH. Errors and technical modification subject to change. ESERA GmbH, ESERA-Automation 2020
www.esera.de
19200 V1.0 R1.0 Commissioning II
Page 4 of 9