diff --git a/dockerfile-kasm-core b/dockerfile-kasm-core index 364500c..5edab90 100644 --- a/dockerfile-kasm-core +++ b/dockerfile-kasm-core @@ -44,6 +44,7 @@ ENV DISPLAY=:1 \ LC_ALL=$LC_ALL \ KASMVNC_AUTO_RECOVER=true \ PULSE_RUNTIME_PATH=/var/run/pulse \ + DISTRO=$DISTRO \ SDL_GAMECONTROLLERCONFIG="030000005e040000be02000014010000,XInput Controller,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b8,guide:b16,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:b12,dpdown:b13,dpleft:b14,dpright:b15,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7" EXPOSE $VNC_PORT \ diff --git a/dockerfile-kasm-core-alpine b/dockerfile-kasm-core-alpine index 42d1bf0..5d52401 100644 --- a/dockerfile-kasm-core-alpine +++ b/dockerfile-kasm-core-alpine @@ -63,6 +63,7 @@ ENV DISPLAY=:1 \ SINGLE_APPLICATION=0 \ KASMVNC_AUTO_RECOVER=true \ PULSE_RUNTIME_PATH=/var/run/pulse \ + DISTRO=$DISTRO \ SDL_GAMECONTROLLERCONFIG="030000005e040000be02000014010000,XInput Controller,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b8,guide:b16,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:b12,dpdown:b13,dpleft:b14,dpright:b15,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7" EXPOSE $VNC_PORT \ diff --git a/dockerfile-kasm-core-centos b/dockerfile-kasm-core-centos index 6124774..86264f5 100644 --- a/dockerfile-kasm-core-centos +++ b/dockerfile-kasm-core-centos @@ -58,6 +58,7 @@ ENV DISPLAY=:1 \ SINGLE_APPLICATION=0 \ KASMVNC_AUTO_RECOVER=true \ PULSE_RUNTIME_PATH=/var/run/pulse \ + DISTRO=$DISTRO \ SDL_GAMECONTROLLERCONFIG="030000005e040000be02000014010000,XInput Controller,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b8,guide:b16,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:b12,dpdown:b13,dpleft:b14,dpright:b15,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7" EXPOSE $VNC_PORT \ diff --git a/dockerfile-kasm-core-fedora b/dockerfile-kasm-core-fedora index 28b0f03..8020d17 100644 --- a/dockerfile-kasm-core-fedora +++ b/dockerfile-kasm-core-fedora @@ -62,6 +62,7 @@ ENV DISPLAY=:1 \ SINGLE_APPLICATION=0 \ KASMVNC_AUTO_RECOVER=true \ PULSE_RUNTIME_PATH=/var/run/pulse \ + DISTRO=$DISTRO \ SDL_GAMECONTROLLERCONFIG="030000005e040000be02000014010000,XInput Controller,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b8,guide:b16,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:b12,dpdown:b13,dpleft:b14,dpright:b15,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7" EXPOSE $VNC_PORT \ diff --git a/dockerfile-kasm-core-oracle b/dockerfile-kasm-core-oracle index a410361..07176b4 100644 --- a/dockerfile-kasm-core-oracle +++ b/dockerfile-kasm-core-oracle @@ -67,6 +67,7 @@ ENV DISPLAY=:1 \ SINGLE_APPLICATION=0 \ KASMVNC_AUTO_RECOVER=true \ PULSE_RUNTIME_PATH=/var/run/pulse \ + DISTRO=$DISTRO \ SDL_GAMECONTROLLERCONFIG="030000005e040000be02000014010000,XInput Controller,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b8,guide:b16,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:b12,dpdown:b13,dpleft:b14,dpright:b15,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7" EXPOSE $VNC_PORT \ diff --git a/dockerfile-kasm-core-suse b/dockerfile-kasm-core-suse index dce4449..1204318 100644 --- a/dockerfile-kasm-core-suse +++ b/dockerfile-kasm-core-suse @@ -62,6 +62,7 @@ ENV DISPLAY=:1 \ SINGLE_APPLICATION=0 \ KASMVNC_AUTO_RECOVER=true \ PULSE_RUNTIME_PATH=/var/run/pulse \ + DISTRO=$DISTRO \ SDL_GAMECONTROLLERCONFIG="030000005e040000be02000014010000,XInput Controller,platform:Linux,a:b0,b:b1,x:b2,y:b3,back:b8,guide:b16,start:b9,leftstick:b10,rightstick:b11,leftshoulder:b4,rightshoulder:b5,dpup:b12,dpdown:b13,dpleft:b14,dpright:b15,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b6,righttrigger:b7" EXPOSE $VNC_PORT \ diff --git a/src/common/startup_scripts/vnc_startup.sh b/src/common/startup_scripts/vnc_startup.sh index 14b80b4..6418b20 100755 --- a/src/common/startup_scripts/vnc_startup.sh +++ b/src/common/startup_scripts/vnc_startup.sh @@ -62,12 +62,12 @@ function start_kasmvnc (){ || echo "no locks present" fi - rm -rf $HOME/.vnc/*.pid - echo "exit 0" > $HOME/.vnc/xstartup - chmod +x $HOME/.vnc/xstartup + rm -rf $HOME/.vnc/*.pid + echo "exit 0" > $HOME/.vnc/xstartup + chmod +x $HOME/.vnc/xstartup - VNCOPTIONS="$VNCOPTIONS -select-de manual" - if [[ "${BUILD_ARCH}" =~ ^aarch64$ ]] && [[ -f /lib/aarch64-linux-gnu/libgcc_s.so.1 ]] ; then + VNCOPTIONS="$VNCOPTIONS -select-de manual" + if [[ "${BUILD_ARCH}" =~ ^aarch64$ ]] && [[ -f /lib/aarch64-linux-gnu/libgcc_s.so.1 ]] ; then LD_PRELOAD=/lib/aarch64-linux-gnu/libgcc_s.so.1 vncserver $DISPLAY $KASMVNC_HW3D -drinode $DRINODE -depth $VNC_COL_DEPTH -geometry $VNC_RESOLUTION -websocketPort $NO_VNC_PORT -httpd ${KASM_VNC_PATH}/www -sslOnly -FrameRate=$MAX_FRAME_RATE -interface 0.0.0.0 -BlacklistThreshold=0 -FreeKeyMappings $VNCOPTIONS $KASM_SVC_SEND_CUT_TEXT $KASM_SVC_ACCEPT_CUT_TEXT else vncserver $DISPLAY $KASMVNC_HW3D -drinode $DRINODE -depth $VNC_COL_DEPTH -geometry $VNC_RESOLUTION -websocketPort $NO_VNC_PORT -httpd ${KASM_VNC_PATH}/www -sslOnly -FrameRate=$MAX_FRAME_RATE -interface 0.0.0.0 -BlacklistThreshold=0 -FreeKeyMappings $VNCOPTIONS $KASM_SVC_SEND_CUT_TEXT $KASM_SVC_ACCEPT_CUT_TEXT @@ -75,6 +75,16 @@ function start_kasmvnc (){ KASM_PROCS['kasmvnc']=$(cat $HOME/.vnc/*${DISPLAY_NUM}.pid) + #Disable X11 Screensaver + if [ "${DISTRO}" != "alpine" ]; then + echo "Disabling X Screensaver Functionality" + xset -dpms + xset s off + xset q + else + echo "Disabling of X Screensaver Functionality for $DISTRO is not required." + fi + if [[ $DEBUG == true ]]; then echo -e "\n------------------ Started Websockify ----------------------------" echo "Websockify PID: ${KASM_PROCS['kasmvnc']}"; diff --git a/src/ubuntu/install/xfce/install_xfce_ui.sh b/src/ubuntu/install/xfce/install_xfce_ui.sh index 4c6b2f0..643f9e7 100644 --- a/src/ubuntu/install/xfce/install_xfce_ui.sh +++ b/src/ubuntu/install/xfce/install_xfce_ui.sh @@ -10,19 +10,6 @@ disable_epel_nss_wrapper_that_breaks_firefox() { yum-config-manager --setopt=epel.exclude=nss_wrapper --save } -config_xinit_disable_screensaver() { - mkdir -p /etc/X11/xinit/xinitrc.d/ - cat >/etc/X11/xinit/xinitrc.d/disable_screensaver.sh <