Setting Up FuseOverAmazon(s3fs) on Ubuntu 10.04

FuseOverAmazon(s3fs) lets you access your S3 buckets as a mounted file system on your OS. Recently i had to set it up on a Ubuntu 10.04 host to facilicate backup. However it will fail to compile properly on a 10.04 host due to some incompatible dependecies. So you need to manually install a newer version of fuse on Ubuntu 10.04 that s3fs supports. And here is how i did it.

[Installing Fuse]
1
2
3
4
5
sudo wget https://launchpad.net/ubuntu/+archive/primary/+files/fuse_2.8.4.orig.tar.gz
tar xzf fuse_2.8.4.orig.tar.gz
cd fuse-2.8.4/
sudo ./configure
sudo make && sudo make install
[Installing s3fs]
1
2
3
4
5
6
7
8
9
10
11
wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz
tar xvzf s3fs-1.61.tar.gz
cd s3fs-1.61/
sudo apt-get install build-essential libfuse-dev fuse-utils
libcurl4-openssl-dev libxml2-dev mime-support
./configure --prefix=/usr
make
sudo make install
sudo vi /etc/passwd-s3fs
sudo chmod 640 /etc/passwd-s3fs
sudo s3fs server-backup /mnt/s3

Note that in the above code server-backup is the name of the Amazon S3 bucket. And the /etc/passwd-s3fs contains the nesseary autherization details. You can access these details form the settings menu to the top right in your AWS web console under Security Credentails. You should find the access key id and the secret access key under the “Access Keys” tab.

[/etc/passwd-s3fs]
1
ACCESS_KEY_ID:SECRET_ACCESS_KEY

Comments