Install, Configure & Use of Rclone
In this guide, we will be going over the installation of Rclone. We'll also cover the basic usages such as setting up a remote and how to copy files between your Ultra service and a remote server.
Installation on your Ultra.cc Service
To begin, make sure you know how to SSH into your service. All Rclone commands are performed via SSH.
- Connect to your Ultra service via SSH.
- Rclone is pre-installed on all services. However, you should install your own copy of Rclone to keep it up to date with the latest features.
- To install Rclone, run the command below; this command will automatically install Rclone to your slot for you.
Rclone stable
curl https://scripts.ultra.cc/main-v2/MergerFS-Rclone/Installer%20Scripts/rclone-install-stable.sh | bashRclone beta
curl https://scripts.ultra.cc/main-v2/MergerFS-Rclone/Installer%20Scripts/rclone-install-beta.sh | bash- You can always check the version of Rclone you have installed with this command:
rclone version- If the version says 1.60.1 (after you have logged back in), then the installation failed, as that is the default version pre-installed on your server.
- Once you have installed your own copy of Rclone, you should update it occasionally as new features and bug fixes are released regularly. To update use this command:
rclone selfupdateInstallation on your Local PC
Windows
- Download the latest Rclone version.
- Extract the compressed zip file to any location of your liking using software like 7zip or WinRAR.
- Move
rclone.exeto the following folderC:\Windows\System32.
MacOS
- Open a terminal window.
- Install
brewwith the command given below:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"- Install
sudoandmacfusewith brew using the commands below:
brew install macfuse
brew install sudo- Switch to root and finally install Rclone using the commands below:
sudo su
curl https://rclone.org/install.sh | sudo bashLinux
- Open a terminal window.
- Run the command given below:
curl https://rclone.org/install.sh | sudo bashConfiguration
OAuth (Google Drive)
- Navigate to Google Developer Console and login to your Google account.
- Click Create on the right-hand side of the screen.
- On the screen that pops up, enter a Project name and then click Create.
- We recommend against using Rclone in the project name; even just the default will do.

- Click Enable APIs and Services, search for Drive and select Google Drive.


- Click Enable on the window that pops up.

- Click Create Credentials on the top right side of the screen.

- Select User data and click Next.

- Fill out App name and email addresses as you see fit. Then Save and Continue.

- Click Save and Continue again. No need to set Scopes.
- Set Application type to Desktop app and then click on Create.

- Then you will be given the option to download your credentials and also a link to your credentials page.
- You can download them to save them locally, but they will always be visible in your Google account's cloud console.

- Click on the credentials page link to go to your Credentials page. Here you will find your credentials under OAuth2.0 Client IDs.

- Next we need to Publish the app.
- Click on the OAuth consent screen button.

- Select the Audience tab and click on the Publish app button.

- Click the Confirm button.

Rclone
Now we need to configure a remote to use with Rclone. For this guide, we will be configuring Google Drive. This is the most common remote people tend to use as it offers ample storage capacities for a reasonable price. Should you wish to use a different cloud host, feel free to modify the steps, you take.
- Run the command
rclone config
kbguides@lw914:~$ rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> - Press
nand then Enter. Type the name you wish to use for your remote, and then press Enter once more. Here, we'll usegdriveas our remote name.
kbguides@lw914:~$ rclone config
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
Enter name for new remote.
name> gdrive- Scroll through the list of supported remotes and pick the one you wish. For this example, we will be using Google Drive, so we will search through the listed remote providers and select the number corresponding with Google Drive.
Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
...
23 / Google Cloud Storage (this is not Google Drive)
\ (google cloud storage)
24 / Google Drive
\ (drive)
25 / Google Photos
\ (google photos)
26 / HTTP
\ (http)
...Storage> 24
Option client_id.
Google Application Client Id
Setting your own is recommended.
See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
If you leave this blank, it will use an internal key which is low performance.
Enter a value. Press Enter to leave empty.
client_id>- You will be prompted to enter your
client_idthat we created earlier in the guide. Please head over to your credentials page in your Google developer console. - Once you have followed the steps in the guide, copy your client ID and paste it into the terminal, next press Enter.
- Open the credentials
.jsonfile you downloaded earlier with notepad. - Now copy your client secret value from it, paste it in, and again press Enter.
- Choose the scope you wish to give to Rclone. Full Access is safe and is likely the most useful one to you, so in this case we will type
1then press Enter.
- Unless you know what you are doing, leave the
service_account_fileblank and press Enter. Then typento choose to not edit advanced config and press Enter.
Option service_account_file.
Service Account Credentials JSON file path.
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Leading `~` will be expanded in the file name as will environment variables such as `${RCLONE_CONFIG_DIR}`.
Enter a value. Press Enter to leave empty.
service_account_file>
Edit advanced config?
y) Yes
n) No (default)
y/n> n- Type
nto choose to not open web browser on the slot as it doesn’t have one.
Use web browser to automatically authenticate rclone with remote?
* Say Y if the machine running rclone has a web browser you can use
* Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes (default)
n) No
y/n> n- Next, you will be provided with a Rclone command that you must execute on your local PC.
- Copy the
rclone authorize "drive" "your_token"command from your Ultra terminal and paste it on your local PC's terminal (run as administrator). This will open your browser automatically. - Refer to the earlier section of installing Rclone on your local PC if required.

- Choose the Google Drive account you wish to use and continue with the unsafe warning option (can be safely ignored as it is our self published app).

- Click Confirm, giving Rclone permission to use it.

- You will be shown a success confirmation message.

- Go back to the terminal of your local PC. Rclone will have generated a code, which you must copy.

- Paste the code in your Ultra terminal and press Enter.
- Finally, type
nto choose to not configure as a team drive and press Enter.
- You will be shown a confirmation screen. If all is OK, type
yand then press Enter to save your configuration. - If you notice any issues, you can edit them from here by typing
e, or delete them usingd. Finally, pressqand then Enter to quit the Rclone config wizard.
Usage
As Rclone is a CLI based utility, it is managed from a terminal, and via SSH on your Ultra service. Please ensure you are familiar with the Linux terminal and using SSH prior to using Rclone.
General Commands
These commands are helpful to remember. They allow you to interact with Rclone and move files around between your local and remote storage, or even between two remote destinations. For detailed usage instructions, check out the official documentation for Rclone.
If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server