Note: This whole tutorial will be done in the terminal
Installation
- To get started, first install the dependencies.
Alternatively, if you are using GIT, you can checkout its Github page for more detail.
- Extract the file:
You should now find a “riofs-master” folder.
Enter the “riofs-folder” folder and compile it.
Before we can mount our bucket, we have to configure the configuration file for riofs. In your terminal:
This will copy the default configuration file to your local folder. You can change the destination folder if you want to.
Next, we need to add the security credential to the configuration file:
Scroll down the page till you see the AWS_ACCESS_KEY section.
Uncomment that section and replace “###AWS_ACCESS_KEY###” with your access key and “###AWS_SECRET_ACCESS_KEY” with the secret key.
Save (Ctrl + o) and exit (Ctrl + x).
- Change the permission for the riofs.conf.xml file.
To check if your bucket is successfully mounted, just list all the files in the mounted directory:
More Configuration
There are a few things that you can set in riofs.
- –cache-dir: set a cache directory to minimize downloads
- -o “allow_other”: allow other users to access your bucket. You will need to enable the “user_allow_other” option in the fuse config file (/etc/fuse.conf)
Conclusion
Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.
Our latest tutorials delivered straight to your inbox