Voyage Linux(Alix board)¿¡¼ Airplay »ç¿ëÇϱâ
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 -
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 -
댓글