Installation and Setup of Ubuntu Linux Servers

To run the Linux server systems for the climate center, the following software is needed.

Installing Ubuntu Linux

Installing Ubuntu Linux on the drought.nmsu.edu server is fairly straightforward. This is a simplified instruction set, since there are many advanced options that can be used. A computer technician familiar with installing linux should be employed.

  1. Using the Ubuntu disc image (burnt onto a disc), insert the disc into the drive on the server and reboot.
  2. When asked, enter the username and password.
  3. Drought.nmsu.edu has two drives. Install the OS on the main drive, and install the /var directory on the second drive. The /var directory contains the MySQL database and the webroot, so the need for more space is greater in the /var directory (second drive is larger).
  4. When the options are presented, install the Apache2 web server, the MySQL database server, and the Open SSH server. The install will prompt you to enter a root MySQL password. This is the password used to gain access to the MySQL database server. Enter the password and continue.
  5. Reboot the server when the installation is finished.

Installing more Applications

More applications are required to run the drought.nmsu.edu server. The Lighttp web server is used to server static media files (i.e. station pictures). The mod_python module is responsible for interfacing Python with the Apache 2 web server.

  1. Install the Lighttp web server. Do this at the command line by issuing the following command: sudo apt-get install lighttpd. The command line will prompt you for your password. Enter the password from Step 2 above, and press enter. If the command line presents you with a yes or no quiestion, enter Y and continue.

  2. Install Python. Do this at the command line by issuing the following command: sudo apt-get install python. As with the previous step, the command line may prompt you with a password request and a confirmation question.

  3. Install mod_python for Apache2. Do this at the command line by issuing the following command: sudo apt-get install libapache2-mod-python. As with the previous steps, the command line may prompt for a password and a confirmation.

Configuring the Lighttp Web Server

Install CENTOS 5.2 Enterprise Server

CENTOS 5.2 has been installed on nmcc server. Below are basic procedures to install CENTOS on a new system:

  1. Download the DVD iso at CENTOS ISO files

  2. Burn the iso file to the DVD.
  3. Boot the computer with the install DVD
  4. Following the instruction on the screen to install CENTOS to the first drive (sda)
  5. The second hard drive is mounted to the /var directory, which suppose to store the website and the database.
  6. To be able to use the web service and file sharing both httpd and samba need to be enabled.
  7. By default the graphical interface is GNOME.

Tips and Tricks with CENTOS

Windows

Nmcc_Wiki: Installation/LinuxServers (last edited 2009-03-20 00:59:19 by tsammis)