{"id":2074,"date":"2012-10-22T21:22:22","date_gmt":"2012-10-22T20:22:22","guid":{"rendered":"http:\/\/www.jungsi.de\/?p=2074"},"modified":"2024-12-23T16:37:33","modified_gmt":"2024-12-23T15:37:33","slug":"raspberry-pi-teil-4-airplay","status":"publish","type":"post","link":"https:\/\/www.jungsi.de\/en\/raspberry-pi-teil-4-airplay\/","title":{"rendered":"Raspberry Pi &#8211; Teil 5: Airplay"},"content":{"rendered":"<figure id=\"attachment_2069\" aria-describedby=\"caption-attachment-2069\" style=\"width: 120px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/www.jungsi.de\/blog\/wp-content\/uploads\/2012\/10\/Raspberry-Pi_mini1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2069\" title=\"Raspberry Pi\" alt=\"Raspberry Pi\" src=\"https:\/\/www.jungsi.de\/blog\/wp-content\/uploads\/2012\/10\/Raspberry-Pi_mini1.jpg\" width=\"120\" height=\"90\" \/><\/a><figcaption id=\"caption-attachment-2069\" class=\"wp-caption-text\">Raspberry Pi<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">F\u00fcr alle die mit dem Begriff nichts anfangen k\u00f6nnen: Ihr habt vermutlich kein Ger\u00e4t von <strong>Apple<\/strong> \ud83d\ude09 Erkl\u00e4rung ohne Scherz in Kurform: <strong>Airplay<\/strong> ist eine Schnittstelle zur\u00a0kabel losen\u00a0\u00dcbertragung von Inhalten von<strong> iOS<\/strong>&#8211; und <strong>OS X<\/strong>-Ger\u00e4ten auf <strong>Airplay<\/strong>-f\u00e4hige Empf\u00e4ngerger\u00e4te wie Lautsprecher, AV-Empf\u00e4nger und Stereosysteme oder Fernseher.<br \/>\nAuf Grund eines kleinen Artikels kam bei mir die Idee auf, ob das nicht auch der <strong>RasPi<\/strong> k\u00f6nnte. Nach etwas Suchen fand ich auch eine f\u00fcr mich verst\u00e4ndliche Anleitung wie man das einfach l\u00f6sen k\u00f6nnte \ud83d\ude09 &#8211; Quelle: <a href=\"http:\/\/www.forum-raspberrypi.de\/Thread-tutorial-airplay-mit-dem-raspberry-pi-shairport-installation\" target=\"_blank\">Raspberry Pi Forum<\/a><br \/>\nIch habe meine Test auf einem normalen <strong>Raspbian<\/strong> System gemacht. Entweder man gibt die Befehle direkt am <strong>RasPi<\/strong> in ein Terminalfenster ein oder man loggt sich vom PC aus per <strong>Putty<\/strong> in den Raspy ein und gibt dort die n\u00f6tigen Kommandos ein.<br \/>\n1. Paktelisten aktualisieren<\/p>\n<pre class=\"brush:plain\">sudo apt-get update<\/pre>\n<p style=\"text-align: justify;\"><!--more-->2. Klinkenausgang als Standard definieren<\/p>\n<pre class=\"brush:plain\">amixer cset numid=3 1<\/pre>\n<p style=\"text-align: justify;\">3. Pakete installieren<\/p>\n<pre class=\"brush:plain\">sudo apt-get install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils<\/pre>\n<p style=\"text-align: justify;\">4. Shairport installieren<\/p>\n<pre class=\"brush:plain\">sudo git clone https:\/\/github.com\/albertz\/shairport.git shairport<\/pre>\n<p style=\"text-align: justify;\">5. Wechsel in den Shairport-Ordner<\/p>\n<pre class=\"brush:plain\">cd shairport<\/pre>\n<p style=\"text-align: justify;\">6. Shairport kompilieren<\/p>\n<pre class=\"brush:plain\">sudo make<\/pre>\n<p style=\"text-align: justify;\">7. Shairport automatisch starten lassen<\/p>\n<pre class=\"brush:plain\">sudo make install<\/pre>\n<p style=\"text-align: justify;\">8. Init Sample ins Startverzeichnis kopieren<\/p>\n<pre class=\"brush:plain\">sudo cp shairport.init.sample \/etc\/init.d\/shairport<\/pre>\n<p style=\"text-align: justify;\">9. Shairport Rechte zuweisen &#8211; Wechsel in den init.d Ordner<\/p>\n<pre class=\"brush:plain\">cd \/etc\/init.d<\/pre>\n<p style=\"text-align: justify;\">10. Rechte zuweisen<\/p>\n<pre class=\"brush:plain\">sudo chmod a+x shairport<\/pre>\n<p style=\"text-align: justify;\">11. shairpot bearbeiten<\/p>\n<pre class=\"brush:plain\">sudo nano shairport<\/pre>\n<p style=\"text-align: justify;\">12. die Zeile &#8222;DEAMIN_ARGS&#8220; \u00e4ndern<br \/>\nVon<\/p>\n<pre class=\"brush:plain\">DAEMON_ARGS=\"-w $PIDFILE\"<\/pre>\n<p style=\"text-align: justify;\">zu<\/p>\n<pre class=\"brush:plain\">DAEMON_ARGS=\"-w $PIDFILE -a RaspberryPi\"<\/pre>\n<p style=\"text-align: justify;\">13. Shairport starten<\/p>\n<pre class=\"brush:plain\">sudo \/etc\/init.d\/shairport start<\/pre>\n<p style=\"text-align: justify;\">14. Folgende Befehle akzeptiert Shairport<\/p>\n<pre class=\"brush:plain\">sudo \/etc\/init.d\/shairport start\r\nsudo \/etc\/init.d\/shairport stop\r\nsudo \/etc\/init.d\/shairport restart<\/pre>\n<p style=\"text-align: justify;\">Sollte das <strong>Iphone<\/strong> oder das <strong>Ipad<\/strong> nun den <strong>RasPi<\/strong> nicht finden: Am Apple-Ger\u00e4t einmal Wlan aus- und wieder einschalten.<br \/>\nSollte dann immer noch nichts zu finden sein &#8211; folgende Befehle ausf\u00fchren:<\/p>\n<pre class=\"brush:plain\">wget http:\/\/www.forum-raspberrypi.de\/mydownloads\/downloads\/libnet-sdp-perl_0.07-1_all.deb\r\nwget http:\/\/www.forum-raspberrypi.de\/mydownloads\/downloads\/shairport_0.05-1_armhf.deb\r\n\r\nsudo dpkg -i libnet-sdp-perl_0.07-1_all.deb\r\nsudo dpkg -i shairport_0.05-1_armhf.deb<\/pre>\n<p style=\"text-align: justify;\">Nun sollte aber alles klappen und die Songs am <strong>RasPi<\/strong> geh\u00f6rt werden k\u00f6nnen. Eine Empfehlung ist auch die App Radio.de &#8211; damit kann man auch einfach alle m\u00f6glichen Internetradiosender empfangen und auf den RasPi streamen. F\u00fcr den Betrieb von <strong>Shairport<\/strong> ist ja kein Bildschirm n\u00f6tig &#8211; so k\u00f6nnte der <strong>RasPi<\/strong> z.B. seinen Platz in der K\u00fcche finden &#8211; einfach ein paar kleine Lautsprecher ran (Wlan nicht vergessen) und los gehts!<br \/>\nWer dann noch ein gutes NAS hat (wie meins von <strong>Synology<\/strong>) dann ist man auch nicht auf <strong>Itunes<\/strong> angewiesen sondern kann einfach die Audio App verwenden und direkt vom NAS auf den <strong>Raspi<\/strong> streamen.<\/p>\n<p style=\"text-align: justify;\">Hier nochmal der Link zum Deutschen Raspberrry Pi Forum<\/p>\n<p><a href=\"https:\/\/forum-raspberrypi.de\/forum\/\" target=\"_blank\"><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>F\u00fcr alle die mit dem Begriff nichts anfangen k\u00f6nnen: Ihr habt vermutlich kein Ger\u00e4t von Apple \ud83d\ude09 Erkl\u00e4rung ohne Scherz in Kurform: Airplay ist eine \u2026<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false,"_links_to":"","_links_to_target":""},"categories":[25,29],"tags":[],"class_list":["post-2074","post","type-post","status-publish","format-standard","hentry","category-hardware","category-raspberry"],"wp-worthy-pixel":{"ignored":false,"public":"db02058a46434170b2e520b985652aa8","server":"","url":"https:\/\/vg01.met.vgwort.de\/na\/db02058a46434170b2e520b985652aa8"},"wp-worthy-type":"normal","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jungsi.de\/en\/wp-json\/wp\/v2\/posts\/2074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jungsi.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jungsi.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jungsi.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jungsi.de\/en\/wp-json\/wp\/v2\/comments?post=2074"}],"version-history":[{"count":0,"href":"https:\/\/www.jungsi.de\/en\/wp-json\/wp\/v2\/posts\/2074\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jungsi.de\/en\/wp-json\/wp\/v2\/media?parent=2074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jungsi.de\/en\/wp-json\/wp\/v2\/categories?post=2074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jungsi.de\/en\/wp-json\/wp\/v2\/tags?post=2074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}