sudo yum —assumeyes update ;
sudo yum —assumeyes install gcc ;
sudo yum —assumeyes install libstdc++-devel ;
sudo yum —assumeyes install gcc-c++ ;
sudo yum —assumeyes install fuse ;
sudo yum —assumeyes install fuse-devel ;
sudo yum —assumeyes install curl-devel ;
sudo yum —assumeyes install libxml2-devel ;
sudo yum —assumeyes install openssl-devel ;
sudo yum —assumeyes install mailcap ;
export PKG_CONFIG_PATH=/usr/lib/pkgconfig ;
mkdir s3fs && cd s3fs ;
curl http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz > s3fs-1.61.tar.gz ;
tar -z -x -f s3fs-1.61.tar.gz ;
cd s3fs-1.61
sudo ./configure ;
sudo make ;
sudo make install ;
/usr/local/bin/s3fs —version ;
## create security credential file ###
sudo touch /etc/passwd-s3fs ;
sudo chmod 777 /etc/passwd-s3fs ;
sudo echo ‘AKIAsdfsdfsdfXKSQ:0aTeoxCxsdfsdfsdfsdfPhFlA’ > /etc/passwd-s3fs ;
sudo chmod 640 /etc/passwd-s3fs ;
sudo chown ec2-user:ec2-user /etc/passwd-s3fs ;
** mount the new bucket **
sudo mkdir /mnt/s3 ;
sudo chown ec2-user:ec2-user /mnt/s3 ;
/usr/local/bin/s3fs marks-new-bucket /mnt/s3 ;
- to create a temporary mount (extra storage assgned by amazon):
sudo mkfs.ext3 /dev/sdb ## formats the mount for us – notice /sdb set by amazon-control-panel
1 yum install fuse ;
2 pwd
3 mkdir s3fs
4 find / -name s3fs
5 find / -name ‘
s3fs’
6 cd s3fs
7
8 ls
9 gzip -d s3fs-1.61.tar.gz
10 tar -xvf *
11 cd s*
12 ls
13 ./configure
14 make
15 sudo yum —assumeyes install gcc ;
16 ./configure
17 sudo yum —assumeyes install gcc-devel ;
18 sudo yum list | grep gcc ;
19 sudo yum —assumeyes install gcc-c++ ;
20 ./configure
21 sudo yum —assumeyes install libcrypto libxml-2.0 libcurl ;
22 sudo yum —assumeyes install fuse ;
23 sudo yum —assumeyes update ;
24 sudo yum —assumeyes install fuse ;
25 ./configure
26 find / -name ‘
fuse’
27 export
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ;
28 ls /usr/local/lib/pkgconfig/
29 sudo yum —assumeyes install libcurl-devel ;
30 sudo yum —assumeyes install libcurl-devel ;
31 ./configure
32 yum list libcurl
33 ./configure —prefix=/usr
34 ./configure —prefix=/usr/lib
35 cd ..
36 pwd
37 cd ..
38 mkdir fuse
39 cd fuse
40 ls
41 ls
42 pwd
43 cd ..
44 ls
45 cd s3fs
46 ls
47 cd s*
48 ls
49 sudo ./configure ;
50 cd ~
51 cd fuse
52 ls
53 ls
54 pwd
55 cd /home/ec2-suer
56 cd /home/ec2-user
57 ls
58 cd fuse
59 ls
60 curl http://downloads.sourceforge.net/fuse/fuse-2.9.2.tar.gz > fuse-2.9.2.tar.gz ;
61 ls
62 ls -l
63 curl http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.9.2/fuse-2.9.2.tar.gz?r=http%3A%2F%2Fwww.linuxfromscratch.org%2Fblfs%2Fview%2Fsvn%2Fpostlfs%2Ffuse.html&ts=1364333960&use_mirror=iweb > fuse-2.9.2.tar.gz ;
64 ls -ltr
65 ls -ltr
66 pwd
67 curl http://sourceforge.net/projects/fuse/files/fuse-2.X/2.9.2/fuse-2.9.2.tar.gz/download?use_mirror=iweb > x.gz
68 ls -ltr
69 rm fuse-2.9.2.tar.gz
70 cat x.gz
71 wget http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.9.2/fuse-2.9.2.tar.gz
72 ls -ltr
73 rm x.gz
74 tar -x -f *.gz
75 ls
76 cd fuse*
77 ls
78 ./configure
79 make
80 cd ../../s3*/s3*
81 ls
82 ./configure
83 export
PKG_CONFIG_PATH=/usr/lib/pkgconfig
84 ./configure
85 cd -
86 ./configure
87 sudo make
88 ls
89 sudo yum —assymeyes install make ;
90 sudo yum —assumeyes install make ;
91 make ;
92 make check ;
93 make test ;
94 make install ;
95 cd -
96 ./configure
97 ls -l /usr/local/lib
98 export
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ;
99 export
LIBPATH=/usr/local/lib/ ;
100 export LD_LIBRARY_PATH=/usr/local/lib/ ;
101 ./configure
102 sudo yum list | grep libxml ;
103 sudo yum list | grep crypto ;
104 sudo yum —assumeyes install libxml2.i686 libxml2-devel.x86_64 m2crypto.x86_64 crypto-utils.x86_64
105 ./configure
106 sudo yum list | grep crypto ;
107 sudo yum list | grep crypt ;
108 sudo yum —assumeyes install libgcrypt-devel crypto-utils.x86_64 crypto-utils.x86_64
109 ./configure
110 sudo yum list | grep libcrypt ;
111 sudo yum list | grep libcry ;
112 sudo yum list | grep ibcry ;
113 sudo yum list | grep bcry ;
114 sudo yum list | grep crypt ;
115 sudo yum —assumeyes install libmcrypt.i686 libmcrypt.x86_64 libmcrypt-devel.x86_64
116 ./configure
117 sudo yum —assumeyes install libcurl-devel ;
118 ./configure
119 yum list “libcurl*”
120 sudo yum —assumeyes install libcurl ;
121 sudo yum —assumeyes install libcurl.i686 ;
122 yum list “libcurl*”
123 sudo yum —assumeyes install libcurl.i686 ;
124 ./configure
125 yum list “libcurl*”
126 yum list “libcurl*”
127 sudo ./configure
128 ./configure
129 cd ../../fuse/fuse*
130 sudo ./configure
131 sudo make
132 sudo make check
133 sudo make install ;
134 cd -
135 sudo ./configure
136 ./configure
137 yum install libcurl-7.24.0-1.24.amzn1.x86_64
138 yum install libxml2-2.7.8-7.13.amzn1.x86_64
139 yum install openssl098e-0.9.8e-17.8.amzn1.x86_64
140 uname -a
141 echo $PKG_CONFIG_PATH
142 ./configure
143 ./configure —prefix=‘usr/local
144 ./configure —prefix=/usr/local
145 yum list libcrypto*
146 yum list “libcrypto*”
147
148 ./configure
149 ldconfig
150 ./configure
Commenting is closed for this article.