/[MITgcm]/mitgcm.org/notes/forge_fc3
ViewVC logotype

Annotation of /mitgcm.org/notes/forge_fc3

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Apr 4 01:41:50 2005 UTC (20 years, 3 months ago) by edhill
Branch: MAIN
 o initial check-in

1 edhill 1.1 #! /usr/bin/env bash
2    
3     # Ed Hill
4     # Sat Apr 2 16:02:21 EST 2005
5    
6     echo "These are notes meant to be read."
7     echo "They are not a complete script."
8     exit 1
9     # The following notes explain how the forge setup was moved from the
10     # existing FC2 system to the new FC3 system.
11    
12    
13     # ========= Fedora Extras =========
14     #
15     cd /etc/yum.repos.d/
16     cat > extras.repo <<EOF
17     [extras]
18     name=Fedora Extras - $releasever - $basearch
19     baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
20     gpgcheck=1
21     gpgkey=http://download.fedora.redhat.com/pub/fedora/linux/extras/RPM-GPG-KEY-Fedora-Extras
22    
23     EOF
24     rpm --import http://download.fedora.redhat.com/pub/fedora/linux/extras/RPM-GPG-KEY-Fedora-Extras
25     yum install cvs cvsweb which php gcc-g77 netcdf\*
26    
27    
28     # ========= cvs =========
29     #
30     # pull over pserver config from old-forge and put it in
31     # /etc/xinetd.d/cvspserver
32    
33    
34     # ========= sendmail =========
35     #
36     yum install sendmail-cf
37     cat >>/etc/mail/local-host-names <<EOF
38     # local-host-names - include all aliases for your machine here.
39     dev.mitgcm.org
40     mitgcm.org
41     cpt-emilie.org
42     cpt-gce.org
43     acesgrid.org
44    
45     EOF
46     # EDIT: /etc/mail/sendmail.mc
47     # see: diff -u /etc/mail/sendmail.mc_ORIG /etc/mail/sendmail.mc
48     make -C /etc/mail
49     /etc/init.d/sendmail restart
50    
51    
52     # ========= mailman =========
53     #
54     # set "fqdn = 'mitgcm.org'" in /usr/lib/mailman/Mailman/mm_cfg.py
55     # though it is probably not 100% necessary
56     # copy over the relevant mailman aliases from old-forge and add
57     # them to /etc/aliases then restart sendmail
58     # copy over the old lists from old-forge:
59     # /var/mailman/lists/* ==> /var/lib/mailman/lists/*
60     # /var/mailman/archives/* ==> /var/lib/mailman/archives/*
61     # then fix the old, annoying mailman URLs to get rid of
62     # "dev.mitgcm.org" references:
63     cd /usr/lib/mailman/bin/
64     for i in mitgcm-support mitgcm-devel mitgcm-cvs 12003 ; do
65     ./withlist -l -r fix_url $i -u mitgcm.org -v
66     done
67     # check setup
68     ./check_perms
69     # start it
70     /etc/init.d/mailman start
71    
72    
73     # ========= apache =========
74     #
75     # permanently disable the overly restrictive SELinux web server policy
76     # but note that we could (maybe?) revisit this at a later date :
77     # http://fedora.redhat.com/docs/selinux-apache-fc3/
78     setsebool -P httpd_disable_trans=1
79     #
80     # bring over apache config file from old-forge and meld it into the
81     # slightly different syntax (VirtualHost-s) needed by the newer
82     # apache in FC3
83     #
84     /etc/init.d/httpd restart
85    
86    
87     # ========= mediawiki & mysql =========
88     #
89     # basic setup & permissions
90     ssh forge
91     yum install php-mysql
92     scp belle:/etc/httpd/ecco_wikki_htpasswd /etc/httpd/
93     #
94     # the mediawiki content is all in mysql databases, and this is
95     # a whole-hog approach to getting the mysql data
96     ssh belle
97     mysqldump -A > /scratch/edhill/mysql_dump_all.sql
98    
99     ssh forge
100     scp belle:/scratch/edhill/mysql_dump_all.sql /scratch/edhill/
101     /etc/init.d/mysqld restart
102     cd /var/lib/mysql/
103     rm -rf mysql test
104     mysql < /scratch/edhill/mysql_dump_all.sql
105     /etc/init.d/mysqld restart
106    
107    

  ViewVC Help
Powered by ViewVC 1.1.22