2019-05-14 17:56:43 +02:00
#apt-get update
2019-03-29 16:23:14 +01:00
2019-05-14 17:56:43 +02:00
#apt-get install -y munin-node bc supervisor
2019-03-29 16:25:20 +01:00
cp installation/rpi-internal-temp /usr/share/munin/plugins
ln -sf /usr/share/munin/plugins/rpi-internal-temp /etc/munin/plugins/rpi-internal-temp
2019-04-24 11:31:20 +02:00
rm /etc/munin/plugins/irqstats
2019-03-29 16:25:20 +01:00
chmod a+x /usr/share/munin/plugins/rpi-internal-temp
2019-04-24 11:31:20 +02:00
echo "allow ^\\S*\$" >> /etc/munin/munin-node.conf
2019-03-29 16:25:20 +01:00
service munin-node restart
2019-03-29 16:20:23 +01:00
2019-04-26 18:30:16 +02:00
# Disable internal sound
echo "blacklist snd_bcm2835" > /etc/modprobe.d/internalsnd-blacklist.conf
2019-03-29 16:20:23 +01:00
2019-05-12 12:56:11 +02:00
#setup tmpfs
echo "d /var/log/supervisor 0777 root root" > /etc/tmpfiles.d/supervisor.conf
cp installation/fstab /etc/fstab
2019-05-13 14:12:27 +02:00
# setup pulseaudio as system daemon and grant access: https://rudd-o.com/linux-and-free-software/how-to-make-pulseaudio-run-once-at-boot-for-all-your-users
cp installation/pulseaudio.service /etc/systemd/system/pulseaudio.service
# disable autospawn
cp installation/pulseaudio-client.conf /etc/pulse/client.conf
# put tsched to 0: https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Sound_stuttering_when_streaming_over_network
cp installation/pulse-default.pa /etc/pulse/default.pa
systemctl --system enable pulseaudio.service
systemctl --system start pulseaudio.service
usermod -a -G pulse-access pi
2019-05-14 17:56:43 +02:00
# install wifi networks
cp installation/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf
2019-03-29 16:20:23 +01:00
# Added chown=pi:pi
2019-03-29 16:25:20 +01:00
cp installation/supervisord.conf /etc/supervisor/supervisord.conf
ln -s /home/pi/hugvey/supervisor.conf /etc/supervisor/conf.d/hugvey.conf
2019-03-29 16:26:23 +01:00
service supervisor restart
2019-03-29 16:25:20 +01:00
supervisorctl reread
supervisorctl update