Share Pastebin
Guest
Public paste!

root

By: a guest | Apr 30th, 2009 | Syntax: None | Size: 7.87 KB | Hits: 23 | Expires: Never
Copy text to clipboard
  1. # An example configuration file for MPD
  2. # See the mpd.conf man page for a more detailed description of each parameter.
  3.  
  4. ######################## REQUIRED PATHS ########################
  5. # You can put symlinks in here, if you like. Make sure that
  6. # the user that mpd runs as (see the 'user' config parameter)
  7. # can read the files in this directory.
  8. music_directory         "/media/multimedias/music/"
  9. playlist_directory      "/media/multimedias/music/playlists"
  10. db_file                 "/var/lib/mpd/tag_cache"
  11. log_file                "/var/log/mpd/mpd.log"
  12. error_file              "/var/log/mpd/errors.log"
  13. pid_file                "/var/run/mpd/pid"
  14. ################################################################
  15.  
  16.  
  17. ######################## OPTIONAL PATHS ########################
  18. #
  19. # If specified, MPD will save its current state (playlist,
  20. # current song, playing/paused, etc.) at exit.  This will be
  21. # used to restore the session the next time it is run.
  22. #
  23. state_file              "/media/multimedias/music/state"
  24. #
  25. ################################################################
  26.  
  27.  
  28. ######################## DAEMON OPTIONS ########################
  29. #
  30. # If started as root, MPD will drop root privileges and run as
  31. # this user instead.  Otherwise, MPD will run as the user it was
  32. # started by.  If left unspecified, MPD will not drop root
  33. # privileges at all (not recommended).
  34. #
  35. user                            "root"
  36. #
  37. # The address and port to listen on.
  38. #
  39. bind_to_address                 "localhost"
  40. #port                            "6600"
  41. #
  42. # Controls the amount of information that is logged.  Can be
  43. # "default", "secure", or "verbose".
  44. #
  45. #log_level                       "default"
  46. #
  47. ################################################################
  48.  
  49.  
  50. ########################## PERMISSIONS #########################
  51. #
  52. # MPD can require that users specify a password before using it.
  53. # You may specify one ore more here, along with what users who
  54. # log in with that password are allowed to do.
  55. #
  56. #password                        "password@read,add,control,admin"
  57. #
  58. # Specifies what permissions a user who has not logged in with a
  59. # password has.  By default, all users have full access to MPD
  60. # if no password is specified above, or no access if one or
  61. # more passwords are specified.
  62. #
  63. #default_permissions             "read,add,control,admin"
  64. #
  65. ################################################################
  66.  
  67.  
  68. ########################## AUDIO OUTPUT ########################
  69. #
  70. # MPD supports many audio output types, as well as playing
  71. # through multiple audio outputs at the same time.  You can
  72. # specify one or more here.  If you don't specify any, MPD will
  73. # automatically scan for a usable audio output.
  74. #
  75. # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs>
  76. # for examples of other audio outputs.
  77. #
  78. # An example of an ALSA output:
  79. #
  80. audio_output {
  81.         type                    "alsa"
  82.         name                    "My ALSA Device"
  83. #        device                  "hw:0,0"     # optional
  84. #        format                  "44100:16:2" # optional
  85. }
  86. #
  87. # An example of an OSS output:
  88. #
  89. #audio_output {
  90. #        type                    "oss"
  91. #        name                    "My OSS Device"
  92. #        device                  "/dev/dsp"   # optional
  93. #        format                  "44100:16:2" # optional
  94. #}
  95. #
  96. # An example of a shout output (for streaming to Icecast):
  97. #
  98. #audio_output {
  99. #        type                    "shout"
  100. #        name                    "My Shout Stream"
  101. #        host                    "localhost"
  102. #        port                    "8000"
  103. #        mount                   "/mpd.ogg"
  104. #        password                "hackme"
  105. #        quality                 "5.0"
  106. #        bitrate                 "128"
  107. #        format                  "44100:16:1"
  108. #        user                    "source"                # optional
  109. #        description             "My Stream Description" # optional
  110. #        genre                   "jazz"                  # optional
  111. #        public                  "no"                    # optional
  112. #}
  113. #
  114. # Force all decoded audio to be converted to this format before
  115. # being passed to the audio outputs.
  116. #
  117. #audio_output_format             "44100:16:2"
  118. #
  119. ################################################################
  120.  
  121.  
  122. ############################# MIXER ############################
  123. #
  124. # MPD needs to know what mixer settings to change when you
  125. # adjust the volume.  If you don't specify one here, MPD will
  126. # pick one based on which ones it was compiled with support for.
  127. #
  128. # An example for controlling an ALSA mixer:
  129. #
  130. mixer_type                      "alsa"
  131. mixer_device                    "default"
  132. mixer_control                   "PCM"
  133. #
  134. # An example for controlling an OSS mixer:
  135. #
  136. #mixer_type                      "oss"
  137. #mixer_device                    "/dev/mixer"
  138. #mixer_control                   "PCM"
  139. #
  140. # If you want MPD to adjust the volume of audio sent to the
  141. # audio outputs, you can tell it to use the software mixer:
  142. #
  143. #mixer_type                      "software"
  144. #
  145. ################################################################
  146.  
  147.  
  148. ######################### NORMALIZATION ########################
  149. #
  150. # Specifies the type of ReplayGain to use.  Can be "album" or
  151. # "track".  ReplayGain will not be used if not specified.  See
  152. # <http://www.replaygain.org> for more details.
  153. #
  154. #replaygain                      "album"
  155. #
  156. # Sets the pre-amp used for files that have ReplayGain tags.
  157. #
  158. #replaygain_preamp               "0"
  159. #
  160. # Enable on the fly volume normalization.  This will cause the
  161. # volume of all songs played to be adjusted so that they sound
  162. # as though they are of equal loudness.
  163. #
  164. #volume_normalization            "no"
  165. #
  166. ################################################################
  167.  
  168.  
  169. ########################### BUFFERING ##########################
  170. #
  171. # The size of the buffer containing decoded audio.  You probably
  172. # shouldn't change this.
  173. #
  174. #audio_buffer_size               "2048"
  175. #
  176. # How much of the buffer to fill before beginning to play.
  177. #
  178. #buffer_before_play              "0%"
  179. #
  180. # Similar options for the HTTP stream buffer.  If you hear
  181. # skipping while playing HTTP streams, you may wish to increase
  182. # these.
  183. #
  184. #http_buffer_size                "128"
  185. #http_prebuffer_size             "25%"
  186. #
  187. ################################################################
  188.  
  189.  
  190. ########################### HTTP PROXY #########################
  191. #
  192. # Specifies the HTTP proxy to use for playing HTTP streams.
  193. #
  194. #http_proxy_host                 "proxy.isp.com"
  195. #http_proxy_port                 "8080"
  196. #http_proxy_user                 "user"
  197. #http_proxy_password             "password"
  198. #
  199. ################################################################
  200.  
  201.  
  202. ############################# LIMITS ###########################
  203. #
  204. # These are various limits to prevent MPD from using too many
  205. # resources.  You should only change them if they start
  206. # restricting your usage of MPD.
  207. #
  208. #connection_timeout              "60"
  209. #max_connections                 "5"
  210. #max_playlist_length             "16384"
  211. #max_command_list_size           "2048"
  212. #max_output_buffer_size          "8192"
  213. #
  214. ################################################################
  215.  
  216.  
  217. ###################### CHARACTER ENCODINGS #####################
  218. #
  219. # If file or directory names do not display correctly, then you
  220. # may need to change this.  In most cases it should be either
  221. # "ISO-8859-1" or "UTF-8".  You must recreate your database
  222. # after changing this (use mpd --create-db).
  223. #
  224. filesystem_charset              "UTF-8"
  225. #
  226. # The encoding that ID3v1 tags should be converted from.
  227. #
  228. id3v1_encoding                  "UTF-8"
  229. #
  230. ################################################################
  231.  
  232.  
  233. ######################### OTHER OPTIONS ########################
  234. #
  235. # The metadata types MPD will recognize.
  236. #
  237. #metadata_to_use                  "artist,album,title,track,name,genre,date,composer,performer,disc"
  238. #
  239. # Enable this if you wish to use your MPD created playlists in
  240. # other music players.
  241. #
  242. #save_absolute_paths_in_playlists "yes"
  243. #
  244. ################################################################