stardew-multiplayer-docker/docker/docker-entrypoint.sh

18 lines
502 B
Bash
Raw Normal View History

2020-04-06 23:36:11 +00:00
#!/bin/bash
2020-04-07 02:40:06 +00:00
if [ -f /tmp/.X10-lock ]; then rm /tmp/.X10-lock; fi
2020-04-07 01:52:52 +00:00
Xvfb :10 -screen 0 1580x920x24 -ac &
while [ ! -z "`xdpyinfo -display :10 2>&1 | grep 'unable to open display'`" ]; do
echo Waiting for display;
sleep 5;
done
2020-04-07 03:45:08 +00:00
export DISPLAY=:10.0
2020-04-07 03:20:53 +00:00
x11vnc -display :10 -rfbport 5900 -rfbportv6 -1 -no6 -noipv6 -httpportv6 -1 -forever -desktop StardewValley -cursor arrow -passwd $VNCPASS -shared &
2020-04-07 00:25:05 +00:00
sleep 5
2020-04-06 23:36:11 +00:00
i3 &
2020-04-07 02:40:06 +00:00
export XAUTHORITY=~/.Xauthority
2020-04-06 23:36:11 +00:00
TERM=xterm
/data/Stardew/Stardew\ Valley/StardewValley