Alix ¿¡¼ Airplay »ç¿ëÇϱâ
AirPlay v1
https://github.com/albertz/shairport
download
git clone git://github.com/albertz/shairport.git
build
php locale 설정
추가
~/.profile
또는
/etc /profile
LC_ALL=C;export LC_ALL # victor added 12.28
LANG=ko_KR.EUC-KR # victor added for perl
이제 perl 을 실행 시켜도 에러가 안난다.
apt-get update
apt-get install build-essential libssl-dev libcrypt-openssl-rsa-perl libao-
dev libio-socket-inet6-perl libwww-perl avahi-utils pkg-config
make
make install ; /usr/local/bin 에 실행 파일만 복사된다.
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 을 기반으로 복사해서 사용한다.
결과적으로 /usr/local/bin 에
위의 3개 파일과! shairport.init 파일 까지 포함해서 4개가 있으면 된다.
etc/rc.local file에 다음 행 추가
usr/local/bin/shairport.init
Options
Options:
-a, --apname=AirPort Sets AirPort name
-p, --password=secret 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 ! ; &! #160;Set s 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 Write PID to this location
-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 상태 유지
현재 버전
alsa.c! onf - default 상태
shairport.init - 수정 상태
shairp! ort.init restart 할 것
https://github.com/albertz/shairport
download
git clone git://github.com/albertz/shairport.git
build
php locale 설정
추가
~/.profile
또는
/etc /profile
LC_ALL=C;export LC_ALL # victor added 12.28
LANG=ko_KR.EUC-KR # victor added for perl
이제 perl 을 실행 시켜도 에러가 안난다.
apt-get update
apt-get install build-essential libssl-dev libcrypt-openssl-rsa-perl libao-
dev libio-socket-inet6-perl libwww-perl avahi-utils pkg-config
make
make install ; /usr/local/bin 에 실행 파일만 복사된다.
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 을 기반으로 복사해서 사용한다.
결과적으로 /usr/local/bin 에
위의 3개 파일과! shairport.init 파일 까지 포함해서 4개가 있으면 된다.
etc/rc.local file에 다음 행 추가
usr/local/bin/shairport.init
Options
Options:
-a, --apname=AirPort Sets AirPort name
-p, --password=secret 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 ! ; &! #160;Set s 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 Write PID to this location
-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 상태 유지
현재 버전
alsa.c! onf - default 상태
shairport.init - 수정 상태
shairp! ort.init restart 할 것
댓글