-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstartup.bash
More file actions
26 lines (21 loc) · 757 Bytes
/
startup.bash
File metadata and controls
26 lines (21 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Cleanup from past vnc session that may hav been running in the container.
# This clean-up is not done when the container is stopped (not deleted).
rm /tmp/.X11-unix/X1
rm /tmp/.X1-lock
# Launch the VNC server
vncserver \
-localhost no \
-geometry 1024x768 -depth 16 \
-SecurityTypes None --I-KNOW-THIS-IS-INSECURE
# Launch the noVNC server.
/usr/share/novnc/utils/launch.sh --vnc localhost:5901 --listen 6901 &
# Check if the .contconf/launch.bash script exists and if it does
# then run it here. This allows images that use this as a base
# to insert a script that will run on startup.
if [ -f /home/student/.contconf/launch.bash ];
then
echo "Running launch.bash"
source /home/student/.contconf/launch.bash
fi
sleep infinity