Installation of CentOS 6.x i386 bits to iaa Goal: Install centos 6.4 on PC to run iarc server. Includes IDL Date: 2013/04 1. General Info This computer already has CentOS x64 on sda1, install 32bit version on sda2 Drives are setup as: /dev/sda1 - /r1 40 GB centos 6.x x64 /dev/sda2 - /r2 40 GB centos 6.x i386 /dev/sda3 - /r3 40 GB unused -> /dev/sda4 - /aux rest free space 2. DVD Install and update - install 6.x on via DVD on sda2 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/docs/howto/smartd.html 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 hg 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: chrome: http://www.google.com/chrome?platform=linux&hl=en download the 32-bit Fedora rpm file. rpm -ivh google-chrome-stable_current_i386.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. scp -p duke:/usr/local/bin/t3io /usr/local/bin scp -p duke:/usr/local/bin/morisio /usr/local/bin bigdogio - from bigdogic/icio guidedogio - from guidedogic/icio 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 7. Setup for iarc. Notes for iarc software installation is in /home/s2/public_html/software/iarc. I plan to merge these notes into the iarc distribution. 8. machine or account specifice Hostname User Application bigdogh bd Spectrograph IC, XUI, DV guidedogh gd Imager IC, XUI, DV ldogh ldog Spex Instrument Controller, or ldog_ic sofa, pal - installs on ~/include, ~/lib for bigdog, guidedog user accounts. vncserver - ldogh create a vncserver at boot time. Run ldog_ic here. setup 192.168.x.x IP on eth0: create /etc/sysconfig/network-scripts/ifcfg-eth0:1 with: DEVICE=eth0 BOOTPROTO=none TYPE=Ethernet ONBOOT=yes IPADDR=192.168.x.x PREFIX=16 NETMASK=255.255.0.0 HWADDR=xx:xx:xx:xx:xx:xx # /etc/init.d/network restart (or reboot) # ip addr show