-Flash sd with `https://xogium.performanceservers.nl/archive/nanopiduo2/archive/Armbian_21.02.3_Nanopiduo2_buster_current_5.10.21.img.xz` ----------- -Set serial terminal ----------- -Devices manager on Windows COMX baud 115200 flow XON/XOFF -Putty serial COMX baud 115200 flow XON/XOFF -Set new password -------- -Fixing the static IP for usb0 g_ether (https://forum.armbian.com/topic/12200-g_ether-on-nanopi-neo-plus-2/): -------- -Edit `/etc/modules`: ``` nano /etc/modules ``` -Add this: ``` dwc2 g_ether ``` -Edit `/etc/modprobe.d/g_ether.conf`: ``` nano /etc/modprobe.d/g_ether.conf ``` -Add this: ``` options g_ether hostaddr=00:11:22:33:44:55 ``` -Create `/etc/network/interfaces.d/usb0`: ``` nano /etc/network/interfaces.d/usb0 ``` Add this: ``` auto usb0 iface usb0 inet static address 10.0.0.2 netmask 255.255.255.0 gateway 10.0.0.1 ``` -Edit `/etc/resolv.conf`: ``` nano /etc/resolv.conf ``` -Add this: ``` nameserver 8.8.8.8 ``` -Reboot: ``` reboot now ``` -Stop internet sharing and start it again on windows. -Verify the config with `ifconfig usb0`. -Share internet on windows: -------- -Go to: Control Panel\Network and Internet\Network Connections -Adapter_source > Properties > Sharing > Internet Connection Sharing > Allow > select the rndis adapter -Verify the internet connection: ``` ping google.com ``` -Fix the buster repos: -------- ``` apt-get update --allow-releaseinfo-change apt update ``` -Install kernel headers, verify if the `/lib/modules//build` is present -------- ``` apt-get install linux-headers-current-sunxi=21.02.3 ``` *the /lib/modules/5.10.21-sunxi/build is present ``` ls -al /lib/modules/5.10.21-sunxi ``` -Freeze the kernel: -------- ``` apt-mark hold linux-image-current-sunxi apt-mark hold linux-headers-current-sunxi apt-mark hold linux-u-boot-nanopiduo2-current-sunxi apt-mark hold linux-dtb-current-sunxi apt-mark hold armbian-firmware ``` -Install Nexmon firmware: -------- ``` wget https://github.com/V0r-T3x/MyLittlePwny/raw/main/scripts/nexmon.sh sudo chmod 755 nexmon.sh ``` -Download install scripts and make them exec. -------- ``` wget https://raw.githubusercontent.com/V0r-T3x/MyLittlePwny/main/scripts/pwny_install_part1.sh wget https://raw.githubusercontent.com/V0r-T3x/MyLittlePwny/main/scripts/pwny_install_part2.sh wget https://raw.githubusercontent.com/V0r-T3x/MyLittlePwny/main/scripts/pwny_install_part3.sh sudo chmod 755 pwny_install_part1.sh sudo chmod 755 pwny_install_part2.sh sudo chmod 755 pwny_install_part3.sh ``` -Install the pwnagotchi: -------- -Start the two first steps: ``` ./pwny_install_part1.sh ./pwny_install_part2.sh ``` -Armbian should reboot after the second part. -Star the third part: ``` ./pwny_install_part3.sh ``` -Reverse back the g_ether old config -------- -Remove `/etc/modprobe.d/g_ether.conf`: ``` rm /etc/modprobe.d/g_ether.conf ``` -Remove `/etc/network/interfaces.d/usb0`: ``` rm /etc/network/interfaces.d/usb0 ```