hugvey/install_server.sh
2019-04-26 18:30:16 +02:00

19 lines
715 B
Bash
Executable file

apt-get update
apt-get install -y munin-node bc supervisor libsox-fmt-pulse
cp installation/rpi-internal-temp /usr/share/munin/plugins
ln -sf /usr/share/munin/plugins/rpi-internal-temp /etc/munin/plugins/rpi-internal-temp
rm /etc/munin/plugins/irqstats
chmod a+x /usr/share/munin/plugins/rpi-internal-temp
echo "allow ^\\S*\$" >> /etc/munin/munin-node.conf
service munin-node restart
# Disable internal sound
echo "blacklist snd_bcm2835" > /etc/modprobe.d/internalsnd-blacklist.conf
# Added chown=pi:pi
cp installation/supervisord.conf /etc/supervisor/supervisord.conf
ln -s /home/pi/hugvey/supervisor.conf /etc/supervisor/conf.d/hugvey.conf
service supervisor restart
supervisorctl reread
supervisorctl update