Added CarPC setup/install

This commit is contained in:
2021-09-01 15:49:01 -04:00
parent 3978d36530
commit d6547b01e4
17 changed files with 1213 additions and 0 deletions

25
CarPC/x11vnc-setup.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
sudo apt-get install x11vnc
sudo x11vnc -storepasswd car-ntcna /etc/x11vnc.pass
cat > /etc/systemd/system/x11vnc.service << EOF
[Unit]
Description="x11vnc"
Requires=display-manager.service
After=display-manager.service
[Service]
ExecStart=/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth guess -rfbauth /etc/x11vnc.pass
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
Restart-sec=2
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable x11vnc
sudo systemctl start x11vnc