AirPlay v1
https://github.com/albertz/shairport
에서 download 하거나,
또는
git 를 통해 바로 다운로드 받는다.
git 이 설치 되어 있지 않으르로,
apt-get install git
를 실행해서 git 을 설치한다. 그 다음 git 을 통해
home director 로 이동하여 다운 받는다.
cd ~
git clone git://github.com/albertz/shairport.git
그러면, home directory 아래에 shairport directory 가 생긴다.
이제 build 를 해야 하는데..
make 를 위한 util 들이 설치가 되어 있지 않다.
게다가 perl 을 사용하므로, perl 설정을 해야 한다.
우선 perl locale 설정한다.
~/.profile
또는
/etc /profile
에 아래의 두 줄을 추가한다.
LC_ALL=C;export LC_ALL # victor added 12.28
LANG=ko_KR.EUC-KR # victor added for perl
계속해서, build 에 필요한 tool 과 perl 을 설치한다.
apt-get update
apt-get install build-essential libssl-dev libcrypt-openssl-rsa-perl libao-dev libio-socket-inet6-perl libwww-perl avahi-u! tils pkg-config
설치가 다 되었으면, make 해서 필요한 실행 파일을 만든다.
make
를 실행한다.
열심히 빌드 된다. ㅎㅎ. 에러도 없다.
make install
를 실행한다.
/usr/local/bin 에 실행 파일 3종이 복사된다.
install -D -m 0755 hairtunes /usr/local/bin/hairtunes
install -D -m 0755 shairport.pl /usr/local/bin/shairport.pl
install -D -m 0755 shairport /usr/local/bin/shairport
perl shairport.pl ; 동작 여부 테스트
실제는 소스 디렉토리에 있는 shairport.init.sample 을 기반으로 복사해서 사용한다.
cp shairport.init.sample /usr/local/bin/shairport.init
결과적으로 /usr/local/bin 에
위의 3개 파일과 shairport.init 파일 까지 포함해서 4개가 있으면 된다.
이제 거의 다 되었다.
power on 할때마다 자동으로 실행시켜야 편한다.
etc/rc.local file에 다음 행 추가
usr/local/bin/shairport.init
Options
Options:
-a, --apname=AirPort ! ; Sets AirPort name
-p, --pass! word=sec ret Sets password
-o, --server_port=5002 Sets Port for Avahi/dns-sd
-i, --pipe=pipepath Sets the path to a named pipe for output
--ao_driver=driver Sets the ao driver (optional)
--ao_devicename=devicename Sets the ao device name (optional)
--ao_deviceid=id Sets the ao device id (optional)
-s --squeezebox Enables local Squeezebox Server integration
-c --cliport=! port Sets the SBS CLI port
-m --mac=address Sets the SB target device
-l --volume=level Sets the SB volume level (in %)
--play_prog=cmdline Program to start on 1st connection
--stop_prog=cmdline Program to start on last disconnection
-d Daemon mode
-w --writepid=path &! #160; Write PID to t! his loca tion
-v --verbose Print debugging messages
-h, --help This help
최종결론
shairport.init 에 아래와 같이 추가
DAEMON_ARGS="-w $PIDFILE -a Alix --ao_devicename=plughw:0,0"
* 참고
hw:0,0 이 동작하지 않으면, plughw:0,0 으로 교체
etc/asound.conf 내용은 모두 comment 처리
usr/share/alsa/alsa.conf ; origianl 상태 유지
*** Final
alsa.conf - default 상태
shairport.init - 수정 상태
- enjoy -
피드 구독하기:
댓글 (Atom)
마크 레빈슨(Mark Levinson)
마크 레빈슨(Mark Levinson) 회사 이력 마크 레빈슨은 1972년 미국에서 설립된 하이엔드 오디오 브랜드로, 창립자 마크 레빈슨이 직접 자신의 이름을 내걸고 시작했습니다. 초기에는 프리앰프와 파워앰프 등 고성능 오디오 컴포넌트로 명성을 ...
-
다인오디오의 하이엔드 제품인 Confidence C2 의 기본 마감인 로즈우드를 기반으로 하여 세계 최고의 피아노 메이커(?)가 래커 도장한 Rosewood Lacquer Finish 가 발매된다. 스펙은 레귤러 마감과 동일하지만 전세계적으로 ...
-
color=#ffffff>YEAR color=#ffffff>MODEL NAME color=#ffffff>DESCRIPTION 1990 KSA-...
-
칸느 영화제 (Cannes Film Featival) 해마다 5월에 2주간 프랑스 남해안 리비에라의 휴양지 칸느 에서 개최되는 칸느 영화제는, 유럽 3대 영화제인 칸느, 베를린, 베니스 중에서도 최고권위의 영화제로 인정을 받고 있다. 원래 ...

댓글 없음:
댓글 쓰기