Refactored
This commit is contained in:
+6
-13
@@ -1,16 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
bail()
|
export DISPLAY=:${DISPLAY_NUM}
|
||||||
{
|
echo Display at ${DISPLAY} with ${SCREEN_W}x${SCREEN_H}x24
|
||||||
while true; do
|
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 &
|
||||||
sleep 1
|
|
||||||
done;
|
|
||||||
}
|
|
||||||
|
|
||||||
export DISPLAY=:$DISPLAY_NUM
|
|
||||||
echo Display at $DISPLAY
|
|
||||||
exec Xvfb $DISPLAY -screen 0 1024x768x24 >/var/log/xvfb.log &
|
|
||||||
exec icewm-session -o /var/log/icewm.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 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 x11vnc -nowf -display ${DISPLAY} -forever -noxdamage -shared >/var/log/x11vnc.log 2>&1
|
||||||
exec bash -
|
|
||||||
|
|||||||
Reference in New Issue
Block a user