Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computer:mike_radio_container_recipe [2018/06/19 13:11]
tdobes
computer:mike_radio_container_recipe [2018/06/19 13:27]
tdobes
Line 28: Line 28:
   * ''​aptitude install ca-certificates''​   * ''​aptitude install ca-certificates''​
   * ''​aptitude install icecast2''​ # select "​No"​ to skip configuration;​ it seems to be broken and doesn'​t actually edit anything... WTF?   * ''​aptitude install icecast2''​ # select "​No"​ to skip configuration;​ it seems to be broken and doesn'​t actually edit anything... WTF?
 +  * setup icecast:<​code>​
 +sed -i -e '​s/​\(<​location>​\).*\(<​\/​location>​\)/​\1Hobart,​ IN\2/​g'​ -e '​s/​\(<​admin>​\).*\(<​\/​admin>​\)/​\1webmaster@m-mproductions.com\2/​g'​ -e '​s/​\(<​sources>​\).*\(<​\/​sources>​\)/​\110\2/​g'​ -e '​s/​\(<​source-password>​\).*\(<​\/​source-password>​\)/​\1**PASSWORD**\2/​g'​ -e '​s/​\(<​relay-password>​\).*\(<​\/​relay-password>​\)/​\1**PASSWORD**\2/​g'​ -e '​s/​\(<​admin-password>​\).*\(<​\/​admin-password>​\)/​\1**PASSWORD**\2/​g'​ -e '​s/​\(<​hostname>​\).*\(<​\/​hostname>​\)/​\1radio.m-mproductions.com\2/​g'​ /​etc/​icecast2/​icecast.xml
 +sed -i '​s/​ENABLE=false/​ENABLE=true/​g'​ /​etc/​default/​icecast2
 +systemctl restart icecast2
 +</​code>​
   * ''​%%aptitude --without-recommends install mpd mpc ncmpc%%''​   * ''​%%aptitude --without-recommends install mpd mpc ncmpc%%''​
 +  * merge in changes from ''/​mnt/​old/​etc/​mpd.conf''​ into ''/​etc/​mpd.conf''​ and migrate over mpd state: <​code>​ 
 +systemctl stop mpd.service 
 +diff -u /​mnt/​old/​etc/​mpd.conf.orig /​mnt/​old/​etc/​mpd.conf > ~/​mpdconf.diff || cp -p /​etc/​mpd.conf /​etc/​mpd.conf.orig && cd / && patch -p3 < ~/​mpdconf.diff && cd - && rm ~/​mpdconf.diff 
 +</​code>​
   * migrate ssh keys: ''​cp -a /​mnt/​old/​etc/​ssh/​ssh_host_*key* /​etc/​ssh/''​   * migrate ssh keys: ''​cp -a /​mnt/​old/​etc/​ssh/​ssh_host_*key* /​etc/​ssh/''​
   * migrate homes: ''​%%rsync -aix --del /​mnt/​old/​home/​ /​home/​%%''​   * migrate homes: ''​%%rsync -aix --del /​mnt/​old/​home/​ /​home/​%%''​
-  * migrate recordings: ''​%%rsync -aix --del /​mnt/​old/​var/​local/​music /​var/​local/​%%''​+  * migrate recordings: ''​%%rsync -aix --del /​mnt/​old/​var/​local/​music /​var/​local/ ​&& chown -R mpd /​var/​local/​music/​recordings%%''​
   * migrate playlists: ''​%%rsync -aix --del /​mnt/​old/​var/​lib/​mpd/​playlists/​ /​var/​lib/​mpd/​playlists/​ && chown -R mpd /​var/​lib/​mpd/​playlists%%''​   * migrate playlists: ''​%%rsync -aix --del /​mnt/​old/​var/​lib/​mpd/​playlists/​ /​var/​lib/​mpd/​playlists/​ && chown -R mpd /​var/​lib/​mpd/​playlists%%''​
 +  * start mpd and update database: ''​%%systemctl start mpd && sleep 2 && mpc update%%''​
 +  * migrate mpd state: <​code>​
 +systemctl stop mpd
 +cp -a /​mnt/​old/​var/​lib/​mpd/​state /​var/​lib/​mpd/​state && chown mpd /​var/​lib/​mpd/​state
 +systemctl start mpd
 +mpc play # not sure why this is needed, but running it anyway
 +</​code>​
computer/mike_radio_container_recipe.txt · Last modified: 2018/06/19 13:27 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS