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년 미국에서 설립된 하이엔드 오디오 브랜드로, 창립자 마크 레빈슨이 직접 자신의 이름을 내걸고 시작했습니다. 초기에는 프리앰프와 파워앰프 등 고성능 오디오 컴포넌트로 명성을 ...

-
스피커의 종류와 작동원리 수 년 동안 전기적 신호에 답하여 공기를 움직이도록 하기 위한 많은 메커니즘들이 시도되었습니다. 소리를 만드는데 있어 상업적으로 이용 가능한 - 그리고 실용적으로도 - 제품에 사용할 수 있는 방법은 3가지입니다. 다이내...
-
일반 적인 스피커 유닛의 각 부분 별 명칭입니다. 국가 마다 조금 다르게 사용되며, 특히 일본에서는 자신들이 편하게 발음할 수 있도록 쓰다보니 일본에서 발행된 책의 번역서를 보면 오히려 이해하기가 더 어렵습니다. 특히 진동판을 의미하는 다이어프램(Di...
-
미국 Stereophile이 40주년을 기념하여 2002년 11월호에 게재한 명기 100선입니다. 순서는 역순(1위가 제일 끝에 있음) 이며, 동점(tie)이 있는 경우 등수를 건너 뛰는 방식 입니다. 구매의 절대적인 기준은 될 수 없으나,...
댓글 없음:
댓글 쓰기