$ sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev
$ sudo apt update
$ sudo apt install shadowsocks-libev
$ sudo vi /etc/rc.local
Copy the following code to your rc.local
:
#!/bin/bash
# rc.local config file created by upupming
# replace 'xxxx' to your own settings
ss-local -s 1.1.1.1 -p xxxx -l xxxx -k xxxx -m xxxx &
exit 0
$ sudo chmod +x /etc/rc.local
sudo vi /etc/systemd/system/rc-local.service
Copy the following code to this file:
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
$ sudo systemctl enable rc-local.service