Difference between revisions of "Joy-Pi - Pi-Hole"
(Created page with "== Summary == Short writeup of using the Joy-Pi case with a Pi-Hole installation, used e.g. for the Open House demo == Requirements == * Operating system: latest Raspbian...") |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 22: | Line 22: | ||
Currently the Raspi is configured to use the eduroam Wifi. In order to do so, modify the /etc/wpa_supplicant/wpa_supplicant.conf as follows: | Currently the Raspi is configured to use the eduroam Wifi. In order to do so, modify the /etc/wpa_supplicant/wpa_supplicant.conf as follows: | ||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |||
<pre>ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |||
update_config=1 | update_config=1 | ||
country=AT | country=AT | ||
Line 35: | Line 36: | ||
phase1="peaplabel=0" | phase1="peaplabel=0" | ||
phase2="auth=MSCHAPV2" | phase2="auth=MSCHAPV2" | ||
} | }</pre> | ||
Since there is a bug in the wpa_supplicant >= 2.8 when trying to connect to enterprise Wifis, downgrade to 2.4 or later, under | Since there is a bug in the wpa_supplicant >= 2.8 when trying to connect to enterprise Wifis, downgrade to 2.4 or later, under | ||
Line 41: | Line 42: | ||
Connect using | Connect using | ||
sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf | <pre>sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf</pre> | ||
There is a Bash script in the /home/pi directory, periodically circling through different webpages (just using wget in an infinite while loop). | There is a Bash script in the /home/pi directory, periodically circling through different webpages (just using wget in an infinite while loop). | ||
Access the Pi-Hole Frontend under pi.hole/admin | Access the Pi-Hole Frontend under pi.hole/admin | ||
=== Step 3 === | |||
To use some of the demos from the Joy-Pi Script Package ([https://joy-it.net/files/files/Produkte/RB-JoyPi/Joy-Pi.zip Joy-Pi.zip]), namely those for the 7-segment and Matrix LEDs: | |||
* Activate I2C and SPI <pre> sudo raspi-config -> 5 Interfacing Options, enable SPI, enable I2C </pre> | |||
* For the 7-segment display: install the Adafruit Python LED Backpack Package ([https://github.com/adafruit/Adafruit_Python_LED_Backpack Adafruit]) | |||
* For the Matrix LED: install the Luma LED-Matrix package ([https://luma-led-matrix.readthedocs.io/en/latest/install.html Luma]) | |||
== Used Hardware == | == Used Hardware == | ||
[https://wiki.elvis.science/index.php?title=Joy-Pi_education_box Joy-Pi Box] | [https://wiki.elvis.science/index.php?title=Joy-Pi_education_box Joy-Pi Box] | ||
[https://wiki.elvis.science/index.php?title=Raspberry_Pi_3,_Model_B%2B,_WLAN,_BT Raspberry Pi 3] | |||
== Courses == | == Courses == |
Latest revision as of 12:40, 13 November 2019
Summary
Short writeup of using the Joy-Pi case with a Pi-Hole installation, used e.g. for the Open House demo
Requirements
- Operating system: latest Raspbian
- Packages: pihole
Description
Step 1
Install Raspbian and pihole according to their respective documentations
Step 2
Currently the Raspi is configured to use the eduroam Wifi. In order to do so, modify the /etc/wpa_supplicant/wpa_supplicant.conf as follows:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=AT network={ ssid="eduroam" proto=RSN key_mgmt=WPA-EAP eap=PEAP identity="USER@HOST" password="PASSWORD" phase1="peaplabel=0" phase2="auth=MSCHAPV2" }
Since there is a bug in the wpa_supplicant >= 2.8 when trying to connect to enterprise Wifis, downgrade to 2.4 or later, under wpa_supplicant for Raspberry Pi
Connect using
sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
There is a Bash script in the /home/pi directory, periodically circling through different webpages (just using wget in an infinite while loop).
Access the Pi-Hole Frontend under pi.hole/admin
Step 3
To use some of the demos from the Joy-Pi Script Package (Joy-Pi.zip), namely those for the 7-segment and Matrix LEDs:
- Activate I2C and SPI
sudo raspi-config -> 5 Interfacing Options, enable SPI, enable I2C
- For the 7-segment display: install the Adafruit Python LED Backpack Package (Adafruit)
- For the Matrix LED: install the Luma LED-Matrix package (Luma)
Used Hardware
Courses
Open House November 2019