- 1
Download the latest version of Raspbian. This tutorial also works with Raspbian Lite. You can find this at www.raspberrypi.org/downloads/raspbian/
You could probably also use NOOBS and then install Raspbian from there, but that would be an extra step.
- 2
Do not insert your WiFi dongle into the Raspberry Pi yet. If you already connected it, cut the Pi off and take it back out. The required software wont install correctly with it already inserted.
- 3
Burn Raspbian to your SD card (this tutorial assumes you are familiar enough with a Raspberry Pi to do this. Follow the instructions at https://www.raspberrypi.org/documentation/installation/installing-images/README.md if you need help), boot the OS and run ‘sudo raspi-config’ from the command line or terminal.
The default log-in info is username: pi and password: raspbian
- First, hit Enter on ‘Expand Filesystem’. This will allow Raspbian to use the entirety of your SD card. At the moment it is only using about 1.5gb, which is the size of the OS image you burned to the SD card.
- Change the password to something more secure, or dont. It is your choice, but a recommended change.
- Under ‘Boot Options’, change this to boot to ‘Console’ or ‘Console Autologin’
- Under ‘Internationalisation Options’, change your Locale, Timezone and keyboard layout to whatever is appropriate for where you live. Use the Space Bar to select or de-select different options and Enter to accept changes.
- Under ‘Advanced Options’ you can change your Hostname to something else if you wish, or leave it alone.
- Also under ‘Advanced Options’ you can go to ‘Memory Split’ and set the GPU memory to the lowest setting of 16. Since we wont be doing anything that involves graphics, 16mb is more than enough memory for our GPU. If you are using the full version of Raspbian (not the lite version) this may also cause issues for the desktop if you boot there rather than the command line.
- Reboot for everything to take effect.
- 4
From a terminal or command line, run ‘sudo apt-get update’ and then ‘sudo apt-get upgrade’ to update all the software to the latest version. We need to do this before installing the Hot Spot software since it needs to be a specific version, and an update would break its ability to work correctly.
- 5
Now we can set up the WiFi access point.
Again, make sure your WiFi device is NOT plugged into your Pi.
Type the following in a console to download the Pifi script:
- 6
We need to make pifi.sh executable so we can run it. Do so by typing the following:
‘chmod +x pifi.sh’
Now type the following to run the script and setup your new WiFi Access Point:
‘sudo ./pifi.sh’
Follow all the instructions on the screen. The script will reboot your Pi when it is finished
- 7
Log back in and safely shut down your Pi. Insert your WiFi dongle and power everything back on. You should now see an extra WiFi source in your home!
At the moment, it is just a normal WiFi source, just like your wireless router.
The SSID is whatever you named it in the previous step, and the password will be whatever you specified. If you want to SSH into your Pi, you can do so over the Ethernet IP address that your primary router assigned, or over the new WiFi connection if you connect through it. That address would be 192.168.42.1 over WiFi.
- 8
To add the Tor routing capability, download the Tor script with this command:
‘wget https://cdn.hackaday.io/files/4223180676832/tor.sh‘
Just like before, we need to make it executable:
‘chmod +x tor.sh’
- 9
Run the script by typing:
‘sudo ./tor.sh’
Follow any prompts and wait for your Pi to reboot.
- 10
Thats it! When you connect to this WiFi source, all your web traffic should be routed through the Tor.
You can verify this by going to https://check.torproject.org/
Turn a Raspberry Pi into a TOR Gateway Router

(Visited 10 times, 1 visits today)