diff options
author | Simon Rettberg | 2020-04-27 14:10:27 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-04-27 14:10:27 +0200 |
commit | 5b1d0316b577d5e6229ec31023447e6db7e73c28 (patch) | |
tree | 59ac4d183a368250a88562d9ba70993921dc9fff /core/modules | |
parent | [nvidia-common] Don't redownload supportedchips.html all the time (diff) | |
download | mltk-5b1d0316b577d5e6229ec31023447e6db7e73c28.tar.gz mltk-5b1d0316b577d5e6229ec31023447e6db7e73c28.tar.xz mltk-5b1d0316b577d5e6229ec31023447e6db7e73c28.zip |
[vmware-common] Support enabling the internal VNC server
Diffstat (limited to 'core/modules')
-rw-r--r-- | core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc index a3be118b..bf999df8 100644 --- a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc +++ b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc @@ -201,6 +201,17 @@ setup_isolation() { HEREEND } +setup_vnc() { + local passwd="$( cat /tmp/vnc-passwd )" + [ -z "$passwd" ] && return + cat >> "${TMPCONFIG}" <<-HEREEND + RemoteDisplay.vnc.enabled = "TRUE" + RemoteDisplay.vnc.port = "5901" + RemoteDisplay.vnc.password = "$passwd" + RemoteDisplay.vnc.keymap = "de" + HEREEND +} + # Serial, parallel: Empty, nothing is being currently set. TODO later. setup_graphics() { @@ -289,6 +300,7 @@ write_final_vmx() { [ "x$HGFS_DISABLED" = "xFALSE" ] && setup_shared_folders setup_isolation setup_graphics + [[ " $SLX_REMOTE_VNC " == *" vmware "* ]] && setup_vnc finalize_hardware # At last: Let's copy it to $VM_CONF_DIR/run-vmware.conf |