Reference Server Machines
Table of contents
The following instructions require some site-specific information which is indeicated by green keywords below:
- Host_Name (e.g weyl.phys.uwm.edu)
- Your_IP_Address (e.g 126.96.36.199)
- Your_Network_Mask (e.g 255.255.255.0)
- Your_Default_Gateway (e.g 188.8.131.52)
- Your_Nameserver (e.g 184.108.40.206)
Installing Red Hat 9
- Place the Red Hat installation CD (the first one) in the CD drive, and, if necessary, the Red Hat boot disk in the floppy drive. Power down and reboot.
- Type linux expert and press enter to begin the installation process. You can probably get by with these instructions with the graphical installation, but this document is tailored to the text mode.
- You will be asked if you want to verify the CD. You can likely skip this step. If you doubt the integrity of the CD(s) you are installing from, then it would be best to go ahead and verify. It will take a few minutes per CD.
- Choose OK when presented with the "Welcome to Red Hat Linux" window.
- Choose the English language and a US keyboard.
- You can choose CD install if you have all 3 CD's
- If You are doing a network install (You should be) Select HTTP for the installation media
- Uncheck "dynamic IP configuration"
The ip: Your_IP_Address
The network mask: Your_Network_Mask
The default gateway: Your_Default_Gateway
The nameserver: Your_Nameserver (You will add more later)
- Enter the web site name (e.g hades.phys.uwm.edu)
Enter path to the files (e.g /9)
- Choose the mouse from the list provided. In almost all cases it will be a generic 3-button PS/2 mouse, but another common mouse is a generic PS/2 wheel mouse, with a scroll wheel as its middle button. Choose Emulate 3 Buttons if necessary for your mouse.
- If you are prompted with a choice to upgrade because you had an earlier Red Hat installation on this machine, do not. Choose the "Reinstall System" option.
- Choose a custom system (or workstation is you know what you are doing).
- Select "Autopartition" to automatically partition your drive for you. Choose "Remove all partitions on this system" unless you desire to keep a current partition.
- You will now be in the Disk Druid utility. You should see a table with partition information and mount points. Generally, you shouldn't need to change anything here (assuming you chose to autopartition), but if you wish you may do things such as change the size of the swap partition, add partitions and so on. If you aren't sure what you're doing, don't change anything.
- Choose "OK" to continue on.
- Choose "OK" to use the GRUB boot loader.
- Choose "OK" to use the default options passed to the kernel.
- Do not use a GRUB password and choose "OK".
- Choose "OK" when asked about booting to other operating systems.
- Choose "OK" to install the boot loader in the master boot record (MBR).
- Set up the networking as the following:
- Uncheck the "Use bootp/dhcp" box.
- Keep the "Activate on boot" box checked.
- The ip: Your_IP_Address
- The netmask: Your_Network_Mask
- The gateway: Your_Default_Gateway
- The primary nameserver: Your_Nameserver
- The secondary nameserver: Your_Nameserver
- The tertiary nameserver: Your_Nameserver
- Set the hostname: Host_Name
- When prompted for firewall configuration, choose: No firewall.
- Make sure the English USA language package is checked. Select any other language packages you may find useful and choose "OK" when you are done.
- Choose the default language to be English (USA).
- Set hardware clock to GMT, and timezone (America/Chicago).
- For root password, choose something you'll remember. After installation, make absolutely sure to contact the admins to change it.
- Set up the authentication configuration according to your site.
For example at UWM, we use:
- Do use shadow passwords
- Do enable MD5 passwords
- Do enable NIS, and specify the NIS domain as uwmlsc-nis
- Uncheck the "Request server via broadcast"box, and below it use uwmlsc.phys.uwm.edu
- Do use enable LDAP or Kerberos
- Use the default package groups.
- Choose "OK" to begin the installation. This will take a while, likely around a half hour. You will need to change CDs twice during the install, so make sure you have CD 2 and CD 3 ready.
- Choose not to make a boot disk.
- Xprobe reports the video card installed. Choose "OK" if it is correct, or change it if you know what you are doing.
- Choose "OK" if your monitor is correctly detected, or choose one from the list presented. Don't probe again for monitor resolution. Select the amount of memory that your video card has, and choose No Clockchip.
- Choose a display resolution. 1024×768 is a good screen resolution for 15-inch monitors; larger screens can have up to 1280×1024. Choose the highest colour depth (16 or 24 bit) for your resolution. Choose to use graphical login.
For more information check out this Red Hat 9 instruction for machines at UWM.
Getting Apache httpd and LSCDatagrid
- Login as root and open a terminal window.
- Run redhat-config-packages, select webserver, and update. (ensure httpd is selected)
- Start up httpd by service httpd start and enable httpd for runlevel 5 by typing chkconfig --level 5 httpd on (Make sure that you can view the Apache Welcome page by typing in your ip in a web browser)
Setting up LSCDatagrid (You need both the server and the client)
- Follow directions at LSC page
Setting up dsorun
Get dsorun through cvs
- Login as root, set the global variable and change group to apache.
- export HTMLROOT=/var/www/html
- chgrp apache /var/www/html
- chmod g+w /var/www/html
- cd $HTMLROOT
- Edit password file and su to apache
- vi /etc/passwd and replace shell from /sbin/nologin to /bin/bash.
- su apache
- Grab dsorun using cvs. (use lalwrapper for password)
- cvs -d :pserver:firstname.lastname@example.org:2402/usr/local/cvs/lscsoft login
- cvs -d :pserver:email@example.com:2402/usr/local/cvs/lscsoft co dsorun
- cvs -d :pserver:firstname.lastname@example.org:2402/usr/local/cvs/lscsoft logout
- Put identifier for ldas in file ldasname.
- echo "ldas-uwm" > /etc/ldasname
- Edit cgi script
- cd $HTML/dsorun/cgi-bin
- vi index.cgi
/uwm/ && return qw(ldas.ligo-wa.caltech.edu LHO Hanford);to contain the correct machine name, a three letter identifier, and a longer one-word description.
/uwm/ && return qw(ldas.phys.uwm.edu UWM Milwaukee);Save the file.
- Still as user apache, install ligotools. Follow the instructions on the ligotools web page and choose to install the packages LDASJob and dataflow.
- As root, change ownership and give Apache write permission
- chown --recursive apache.apache $HTMLROOT/dsorun
- chmod --recursive g+rw $HTMLROOT/dsorun
- Open Apache configuration file /etc/httpd/conf/httpd.conf and add the following lines:
<Directory $HTMLROOT/dsorun/cgi-bin> Options +ExecCGI </Directory>Uncomment the line:
AddHandler cgi-script .cgi
- Obtain Perl module Tie::IxHash. As root type:
- perl -MCPAN -e "shell"
- install 'Tie::IxHash'
- Finally, restart the web server by typing
- service httpd restart
- Your should now be able to go to the web page using URL: