特殊:Badtitle/NS100:MPD:修订间差异
小 创建新页面为 '{{From|https://help.ubuntu.com/community/MPD}} {{Languages|UbuntuHelp:MPD}} == Music Player Daemon (MPD) == === Installing via GUI === Start '''Synaptic Package Manager''' ( '''...' |
(没有差异)
|
2009年11月17日 (二) 19:59的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MPD }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/af | • {{#if: UbuntuHelp:MPD|Afrikaans| [[::MPD/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/ar | • {{#if: UbuntuHelp:MPD|العربية| [[::MPD/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/az | • {{#if: UbuntuHelp:MPD|azərbaycanca| [[::MPD/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/bcc | • {{#if: UbuntuHelp:MPD|جهلسری بلوچی| [[::MPD/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/bg | • {{#if: UbuntuHelp:MPD|български| [[::MPD/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/br | • {{#if: UbuntuHelp:MPD|brezhoneg| [[::MPD/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/ca | • {{#if: UbuntuHelp:MPD|català| [[::MPD/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/cs | • {{#if: UbuntuHelp:MPD|čeština| [[::MPD/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/de | • {{#if: UbuntuHelp:MPD|Deutsch| [[::MPD/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/el | • {{#if: UbuntuHelp:MPD|Ελληνικά| [[::MPD/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/es | • {{#if: UbuntuHelp:MPD|español| [[::MPD/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/fa | • {{#if: UbuntuHelp:MPD|فارسی| [[::MPD/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/fi | • {{#if: UbuntuHelp:MPD|suomi| [[::MPD/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/fr | • {{#if: UbuntuHelp:MPD|français| [[::MPD/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/gu | • {{#if: UbuntuHelp:MPD|ગુજરાતી| [[::MPD/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/he | • {{#if: UbuntuHelp:MPD|עברית| [[::MPD/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/hu | • {{#if: UbuntuHelp:MPD|magyar| [[::MPD/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/id | • {{#if: UbuntuHelp:MPD|Bahasa Indonesia| [[::MPD/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/it | • {{#if: UbuntuHelp:MPD|italiano| [[::MPD/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/ja | • {{#if: UbuntuHelp:MPD|日本語| [[::MPD/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/ko | • {{#if: UbuntuHelp:MPD|한국어| [[::MPD/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/ksh | • {{#if: UbuntuHelp:MPD|Ripoarisch| [[::MPD/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/mr | • {{#if: UbuntuHelp:MPD|मराठी| [[::MPD/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/ms | • {{#if: UbuntuHelp:MPD|Bahasa Melayu| [[::MPD/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/nl | • {{#if: UbuntuHelp:MPD|Nederlands| [[::MPD/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/no | • {{#if: UbuntuHelp:MPD|norsk| [[::MPD/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/oc | • {{#if: UbuntuHelp:MPD|occitan| [[::MPD/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/pl | • {{#if: UbuntuHelp:MPD|polski| [[::MPD/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/pt | • {{#if: UbuntuHelp:MPD|português| [[::MPD/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/ro | • {{#if: UbuntuHelp:MPD|română| [[::MPD/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/ru | • {{#if: UbuntuHelp:MPD|русский| [[::MPD/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/si | • {{#if: UbuntuHelp:MPD|සිංහල| [[::MPD/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/sq | • {{#if: UbuntuHelp:MPD|shqip| [[::MPD/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/sr | • {{#if: UbuntuHelp:MPD|српски / srpski| [[::MPD/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/sv | • {{#if: UbuntuHelp:MPD|svenska| [[::MPD/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/th | • {{#if: UbuntuHelp:MPD|ไทย| [[::MPD/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/tr | • {{#if: UbuntuHelp:MPD|Türkçe| [[::MPD/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/vi | • {{#if: UbuntuHelp:MPD|Tiếng Việt| [[::MPD/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/yue | • {{#if: UbuntuHelp:MPD|粵語| [[::MPD/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/zh | • {{#if: UbuntuHelp:MPD|中文| [[::MPD/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/zh-hans | • {{#if: UbuntuHelp:MPD|中文(简体)| [[::MPD/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MPD | UbuntuHelp:MPD | {{#if: | :}}MPD}}/zh-hant | • {{#if: UbuntuHelp:MPD|中文(繁體)| [[::MPD/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MPD|:MPD|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MPD/zh | | {{#ifexist: MPD/zh | | {{#ifeq: {{#titleparts:MPD|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MPD|1|-1|}} | zh | | }}
Music Player Daemon (MPD)
Installing via GUI
Start Synaptic Package Manager ( System > Administration > Synaptic Package Manager ) and in the search box enter mpd. Mark the package mpd for installation, as well as any client that you might want. In this Wiki I will use Sonata as the example. The following packages should be marked for installation:
- mpd
- sonata
Click Apply.
Installing via command line (advanced users)
In this example, Sonata is used as the desired client. Open your terminal and enter the following commands. (Please note that the $ is not meant to be a part of the command. It shows whether or not a normal user ($) or root (#) command is being issued.) `$ sudo apt-get update` `$ sudo apt-get install mpd sonata`
Configuring MPD to run as a system service
In Ubuntu, much of the work is done for you with regard to setting up the proper directories and permissions. However, there is still some customization to be done.
Editing /etc/mpd.conf
Almost all of the default /etc/mpd.conf can be left untouched, but there are some things that you may want to change. First of all, it is always a good idea to make a backup of the file in case things go south. `$ sudo cp /etc/mpd.conf /etc/mpd.conf.bak` And now the editing begins. `$ sudo gedit /etc/mpd.conf` The settings that most users will need to be concerned with for personal use are not numerous. In fact, MPD can detect pretty much everything for you. The only setting that you will need to change is the line: `#mixer_type "software"` All you have to do is uncomment (remove the '#') that line and MPD should function perfectly well for common use once you have completed the rest of this setup. If you want to further customize MPD to stream to an IceCast server or a certain type of audio setting, please see the other sections in this wiki on editing mpd.conf.
Giving MPD proper permissions
Unfortunately, by default MPD does not have the proper permissions to access PulseAudio, the default audio setup on most new Ubuntu systems. If MPD plays for you without these steps, then that's great, but if you can play your songs but no sound is emitted, try the following steps. What we need to do is add the user mpd to the groups pulse and pulse-access so that it can access the audio system. `$ sudo usermod -aG pulse,pulse-access mpd`
And there you have it! Connect to your MPD server using your favorite MPD client and you should be good to go!
Configuring MPD to run as a user service
FIXME
Configuring MPD to stream to an IceCast server
FIXME