Installation of CentOS 6 on tx2
Goal: Install centos 6.10 on development/spare 'tx2' computer.
Had a TCS test computer running centos8, re-installed CentOS6 x86 on it
Will use centOS6 on TCS for foreseeable future.
Date: 2022/08
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)
Has pmac inside.
2. Install and update
if you need to wipe the drive:
dd if=/dev/zero of=/dev/sda bs=512 count=20
Using CentOS 6.10 on usb.
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
sda3 50G /r3 # ext4, root partition
sda3 rest /aux # ext4, root partition, extra storage
centos6 installation usb could not boot in UEIF mode, so used f12(boot) menu to
boot from non-ueif mode. partition as MS-DOS paritions:
sda1 50G / # ext4, root partition
Software selection: Development Workstation
Created local user 'irtf'.
on reboot check bio boot menu: 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
#----------------------------------------------------------------------------
# CentOS is EOL, so 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
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
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, /home2/to
- 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 /dev/sda
sda2 as /r2 50G
sda3 as /aux (remainder ~364G)
Format: mkfs.ext4 -v -m 3 /dev/sdaX
Edit /etc/fstab to mount the new partitions.
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.
vi /etc/rc.local: to add commands:
#
# change the limits for the mqueues using the /proc file system.
# msg_max default is 10, need 40.
# msgsize_max default is 8192, need 1024 is ok.
#
echo "40" > /proc/sys/fs/mqueue/msg_max
echo "1024" > /proc/sys/fs/mqueue/msgsize_max
#
# load the tcs device drivers: pmac.ko
#
mknod --mode=666 /dev/pmac c 66 0
insmod /home/to/current/drivers/pmac/pmac.ko
#
# Create a TO VNC
#
su -c "cd; vncserver -depth 24 -alwaysshared -geometry 3750x1060 -rfbport 16000" to
copy /aux/catalogs4 to new computer: rsync -azv /aux/catalogs4/ tx2:/aux/catalogs4
Test TCS3 dev account:
vncviewer tx2:16000 # vnc for to account. Check settings.
compile, run TCS with pmac.