mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-25 17:44:01 +01:00
23 lines
406 B
Bash
Executable File
23 lines
406 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
set_xterm_to_run() {
|
|
mkdir "$config_dir"
|
|
echo '/usr/bin/xterm &' >> "$xstartup"
|
|
chmod +x "$xstartup"
|
|
}
|
|
|
|
create_kasm_user() {
|
|
echo -e "$VNC_PW\n$VNC_PW\n" | kasmvncpasswd -w -u "$VNC_USER"
|
|
}
|
|
|
|
config_dir="$HOME/.vnc"
|
|
xstartup="$config_dir/xstartup"
|
|
|
|
set_xterm_to_run
|
|
create_kasm_user
|
|
|
|
vncserver -select-de manual -websocketPort "$VNC_PORT"
|
|
tail -f "$config_dir"/*.log
|