Installation of CentOS 6.5 i386 bits to smokey computers Goal: Install centos 6.5 on smokey computer for upgrade Date: 2014/10 Note: On 2014/10/28 did the installation on smokey-spare, the yum update installed centOS 6.6 (just released). Everything works the same. 1. General Info Drives are setup as: /dev/sda1 - /r1 20 GB centos 6.5 i386 /dev/sda2 - /r2 20 GB unused /dev/sda3 - /r3 20 GB unused /dev/sda4 - /aux rest free space 2. DVD Install and update - install 6.5 on via DVD to sda1 alt+cntl+f2 for shell; alt+cntl+f6 to return to GUI 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 # enable smartd See /htdocs/irtf/computing/centos6/howtos/smartd.php 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 for nsfv2 client support: vi /etc/idmapd.conf Add "Domain=ifa.hawaii.edu" chkconfig rpcidmapd on service rpcidmapd restart 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' 'PHP Support' Did not do: 'Office Suite and Productivity' 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: no installation for chrome, adobe, or IDL. 6. Setup Smokey stuff. /usr/local/bin stuff scp -p duke:/usr/local/bin/t3io /usr/local/bin scp -pr duke:/usr/local/icons /usr/local/icons stuff to run set_ownership logout script Set up sudo so smokeys XUI can chmod, and chown for /scrs1. using its xui/set_ownership_and_readonly script. # visudo added: #- allow smokey to run set_ownership_and_readonly as root smokey ALL=NOPASSWD : /bin/chmod, /bin/chown # visudo -c Installing Osprey video card and running xawtv Install xawtv and Osprey-100 video card xawtv is part of the EPEL repository. Install EPEL Ref: http://www.howtoforge.com/perfect-server-centos-6.5-apache2-mysql-php-pureftpd-postfix-dovecot-and-ispconfig3-p3 Download and Install: rpm --import https://fedoraproject.org/static/0608B895.txt wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm install yum priorites: yum -y install yum-priorities Edit /etc/yum.repos.d/epel.repo... vi /etc/yum.repos.d/epel.repo ... and add the line priority=10 to the [epel] section: [epel] name=Extra Packages for Enterprise Linux 6 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch failovermethod=priority enabled=1 priority=10 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 [...] yum install xawtv Install osprey-100 PCI card in PC. Attach camera (smokey's input is Composition0 - this is fathest away fromthe S-Video input). run xawtv, set to NTSC. /etc/rc.local stuff # # create a smokey vncserver # su -c "cd; vncserver -depth 24 -alwaysshared -geometry 1300x1000 -rfbport 16000" smokey # # create smokey motor shared memory # su -c "/home/smokey/current/mt/mt_sm_init " smokey # # gives smokey access to video driver # chmod a+rw /dev/video0