Start with existing CentOS installation » History » Version 55
Amber Herold, 03/17/2010 02:30 PM
1 | 25 | Amber Herold | h1. Start with existing CentOS 5.3 64-bit installation |
---|---|---|---|
2 | 5 | Amber Herold | |
3 | {{>toc}} |
||
4 | 1 | Amber Herold | |
5 | 13 | Amber Herold | h2. 3 Download additional software |
6 | 2 | Amber Herold | |
7 | 13 | Amber Herold | h3. 3.1 Install the additional package repositories |
8 | 2 | Amber Herold | |
9 | *NOTE* |
||
10 | |||
11 | There are several additional CentOS repositories that you can install. |
||
12 | These repositories provide additional packages, such as patented software (MP3 players), |
||
13 | closed source applications (Flash plugin, Adobe Acrobat Reader) |
||
14 | and lesser used packages (python numpy, Gnu Scientific Library). |
||
15 | But some repositories install packages over other packages, |
||
16 | which can cause problems and conflicts (ATrpms is bad at this). So I recommend only installing |
||
17 | EPEL and RPM Fusion. Read more here: |
||
18 | "CentOS Additional Repositories":http://wiki.centos.org/AdditionalResources/Repositories |
||
19 | |||
20 | 13 | Amber Herold | h4. 3.1.1 Extra Packages for Enterprise Linux (EPEL) |
21 | 2 | Amber Herold | |
22 | 12 | Amber Herold | * http://fedoraproject.org/wiki/EPEL |
23 | * contains a wealth of packages required for appion |
||
24 | 2 | Amber Herold | |
25 | .Download repository rpm and install |
||
26 | |||
27 | <pre> |
||
28 | $ sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/`uname -i`/epel-release-5-3.noarch.rpm |
||
29 | </pre> |
||
30 | 1 | Amber Herold | |
31 | 13 | Amber Herold | h4. 3.1.2 RPM Fusion |
32 | 2 | Amber Herold | |
33 | 12 | Amber Herold | * http://rpmfusion.org/ |
34 | * good for mp3 and other patent limited software |
||
35 | 2 | Amber Herold | |
36 | .Download repository rpms and install |
||
37 | |||
38 | <pre> |
||
39 | $ sudo rpm -Uhv http://download1.rpmfusion.org/free/el/updates/testing/5/`uname -i`/rpmfusion-free-release-5-0.1.noarch.rpm |
||
40 | $ sudo rpm -Uvh http://download1.rpmfusion.org/nonfree/el/updates/testing/5/`uname -i`/rpmfusion-nonfree-release-5-0.1.noarch.rpm |
||
41 | </pre> |
||
42 | |||
43 | 13 | Amber Herold | h3. 3.2 Update current packages |
44 | 2 | Amber Herold | |
45 | .Update the updater to make life easier |
||
46 | |||
47 | <pre> |
||
48 | $ sudo yum -y update yum |
||
49 | </pre> |
||
50 | |||
51 | .Update all packages |
||
52 | |||
53 | 1 | Amber Herold | <pre> |
54 | $ sudo yum -y update |
||
55 | </pre> |
||
56 | |||
57 | *NOTE* |
||
58 | 2 | Amber Herold | Download was over 129 MB (in July 2009). If you have a slow internet connection you can setup presto/deltarpms, "see this email]":http://www.linux-archive.org/centos-development/222706-presto-deltarpm.html |
59 | 18 | Amber Herold | You may want to restart your computer when this completes. |
60 | 2 | Amber Herold | |
61 | 19 | Amber Herold | h4. .Install Complete list of additional packages: |
62 | 2 | Amber Herold | |
63 | 12 | Amber Herold | * *python tools*: python-tools python-devel |
64 | * *general applications*: subversion ImageMagick grace gnuplot python-matplotlib |
||
65 | * *Tilt Picker*: wxPython numpy scipy python-imaging |
||
66 | * *FindEM*: gcc-gfortran compat-gcc-34-g77 |
||
67 | * *Ace 2*: gcc-objc fftw3-devel gsl-devel |
||
68 | * *Sinedon*: mysql mysql-server MySQL-python |
||
69 | * *DBEM*: httpd php php-mysql phpMyAdmin |
||
70 | * *Xmipp MPI*: gcc-c++ openmpi-devel libtiff-devel |
||
71 | * *MRC tools*: php-devel gd-devel re2c fftw2-devel php-gd |
||
72 | * *UCSF Chimera imaging*: xorg-x11-server-Xvfb |
||
73 | 2 | Amber Herold | |
74 | <pre> |
||
75 | $ sudo yum -y install \ |
||
76 | python-tools python-devel python-matplotlib \ |
||
77 | subversion ImageMagick grace gnuplot \ |
||
78 | wxPython numpy scipy python-imaging \ |
||
79 | gcc-gfortran compat-gcc-34-g77 \ |
||
80 | gcc-objc fftw3-devel gsl-devel \ |
||
81 | mysql mysql-server MySQL-python \ |
||
82 | httpd php php-mysql phpMyAdmin \ |
||
83 | gcc-c++ openmpi-devel libtiff-devel \ |
||
84 | php-devel gd-devel re2c fftw2-devel php-gd \ |
||
85 | xorg-x11-server-Xvfb |
||
86 | </pre> |
||
87 | |||
88 | If you have an nVidia video card and setup RPM fusion, install the nVidia binary, will speed things up especially for UCSF Chimera |
||
89 | |||
90 | <pre> |
||
91 | $ sudo yum -y install nvidia-x11-drv |
||
92 | </pre> |
||
93 | |||
94 | .Clean up packages to save drive space |
||
95 | |||
96 | <pre> |
||
97 | $ sudo yum clean all |
||
98 | </pre> |
||
99 | |||
100 | .Re-index the hard drive, this will come in handy later |
||
101 | |||
102 | 1 | Amber Herold | <pre> |
103 | 2 | Amber Herold | $ sudo updatedb |
104 | </pre> |
||
105 | |||
106 | .Enable servers on reboot |
||
107 | |||
108 | <pre> |
||
109 | $ sudo /sbin/chkconfig httpd on |
||
110 | </pre> |
||
111 | |||
112 | <pre> |
||
113 | $ sudo /sbin/chkconfig mysqld on |
||
114 | </pre> |
||
115 | |||
116 | You can further configure this with the GUI and turn off unnecessary items |
||
117 | |||
118 | <pre> |
||
119 | $ system-config-services |
||
120 | </pre> |
||
121 | |||
122 | .Reboot the computer |
||
123 | 1 | Amber Herold | |
124 | 2 | Amber Herold | <pre> |
125 | $ sudo reboot |
||
126 | </pre> |
||
127 | 1 | Amber Herold | |
128 | 24 | Amber Herold | ---- |
129 | |||
130 | 28 | Amber Herold | h2. 4 MRC PHP Extension Installation and Testing |
131 | 13 | Amber Herold | |
132 | 54 | Amber Herold | [[MRC PHP Extension Installation and Testing]] |
133 | 47 | Amber Herold | |
134 | ---- |
||
135 | |||
136 | 55 | Amber Herold | h2. 5 Setup MySQL (appiondata) databases |
137 | |||
138 | [[Setup MySQL database]] |
||
139 | |||
140 | ---- |
||
141 | |||
142 | |||
143 | 47 | Amber Herold | h2. 6 Compile and setup Appion python programs |
144 | |||
145 | 49 | Amber Herold | [[Setup Appion programs]] |
146 | |||
147 | 41 | Amber Herold | |
148 | 50 | Amber Herold | h2. 7 Install webpages (myamiweb) |
149 | 13 | Amber Herold | |
150 | Refer to [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Web server side installation]] |
||
151 | 2 | Amber Herold | |
152 | h3. Install MRC Tools |
||
153 | |||
154 | h4. Compile MRC tools |
||
155 | 1 | Amber Herold | |
156 | 2 | Amber Herold | * Go to your php devel directory and untar the archive |
157 | * If unsure where it is, use info.php to find it under *extension_dir* |
||
158 | 1 | Amber Herold | |
159 | 13 | Amber Herold | <pre> |
160 | 2 | Amber Herold | $ cd /usr/include/php/ext/ |
161 | $ sudo mkdir mrc |
||
162 | $ sudo chmod 777 mrc |
||
163 | $ sudo chown $USER mrc |
||
164 | </pre> |
||
165 | |||
166 | 13 | Amber Herold | * Unpackage MRC Tools from http://emg.nysbc.org/software/mrctools/ |
167 | 2 | Amber Herold | |
168 | <pre> |
||
169 | $ tar zxvf ~/php_mrc.tgz |
||
170 | $ cd mrc/ |
||
171 | </pre> |
||
172 | |||
173 | 1 | Amber Herold | * Compile and install the MRC module |
174 | 2 | Amber Herold | |
175 | <pre> |
||
176 | $ phpize |
||
177 | 13 | Amber Herold | $ ./configure |
178 | 1 | Amber Herold | $ make |
179 | 2 | Amber Herold | $ sudo make install |
180 | </pre> |
||
181 | 1 | Amber Herold | |
182 | 2 | Amber Herold | h4. Configure PHP for MRC Tools |
183 | 13 | Amber Herold | |
184 | 2 | Amber Herold | * Edit your php configuration file php.ini to add "mrc.so" extension. |
185 | |||
186 | 1 | Amber Herold | <pre> |
187 | 2 | Amber Herold | $ sudo nano /etc/php.d/mrc.ini |
188 | </pre> |
||
189 | |||
190 | 13 | Amber Herold | * add mrc.so to extensions |
191 | 2 | Amber Herold | |
192 | <pre> |
||
193 | ; Enable mrc extension module |
||
194 | extension=mrc.so |
||
195 | 13 | Amber Herold | </pre> |
196 | 2 | Amber Herold | |
197 | * To test MRC tools, go to this website: |
||
198 | http://emg.nysbc.org/software/mrctools/mrc_so.php |
||
199 | |||
200 | h3. Configure PHP |
||
201 | 13 | Amber Herold | |
202 | 2 | Amber Herold | * increase the memory limit, EM images are big 64MB: |
203 | |||
204 | <pre> |
||
205 | memory_limit = 256M; Maximum amount of memory |
||
206 | </pre> |
||
207 | 1 | Amber Herold | |
208 | * Turn error display on: |
||
209 | |||
210 | 2 | Amber Herold | <pre> |
211 | 13 | Amber Herold | display_errors = On |
212 | 2 | Amber Herold | </pre> |
213 | |||
214 | <pre> |
||
215 | error_reporting = E_ALL & ~E_NOTICE |
||
216 | </pre> |
||
217 | |||
218 | * restart the webserver |
||
219 | 15 | Amber Herold | |
220 | 2 | Amber Herold | <pre> |
221 | $ sudo /sbin/service httpd restart |
||
222 | </pre> |
||
223 | |||
224 | h3. Install DBEM and project php source |
||
225 | 13 | Amber Herold | |
226 | 2 | Amber Herold | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
227 | |||
228 | h3. Configuration |
||
229 | |||
230 | h4. configure apache |
||
231 | 13 | Amber Herold | |
232 | 2 | Amber Herold | * allow REMOTE_HOST lookups in apache |
233 | |||
234 | <pre> |
||
235 | $ sudo nano /etc/httpd/conf/httpd.conf |
||
236 | </pre> |
||
237 | 13 | Amber Herold | |
238 | 2 | Amber Herold | * turn _HostnameLookups_ to On |
239 | |||
240 | <pre> |
||
241 | HostnameLookups On |
||
242 | </pre> |
||
243 | |||
244 | 1 | Amber Herold | * restart the webserver |
245 | 15 | Amber Herold | |
246 | 2 | Amber Herold | <pre> |
247 | $ sudo /sbin/service httpd restart |
||
248 | </pre> |
||
249 | 16 | Amber Herold | |
250 | 2 | Amber Herold | h4. configure project_1_2, dbem_1_5_1, and dbem_1_5_1/processing |
251 | |||
252 | Please consult the other [[Start_with_existing_ANY_Linux_flavor_OS#3-Web-server-side-installation|Install guide]] |
||
253 | |||
254 | h3. Initialize database tables from the web tools |
||
255 | |||
256 | Please consult [[Start_with_existing_ANY_Linux_flavor_OS#4-Create-a-test-project-and-processing-database|Create a test project and processing database]] |
||
257 | |||
258 | h3. Potential problems |
||
259 | |||
260 | h4. Firewall settings |
||
261 | |||
262 | You may need to configure your firewall to allow incoming HTTP (port 80) and MySQL (port 3306) traffic: |
||
263 | |||
264 | <pre> |
||
265 | $ system-config-securitylevel |
||
266 | </pre> |
||
267 | |||
268 | h4. Security-enhanced linux |
||
269 | |||
270 | "Security-enhanced linux (SELinux)":http://en.wikipedia.org/wiki/Security-Enhanced_Linux may be preventing your files from loading. To fix this run the following command: |
||
271 | |||
272 | <pre> |
||
273 | 13 | Amber Herold | $ sudo /usr/bin/chcon -R -t httpd_sys_content_t /var/www/html/ |
274 | </pre> |
||
275 | 2 | Amber Herold | |
276 | see "this website":http://docs.fedoraproject.org/selinux-apache-fc3/sn-simple-setup.html for more details on SELinux |
||
277 | |||
278 | ---- |
||
279 | 13 | Amber Herold | |
280 | h2. 8 Install external packages |
||
281 | |||
282 | 2 | Amber Herold | *Please follow individual package installation instruction provided with them* |
283 | |||
284 | h3. Compile Xmipp for OpenMPI |
||
285 | |||
286 | 51 | Amber Herold | [[Install Xmipp]] |
287 | |||
288 | 2 | Amber Herold | h2. 9 Install a PBS job submission system |
289 | |||
290 | 53 | Amber Herold | [[Install PBS]] |