Skip to content

Useful Raspberry Pi Settings

Jimbles edited this page Apr 25, 2016 · 13 revisions

Raspberry Pi Settings

UCL Eduroam on Raspberry Pi

add this to /etc/wpa_supplicant/wpa_supplicant.conf

network = {
ssid="eduroam"
key_mgmt=WPA-EAP IEEE8021X
eap=PEAP
identity="#####@ucl.ac.uk"
anonymous_identity="anonymous@ucl.ac.uk"
password="#######"
priority=22357
proactive_key_caching=1
} 

and change line in /etc/network/interfaces for wlan0 from wpa-conf to wpa-roam.

Terminal Shortcut

This is useful for debugging, as we need to have gui running and pygame normally hides everything.

from here Edit the file (on raspbian jessie) leafpad ~/.config/openbox/lxde-pi-rc.xml .

<keybind key="F4">
    <action name="Execute">
        <execute>lxterminal</execute>
    </action>
</keybind>

Better Python Editor

I used idlex as it added more functionality but was still lightweight enough for the Pi. This is very useful for correcting tab errors (not mine!). Can be installed through pip sudo pip install idlex', and run from terminal sudo idlex &`

Stop Screen Blanking - Raspbian Jessie

Useful guide here.

Add the following to nano /etc/lightdm/lightdm.conf in the [SeatDefaults] section:

[SeatDefaults]
xserver-command=X -s 0 -dpms

below did not work for raspbian jessie. useful guide here apt-get install x11-xserver-utils open or create ~/.xinitrc file and enter:

LCD Screen Setup

I got a waveshare 7" screen from amazon, setup guide here. I dont seem to be able to get touch screen working on it but I dont need it for this. To set it up, add the following to \boot\config.txt. You need an adequate power supply for this, I am using RPi3 official one.

max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0

Schedule dropbox checking task

The dropbox folder is checked every 10 minutes by adding a chron task via the command crontab -e Add the following line at the bottom of the list, has to be full paths.

*/10 * * * * sudo python /home/pi/RPi_Photobooth/dropboxsync.py -d

startup script

Based on useful script here.

Created launcher script launcher.sh which (after waiting a bit to ensure system ready), starts the photobooth whilst logging to a text file with tee. add following line to /etc/rc.local before the exit 0 line

# Auto photobooth
sudo /home/pi/RPi_photobooth/launcher.sh &