|
@@ -1,15 +1,20 @@
|
|
|
#!/bin/sh
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
+rm -Rf /tmp/.*
|
|
|
|
|
+rm -Rf /tmp/*
|
|
|
|
|
+rm /etc/xdg/autostart/xscreensaver.desktop
|
|
|
|
|
+
|
|
|
# TODO: change permission more elegant
|
|
# TODO: change permission more elegant
|
|
|
chmod a+rwx /root/baidunetdisk
|
|
chmod a+rwx /root/baidunetdisk
|
|
|
#chmod a+rwx /root/baidunetdiskdownload
|
|
#chmod a+rwx /root/baidunetdiskdownload
|
|
|
-#chmod a+rwx /root/Downloads
|
|
|
|
|
|
|
+chmod a+rwx /root/Downloads
|
|
|
|
|
+echo umask 000 >> /root/.bashrc
|
|
|
|
|
+echo umask 000 >> /root/.profile
|
|
|
|
|
|
|
|
/usr/bin/vncserver -geometry 1600x1200 2>&1
|
|
/usr/bin/vncserver -geometry 1600x1200 2>&1
|
|
|
/opt/noVNC/utils/novnc_proxy --vnc localhost:5901 2>&1 &
|
|
/opt/noVNC/utils/novnc_proxy --vnc localhost:5901 2>&1 &
|
|
|
echo "Access through VNC (5091) or browser (localhost:6080) using password: 12345678."
|
|
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 --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
|
|
exit 0
|
|
|
|
|
|