This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
Plasma-in-Arch-in-Docker/start.sh
2020-02-02 04:08:13 -08:00

18 lines
485 B
Bash
Executable file

#!/bin/bash
umask 0077 # use safe default permissions
mkdir -p "$HOME/.vnc" # create config directory
chmod go-rwx "$HOME/.vnc" # enforce safe permissions
# Start TigerVNC
if [ ! -z $VNC_PASSWD ]; then
vncpasswd -f <<< "$VNC_PASSWD" > "$HOME/.vnc/passwd"
vncserver -localhost no :0
else
vncpasswd -f <<< "" > "$HOME/.vnc/passwd"
vncserver --I-KNOW-THIS-IS-INSECURE -SecurityTypes None -localhost no :0
fi
# Start noVNC
/noVNC-${noVNC_version}/utils/launch.sh