Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Requirements
- 1 PC computer running Linux(or Windows if you must)
- 1 orange pi
- 1 usb to ethernet converter
- 1 usb-serial converter, usb cable & 3 female to female jumper wires
- 1 5V Power adapter
- ethernet cables as needed
- 1 HDMI cable(optional)
- Download and extract the Armbian Buster image from:
- https://www.armbian.com/orange-pi-one/
- Insert an sdcard into the appropriate slot on your computer
- Open a terminal and execute the lsblk command to identify your sdcard
- Prepare the sdcard with the operating system(substitute "sdb" with the location of your sdcard),
- IMPORTANT: make sure you know what you are writing to, don't just copy the following command.
- sudo dd if=Armbian_21.02.1_Orangepione_buster_current_5.10.12.img of=/dev/sdb bs=512 status='progress'
- [serial terminal]
- plug jumper cable from tx of serial adapter to rx of orangepi
- plug jumper cable from rx of serial adapter to tx of orangepi
- plug jumper cable from gnd to gnd
- plug the usb cable from computer to usb serial adapter
- **Install Screen software(Use Putty if on Windows)**
- sudo apt-get install screen
- **Find your usb adapter**
- ls /dev/tty*
- sudo dmesg | grep tty
- sudo screen /dev/ttyUSB0 115200
- [/serial terminal]
- **Plug everything in**
- Insert the sdcard into the slot on the orangepi until it clicks in
- Insert usb to ethernet adapter into usb slot
- ** don't do this yet if you are a persecuted dissident
- plug in ethernet cables, incoming goes to the ethernet adapter
- **Power it on**
- Plug the power adapter into an outlet and into the power jack on the orangepi.
- OrangePilogin:root
- Password:orangepi (or 1234)
- **resize file system-paste contents of the pastebin into the file, save then then execute it**
- https://pastebin.com/RLFSv7Qs
- sudo nano fsresize.sh
- sudo chmod 777 fsresize.sh
- sudo bash fsresize.sh
- sudo reboot now
- **if you are a persecuted dissident or live in a repressive country/company
- sudo ip link set enx00e04c534458 down
- sudo ip link set dev enx00e04c534458 address aa:a0:12:b3:33:34
- sudo ip link set enx00e04c534458 down
- sudo apt-get update
- sudo apt-get install macchanger
- sudo apt-get install lynx
- **install tor**
- sudo apt-get install tor
- **edit torrc**
- sudo nano /etc/tor/torrc
- Log notice file /var/log/tor/notices.log
- VirtualAddrNetwork 10.192.0.0/10
- AutomapHostsSuffixes .onion,.exit
- AutomapHostsOnResolve 1
- TransPort 192.168.2.1:9040
- DNSPort 192.168.2.1:53
- SocksPort 9040
- SocksBindAddress 127.0.0.1
- AllowUnverifiedNodes middle, rendezvous
- Log notice syslog
- **install dnsmasq**
- sudo apt-get install dnsmasq
- **edit dnsmasq.conf**
- sudo nano /etc/dnsmasq.conf
- interface=eth0
- bind-interfaces
- server=176.103.130.130
- server=45.33.97.5
- #server=1.1.1.1
- domain-needed
- bogus-priv
- dhcp-range=192.168.2.2, 192.168.2.100,12h
- **edit /etc/network/interfaces**
- sudo nano /etc/network/interfaces
- source /etc/network/interfaces.d/*
- allow-hotplug eth0
- iface eth0 inet status
- address 192.168.2.1
- netmask 255.255.255.0
- network 192.168.2.0
- broadcast 192.168.2.255
- **ipv4 forwarding**
- sudo nano /proc/sys/net/ipv4/ip_forward
- Put a 1 on the first line then exit and save
- **create file torroute.sh**
- sudo nano torroute.sh
- **drop the text from this pastebin into it**
- https://pastebin.com/XhcqZ6Vu
- sudo chmod 777 torroute.sh
- **edit rc.local to execute our TOR routing script when the orangepi boots**
- sudo nano /etc/rc.local
- bash /home/a/torroute.sh
- **reboot, and good luck!**
- sudo reboot now
- **troubleshooting in case it's not working**
- **check tor status**
- sudo service tor status
- systemctl status tor@default
- **check dnsmasq**
- systemctl status dnsmasq
- systemctl status dnsmasq.service
- For some reason, you will probably need to unplug the eth0 interface(the orangepi's onboard ethernet plug)
- and reboot the orangepi. Plug it back in when the pi has rebooted and everything should work.
Add Comment
Please, Sign In to add comment