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

18 lines
485 B
Bash
Raw Normal View History

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