Navidrome is a music server that allows you to play your music collection from anywhere using a web browser or a mobile app. In this tutorial, we will show you how to install Navidrome on Ubuntu Server.
Before we start, you need to have the following:
Start by logging in to your Ubuntu server with your SSH credentials. Then, update your system by running the following command:
sudo apt update && sudo apt upgrade -y
This command will update your server's repositories and download any available updates.
Navidrome requires some dependencies to function correctly. We need to install them first. Run the following command:
sudo apt install -y wget ffmpeg unzip
Now we need to download and extract the Navidrome package. Run the following commands:
wget https://github.com/navidrome/navidrome/releases/latest/download/navidrome-linux-amd64.zip
sudo unzip navidrome-linux-amd64.zip -d /opt/navidrome
This command will download the latest Navidrome package and extract it to the /opt/navidrome directory.
To start Navidrome as a service, we need to create a service file. Run the following command to create the file:
sudo nano /etc/systemd/system/navidrome.service
Paste the following lines in the file:
[Unit]
Description=Navidrome Music Server
After=network.target
[Service]
Type=simple
User=navidrome
Group=navidrome
ExecStart=/opt/navidrome/navidrome
Restart=always
[Install]
WantedBy=multi-user.target
Save and close the file by pressing CTRL+X
, then Y
.
We need to create a new user, Navidrome, to run the Navidrome service. Run the following command:
sudo useradd -m -s /bin/bash navidrome
We need to give the Navidrome user the necessary permissions to run the Navidrome service. To do that, run the following commands:
sudo chown -R navidrome:navidrome /opt/navidrome
sudo chmod +x /opt/navidrome/navidrome
Now we can start the Navidrome service by running the following commands:
sudo systemctl daemon-reload
sudo systemctl start navidrome
You can check the status of the service by running:
sudo systemctl status navidrome
If everything is working correctly, the output should look like this:
● navidrome.service - Navidrome Music Server
Loaded: loaded (/etc/systemd/system/navidrome.service; disabled; vendor preset: enabled)
Active: active (running) since Sun 2022-01-23 18:27:20 UTC; 12s ago
Main PID: 100987 (navidrome)
Tasks: 12 (limit: 2346)
Memory: 8.6M
CPU: 13ms
CGroup: /system.slice/navidrome.service
└─100987 /opt/navidrome/navidrome
Jan 23 18:27:20 ubuntu-server systemd[1]: Started Navidrome Music Server.
To ensure that Navidrome starts automatically when the server boots up, run the following command:
sudo systemctl enable navidrome
Open your web browser and navigate to http://your-server-ip:4533
. You will see the Navidrome web interface. Follow the on-screen instructions to configure Navidrome.
By following this tutorial, you have successfully installed Navidrome Music Server on Ubuntu Server Latest. You can now start uploading your music collection and listening to it from anywhere with an internet connection.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!