Easy start script: use long GNU options -k, --kill, etc

This commit is contained in:
Dmitry Maksyoma 2021-07-22 00:20:34 +12:00
parent 1bd14fe881
commit fc1aa63a44
2 changed files with 11 additions and 11 deletions

View File

@ -58,14 +58,14 @@ sudo addgroup $USER ssl-cert
# You will need to re-connect in order to pick up the group change # You will need to re-connect in order to pick up the group change
# Create ~/.vnc directory and corresponding files. # Create ~/.vnc directory and corresponding files.
kasmvncserver-easy-start -d && kasmvncserver-easy-start -kill kasmvncserver-easy-start --debug && kasmvncserver-easy-start --kill
# On the first run, kasmvncserver-easy-start will ask you to choose a desktop # On the first run, kasmvncserver-easy-start will ask you to choose a desktop
# environment you want to run. It can detect Cinnamon, Mate, LXDE, KDE, Gnome, # environment you want to run. It can detect Cinnamon, Mate, LXDE, KDE, Gnome,
# XFCE. You can also choose to manually edit xstartup. # XFCE. You can also choose to manually edit xstartup.
# After you chose a desktop environment or to manually edit xstartup, # After you chose a desktop environment or to manually edit xstartup,
# kasmvncserver-easy-start won't ask you again, unless you run it as: # kasmvncserver-easy-start won't ask you again, unless you run it as:
kasmvncserver-easy-start -select-de kasmvncserver-easy-start --select-de
# Overwrite xstartup to launch your environment of choice, in this example LXDE # Overwrite xstartup to launch your environment of choice, in this example LXDE
# This may be optional depending on your system configuration # This may be optional depending on your system configuration
@ -83,7 +83,7 @@ Now navigate to your system at https://[ip-address]:8443/
To stop a running KasmVNC: To stop a running KasmVNC:
```sh ```sh
kasmvncserver-easy-start -kill kasmvncserver-easy-start --kill
``` ```
The options for vncserver: The options for vncserver:

View File

@ -151,14 +151,14 @@ process_cli_options() {
show_help show_help
exit exit
;; ;;
-d) -d|--debug)
enable_debug enable_debug
;; ;;
-kill) -k|--kill)
kill_vnc_server kill_vnc_server
exit exit
;; ;;
-select-de) -s|--select-de)
action=select-de-and-start action=select-de-and-start
;; ;;
*) *)
@ -173,11 +173,11 @@ user_asked_to_select_de() {
} }
show_help() { show_help() {
cat >&2 <<-USAGE cat >&2 <<-USAGE
Usage: `basename $0` [options] Usage: $(basename "$0") [options]
-d Debug output -d, --debug Debug output
-kill Kill vncserver -k, --kill Kill vncserver
-select-de Select desktop environent to run -s, --select-de Select desktop environent to run
--help show this help --help Show this help
USAGE USAGE
} }