Browse Source

shadowsocks setup and Android rooting steps

master
Beau Kujath 1 year ago
parent
commit
37241c4c9e
  1. 30
      root-android/README.md
  2. 41
      socks_setup/README.md
  3. 57
      socks_setup/history_setup.txt
  4. 21
      socks_setup/setup_socks.sh

30
root-android/README.md

@ -0,0 +1,30 @@
## Steps to root Android (Google Pixel4a-sunfish <Android 13>)
1. Enable dev options by tapping build number 7 times
2. Enable usb debugging and OEM unlocking in developer options panel from in Syste
3. Make note of build number at About phone -> Build number = TPIA.221105.002
4. Download full image for build from: https://developersd.google.com/android/ota#sunfish
5. Install fastboot: apt install fastboot and adb
6. Reboot to bootloader: adb reboot bootloader
7. Make sure fastboot is connected: fastboot devices
8. fastboot flashing unlock
9. Sideload Magisk apk: adb -s $(adb devices) install ~/Downloads/Magisk.apk/, URL: https://github.com/topjohnwu/Magisk/releases/tag/v26.1
10. Patch the downloaded factory image file in Magisk: Magisk -> Install -> Select and patch a file -> Select the unzipped boot.img file (Note: Within original zip for factory image there is another zip that boot.img is within)
11. Hit lets go to let Magisk patch image -> Wait for path of new image file on device to be printed if it worked
12. Pull patched image to desktop: Adb pull /storage/emulated/0/Download/magisk_patched-26100_zEIYy.img ./
13. Adb devices -> fastboot devices
14. Fastboot boot ~/Desktop/magisk_patched-26100.img
15. Root permanently via Direct Install from Magisk: Open Magisk app -> Install Direct (Recommended) -> wait and reboot
16. Verify root after reboot from desktop: “adb shell” -> “su” -> “whoami”
17. Install this ZIP as Magisk module to trust user certs and system certs: https://github.com/NVISOsecurity/MagiskTrustUserCerts/releases

41
socks_setup/README.md

@ -0,0 +1,41 @@
## Steps to setup Linux as BPB shadowsocks client
1. Install shadowsocks client: 'sudo apt-get install shadowsocks-libev'
2. Disable the automatically started service:
sudo systemctl stop shadowsocks-libev
sudo systemctl disable shadowsocks-libev
3. Make local shadowsocks config file: `sudo vim /etc/shadowsocks-libev/local-config.json`
4. Add in bpb server setup:
```
{
"server": "207.246.62.210",
"mode": "tcp_and_udp",
"server_port": 8080,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "socksrocks",
"timeout": 60,
"method": "aes-256-gcm"
}
```
Start the shadowsocks service: `sudo systemctl start shadowsocks-libev-local@local-config.service`
Check the status: `sudo systemctl status shadowsocks-libev-local@local-config.service`
Enable service on system startup: `sudo systemctl enable shadowsocks-libev-local@local-config.service`
Verify it is working: `url --proxy socks5://127.0.0.1:1080 https://ifconfig.me`

57
socks_setup/history_setup.txt

@ -0,0 +1,57 @@
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

21
socks_setup/setup_socks.sh

@ -0,0 +1,21 @@
#!/bin/bash
#
sudo apt-get install --no-install-recommends build-essential autoconf libtool \
libssl-dev gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc \
xmlto apg libpcre3-dev zlib1g-dev libev-dev libudns-dev libsodium-dev libmbedtls-dev libc-ares-dev automake -y
sudo git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev/
git submodule update --init
./autogen.sh && ./configure && make && make install
Loading…
Cancel
Save