mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2024-11-07 08:44:07 +01:00
KASM-1722 Adding default RDP and VNC Remmina Profiles
- support modifying the default profiles via enviroment variables
This commit is contained in:
parent
9630c6ed2f
commit
3e13896bad
@ -6,6 +6,19 @@ DEFAULT_ARGS=""
|
||||
MAXIMUS="false"
|
||||
ARGS=${APP_ARGS:-$DEFAULT_ARGS}
|
||||
|
||||
update_profile() {
|
||||
if [ -n "$REMMINA_OPTIONS" ] && [ -n "$REMMINA_PROFILE" ] ; then
|
||||
R_OPTIONS=""
|
||||
for i in ${REMMINA_OPTIONS//,/ }
|
||||
do
|
||||
R_OPTIONS="$R_OPTIONS --set-option $i"
|
||||
done
|
||||
|
||||
remmina --update-profile $REMMINA_PROFILE $R_OPTIONS
|
||||
unset REMMINA_OPTIONS
|
||||
fi
|
||||
}
|
||||
|
||||
options=$(getopt -o gau: -l go,assign,url: -n "$0" -- "$@") || exit
|
||||
eval set -- "$options"
|
||||
|
||||
@ -64,7 +77,8 @@ kasm_startup() {
|
||||
/usr/bin/filter_ready
|
||||
/usr/bin/desktop_ready
|
||||
set +e
|
||||
$START_COMMAND $ARGS $URL
|
||||
update_profile
|
||||
$START_COMMAND $ARGS $URL $REMMINA_PROFILE
|
||||
set -e
|
||||
fi
|
||||
sleep 1
|
||||
|
@ -8,4 +8,138 @@ apt-get update
|
||||
apt-get install -y remmina remmina-plugin-rdp remmina-plugin-secret remmina-plugin-spice xdotool
|
||||
cp /usr/share/applications/org.remmina.Remmina.desktop $HOME/Desktop/
|
||||
chmod +x $HOME/Desktop/org.remmina.Remmina.desktop
|
||||
chown 1000:1000 $HOME/Desktop/org.remmina.Remmina.desktop
|
||||
chown 1000:1000 $HOME/Desktop/org.remmina.Remmina.desktop
|
||||
|
||||
DEFAULT_PROFILE_DIR=$HOME/.local/share/remmina/defaults
|
||||
|
||||
mkdir -p $DEFAULT_PROFILE_DIR
|
||||
cat >> $DEFAULT_PROFILE_DIR/default.vnc.remmina <<EOF
|
||||
[remmina]
|
||||
name=vnc-connection
|
||||
proxy=
|
||||
disableserverbell=0
|
||||
showcursor=0
|
||||
disablesmoothscrolling=0
|
||||
enable-autostart=1
|
||||
colordepth=32
|
||||
ssh_tunnel_certfile=
|
||||
server=
|
||||
ssh_tunnel_enabled=0
|
||||
postcommand=
|
||||
group=
|
||||
quality=9
|
||||
disableencryption=0
|
||||
username=
|
||||
password=
|
||||
ssh_tunnel_loopback=0
|
||||
disablepasswordstoring=0
|
||||
ssh_tunnel_passphrase=
|
||||
viewmode=4
|
||||
window_maximize=0
|
||||
ssh_tunnel_password=
|
||||
viewonly=0
|
||||
notes_text=
|
||||
ssh_tunnel_privatekey=
|
||||
ssh_tunnel_username=
|
||||
keymap=
|
||||
window_height=480
|
||||
ssh_tunnel_auth=0
|
||||
precommand=
|
||||
window_width=640
|
||||
ssh_tunnel_server=
|
||||
protocol=VNC
|
||||
disableserverinput=0
|
||||
ignore-tls-errors=1
|
||||
disableclipboard=0
|
||||
EOF
|
||||
|
||||
cat >> $DEFAULT_PROFILE_DIR/default.rdp.remmina <<EOF
|
||||
[remmina]
|
||||
disableclipboard=0
|
||||
serialpath=
|
||||
drive=
|
||||
disable_fastpath=0
|
||||
disablepasswordstoring=0
|
||||
shareserial=0
|
||||
password=
|
||||
left-handed=0
|
||||
parallelname=
|
||||
gateway_password=
|
||||
sharesmartcard=0
|
||||
old-license=0
|
||||
ssh_tunnel_loopback=0
|
||||
shareprinter=0
|
||||
resolution_height=0
|
||||
group=
|
||||
enable-autostart=0
|
||||
ssh_tunnel_enabled=0
|
||||
smartcardname=
|
||||
gwtransp=http
|
||||
domain=
|
||||
serialname=
|
||||
ssh_tunnel_auth=0
|
||||
ssh_tunnel_server=
|
||||
loadbalanceinfo=
|
||||
ignore-tls-errors=1
|
||||
clientname=
|
||||
base-cred-for-gw=0
|
||||
sound=off
|
||||
freerdp_log_level=INFO
|
||||
resolution_mode=2
|
||||
ssh_tunnel_password=
|
||||
protocol=RDP
|
||||
relax-order-checks=0
|
||||
gateway_username=
|
||||
name=rdp-connection
|
||||
usb=
|
||||
preferipv6=0
|
||||
dvc=
|
||||
websockets=0
|
||||
vc=
|
||||
clientbuild=
|
||||
postcommand=
|
||||
restricted-admin=0
|
||||
quality=0
|
||||
username=
|
||||
gateway_usage=0
|
||||
security=
|
||||
resolution_width=0
|
||||
ssh_tunnel_privatekey=
|
||||
rdp_reconnect_attempts=
|
||||
console=0
|
||||
microphone=
|
||||
ssh_tunnel_passphrase=
|
||||
gateway_server=
|
||||
disableautoreconnect=0
|
||||
ssh_tunnel_username=
|
||||
glyph-cache=0
|
||||
serialpermissive=0
|
||||
network=none
|
||||
ssh_tunnel_certfile=
|
||||
execpath=
|
||||
multitransport=0
|
||||
rdp2tcp=
|
||||
multimon=0
|
||||
audio-output=
|
||||
cert_ignore=0
|
||||
exec=
|
||||
monitorids=
|
||||
span=0
|
||||
pth=
|
||||
freerdp_log_filters=
|
||||
parallelpath=
|
||||
notes_text=
|
||||
printer_overrides=
|
||||
timeout=
|
||||
disable-smooth-scrolling=0
|
||||
serialdriver=
|
||||
precommand=
|
||||
server=
|
||||
useproxyenv=0
|
||||
colordepth=99
|
||||
gateway_domain=
|
||||
shareparallel=0
|
||||
viewmode=4
|
||||
EOF
|
||||
|
||||
chown -R 1000:1000 $DEFAULT_PROFILE_DIR
|
Loading…
Reference in New Issue
Block a user