/ 雑記帳

[ Tags :: install ]

Archlinux mpd-0.20.18 install

Archlinuxは何時も最新で危険なディストリだ。
現状でアップデートするとMOZCが機能しなくなる。
QT関連パッケージには地雷があるようだ。
今はアップデートしてはいけない時期らしい。
仕方がなくバックアップでイメージをレストアしたら今度は起動しない(笑)
その原因追求に一週間?ぐらいを浪費した。
pacmanで最新のmpdをインストールするとmpdが起動しない。笑うしか無い。
それでも、それでも音が良いから?粘って動作させる。

それでmpd-0.20.18をソースインストールして弄ってみたが
このエラーが出て起動不能だった...
exception: Failed to bind to '[::]:6600'
exception: nested: Failed to bind socket: Address already in use

足りないライブラリーとかも有ったかも知れない。
(alsa関連とtag関連のパッケージで)
一応このコンフィグで動作させる事が出来た。
./configure --disable-ipv6 --with-systemdsystemunitdir=/usr/lib/systemd/system

起動もsystemctlから真っ当に出来る(笑)
$ cat /usr/lib/systemd/system/mpd.service
[Unit]
Description=Music Player Daemon
Documentation=man:mpd(1) man:mpd.conf(5)
After=network.target sound.target
      
[Service]
Type=notify
#ExecStart=/usr/local/bin/mpd --no-daemon
ExecStart=/usr/local/bin/mpd --no-daemon /etc/mpd.conf
      
# allow MPD to use real-time priority 50
LimitRTPRIO=50
LimitRTTIME=infinity
      
# disallow writing to /usr, /bin, /sbin, ...
ProtectSystem=yes
      
# more paranoid security settings
NoNewPrivileges=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
ProtectKernelModules=yes
# AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh*
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
RestrictNamespaces=yes
      
[Install]
WantedBy=multi-user.target
Also=mpd.socket

参考リンク:https://www.reddit.com/r/linuxquestions/comments/348c0l/mpd_autostart_with_systemd/

追記:今朝もう一度起動したら動かない(笑)原因は/var/run/mpd/mpd.pidが作成されない事。
もう面倒なので

#!/bin/bash
rm /var/run/mpd/mpd.pid
echo "" > /var/run/mpd/mpd.pid
chmod 777 /var/run/mpd/mpd.pid

psn=`ps aux | grep mpd | grep bin | awk '{print $2}'`
kill $psn
echo "--------------------------------"
ps aux | grep mpd | grep bin
echo "--------------------------------"
echo ""
#/usr/local/bin/mpd /etc/mpd.conf
systemctl restart mpd
systemctl status mpd
echo "--------------------------------"
ps aux | grep mpd | grep bin
echo "--------------------------------"



— posted by at 12:30 am  

ffmpeg mediatomb-0.12.1 コンパイル

ffmpeg-1.2.1-4.el6.x86_64
ffmpeg-compat-0.6.6-1.el6.x86_64
ffmpeg-compat-devel-0.6.6-1.el6.x86_64
ffmpeg-devel-1.2.1-4.el6.x86_64
ffmpeg-libs-1.2.1-4.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
ffmpegthumbnailer-2.0.8-1.x86_64
gstreamer-ffmpeg-0.10.11-1.el6.rf.x86_64
この環境でmediatomb-0.12.1をコンパイルするとエラーになる。
パッチを当てないとダメ。
      
avformat/avformat.h:1689)
../src/metadata/ffmpeg_handler.cc:279: 警告: ‘void
av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/ffmpeg/libavformat/avformat.h:1689)
make[2]: *** [libmediatomb_a-ffmpeg_handler.o] エラー 1
make[2]: ディレクトリ `/home/kkuma/mediatomb-0.12.1/build' から出ます
make[1]: *** [all-recursive] エラー 1
make[1]: ディレクトリ `/home/kkuma/mediatomb-0.12.1' から出ます
make: *** [all] エラー 2

参考リンク:http://kkuma.mydns.jp/Linux-media-server/index8.shtml

— posted by くま at 12:11 pm   pingTrackBack [0]

<< 2024.4 >>
SMTWTFS
 1 2 34 56
7 8910 1112 13
1415 161718 1920
21222324252627
282930    
 
























ThemePanel
Created in 0.0076 sec.