LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 788|回复: 9

mpd-0.16问题

[复制链接]
发表于 2010-12-17 12:12:57 | 显示全部楼层 |阅读模式
在0.15的几个版本中无问题,是升级到0.16后出现的
  1. ^_^ ~ $ mpd
  2. daemon: cannot init supplementary groups of user "mishell": Operation not permitted
复制代码
  1. ^_^ ~ $ mpc play
  2. error: Connection closed by the server
复制代码
  1. ^_^ ~ $ ps aux | grep mpd
  2. mishell     2415  0.0  0.2 238116  5304 ?        Ssl  12:09   0:00 mpd
  3. mishell     2445  0.0  0.0 101820   864 pts/1    S+   12:11   0:00 grep --color=auto mpd
复制代码
  1. ^_^ ~ $ cat /etc/group | grep mpd
  2. audio::18:mishell,mpd
复制代码
  1. ^_^ ~ $ cat .mpdconf
  2. # Files and directories
  3. music_directory                "/mnt/Media/Music/flac"
  4. playlist_directory        "/home/mishell/.mpd/playlists"
  5. db_file                        "/home/mishell/.mpd/mpd.db"
  6. log_file                "/home/mishell/.mpd/mpd.log"
  7. #error_file                "/home/mishell/.mpd/mpd.error"
  8. pid_file                "/home/mishell/.mpd/mpd.pid"
  9. state_file                "/home/mishell/.mpd/mpd.state"
  10. # General music daemon options
  11. user                        "mishell"
  12. #group                        "audio"
  13. bind_to_address                "localhost"
  14. #bind_to_address                "/var/lib/mpd/socket"
  15. port                        "6600"
  16. metadata_to_use        "artist,title,name"
  17. # Input
  18. #input {
  19. #        plugin "curl"
  20. #        proxy "proxy.isp.com:8080"
  21. #        proxy_user "user"
  22. #        proxy_password "password"
  23. #}
  24. # Audio Output
  25. audio_output {
  26.         type                "alsa"
  27.         name                "My ALSA Device"
  28. #        driver                "oss"
  29.         auto_resample        "no"
  30. #        device                "hw:0,0"
  31. #        device                "/dev/oss/oss_hdaudio0/pcm0"
  32. #        format                "44100:16:2"
  33. #        mixer_device        "default"
  34. #        mixer_device        "/dev/oss/oss_hdaudio0/mix0"
  35. #        mixer_device        "/dev/dsp"
  36.         mixer_control        "Master"
  37. #        mixer_control        "Pcm"
  38. #        mixer_index        "0"
  39. }
  40. #audio_output_format        "44100:16:2"
  41. # Character Encoding
  42. filesystem_charset        "UTF-8"
  43. #id3v1_encoding                "GB2312"
复制代码
  1. ^_^ ~ $ ll .mpd/
  2. total 200K
  3. -rw-r--r-- 1 mishell mishell  12K Dec 17 11:50 mpd.db
  4. -rw-r--r-- 1 mishell mishell  42K Dec 17 12:14 mpd.log
  5. srw-rw-rw- 1 mishell mishell    0 Dec 15 09:05 mpd.socket
  6. -rw-r--r-- 1 mishell mishell  183 Dec 17 12:14 mpd.state
  7. drwxr-xr-x 2 mishell mishell 4.0K Nov 27 15:25 playlists
复制代码
 楼主| 发表于 2010-12-17 12:17:44 | 显示全部楼层
mpd时,mpd.db已有数据
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-12-17 12:20:00 | 显示全部楼层
有谁的mpd-0.16版正常运行的?
给出个配置参考一下
谢谢
回复 支持 反对

使用道具 举报

发表于 2010-12-18 09:48:28 | 显示全部楼层
  1. #group                        "audio"
复制代码


这个也是要设置的,不然就会出现像你所说的错误,我的设置是:

  1. user                                "hosanna"
  2. group                                "hosanna"
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-12-18 11:41:00 | 显示全部楼层
@ Hosanna
这样设置的结果是
^_^ ~ $ mpd
^_^ ~ $ mpc updata
error: Connection closed by the server
^_^ ~ $ mpc play
error: Connection closed by the server
你能将你运行正常的mpd-0.16配置文件贴出来吗?谢谢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-12-18 12:14:57 | 显示全部楼层
https://bbs.archlinux.org/viewtopic.php?pid=865745
怪异,我的配置
bind_to_address>>-------"localhost"
$ mpc play
error: Connection closed by the servermpc play
然后
# echo "mpd: ALL" >> /etc/hosts.allow后
mpc play一切正常
我连接本地的6600端口,也要hosts.allow?仅仅是因为我
  1. ^_^ ~ $ cat /etc/hosts.deny
  2. #
  3. # /etc/hosts.deny
  4. #
  5. ALL: ALL: DENY
  6. # End of file
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-12-18 12:33:36 | 显示全部楼层
不管怎么样,算是解决了吧
回复 支持 反对

使用道具 举报

发表于 2010-12-21 09:12:14 | 显示全部楼层
你是不是有用networkmanager?
如果有的话,默认的配置下,mpd在networkmanager连接上前启动就会连不上。
需要在/etc/host.conf中设置
multi on
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-12-21 10:31:14 | 显示全部楼层
Post by acevery;2123637
你是不是有用networkmanager?
如果有的话,默认的配置下,mpd在networkmanager连接上前启动就会连不上。
需要在/etc/host.conf中设置
multi on

没有networkmanager
我说了,之前的版本一切正常,是升级到0.16后出现的问题
配制hosts.allow后一切正常
我所不明白的是,本地端口也需要hosts.allow?
回复 支持 反对

使用道具 举报

发表于 2010-12-21 15:31:16 | 显示全部楼层
呃……/etc/hosts.deny 和/etc/hosts.allow这两 个文件我都没有
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表