todo: https://blog.bigbinary.com/2018/09/12/configuring-memory-allocation-in-imagemagick.html
Photobooth based on Raspberry Pi + RaspiCam + Canon Selphy CP1300 printer
https://www.hackster.io/ericBcreator/photo-booth-powered-by-a-raspberry-pi-23b491
Raspberry PI 3 Display: 10.1 Inch with HDMI converter (Resolution: 1024x600) Printer: Canon Selphy CP1300 Buttons: Arcade Buttons Housing: Plastic Box Power: 5V/5A Powersupply (5Amps not needed, 2Amps should be enough)
Boot Options
-> Desktop/CLI
-> Console Autologin
locals
/ network (incl Hostname)
/ keyboard layout
interfacing
-> Camera enable
/ SSH enable
/ I2C enable
Advanced Options
-> Overscan enable (if necessary)
/ Memory Split to 256 MB
sudo nano /boot/config.txt
add
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1024
#framebuffer_height=600
#hdmi_ignore_edid=0xa5000080
hdmi_cvt=1024 600 60 3 0 0 0
# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=87
see also: https://www.raspberrypi.org/forums/viewtopic.php?t=14914
also add dispmanx_offline=1
to /boot/config.txt
see also: https://github.com/raspberrypi/userland/issues/232
sudo reboot
sudo rpi-udpate
- uodate firmware of raspberry to newer version (at this moment, 4.19 is new released)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install cups python3-dev python3-pip imagemagick python3-cups python3-picamera python3-rpi.gpio git libusb-1.0 libcups2-dev python3-usb python3-pil.imagetk
if RPGPIO fails, try sudo pip3 install RPi.GPIO
sudo pip3 install pyudev
sudo pip3 install psutil
sudo pip3 install transitions
sudo pip3 install Wand
https://www.raspberrypi.org/forums/viewtopic.php?t=219763
sudo nano /etc/apt/sources.list
deb [trusted=yes] http://ftp.us.debian.org/debian sid main
deb-src [trusted=yes] http://ftp.us.debian.org/debian sid main
sudo apt-get update
sudo apt-get -t sid install printer-driver-gutenprint
sudo reboot
deb [trusted=yes] http://ftp.us.debian.org/debian sid main
deb-src [trusted=yes] http://ftp.us.debian.org/debian sid main
edit cups config file
sudo nano /etc/cups/cupsd.conf
-> change Listen localhost:631
to Port 631
-> Save and exit
add following line to Location /
and Location /admin
and Location /admin/conf
Allow @LOCAL
add user pi to group lpadmin
sudo usermod -aG lpadmin pi
sudo service cups restart
browse to IPaddress of Raspi:631/admin/
login with pi/raspberry
click add printer
choose local printer
-> Canon SELPHY CP1300 (Canon SELPHY CP1300)
(if not listed - is the printer connected and powered on?)
change standardsettings
-> Printer Features Common
-> Borderless
-> Yes
sudo nano /etc/rc.local
sudo python3 /home/pi/Photobooth/photobooth.py &
sudo nano /boot/cmdline.txt
tty1
to console=tty3
quiet splash loglevel=0 logo.nologo vt.global_cursor_default=0
sudo nano /etc/modules
add i2c-bcm2708
/ Close and save file
sudo apt-get install i2c-tools
test with sudo i2cdetect -y 1
it shall detect the rtc module at address 0x68
You can add support for the RTC by adding a device tree overlay. Run
sudo nano /boot/config.txt
dtoverlay=i2c-rtc,ds3231
sudo reboot
sudo i2cdetect -y 1
now it should print UU at adress 0x68 -> systemdriver is working
Disable the "fake hwclock" which interferes with the 'real' hwclock
sudo apt-get -y remove fake-hwclock
sudo update-rc.d -f fake-hwclock remove
sudo systemctl disable fake-hwclock
sudo nano /lib/udev/hwclock-set
#if [ -e /run/systemd/system ] ; then
# exit 0
#fi
now sync time with the rtc (correct time set in raspi is assumed)
sudo hwclock -w
test with sudo hwclock -r
That's it! Next time you boot the time will automatically be synced from the RTC module
sudo apt-get install samba samba-common smbclient
edit /etc/samba/smb.conf
sudo nano /etc/samba/smb.conf
section global
printers
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
share of folder
sudo apt-get install usbmount
sudo nano /lib/systemd/system/systemd-udevd.service
MountFlags=slave
to MountFlags=shared
sudo nano /etc/usbmount/usbmount.conf
FS_MOUNTOPTIONS="-fstype=vfat,gid=users,dmask=0007,fmask=0117"
Sync mount option
, this is very slow!https://www.raspberrypi.org/forums/viewtopic.php?t=205016#p1271455
https://www.elektronik-kompendium.de/sites/raspberry-pi/1911271.htm
https://raspberrypi.stackexchange.com/questions/59310/remove-boot-messages-all-text-in-jessie
further informations are here:
https://www.elektronik-kompendium.de/sites/raspberry-pi/2007081.htm
Logos https://de.cooltext.com/Logo-Design-Outline?Font=11391
https://de.cooltext.com/Render-Image?RenderID=308591325204975&LogoId=3085913252