Install on Linux
One command installs yamsap as a service that starts with the machine. The same script updates it, goes back a version, and removes it.
What You Need
- A 64-bit Intel, AMD or ARM processor, and a 64-bit operating system. On a Raspberry Pi, that means the 64-bit Raspberry Pi OS.
- Ubuntu 22.04, Debian 12, Fedora 35, Raspberry Pi OS 12, or anything newer. The installer checks for the GNU C library (glibc) 2.34 or later.
- systemd, which all of those use.
curlorwget, andtar,sha256sumandopenssl. Most systems have them already; the installer names any that are missing.- An account that can use
sudo, or root. - About 2.7 GB of free disk space if everything is on one disk: 1.1 GB for the download in
/var/tmp, 600 MB for the program in/opt/yamsap, and 1 GB in/var/lib/yamsap.
Install
Run this on the machine that will hold the music, signed in as the account that can read your music folder:
curl -fsSL https://yamsap.com/install.sh | sh
The installer asks for your sudo password, then:
- Downloads the latest release and checks its signature and checksum. If either is wrong, nothing is installed.
- Sets yamsap up as a service named
yamsap, which starts now and every time the machine boots. - Waits for the server to answer. The first start unpacks about 1 GB of supporting files and can take a few minutes on a slow disk.
- Prints the address to open, such as
http://192.168.1.20:8095.
Open that address in a browser on any device on the same network to enter your license key and choose your music folder.
If a firewall is on and other devices cannot open the page, allow TCP port 8095 through it. The installer tells you when it sees ufw or firewalld running.
Which Account It Runs As
The service runs as the account that ran the installer, so it can read whatever that account can read. It never runs as root.
-
To run it as a different account, add
--user:curl -fsSL https://yamsap.com/install.sh | sh -s -- install --user alex -
If you run the installer signed in as root, with no
sudo, it creates a system account namedyamsapand runs the service as that. Give that account read access to your music folder.
Where Things Are
| What | Where |
|---|---|
| The program | /opt/yamsap |
| The database and settings | /var/lib/yamsap |
| The service's configuration | /etc/yamsap/yamsap.env |
| The log | journalctl -u yamsap |
Your music folder is not on this list because yamsap does not move it or copy it.
Change the Port
The address ends in :8095 because that is the port the installer chose. To use another, edit YAMSAP_ADDR in /etc/yamsap/yamsap.env, then restart the service:
sudo systemctl restart yamsap
Update
curl -fsSL https://yamsap.com/install.sh | sh -s -- update
This installs the latest release if it is newer than yours. If the new version does not start, the installer puts the previous one back and tells you.
Go Back to an Older Version
Name the version you want:
curl -fsSL https://yamsap.com/install.sh | sh -s -- install --version v0.3.1
If It Did Not Start
The installer says so and points at the log:
journalctl -u yamsap
To see whether the service is running now:
systemctl status yamsap
Running the install command again is safe. It repairs the service, and installs a newer release if there is one.
Uninstall
curl -fsSL https://yamsap.com/install.sh | sh -s -- uninstall
This removes the service and the program. It leaves the database and settings in /var/lib/yamsap, so installing again picks up where you left off. To delete those too:
curl -fsSL https://yamsap.com/install.sh | sh -s -- uninstall --purge
Neither command touches your music folder.
Something on this page wrong or missing? Write to hello@torontoaudio.company.