Services avaliable:
ssh, sftp, MySQL, LAM/MPI, MPICH, HTTP
To use ssh (Secure shell):
Download the OpenSSH compatible SSH client here: windows unix java
To use MySQL:
Compiling programs that use
MySQL, CGI, JPEG, MPI libraries:
gcc -o prog prog.c -L/usr/local/lib/mysql -lmysqlclient -lcgi-lib -ljpeg
To use MySQL console:
Type: mysql -u username -p dbname
MySQL also have some administartive tools, such as mysqladmin, mysqldump.
To use LAM/MPI:
Since LAM/MPI is deamon based, you need to bringup your own "lamd"
Also you need to add the directory of LAM/MPI into PATH, you need append a line in ~/.bash_profile:
PATH = $PATH:/usr/local/lam-6.3.2/bin
Step 1: Making machine list
make a text file "lamhosts" in your home directory
the format as follow:
abacus
node01
node02
...
(note: only list the name of machine ONCE)
Step 2: "Boot" LAM
type: lamboot lamhosts
(a process called "lamd" will run on the machines listed
Step 3: Run MPI programs
type: mpirun N prog
(to run one "prog" on all machine listed)
mpirun N N prog
(to run two "prog" on all machines listed)
mpirun -np X prog
(to run X "prog" on machine listed)
mpirun -np X -O prog
(same as above but not do data conversion, this will gerneally faster)
Step 4: "Wipe" LAM
type: wipe lamhosts
(all "lamd" will stop)
To Compile MPI prgrams:
The compilers avaliable
mpicc, mpiCC, mpif77
These are just wrapper of
gcc, gCC,
g77, all other parameter are same as the
original compiler.
To use MPICH:
You need to add the directory of MPICH into PATH, you need append a line in ~/.bash_profile:
PATH = $PATH:/usr/local/mpich/bin
Run MPI programs:
Type: mpirun -np X prog
(to run X of "prog" on machine listed)
To Compile MPI prgrams:
The compilers avaliable
mpicc, mpiCC, mpif77
These are just wrapper of gcc, gCC, g77, all other parameter are same as the original compiler.
HTTP service:
Putting web page on Abacus:
Change the mode of your directory
to "755", type:
chmod 755 -R ~/
Place to putting web page:
~/public_html (for HTML)
~/public_html/cgi-bin (for CGI)
Page format avaliable:
HTML, PHP4, Perl, CGI-BIN
"index" file extension
avaliable:
.htm .html .php .pl
Computer Systems Lab, Department of Electronic Engineering, City University of Hong Kong, 2006