++ 아직 작동에 성공을 못했습니다. 도움좀 주세요 ㅎㅎ..
안녕하세요. 도정진입니다.
이번에는 U5PVR 에 shairport 를 통해서 IOS 장비의 소리출력을 받아 출력해주는 패키지를 설치해 보려고 합니다. 제가 IOS 사용자가 아니여서 정확하게 기능에 대해서 이해가 부족합니다.
이 기능을 AirPlay 라고 부르는것 같네요.
일단 설치를 해 보고 사용을 해보겠습니다.
1. alsamixer 설치하기
아래의 명령으로 alsamixer 를 설치합니다.
(정확히 alsamixer 와 pulseaudio 가 뭔지 몰라 의존성을 맞추기 위해서 설치하였습니다.)
root@u5pvr-debian:~# apt-get install alsa-base alsa-oss alsa-utils libasound2-dev libpulse-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libasound2 libasound2-data libsamplerate0
Suggested packages:
libasound2-plugins
The following NEW packages will be installed:
alsa-base alsa-oss alsa-utils libasound2 libasound2-data libsamplerate0
0 upgraded, 6 newly installed, 0 to remove and 29 not upgraded.
Need to get 2374 kB of archives.
After this operation, 4811 kB of additional disk space will be used.
Do you want to continue? [Y/n]
아래의 명령어로 장치를 확인합니다.
root@u5pvr-debian:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HISIAIAO [HISI-AIAO], device 0: Playback aiao-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@u5pvr-debian:~#
2. shairport 설치하기
먼저 의존성 패키지를 설치합니다.
root@u5pvr-debian:~# apt-get install avahi-utils build-essential chkconfig git libao-dev libavahi-client-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libssl-dev libwww-perl pkg-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmodule-build-perl is already the newest version.
libmodule-build-perl set to manually installed.
The following extra packages will be installed:
avahi-daemon bind9-host geoip-database git-man libao-common libao4 libauthen-sasl-perl
libavahi-core7 libbind9-90 libc-dev-bin libc6 libc6-dev libcrypt-openssl-bignum-perl libdaemon0
libdns100 libencode-locale-perl liberror-perl libfile-listing-perl libfont-afm-perl libgeoip1
libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl
libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl libisc95 libisccc90 libisccfg90
liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres90 libmailtools-perl libnet-http-perl
libnet-smtp-ssl-perl libnet-ssleay-perl libnss-mdns libsocket6-perl libssl-doc libssl1.0.0
libtimedate-perl liburi-perl libwww-robotrules-perl linux-libc-dev manpages-dev patch rsync
zlib1g-dev
Suggested packages:
avahi-autoipd gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-arch git-cvs git-mediawiki git-svn libaudio2 libesd0 libesd-alsa0 libpulse0
libdigest-hmac-perl libgssapi-perl glibc-doc geoip-bin libdata-dump-perl libcrypt-ssleay-perl
libauthen-ntlm-perl ed diffutils-doc
The following NEW packages will be installed:
avahi-daemon avahi-utils bind9-host geoip-database git git-man libao-common libao-dev libao4
libauthen-sasl-perl libavahi-core7 libbind9-90 libc-dev-bin libc6-dev libcrypt-openssl-bignum-perl
libcrypt-openssl-rsa-perl libdaemon0 libdns100 libencode-locale-perl liberror-perl
libfile-listing-perl libfont-afm-perl libgeoip1 libhtml-form-perl libhtml-format-perl
libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl
libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-html-perl
libio-socket-inet6-perl libio-socket-ssl-perl libisc95 libisccc90 libisccfg90
liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres90 libmailtools-perl libnet-http-perl
libnet-smtp-ssl-perl libnet-ssleay-perl libnss-mdns libsocket6-perl libssl-dev libssl-doc
libtimedate-perl liburi-perl libwww-perl libwww-robotrules-perl linux-libc-dev manpages-dev patch
rsync zlib1g-dev
The following packages will be upgraded:
libc6 libssl1.0.0
2 upgraded, 59 newly installed, 0 to remove and 27 not upgraded.
Need to get 21.6 MB of archives.
After this operation, 51.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]
다음으로 perl-net-sdp 소스를 받습니다. 저는 그냥 root 폴더에 받아 보겠습니다.
그리고 컴파일을 진행합니다.
root@u5pvr-debian:~# git clone https://github.com/njh/perl-net-sdp.git
Cloning into 'perl-net-sdp'...
remote: Counting objects: 193, done.
remote: Total 193 (delta 0), reused 0 (delta 0), pack-reused 193
Receiving objects: 100% (193/193), 40.48 KiB | 0 bytes/s, done.
Resolving deltas: 100% (83/83), done.
Checking connectivity... done.
root@u5pvr-debian:~# cd perl-net-sdp/
root@u5pvr-debian:~/perl-net-sdp# ls
Build.PL Changes MANIFEST README examples lib t
root@u5pvr-debian:~/perl-net-sdp# perl Build.PL
WARNING: the following files are missing in your kit:
Makefile.PL
META.yml
Please inform the author.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Net-SDP' version '0.07'
root@u5pvr-debian:~/perl-net-sdp# ./Build
Building Net-SDP
# 정상적인지 체크를 합니다.
root@u5pvr-debian:~/perl-net-sdp# ./Build test
t/00use.t ....... ok
t/10generate.t .. ok
t/10parse.t ..... ok
t/20repeat.t .... ok
t/30asstring.t .. ok
All tests successful.
Files=5, Tests=69, 1 wallclock secs ( 0.13 usr 0.03 sys + 0.56 cusr 0.05 csys = 0.77 CPU)
Result: PASS
root@u5pvr-debian:~/perl-net-sdp# ./Build install
Building Net-SDP
Installing /usr/local/man/man1/sdp2rat.1p
Installing /usr/local/share/perl/5.20.2/Net/SDP.pm
Installing /usr/local/share/perl/5.20.2/Net/SDP/Time.pm
Installing /usr/local/share/perl/5.20.2/Net/SDP/Media.pm
Installing /usr/local/man/man3/Net::SDP::Time.3pm
Installing /usr/local/man/man3/Net::SDP::Media.3pm
Installing /usr/local/man/man3/Net::SDP.3pm
Installing /usr/local/bin/sdp2rat
root@u5pvr-debian:~/perl-net-sdp#
다음으로 shairport 소스를 받고 설치합니다.
root@u5pvr-debian:~# git clone https://github.com/abrasive/shairport.git
Cloning into 'shairport'...
remote: Counting objects: 1635, done.
remote: Total 1635 (delta 0), reused 0 (delta 0), pack-reused 1635
Receiving objects: 100% (1635/1635), 431.72 KiB | 84.00 KiB/s, done.
Resolving deltas: 100% (959/959), done.
Checking connectivity... done.
root@u5pvr-debian:~# cd shairport/
설치가 완료 되었습니다.
3. avahi-daemon 실행하기
root@u5pvr-debian:~# adduser avahi aid_inet
The user `avahi' is already a member of `aid_inet'.
root@u5pvr-debian:~# service avahi-daemon restart
[ ok ] Restarting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
root@u5pvr-debian:~#
avahi-daemon 로그
Jun 25 18:53:36 localhost avahi-daemon[7544]: Found user 'avahi' (UID 109) and group 'avahi' (GID 113).
Jun 25 18:53:36 localhost avahi-daemon[7544]: Successfully dropped root privileges.
Jun 25 18:53:36 localhost avahi-daemon[7544]: avahi-daemon 0.6.31 starting up.
Jun 25 18:53:36 localhost avahi-daemon[7544]: Successfully called chroot().
Jun 25 18:53:36 localhost avahi-daemon[7544]: Successfully dropped remaining capabilities.
Jun 25 18:53:36 localhost avahi-daemon[7544]: No service file found in /etc/avahi/services.
Jun 25 18:53:36 localhost avahi-daemon[7544]: *** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
Jun 25 18:53:36 localhost avahi-daemon[7544]: *** WARNING: Detected another IPv6 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
Jun 25 18:53:36 localhost avahi-daemon[7544]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::1856:1aff:fee8:4b8b.
Jun 25 18:53:36 localhost avahi-daemon[7544]: New relevant interface eth0.IPv6 for mDNS.
Jun 25 18:53:36 localhost avahi-daemon[7544]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.0.11.
Jun 25 18:53:36 localhost avahi-daemon[7544]: New relevant interface eth0.IPv4 for mDNS.
Jun 25 18:53:36 localhost rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jun 25 18:54:06 2017 [try http://www.rsyslog.com/e/2007 ]
Jun 25 18:53:36 localhost avahi-daemon[7544]: Network interface enumeration completed.
Jun 25 18:53:36 localhost avahi-daemon[7544]: Registering new address record for fe80::1856:1aff:fee8:4b8b on eth0.*.
Jun 25 18:53:36 localhost avahi-daemon[7544]: Registering new address record for 192.168.0.11 on eth0.IPv4.
Jun 25 18:53:36 localhost avahi-daemon[7544]: Registering HINFO record with values 'ARMV7L'/'LINUX'.
Jun 25 18:53:37 localhost avahi-daemon[7544]: Server startup complete. Host name is u5pvr-debian.local. Local service cookie is 1143526822.
............... 차후에 이어서...
'AndroidOverLinux' 카테고리의 다른 글
U5PVR OpenVPN 설치하기 및 활용하기 (0) | 2017.07.18 |
---|---|
[미완결]U5PVR tvhproxy 설치하기 (0) | 2017.06.25 |
U5PVR 리눅스 루트 시스템 USB 혹은 MicroSD 카드에서 사용하기. (0) | 2017.05.25 |
U5PVR Subsonic 서브소닉 음악 스트리밍 서버 구축하기. (0) | 2017.05.18 |
U5PVR 간단히 루팅하기 (베리 Easy) (feat.리눅스 펌웨어) (0) | 2017.05.08 |
댓글