filename changeover

This commit is contained in:
2019-01-27 12:54:38 -06:00
parent 4efc3f0bc8
commit b17528a3fd
7 changed files with 44 additions and 22 deletions

24
install-vnc.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
sudo apt install x11vnc -y
sudo x11vnc -storepasswd /etc/x11vnc.pass
cat > /lib/systemd/system/x11vnc.service << EOF
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target
EOF
echo "Configure Services"
sudo systemctl enable x11vnc.service
sudo systemctl daemon-reload
echo "Rebooting in 5 seconds..."
sleep 5s
sudo shutdown -r now