Other
Setup a new host on Linux
This guide will walk you through setting up hostd on Linux. At the end of this guide, you should have the following:
- Installed Sia - hostdsoftware
- Functional - hostdNode
- Created 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: Ensure your Linux version is compatible with the - hostdsoftware. To do this, run- uname -min your Terminal Emulator.- x86_64 - - Linux AMD64
- aarch64 - - Linux ARM64
 
- System Updates: Ensure that your Linux is up to date with the latest system updates, as these updates can contain important security fixes and improvements. 
- Hardware Requirements: Your machine must meet the minimum requirements for hosting on Sia. Not meeting these requirements may result in not receiving contracts from renters or risk losing Siacoins as a penalty. Hosting on Sia is a commitment that requires some technical knowledge and a stable setup, such as: - A Linux distro (Ubuntu, Debian, Fedora, Arch, etc) 
- A quad-core CPU 
- 8GB of RAM 
- An SSD with at least 128GB of free space. 
- Additional storage space to rent out 
 
Install hostd
hostdDownload the latest version of hostd for your operating system from the official website. For this guide, we'll be downloading the Linux version of hostd.
- Open a terminal and download the latest version of - hostdfor your operating system.
wget https://sia.tech/downloads/latest/hostd_linux_amd64.zipwget https://sia.tech/downloads/latest/hostd_linux_arm64.zip- Now that we have downloaded - hostd, we can unzip and extract the- hostdbinary to our- /usr/local/bindirectory
unzip -j hostd_linux_amd64.zip hostd &&\
sudo mv -t /usr/local/bin hostd &&\
rm -rf hostd_linux_amd64.zipunzip -j hostd_linux_arm64.zip hostd &&\
sudo mv -t /usr/local/bin hostd &&\
rm -rf hostd_linux_arm64.zip- Create a new folder called - hostd. This will hold all the runtime files- hostdgenerates and uses.- mkdir /path/to/hostd/folder
Configuring hostd
hostdhostd uses BIP-39 12-word recovery phrases. It does not support legacy 28/29-word siad seeds.
- Before running the - hostdconfiguration wizard, make sure to- cdinto the- hostdruntime folder you created in the last section. Then run the- hostdconfiguration wizard. This will generate a- hostd.ymlfile that is used by- hostdon start-up.- cd /path/to/hostd/folder hostd config
Start hostd
hostd- Once you have completed the configuration wizard, you can now start - hostd.- cd /path/to/hostd/folder hostd 
Accessing the UI
For users with a desktop environment, you can open a browser to http://localhost:9980 to access the hostd UI.
If you do not have a desktop environment:
- Find your server's LAN IP using - ip addr,- ifconfig, etc.
- Switch to another computer in your LAN and open the browser 
- Type your LAN IP followed by - :9980in the address bar (e.g.- http://192.168.1.50:9980)

Updating
It is very important to keep your host up to date. New versions of hostd are released regularly and contain bug fixes and performance improvements.
To update:
- Stop - hostd.
- Download the latest version of - hostd.
wget https://sia.tech/downloads/latest/hostd_linux_amd64.zipwget https://sia.tech/downloads/latest/hostd_linux_arm64.zip- Unzip and replace - hostdwith the new version.
unzip -j hostd_linux_amd64.zip hostd &&\
sudo mv -t /usr/local/bin hostd &&\
rm -rf hostd_linux_amd64.zipunzip -j hostd_linux_arm64.zip hostd &&\
sudo mv -t /usr/local/bin hostd &&\
rm -rf hostd_linux_arm64.zip- Start - hostd.- cd /path/to/hostd/folder hostd
Congratulations, you have successfully updated your version of hostd!
Last updated
Was this helpful?
