Guest User

Fstab - MPD

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