[Bio] / FigCommon / INSTALL Repository:
ViewVC logotype

Annotation of /FigCommon/INSTALL

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (view) (download)

1 : efrank 1.1 Before Installing the FIG disk, you need to install Fink and use it to
2 :     install readline. Here is what you need to do:
3 :    
4 :     1. Install the Apple Developer Tools. Go to
5 :    
6 :     http://developer.apple.com/tools/download/
7 :    
8 :     and follow the instructions for getting the current
9 :     version. You need this to get the C compiler, etc.
10 :    
11 :     2. Install Fink. This is done by going to
12 :    
13 :     http://fink.sourceforge.net/download/index.php
14 :    
15 :     and following instructions.
16 :    
17 :     3. Install readline as follows: open a terminal window and type the following:
18 :    
19 :     sudo /sw/bin/fink install readline
20 :    
21 :     --------------------------------------------------------------------
22 :     Installing a FIG Disk
23 :    
24 :     1. Create a user called "fig". Allow the user to issue "sudo".
25 :    
26 :     2. Make sure the disk mounts. Set a symbolic link in the home
27 :     directory of user fig pointing to the contents of the disk as
28 :     "FIGdisk". This can be done with something like
29 :    
30 :     cd /Users/fig
31 :     ln -s /Volumes/FIGdisk FIGdisk [ assuming that the disk was named FIGdisk ]
32 :    
33 :     3. Link in the CGI directory and scratch directory using
34 :    
35 :     cd /Library/WebServer/Documents
36 :     ln -s /Users/fig/FIGdisk/FIG/Tmp FIG-Tmp
37 :     ln -s /Users/fig/FIGdisk/FIG/CGI FIG
38 :    
39 :     4. Save the old Apache configuration file and copy in a new one. This
40 :     can be done with something like
41 :    
42 :     sudo cp /private/etc/httpd/httpd.conf /private/etc/httpd/httpd.conf.saved
43 :     sudo cp /Users/fig/FIGdisk/install/httpd.conf /private/etc/httpd/httpd.conf
44 :    
45 :     Change the following lines in /System/Library/StartupItems/SystemTuning/SystemTuning:
46 :    
47 :     # Set systemV shared memory limits and enable the service.
48 :     # If you want to set to any other values, set all the 5 values.
49 :     # The last set value will enble the access to the service
50 :     # The defaults are for 4M. shmall is in terms of pages and rest in bytes
51 :    
52 :     sysctl -w kern.sysv.shmmax=41943040
53 :     sysctl -w kern.sysv.shmmin=1
54 :     sysctl -w kern.sysv.shmmni=64
55 :     sysctl -w kern.sysv.shmseg=8
56 :     sysctl -w kern.sysv.shmall=10240
57 :    
58 :     That is, increase the memory allocation for shared memory by about a factor of 10.
59 :    
60 :     5. Now edit the file /Users/fig/FIGdisk/data/postgresql.conf which contains the Postgres
61 :     configuration parameters. We suggest that you change the number of shared buffers
62 :     as follows:
63 :    
64 :     shared_buffers = 2000 # min max_connections*2 or 16, 8KB each
65 :    
66 :     The value is set to 64 in the unedited distribution, but if you have over 256 megs
67 :     of main memory, it should be bumped up. If you bump it too high, postgres will not start.
68 :     If you have altered the shmmax as recommended above, it should support 2000.
69 :    
70 :     6. Now you will need to reboot to install the parameters.
71 :    
72 :     7. Now run
73 :    
74 :     sudo chown -R fig /Users/fig/FIGdisk/*
75 :     chmod -R 777 /Users/fig/FIGdisk/logs
76 :     chmod -R 777 /Users/fig/FIGdisk/FIG
77 :    
78 :     8. We need to add a couple of environment variables to your login scripts
79 :    
80 :     cat /Users/fig/FIGdisk/install/bashrc >> ~/.bashrc
81 :     cat /Users/fig/FIGdisk/install/tcshrc >> ~/.tcshrc
82 :    
83 :     =======================< Normal Login procedure >==========================
84 :    
85 :     9. Start a terminal. Change user to fig using
86 :    
87 :     su - fig
88 :     password: <your password>
89 :    
90 :     if you want to you can change shells to bash.
91 :     ~/FIGdisk/start-servers
92 :    
93 :     This should bring postgres up. You should be able to verify that
94 :     it is up using
95 :    
96 :     ps augxwww | grep postmaster
97 :    
98 :     If it shows anything other than the grep, postmaster should be up.
99 :    
100 :     10.The first time that you log in, you should run the following (which will
101 :     take several hours):
102 :    
103 :     cd /Users/fig/FIGdisk/FIG/bin
104 :     fig (produces a ?? prompt)
105 :     ?? load_all (loads all databases and rebuilds indexes for
106 :     glimpse)
107 :     ?? x (exits the "fig" utility)
108 :    
109 :    
110 :     =========
111 :    
112 :     Whenever you need to disconnect the disk, use
113 :    
114 :     ~/FIGdisk/stop-servers to bring down postgres
115 :     cd to get off disk
116 :    
117 :     drag the disk to the trash can.
118 :    
119 :     The URL for the SEED is
120 :    
121 :     http://localhost/FIG/index.cgi

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3