Skip to content

Commit

Permalink
Update hb-config
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Nov 21, 2023
1 parent daef40d commit 2ef2985
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions stage3_homebridge/01-homebridge/files/hb-config
Original file line number Diff line number Diff line change
Expand Up @@ -544,29 +544,29 @@ do_install_desktop_and_vnc() {

# install and setup VNC
if is_installed realvnc-vnc-server || (apt update --allow-releaseinfo-change && apt install -y realvnc-vnc-server); then
cat > /etc/systemd/system/vncserver-pi.service <<EOL
[Unit]
Description=VNC Virtual Desktop Service
After=syslog.target network.target
[Service]
Type=forking
User=pi
Group=pi
WorkingDirectory=/home/pi
PIDFile=/home/pi/.vnc/%H:12.pid
ExecStartPre=-/usr/bin/vncserver -kill :12 > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :12
ExecStop=/usr/bin/vncserver -kill :12
[Install]
WantedBy=multi-user.target
EOL
# cat > /etc/systemd/system/vncserver-pi.service <<EOL
#[Unit]
#Description=VNC Virtual Desktop Service
#After=syslog.target network.target

#[Service]
#Type=forking
#User=pi
#Group=pi
#WorkingDirectory=/home/pi

#PIDFile=/home/pi/.vnc/%H:12.pid
#ExecStartPre=-/usr/bin/vncserver -kill :12 > /dev/null 2>&1
#ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :12
#ExecStop=/usr/bin/vncserver -kill :12

#[Install]
#WantedBy=multi-user.target
#EOL
systemctl enable vncserver-x11-serviced.service &&
systemctl start vncserver-x11-serviced.service &&
systemctl enable vncserver-pi.service &&
systemctl start vncserver-pi.service &&
# systemctl enable vncserver-pi.service &&
# systemctl start vncserver-pi.service &&
STATUS=enabled
else
return 1
Expand All @@ -575,8 +575,8 @@ EOL
if is_installed realvnc-vnc-server; then
systemctl disable vncserver-x11-serviced.service
systemctl stop vncserver-x11-serviced.service
systemctl disable vncserver-pi.service
systemctl stop vncserver-pi.service
# systemctl disable vncserver-pi.service
# systemctl stop vncserver-pi.service
fi
STATUS=disabled
else
Expand Down

0 comments on commit 2ef2985

Please sign in to comment.