Install slskd on Ubuntu

Discussion about programs used to manage files and libraries (Foobar2000, iTunes, Musicbee, DeaDBeeF)
Post Reply
Mr.V600
lvl 1
Posts: 314
Joined: Thu Jul 13, 2023 9:50 am

Install slskd on Ubuntu

Post by Mr.V600 »

This shows how to setup slskd on Linux Ubuntu server with only terminal support

Download the binary from the slskd clients
https://github.com/slskd/slskd/releases
1.jpg
1.jpg (30.82 KiB) Viewed 77 times
Unzip the contents in a folder. Make sure the permission of the slskd binary is executable.

chmod u+x slskd
2.jpg
2.jpg (27.84 KiB) Viewed 76 times
open the firewall ports before starting up slskd for the first time.

ufw allow 5030
ufw allow 5031

startup slskd and it will create a folder in your user home directory and a config file.

/root/.local/share/slskd/slskd.yml
3.jpg
3.jpg (76.21 KiB) Viewed 75 times
You should now be able to access the web UI. But the system will not be functional yet.
4.jpg
4.jpg (24.99 KiB) Viewed 74 times
Edit the YAML file and change this section to get communication with Soulseek network functional
YAML location: /root/.local/share/slskd/slskd.yml (or start up slskd and see where it points to for the YAML)
5.jpg
5.jpg (79.77 KiB) Viewed 47 times
Open the ports for slsk login and P2P sharing based on what is in the YAML. If you plan on running slskd at the same time as Soulseek QT or Nicotine+, make sure these ports are not overlapping. Each instance of a client will need it's own dedicated ports.

ufw allow 2271
ufw allow 50300

You can also change your Web UI login and password
7.jpg
7.jpg (54.65 KiB) Viewed 48 times
restart slskd and login should now work.
6.jpg
6.jpg (64.58 KiB) Viewed 47 times
Open the Web UI and it should show connected and you should be greeted with a search bar.
8.jpg
8.jpg (23.37 KiB) Viewed 48 times
When inspecting the user from another client, the user settings look correct.
9.jpg
9.jpg (26.61 KiB) Viewed 40 times
You can now set your Share folders. You can additionally set filters if there are certain types of files you do not want people to download from you. They will not show up in any search results or browsing.
10.jpg
10.jpg (72.53 KiB) Viewed 29 times
12.jpg
12.jpg (52.13 KiB) Viewed 29 times
13.jpg
13.jpg (70.09 KiB) Viewed 29 times
Also enable this section
15.JPG
15.JPG (26.21 KiB) Viewed 21 times
Making slskd run automatically on it's own

Create a service config file.

Code: Select all

vi /etc/systemd/system/slskd.service
Add the following (change the slskd binary location as needed)

Code: Select all

[Unit]
Description=slskd 
After=network.target

[Service]
ExecStart=/home/MrV600/slskd/app/slskd

[Install]
WantedBy=multi-user.target
save the document, and start the service

Code: Select all

systemctl start slskd.service
Check the status

Code: Select all

systemctl status slskd.service
Make sure it reports as running, and you can try opening the Web UI again.
14.jpg
If everything is good, run the command below to make it start automatically at boot.

Code: Select all

systemctl enable slskd.service
Otherwise you can use start/stop/restart to manually run it in the future.

Code: Select all

systemctl start slskd.service

Code: Select all

systemctl stop slskd.service

Code: Select all

systemctl restart slskd.service
Post Reply