source: server/doc/install-howto @ 827

Last change on this file since 827 was 818, checked in by geofft, 16 years ago
My head is starting to heal!
File size: 3.7 KB
Line 
1This document is a how-to for installing a Fedora scripts.mit.edu server.
2
3* Check out the scripts.mit.edu svn repository. Configure svn not to cache
4  credentials.
5
6* cd to server/fedora in the svn repository.
7
8* Run "make install-deps" to install various prereqs.
9
10* Create a scripts-build account, and set up rpm to build in $HOME.
11  If you just use the default setup, it will generate packages
12  in /usr/src/redhat.
13
14* Use the Makefile to build the scripts.mit.edu-specific Fedora
15  packages.
16  - export PATH=$PATH:/usr/sbin
17  - make download
18  - make setup
19  - make all
20  - openafs-devel is a build-dependency of accountadm, so you'll need to
21    install it by hand when that fails.
22  Then install all the packages as root.
23
24* Rebuild mit-zephyr on a 32-bit machine, like the one at Joe's home.
25
26* Run "make suexec" and "make suexec-install" to overwrite
27  /usr/sbin/suexec with one that works. The one installed by the
28  newly-built Apache RPM is misconfigured.
29
30* Check out the scripts /etc configuration, which is done most easily by
31  - svn co https://scripts.mit.edu:1111/server/fedora/config/etc
32  - \cp -a etc /
33
34* Copy over root's dotfiles.
35
36* Install various dependencies of the scripts system, including syslog-ng,
37  glibc-devel.i386, python-twisted-core, mod_fcgid, nrpe, nagios-plugins-all.
38
39* Disable SELinux and NetworkManager.
40
41* Figure out why Zephyr isn't working and why the openafs /usr/vice/etc <->
42  /etc/openafs mapping isn't in sync.
43
44* Install the full list of RPMs that users expect to be on the
45  scripts.mit.edu servers.  See server/doc/rpm and
46  server/doc/rpm_snapshot.  (Note that this is only a snapshot, and not
47  all packages may in fact be in use.)
48
49* Install the full list of perl modules that users expect to be on the
50  scripts.mit.edu servers.  See server/doc/perl and
51  server/doc/perl_snapshot.
52
53  - Run 'cpan', accept the default configuration, and do 'o conf
54    prerequisites_policy follow'.
55  - Parse the output of perldoc -u perllocal | grep head2 on an existing
56    server, and "notest install" them from the cpan prompt.
57
58* Install the Python eggs and Ruby gems and PEAR/PECL doohickeys that are on
59  the other scripts.mit.edu servers and do not have RPMs.
60  - Look at /usr/lib/python2.5/site-packages for Python eggs and modules.
61  - Look at `gem list` for Ruby gems.
62  - Look at `pear list` for Pear fruits (or whatever they're called).
63
64* echo 'import site, os.path; site.addsitedir(os.path.expanduser("~/lib/python2.5/site-packages"))' > /usr/lib/python2.5/site-packages/00scripts-home.pth
65
66* Install the credentials (machine keytab, daemon.scripts keytab, SSL
67  certs).
68
69* Attempt to check out server/fedora/config/etc into /etc. The easiest way to
70  do this is to create a checkout of etc in another directory and mv -f this on
71  top of /etc.
72
73  - If you are setting up a test server, pay attention to
74  /etc/sysconfig/network-scripts and do not bind scripts' IP address.
75  You will also need to modify /etc/ldap.conf, /etc/openldap/ldap.conf, and
76  /etc/httpd/conf.d/vhost_ldap.conf to use scripts.mit.edu instead of
77  localhost.
78
79* Install fedora-ds-base and set up replication (see /mit/scripts/doc
80  and /mit/geofft/Public/fedora-ds-enable-ssl-and-kerberos.diff).
81
82* Install nslcd / nss-ldapd, which, unlike nss-ldap, doesn't crash every few
83  hours. Add /sbin/service dirsrv start and /sbin/nslcd to /etc/rc.local, or
84  better yet package nss-ldapd properly.
85
86* Make the services dirsrv, postfix, and httpd start at boot.
87
88* Run fmtutil-sys --all, which does something that makes TeX work.
89
90* (Optional) Beat your head against a wall.
91
92* I recommend setting noatime for the root filesystem in /etc/fstab.
93
94* Possibly perform other steps that I've neglected to put in this
95  document.
Note: See TracBrowser for help on using the repository browser.