参考:
https://www.e-learn.cn/topic/3245124 设置route.
https://www.lolimay.cn/2018/10/14/autostart-in-deepin/ 第二种rc.local的办法进行自启动。
route、sslocal都成功了。
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
route del -net default netmask 0.0.0.0 dev eno1
route del -net default netmask 0.0.0.0 dev enp5s0
/usr/bin/sslocal -c /etc/shadowsocks/config.json &
#x11vnc -auth guess /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5900 &
x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/zli/.vnc/passwd -rfbport 5900 -shared &
#/usr/bin/x11vnc -forever -shared -rfbauth /home/zli/.vnc/passwd &
/home/zli/frp_0.34.3_linux_amd64/frpc -c /home/zli/frp_0.34.3_linux_amd64/frpc.ini &
/home/zli/frp_0.34.3_linux_amd64/frps -c /home/zli/frp_0.34.3_linux_amd64/frps.ini &
exit 0
对于有输出的命令来讲,要用&,不然无法执行下一条命令。
x11vncserver是在商店下的。