From 87f5b27559e8fb36c87bebf5cf68bfe739ae80cb Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Wed, 29 May 2019 21:57:02 -0400 Subject: [PATCH] add icecast config --- copy_scripts.sh | 4 +++ icecast.xml | 65 +++++++++++++++++++++++++++++++++++++++++++++++++ mpd.conf | 50 +++++++++++++++++++++++++------------ 3 files changed, 104 insertions(+), 15 deletions(-) create mode 100644 icecast.xml diff --git a/copy_scripts.sh b/copy_scripts.sh index a601ba3..cbe2495 100755 --- a/copy_scripts.sh +++ b/copy_scripts.sh @@ -19,6 +19,10 @@ $HOME/.zshrc zshrc $HOME/src/scripts/* . /etc/motsognir.conf motsognir.conf /etc/systemd/network/* . +/etc/icecast.xml icecast.xml /mnt/d/w2/Output/_dlscr/bookmark_get.ps1 bookmark_get.ps1 /usr/share/X11/xkb/symbols/progm progm.xkb END + +sed -i 's/password>.*<\//password>password removed<\//g' icecast.xml +sed -i 's/password\(\s*\)".*"/password\1"password removed"/g' mpd.conf diff --git a/icecast.xml b/icecast.xml new file mode 100644 index 0000000..679dbaa --- /dev/null +++ b/icecast.xml @@ -0,0 +1,65 @@ + + Ohio + marrub@greyserv.net + heavenisin.space + + + 1 + + + 7 + 1 + 524288 + 30 + 15 + 10 + 1 + 65535 + + + + password removed + password removed + + admin + password removed + + + +
+ + + + 8000 + /stream.ogg + + + + + /usr/share/icecast + + /var/log/icecast + /usr/share/icecast/web + /usr/share/icecast/admin + + + + + + + access.log + error.log + + 3 + 10000 + 1 + + + + 0 + + nobody + nobody + + + diff --git a/mpd.conf b/mpd.conf index ef2cb00..b32fdcc 100644 --- a/mpd.conf +++ b/mpd.conf @@ -1,21 +1,41 @@ -music_directory "~/Music" -playlist_directory "~/.config/mpd/playlists" -db_file "~/.config/mpd/database" -log_file "~/.config/mpd/log" -pid_file "~/.config/mpd/pid" -state_file "~/.config/mpd/state" -sticker_file "~/.config/mpd/sticker.sql" -bind_to_address "[::]" -port "6600" +bind_to_address "[::]" +port "6600" + +db_file "~/.config/mpd/database" +log_file "~/.config/mpd/log" +music_directory "~/Music" +pid_file "~/.config/mpd/pid" +playlist_directory "~/.config/mpd/playlists" +state_file "~/.config/mpd/state" +sticker_file "~/.config/mpd/sticker.sql" audio_output { - type "pulse" - name "Pulse Output" + type "pulse" + name "Pulse Output" } audio_output { - type "fifo" - name "mpdfifo" - path "~/.config/mpd/fifo" - format "44100:16:2" + type "fifo" + name "mpdfifo" + + format "44100:16:2" + + path "~/.config/mpd/fifo" +} + +audio_output { + type "shout" + name "Heaven Is In Space" + always_on "yes" + + encoder "vorbis" + format "44100:16:2" + quality "4.0" + + host "127.0.0.1" + mount "/stream.ogg" + password "password removed" + port "8000" + protocol "icecast2" + public "yes" }