Update KasmVNC user group and config settings
- Use `usermod` to add user to ssl-cert group for compatibility. - Simplify KasmVNC config with protocol and SSL parameters. - Ensure UDP communication is confined to localhost for security.
This commit is contained in:
@@ -34,7 +34,7 @@ install_deb() {
|
|||||||
download_file $url /tmp/kasmvncserver.deb
|
download_file $url /tmp/kasmvncserver.deb
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
DEBIAN_FRONTEND=noninteractive sudo apt-get install --yes -qq --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb
|
DEBIAN_FRONTEND=noninteractive sudo apt-get install --yes -qq --no-install-recommends --no-install-suggests /tmp/kasmvncserver.deb
|
||||||
sudo addgroup $USER ssl-cert
|
sudo usermod -aG ssl-cert $USER
|
||||||
rm /tmp/kasmvncserver.deb
|
rm /tmp/kasmvncserver.deb
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -176,7 +176,14 @@ EOF" || true
|
|||||||
mkdir -p "$HOME/.vnc"
|
mkdir -p "$HOME/.vnc"
|
||||||
cat > "$HOME/.vnc/kasmvnc.yaml" <<EOF
|
cat > "$HOME/.vnc/kasmvnc.yaml" <<EOF
|
||||||
network:
|
network:
|
||||||
|
protocol: http
|
||||||
websocket_port: ${PORT}
|
websocket_port: ${PORT}
|
||||||
|
ssl:
|
||||||
|
require_ssl: false
|
||||||
|
pem_certificate:
|
||||||
|
pem_key:
|
||||||
|
udp:
|
||||||
|
public_ip: 127.0.0.1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# This password is not used since we start the server without auth.
|
# This password is not used since we start the server without auth.
|
||||||
|
|||||||
Reference in New Issue
Block a user