apt-get install build-essential libcurl4-openssl-dev libxml2-dev libfuse-dev \ comerr-dev libfuse2 libidn11-dev libkrb5-dev libldap2-dev \ libselinux1-dev libsepol1-dev pkg-config fuse-utils sshfs curl mkdir ~/downloads cd ~/downloads wget http://sourceforge.net/projects/fuse/files/fuse-2.X/2.8.6/fuse-2.8.6.tar.gz/download mv download fuse-2.8.6.tar.gz tar -xvzf fuse-2.8.6.tar.gz cd fuse-2.8.6 ./configure --prefix=/usr make make install cd ~/downloads wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz tar -xvzf s3fs-1.61.tar.gz cd s3fs-1.61 ./configure --prefix=/usr make make install
Creating the password file and setting permissions
emacs ~/.passwd-s3fs
Format should be like this:
accessKeyId:secretAccessKey
s3fs requires that we have sane permissions on this file
chmod go-r .passwd-s3fs
Mounting our S3 bucket
mkdir /mnt/bucketname
s3fs bucketname /mnt/bucketname
No comments:
Post a Comment