35 lines
919 B
Bash
35 lines
919 B
Bash
#!/bin/sh
|
|
|
|
# Actualizar el sistema después de instalado
|
|
pacman-key --init
|
|
pacman-key --populate archlinuxarm
|
|
pacman -Syu --noconfirm
|
|
|
|
# Instalar las dependencias
|
|
pacman -S --noconfirm monit ffmpeg tinc alsa-utils
|
|
|
|
# Habilitar el micrófono
|
|
amixer sset Mic unmute
|
|
amixer sset Mic 70%
|
|
alsactl store
|
|
|
|
# Configurar privilegios
|
|
echo "PASSWORD=${PASSWORD}" > /etc/transmisor.conf
|
|
echo "SOURCE=${SOURCE}" >> /etc/transmisor.conf
|
|
echo "SERVER=${SERVER:-transmisor.partidopirata.com.ar}" >> /etc/transmisor.conf
|
|
echo "PORT=${PORT:-8000}" >> /etc/transmisor.conf
|
|
chown -R root:audio /etc/transmisor.conf
|
|
chmod 640 /etc/transmisor.conf
|
|
gpasswd -a alarm audio
|
|
|
|
rm /etc/monitrc
|
|
install -m 600 ./monitrc /etc/monitrc
|
|
install -m 755 ./grabar /usr/local/bin/grabar
|
|
install -m 755 ./transmitir /usr/local/bin/transmitir
|
|
|
|
install -m 600 ./totoro /etc/netctl/totoro
|
|
netctl enable totoro
|
|
netctl start totoro
|
|
|
|
systemctl enable --now monit
|