You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
2.0 KiB
57 lines
2.0 KiB
1 sudo vim /etc/netplan/01-network-manager-all.yaml
|
|
2 sudo netplan apply
|
|
3 ping 8.8.8.8
|
|
4 sudo vim /etc/sysctl.conf
|
|
5 sudo sysctl -p
|
|
6 sudo sysctl net.ipv4.ip_forward
|
|
7 ls
|
|
8 mkdir space
|
|
9 cd space/
|
|
10 ls
|
|
11 vim setup_socks.sh
|
|
12 chmod +x setup_socks.sh
|
|
13 ls
|
|
14 ./setup_socks.sh
|
|
15 sudo apt install git -y
|
|
16 cat setup_socks.sh
|
|
17 sudo git clone https://github.com/shadowsocks/shadowsocks-libev.git
|
|
18 cd shadowsocks-libev/
|
|
19 ls
|
|
20 git submodule update --init
|
|
21 sudo git submodule update --init
|
|
22 ./autogen.sh && ./configure && make && make install
|
|
23 sudo ./autogen.sh && ./configure && make && make install
|
|
24 sudo ./configure
|
|
25 sudo make
|
|
26 ./autogen.sh && ./configure && make && make install
|
|
27 sudo adduser --system --no-create-home --group shadowsocks
|
|
28 mkdir -m 755 /etc/shadowsocks
|
|
29 sudo mkdir -m 755 /etc/shadowsocks
|
|
30 sudo vim /etc/shadowsocks/shadowsocks.json
|
|
31 sudo vim /etc/sysctl.conf
|
|
32 sudo sysctl -p
|
|
33 sudo vim /etc/systemd/system/shadowsocks.service
|
|
34 sudo systemctl daemon-reload
|
|
35 sudo systemctl enable shadowsocks
|
|
36 sudo systemctl start shadowsocks
|
|
37 sudo ufw allow proto tcp 0.0.0.0/0 port 8080 comment "Shadowsocks"
|
|
38 sudo ufw allow proto tcp 0.0.0.0/0 port 8080
|
|
39 sudo ufw allow 8080/tcp
|
|
40 sudo ufw status
|
|
41 sudo systemctl status shadowsocks
|
|
42 ls /usr/local/bin/
|
|
43 sudo ls /usr/local/bin/
|
|
44 sudo find / -name "ss-server"
|
|
45 ls src/
|
|
46 ls src/ss-server
|
|
47 cp -v src/ss-server /usr/local/bin/
|
|
48 sudo cp -v src/ss-server /usr/local/bin/
|
|
49 sudo systemctl stop shadowsocks
|
|
50 sudo systemctl status shadowsocks
|
|
62 sudo ufw allow 8080
|
|
63 ip a
|
|
64 sudo systemctl status shadowsocks
|
|
65 sudo vim /etc/shadowsocks/shadowsocks.json
|
|
66 sudo systemctl stop shadowsocks
|
|
67 sudo systemctl start shadowsocks
|
|
68 sudo systemctl status shadowsocks
|