mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-26 01:53:11 +01:00
23 lines
406 B
Bash
23 lines
406 B
Bash
|
#!/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
|