Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.51 KB | None | 0 0
  1. pi@raspberrypi ~ $ sudo service mpd restart
  2. [ ok ] Stopping Music Player Daemon: mpd.
  3. [....] Starting Music Player Daemon: mpdFailed to bind to '127.0.0.1:6600': Cannot assign requested address
  4. failed!
  5.  
  6. pi@raspberrypi ~ $ sudo service mpd restart
  7. [ ok ] Stopping Music Player Daemon: mpd.
  8. [....] Starting Music Player Daemon: mpdpath: path_set_fs_charset: fs charset is: UTF-8
  9. database: reading DB
  10. output: No "audio_output" defined in config file
  11. output: Attempt to detect audio output device
  12. output: Attempting to detect a alsa audio device
  13. output: Successfully detected a alsa audio device
  14. disabling the last.fm playlist plugin because account is not configured
  15. daemon: opening pid file
  16. daemon: daemonized!
  17. daemon: writing pid file
  18. . ok
  19. pi@raspberrypi ~ $ sudo service mpd restart
  20. [ ok ] Stopping Music Player Daemon: mpd.
  21. [....] Starting Music Player Daemon: mpdFailed to bind to '127.0.0.1:6600': Cannot assign requested address
  22. failed!
  23. pi@raspberrypi ~ $ sudo service mpd restart
  24. [ ok ] Stopping Music Player Daemon: mpd.
  25. [....] Starting Music Player Daemon: mpdpath: path_set_fs_charset: fs charset is: UTF-8
  26. database: reading DB
  27. output: No "audio_output" defined in config file
  28. output: Attempt to detect audio output device
  29. output: Attempting to detect a alsa audio device
  30. output: Successfully detected a alsa audio device
  31. disabling the last.fm playlist plugin because account is not configured
  32. daemon: opening pid file
  33. daemon: daemonized!
  34. daemon: writing pid file
  35. . ok
  36.  
  37. pi@raspberrypi ~ $ netstat -a | grep 6600
  38. tcp 0 0 *:6600 *:* LISTEN
  39.  
  40. pi@raspberrypi ~ $ mpc
  41. error: Timeout while connecting
  42.  
  43. pi@raspberrypi ~ $ mpc -h raspberrypi.local
  44. error: Timeout while connecting
  45.  
  46. # An example configuration file for MPD
  47. # See the mpd.conf man page for a more detailed description of each parameter.
  48.  
  49.  
  50. # Files and directories #######################################################
  51. #
  52. # This setting controls the top directory which MPD will search to discover the
  53. # available audio files and add them to the daemon's online database. This
  54. # setting defaults to the XDG directory, otherwise the music directory will be
  55. # be disabled and audio files will only be accepted over ipc socket (using
  56. # file:// protocol) or streaming files over an accepted protocol.
  57. #
  58. music_directory "/var/lib/mpd/music"
  59. #
  60. # This setting sets the MPD internal playlist directory. The purpose of this
  61. # directory is storage for playlists created by MPD. The server will use
  62. # playlist files not created by the server but only if they are in the MPD
  63. # format. This setting defaults to playlist saving being disabled.
  64. #
  65. playlist_directory "/var/lib/mpd/playlists"
  66. #
  67. # This setting sets the location of the MPD database. This file is used to
  68. # load the database at server start up and store the database while the
  69. # server is not up. This setting defaults to disabled which will allow
  70. # MPD to accept files over ipc socket (using file:// protocol) or streaming
  71. # files over an accepted protocol.
  72. #
  73. db_file "/var/lib/mpd/tag_cache"
  74. #
  75. # These settings are the locations for the daemon log files for the daemon.
  76. # These logs are great for troubleshooting, depending on your log_level
  77. # settings.
  78. #
  79. # The special value "syslog" makes MPD use the local syslog daemon. This
  80. # setting defaults to logging to syslog, otherwise logging is disabled.
  81. #
  82. log_file "/var/log/mpd/mpd.log"
  83. #
  84. # This setting sets the location of the file which stores the process ID
  85. # for use of mpd --kill and some init scripts. This setting is disabled by
  86. # default and the pid file will not be stored.
  87. #
  88. pid_file "/var/run/mpd/pid"
  89. #
  90. # This setting sets the location of the file which contains information about
  91. # most variables to get MPD back into the same general shape it was in before
  92. # it was brought down. This setting is disabled by default and the server
  93. # state will be reset on server start up.
  94. #
  95. state_file "/var/lib/mpd/state"
  96. #
  97. # The location of the sticker database. This is a database which
  98. # manages dynamic information attached to songs.
  99. #
  100. sticker_file "/var/lib/mpd/sticker.sql"
  101. #
  102. ###############################################################################
  103.  
  104.  
  105. # General music daemon options ################################################
  106. #
  107. # This setting specifies the user that MPD will run as. MPD should never run as
  108. # root and you may use this setting to make MPD change its user ID after
  109. # initialization. This setting is disabled by default and MPD is run as the
  110. # current user.
  111. #
  112. # user "mpd"
  113. #
  114. # This setting specifies the group that MPD will run as. If not specified
  115. # primary group of user specified with "user" setting will be used (if set).
  116. # This is useful if MPD needs to be a member of group such as "audio" to
  117. # have permission to use sound card.
  118. #
  119. #group "nogroup"
  120. #
  121. # This setting sets the address for the daemon to listen on. Careful attention
  122. # should be paid if this is assigned to anything other then the default, any.
  123. # This setting can deny access to control of the daemon. Choose any if you want
  124. # to have mpd listen on every address
  125. #
  126. # For network
  127. #bind_to_address "localhost"
  128. bind_to_address "any"
  129. #
  130. # And for Unix Socket
  131. #bind_to_address "/var/run/mpd/socket"
  132. #
  133. # This setting is the TCP port that is desired for the daemon to get assigned
  134. # to.
  135. #
  136. #port "6600"
  137. #
  138. # This setting controls the type of information which is logged. Available
  139. # setting arguments are "default", "secure" or "verbose". The "verbose" setting
  140. # argument is recommended for troubleshooting, though can quickly stretch
  141. # available resources on limited hardware storage.
  142. #
  143. log_level "verbose"
  144. #
  145. # If you have a problem with your MP3s ending abruptly it is recommended that
  146. # you set this argument to "no" to attempt to fix the problem. If this solves
  147. # the problem, it is highly recommended to fix the MP3 files with vbrfix
  148. # (available as vbrfix in the debian archive), at which
  149. # point gapless MP3 playback can be enabled.
  150. #
  151. #gapless_mp3_playback "yes"
  152. #
  153. # This setting enables MPD to create playlists in a format usable by other
  154. # music players.
  155. #
  156. #save_absolute_paths_in_playlists "no"
  157. #
  158. # This setting defines a list of tag types that will be extracted during the
  159. # audio file discovery process. Optionally, 'comment' can be added to this
  160. # list.
  161. #
  162. #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
  163. #
  164. # This setting enables automatic update of MPD's database when files in
  165. # music_directory are changed.
  166. #
  167. #auto_update "yes"
  168. #
  169. # Limit the depth of the directories being watched, 0 means only watch
  170. # the music directory itself. There is no limit by default.
  171. #
  172. #auto_update_depth "3"
  173. #
  174. ###############################################################################
  175.  
  176.  
  177. # Symbolic link behavior ######################################################
  178. #
  179. # If this setting is set to "yes", MPD will discover audio files by following
  180. # symbolic links outside of the configured music_directory.
  181. #
  182. #follow_outside_symlinks "yes"
  183. #
  184. # If this setting is set to "yes", MPD will discover audio files by following
  185. # symbolic links inside of the configured music_directory.
  186. #
  187. #follow_inside_symlinks "yes"
  188. #
  189. ###############################################################################
  190.  
  191.  
  192. # Zeroconf / Avahi Service Discovery ##########################################
  193. #
  194. # If this setting is set to "yes", service information will be published with
  195. # Zeroconf / Avahi.
  196. #
  197. #zeroconf_enabled "yes"
  198. #
  199. # The argument to this setting will be the Zeroconf / Avahi unique name for
  200. # this MPD server on the network.
  201. #
  202. #zeroconf_name "Music Player"
  203. #
  204. ###############################################################################
  205.  
  206.  
  207. # Permissions #################################################################
  208. #
  209. # If this setting is set, MPD will require password authorization. The password
  210. # can setting can be specified multiple times for different password profiles.
  211. #
  212. #password "password@read,add,control,admin"
  213. #
  214. # This setting specifies the permissions a user has who has not yet logged in.
  215. #
  216. #default_permissions "read,add,control,admin"
  217. #
  218. ###############################################################################
  219.  
  220.  
  221. # Input #######################################################################
  222. #
  223.  
  224. #input {
  225. # plugin "curl"
  226. # proxy "proxy.isp.com:8080"
  227. # proxy_user "user"
  228. # proxy_password "password"
  229. #}
  230.  
  231. #
  232. ###############################################################################
  233.  
  234. # Audio Output ################################################################
  235. #
  236. # MPD supports various audio output types, as well as playing through multiple
  237. # audio outputs at the same time, through multiple audio_output settings
  238. # blocks. Setting this block is optional, though the server will only attempt
  239. # autodetection for one sound card.
  240. #
  241. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
  242. # other audio outputs.
  243. #
  244. # An example of an ALSA output:
  245. #
  246. #audio_output {
  247. # type "alsa"
  248. # name "My ALSA Device"
  249. # device "hw:0,0" # optional
  250. # format "44100:16:2" # optional
  251. # mixer_device "default" # optional
  252. # mixer_control "PCM" # optional
  253. # mixer_index "0" # optional
  254. #}
  255. #
  256. # An example of an OSS output:
  257. #
  258. #audio_output {
  259. # type "oss"
  260. # name "My OSS Device"
  261. # device "/dev/dsp" # optional
  262. # format "44100:16:2" # optional
  263. # mixer_device "/dev/mixer" # optional
  264. # mixer_control "PCM" # optional
  265. #}
  266. #
  267. # An example of a shout output (for streaming to Icecast):
  268. #
  269. #audio_output {
  270. # type "shout"
  271. # encoding "ogg" # optional
  272. # name "My Shout Stream"
  273. # host "localhost"
  274. # port "8000"
  275. # mount "/mpd.ogg"
  276. # password "hackme"
  277. # quality "5.0"
  278. # bitrate "128"
  279. # format "44100:16:1"
  280. # protocol "icecast2" # optional
  281. # user "source" # optional
  282. # description "My Stream Description" # optional
  283. # genre "jazz" # optional
  284. # public "no" # optional
  285. # timeout "2" # optional
  286. #}
  287. #
  288. # An example of a recorder output:
  289. #
  290. #audio_output {
  291. # type "recorder"
  292. # name "My recorder"
  293. # encoder "vorbis" # optional, vorbis or lame
  294. # path "/var/lib/mpd/recorder/mpd.ogg"
  295. ## quality "5.0" # do not define if bitrate is defined
  296. # bitrate "128" # do not define if quality is defined
  297. # format "44100:16:1"
  298. #}
  299. #
  300. # An example of a httpd output (built-in HTTP streaming server):
  301. #
  302. #audio_output {
  303. # type "httpd"
  304. # name "My HTTP Stream"
  305. # encoder "vorbis" # optional, vorbis or lame
  306. # port "8000"
  307. # quality "5.0" # do not define if bitrate is defined
  308. # bitrate "128" # do not define if quality is defined
  309. # format "44100:16:1"
  310. #}
  311. #
  312. # An example of a pulseaudio output (streaming to a remote pulseaudio server)
  313. #
  314. #audio_output {
  315. # type "pulse"
  316. # name "My Pulse Output"
  317. # server "remote_server" # optional
  318. # sink "remote_server_sink" # optional
  319. #}
  320. #
  321. ## Example "pipe" output:
  322. #
  323. #audio_output {
  324. # type "pipe"
  325. # name "my pipe"
  326. # command "aplay -f cd 2>/dev/null"
  327. ## Or if you're want to use AudioCompress
  328. # command "AudioCompress -m | aplay -f cd 2>/dev/null"
  329. ## Or to send raw PCM stream through PCM:
  330. # command "nc example.org 8765"
  331. # format "44100:16:2"
  332. #}
  333. #
  334. ## An example of a null output (for no audio output):
  335. #
  336. #audio_output {
  337. # type "null"
  338. # name "My Null Output"
  339. #}
  340. #
  341. # This setting will change all decoded audio to be converted to the specified
  342. # format before being passed to the audio outputs. By default, this setting is
  343. # disabled.
  344. #
  345. #audio_output_format "44100:16:2"
  346. #
  347. # If MPD has been compiled with libsamplerate support, this setting specifies
  348. # the sample rate converter to use. Possible values can be found in the
  349. # mpd.conf man page or the libsamplerate documentation. By default, this is
  350. # setting is disabled.
  351. #
  352. #samplerate_converter "Fastest Sinc Interpolator"
  353. #
  354. ###############################################################################
  355.  
  356.  
  357. # Volume control mixer ########################################################
  358. #
  359. # These are the global volume control settings. By default, this setting will
  360. # be detected to the available audio output device, with preference going to
  361. # hardware mixing. Hardware and software mixers for individual audio_output
  362. # sections cannot yet be mixed.
  363. #
  364. # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
  365. # setting is used other sound applications will be affected by the volume
  366. # being controlled by MPD.
  367. #
  368. #mixer_type "hardware"
  369. #
  370. # An example for controlling all mixers through software. This will control
  371. # all controls, even if the mixer is not supported by the device and will not
  372. # affect any other sound producing applications.
  373. #
  374. #mixer_type "software"
  375. #
  376. # This example will not allow MPD to touch the mixer at all and will disable
  377. # all volume controls.
  378. #
  379. #mixer_type "disabled"
  380. #
  381. ###############################################################################
  382.  
  383.  
  384. # Normalization automatic volume adjustments ##################################
  385. #
  386. # This setting specifies the type of ReplayGain to use. This setting can have
  387. # the argument "album" or "track". See <http://www.replaygain.org> for more
  388. # details. This setting is disabled by default.
  389. #
  390. #replaygain "album"
  391. #
  392. # This setting sets the pre-amp used for files that have ReplayGain tags. By
  393. # default this setting is disabled.
  394. #
  395. #replaygain_preamp "0"
  396. #
  397. # This setting enables on-the-fly normalization volume adjustment. This will
  398. # result in the volume of all playing audio to be adjusted so the output has
  399. # equal "loudness". This setting is disabled by default.
  400. #
  401. #volume_normalization "no"
  402. #
  403. ###############################################################################
  404.  
  405.  
  406. # MPD Internal Buffering ######################################################
  407. #
  408. # This setting adjusts the size of internal decoded audio buffering. Changing
  409. # this may have undesired effects. Don't change this if you don't know what you
  410. # are doing.
  411. #
  412. #audio_buffer_size "2048"
  413. #
  414. # This setting controls the percentage of the buffer which is filled before
  415. # beginning to play. Increasing this reduces the chance of audio file skipping,
  416. # at the cost of increased time prior to audio playback.
  417. #
  418. #buffer_before_play "10%"
  419. #
  420. ###############################################################################
  421.  
  422.  
  423. # Resource Limitations ########################################################
  424. #
  425. # These settings are various limitations to prevent MPD from using too many
  426. # resources. Generally, these settings should be minimized to prevent security
  427. # risks, depending on the operating resources.
  428. #
  429. #connection_timeout "60"
  430. #max_connections "10"
  431. #max_playlist_length "16384"
  432. #max_command_list_size "2048"
  433. #max_output_buffer_size "8192"
  434. #
  435. ###############################################################################
  436.  
  437.  
  438. # Character Encoding ##########################################################
  439. #
  440. # If file or directory names do not display correctly for your locale then you
  441. # may need to modify this setting. After modification of this setting mpd
  442. # --create-db must be run to change the database.
  443. #
  444. filesystem_charset "UTF-8"
  445. #
  446. # This setting controls the encoding that ID3v1 tags should be converted from.
  447. #
  448. id3v1_encoding "UTF-8"
  449. #
  450. ###############################################################################
  451. # SIDPlay decoder #############################################################
  452. #
  453. # songlength_database:
  454. # Location of your songlengths file, as distributed with the HVSC.
  455. # The sidplay plugin checks this for matching MD5 fingerprints.
  456. # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
  457. #
  458. # default_songlength:
  459. # This is the default playing time in seconds for songs not in the
  460. # songlength database, or in case you're not using a database.
  461. # A value of 0 means play indefinitely.
  462. #
  463. # filter:
  464. # Turns the SID filter emulation on or off.
  465. #
  466. #decoder {
  467. # plugin "sidplay"
  468. # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
  469. # default_songlength "120"
  470. # filter "true"
  471. #}
  472. #
  473. ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement