hugvey/install_server.sh

20 lines
715 B
Bash
Raw Normal View History

2019-03-29 15:25:20 +00:00
apt-get update
2019-03-29 15:23:14 +00:00
apt-get install -y munin-node bc supervisor libsox-fmt-pulse
2019-03-29 15:25:20 +00: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
rm /etc/munin/plugins/irqstats
2019-03-29 15:25:20 +00:00
chmod a+x /usr/share/munin/plugins/rpi-internal-temp
echo "allow ^\\S*\$" >> /etc/munin/munin-node.conf
2019-03-29 15:25:20 +00:00
service munin-node restart
2019-03-29 15:20:23 +00:00
# Disable internal sound
echo "blacklist snd_bcm2835" > /etc/modprobe.d/internalsnd-blacklist.conf
2019-03-29 15:20:23 +00:00
# Added chown=pi:pi
2019-03-29 15:25:20 +00: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 15:26:23 +00:00
service supervisor restart
2019-03-29 15:25:20 +00:00
supervisorctl reread
supervisorctl update