====== ShoutCast ====== Liens: *http://www.6ma.fr/tuto/shoutcast+streaming+radio+sous+linux-79 Le but: Installé une diffuseur de streaming audio: ShoutCast, version 64 bit. Mais comme j'ai moyennement confiance, je vais "chrooté" le serveur. ===== Chrooté ===== Ayant moyennement confiance, on va mettre le serveur dans un environnement chrooté. Installer les outils pour chrooter: # aptitude install debootstrap Choisir une distribution parmi: # ls /usr/share/debootstrap/scripts/ breezy etch gutsy hoary.buildd karmic maverick sarge sid testing warty.buildd woody.buildd dapper etch-m68k hardy intrepid lenny natty sarge.buildd squeeze unstable wheezy edgy feisty hoary jaunty lucid potato sarge.fakechroot stable warty woody On choisit "squeeze". Préparer le répertoire du systeme chrooté: # mkdir /opt/shoutcast # mkdir /opt/shoutcast/sys Installer la distribution choisit dans ce répertoire: # debootstrap squeeze /opt/shoutcast/sys .... I: Base system installed successfully. Prépare ce nouveau systeme: # cp /etc/hosts /opt/shoutcast/sys/etc/ Remplir **''/opt/shoutcast/sys/etc/apt/sources.list''** correctement. Dans **''/etc/fstab''** ajouter: # ----- chroot ----- proc /opt/shoutcast/sys/proc proc none 0 0 # ------------------ Et puis mounter proc: # mount -a Finir dans ce nouveau system: # chroot /opt/shoutcast/sys /bin/bash # dpkg-reconfigure tzdata # aptitude install locales # dpkg-reconfigure locales ===== Installation ===== ==== user ==== # adduser shoutcast --no-create-home --disabled-login ==== tar.gz ==== === serv === Le serveur: # mkdir -p /opt/shoutcast/serv # cd /opt/shoutcast/serv # wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64_07_31_2011.tar.gz # tar xvzf sc_serv2_linux_x64_07_31_2011.tar.gz === trans === Le client qui envoi le flux audio aux clients (via le serveur): # mkdir -p /opt/shoutcast/trans # cd /opt/shoutcast/trans # wget http://download.nullsoft.com/shoutcast/tools/sc_trans_linux_x64_10_07_2011.tar.gz # tar xvzf sc_trans_linux_x64_10_07_2011.tar.gz