PlexAmp-installer for Raspberry Pi with ARMv7 & ARMv8 HW

Updated on May 7th, 2022.
This new version does not need the server.json file, and logs in for certificates via web. It is however ARM64, and requires Pi OS 64bit.

Hi!
Have seen a lot of posts about issues with getting the Plexamp headless running on the Raspberry Pi! I have written a bash that does the full installation on a fresh setup of Raspbian OS 64-bit! Only thing you need is the post-login on web, and enabling of the service!

Follow the guide here:

…and let me know any issues/improvements/questions you might have!

Have fun!

3 Likes

Can the server.json file be found on a working PlexAmp installation on Mac OS?

“This file can currentyly only be extracted from a running installation of PlexAmp 1.1.0 for Windows.”

Nope, has to be Windows, and it has to be the older version referenced! You can install windows in a virtual box or other hypervisor on your Mac, and then install older version of Plexamp for windows there to get the server.json needed.

1 Like

What makes you think that?

Does this work on for example DietPi as well? Not super savvy with Linux, but I know my way around and can follow instructions. I couldn’t manage to install Plexamp myself on DietPi though…

Would love for you to prove me wrong, but have not found any other way to get this file/token! Looked around the file system on my Mac, and it was not there for sure! Thinking it has to be there somehow, but probably not in clear-text/obvious location on the newer versions. If you know of any other ways to extract this from a current version of plexamp, please tell!

It should be equally possible to extract it from an installation of Plexamp v1.x on Mac.

Do not know off-hand if dietpi has all the needed drivers, can have a look later today and let you know! Do not like dietpi though, it is too all-in-one/“dumbed-down” for me!

What image do you want me to try? The generic one, or the allo-one?

Probably true, do you have a link for download of it? I was unable to find, so could not try!

Thank you! I’m using the generic 32bit

Try https://plexamp.plex.tv/plexamp.plex.tv/Plexamp-1.1.0.dmg

1 Like

Thanks! Information updated accordingly!

Ok, try the script now, tested it on DietPi on my Raspberry Pi4, and it worked!
Let me know any findings/improvements you see during install.

Still think DietPi is too all-in-one/“dumbed-down”, and therefor cumbersome to use, since basically “dietpi-config” has to be used for everything, and no standard packages like vim/less/hostnamectl/timedatectl etc. installed from the start!

1 Like

Thank you so much! It worked without a problem, this is on a RPi3B.

Maybe I try another OS than DietPi sometime, but it was just what I needed in the moment to set up AirPlay.

1 Like

It’s not clear in this thread how to get a server.json file. The PlexAmp page doesn’t have any source for old versions, so even if I create a VM and run up an illegal copy of Windows, where am I supposed to get PlexAmp 1.1.0 for Windows?

(I’m on Linux)

If you go to the first post in this thread, it has a link to github. There you will find the instructions on how to create your own server.json-file, and links to all you need.
You will need either windows or macOS though. Windows has a 30-day grace-period, so not illegal.

I am also a Linux-user primarily, so understand!

Hello odinb1, If I re-run the script to change the device’s name to, for example, its current room location. Will it overwrite the server.json file that I carefully copied from another Plexamp player?

Thanks.

Only if you re-run that part of the script, but since the name is in the server.json, this is the part you want to re-run! Just enter the same key and ID as initially, and enter the new name, and if you do not remember, check/backup the file before running the script.
…or even easier, edit the json-file manually, the name-part, and reboot. Then you do not even have to re-run the script!

or even easier, edit the json-file manually,

That’s what I just did. Thanks for the tip!

Hi odinb1!

A little security tip to possibly include as an option in your installation script: allow to create and run plexamp with a dedicated system user instead of a normal user.

I have tried it, and it works perfectly well.

Create system user, with no shell login. Place “home” dir in /var/lib and add user to audio group.

adduser --system --group --home /var/lib/plexamp plexamp
usermod -aG audio plexamp

Install everything in /var/lib/plexamp. Update file permissions, etc. And then update systemd unit file accordingly.

User=plexamp
ExecStart=/usr/bin/node /var/lib/plexamp/server/server.prod.js