forked from biolab/orange-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
16 lines (11 loc) · 758 Bytes
/
init.sh
File metadata and controls
16 lines (11 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# start TigerVNC server (also creates a virtual display and starts Fluxbox window manager)
vncserver :0 -geometry 1920x1080 -depth 24 -localhost -nolisten tcp -rfbport 5900 --disconnectClients=0 --neverShared="$(( ${SHARED} ^ 1 ))"
# generate self-signed certificate for SSL/TLS encryption
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem -subj "/C=US/ST=/L=/O=/CN="
# start noVNC
novnc_proxy --vnc localhost:5900 --listen 6080 --web /usr/share/novnc --ssl-only --file-only &
# start orange-canvas, QT_AUTO_SCREEN_SCALE_FACTOR=0 is to prevent crashing when loading add-ons
QT_AUTO_SCREEN_SCALE_FACTOR=0 orange-canvas --no-splash --no-welcome &
# keep the container running even through restarts of Orange
sleep infinity