- #!/bin/sh
- # TODO: change permission more elegant
- chmod a+rwx /root/baidunetdisk
- #chmod a+rwx /root/baidunetdiskdownload
- #chmod a+rwx /root/Downloads
- /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
- #DISPLAY=:1 /opt/baidunetdisk/baidunetdisk --type=renderer --no-sandbox --enable-features=WebComponentsV0Enabled --disable-features=SpareRendererForSitePerProcess --lang=en-US --app-path=/opt/baidunetdisk/resources/app.asar --node-integration --node-integration-in-worker --webview-tag --no-sandbox --no-zygote --enable-remote-module --background-color=#F6F6F6 --enable-spellcheck --enable-websql --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --no-v8-untrusted-code-mitigations --shared-files=v8_snapshot_data:100 2>&1
- exit 0
|