-
Notifications
You must be signed in to change notification settings - Fork 0
Home
olelond edited this page Jun 30, 2021
·
12 revisions
Server Setup:
apt install nginx git python3-certbot-nginx mc emacs tmux
snap install youtube-dl
timedatectl set-timezone Europe/London
server_names_hash_bucket_size 64;
in /etc/nginx/nginx.conf
mkdir /home/liquidsoap/omyradio
cd /home/liquidsoap/omyradio
chown liquidsoap:liquidsoap -R /home/liquidsoap/omyradio
git clone https://github.com/savonet/liquidsoap-daemon
cd liquidsoap-daemon
rm -rf script
git clone https://github.com/omyradio/radio script
mkdir audio
cd audio
git clone https://github.com/omyradio/jingles
mkdir lifeindub
cd lifeindub
youtube-dl https://feed.podbean.com/lifeindub/feed.xml
cd ..
mkdir tom
cd tom
youtube-dl --playlist-random --extract-audio --audio-format mp3 --max-downloads 4 https://www.mixcloud.com/tombauminista/stream/
cd ..
curl https://download.jitsi.org/jitsi-key.gpg.key | sudo sh -c 'gpg --dearmor > /usr/share/keyrings/jitsi-keyring.gpg'
echo 'deb [signed-by=/usr/share/keyrings/jitsi-keyring.gpg] https://download.jitsi.org stable/' | sudo tee /etc/apt/sources.list.d/jitsi-stable.list > /dev/null
# update all package sources
sudo apt update
jitsi-meet icecast2 liquidsoap
sudo mkdir /usr/share/liquidsoap/1.4.1 sudo ln -s /usr/share/liquidsoap/libs /usr/share/liquidsoap/1.4.1/
for all domains certbot --nginx endfor
mv /usr/share/jitsi-meet/sounds /usr/share/jitsi-meet/sounds_disabled
edit /usr/share/jitsi-meet/libs/external_api.min.js:
this._frame.allow=“camera; microphone; display-capture” to this._frame.allow=“camera; microphone ‘none’; display-capture”
- jitsi logins
- jitsi css
I've put at script: /home/liquidsoap/deleteoldrecordings.sh:
#!/bin/sh
find /home/liquidsoap/audio/rec -mtime +10 -type f -delete
This is run by cron once a day at 5am:
0 5 * * * /home/liquidsoap/deleteoldrecordings.sh