1. Instalando requisitos
sudo apt-get install fuse-utils build-essential pkg-config libfuse-dev libcurl4-openssl-dev libxml2-dev
2. Baixando e instalando pacotes 2.8.4
export PLATAFORMA=amd64
wget http://ftp.us.debian.org/debian/pool/main/f/fuse/libfuse2_2.8.4-1.1_${PLATAFORMA}.deb
wget http://ftp.us.debian.org/debian/pool/main/f/fuse/libfuse-dev_2.8.4-1.1_${PLATAFORMA}.deb
wget http://ftp.us.debian.org/debian/pool/main/f/fuse/fuse-utils_2.8.4-1.1_${PLATAFORMA}.deb
dpkg -i libfuse2_2.8.4-1.1_${PLATAFORMA}.deb libfuse-dev_2.8.4-1.1_${PLATAFORMA}.deb fuse-utils_2.8.4-1.1_${PLATAFORMA}.deb
3. Conferindo versao do módulo fuse 2.8.4
pkg-config –modversion fuse
4. [[http://code.google.com/p/s3fs/downloads/list baixando s3fs]]
wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz
5. Descompactar s3fs
tar -xvzf s3fs-1.61.tar.gz
cd s3fs-1.61
./configure –exec-prefix=/usr/ –prefix=/ –includedir=/usr/include/ –mandir=/usr/share/man/
make
sudo make install
6. Adicionando credenciais de acesso
[[https://aws-portal.amazon.com/gp/aws/securityCredentials https://aws-portal.amazon.com/gp/aws/securityCredentials]]
echo “ACCESS_KEY_ID:SECRET_ACCESS_KEY” > /etc/passwd-s3fs
chmod 0600 /etc/passwd-s3fs
7. Montando seu bucket
mkdir -p /mnt/bucket
s3fs nome-do-bucket /mnt/bucket
8. Adicionando montagem no /etc/fstab
s3fs#nome-do-bucket /mnt/bucket fuse allow_other,_netdev,nosuid,nodev,url=https://s3.amazonaws.com 0 0
por: Petterson Faria
Testado no Linux cobaia 2.6.32-5-amd64 #1 SMP Sun Jul 3 08:54:17 UTC 2012 x86_64 GNU/Linux
Fonte: [[http://syslog.tv/2012/03/03/mount-amazon-s3-bucket-locally Mount Amazon S3 bucket locally]]
0sem comentários ainda