Installation of CentOS 6.x to iaa (IARC Aladdin Development Computer)

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

Date: 2012/05

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

1. General Info

   MB/CPU/RAM: ASUS P8Z77-M, i3-3570K CPU, 8GB RAM, Video: on board.
   System purchased by denault on 2012/08 from mwave.com.


   Boot in rescue mode, and setup hard disk partition using fdisk /dev/hda:

      /dev/hds1 - /      40 GB   centos 6.x root
      /dev/hds2 - /r2    40 GB   unused ->
      /dev/hds3 - /aux   40 GB   unused.
      /dev/hds4 - /aux1  rest    unused (not mounted)

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, denault, to, tcs entries in passwd.
   limit nis in nsswitch.conf .

   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

   Stop vi auto comments
   vi /usr/share/vim/vim72/ftplugin/c.vim
   change setlocal fo-=t fo+=croql
       to setlocal fo-=t fo+=coql   (remove 'r' auto comments insertion).

   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. Other iaa setup:

   copy irtf verstion of config files:
      scp -p basking:/etc/ssh/ssh_config /etc/ssh/ssh_config
      scp -p basking:/etc/ssh/sshd_config /etc/ssh/sshd_config
      scp -p basking:/etc/nsswitch.conf /etc/nsswitch.conf
      scp -p duke:/root/root/.ssh/authorized_keys /root/root/.ssh/authorized_keys

   Install t3io:
      su - tcs3
      cd /home/tcs3/src/tcs3/main/dev/clients/t3io
      make clean; make
      su root
      make install

   Install morisio
      su - moris
      cd /home/moris/current/ic/morisio
      make clean; make
      su root

   Installed IDL per http://irtfweb.ifa.hawaii.edu/irtf/computing/docs/

-------------------------------------------------------------------------------------
Now you can login as 's2' and running the spex IC, XUI, DV, Ldog in simulation mode.
-------------------------------------------------------------------------------------

Did not NEED THIS:
   Create a /etc/sysconfig/rpcbind file for argument to the rpc server with:
      RPCBIND_ARGS="-i"
   so rpc server can start: