Debian
This guide will walk you through setting up hostd on Linux. At the end of this guide, you should have the following:
Installed the
hostdsoftwareCreated a
hostdwallet
Pre-requisites
To ensure you will not run into any issues with running hostd it is recommended your system meets the following requirements:
Operating System Compatibility:
hostdis supported on the following Debian versions:Bookworm (Debian 12)
Bullseye (Debian 11)
System Updates: Ensure that Debian is up to date with the latest system updates, these updates can contain important security fixes and improvements.
Hardware Requirements: A stable setup that meets the following specifications is recommended. Not meeting these requirements may result in preventing slabs from uploading and can lead to a loss of data.
A quad-core CPU
8GB of RAM
An SSD with at least 128GB of free space.
Adjust sysctl (OPTIONAL)
These changes to sysctl are optional and may increase performance
echo "net.core.rmem_max=7500000
net.core.wmem_max=7500000
net.ipv4.tcp_congestion_control = bbr
net.core.default_qdisc = pfifo_fast
net.ipv4.tcp_shrink_window = 1" | sudo tee /etc/sysctl.d/50-hostd.conf
sudo sysctl --systemInstall hostd Using the apt repository
hostd Using the apt repositoryBefore you install hostd for the first time on a new machine, you need to set up the Sia apt repository. Afterward, you can install and update hostd using apt.
Your system will need to have curl installed as well. You can check if it is installed by running curl --version. If it is not installed, you can install it by running sudo apt update && sudo apt install curl
1. Set up the Sia apt repository by copying and pasting the following commands into your terminal:
sudo curl -fsSL https://linux.sia.tech/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/siafoundation.gpg
sudo chmod 644 /usr/share/keyrings/siafoundation.gpg
echo "deb [signed-by=/usr/share/keyrings/siafoundation.gpg] https://linux.sia.tech/debian $(. /etc/os-release && echo "$VERSION_CODENAME") main" | sudo tee /etc/apt/sources.list.d/siafoundation.list
sudo apt update
2. Install hostd
sudo apt install hostd
3. Verify hostd was installed successfully
Run the following command to see the version of hostd that was installed:
hostd version
Configure hostd
hostdAfter installing hostd, you will need to configure it with a wallet seed and a password to unlock the web interface. There is an interactive configuration process that you can start by running the following command.
sudo hostd configThis will start an interactive configuration process. You will be asked to generate or recover a wallet seed and set a password to unlock the web interface.

Start hostd
hostdNow that you have installed and configured hostd, you can start it by running the following command:
sudo systemctl enable --now hostdVerify hostd has started successfully
hostd has started successfullyRun the following command to verify the hostd service has started successfully:
sudo systemctl status hostd
Updating hostd
hostdNew versions of hostd are released regularly and contain bug fixes and performance improvements.
To update:
Stop the
hostdservice.
sudo systemctl stop hostdUpgrade
hostdusing theaptpackage manager.
sudo apt update
sudo apt upgrade hostdStart
hostdservice.
sudo systemctl start hostdNext Steps
Now that you have hostd installed and running, you can start using it to store and retrieve data on the Sia network. You can access the web interface by navigating to http://127.0.0.1:9980 in your web browser. If you installed hostd on a remote machine or a server, you will need to create an SSH tunnel to access the web interface.

About Hosting on Sia
Last updated
Was this helpful?