Changeset 1063 for server/doc/install-howto.sh
- Timestamp:
- Apr 4, 2009, 1:40:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/doc/install-howto.sh
r1058 r1063 1 1 # This document is a how-to for installing a Fedora scripts.mit.edu server. 2 3 set -e -x 4 5 [ -e /scripts-boot-count ] || echo 0 > /scripts-boot-count 6 7 source_server="old-faithful.mit.edu" 8 9 boot=${1:$(cat /scripts-boot-count)} 10 11 doreboot() { 12 echo $(( $boot + 1 )) > /scripts-boot-count; 13 shutdown -r now "Rebooting for step $(cat /scripts-boot-count)" 14 } 15 16 YUM() { 17 NSS_NONLOCAL_IGNORE=1 yum "$@" 18 } 2 19 3 20 # Helper files for the install are located in server/fedora/config. … … 5 22 # Start with a normal install of Fedora. 6 23 24 if [ $boot = 0 ]; then 7 25 # When the initial configuration screen comes up, under "Firewall 8 26 # configuration", disable the firewall, and under "System services", leave … … 11 29 # kerneloops, mdmonitor, messagebus, microcode_ctl, netfs, network, nscd, ntpd, 12 30 # sshd, udev-post, and nothing else. 31 echo "--disabled" > /etc/sysconfig/system-config-firewall 32 for i in NetworkManager avahi-daemon bluetooth cups isdn nfslock pcscd restorecond rpcbind rpcgssd rpcidmapd sendmail; do 33 chkconfig "$i" off 34 done 13 35 14 36 # Edit /etc/selinux/config so it has SELINUX=disabled and reboot. 37 sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config 38 doreboot 39 fi 15 40 16 # Check out the scripts.mit.edu svn repository. Configure svn not to cache 17 # credentials. 18 19 # cd to server/fedora in the svn repository. 20 21 # Run "make install-deps" to install various prereqs. Nonstandard 22 # deps are in /mit/scripts/rpm. 23 24 # Check out the scripts /etc configuration, which is done most easily by 25 # $ svn co svn://scripts.mit.edu/server/fedora/config/etc 26 # # \cp -a etc / 27 41 if [ $boot = 1 ]; then 28 42 # Create a scripts-build user account, and set up rpm to build in 29 43 # $HOME by doing a … … 31 45 # (If you just use the default setup, it will generate packages 32 46 # in /usr/src/redhat.) 47 adduser scripts-build 33 48 34 # su scripts-build - 49 # Check out the scripts.mit.edu svn repository. Configure svn not to cache 50 # credentials. 35 51 36 # Make sure that server/fedora (where you currently are) is writable 37 # by user scripts-build. 52 YUM install -y subversion 53 54 cd /srv 55 svn co svn://$source_server/ repository 56 57 sed -i 's/^(# *)*store-passwords.*/store-passwords = no/' /root/.subversion/config 58 sed -i 's/^(# *)*store-auth-creds.*/store-auth-creds = no/' /root/.subversion/config 59 60 chown -R scripts-build /srv/repository 61 62 # cd to server/fedora in the svn repository. 63 cd /srv/repository/server/fedora 64 65 # Run "make install-deps" to install various prereqs. Nonstandard 66 # deps are in /mit/scripts/rpm. 67 make install-deps 68 69 # Install bind 70 YUM install -y bind 71 72 # Check out the scripts /etc configuration 73 cd /root 74 svn co svn://scripts.mit.edu/server/fedora/config/etc etc 75 \cp -a etc / 38 76 39 77 # env NSS_NONLOCAL_IGNORE=1 yum install scripts-base 78 YUM install -y scripts-base 40 79 41 80 # Rebuild mit-zephyr on a 32-bit machine, like the one at Joe's home. 42 43 # Run "make suexec" and "make install-suexec" to overwrite44 # /usr/sbin/suexec with one that works. The one installed by the45 # newly-built Apache RPM is misconfigured.46 # ... Except Anders claims he fixed this.47 81 48 82 # Remember to set NSS_NONLOCAL_IGNORE=1 anytime you're setting up
Note: See TracChangeset
for help on using the changeset viewer.