RE env for inspecting APKs
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

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