Glad to hear you got it up and running!
On Ubuntu 21.10 I would have said download and install the arm deb from here ->
https://downloads.slimdevices.com/LogitechMediaServer_v8.2.0/.
Code:
sudo apt install libio-socket-ssl-perl
wget https://downloads.slimdevices.com/LogitechMediaServer_v8.2.0/logitechmediaserver_8.2.0_arm.deb
sudo dpkg -i logitechmediaserver_8.2.0_arm.deb
Unfortunately Ubuntu 22.04 runs Perl 5.34 which is not currently supported by LMS. I was able to build my own LMS that supports Perl 5.34 more or less following these instructions ->
https://angerman.net/articles/lms/ but I would not recommend that to a beginner.
Running a separate RPi with LMS is probably the simplest option. I believe Raspberry Pi OS includes LMS as a package so it is very easy to install using apt. Otherwise I've used Ubuntu 20.04 and that also works well but you need to install LMS via the instructions above.
@MarcosCh has a tutorial here for setting up LMS using PiCorePlayer ->
https://www.audiosciencereview.com/...-step-by-step-instructions-for-dummies.33528/.
I am not a LMS guru by any means so I am sure there are other better options. If it is just Spotify you are after then the instructions below will install librespot, although to be honest a working LMS setup gives the same thing but is more straight forward.
1) Install Rust
Code:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Enter 1 at the prompt to select Select 1) Proceed with installation (default) and press enter.
Reboot RPi.
Log back in to RPi
2) Install dependencies
Code:
sudo apt install build-essential libasound2-dev pkg-config
3) Download and install librespot
This assumes you are installing this in /home/username/. You can verify your location using pwd.
Code:
git clone https://github.com/librespot-org/librespot
cd librespot
cargo build --release --no-default-features --features alsa-backend
Compiling librespot will take 10-15 minutes on a RPi4.
4) Try librespot
Rich (BB code):
/home/username/librespot/target/release/librespot --format S32 --device hw:Loopback,1
You should now see a device called Librespot in your Spotify app.
5) Setup service to automatically start Librespot.
Code:
sudo nano /lib/systemd/system/librespot.service
You will need to update your username.
Rich (BB code):
[Unit]
Description=Spotify Connect
After=multi-user.target
[Service]
User=username
Type=idle
ExecStart=/home/username/librespot/target/release/librespot --format S32 --device hw:Loopback,1
[Install]
WantedBy=multi-user.target
Reboot the RPi.
Good luck!
Michael