How to setup a local path to ultraseedbox seedbox on Linux.

This is a guide on how to mount your seedbox on your self-hosted Radarr/Sonarr linux server. The goal is to have a local path to the seedbox because Radarr/Sonarr need this.

Table of Contents

Intro

I’m going to help you mount your seedbox on your linux machine with the help of Rclone.

Rclone is a program, that lets you map different kinds of connections. In this case, we are going to use SFTP (SSH File Transfer Protocol).

SFTP uses the SSH protocol to transfer files. It is not the fastest out there, but it is enough to saturate my VPN speed limit. You can thinker around with other protocols, to gain faster speed if necessary. Maybe try out FTPS (Secure FTP).

By the way this guide will be centered around CentOS 7.

How it works

You create a connection profile with Rclone. Then you create a service, that initiates and runs the connection.

Create the local path

You need to create a directory, where you will mount the seedbox. I use /mnt/seedbox.

mkdir /mnt/seedbox
chmod 755

Disclaimer. 755 means everyone on your system will have read/execute access to the folder. This is not very secure. This can be done in a better way, but I’m too lazy as of right now.

I’m also running everything under root, that is not recommended.

I’m still a Linux noob.

Installing Rclone

yum install unzip curl -y
curl https://rclone.org/install.sh | sudo bash

Configuring Rclone profile

Type “rcone config”.
Type N for New Remote.

Name: Seedbox01
Type of storage: 29 (sftp)
Host: This is the hostname for the seedbox. This can be found in the Ultraseedbox control panel. Look at screenshot above.
User: This can also be found in the Ultraseedbox control panel.
Port: This can also be found in the Ultraseedbox control panel. But since we use SSH, it is most likely 22.
Password: This can also be found in the Ultraseedbox control panel, and you can change it there aswell.
Key_pem: Press enter. Don’t type anything.
Key_file: Type N and Press enter.
Pubkey_file: Press enter.
Key_use_agent: Press enter.
Use_insecure_cipher: Press enter.
Disable_hashcheck: Press enter.
Edit advanced config? Type N for no.

Then it shows you the config, you can click Y if you wanna continue or E if you wanna edit it.
Click Y and then after click Q.

Creating the service

First we need a text editor, in this example i will use nano. We also need to install fuse.
Then we create the service file.

yum install nano fuse -y
nano /etc/systemd/system/rclone-normal.service

Then you paste in the following code:

[Unit]
Description=RClone Mount Service
Wants=network-online.target
After=network-online.target

[Service]
Type=notify
KillMode=none
Environment=GOMAXPROCS=2

ExecStart=/usr/bin/rclone mount Seedbox01:files /mnt/seedbox \
  --config /root/.config/rclone/rclone.conf \
  --use-mmap \

StandardOutput=file:/root/rclone_logs/rclone.log
ExecStop=/bin/fusermount -uz /mnt/seedbox
Restart=on-failure

[Install]
WantedBy=default.target

Click ctrl + x, then write Y and press Enter.

Then type:

systemctl daemon-reload
systemctl restart rclone-normal
systemctl enable rclone-normal

Now the seedbox is mounted! You can type ls -la /mnt/seedbox to see the files.

Helpful links

https://rclone.org/install/
https://rclone.org/commands/rclone_mount/

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *