Other
TODO: Install without apt
Linux
This guide will walk you through setting up renterd on Linux. At the end of this guide, you should have the following:
Installed Sia
renterdsoftwareCreated a
renterdwallet
Pre-requisites
To ensure you will not run into any issues with running renterd it is recommended your system meets the following requirements:
Network Access:
renterdneeds a stable internet connection and open network access in order to store and retrieve data on the Sia network.Operating System Compatibility: You must download the correct
renterdbinary for your version of Linux. If you are not sure which version you are on, you can rununame -min a terminal to find out.x86_64 —
Linux AMD64aarch64 —
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: 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 Linux distro with
systemd(Ubuntu, Debian, Fedora, Arch, etc)A dual-core CPU
16GB of RAM
An SSD with at least 128GB of free space.
To ensure proper functionality, we are recommending 16GB RAM. This is because
renterdwill keep full slabs in memory when uploading. A full slab is 120MB, and a single upload may hold two or three slabs in memory. However, it is possible to runrenterdwith less RAM than this, and it may work fine depending on the use case.
Installing renterd
renterdOpen a Terminal using Crtl + Alt + T.
Once the Terminal loads, run one of the following commands to download and install the latest version of renterd to your /usr/local/bin directory.
Make sure to install the correct version for your system. If you are unsure which version you should pick, refer to the Pre-requisites section of this guide for instructions.
wget https://sia.tech/downloads/latest/renterd_linux_amd64.zip &&\
unzip -j renterd_linux_amd64.zip renterd &&\
sudo mv renterd /usr/local/bin/renterd &&\
rm -fr renterd_linux_amd64.zip
Creating a wallet
renterd uses BIP-39 12-word recovery phrases. To generate a new wallet recovery phrase, run the following command:
renterd seedA new 12-word recovery phrase will be generated. Make sure to store it in a safe place, as you will need this phrase to recover your wallet.

Setting up a system user
Now that you have a recovery phrase, we will create a new system user and systemd service to run renterd securely on startup.
First, we will create a new system user with useradd and disable the creation of a home directory. This is a security precaution that will isolate renterd from any unauthorized access to our system. We will then use usermod to lock the account and prevent anyone from logging in under the account.
sudo useradd -M renterd &&\
sudo usermod -L renterdNow, we will create a new folder under /var/lib/ titled renterd and give it the appropriate permissions. This folder will be utilized specifically to store data related to the renterd software. Open the Terminal Emulator and run the following commands:
sudo mkdir /var/lib/renterd &&\
sudo chown renterd:renterd /var/lib/renterd &&\
sudo chmod o-rwx /var/lib/renterdConfigure your renterd.yml file
renterd.yml fileTo begin, create a file name renterd.yml file under /var/lib/renterd/
sudo nano /var/lib/renterd/renterd.ymlNow, modify the file to add your wallet seed and API password. The recovery phrase is the 12-word phrase you generated in the previous step. Type it carefully, with one space between each word, or copy it from the previous step. The password is used to unlock the renterd web UI; it should be something secure and easy to remember.
your_access_key can be anywhere from 16 to 128 characters long, and your_private_key must be exactly 40 characters long.
seed: your seed phrase goes here
http:
password: your_api_password
autopilot:
heartbeat: 5mOnce you have added your recovery phrase and password, save the file with ctrl+s and exit with ctrl+x.
Setting up a systemd service
Now we can create a new system service to run renterd on startup:
sudo nano /etc/systemd/system/renterd.serviceOnce the editor loads, copy and paste the following into it.
[Unit]
Description=renterd
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/renterd
WorkingDirectory=/var/lib/renterd
Restart=always
RestartSec=15
User=renterd
[Install]
WantedBy=multi-user.target
Alias=renterd.serviceYou can now save the file with ctrl+s and exit with ctrl+x.
Running renterd
renterdNow it is time to start the service
sudo systemctl start renterd &&\
sudo systemctl enable renterdOn newer versions of Linux (Ubuntu 22.04+), sudo systemctl enable renterd may not be required as the service will automatically be enabled by default. If you get an error saying the service failed to be enabled due to the file already existing, it is okay to ignore it.
Your renterd service should now be running. You can check the status of the service by running the following command:
sudo systemctl status renterdIf the service was set up correctly, it should say “active (running).”
If for some reason your renterd service will not start, use the command journalctl -fu renterd to view the console output for more information.

You can now access the Sia network using the renterd web UI by opening a browser and going to http://localhost:9980.
If you are running renterd on the Zen Testnet, you will need to access the web UI on port 9880 by going to http://localhost:9880.

Enter the API password you created in your renterd.yml to unlock the renterd web UI.
Congratulations, you have successfully set up renterd.
Updating
New versions of renterd are released regularly and contain bug fixes and performance improvements.
To update:
Stop the
renterdsystem service.
sudo systemctl stop renterdDownload and install the latest version of
renterd.
Make sure to install the correct version for your system. If you are unsure which version you should pick, refer to the Pre-requisites section of this guide for instructions.
wget https://sia.tech/downloads/latest/renterd_linux_amd64.zip &&\
unzip -j renterd_linux_amd64.zip renterd &&\
sudo mv renterd /usr/local/bin/renterd &&\
rm -fr renterd_linux_amd64.zipRestart the
renterdsystem service.
sudo systemctl start renterdVerify the
renterdservice is running correctly.
sudo systemctl status renterdIf, for some reason, the renterd service will not start, use the command journalctl -fu renterd to view the console output for more information.

Congratulations, you have successfully updated your version of renterd!
Last updated
Was this helpful?