osic-stacks/scripts/start_server

25 lines
473 B
Plaintext
Raw Normal View History

2023-09-21 05:15:01 +00:00
#!/bin/bash
cd /home/designer
# Run VNC server
eval $(vncserver -dry-run) &
2023-09-29 02:37:28 +00:00
echo -e "${LOGIN_PASSWORD}\n${LOGIN_PASSWORD}\n" | vncpasswd -u ${LOGIN_USER} -w -r
2023-09-21 05:15:01 +00:00
# Wait for VNC server to start
2023-09-25 22:49:37 +00:00
sleep 2
while ! xset q &>/dev/null;
do
echo "XServer not responsive, retrying..."
sleep 2
done
echo "XServer has been found, running desktop environment"
2023-09-21 05:15:01 +00:00
# Run desktop environment (XFCE)
xfce4-session --display=$DISPLAY
volare_set_latest
2023-09-21 05:15:01 +00:00
# Keep container alive
sleep infinity