You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, we need to log into the server to do admin things, such as logging back into Steam in case it decides to log out of the account, restart Steam in case it crashes, etc. noVNC is a reliable and accessible way to manage the server. However, currently anyone on the local network can access the host through noVNC.
What is your feature request?
When VNC is enabled, we should have the option to set a password.
Are there any workarounds?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
I got a little tired of having to always add that myself whenever the image got updated and the start-x11vnc.sh got scrubbed, so I made a little script designed to be placed in the /home/default/init.d directory. It won't handle weird edge cases, but it's enough until the maintainer (hopefully) adds this as a official feature.
Just make sure that the USER_PASSWORD variable exists or replace that part of the script with your own.
#!/bin/bash# Define the file path
FILE_PATH="/usr/bin/start-x11vnc.sh"# Define the password part to insert
PASSWORD_PART="-passwd $USER_PASSWORD"# Check if the -passwd option is already in the scriptif grep -q "\-passwd""$FILE_PATH";thenecho"VNC Password flag already exists."elseecho"Adding VNC password flag..."# Use sed to insert the password part before the '&' at the end of the command line
sed -i "/x11vnc.*\&/s/\&/ $PASSWORD_PART&/""$FILE_PATH"echo"VNC Password flag added successfully."fi
Is your feature request related to a problem?
Sometimes, we need to log into the server to do admin things, such as logging back into Steam in case it decides to log out of the account, restart Steam in case it crashes, etc. noVNC is a reliable and accessible way to manage the server. However, currently anyone on the local network can access the host through noVNC.
What is your feature request?
When VNC is enabled, we should have the option to set a password.
Are there any workarounds?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: