{"id":2674,"date":"2015-12-27T11:55:17","date_gmt":"2015-12-27T10:55:17","guid":{"rendered":"http:\/\/www.blue-bears.com\/blog\/?p=2674"},"modified":"2017-06-29T06:54:50","modified_gmt":"2017-06-29T04:54:50","slug":"installation-serveur-shoutcast-sous-linux-server","status":"publish","type":"post","link":"http:\/\/www.blue-bears.com\/blog\/?p=2674","title":{"rendered":"Installation Serveur Shoutcast sous Linux Server"},"content":{"rendered":"<ul>\n<li>Installation d&rsquo;un serveur Shoutcast pour streaming de musique.<\/li>\n<li>L&rsquo;objectif est d&rsquo;avoir les MP3 sur le serveur et de streamer pour r\u00e9ception sur Smart Phone. Ce qui \u00e9vite d&rsquo;avoir \u00e0 stocker ces MP3 sur diff\u00e9rents support et en grande quantit\u00e9.<!--more--><\/li>\n<li>11:28 :\n<ul>\n<li>Ouverture session Telnet (Putty)<\/li>\n<li>Cr\u00e9ation User \u00ab\u00a0radio\u00a0\u00bb\n<ul>\n<li>\n<pre># su -\r\n# adduser radio\r\n# passwd p*****c\r\n# exit\r\n# su - radio\r\n$ pwd<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Cr\u00e9ation des r\u00e9pertoires :\n<ul>\n<li>\n<pre>$ mkdir download\r\n$ mkdir server\r\n# cd download<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>T\u00e9l\u00e9chargement de la derni\u00e8re version du serveur pour la config (ici : Kernel and CPU Linux 2.6.32-openvz-042stab094.7-amd64 on i686) soit 64 bit<\/li>\n<li><a href=\"http:\/\/download.nullsoft.com\/shoutcast\/tools\/\" target=\"_blank\">http:\/\/download.nullsoft.com\/shoutcast\/tools\/<\/a>\n<ul>\n<li>\n<pre>\u00a0<del>wget http:\/\/download.nullsoft.com\/shoutcast\/tools\/sc_serv2_linux_x64-latest.tar.gz<\/del><\/pre>\n<\/li>\n<li>\n<pre>wget http:\/\/download.nullsoft.com\/shoutcast\/tools\/sc_serv2_linux-latest.tar.gz<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Extraction des fichiers et copie du fichier sc_serv dans le r\u00e9pertoire server.\n<ul>\n<li>\n<pre>$ tar xfz sc_serv2_linux_x64-latest.tar.gz\r\n$ ls\r\n$ cp  sc_serv  ..\/server\/\r\n$ cd  ..\/server\/\r\n$ ls<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Cr\u00e9ation dans \u00ab\u00a0server\u00a0\u00bb des r\u00e9pertoires : \u00ab\u00a0control\u00a0\u00bb &amp; \u00ab\u00a0logs\u00a0\u00bb (11:44)\n<ul>\n<li>\n<pre>$ mkdir control\r\n$ mkdir logs\r\n$ ls<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Cr\u00e9ation fichier config sous \u00e9diteur Nano (^C = CTRL+C et M-A = ALT+A) dans le r\u00e9pertoire \u00ab\u00a0serveur\u00a0\u00bb.\n<ul>\n<li>\n<pre>nano sc_serv.conf<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Texte \u00e0 ins\u00e9rer dans ce fichier :\n<ul>\n<li>\n<pre>adminpassword=password\r\npassword=password1\r\nrequirestreamconfigs=1\r\nstreamadminpassword_1=password2\r\nstreamid_1=1\r\nstreampassword_1=password3\r\nstreampath_1=http:\/\/VOTRE_SERVEUR.com:8000\r\nlogfile=logs\/sc_serv.log\r\nw3clog=logs\/sc_w3c.log\r\nbanfile=control\/sc_serv.ban\r\nripfile=control\/sc_serv.rip\r\npidfile=\/home\/radio\/server\/sc_serv_8000.pid<\/pre>\n<ul>\n<li>Adminpassword : pour administration du serveur \u00e0 distance<\/li>\n<li>password : pour acc\u00e8s au flux par le lecteur<\/li>\n<li>streamadminpassword_1 : ??<\/li>\n<li>streampassword : ??<\/li>\n<li>Les Adminpass et streampass doivent \u00eatre diff\u00e9rents (sinon alerte)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Rendre sc_serv executable et lancer le serveur :<\/li>\n<li>\n<pre>$ chmod +x sc_serv<\/pre>\n<\/li>\n<li>\n<pre>$ .\/sc_serv &amp;\r\n$ netstat -tulpn | grep sc_serv<\/pre>\n<\/li>\n<li>PLANTAGE\u00a0 : .\/sc_serv: Aucun fichier ou dossier de ce type\n<ul>\n<li>Check ! d\u00e9compression dans le r\u00e9pertoire \/server\/ de tous les fichier du zip (vs seulement copie du sc_serv<\/li>\n<li>Check ! passe en propri\u00e9taire user:radio groupe:radio tous les fichiers du r\u00e9pertoire \/radio\/<\/li>\n<li>Check ! Change l&rsquo;IP du streampath du fichier .conf en quelque chose qui d\u00e9bouche sur une IP dispo.<\/li>\n<li><span style=\"color: #ff0000;\">Check ! Efface tout et recommence avec standard Linux (pas 64) : http:\/\/download.nullsoft.com\/shoutcast\/tools\/sc_serv2_linux-latest.tar.gz<\/span><\/li>\n<li>13:12 : BINGO !!!!!! D\u00e9marrage !<\/li>\n<\/ul>\n<\/li>\n<li>Cr\u00e9ation script arr\u00eat &amp; d\u00e9marrage :\n<ul>\n<li>Passer en Super-utilisateur pour avoir les droits d&rsquo;\u00e9criture dans le r\u00e9pertoire cible.\n<ul>\n<li>\n<pre>$ su -\r\n# nano \/usr\/local\/bin\/radio<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Dans Nano\u00a0 (ou autre \u00e9diteur) coller :\n<ul>\n<li>\n<pre>#!\/bin\/bash\r\ncase $1 in\r\n                start)\r\ncd \/home\/radio\/server\/\r\n.\/sc_serv sc_serv.conf\r\n              ;;\r\n                stop)\r\nkillall sc_serv\r\n                ;;\r\n               start_daemon)\r\ncd \/home\/radio\/server\/\r\n.\/sc_serv daemon\r\n               ;;\r\n                *)\r\necho \"Usage radio start|stop\"\r\n                ;;\r\nesac<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Rendre le fichier \u00ab\u00a0radio\u00a0\u00bb ex\u00e9cutable et sortir du mode Super-utilisateur.\n<ul>\n<li>\n<pre># chmod +x \/usr\/local\/bin\/radio\r\n# exit<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li><span style=\"color: #993366;\"><strong>Bien v\u00e9rifier que les r\u00e9pertoires et fichiers utiliser sont en <span style=\"text-decoration: underline;\">propri\u00e9taire:radio et groupe:radio<\/span> (et pas en root:root)<\/strong><\/span><\/li>\n<li><span style=\"color: #993366;\"><strong>et en <span style=\"text-decoration: underline;\">chmod : 0755<\/span><\/strong><\/span>\n<ul>\n<li>Lancer le serveur : radio start<\/li>\n<li>Lancer en demon : radio start_daemon<\/li>\n<li>arr\u00eater : radio stop<\/li>\n<li>info : radio *<\/li>\n<\/ul>\n<\/li>\n<li>Sur un browser : www.MONSERVEUR.com:8000<\/li>\n<li>Login : admin\u00a0\u00a0 PSW : celui de adminpassword<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<h1>Source :<\/h1>\n<ul>\n<li>Le serveur broadcast (diffuse) \u00e0 son adresse IP sur le port :8000, mais il doit donc recevoir un flux \u00e0 redifuse. Le plus simple est de l&rsquo;envoyer depuis un PC gr\u00e2ce \u00e0 Winamp (comme player) et l&rsquo;installation de son plugin Shoutcast (qui envoie le flux de Winamp vers le server Shoutcast)<\/li>\n<li>Le plugin le plus r\u00e9cent est difficile \u00e0 trouver car Shoutcast a un nouvelle fois chang\u00e9 de propri\u00e9taire : <a href=\"http:\/\/secure.bellonline.co.uk\/knowledgebase\/51\/Winamp-and-Shoutcast-DSP.html\" target=\"_blank\">http:\/\/secure.bellonline.co.uk\/knowledgebase\/51\/Winamp-and-Shoutcast-DSP.html<\/a><\/li>\n<li>Winamp est disponible ici : <a href=\"http:\/\/www.winamp.com\/\" target=\"_blank\">http:\/\/www.winamp.com\/<\/a><\/li>\n<\/ul>\n<\/li>\n<li>\n<h1>Au final :<\/h1>\n<ul>\n<li>Lancer le serveur Shoutcast Linux<\/li>\n<li>Lancer Winamp<\/li>\n<li>et (si il n&rsquo;est pas en d\u00e9marrage automatique) lancer le plugin Shoutcast.<\/li>\n<li>Fonctionne avec l&rsquo;URL sur l&rsquo;Iphone\/Ipad avec :\n<ul>\n<li>TuneIn Radio<\/li>\n<li>OPlayer<\/li>\n<li>RaioBox<\/li>\n<li>Safari =&gt; page accueil de diffusion du flux =&gt; Listen<\/li>\n<li><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Next :\n<ul>\n<li>Lancer un flux depuis le serveur (et plus via PC et WinAmp) :\n<ul>\n<li>AIRTIME<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Biblio :\n<ul>\n<li>Didacticiel principal:\n<ul>\n<li><a href=\"http:\/\/www.tecmint.com\/install-shoutcast-in-linux\/\" target=\"_blank\">http:\/\/www.tecmint.com\/install-shoutcast-in-linux\/<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Didactiel de secours :\n<ul>\n<li><a href=\"https:\/\/technique.arscenic.org\/services-web\/streaming-audio-et-video\/article\/installation-d-un-serveur-radio\" target=\"_blank\">https:\/\/technique.arscenic.org\/services-web\/streaming-audio-et-video\/article\/installation-d-un-serveur-radio<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Sources Shoutcast :\n<ul>\n<li><a href=\"http:\/\/download.nullsoft.com\/shoutcast\/tools\/\" target=\"_blank\">Sources Shoutcast<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Source WINAMP et Plugin SHOUTCAST :\n<ul>\n<li><a href=\"http:\/\/secure.bellonline.co.uk\/knowledgebase\/51\/Winamp-and-Shoutcast-DSP.html\" target=\"_blank\">http:\/\/secure.bellonline.co.uk\/knowledgebase\/51\/Winamp-and-Shoutcast-DSP.html<\/a><\/li>\n<li><a href=\"http:\/\/www.winamp.com\/\" target=\"_blank\">http:\/\/www.winamp.com\/<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Source Airtime :\n<ul>\n<li><a href=\"http:\/\/sourcefabric.booktype.pro\/airtime-25-for-broadcasters\/preparing-the-server\/\" target=\"_blank\">http:\/\/sourcefabric.booktype.pro\/airtime-25-for-broadcasters\/preparing-the-server\/<\/a><\/li>\n<li><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Installation d&rsquo;un serveur Shoutcast pour streaming de musique. L&rsquo;objectif est d&rsquo;avoir les MP3 sur le serveur et de streamer pour r\u00e9ception sur [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-2674","post","type-post","status-publish","format-standard","hentry","category-informatique"],"_links":{"self":[{"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2674"}],"version-history":[{"count":11,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2674\/revisions"}],"predecessor-version":[{"id":2685,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2674\/revisions\/2685"}],"wp:attachment":[{"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2674"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.blue-bears.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}