-
1Step 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.
-
2Step 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.
-
3Step 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.
-
4Step 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.
-
5Step 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:
-
6Step 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
-
7Step 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.
-
8Step 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'
-
9Step 9
Run the script by typing:
'sudo ./tor.sh'
Follow any prompts and wait for your Pi to reboot.
-
10Step 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/
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
@everyone who is having issues in making access point, refer to this and follow given instructions for making an access point:
https://raspberrypi.stackexchange.com/questions/88214/setting-up-a-raspberry-pi-as-an-access-point-the-easy-way
Are you sure? yes | no
Sto eseguendo la tua guida e tutto ok fino al punto 5.
Al punto 6 dato il comando "sudo ./pifi.sh" la procedura si blocca dopo "Starting ISC DHCP server..." col seguente errore:
Cleaning up...
Starting hostapd service...
Starting ISC DHCP server...
Job for isc-dhcp-server.service failed because the control process exited with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.
Checking hostapd status...
● hostapd.service - LSB: Advanced IEEE 802.11 management daemon
Loaded: loaded (/etc/init.d/hostapd; generated; vendor preset: enabled)
Active: active (exited) since Wed 2018-02-07 21:24:26 CET; 21min ago
Docs: man:systemd-sysv-generator(8)
Process: 422 ExecStart=/etc/init.d/hostapd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/hostapd.service
feb 07 21:24:20 raspberrypi systemd[1]: Starting LSB: Advanced IEEE 802.11 management daemo
feb 07 21:24:26 raspberrypi hostapd[422]: Starting advanced IEEE 802.11 management: hostapd
feb 07 21:24:26 raspberrypi systemd[1]: Started LSB: Advanced IEEE 802.11 management daemon
lines 1-10/10 (END)
e il cursore si blocca dopo (END).
Come mai?
-----------------------------------------------------------------------------------------------------------------
I'm running your guide and everything is OK until point 5.
At point 6 given the command "sudo ./pifi.sh" the procedure is blocked after "Starting ISC DHCP server ..." with the following error:
Cleaning up ...
Starting hostapd service ...
Starting ISC DHCP server ...
Job for isc-dhcp-server.service failed because the control process exited with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.
Checking hostapd status ...
● hostapd.service - LSB: Advanced IEEE 802.11 management daemon
Loaded: loaded (/etc/init.d/hostapd; generated; vendor preset: enabled)
Active: active (exited) since Wed 2018-02-07 21:24:26 CET; 21min ago
Docs: man: systemd-sysv-generator (8)
Process: 422 ExecStart = /etc/init.d/hostapd start (code = exited, status = 0 / SUCCESS)
CGroup: /system.slice/hostapd.service
Feb 07 21:24:20 raspberrypi systemd [1]: Starting LSB: Advanced IEEE 802.11 management daemo
Feb 07 21:24:26 raspberrypi hostapd [422]: Starting advanced IEEE 802.11 management: hostapd
Feb 07 21:24:26 raspberrypi systemd [1]: Started LSB: Advanced IEEE 802.11 management daemon
lines 1-10 / 10 (END)
and the cursor stops after (END).
Why?
Are you sure? yes | no
i managed to get to the point of setting up the WiFi hot spot but i cant do the next step as the WiFi/Ethernet is disabled and i am having trouble enabling it, please help
Are you sure? yes | no
Thanks for the tutorial! I followed the instructions and I am able to see the wifi with other devices, but I cannot connect to it. Double checked the wifi password, everything seems to be correct. Any ideas what could have gone wrong?
Thanks!!
Are you sure? yes | no
I followed the instructions on RPI 2, but I am not able to see the new wifi, any idea why?
If my router is on 10.0.0.X range, Should I modify the script to setup 10.0.0.X address and not 192.168.X.X
Thanks,
mzisu
Are you sure? yes | no
Hi,
thx for your tutorial, but I'm still running into one problem. Every time i try to install ISC DHCP, in the end of instalation it says:
'job for isc-dhcp-server.service failed.... '
'invoke-rc.d: initscript isc-dhcp-server, action "start" failed'
Can any1 pls tell me what to do? I tryed several tutorials, but every time this happend.
I use RPi2 B and TP-LINK - wn722n
Are you sure? yes | no
Hi Thomas,
I use a raspberry Pi 3, and i tried to install this software, but when i 've installed pifi, my wifi stopped working.
i tried to stop pifi, to reset wifi settings, and to update my file, but it still not working.
so how can i do to resolve this problem?
i hope you'll answer me
Ismaele
Are you sure? yes | no
So are the connections issues solved ? Thx
Are you sure? yes | no
will a wipi work
Are you sure? yes | no
Hello.
The scripts are ok with the raspberry pi 2 with TP Link WN725N wireless stick. There have been some errors with the first script but after rebooting the PI, ı can easily connect to AP very well.
After the second script I have checked my ip using ipleak.net and it has been seen TOR exit node. So it is ok,too.
Is there a vpn kill switch configuration in the script that enables the network more secure?
Thank you very much.
Kind regards.
Are you sure? yes | no
will this work with a raspberry pi 3? Is its onboard wifi an issue?
Are you sure? yes | no
Henrik, I ran into some issues getting this set up myself (also on a Pi 3) and yes, you'll have to tweak certain things (for instance, the driver is different than the one that the linked hostapd script expects). I followed this guide to get it set up as an access point:
https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/
Are you sure? yes | no
Hi all
Did this worked ? Should I removed the dongle and go 4 that ?
Got a PI3 too ....
Thx
Dim
Are you sure? yes | no
Hi, after launch pifi.sh and reboot, i found my wifi but after connect i have restricted access and no internet.
And i found this error in my raspy :
not running dhcpcd because :etc/network/interface
defines some interface that will use a DHCP client ... failed
Startpar: services returned failure: isc-dhcp-server ;.. failed
If you have some ideas ... i've tested all tuto with pifi.sh and no one works. PLease help me ;)
Are you sure? yes | no
hi , i have the same problem, i have a Edimax wifi dongle, but i think the problem is somewere else because when i check the status of the hostapd, it's not recognised , and in /etc/init.d/ it does not return any instructions after a status or start query.
Are you sure? yes | no
Hi!
So I get to this part:
Follow all the instructions on the screen. The script will reboot your Pi when it is finished
After the reboot I lose all network connections :P Any suggestions?
Are you sure? yes | no
Hey! Look at the suggestion I gave someone else in the comments
section. It is probably the same issue. What brand of wifi dongle are
you using?
Are you sure? yes | no