Skip to content

Commit 63e980e

Browse files
committed
ngc-matlab: It works only if client proxy host/port must match
* We need to vncserver/novnc to *ignore* host/port differences...
1 parent 0d774c6 commit 63e980e

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,5 +383,7 @@ def main(build, list_builds, _auto_push):
383383

384384
build_kernel('vendor/ngc-rapids', '0.5-rapids-py3')
385385

386+
build_kernel('vendor/ngc-matlab', 'r2019b')
387+
386388
if __name__ == '__main__':
387389
main()
File renamed without changes.

vendor/ngc-matlab/bootstrap.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
#! /bin/sh
22
# reference: /bin/run.sh
33

4-
SUEXEC="/opt/kernel/su-exec $USER_ID:$GROUP_ID"
5-
4+
echo "Setting up noVNC auto-connection"
65
rm /opt/noVNC/index.html
76
ln -s /opt/noVNC/redirect.html /opt/noVNC/index.html
87

98
rm -rf /tmp/.X*
109

11-
"$SUEXEC" /usr/bin/vncserver -geometry 1600x1200 > /dev/null 2>&1
10+
echo "Starting background VNC server"
11+
export PASSWORD=matlab
12+
printf "${PASSWORD}\n${PASSWORD}\n\n" | /opt/kernel/su-exec $LOCAL_USER_ID:$LOCAL_GROUP_ID vncpasswd
13+
14+
ls -al /home/work
15+
/opt/kernel/su-exec $LOCAL_USER_ID:$LOCAL_GROUP_ID /usr/bin/vncserver -geometry 1600x1200
16+
17+
echo "VNC server is started."
1218

1319
# The next line is executed by the kernel runner's service port handler.
1420
# "$SUEXEC" /opt/noVNC/utils/launch.sh --listen 6080 --vnc localhost:5901 > /dev/null 2>&1 &

0 commit comments

Comments
 (0)