-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 -------- -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 ``` -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`: ``` echo `options g_ether hostaddr=00:11:22:33:44:55` >> /etc/modprobe.d/g_ether.conf ``` -Create `/etc/network/interfaces.d/usb0`: ``` auto usb0 iface usb0 inet static address 10.0.0.2 netmask 255.255.255.0 gateway 10.0.0.1 ``` -Add this to `/etc/rc.local`: ``` sudo ifconfig usb0 up sudo ifconfig usb0 10.0.0.2 ``` -Edit `/etc/resolv.conf`: ``` nameserver 8.8.8.8 ``` -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/V0r-T3x/MyLittlePwny/main/scripts/pwny_install_part1 ``` -Fix the buster repos: -------- ``` apt-get update --allow-releaseinfo-change ``` -Install kernel headers: -------- -Open armbian-config: ``` armbian-config ``` -Software > Headers_install -Install the pwnagotchi: -------- -Star 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 ```