1. Install ALSA
    sudo apt-get install alsa-utils alsa-oss

  2. Install pulseaudio
    sudo apt-get install pulseaudio pulseaudio-utils

  3. Configure pulseaudio
    sudo vi /etc/init/pulseaudio.conf

  4. Modify config
    env DISALLOW_MODULE_LOADING=1 to env DISALLOW_MODULE_LOADING=0

  5. Start pulseaudio service
    sudo pulseaudio --daemonize --system --disallow-module-loading

  6. (option) Check ALSA works
    alsamixer
    sudo aplay /usr/share/sounds/alsa/Front_Center.wav

  7. Install git
    sudo apt-get install git

  8. Install the perl libraries in order to build perl SDP extensions
    sudo apt-get install avahi-utils libmodule-build-perl libio-socket-inet6-perl libao-dev libssl-dev libcrypt-openssl-rsa-perl libwww-perl pkg-config

  9. Install perl-net-sdp
    git clone https://github.com/njh/perl-net-sdp.git perl-net-sdp
    cd perl-net-sdp
    perl ./Build.PL
    sudo ./Build
    sudo ./Build test
    sudo ./Build install

  10. Install shareport
    git clone https://github.com/hendrikw82/shairport.git
    cd shairport
    sudo make install
    sudo cp shairport.init.sample /etc/init.d/shairport
    sudo chmod a+x /etc/init.d/shairport
    sudo update-rc.d shairport defaults

  11. Edit receiver name
    sudo vi /etc/init.d/shairport
    DAEMON_ARGS=”-w $PIDFILE -a AirPlayName”

  12. Start shareport
    sudo service shairport start

Done!

<<References>>

http://blog.earth-works.com/2014/01/14/turn-an-old-laptop-into-an-airplay-receiver-with-shairport-and-ubuntu-server/

Posted by Geniys

댓글을 달아 주세요