Installation of CentOS 6.x to iarc (IARC H2RG Development Computer)

Goal: Install centos 6.x, intergrated with the irtf network, allow
      iarc develop code to be compiled and execute (ic, xui, dv, ldog).

Date: 2012/09

Here are notes on the CentOS 6.x installation for iarc

1. General Info

   In 2012/09, iarc was upgraded with a new PC:
   MB/CPU/RAM: Gigabyte GA-Z77X-UD5H, I7-3770, 16GB RAM, on-board video.
   System purchased by denault on 2012/08 from mwave.com.

   Boot in rescue mode, and setup hard disk partition using fdisk /dev/hda:
   (or do installation boot do alt+cntl+f2 for shell after GUI starts).

   Note to delect GUID partition table:
      parted /dev/sdx
      mklabel msdos
      quit

   Drives are setup as:

      /dev/sda1 - swap          RAM     swap
      /dev/sda2 - /             40 GB   centos 6.x root
      /dev/sda3 - /r2           40 GB   unused ->
      /dev/sda4 - /aux          rest    free space

      /dev/sdb1   /aux1         1.8 TB  iarc data
      /dev/sdc1   /aux1.mirror  1.8 TB  iarc data (daily mirror)

2. DVD Install and update

   - reboot and install 6.x on via DVD on sda1
     installed bootloader.
     software development workstation installation.


   - 1st reboot
      enabled nis.

     install did not configure network. so had to manually setup IP number
     Turn off selinux:
        vi /etc/selinux/config
        SELINUX=disabled.
     Turn off filewall:
        sudo system-config-firewall-tui
     reboot

     yum update
     reboot

3. General IRTF setup

   /etc/hosts        - add nis servers
   /etc/yp.conf      - configure and enable NIS: system-config-authentication, AND check yp.conf
   /etc/resolv.conf  - add all DNS servers.
   /etc/ntp.conf     - use IRTF NTP servers, and enable ntpd services: system-config-services
                       chkconfig ntpd on

   /etc/auto.master - use yp table
   make links for automounts:
      cd /
      ln -s /netdisks/benchmark
      ln -s /netdisks/hilo_shared
      ln -s /netdisks/irtf.backup
      ln -s /netdisks/scrs1
      ln -s /netdisks/shared
      ln -s /netdisks/starcatalogs2
      ln -s /netdisks/htdocs
   /etc/fstab           - use '/dev/sda' type names.
   /boot/grub/menu.lst  - use 'dev/sda' name; disable 'hiddenmenu'; remove 'rhgb quiet'

   make droot, mroot

   Now you should have the IRTF users account and access general IRTF shared disks.

4. more centos installation and setup

   yum groupinstall 'Development Tools' 'KDE Desktop'  \
      'Office Suite and Productivity'  'PHP Support'

   yum install gnuplot gsl gsl-devel vnc vnc-server ImageMagick \
       tk expect qt-devel rdist control-center-extra dump telnet mysql \
        MySQL-python

   Chrome

   http://www.google.com/chrome?platform=linux&hl=en > download google chrome > 32 bit .rpm (For
   Fedora/openSUSE)
   rpm -ivh google-chrome-stable_current_i386.rpm

   Adobe Reader
   # rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
   # rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
   # yum install nspluginwrapper.i686 AdobeReader_enu

   Add to /etc/rc.local
      #
      # if you screen blanck after 10 min or so, this stops it
      #
      /usr/bin/setterm -blank 0

      #
      # modify message queue defaults for spex, moris, ...
      #
      echo "40"   > /proc/sys/fs/mqueue/msg_max

5. Use RPM forge:

   ref: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

   Get the rpmforge-release package from one of these sites:
      wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

   Install DAG's GPG key:
   (error message 'key 1 import failed' means you have the key).
      rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

   verify the package:
      rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm

   Install the package:
      rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm

6. Others Stuff:

   Install IDL by following ind_install.html at http://irtfweb.ifa.hawaii.edu/irtf/computing/docs/

   Sync /aux, aux1, and setup aux1.mirror
      iarc# rsync -az -v -e ssh --delete /aux/ 128.171.110.148:/aux
      iarc# rsync -az -v -e ssh --delete /aux1/ 128.171.110.148:/aux1

      iarc# rsync -az -v -e ssh --delete /etc/irtf/ 128.171.110.148:/etc/irtf
      (setup cron table on new computer)
      

      Moved old /aux1.mirror disk from (old) to new pc. It was ext3, so
		I reformatted, and rsync it:
		    mkfs.ext4 -v -m 1 /dev/sdc1     //  -m 1 changes root reserve from 5% to 1%
			 rsync -az -v /aux1/  /aux1.mirror

   export /aux1 so /iarcdata is available to all:
	   chkconfig nfs on
		service nfs start
		add to /etc/exports:
		   /aux1           @irroot(rw,no_root_squash,async) @irworld(rw,async)  @universe(ro) #aux1
      Miranda setup yp table so /netdisks/iarcdata/ is available to all computers.