Installation of CentOS 6.x i386 bits to iaa

Goal: Install centos 6.5 on PC to run iarc server.
      Includes IDL

Date: 2014/03

1. General Info 

Denault purchase a new computer for the hilo lab to run the iarc_server.
An older arc PC stopped working. Hardware is based on the bigdog/guidedog
PC:

   B75M-D3H motherboard.
   i5 3570K CPU, 8GB RAM, 500GB Disk.
   mwave.com ordered on 3/14/2014 by denault.

   Drives are setup as:

      /dev/sda1 - /             40 GB   centos 6.x i386
      /dev/sda2 - /r2           40 GB   unused
      /dev/sda3 - /r3           40 GB   unused
      /dev/sda4 - /aux          rest    free space

2. DVD Install and update 

   - install 6.5 on via DVD on sda1
        alt+cntl+f2 for shell; alt+cntl+f6 to return to GUI.
     installed bootloader.
     software development workstation installation.
     enabled nis.

   - 1st reboot

     Turn off selinux:
        vi /etc/selinux/config
        SELINUX=disabled.
     Turn off filewall:
        sudo system-config-firewall-tui

     # disable the network manager.
     service NetworkManager stop
     chkconfig NetworkManager off
     system-config-network
     check /etc/sysconfig/networking/devices/ifcfg-eth0 ONBOOT=yes

     /boot/grub/menu.lst  - disable 'hiddenmenu'; remove 'rhgb quiet'

     reboot

     yum update
     reboot

     # enable smartd
     See /htdocs/irtf/computing/docs/howtos/smartd.html

     make droot, mroot

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
      ln -s /netdisks/iarcdata

   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 qt-devel rdist control-center-extra dump telnet mysql \
       MySQL-python dump expect expect-devel expectk hg mutt

   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

   /etc/inittab - set run level to 3 (no X11 server)
      # reboot

   copy irtf version of config files:
      scp -p duke:/etc/ssh/ssh_config /etc/ssh/ssh_config
      scp -p duke:/etc/ssh/sshd_config /etc/ssh/sshd_config
      scp -p duke:/root/root/.ssh/authorized_keys /root/root/.ssh/authorized_keys

5. Optional stuff: 

adobe: from http://www.if-not-true-then-false.com/
  wget http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i486linux_enu.rpm
  yum localinstall AdbeRdr9.5.5-1_i486linux_enu.rpm
  yum install nspluginwrapper.i686 libcanberra-gtk2.i686 gtk2-engines.i686 PackageKit-gtk-module.i686

IDL:
   install idl per /htdocs/irtf/computing/centos6/howtos/idl_install.php

Java:
   did not do...using centos 6 java

Printer:
   system-config-printer

6. Setup IARC related stuff.  

   Notes for iarc software installation is in /home/s2/public_html/software/iarc.
   Item done:

   1. Install EPEL Repository.
      Install  Wine (vie EPEL)

   2. Installed AstroPCI device driver.
      (And the PCI card from NSFCAM PC).

   3. Install parint device driver.

7. Setup 192.168 address to eth0:1

create /etc/sysconfig/network-scripts/ifcfg-eth0:1 with:

   DEVICE=eth0
   BOOTPROTO=none
   TYPE=Ethernet
   ONBOOT=yes
   IPADDR=192.168.1.5
   PREFIX=16
   NETMASK=255.255.0.0
   HWADDR=74:d4:35:5e:78:c0

# /etc/init.d/network restart
# ip addr show