#!/bin/sh # 2022-006-08 lc: # add the next 3 lines to clean up .xlock files in tmp directories before # starting xwindows, without this step the container will go core dump # and prevent xscreensaver from running rm -Rf /tmp/.* rm -Rf /tmp/* #rm /etc/xdg/autostart/xscreensaver.desktop # TODO: change permission more elegant chmod a+rwx /root/baidunetdisk #chmod a+rwx /root/baidunetdiskdownload chmod a+rwx /root/Downloads echo umask 000 >> /root/.bashrc echo umask 000 >> /root/.profile /usr/bin/vncserver -geometry 1600x1200 2>&1 /opt/noVNC/utils/novnc_proxy --vnc localhost:5901 2>&1 & echo "Access through VNC (5091) or browser (localhost:6080) using password: 12345678." DISPLAY=:1 /opt/baidunetdisk/baidunetdisk --no-sandbox 2>&1 exit 0