Airplay X Fedora 19

之前把 Fedora 19 (Schrödinger’s Cat) 装进了 CubieBoard 里面,然后挂着一些 python 脚本,今天在 github 上发现有大神把 AirPort Express 里面的 Airplay 模块模拟出来了(shairport),不过 README.md 给出的 tutorials 是基于 debian 类系统的。用 yum search 搜了一下相关的 rpm 包,成功装入了 CubieBoard 上面的 Fedora 系统。

My CubieBoard

安装依赖库

首先,看到 REAMME.md 里面给出的

Build Requirements

Required:

  • OpenSSL

Optionally:

  • libao
  • PulseAudio
  • avahi

于是安装以上库:yum install openssl-devel libao-devel pulseaudio-libs-devel avahi-devel alsa-lib-devel gengetopt -y

alsa和getopt是后来configure提示notfound,于是一并加上安装。

(不推荐安装pulseaudio,有一定几率在后面运行时会提示pulseaudiounabletoconnectconnectionrefused,关闭SELinux也没用。)

编译安装

cd /tmp
git clone https://github.com/abrasive/shairport.git
cd shairport
./configure
make
cp ./shairport /bin/

使用

shairport

或

shairport -a 'service name'

使用前者,在 airplay 输出界面便是 shairport @ hostname,如果你想要个特别的名字,便可以用后面指定服务名。

然后打开 iOS 或 OS X 设备的 音乐,这时在播放按钮旁边便会多出 airplay 的图标,选择并播放即可。

部署图

CubieBoard @ xbox360

把 xbox360 的 HDMI 插到了 CubieBoard 上,现在 xbox 完全成了 CubieBoard 的垫板。(因为GTA5打腻了,没啥其他好玩的了,之前研究Kinect编程发现坑太多,弃坑了。)