Refactored
This commit is contained in:
+6
-13
@@ -1,16 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
bail()
|
||||
{
|
||||
while true; do
|
||||
sleep 1
|
||||
done;
|
||||
}
|
||||
|
||||
export DISPLAY=:$DISPLAY_NUM
|
||||
echo Display at $DISPLAY
|
||||
exec Xvfb $DISPLAY -screen 0 1024x768x24 >/var/log/xvfb.log &
|
||||
export DISPLAY=:${DISPLAY_NUM}
|
||||
echo Display at ${DISPLAY} with ${SCREEN_W}x${SCREEN_H}x24
|
||||
exec Xvfb ${DISPLAY} -screen 0 ${SCREEN_W}x${SCREEN_H}x24 -shmem -pixdepths 1 4 8 15 16 24 32 -fakescreenfps 60 +xinerama -fbdir /tmp >/var/log/xvfb.log &
|
||||
exec icewm-session -o /var/log/icewm.log &
|
||||
exec socat TCP-LISTEN:60$DISPLAY_NUM,fork,bind=0.0.0.0 UNIX-CONNECT:/tmp/.X11-unix/X$DISPLAY_NUM &
|
||||
exec x11vnc -nowf -display $DISPLAY -forever -noxdamage -shared >/var/log/x11vnc.log 2>&1 &
|
||||
exec bash -
|
||||
exec socat TCP-LISTEN:60${DISPLAY_NUM},fork,bind=0.0.0.0 UNIX-CONNECT:/tmp/.X11-unix/X${DISPLAY_NUM} &
|
||||
exec x11vnc -nowf -display ${DISPLAY} -forever -noxdamage -shared >/var/log/x11vnc.log 2>&1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user