Installation of CentOS 6 on t9h

Goal: Install centos 6.10 on t9h computer.
The original simtac PC died in 2021/06. Only refurbished part avaiilable...so
found/purchased a PC with appropriate slot as a replacement. 
Will upgrade simtac PC/Software to this new computer.
Date: 2018/10

1. HARDWARE  
purchased by denault from rampcsystes.com on 2021/06:
   RamPCSystem PC-5PCI1150
   H81 Chipset LGA 1150, i3-4360, 8GB RAM, 500GB HD. 5 PCI slots
   (very little details on hardware).

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.
      alt+cntl+f2 for shell; alt+cntl+f6 to return to GUI
   create custom layout: 
		sda1   50G  /              # ext4, root partition
   Software selection: Development Workstation
   Created local user 'irtf'.


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

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

  # because CENTOS 6 was EOL, need to fix repo name for updates, installs.
  # used www.getpagespeed.com CentOS vault repository:
  curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo
  
  yum update
  reboot
  #NOTE: Had some trouble getting the network setup (and stable) so went ahead with
  # yum update, and will redo network configuration later.

  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 (/home will be a automount). assign project passwd.

  # using System->Preferenc->Network Connection, I deleted some auto ethenet devices, 
    and review the static IP. ... networking is ok now.


IRTF Setup   - allow tcs3, denault on auto only (similar to t1hilo setup)

/etc/hosts         - add key IRTF server  
/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. 

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: tcs(remote), to (local - not needed for t9h).
   - 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 using fdisk:
   fdisk /dev/sda
   sda2  as /r2     50G                       
   sda3  as /aux    (remainder ~364G)
   Format: mkfs.ext4 -v -m 3  /dev/sdaX  

   add to /etc/fstab - but commented out, don't need them.

Now you have the computer on NIS, with tcs3 login.

SimTac Setup 

Information on the simtac application is here: /home/tcs3/src/tcs3/simtac2