Download Instructions for HKL-2000
|
Current Versions: |
|
| Linux | HKL2000_704u_Linux |
| MAC OS X (Intel) | HKL2000_704u_Mac |
| MAC OS X (Power PC) | HKL2000_MAC_692i |
| SGI | HKL2000_sgi_ver_0.98.695b |
| OSF | HKL2000_osf_ver_0.97.647d |
Downloading and unpacking HKL-2000 executable files
You may download the HKL-2000 program executables from our ftp server hkl.hkl-xray.com. You may use a graphical ftp application, or use "ftp" command from a terminal window (to open a terminal window in MAC OS X, open the Finder's Go menu, choose Applications, then choose Utilities and select Terminal). Ftp should use passive option.
ftp -p hkl.hkl-xray.com
login: hkl2000ftp
password:
The password can be obtained through the automatic password system (established users only) or by contacting us via e-mail.
Please note that the HKL-2000 executables are in hkl2000ftp, not in hklftp.
If you have successfully connected to our server you may type:
ftp> ls
which will list directories, named by the version number. In each ver70## directory there is a file anom.dat and the following sub-directories:
Linux :
> HKL2000_70##_Linux.tar.gz
> individual_programs (not tarred and not compressed)Mac:
> HKL2000_70##_Mac.tar.gz
> individual_programs
Each xxx.tar.gz file contains compressed and "tarred" executables for the corresponding operating system, while individual_programs directory contains individual executables - not tarred and not compressed. Remember that you have to use binary mode to transfer these files.
To download the appropriate file, e.g. HKL2000_704u_Mac.tar.gz use the get command. For example:
> get HKL2000_704u_Mac.tar.gz
After you've transferred the files, you have to uncompress and 'untar' them using the command:
> tar -xvz filename.tar.gz
for example:
> tar -xvf HKL2000_704u_Mac.tar.gz
Versions for SGI and Mac (Power PC), as well as older versions for Linux and Mac (Intel processor) are in the directory "archives." The files are in the tar.Z format and require uncompressing and 'untarring' , for example:
> uncompress HKL2000_Linux_ver_0.98.###.tar.Z
> tar -xvf HKL2000_Linux_ver_0.98.###.tar
You should have all the programs' executables now.
access_prod
anomalous
cdir_t
denzo
denzo_3d
HKL2000
hklfilename
hklsysinfo
readheader
scalepack
scalepack16m
scalepack8m
scalepacklvirus
scalepackmanyframes
scalepackmf6500
scalepackribo
scalepacktest
scalepackvirus
strat
suser
xdark
xdisp
Installing HKL-2000
Typically the executables are placed in the directory:
/usr/local/bin
(requires system administrator privileges). You can also place the executables in an arbitrary directory, for instance
/home/joed/programs/hkl
In that case, you have to set the environmental variable HKLPATH to that directory. The exact command will depend on the shell you are using to run the programs (this can be determined by typing echo $SHELL). For the tcshell and the example above, the command is:
setenv HKLPATH /home/joed/programs/hkl
HKL-2000 also requires a directory hklint for site files. Its default location is:
/usr/local/hklint
(accessing it requires system privileges), but it it can be changed to an arbitrary location, by setting the environmental variable HKLDIR. For example:
setenv HKLDIR /home/joed/programs/hklint
The anom.dat file should be placed in this directory together with subdirectories containing the site files. The site file (def.site) of each detector/goniostat system (home or synchrotron) should be stored in its own sub-directory. Each such directory should be appropriately named to easily identify the specific facility and the detector.
Example:
/usr/local/hklint/Raxis4-home
/usr/local/hklint/SPring8-BL23-Quantum4
/usr/local/hklint/BNL-X25-Quantum4
You can check how the environmental variables were set by typing the command:
env | grep HKL
To keep the values of the HKL environmental variables for subsequent logins, you should modify the configuration files for the shell you are using (~/.tcshrc, ~/.cshrc, or ~./bashrc).
License key
Additionally the license key file, cr_info, needs to be present in the /usr/local/lib directory in order for the HKL-2000 programs to run. One cr_info file may contain information about many computers and detectors. The program looks through the cr_info file for the right combination of fields that matches the given detector family and computer information. Other fields are ignored.
To obtain the license key, you need to execute the access_prod program on each machine that you plan to use for running any of the HKL-2000 programs. Executing access_prod results in the following dialog (answers in red):
- enter the name of your institution: State University
- enter the name of PI: John Doe
- enter the name of person responsible for HKL maintenance: Jane Doe
- enter names of all frame formats (detectors) you want to use: mar raxis4
- enter the number of detectors in your lab which are currently supported by HKL package: 2
- enter the name of company from which you received your license: HKL Research, Inc.
- enter HKL version number: 0.98.703
- if this is temporary license, enter the number of days you request, for permanent license enter 'noexpir': noexpir
-
do you want to send automatically e-mail to hkl@hkl-xray.com in order to activate your license (y) ? n
If the answer is y (yes), the access_prod program may automatically send an e-mail with a request for an access file: cr_info. It not always works, though. If the answer is n (no) the program will produce the following info file. You may save the info file and 'manually' send it to hkl@hkl-xray.com.
Please:
- Do not edit or alter the info file - it is processed automatically after verification.
- Do not send info files in the compressed form.
- Note that the access_prod program does not work properly if the set-up of the computer operating system is not consistent.
The example of an info file created by the access_prod program is given below (comments in italic):
| HOST-NAME: p4.med.state.edu |
(extracted by the program - do not edit!) NOTE: the field is limited in length to 30 characters |
| HOST-ID: -2035379618 | (extracted by the program - do not edit!) |
| HOSTNAM: state.edu | (extracted by the program - do not edit!) |
| HW_PROV: sgi | (extracted by the program - do not edit!) |
| CPU-SERIAL: sgi,CPU,1762854231 | (extracted by the program - do not edit!) |
| INSTITUTION: State University | Licensee's Institution name |
| PI: John Doe | Principal Investigator or Group Leader |
| CONTACT: Jane Doe | Contact Person |
| DETECTORS: mar raxis4 | Detector Format Families |
| NO-OF-DET: 2 | Number of Detectors at Home Laboratory |
| PROVIDER: HKL | License Provider: Rigaku Americas Corporation, HKL Research, etc |
| VERSION: 0.98.703 | Requested Version of the Program |
| EXPIR: noexpir |
The following are detector families to be used in the above "questionnaire":
- dip - DIP family of scanners
- raxis2 - RAXIS-II
- raxis4 - RAXIS-IV, -IV++
- raxis5 - RAXIS-V
- mar - MAR imaging plate detectors (except MAR345)
- mar345 - MAR345 detector
- brandeis - Brandeis 1k CCD detector on line X12c at BNL
- unsup - ADSC Quantum-4 CCD detector
- unsup210 - ADSC Quantum-210 detector
- unsup315 - ADSC Quantum-315 detector
- un-mar - MAR CCD detector 130mm
- un-mar165 - MAR CCD detector 165mm
- un-mar225 - MAR CCD detector 225mm
- un-mar300 - MAR CCD detector 300mm
- un-brand - CCD Brandeis 2x2
Starting HKL-2000
After you have installed HKL-2000 and placed the license key file, cr_info, in /usr/local/lib directory, the program can be started from a terminal window by typing:
HKL2000
If you receive an error message "no display name and no $DISPLAY environment variable", it means that the X windows system is not working or not configured properly. On Mac OS X, you need to start the X11 application (from the Finder's Go menu, choose Applications, then choose Utilities and select X11). You should see the X11 icon in the dock, double click on it to open an xterm window and start HKL2000 from this window.
If you receive an error message "Command not found", it means that HKLPATH is not in the executable command search path. Modify the environmental variable PATH or type a full path e.g. /usr/local/bin/HKL2000.
Note 1: Access File
To obtain the access file, cr_info, please see Access Key for details.
Note 2: Site files for synchrotron detectors
Site file (def.site) for the synchrotron beam lines can be obtained from the beam line support staff.
- Software Download
- License Policy
- Documentation
- Services
- HKL @ synchrotrons
