New procedure for Air Player 4 for Raspberry Pi

Support for Air Player desktop on ARM devices, like the Raspberry Pi.

Moderators: russ, Ralph

Message
Author
User avatar
Ralph
Posts: 7878
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: New procedure for Air Player 4 for Raspberry Pi

#11 Post by Ralph »

There are indeed a few steps which makes it, in my opinion, over-complicated.
But apart from that it is useful.

If you have it on auto start, then as far as I know, it already starts with sudo rights.
If you're using a Raspberry Pi 3 or older, then there's an additional step to enable OpenGL.

User avatar
Ralph
Posts: 7878
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: New procedure for Air Player 4 for Raspberry Pi

#12 Post by Ralph »

guda wrote: Sun Jun 19, 2022 10:01 am Currents bugs
  • This Air player release doesn’t support anymore resources with blank characters. If you try to use an image named “MY Image.png” it crashes the player
We cannot reproduce this. But what we did see is that if you push a debug instrument from the Create/Edit tab, without having any panel(s) configured, the application hangs. So this might be what you were experiencing. This is fixed in the upcoming release.

guda
Posts: 8
Joined: Wed Jun 09, 2021 7:20 am

Re: New procedure for Air Player 4 for Raspberry Pi

#13 Post by guda »

I have updated my procedure based on Air Player 4.1.4
- I added the "update part"
- I’ve changed the autostart chapter because this feature is now implemented by the installer (setup.sh)

Regarding your sudo question That is a good question and to be honest I don't know, I don't use any hardware.

I think you should modify the autostart file. if you have filled the /etc/xdg/lxsession/LXDE-pi/autostart file:

Code: Select all

@/home/pi/AirPlayer4_32/Bootloader
should become

Code: Select all

@sudo /home/pi/AirPlayer4_32/Bootloader
From AirPlayer 4.1.4, auto boot can be automatically set by the installer shell script (at the end of the installation it asks you if you want the autostart, just answer Y). you should changed the /home/pi/.config/autostart/airplayer.desktop file

Good luck

User avatar
nnyerges
Posts: 65
Joined: Sat Jun 18, 2022 6:28 pm

Re: New procedure for Air Player 4 for Raspberry Pi

#14 Post by nnyerges »

Hello Huberflight,

On Mon Jun 27, 2022 3:24 pm, you post this:
Huberflight wrote: Mon Jun 27, 2022 7:24 pm Hello guda.

First of all, thank you for your installation description. It´s much better than the Wiki (Until today).

But i'm stuck now. I have installed the OS on my PI. Installed the AirPlayer data and run the setup.sh to download all the stuff.
Then i type in the "./bootloader" command and nothing happends (AirPlayer didn't start). When i restart the PI, i came back on the Desctop again and nothing more. Will mean, the AirPlayer will not start. I followerd the installation for the Autostart option but nothing happends.

I'm not an RPI Expert but can anybody help please? Or make it just as easy as it was before?

thx
I have made all the procedures that "guda" explain in his post of Jun 19...
guda wrote: Sun Jun 19, 2022 10:01 am The wiki page is too light. Which OS can we use (light or desktop)? what is the procedure to update/uninstall….)?

I have the feeling to be a beta tester and today I'm stuck due to the "multi Air player on raspberry's bug".

If it can’t help other users, please find below my procedure to deploy Air player 4 on Raspberry 3
Feel free to complete my post because I’m not Linux administrator and I can make mistakes.
... but have the same issues like yours then.
Now, on Tue Jun 28, 2022 you post that your Air Player is already running...
Huberflight wrote: Tue Jun 28, 2022 9:13 am Hello Ralph, hello guda.

Thanks for your fast reply.

My situation now is that AirPlayer is running on my RPI and I have an Instr. installed.
I dont see any other post that have help you to solve you initial issue. Can you explain what do you do to get the Air Player to work?
Thanks in advance
Chief Technology Officer (CTO) at 360ATC Aviation Training Center
Electronic Engineer. Control & Software Specialist

User avatar
Huberflight
Posts: 42
Joined: Sat Mar 31, 2018 2:27 pm

Re: New procedure for Air Player 4 for Raspberry Pi

#15 Post by Huberflight »

Hello nnyerges, hello all others,

Sorry for the late reply, but I've been working abroad a lot in the past few months and I've been very busy.

I am not a programmer or IT specialist. That's why I'm writing this guide "For Dummies" (Very easy ;)
I have now figured out a way to install AirPlayer on a Raspberry Pi4 that has worked multiple times now.
Of course I want to share it with you because others might benefit from.

These instructions are only based on my experiences and do not claim to be complete.
So if anyone has a suggestion for improvement, bring it on.

So, let's get startet :)


Instructions for installing Air Player on a Raspberry Pi 4 without an external monitor

Software you will need:
Raspberry Pi Imager
Netgear Genie (Network Tool)
MobaXterm (Remote Tool)

Please Google it for free downloading


Terms:
RPI = Raspberry Pi
OS = Operational System
SUDO = Super User Do

If a command is specified, then with quotation marks, e.g.:

"sudo nano /boot/config.txt"

Then please write or copy the following:

sudo nano /boot/config.txt


- Start Raspberry Pi Imager.
- Select OS RPI OS (32 bit).
IMG_5444.jpg
- Select SD card.
- Click on the gear for advanced settings
- Set Hostname e.g.: RPI_Stby_G1000
- Enable SSH: Use password for authenticity
- set username: username=pi
- Set password e.g.: RPI4
IMG_5445.jpg
- WLAN: Disable
- Time zone e.g.: Berlin
- Keyboard layout e.g.: fr
- Click on Safe (Speichern)
IMG_5446.jpg
IMG_5447.jpg
- And then click on write (It takes a while to write and Compare).

- Put the SD card in the RPI.
- Boot the RPI.
- It will shut down and reboot on the first start. That is normal.
- Find out the IP address (NETGEAR Genie).
IMG_5448.jpg
- In our case it's 192.168.0.104
When it looks not right, go around. It's easier to explain why you done it, than for others to finde out why you don't.

User avatar
Huberflight
Posts: 42
Joined: Sat Mar 31, 2018 2:27 pm

Re: New procedure for Air Player 4 for Raspberry Pi

#16 Post by Huberflight »

- Start the remote tool MobaXTerm.
- Create a new session (click on Session in the top left).
IMG_5449.jpg
IMG_5450.jpg
- Enter the IP address you found on NETGEAR Genie (192.168.0.104).

IMG_5451.jpg
- Click ok.
- Login as: pi
- Password: RPI4

IMG_5452.jpg
IMG_5453.jpg
When it looks not right, go around. It's easier to explain why you done it, than for others to finde out why you don't.

User avatar
Huberflight
Posts: 42
Joined: Sat Mar 31, 2018 2:27 pm

Re: New procedure for Air Player 4 for Raspberry Pi

#17 Post by Huberflight »

- If you want to turn off the RPI with a push button, open the boot config file with the command: "sudo nano /boot/config.txt".
IMG_5454.jpg
IMG_5455.jpg

- And add the line: "dtoverlay=gpio-shutdown,gpio_pin=21,active_low=1,gpio_pull=up"
on to shut down the RPI4 with the button on pin 40 (GPIO21).
- Press: "Ctrl O" to save the whole thing.
- Assign names or leave them as they are (I recommend leaving them as is). Press Enter.
- Press "Ctrl X" to close the menu.


- Type: "sudo raspi-config" to get into the RPI Configurations menu.
IMG_5456.jpg
- Go to Display Options / Enter.

IMG_5457.jpg
- Screen Blanking / Enter.

IMG_5458.jpg
When it looks not right, go around. It's easier to explain why you done it, than for others to finde out why you don't.

User avatar
Huberflight
Posts: 42
Joined: Sat Mar 31, 2018 2:27 pm

Re: New procedure for Air Player 4 for Raspberry Pi

#18 Post by Huberflight »

- Disable screen blanking.
IMG_5459.jpg
IMG_5460.jpg


- Go back to the Main Menu and reboot the RPI.
IMG_5461.jpg


- Download the "Air Player Desktop Installation" image from the wiki page.
- Create a folder with the SSH Editor in the directory "/home/pi/" e.g.: "AirPlayer4_32"
IMG_5464.jpg


- Copy the files from the previously downloaded ZIP file after you have unpacked them into the folder you just created (use drag and drop).
IMG_5466.jpg
When it looks not right, go around. It's easier to explain why you done it, than for others to finde out why you don't.

User avatar
Huberflight
Posts: 42
Joined: Sat Mar 31, 2018 2:27 pm

Re: New procedure for Air Player 4 for Raspberry Pi

#19 Post by Huberflight »

- In the SSH editor, change the directory in which the previously copied data is located. In my case enter:"cd /home/pi/AirPlayer4_32".
IMG_5468.jpg


- Now write: "sudo sh ./setup.sh" / Attention: The RPI needs a working internet connection!
IMG_5469.jpg


- At the end you will be asked whether the AirPlayer should be started automatically? Type "Y" / Enter (Big or small doesn't matter).
IMG_5470.jpg


- When it now looks like in the picture below, all should be fine.
When you have any yellow line, something went wrong. A common issue is
a Network error.
IMG_5471.jpg


- To shut down the RPI now write: "sudo shutdown -h 0".
- To just restart the RPI type: "sudo shutdown -r 0".
IMG_5473.jpg
When it looks not right, go around. It's easier to explain why you done it, than for others to finde out why you don't.

User avatar
Huberflight
Posts: 42
Joined: Sat Mar 31, 2018 2:27 pm

Re: New procedure for Air Player 4 for Raspberry Pi

#20 Post by Huberflight »

And here at the end all the commands to copy again.



sudo nano /boot/config.txt


# Shutdown via hardware button
dtoverlay=gpio-shutdown,gpio_pin=21, active_low=1,gpio_pull=up
------------------------------------------------------------------------------------

sudo raspi-config

cd

cd /home/pi/AirPlayer4_32

sudo sh ./setup.sh
-------------------------------------------------------------------------------------

For shutdown
sudo shutdown -h 0

For restart
sudo shutdown -r now
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------

I hope that I could be of some help with this detailed description for beginners (like me).
If you still have questions, please let me know :) .
When it looks not right, go around. It's easier to explain why you done it, than for others to finde out why you don't.

Post Reply