Changeset 1206 for branches/fc11-dev/server/doc/install-howto.sh
- Timestamp:
- Jun 22, 2009, 4:09:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc11-dev/server/doc/install-howto.sh
r1205 r1206 218 218 # Then on the server you're installing, 219 219 # cat perl-packages.txt | perl -MCPAN -e shell 220 export PERL_MM_USE_DEFAULT=1 221 # XXX: Some interactive gobbeldygook 222 cpan 223 o conf prerequisites_policy follow 224 o conf commit 225 # on a reference server 226 perldoc -u perllocal | grep head2 | cut -f 3 -d '<' | cut -f 1 -d '|' | sort -u | perl -ne 'chomp; print "notest install $_\n" if system("rpm -q --whatprovides \"perl($_)\" >/dev/null 2>/dev/null")' > perl-packages.txt 227 # arrange for perl-packages.txt to be transferred to server 228 cat perl-packages.txt | perl -MCPAN -e shell 220 229 221 230 # Install the Python eggs and Ruby gems and PEAR/PECL doohickeys that are on 222 231 # the other scripts.mit.edu servers and do not have RPMs. 232 # The general mode of operation will be to run the "list" command 233 # on both servers, see what the differences are, check if those diffs 234 # are packaged up as rpms, and install them (rpm if possible, native otherwise) 223 235 # - Look at /usr/lib/python2.6/site-packages and 224 236 # /usr/lib64/python2.6/site-packages for Python eggs and modules. 237 # There will be a lot of gunk that was installed from packages; 238 # easy-install.pth will tell you what was easy_installed. 225 239 # First use 'yum search' to see if the relevant package is now available 226 240 # as an RPM, and install that if it is. If not, then use easy_install. 227 241 # - Look at `gem list` for Ruby gems. 228 242 # Again, use 'yum search' and prefer RPMs, but failing that, 'gem install'. 243 # ezyang: rspec-rails depends on rspec, and will override the Yum 244 # package, so... don't use that RPM yet 229 245 # - Look at `pear list` for Pear fruits (or whatever they're called). 230 246 # Yet again, 'yum search' for RPMs before resorting to 'pear install'. Note 231 247 # that for things in the beta repo, you'll need 'pear install package-beta'. 248 # (you might get complaints about the php_scripts module; ignore them) 232 249 # - Look at `pecl list` for PECL things. 'yum search', and if you must, 233 250 # 'pecl install' needed items. 234 235 # echo 'import site, os.path; site.addsitedir(os.path.expanduser("~/lib/python2.6/site-packages"))' > /usr/lib/python2.6/site-packages/00scripts-home.pth 251 # Automating this... will require a lot of batonning between 252 # the servers. Probably best way to do it is to write an actual 253 # script. 254 255 # Setup some Python config 256 echo 'import site, os.path; site.addsitedir(os.path.expanduser("~/lib/python2.6/site-packages"))' > /usr/lib/python2.6/site-packages/00scripts-home.pth 236 257 237 258 # Build and install the scripts php module that enhances error logging info 238 259 # XXX This thing really ought to be packaged 239 #cp -r /srv/repository/server/common/oursrc/php_scripts /root240 #cd /root/php_scripts241 #./build.sh242 #cp test/modules/scripts.so /usr/lib64/php/modules260 cp -r /srv/repository/server/common/oursrc/php_scripts /root 261 cd /root/php_scripts 262 ./build.sh 263 cp test/modules/scripts.so /usr/lib64/php/modules 243 264 244 265 # Install the credentials. There are a lot of things to remember here: … … 271 292 # correct. 272 293 273 # cd /etc/postfix; postmap virtual 274 # Otherwise postfix will appear to work, but actually not deliver mail 294 # Postfix doesn't actually deliver mail; fix this 295 cd /etc/postfix 296 postmap virtual 275 297 276 298 # Run fmtutil-sys --all, which does something that makes TeX work. 277 299 278 300 # Ensure that PHP isn't broken: 279 # #mkdir /tmp/sessions280 # #chmod 01777 /tmp/sessions301 mkdir /tmp/sessions 302 chmod 01777 /tmp/sessions 281 303 282 304 # Ensure that fcgid isn't broken: 283 chmod 755 /var/run/httpd284 chmod 755 /var/run/httpd/mod_fcgid305 chmod 755 /var/run/httpd 306 chmod 755 /var/run/httpd/mod_fcgid 285 307 286 308 # Reboot the machine to restore a consistent state, in case you
Note: See TracChangeset
for help on using the changeset viewer.