Image slideshow on Raspberry Pi Zero
- Create
wpa_supplicant.conf
andssh
file in/boot
if setting up without keyboard / headless.
sudo raspi-config
-
Change User Password
-
Network Options:
- Hostname
- Wi-fi
-
Boot Options
- Desktop / CLI
- Console Autologin
- Desktop / CLI
-
Interfacing Options
- SSH
-
Advanced Options
- Overscan - disable
-
Update
sudo apt-get update sudo apt-get upgarde
sudo apt-get install samba
sudo smbpasswd -a pi
mkdir /home/pi/Reklama
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old
sudo nano /etc/samba/smb.conf
Add this to the very end of the file:
[Reklama]
Comment = Reklama Delfin
Path = /home/pi/Reklama
valid users = pi
read only = no
Guest ok = no
Writeable = Yes
Browseable = yes
Public = yes
sudo apt-get install fbi inotify-tools
touch dirwatch.sh
chmod 777 dirwatch.sh
nano dirwatch.sh
sudo nano /etc/profile
Add this to the very end of the file: . /home/pi/dirwatch.sh
Copy contents of dirwatch.sh
to RPi
Copy shutdown.py
to /home
directory
Add: python /home/pi/shutdown.sh &
to /etc/rc.local
Connect the signal wire to Raspberry GPIO14 pin.
- Must be in the same network:
This PC > Add a network location > \\[HOSTNAME].local\Reklama
in my case: \\REKLAMA.local\Reklama