{"id":170235,"date":"2013-02-21T16:08:04","date_gmt":"2013-02-21T12:08:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=170235"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=170235","title":{"rendered":"<span class=\"post_title\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Icecast2 \u0438 mpd \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0430\u0443\u0434\u0438\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e \u043f\u0440\u043e\u0441\u044c\u0431\u0435 \u0434\u0440\u0443\u0433\u0430 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u043d\u043b\u0430\u0439\u043d-\u0440\u0430\u0434\u0438\u043e. \u0418 \u0432\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e, \u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430\u2026<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0443\u0442\u044c\u2026<\/p>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u041f\u043e\u0439\u0434\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Ubuntu Server 12.10.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0441\u0442\u0430\u0432\u0438\u043c Icecast2:  <\/p>\n<pre><code class=\"bash\">sudo apt-get install icecast2<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0441\u0442\u0430\u0432\u0438\u043c mpd:  <\/p>\n<pre><code class=\"bash\">sudo apt-get install mpd<\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <b>radio<\/b> \u0432 \u043a\u043e\u0440\u043d\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<br \/>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c 3 \u0444\u0430\u0439\u043b\u0430 \u0432 \u044d\u0442\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438   <\/p>\n<ul>\n<li>icecast.xml.default<\/li>\n<li>mpd.conf.default<\/li>\n<li>script.sh<\/li>\n<\/ul>\n<p>  \u0418 \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c 2 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438\u0437 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \/etc\/icecast2\/   <\/p>\n<ul>\n<li>web<\/li>\n<li>admin<\/li>\n<\/ul>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a Icecast2 \u0438 mpd.<\/p>\n<p>  \u0424\u0430\u0439\u043b icecast.xml.default:  <\/p>\n<pre><code class=\"xml\">&lt;icecast&gt;     &lt;limits&gt;         &lt;clients&gt;50&lt;\/clients&gt;         &lt;sources&gt;2&lt;\/sources&gt;         &lt;threadpool&gt;5&lt;\/threadpool&gt;         &lt;queue-size&gt;524288&lt;\/queue-size&gt;         &lt;client-timeout&gt;30&lt;\/client-timeout&gt;         &lt;header-timeout&gt;15&lt;\/header-timeout&gt;         &lt;source-timeout&gt;10&lt;\/source-timeout&gt;         &lt;burst-on-connect&gt;1&lt;\/burst-on-connect&gt;         &lt;burst-size&gt;65535&lt;\/burst-size&gt;     &lt;\/limits&gt; \t&lt;authentication&gt; \t\t&lt;source-password&gt;#2&lt;\/source-password&gt; \t\t&lt;relay-password&gt;#2_relay&lt;\/relay-password&gt; \t\t&lt;admin-user&gt;admin&lt;\/admin-user&gt; \t\t&lt;admin-password&gt;admin_#2&lt;\/admin-password&gt; \t&lt;\/authentication&gt; \t&lt;hostname&gt;127.0.0.1&lt;\/hostname&gt; \t&lt;listen-socket&gt; \t\t&lt;port&gt;#3&lt;\/port&gt; \t&lt;\/listen-socket&gt; \t&lt;mount&gt; \t\t&lt;mount-name&gt;\/#1&lt;\/mount-name&gt; \t&lt;\/mount&gt; \t&lt;paths&gt; \t\t&lt;basedir&gt;#0\/#1\/icecast2&lt;\/basedir&gt; \t\t&lt;logdir&gt;#0\/#1\/icecast2\/log&lt;\/logdir&gt; \t\t&lt;webroot&gt;#0\/#1\/icecast2\/web&lt;\/webroot&gt; \t\t&lt;adminroot&gt;#0\/#1\/icecast2\/admin&lt;\/adminroot&gt; \t\t&lt;pidfile&gt;#0\/#1\/icecast2\/icecast.pid&lt;\/pidfile&gt; \t\t&lt;alias source=&quot;\/&quot; dest=&quot;\/status.xsl&quot;\/&gt; \t&lt;\/paths&gt;     &lt;logging&gt;         &lt;accesslog&gt;access.log&lt;\/accesslog&gt;         &lt;errorlog&gt;error.log&lt;\/errorlog&gt;         &lt;loglevel&gt;4&lt;\/loglevel&gt;         &lt;logsize&gt;10000&lt;\/logsize&gt;     &lt;\/logging&gt;     &lt;security&gt;         &lt;chroot&gt;0&lt;\/chroot&gt;         &lt;changeowner&gt;             &lt;user&gt;icecast&lt;\/user&gt;             &lt;group&gt;icecast&lt;\/group&gt;         &lt;\/changeowner&gt;     &lt;\/security&gt; &lt;\/icecast&gt; <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0430\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<br \/>  <b>#0<\/b> \u2014 \u043f\u0443\u0442\u044c \u0434\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/>  <b>#1<\/b> \u2014 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/>  <b>#2<\/b> \u2014 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/>  <b>#3<\/b> \u2014 \u043f\u043e\u0440\u0442 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d Icecast2<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c mpd.conf.default:  <\/p>\n<pre><code class=\"bash\"> music_directory       &quot;#1\/#2\/music&quot; playlist_directory     &quot;#1\/#2\/playlists&quot; db_file                       &quot;#1\/#2\/lib\/tag_cache&quot; log_file                \t   &quot;#1\/#2\/log\/mpd.log&quot; pid_file                \t   &quot;#1\/#2\/pid&quot; state_file              \t   &quot;#1\/#2\/state&quot; user                           &quot;mpd&quot; bind_to_address    &quot;127.0.0.1&quot; port\t\t                   &quot;#5&quot; auto_update            &quot;yes&quot;  audio_output { \ttype                   &quot;shout&quot; \tname                 &quot;#2 radio&quot; \tencoding          &quot;mp3&quot; \thost                   &quot;localhost&quot; \tport                    &quot;#4&quot; \tmount                &quot;\/#2&quot; \tpassword         &quot;#3&quot; \tbitrate                &quot;192&quot; \tformat                &quot;44100:16:2&quot; }  audio_output { \ttype &quot;alsa&quot; \tname &quot;fake out&quot; \tdriver &quot;null&quot; } volume_normalization            &quot;yes&quot; filesystem_charset              &quot;UTF-8&quot; id3v1_encoding                  &quot;UTF-8&quot; metadata_to_use                  &quot;artist,album,title,track,name,genre,date,composer,performer,disc&quot; <\/code><\/pre>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b mpd:<br \/>  <b>#1<\/b> \u2014 \u043f\u0443\u0442\u044c \u0434\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/>  <b>#2<\/b> \u2014 \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<br \/>  <b>#3<\/b> \u2014 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f Icecast2<br \/>  <b>#4<\/b> \u2014 \u043f\u043e\u0440\u0442 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u0443\u0449\u0435\u043d Icecast2<br \/>  <b>#5<\/b> \u2014 \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f mpd<\/p>\n<p>  \u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0444\u0430\u0439\u043b \u2014 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:  <\/p>\n<pre><code class=\"bash\"> #!\/bin\/bash MAIN_DIR=\/userAlias FROM=\/radio if [ $# -lt 4 ]; then \techo &quot;==== \u041d\u0435 \u0437\u0430\u0434\u0430\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b ====&quot; \techo &quot;\u0424\u043e\u0440\u043c\u0430\u0442 .\/script.sh 'userName' 'userPassword' 'port' 'mpdPort'&quot; \texit 1 fi echo &quot;&lt;===&gt; \u041d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430 &lt;===&gt;&quot; if [ ! -d &quot;$MAIN_DIR&quot; ]; then \tmkdir $MAIN_DIR \techo &quot;      \u0421\u043e\u0437\u0434\u0430\u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u043f\u0430\u043f\u043a\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439&quot; fi mkdir $MAIN_DIR'\/'$1 echo &quot;      \u0421\u043e\u0437\u0434\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f &quot; $1 echo &quot;&quot; echo &quot;&lt;===&gt;  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 icecast &lt;===&gt;&quot; cp $FROM\/icecast.xml.default $MAIN_DIR'\/'$1'\/'icecast.xml replace '#0' $MAIN_DIR -- $MAIN_DIR'\/'$1'\/'icecast.xml replace '#1' $1 -- $MAIN_DIR'\/'$1'\/'icecast.xml replace '#2' $2 -- $MAIN_DIR'\/'$1'\/'icecast.xml replace '#3' $3 -- $MAIN_DIR'\/'$1'\/'icecast.xml mkdir $MAIN_DIR'\/'$1'\/icecast2'  mkdir $MAIN_DIR'\/'$1'\/icecast2\/log'  mkdir $MAIN_DIR'\/'$1'\/icecast2\/web'  mkdir $MAIN_DIR'\/'$1'\/icecast2\/admin'  cp $FROM\/icecastDirs\/admin\/* $MAIN_DIR'\/'$1'\/icecast2\/admin' cp $FROM\/icecastDirs\/web\/* $MAIN_DIR'\/'$1'\/icecast2\/web' touch $MAIN_DIR\/$1\/icecast2\/log\/error.log touch $MAIN_DIR\/$1\/icecast2\/log\/access.log chown icecast:icecast  $MAIN_DIR\/$1\/icecast.xml chown icecast:icecast  $MAIN_DIR\/$1\/icecast2\/log\/* echo &quot;&lt;===&gt;  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 icecast  \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 &lt;===&gt;&quot; echo &quot;&quot; echo &quot;&lt;===&gt;  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 mpd &lt;===&gt;&quot; cp $FROM\/mpd.conf.default $MAIN_DIR'\/'$1'\/'mpd.conf replace '#1' $MAIN_DIR -- $MAIN_DIR'\/'$1'\/'mpd.conf replace '#2' $1 -- $MAIN_DIR'\/'$1'\/'mpd.conf replace '#3' $2 -- $MAIN_DIR'\/'$1'\/'mpd.conf replace '#4' $3 -- $MAIN_DIR'\/'$1'\/'mpd.conf replace '#5' $4 -- $MAIN_DIR'\/'$1'\/'mpd.conf mkdir $MAIN_DIR'\/'$1'\/music'  mkdir $MAIN_DIR'\/'$1'\/playlists'  mkdir $MAIN_DIR'\/'$1'\/lib'  mkdir $MAIN_DIR'\/'$1'\/log'  touch $MAIN_DIR\/$1\/lib\/tag_cache chmod 777 $MAIN_DIR\/$1\/lib\/tag_cache touch $MAIN_DIR\/$1\/pid chmod 777 $MAIN_DIR\/$1\/pid echo &quot;&lt;===&gt;  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 mpd  \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 &lt;===&gt;&quot; echo &quot;&lt;===&gt;  \u0417\u0430\u043f\u0443\u0441\u043a icecast &lt;===&gt;&quot; icecast2 -b -c  $MAIN_DIR'\/'$1'\/'icecast.xml sleep 1s echo &quot;&lt;===&gt;  \u0417\u0430\u043f\u0443\u0441\u043a mpd &lt;===&gt;&quot; mpd  $MAIN_DIR'\/'$1'\/'mpd.conf <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0435 \u0432\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438, \u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<ul>\n<li>\u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/li>\n<li>\u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a Icecast2 \u0438 mpd<\/li>\n<li>\u043f\u043e\u0434\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a<\/li>\n<li>\u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f Icecast2 \u0438 mpd<\/li>\n<li>\u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0444\u0430\u0439\u043b\u044b<\/li>\n<li>\u0437\u0430\u043f\u0443\u0441\u043a Icecast2<\/li>\n<li>\u0437\u0430\u043f\u0443\u0441\u043a mpd<\/li>\n<\/ul>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f 3 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u044b\u043c:  <\/p>\n<pre><code class=\"bash\">chmod 777 script.sh<\/code><\/pre>\n<p>  \u0418 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c:  <\/p>\n<pre><code class=\"bash\">.\/script.sh radio1 password1 9001 19001<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u044b Icecast2 \u0438 mpd.<br \/>  \u0412 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443:<br \/>  <code>&lt;host&gt;:9001\/radio1<\/code><\/p>\n<p>  \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430\u2026 <b>mpd<\/b> \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d ( \u043d\u0435 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 \u043c\u0443\u0437\u044b\u043a\u0443) \u0438 \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435\u0442.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0443\u0437\u044b\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e: <b>\/userAlias\/radio1\/music\/<\/b><\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0434\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u2014 \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f mpd:  <\/p>\n<pre><code class=\"bash\">sudo apt-get install ncmpc<\/code><\/pre>\n<p>  \u0421 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c mpd.<br \/>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f:<br \/>  <b>ncmpc -p 19001<\/b><br \/>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443 music <code>Ctrl + U<\/code><br \/>  \u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0434\u043e \u043d\u0430\u0436\u0430\u0442\u044c &#8216;3&#8217; \u2014 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u0432 \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043c\u0435\u0434\u0438\u0430\u0442\u0435\u043a\u0438. <br \/>  \u0423\u043f\u0440\u0430\u0432\u043b\u044f\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0430\u043c\u0438 \u0412\u0412\u0415\u0420\u0425 \/ \u0412\u041d\u0418\u0417 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u041f\u0420\u041e\u0411\u0415\u041b\u043e\u043c \u043f\u0435\u0441\u043d\u0438.<br \/>  \u041d\u0430\u0436\u0430\u0432 &#8216;2&#8217; \u2014 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430. \u041d\u0430\u0436\u0430\u0432 Enter \u2014 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u0430\u0448 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e, \u0442\u043e \u043f\u043e \u043f\u0435\u0440\u0435\u0439\u0434\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>&lt;host&gt;:9001\/radio1<\/code> \u0443\u0441\u043b\u044b\u0448\u0438\u043c \u043c\u0443\u0437\u044b\u043a\u0443 \u0438\u0437 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430.<\/p>\n<p>  \u0412\u044b\u0441\u043b\u0443\u0448\u0430\u044e \u043b\u044e\u0431\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f, \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/170235\/\"> http:\/\/habrahabr.ru\/post\/170235\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u043e \u043f\u0440\u043e\u0441\u044c\u0431\u0435 \u0434\u0440\u0443\u0433\u0430 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u043d\u043b\u0430\u0439\u043d-\u0440\u0430\u0434\u0438\u043e. \u0418 \u0432\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e, \u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430\u2026<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0443\u0442\u044c\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-170235","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/170235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=170235"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/170235\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=170235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=170235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=170235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}