Page:
Setting up a new scary RPi
Pages
Audio Input und Speech Recognition
Cocoon man
Coffin ghost
Crazy Witch
Deploying flask with uwsgi and nginx
Dungeon
Eyes in the dark
Grave riser
Halloween Control Center
Hanging ghost
Home
How to get the NodeMCU up and running
How to install py neopixel spidev
How to install pylibftdi for DMX
Ideas 2018
Ideas 2019
Ideas for 2021 (hopefully)
Ideas for 2022
Ideas for 2023
Ideas for 2024
Ideas for refactoring 2021
Installations
LEGO
Monster in a box
Open a reverse shell
Prisoner
Raspberry Pi Overview
Setting up a new scary RPi
Setup Remote Software Update
Spider
Swaying Zombie
USB Audio on Raspberry Pi Zero
Web API
Weremonkey
Zombie Fence
No results
19
Setting up a new scary RPi
mattzz edited this page 2025-03-16 20:36:10 +01:00
Setting up a new scary RPi
Preparing the flash card
See: https://www.raspberrypi.org/documentation/installation/installing-images/README.md
- Download Raspian Image "RASPBIAN Bullseye LITE": https://www.raspberrypi.org/downloads/raspbian/
- Download Etcher: https://etcher.io/
- Use the application Etcher to flash the image (see README above).
- Take out and re-insert the flash card so that it is visible again.
- Create an empty file with name "ssh" in the root directory of the flash card (which is usually called "boot"):
touch /Volumes/bootfs/ssh - Create the user config file:
echo "pi:$(echo "raspberry" | openssl passwd -6 -stdin)" > /Volumes/bootfs/userconf - Put memory card into an RPi
Configuring the RPi
- Plug in network cable
- Boot the RPi by plugging in a Mini USB cable
- After booting, find out the RPi's IP address
- SSH into the RPi as user "pi" (default password is "raspberry"):
ssh pi@IP_ADDRESS - Start configuration tool:
sudo raspi-config. In the config tool:- Enable SSH for good in sub-menu "Interfacing Options".
- Create locales. We need at least
en_US.UTF-8. - Change the hostname to the name of the installation, e.g. eyesinthedark
- Enter Wifi Country, SSID and password (For old RPis: insert Wifi USB stick and reboot beforehand).
Software installation
sudo apt-get --allow-releaseinfo-change updatesudo apt-get install git- Clone the repo
https://git.mattzz.de/mattzz/halloween.git(see below for a suggestion how)
This will install all required dependencies, fix the locale stuff and setup nginx/systemd:
-
cd halloween -
$ chmod +x setup.sh -
$ sudo ./setup.sh -
see How-to-install-pylibftdi-for-DMX for more details
git tips
- Clone without hacking certicate:
env GIT_SSL_NO_VERIFY=true git clone https://git.mattzz.de/mattzz/halloween.git - Never check certificate for this repo:
cd halloweengit config http.sslVerify false - Set the cache to timeout after 1 hour (setting is in seconds):
git config --global credential.helper 'cache --timeout=3600'
Other tips
- Follow nginx/pumpkin log output:
journalctl -u pumpkin -f - Restart and follow:
sudo systemctl restart pumpkin; journalctl -u pumpkin -f
Bullseye / Debian 12 notes
See also [#179]
- There is no standard
piuser anymore due to security risks. - Use rpi imager instead of belana etcher! --> https://www.raspberrypi.com/software/
- Use 32 bit image "Raspberry Pi OS Lite"
- set user to
pi- allow password auth! (or see /etc/ssh/sshd_config entryPasswordAuthentiation yes - set WIFI ssid/pw
python libs failing to install
GPIIO access failing
- make sure
piis in groupgpio:sudo adduser pi gpio- re-login afterwards for changes to take effect
RuntimeError: Failed to add edge detection
- https://raspberrypi.stackexchange.com/questions/147332/rpi-gpio-runtimeerror-failed-to-add-edge-detection
sudo apt remove python3-rpi.gpiosudo apt install python3-rpi-lgpio