Simplify VNC server installation and config setup

- Streamlined the installation script's messaging for clarity.
- Added default SSL certificate path in the config.
atif/support-kasm-images
Muhammad Atif Ali 8 months ago
parent 2e0f3eddc0
commit f6ebe73aea

@ -5,7 +5,7 @@
# Function to check if vncserver is already installed # Function to check if vncserver is already installed
check_installed() { check_installed() {
if command -v vncserver &> /dev/null; then if command -v vncserver &> /dev/null; then
echo "vncserver is already installed." echo "A binary with name vncserver already installed."
return 0 # Don't exit, just indicate it's installed return 0 # Don't exit, just indicate it's installed
else else
return 1 # Indicates not installed return 1 # Indicates not installed
@ -155,7 +155,7 @@ if ! check_installed; then
;; ;;
esac esac
else else
echo "A binary with name vncserver already installed. Skipping installation." echo "Skipping installation."
fi fi
# create the config file as the current user .vnc/kasmvnc.yaml # create the config file as the current user .vnc/kasmvnc.yaml
@ -166,6 +166,7 @@ network:
websocket_port: ${PORT} websocket_port: ${PORT}
ssl: ssl:
require_ssl: false require_ssl: false
pem_certificate: /etc/ssl/certs/ssl-cert-snakeoil.pem
udp: udp:
public_ip: 127.0.0.1 public_ip: 127.0.0.1
EOF EOF

Loading…
Cancel
Save