12,297
edits
No edit summary |
|||
Line 23: | Line 23: | ||
allows to set the password and the default soundcard | allows to set the password and the default soundcard | ||
sudo raspi-config | sudo raspi-config | ||
lets you autologin to the console | lets you autologin to the console. [https://maker-tutorials.com/raspberry-pi-benutzer-automatisch-anmelden-booten/#variante-raspi-config Source (German)] | ||
== put files to the raspberry pi == | |||
use the command scp to copy the pd files to the RaspberryPi [http://www.hypexr.org/linux_scp_help.php Source] | |||
exit | |||
to exit the ssh connection and return to the shell of your computer | |||
cd /Documents/Pd/path/to/patches | |||
scp startupPatch.pd patch@patchbox.local:/Pd/ | |||
==Make a startup script== | |||
#! /bin/sh | |||
### BEGIN INIT INFO | |||
# Provides: Pd patch startup | |||
# Required-Start: $syslog | |||
# Required-Stop: $syslog | |||
# Default-Start: 2 3 4 5 | |||
# Default-Stop: 0 1 6 | |||
# Short-Description: Pure Data Patch startup | |||
# Description: | |||
### END INIT INFO | |||
case "$1" in | |||
start) | |||
echo "ending Jack" | |||
sudo systemctl stop jack | |||
sleep 3 | |||
echo "Pd is starting" | |||
# Starting Programm | |||
pd -nogui -alsa -rt -r 44100 -channels 2 -audioadddev "USB AUDIO CODEC (hardware)" /home/patch/Pd/startup.pd | |||
;; | |||
stop) | |||
echo "Pd is ending" | |||
# Ending Programm | |||
killall pd | |||
;; | |||
*) | |||
echo "Use: /etc/init.d/startPdPatch {start|stop}" | |||
exit 1 | |||
;; | |||
esac | |||
exit 0 |