Guest User

orangepitormaster

a guest
Mar 18th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. Requirements
  2.  
  3. 1 PC computer running Linux(or Windows if you must)
  4. 1 orange pi
  5. 1 usb to ethernet converter
  6. 1 usb-serial converter, usb cable & 3 female to female jumper wires
  7. 1 5V Power adapter
  8. ethernet cables as needed
  9. 1 HDMI cable(optional)
  10.  
  11. Download and extract the Armbian Buster image from:
  12. https://www.armbian.com/orange-pi-one/
  13.  
  14. Insert an sdcard into the appropriate slot on your computer
  15.  
  16. Open a terminal and execute the lsblk command to identify your sdcard
  17.  
  18. Prepare the sdcard with the operating system(substitute "sdb" with the location of your sdcard),
  19. IMPORTANT: make sure you know what you are writing to, don't just copy the following command.
  20.  
  21. sudo dd if=Armbian_21.02.1_Orangepione_buster_current_5.10.12.img of=/dev/sdb bs=512 status='progress'
  22.  
  23. [serial terminal]
  24. plug jumper cable from tx of serial adapter to rx of orangepi
  25. plug jumper cable from rx of serial adapter to tx of orangepi
  26. plug jumper cable from gnd to gnd
  27. plug the usb cable from computer to usb serial adapter
  28.  
  29. **Install Screen software(Use Putty if on Windows)**
  30. sudo apt-get install screen
  31.  
  32. **Find your usb adapter**
  33. ls /dev/tty*
  34. sudo dmesg | grep tty
  35. sudo screen /dev/ttyUSB0 115200
  36. [/serial terminal]
  37.  
  38. **Plug everything in**
  39. Insert the sdcard into the slot on the orangepi until it clicks in
  40. Insert usb to ethernet adapter into usb slot
  41. ** don't do this yet if you are a persecuted dissident
  42. plug in ethernet cables, incoming goes to the ethernet adapter
  43.  
  44. **Power it on**
  45. Plug the power adapter into an outlet and into the power jack on the orangepi.
  46.  
  47. OrangePilogin:root
  48. Password:orangepi (or 1234)
  49.  
  50.  
  51. **resize file system-paste contents of the pastebin into the file, save then then execute it**
  52. https://pastebin.com/RLFSv7Qs
  53. sudo nano fsresize.sh
  54. sudo chmod 777 fsresize.sh
  55. sudo bash fsresize.sh
  56. sudo reboot now
  57.  
  58. **if you are a persecuted dissident or live in a repressive country/company
  59. sudo ip link set enx00e04c534458 down
  60. sudo ip link set dev enx00e04c534458 address aa:a0:12:b3:33:34
  61. sudo ip link set enx00e04c534458 down
  62.  
  63. sudo apt-get update
  64.  
  65. sudo apt-get install macchanger
  66.  
  67. sudo apt-get install lynx
  68.  
  69. **install tor**
  70. sudo apt-get install tor
  71.  
  72. **edit torrc**
  73. sudo nano /etc/tor/torrc
  74.  
  75. Log notice file /var/log/tor/notices.log
  76. VirtualAddrNetwork 10.192.0.0/10
  77. AutomapHostsSuffixes .onion,.exit
  78. AutomapHostsOnResolve 1
  79. TransPort 192.168.2.1:9040
  80. DNSPort 192.168.2.1:53
  81.  
  82. SocksPort 9040
  83. SocksBindAddress 127.0.0.1
  84. AllowUnverifiedNodes middle, rendezvous
  85. Log notice syslog
  86.  
  87. **install dnsmasq**
  88. sudo apt-get install dnsmasq
  89.  
  90. **edit dnsmasq.conf**
  91. sudo nano /etc/dnsmasq.conf
  92.  
  93. interface=eth0
  94. bind-interfaces
  95. server=176.103.130.130
  96. server=45.33.97.5
  97. #server=1.1.1.1
  98. domain-needed
  99. bogus-priv
  100. dhcp-range=192.168.2.2, 192.168.2.100,12h
  101.  
  102. **edit /etc/network/interfaces**
  103. sudo nano /etc/network/interfaces
  104.  
  105. source /etc/network/interfaces.d/*
  106. allow-hotplug eth0
  107. iface eth0 inet status
  108. address 192.168.2.1
  109. netmask 255.255.255.0
  110. network 192.168.2.0
  111. broadcast 192.168.2.255
  112.  
  113. **ipv4 forwarding**
  114. sudo nano /proc/sys/net/ipv4/ip_forward
  115. Put a 1 on the first line then exit and save
  116.  
  117. **create file torroute.sh**
  118. sudo nano torroute.sh
  119.  
  120. **drop the text from this pastebin into it**
  121. https://pastebin.com/XhcqZ6Vu
  122.  
  123. sudo chmod 777 torroute.sh
  124.  
  125. **edit rc.local to execute our TOR routing script when the orangepi boots**
  126. sudo nano /etc/rc.local
  127.  
  128. bash /home/a/torroute.sh
  129.  
  130. **reboot, and good luck!**
  131. sudo reboot now
  132.  
  133.  
  134.  
  135. **troubleshooting in case it's not working**
  136.  
  137. **check tor status**
  138. sudo service tor status
  139. systemctl status tor@default
  140.  
  141. **check dnsmasq**
  142. systemctl status dnsmasq
  143. systemctl status dnsmasq.service
  144.  
  145. For some reason, you will probably need to unplug the eth0 interface(the orangepi's onboard ethernet plug)
  146. and reboot the orangepi. Plug it back in when the pi has rebooted and everything should work.
  147.  
  148.  
Add Comment
Please, Sign In to add comment