| 12345678910111213141516171819202122 |
- #!/bin/sh
- 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
|