baidunetdisk_entrypoint.sh 548 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. rm -Rf /tmp/.*
  3. rm -Rf /tmp/*
  4. #rm /etc/xdg/autostart/xscreensaver.desktop
  5. # TODO: change permission more elegant
  6. chmod a+rwx /root/baidunetdisk
  7. #chmod a+rwx /root/baidunetdiskdownload
  8. chmod a+rwx /root/Downloads
  9. echo umask 000 >> /root/.bashrc
  10. echo umask 000 >> /root/.profile
  11. /usr/bin/vncserver -geometry 1600x1200 2>&1
  12. /opt/noVNC/utils/novnc_proxy --vnc localhost:5901 2>&1 &
  13. echo "Access through VNC (5091) or browser (localhost:6080) using password: 12345678."
  14. DISPLAY=:1 /opt/baidunetdisk/baidunetdisk --no-sandbox 2>&1
  15. exit 0