Common Library code for use as submodule
sudo apt-get update
sudo apt-get upgrade
sudo apt-get purge wolfram-engine
sudo apt-get upgrade
cd $ialtar
sudo cp fstab /etc/fstab
check the log file daily since the directory is now smaller, change weekly to daily keep only two days
sudo vi /etc/logrotate.conf
sudo cp $HOME/GitProjects/iAltar/rsyslog.conf /etc/rsyslog.conf
sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
cd $ialtar
./packageSetup.sh
-
MAILTO=""
-
@reboot sleep 10; /home/pi/GitProjects/iAltar/config/asoundConfig.py -c /home/pi/GitProjects/iAltar/config/ProArts.json 2>&1 | logger -t asoundConfig
-
@reboot sleep 20 ; /home/pi/GitProjects/iAltar/iAltar/iAltarWrap.sh -c /home/pi/GitProjects/iAltar/config/ProArts.json 2>&1 | logger -t iAltarWrap
Setting up usb speakers/mic has the unfortunate feature of assigning usb 'cards' at random during bootup. This will need to be fixed automagically but until that happens:
cat /proc/asound/cards
This will list the 'cards'. This is assuming you are using the adafruint usb mic/speakers recommended by google- USB-Audio - USB PnP Sound Device - microphone card
- USB-Audio - USB2.0 Device - speaker card Once you have the card numbers you edit this file:
cp ~/GitProjects/AssAi/asoundrc.template ~/.asoundrc
vi ~/.asoundrc
Change thepcm: hw:<cardno>,1
to have the proper numbers for the mic and speaker.- HDMI needs hdmi_drive=2 set in /boot/config.txt
Linux uses ALSA for its audio:
- speaker-test *
speaker-test -c2
- arecord
arecord --format=S16_LE --duration=5 --rate=16k --file-type=raw out.raw
- aplay
aplay --format=S16_LE --rate=16k out.raw
- alsamixer (gui) or amixer (command line)
- amixer -c 2 cset numid=3,name='PCM Playback Volume' 100
- aplay --format=S16_LE --rate=44100 audio3.raw
Assumes you have eth0 (wired) hooked to router with no ethernet connection of it's own
- change the supervisor config file to log to /var/log
sudo vi /etc/supervisor/supervisord.conf
- change lines to this
;logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
;childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
childlogdir=/var/log/ ; ('AUTO' child log dir, default $TEMP)
sudo vi /etc/dhcpcd.conf
- add the lines
interface eth0
nogateway