Installation of CentOS 6.x 64 bits to Bigdog/GuideDog/Littledog
Goal: Install centos 6.x, intergrated with the irtf network, allow
s2 develop code to be compiled and execute (ic, xui, dv, ldog).
Basic OS installation is the same on all 3 spex computers.
Date: 2013/02
1. General Info
In 2012/2013, the Bigdog and GuideDog PCs was purchased:
Bigdog,Guidedog are: Gigabyte B75M-D3H, I5-2400, 8GB RAM, on-board video.
Littledog is: Gigabyte B75M-D3H, I3-3210, 8GB RAM, on-board video.
Previously we setup these computer using 32bit linux, but will now switch
over to 64 bit linux.
Setup BIOS:
sata to ahci mode; boot order dvd, disk; Power on for AC;
cpu fan and temperature warnings;
Boot in rescue mode, and setup hard disk partition using fdisk /dev/hda:
(or do installation boot do alt+cntl+f2 for shell after GUI starts, cntl-alt-F6 to return).
Drives are setup as:
/dev/sda1 - / 40 GB centos 6.x root
/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.x on via DVD on sda1
installed bootloader.
software development workstation installation.
enabled nis.
kdump 256
- 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
reboot
yum update
reboot
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
/boot/grub/menu.lst - disable 'hiddenmenu'; remove 'rhgb quiet', add nomodeset
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
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:
For images computer, did not install:
chrome, adobe, IDL, Java
But did for iaa, instructions here:
chrome:
http://www.google.com/chrome?platform=linux&hl=en
download the 64-bit Fedora rpm file.
rpm -ivh google-chrome-stable_current_x86_64.rpm
adobe:
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
IDL:
install idl per /htdocs/irtf/computing/docs/howtos/idl_install.html
Java:
did not do.
6. Setup for spex/irtf related stuff.
For bigdog/guidedog, not littledog.
Installed 32bit libraries, this allow you to run 32bit binaries.
(was need for t3io, but t3io is fixed now).
# yum install glibc.i686 glibc-devel.i686
Install t3io:
su - tcs3
cd /home/tcs3/src/tcs3/main/dev/clients/t3io
make clean; make
su root
make install
test: /usr/local/bin/t3io info
Install morisio - 64 bit morisio can be used.
su - moris
cd /home/moris/current/ic/morisio/standalone
make clean; make
su root
make install
test by changing cycle: /usr/local/bin/morisio cycles 2
Set up sudo so bigdog/guidedog's XUI can chmod, and chown for /scrs1.
using its xui/set_ownership_and_readonly script. Only needed for bigdog, guidedog,
not littledog.
# visudo
added:
#- allow bigdog/guidedog to run set_ownership_and_readonly as root
bigdog ALL=NOPASSWD : /bin/chmod, /bin/chown
guidedog ALL=NOPASSWD : /bin/chmod, /bin/chown
s2 ALL=NOPASSWD : /bin/chmod, /bin/chown
# visudo -c