Jamulus Icon. Links to homepage
Navigationsmenü öffnen

Running a Headless Server

The following is for running Jamulus as a “pure” server on hardware without audio (e.g. on a 3rd party/cloud host) and assumes Ubuntu/Debian distributions using systemd.

If you want to run a server on a Raspberry Pi, you will need to compile from source. See also this guide for Raspberry Pi maintained by Jamulus user fredsiva.

  1. Download the latest headless .deb file
  2. Update apt to make sure you have a current list of standard packages: sudo apt update
  3. Install the Jamulus package: sudo apt install ./jamulus_headless_3.8.2-1_ubuntu_amd64.deb
  4. Enable the headless server process via systemd: sudo systemctl enable jamulus-headless
  5. Add your desired command line options to the ExecStart line in the systemd service file in /lib/systemd/system/jamulus-headless.service (By default you will be running a private server).
  6. Reload the systemd files sudo systemctl daemon-reload and restart the headless server: sudo systemctl restart jamulus-headless
  7. Check all is well with systemctl status jamulus-headless (hit q to get back to the command prompt).

You may also be interested in downloading this set of useful tools from the Jamulus repository (clone the Git repo and also call git submodule update --init).


You can control Jamulus with the systemctl command. For example, to stop the server cleanly:

sudo systemctl stop jamulus-headless

Running in public mode

The following minimum setup is required to run a public server:

jamulus --nogui --server \
        --directoryserver genreServer:port \
        --serverinfo "yourServerName;yourCity;[country ID]"

Note: Semicolon and newline characters are not allowed in --serverinfo

Set your Directory (genre) server using the --directoryserver (-e) option as follows:

GenreServer address
Any Genre 1anygenre1.jamulus.io:22124
Any Genre 2anygenre2.jamulus.io:22224
Any Genre 3anygenre3.jamulus.io:22624
Genre Rockrock.jamulus.io:22424
Genre Jazzjazz.jamulus.io:22324
Genre Classical/Folkclassical.jamulus.io:22524
Genre Choral/Barbershopchoral.jamulus.io:22724

Viewing The Logs

Jamulus will log to the system log file if you left the StandardOutput=journal setting in the unit file.

To view the log, use journalctl (to exit press Ctrl-C). For example, to read the system log file, filtered for the Jamulus service:

journalctl -f -u jamulus-headless


To upgrade your server to a newer version, simply download a new .deb and re-install as step 3.


When using the recording function with the -R command line option, if the server receives a SIGUSR1 signal during a re cording, it will start a new recording in a new directory. SIGUSR2 will toggle recording enabled on/off.

To send these signals using systemd, create the following two .service files in /etc/systemd/system, calling them something appropriate (e.g. newRecording-Jamulus-serv er.service).

Note: You will need to save recordings to a path outside of the jamulus home directory, or remove ProtectHome=true from your systemd unit file (be aware that doing so is however a potential security risk).

For turning recording on or off (depending on the current state):

 Description=Toggle recording state of Jamulus server

 ExecStart=/bin/systemctl kill -s SIGUSR2 Jamulus-Server

For starting a new recording:

 Description=Start a new recording on Jamulus server

 ExecStart=/bin/systemctl kill -s SIGUSR1 Jamulus-Server

Note: The Jamulus service name in the ExecStart line needs to be the same as the .service file name you created when setting systemd to control your Jamulus server. So in this example it would be Jamulus-Server.service

Run sudo systemctl daemon-reload to register them for first use.

Now you can run these with the service start command, for example:

sudo service jamulusTogglerec start (assuming you named your unit file jamulusTogglerec.service)

You can see the result of these commands if you run service jamulus status, or by viewing the logs.

Making a server status page

With the -m command line argument, server statistics can be generated to be put on a web page.

Here is an example php script using the server status file to display the current server status on a html page (assuming the following command line argument to be used: -m /var/www/stat1.dat):

function loadserverstat ( $statfilename )
   $datei = fopen ( $statfilename, "r" );
   while ( !feof ( $datei ) )
          $buffer = fgets ( $datei, 4096 );
          echo $buffer;
<?php loadserverstat ( "stat1.dat" ); ?>

Sag uns, was du über Jamulus denkst - fülle unsere anonyme Umfrage aus (English)

Dieses Wiki ist unter einer Creative Commons Lizenz lizenziert. Willst du mithelfen?