Debugging for vncauth

This commit is contained in:
2022-02-18 19:02:54 -05:00
parent 4f02bf36c7
commit 6c831f8567

View File

@@ -1015,14 +1015,14 @@ service_jriver-xvnc() {
setVNCPass xvnc setVNCPass xvnc
debug "NOVNCAUTH: $NOVNCAUTH"
if (( NOVNCAUTH )); then if (( NOVNCAUTH )); then
start_cmd="/usr/bin/vncserver $NEXT_DISPLAY -geometry 1440x900 -alwaysshared -name jriver$NEXT_DISPLAY -SecurityTypes None -autokill -xstartup /usr/bin/mediacenter$MVERSION" start_cmd="/usr/bin/vncserver $NEXT_DISPLAY -geometry 1440x900 -alwaysshared -name jriver$NEXT_DISPLAY -SecurityTypes None -autokill -xstartup /usr/bin/mediacenter$MVERSION"
else else
start_cmd="/usr/bin/vncserver $NEXT_DISPLAY -geometry 1440x900 -alwaysshared -rfbauth $HOME/.vnc/jrmc_passwd -autokill -xstartup /usr/bin/mediacenter$MVERSION" start_cmd="/usr/bin/vncserver $NEXT_DISPLAY -geometry 1440x900 -alwaysshared -rfbauth $HOME/.vnc/jrmc_passwd -autokill -xstartup /usr/bin/mediacenter$MVERSION"
fi fi
debug "start_cmd: $start_cmd"
sudo bash -c "cat <<- EOF > $SERVICE_FNAME sudo bash -c "cat <<- EOF > $SERVICE_FNAME
[Unit] [Unit]
Description=Remote desktop service (VNC) Description=Remote desktop service (VNC)
@@ -1040,8 +1040,6 @@ service_jriver-xvnc() {
WantedBy=multi-user.target WantedBy=multi-user.target
EOF" EOF"
debug "DONE"
systemctl_reload_cmd && systemctl_reload_cmd &&
systemctl_enable_cmd "$SERVICE_NAME" && systemctl_enable_cmd "$SERVICE_NAME" &&
echo "Xvnc running on localhost:$PORT" && echo "Xvnc running on localhost:$PORT" &&