- Fix CRLF line endings (SC1017) in 10 shell scripts - Add shebangs (SC2148) to 5 scripts missing them - Fix unquoted variables (SC2086) in kali-updates.sh - Add shellcheck disable directive for intentional eval usage - Fix missing space after ! in observium/custom_install.sh - Add security scan reports to .gitignore-safe location
raspberrypi
Overview
Scripts for Raspberry Pi setup, applications, and storage configuration.
Files
| Script | Description |
|---|---|
rasp_pi_install_apps.sh |
Install common applications |
raspberry_pi_fstab.sh |
Configure network mounts |
Media_to_ap-share.sh |
Sync media to Apple TV share |
public_to_usb.sh |
Transfer public files to USB |
Application Installation
rasp_pi_install_apps.sh
sudo ./raspberrypi/rasp_pi_install_apps.sh
Installs:
- Network tools: wireshark, nmap, openvpn, etherape, remmina
- Storage tools: cifs-utils, exfat-fuse
- Utilities: curl, git, python, unattended-upgrades, cron-apt
- Media server: ventz-media-pi (optional)
fstab Configuration
raspberry_pi_fstab.sh
sudo ./raspberrypi/raspberry_pi_fstab.sh
Configures:
/media/naspublic
/media/nasdownloadedmedia
/media/naspublic-share2
Media Sync
Media_to_ap-share.sh
sudo ./raspberrypi/Media_to_ap-share.sh
Syncs movies to Apple TV media share.
public_to_usb.sh
sudo ./raspberrypi/public_to_usb.sh
Transfers NAS public share to USB drive.
Raspberry Pi Tips
SD Card Wear
Consider using tmpfs for /var/log:
# Add to /etc/fstab
tmpfs /var/log tmpfs defaults,noatime,nosuid,size=100M 0 0
Network
- Use static IP for stable NAS mounts
- Consider WiFi power management:
sudo iw dev wlan0 set power_save off
Storage
- External USB drives should be labeled consistently
- Use UUIDs in fstab for reliability:
fstabwith UUID mounts more reliable than device paths
Quick Start
# 1. Update system
sudo apt update && sudo apt upgrade -y
# 2. Install applications
sudo ./raspberrypi/rasp_pi_install_apps.sh
# 3. Configure mounts
sudo ./raspberrypi/raspberry_pi_fstab.sh
# 4. Reboot
sudo reboot