Mount your Leprd site on your PC

I got this working by using a program called Rclone. It is a command line utility that allows you to sync and mount files from an external source (like FTP or WebDAV). Even though it’s command-line only, it’s pretty simple to set up!

Before we get started, we need to make sure we are using the correct configuration information.

Getting your FTP information

  • Log in to your cPanel
  • Under the Files area, click on FTP Accounts.
  • Under Special FTP Accounts, you should see an account that matches the username you usually log into cPanel with. Click on the Configure FTP Client client link beside it.
  • Under the Manual Settings header, it will list:
    • FTP Username
    • FTP Server
      • Note: For some reason (on Windows at least) using ftp.username.leprd.space does not work, however, removing the ftp. part at the beginning works lovely!
    • FTP & explicit FTPS port
  • Make note of these settings, because you will be prompted for them.

Installation [Windows 10]

Please note: Rclone is a command line utility. This means you'll use cmd or Powershell to run the program.
  • Go to Rclone’s download section and download the Windows version. This is a zip file, that you want to extract to a folder somewhere on your PC.
  • Use the command line to navigate to the folder you extracted your files to.

Since many Windows users don’t regularly use the command line, I want to take some time to spell out some things that might be obvious for the more experienced.

  • If locating the path of a directory is confusing, you can open the directory in Windows explorer, and copy and paste the absolute path from the address bar.
  • The command for changing a directory is: cd
    • To go to an absolute path directory, just type cd absolutepath like so:
cd C:\Users\Username\Desktop\rclone-v1.57.0-windows-amd64
Code language: CSS (css)

Installation [Linux]

Run the following command to install Rclone:

curl https://rclone.org/install.sh | sudo bash
Code language: JavaScript (javascript)

You can check to see if it installed correctly with the following command:

rclone version --check

Configuring RClone

The first thing we need to do is configure Rclone to work with the source of the files, which in this case is your Leprd server.

  • Type in rclone config
  • Type n to set up a New remote and hit enter.
  • Type in a name you’d like to call this connection. It is recommended to use a name without spaces unless you’re experienced with the command line.
  • Find the option in the list that appears called FTP Connection and type that number, and hit enter.
  • Type in the host of your leprd FTP. Usually this looks like username.leprd.space
  • Type in the user of your leprd account (as you noted earlier)
  • Type in the port as noted on your server.
  • For the next two options (implicit and explicit FTPS), just press Enter to keep the default values.
  • For edit advanced config type n.
  • Then type y to save the configuration.
  • To test if it works, type the following (but replace name with the name of your server configuration:
rclone ls leprd:

This command will list all of the available files it can see on your server. If you see a bunch of files being listed, that means it’s working!

Mounting RClone to your PC as a drive

Once you’ve tested your configuration and are sure everything is working, you can mount all of your files as a drive on your PC with the following command:

Windows:

rclone mount leprd: *

Linux:

rclone mount leprd: /path/to/local/mount
Code language: JavaScript (javascript)

The * argument just tells rclone to mount the files to the first available drive letter.

However, when you exit the terminal, the drive will no longer be mounted.

There is a way to make it automatically mount when your PC starts up, but that is a little more complex. If I get that working, I will absolutely update this guide with more information.

You can also use RClone to download files locally, or upload local files to Leprd. This page has the official documentation for the different subcommands. If there is enough interest I would be happy to expand this article further!



Hey, thanks for reading! If you have any questions, you can leave me a comment and I always try to reply.

If you have any suggestions on how I can improve this article, please let me know!

This website is not monetized in any way. It purely exists to help others on their web-building journey. However, if you have the means to donate toward my server costs, I have a ko-fi account where I accept tips.

Leave a Comment