Add x11vnc to setup
This commit is contained in:
12
gps_tool/lib/systemd/system/x11vnc.service
Normal file
12
gps_tool/lib/systemd/system/x11vnc.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=x11vnc service
|
||||
After=display-manager.service network.target syslog.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd car-ntcna
|
||||
ExecStop=/usr/bin/killall x11vnc
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@ -16,7 +16,10 @@ sudo systemctl enable gpsd.service
|
||||
|
||||
# gpsd startup
|
||||
sudo cp -r etc/* /etc/
|
||||
sudo cp -r lib/* /lib/
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
# enable and start gpsd service
|
||||
sudo systemctl start gpsd.service
|
||||
sudo systemctl enable x11vnc.service
|
||||
sudo systemctl start x11vnc.service
|
||||
|
||||
Reference in New Issue
Block a user