Installing RHEL AS Version 4 on agam March 17, 2006 Before, I had Red Hat Enterprise Linux AS version 3 installed. The only thing agam is being used for today, as far as I know, is Mike Crom has httpd configured to let the Lisle folks do their month-end accounting charts. Go to http://agam/ipn to see the things one can do. Here was the state of affairs before installing RHEL AS v4. - - - - - - - - - - - - - - - - - - - - - - - - - - ------------------------------------------------------------------------------ Apache Web Server Configuration -service httpd status -> is running -Conf file is at /etc/httpd/conf/httpd.conf ServerRoot = /etc/httpd (the default) DocumentRoot = /var/www/html (the default) log file dir = logs = /etc/httpd/logs -> /var/log/httpd (the default) cgi-bin directory = /var/www/cgi-bin (the default) Differences from original apparently include From Timeout 120 or 300 To Timeout 3600 In the clause around line 294, change from AllowOverride None to AllowOverride All In the clause around line 314, changed from Options Indexes FollowSymLinks to Options Indexes FollowSymLinks Includes ExecCGI (apparently needed for eg, /var/www/html/ipn/OIPND.pl) from AllowOverride None to AllowOverride All (apparently needed for /var/www/html/ipn/.htaccess, which contains just Options Includes) Added (or uncommented) #AddHandler cgi-script .cgi (Needed. There's lots of .cgi scripts in /var/www/cgi-bin) All the ErrorDocument 400-506 lines uncommented-out. - - - - - - - - - - - - - - - - - - - - - - - - - - cgi-bin directory contents ls -l /var/www/cgi-bin drwxr-xr-x 2 root root 4096 Oct 28 14:10 ipn drwxr-xr-x 2 root root 4096 Oct 27 12:42 kathy drwxr-xr-x 2 root root 4096 Oct 27 12:42 nc drwxr-xr-x 2 500 500 4096 Oct 27 12:44 sandy -rw-r--r-- 1 root root 136192 Oct 27 12:42 x cpio -t < /var/www/cgi-bin/x | more shows you that this file is a cpio (ala tar) archive of these directories. Important directory !!! /var/www/html/ipn/IPND.pl:4:require "/usr/local/etc/inst1.pl"; ls -ltr /usr/local/etc -rwxr-xr-x 1 root root 230 Oct 27 12:45 inst1.pl -rwxr-xr-x 1 root root 9 Oct 27 12:45 inst1password -rwxr-xr-x 1 root root 33 Nov 28 08:19 inst1.sh - - - - - - - - - - - - - - - - - - - - - - - - - - Perl additions: [root@agam build]# ls -l /root/.cpan/build drwxr-xr-x 6 root wheel 4096 Oct 27 13:10 Bit-Vector-6.4 drwxr-xr-x 4 root wheel 4096 Oct 27 13:10 Carp-Clan-5.3 drwxr-xr-x 7 root wheel 4096 Oct 27 13:11 Date-Calc-5.4 drwxr-xr-x 6 root root 4096 Oct 27 12:32 DBD-DB2-0.78 drwxr-xr-x 5 501 501 4096 Oct 28 08:18 DBD-mysql-3.0002 drwxr-xr-x 9 544 ipsadmin 4096 Oct 27 12:36 MIME-Lite-3.01 Use "perl -MCPAN -e shell" command to acquire and install the above 6 packages (at least, Date-Calc, the 2 DBD* and MIME-Lite). Handles prerequisites automatically, so Bit-Vector, Carp-Clan, & DBI may have been requisites. Use i to install i /DBD:: to search for a package - - - - - - - - - - - - - - - - - - - - - - - - - Three changes to /etc/mail/sendmail.cf to let one send e-mail - After line 95, add Djdelphion.com - At line 101, change from DS to DSrelay.int.dialog.com - After line 145, add # who I masquerade as (null for no masquerading) (see also $=M) DMdelphion.com - - - - - - - - - - - - - - - - - - - - - - - - - The only cron file was for mcrom, 15 7 * * 1 (cd /var/www/html/kathy; DB2DIR=/opt/IBM/db2/V8.1; \ export DB2DIR; DB2INSTANCE=inst1; export DB2INSTANCE; \ PATH=$PATH:/opt/IBM/db2/V8.1/bin; export PATH; ./kathysp.pl) - - - - - - - - - - - - - - - - - - - - - - - - - What I'll need to do - Tar off - cgi-bin's from /var/www/cgi-bin - html files at /var/www/html - /usr/fleskowitz directory (not shared?) Define fleskowitz in NIS - /usr/mysql-standard-4.1.15-pc-linux-gnu-i686/data - - - - - - - - - - - - - - - - - - - - - - - - - DB2 config: - db2 list node directory | grep 'Node name' Node Name Hostname Service name = Port # ========= ======== ===================== ELKDEVNC elk db2_devnc = 3704 ELKIPNNC elk db2_ipnnc = 3702 ELKSBYNC elk db2_sbync = 3706 RHINO rhino db2_inst1 = 3700 TRANTOR trantor db2_inst1 = 3700 <-- Delete VINU vinu db2_ipnnc = 3702 - db2 list db directory | grep 'Database alias' Database Database Node alias Name Name ======== ========= ======== ELKSBYNC SBYNC ELKSBYNC SBYNC SBYNC ELKSBYNC PDBSRCH1 PATENT RHINO PDBSRCH2 PDBSRCH2 TRANTOR <-- Delete PDBFREE PATENT TRANTOR <-- Delete ELKDEVNC DEVNC ELKDEVNC DEVNC DEVNC ELKDEVNC ELKIPNNC IPNNC ELKIPNNC PDBRHINO PATENT RHINO PDBTRAN PATENT TRANTOR <-- Delete IPNNC IPNNC VINU I think all that's needed is Elk's SBYNC. ------------------------------------------------------------------------------ rpm -qa output? Anything unusual? ------------------------------------------------------------------------------ MySQL database - see /usr/mysql-standard-4.1.15-pc-linux-gnu-i686 Data database is ls -l /usr/mysql-standard-4.1.15-pc-linux-gnu-i686/data so just tar this. IBM's DB2 Client with elk's sbync database defined (although I did see a nclisle) rpm -qa | grep -i db2 ==> shows 17 IBM_db2* packages installed inst1 = instance name ------------------------------------------------------------------------------ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 31869964 6286432 23964584 21% / /dev/sda1 101089 36250 59620 38% /boot none 2308932 0 2308932 0% /dev/shm /dev/sda3 1004052 944148 8900 100% /usr/vice/cache AFS 1306863632813 0 1306863632813 0% /afs I'll be getting rid of AFS, so /usr/vice/cache can go, too. ------------------------------------------------------------------------------ fdisk -l /dev/sda (With added commas and spacing for legibility) Disk /dev/sda: 36.4 GB, 36401479680 bytes 255 heads, 63 sectors/track, 4425 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104,391 83 Linux /dev/sda2 14 4044 32,379,007+ 83 Linux /dev/sda3 4045 4171 1,020,127+ 83 Linux /dev/sda4 4172 4425 2,040,255 f Win95 Ext'd (LBA) /dev/sda5 4172 4425 2,040,223+ 82 Linux swap ------------------------------------------------------------------------------ cat /etc/fstab LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 LABEL=/usr/vice/cache /usr/vice/cache ext3 defaults 1 2 /dev/sda5 swap swap defaults 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 ------------------------------------------------------------------------------ cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=agam.delphion.com cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Broadcom Corporation|NetXtreme BCM5703 Gigabit Ethernet DEVICE=eth0 BOOTPROTO=none BROADCAST=10.222.211.255 HWADDR=00:0D:60:1C:D5:4E IPADDR=10.222.211.11 NETMASK=255.255.255.0 NETWORK=10.222.211.0 ONBOOT=yes TYPE=Ethernet GATEWAY=10.222.211.1 ======================================================================================== To install Red Hat Enterprise Linux AS v4, 1) Boot first RHEL AS Version 4 CD. 2) Selected - Graphical Install by hitting - English as my language - and "U.S. English" keyboard. 3) To partition the drives correctly, a) Go ahead and allow "Disk Druid" to "Automatically partition". I'll modify that later. b) Install Linux on sda only, the 34707 MB drive, not the big 560,047 MB drive. So I had to unselect sdb. c) Yes, "Remove all partitions on sda". I changed Disk Druid's partitioning to Mount Point/ Size Device RAID/Volume Type Format (MB) Start End ========== =========== ======== ====== ====== ===== ====== LVM Volume Groups rootvg 34560 lv0 / ext3 Yes 32544 swaplv swap Yes 1984 Hard Drives /dev/sda /dev/sda1 /boot ext3 Yes 102 1 13 /dev/sda2 rootvg LVM PV Yes 34,606 14 4,442 4) "Edit" the eth0 network adapter to NOT "Configure using DHCP" and specified its "IP Address:" as 10.222.211.11 and its "Netmask:" as 255.255.255.0 and its "Hostname:" to agam.delphion.com and its "Gateway:" to 10.222.211.1 and its "Primary DNS:" to 199.221.80.141 and its "Secondary DNS:" to 199.222.82.28 5) !!! Disabled the firewall ('cause I still don't know how to control it, that's why). 6) Didn't install additional languages. 7) Set "Time Zone Selection" to "America/Los_Angeles". 8) Set the root password. 9) After the first reboot, logged on from another machine, and modified .bashrc -> Uncommenting those # alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i' lines -> Adding my own customization, set -o vi alias c='echo \\n\\n\\n\\n\n ... \\n\\n\\n\\n\\n\\n\\n\\n;clear' if [ "$TERM" = "aixterm" ] then alias rc='echo -e "\033[10;97;101m"' else alias rc='echo -e "\033[10;94;106m"' fi .bash_logout -> Uncommenting that clear line. .vimrc -> My own vi customizations 9) On the main console, - accepted their license agreement, - did not create any non-root userids, - Registered with Red Hat Network (RHN), selecting the "Use one of my existing, active subscriptions" option. 10) Configured NTP, pointing to afs1 (10.222.211.37) - system-config-date Removing the 3 default pool.ntp.org NTP servers, and adding afs1.delphion.com (10.222.211.37). 11) Added the NFS-mounted file systems. - Add sunas1:/dfs /dfs nfs soft,timeo=100 0 0 sunas1:/home /export/home nfs soft,timeo=100 0 0 to /etc/fstab. - mkdir /export /export/home /dfs - mount -a 12) Configured up2date to use the AFS directory I have set up, up2date-config On "Retrieval / Installation" screen, 1) Check "After installation, keep binary packages on disk" 2) Set the "Package storage directory:" from its default of /var/spool/up2date, to /dfs/software/linux/RHEL_v4_i386/up2date Installed latest fixes, which wasn't much. 13) Added eagan.tshmg.com to /etc/resolv.conf file. ------------------------------------------------------------------------------