|
|
Install:
sudo apt-get update sudo apt-get install s3cmd
Configure:
s3cmd --configurefollow the prompts. You will need to prepare your Access Key ID and Access Key Secret.
list buckets:
s3cmd ls
list inside a bucket
s3cmd ls <bucket>
Install dependencies:
sudo apt-get install fuse-utils build-essential libcurl4-openssl-dev libxml2-dev libfuse-dev
Download sourcecode:
wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz tar -xzvf s3fs-*
Build sourcecode:
cd s3fs-* ./configure sudo make sudo make install
Configure s3fs password file:
sudo vim /root/.passwd-s3fs sudo chmod 600 /root/.passwd-s3fsFormat should be: <access key id>:<access key secret>
Test:
sudo s3fs <bucket name> <mount point>Add to fstab to mount during boot:
s3fs#mybucket /mnt/s3 fuse allow_other,url=https://s3.amazonaws.com 0 0
Source: https://foxhop.net/f3b3081d-2f95-11f1-b933-e86a64d24d78/mounting-s3-bucket-locally-on-ubuntu
Snapshot: 2026-05-30T21:16:36Z
Generator: Remarkbox 1527ef7