[Bio] / FigCommon / INSTALL Repository:
ViewVC logotype

View of /FigCommon/INSTALL

Parent Directory Parent Directory | Revision Log Revision Log

Revision - (download) (annotate) (vendor branch)
Mon Dec 1 16:52:59 2003 UTC (16 years, 7 months ago) by efrank
Branch: initial, MAIN
CVS Tags: mgrast_dev_08112011, V00-00-01, rast_rel_2009_05_18, mgrast_dev_08022011, rast_rel_2014_0912, rast_rel_2008_06_18, rast_rel_2008_06_16, mgrast_dev_05262011, merge-trunktag-bobdev_news-2, rast_rel_2008_12_18, mgrast_dev_04082011, rast_rel_2008_07_21, rast_rel_2010_0928, rast_2008_0924, mgrast_version_3_2, mgrast_dev_12152011, Root-bobdev_news, rast_rel_2008_04_23, merge-bobdev_news-1, help, mgrast_dev_06072011, rast_rel_2008_09_30, rast_rel_2009_0925, rast_rel_2010_0526, rast_rel_2014_0729, merge-trunktag-bobdev_news-1, mgrast_dev_02212011, rast_rel_2010_1206, caBIG-05Apr06-00, mgrast_release_3_0, mgrast_dev_03252011, rast_rel_2010_0118, mgrast_rel_2008_0924, mgrast_rel_2008_1110_v2, rast_rel_2009_02_05, rast_rel_2011_0119, merge-bodev_news-3, lwc, mgrast_rel_2008_0625, delong-01, mgrast_release_3_0_4, delong-02, mgrast_release_3_0_2, mgrast_release_3_0_3, mgrast_release_3_0_1, mgrast_dev_03312011, caBIG-00-00-00, mgrast_release_3_1_2, mgrast_release_3_1_1, mgrast_release_3_1_0, merge-bobdev_news-2, mgrast_dev_04132011, rast_rel_2008_10_09, mgrast_dev_04012011, rast_release_2008_09_29, mgrast_rel_2008_0806, mgrast_rel_2008_0923, mgrast_rel_2008_0919, init, rast_rel_2009_07_09, rast_rel_2010_0827, mgrast_rel_2008_1110, myrast_33, rast_rel_2011_0928, rast_rel_2008_09_29, mgrast_rel_2008_0917, rast_rel_2008_10_29, mgrast_dev_04052011, mgrast_dev_02222011, caBIG-13Feb06-00, rast_rel_2009_03_26, mgrast_dev_10262011, V00-00-00, rast_rel_2008_11_24, rast_rel_2008_08_07, merge-trunktag-bodev_news-3, HEAD
Branch point for: Branch-bobdev_news
Changes since 1.1: +0 -0 lines


Before Installing the FIG disk, you need to install Fink and use it to
install readline.  Here is what you need to do:

	1. Install the Apple Developer Tools.  Go to


	   and follow the instructions for getting the current
	   version.  You need this to get the C compiler, etc.

	2. Install Fink.  This is done by going to


	   and following instructions.

        3. Install readline as follows: open a terminal window and type the following:

		sudo  /sw/bin/fink install readline

Installing a FIG Disk

1. Create a user called "fig".  Allow the user to issue "sudo".

2. Make sure the disk mounts.  Set a symbolic link in the home
   directory of user fig pointing to the contents of the disk as
   "FIGdisk".   This can be done with something like

   cd /Users/fig
   ln -s /Volumes/FIGdisk FIGdisk  [ assuming that the disk was named FIGdisk ]

3. Link in the CGI directory and scratch directory using

   cd /Library/WebServer/Documents
   ln -s /Users/fig/FIGdisk/FIG/Tmp FIG-Tmp
   ln -s /Users/fig/FIGdisk/FIG/CGI FIG

4. Save the old Apache configuration file and copy in a new one.  This
   can be done with something like

   sudo cp /private/etc/httpd/httpd.conf /private/etc/httpd/httpd.conf.saved
   sudo cp /Users/fig/FIGdisk/install/httpd.conf /private/etc/httpd/httpd.conf

   Change the following lines in /System/Library/StartupItems/SystemTuning/SystemTuning:

    # Set systemV shared memory limits and enable the service.
    # If you want to set to any other values, set all the 5 values.
    # The last set value will enble the access to the service
    # The defaults are for 4M. shmall is in terms of pages and rest in bytes

    sysctl -w kern.sysv.shmmax=41943040
    sysctl -w kern.sysv.shmmin=1
    sysctl -w kern.sysv.shmmni=64
    sysctl -w kern.sysv.shmseg=8
    sysctl -w kern.sysv.shmall=10240

That is, increase the memory allocation for shared memory by about a factor of 10.

5. Now edit the file /Users/fig/FIGdisk/data/postgresql.conf which contains the Postgres
   configuration parameters.  We suggest that you change the number of shared buffers
   as follows:

	shared_buffers = 2000		# min max_connections*2 or 16, 8KB each

   The value is set to 64 in the unedited distribution, but if you have over 256 megs
   of main memory, it should be bumped up.  If you bump it too high, postgres will not start.
   If you have altered the shmmax as recommended above, it should support 2000.

6. Now you will need to reboot to install the parameters.

7. Now run

	sudo chown -R fig /Users/fig/FIGdisk/*
        chmod -R 777 /Users/fig/FIGdisk/logs
        chmod -R 777 /Users/fig/FIGdisk/FIG

8. We need to add a couple of environment variables to your login scripts

        cat /Users/fig/FIGdisk/install/bashrc >> ~/.bashrc
	cat /Users/fig/FIGdisk/install/tcshrc >> ~/.tcshrc

=======================< Normal Login procedure >==========================

9. Start a terminal.  Change user to fig using

   su - fig
   password: <your password>

   if you want to you can change shells to bash.

   This should bring postgres up.  You should be able to verify that
   it is up using

      ps augxwww | grep postmaster

   If it shows anything other than the grep, postmaster should be up.

10.The first time that you log in, you should run the following (which will
   take several hours):

      cd /Users/fig/FIGdisk/FIG/bin
      fig                              (produces a ?? prompt)
   ?? load_all                         (loads all databases and rebuilds indexes for
   ?? x                                (exits the "fig" utility)


Whenever you need to disconnect the disk, use

	~/FIGdisk/stop-servers       to bring down postgres
	cd                           to get off disk

drag the disk to the trash can.

The URL for the SEED is


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3