Software Installation for Online Data Acquisition

Software Installation

Basically installation consists of unpacking the three downloaded files (lamps.tgz, help.tgz and driver.tgz) in the relevant directories using the tar command and, for lamps.tgz running the make command to create the lamps executable. The driver installation is explained in the next section.

Make a login for the primary copy of the software

Create a login name "lamps" with a password of your choice. As root type:
adduser lamps
passwd lamps

Make directories

Login as lamps. Make three directories:
mkdir lamps
mkdir help
mkdir driver

Install the primary copy of lamps

Go the directory lamps (cd lamps) and copy the file lamps.tgz there (i.e. in /home/lamps/lamps). Now unpack and compile:
tar zxvf lamps.tgz
make
The program should compile without any errors. Include ./ in the path (edit .bash_profile, logout and login again) e.g: PATH=$PATH:$HOME/bin:./ Now if you type lamps the program will run.

Open permissions

Open permissions so that other users will be able to use lamps without loading another copy of it:
su root
chmod a+x /home/lamps
exit

Load the help files

The help files are to be loaded and unpacked in the directory /home/lamps/help. Go to this directory and copy the file help.tgz here. Then unpack it:
tar zxvf help.tgz
Online help is available in lamps and it will work correctly only if the help files are unpacked in this directory. Bear in mind that LAMPS is continuously changing, so sometimes the help files are not upto date.

Driver Installation

See next section.

Additional logins

Create additional logins for each user or at least a guest login. In these logins provide the path to the software so that any user can run the program without having to make a copy of it. For this, edit the file .bash_profile of the user adding :/home/lamps/lamps to the PATH. For example:
PATH=$PATH:$HOME/bin:/home/lamps/lamps
Now any user running xwindows can start the program by typing lamps from a terminal window.

Installing secondary copies of lamps

For use along with the user program facility (user.F), a second copy of lamps is needed in the users directory. This is because the program has to be re-complied after making changes to user.F. The original copy in /home/lamps/lamps is to be left undisturbed.

1. Make a directory where you want to work. Copy lamps.tgz here.
2. Unpack : tar xzvf lamps.tgz
3. Compile: make
4. Add the path ./ by editing .bash_profile, logout and login again
4. Run: lamps

The secondary copy is similar to installing for offline use. Note that user.F can be used both online and offline, though online use is not so common.

Back to Installation Page