mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2025-06-26 06:51:45 +02:00
Merge branch 'bugfix/KASM-4160_blank_screen' into 'develop'
KASM-4160 blank screen Closes KASM-4160 See merge request kasm-technologies/internal/workspaces-core-images!113
This commit is contained in:
commit
2f832eba98
@ -44,6 +44,7 @@ ENV DISPLAY=:1 \
|
|||||||
LC_ALL=$LC_ALL \
|
LC_ALL=$LC_ALL \
|
||||||
KASMVNC_AUTO_RECOVER=true \
|
KASMVNC_AUTO_RECOVER=true \
|
||||||
PULSE_RUNTIME_PATH=/var/run/pulse \
|
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"
|
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 \
|
EXPOSE $VNC_PORT \
|
||||||
|
@ -63,6 +63,7 @@ ENV DISPLAY=:1 \
|
|||||||
SINGLE_APPLICATION=0 \
|
SINGLE_APPLICATION=0 \
|
||||||
KASMVNC_AUTO_RECOVER=true \
|
KASMVNC_AUTO_RECOVER=true \
|
||||||
PULSE_RUNTIME_PATH=/var/run/pulse \
|
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"
|
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 \
|
EXPOSE $VNC_PORT \
|
||||||
|
@ -58,6 +58,7 @@ ENV DISPLAY=:1 \
|
|||||||
SINGLE_APPLICATION=0 \
|
SINGLE_APPLICATION=0 \
|
||||||
KASMVNC_AUTO_RECOVER=true \
|
KASMVNC_AUTO_RECOVER=true \
|
||||||
PULSE_RUNTIME_PATH=/var/run/pulse \
|
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"
|
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 \
|
EXPOSE $VNC_PORT \
|
||||||
|
@ -62,6 +62,7 @@ ENV DISPLAY=:1 \
|
|||||||
SINGLE_APPLICATION=0 \
|
SINGLE_APPLICATION=0 \
|
||||||
KASMVNC_AUTO_RECOVER=true \
|
KASMVNC_AUTO_RECOVER=true \
|
||||||
PULSE_RUNTIME_PATH=/var/run/pulse \
|
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"
|
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 \
|
EXPOSE $VNC_PORT \
|
||||||
|
@ -67,6 +67,7 @@ ENV DISPLAY=:1 \
|
|||||||
SINGLE_APPLICATION=0 \
|
SINGLE_APPLICATION=0 \
|
||||||
KASMVNC_AUTO_RECOVER=true \
|
KASMVNC_AUTO_RECOVER=true \
|
||||||
PULSE_RUNTIME_PATH=/var/run/pulse \
|
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"
|
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 \
|
EXPOSE $VNC_PORT \
|
||||||
|
@ -62,6 +62,7 @@ ENV DISPLAY=:1 \
|
|||||||
SINGLE_APPLICATION=0 \
|
SINGLE_APPLICATION=0 \
|
||||||
KASMVNC_AUTO_RECOVER=true \
|
KASMVNC_AUTO_RECOVER=true \
|
||||||
PULSE_RUNTIME_PATH=/var/run/pulse \
|
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"
|
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 \
|
EXPOSE $VNC_PORT \
|
||||||
|
@ -75,6 +75,16 @@ function start_kasmvnc (){
|
|||||||
|
|
||||||
KASM_PROCS['kasmvnc']=$(cat $HOME/.vnc/*${DISPLAY_NUM}.pid)
|
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
|
if [[ $DEBUG == true ]]; then
|
||||||
echo -e "\n------------------ Started Websockify ----------------------------"
|
echo -e "\n------------------ Started Websockify ----------------------------"
|
||||||
echo "Websockify PID: ${KASM_PROCS['kasmvnc']}";
|
echo "Websockify PID: ${KASM_PROCS['kasmvnc']}";
|
||||||
|
@ -10,19 +10,6 @@ disable_epel_nss_wrapper_that_breaks_firefox() {
|
|||||||
yum-config-manager --setopt=epel.exclude=nss_wrapper --save
|
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 <<EOL
|
|
||||||
#!/bin/sh
|
|
||||||
set -x
|
|
||||||
xset -dpms
|
|
||||||
xset s off
|
|
||||||
xset q
|
|
||||||
EOL
|
|
||||||
|
|
||||||
chmod +x /etc/X11/xinit/xinitrc.d/disable_screensaver.sh
|
|
||||||
}
|
|
||||||
|
|
||||||
replace_default_xinit() {
|
replace_default_xinit() {
|
||||||
|
|
||||||
mkdir -p /etc/X11/xinit
|
mkdir -p /etc/X11/xinit
|
||||||
@ -173,13 +160,10 @@ else
|
|||||||
/tmp/*
|
/tmp/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${DISTRO}" == @(centos|oracle7|oracle8|fedora37|oracle9|rockylinux9|rockylinux8|almalinux8|almalinux9) ]]; then
|
if [[ "${DISTRO}" == @(centos|oracle7|oracle8|fedora37|oracle9|rockylinux9|rockylinux8|almalinux8|almalinux9|alpine) ]]; then
|
||||||
config_xinit_disable_screensaver
|
|
||||||
elif [ "${DISTRO}" == "alpine" ]; then
|
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
replace_default_xinit
|
replace_default_xinit
|
||||||
config_xinit_disable_screensaver
|
|
||||||
if [ "${START_XFCE4}" == "1" ] ; then
|
if [ "${START_XFCE4}" == "1" ] ; then
|
||||||
replace_default_99x11_common_start
|
replace_default_99x11_common_start
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user