SIA renterd is a decentralized storage tool accessible on Linux and Windows, but it's easy to compile it on last OmniOSce version
Here's how to do it:
Install system dependencies (switch to root):
pkg install pkg:/ooce/developer/go-124 \
pkg:/developer/versioning/git \
pkg:/developer/gcc14 \
pkg:/terminal/tmux
Clone the git repository:
cd /tmp
git clone https://github.com/SiaFoundation/renterd.git
cd renterd/
Configure and compile the project:
(there is a problem with sqlite3 version detection, so we can install it this way)
go install github.com/mattn/go-sqlite3
go mod tidy
go build -v ./...
Specific compilation of the renterd executable:
cd /tmp/renterd/cmd/renterd/
go build
Now, an executable ./renterd has appeared.
Create the destination directory and move the contents of the renterd folder
mkdir -p /opt/renterd/bin
mv /tmp/renterd/* /opt/renterd/
cp /opt/renterd/cmd/renterd/renterd /opt/renterd/bin/
Adjust permissions:
groupadd renterd
useradd -g renterd -d /var/empty -s /bin/bash -c "renterd Daemon" renterd
chown -R renterd:renterd /opt/renterd
chmod -R 750 /opt/renterd
Launch renterd for the first time in a tmux session :
tmux new -s renterd
When renterd is started, you can securely erase the shell access :
usermod -s /bin/false renterd
The folders and files are created in the location where you launch renterd, which is why it's better to launch them while in the /opt/renterd/bin folder.
To access the web console, you can set up an SSH tunnel (with PuTTy or other) by adding a new forwarded port :
- Source port: 9980 (L9980)
- Destination:
127.0.0.1:9980
.
Open the tunnel, launch your web browser, and type: http://127.0.0.1:9980
You will quickly need to configure a /opt/renterd/bin/renterd.yml file for S3 access (via rclone, for example).
(See the Sia documentation, it's easy)