Installation of CentOS 6 on tx1, tx2

Goal: Install centos 6.10 on tcs computer.
      First tired centos 7, which worked, but had a couple of problems:
         - UDB dropped packed from op22 was worse that CentOS6
         - semaphone issue on CentOS7 (found work-around but don't see this issue on CentOS6).
      Will replace centos7 with centos 6 (x64) to avoided these issue. 

Date: 2018/10

1. HARDWARE  

purchased by denault from newegg, amazon, mwave on 2018/01:
   GA-B250M-D3H LGA-1151, I5-7400 CPU,
   16GB RAM (DDR4 2133), 500GB HD(WD Black WD50003AZEX). DVD
   Seasonic FOCUS Pluse 550FX P/S
   case: Chenbro RM41300-F1 (mwave)
Note: Z270-HD3 unable to boot in graphic mode, but OK in with non-UEFI boot.
      installed OS on /sda1/ (root)
      Same #2 GA-B250M system - booted DVD using non-efi on DVD (so no /boot/efi parition).


2. Install and update 

   if you need to wipe the drive: 
      dd if=/dev/zero of=/dev/sda bs=512 count=20

   Installation media is centos 6.10 x86 on usb or DVD.
      alt+cntl+f2 for shell; alt+cntl+f6 to return to GUI
   create custom layout, desired partitions are (UEIF):
      sda1   200M /boot/efi      # vfat
		sda2   50G  /              # ext4, root partition
   Or MS-DOS partition:
		sda1   50G  /              # ext4, root partition
   Software selection: Development Workstation
   Created local user 'irtf'.

   Need to fix boot menu in bios to make centos6 boot (DVD, Disk).

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
  vi /etc/sysconfig/network-scripts/ifcfg-eth0  ## make sure ONBOOT=yes
  add to 192.168.x.x by creating /etc/sysconfig/network-scripts/ifcfg-eth0:1

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

  reboot

  yum update
  reboot

  yum groupinstall 'Development Tools' 'KDE Desktop' 'Office Suite and Productivity'

  yum install gnuplot gsl gsl-devel vnc vnc-server ImageMagick \
      tk expect qt-devel rdist control-center-extra dump telnet \
      mysql MySQL-python sox hg mutt
   
  make droot, mroot
  fix root password.
   move /home/irtf to /home2/irtf. Assign project password.

IRTF Setup 


/etc/hosts         - add nis servers, key tcs hostnames
/etc/resolv.conf   - add all DNS servers.
/etc/ntp.conf      - use IRTF NTP servers, and enable ntpd services: system-config-services
/etc/yp.conf       - configure and enable NIS: system-config-authentication, AND check yp.conf
/etc/nsswitch.conf - Limited nis usage
/etc/group         - add staff 500, project 501. Add to,tcs3 to groups: audio, pulse, pulse-access

NIS client setup:
   chkconfig rpcbind on 
   chkconfig ypbind on 
   /etc/init.d/ypbind start

nsf client setup:
   vi /etc/idmapd.conf
     Add "Domain=ifa.hawaii.edu"
   chkconfig rpcbind on
   chkconfig rpcidmapd on
   chkconfig nfslock on
   chkconfig netfs on

/etc/auto.master, automap, auto.home  
   - custom tcs setup to allow only: to(local), tcs(remote)
   - make /home2/nologin
   - only allow file based autofs 
make links for automounts:
   cd /
   ln -s /netdisks/htdocs
   ln -s /netdisks/irtf.backup

rc.local - add line for screen blank:
   /usr/bin/setterm -blank 0
   
create remainding partitions:
   sda3  as /r3     50G                       
   sda4  as /aux    (remainder ~364G)
   Format: mkfs.ext4 -v -m 3  /dev/sdaX  
   UUID:   blkid /dev/sda2

TCS Setup 

Create TO account on /home2/to:
   setup uid/group to 6028:501(project)
   review desktop's window preferences; power management setting.
   turn off screen saver.
   make link: 
      ln -s /home/tcs3/data /home/to/data
      cd ~; ln -s dev current

After installing TCS3 to 'to' account. Have the PMAC device driver loaded by rc.local
copy /aux/catalogs4 to new computer: rsync -azv /aux/catalogs4/ tx1:/aux/catalogs4