Cliq for Linux....... Getting Started


Welcome......

Thank you for selecting software from Quadratron's Cliq family of products and welcome to the community of more than 1,500,000 users of our products since 1983. We believe them to be the best character-based office automation software products for LINUX as well as UNIX users and we hope you agree. The following information will assist you in installing and getting started with Cliq.

Selecting the Correct Cliq Product Set:

As of September 1999, our Standard Release has been tested to operate correctly on:

The Standard Release will not operate correctly on certain Linux distributions so we have therefore provided a "Special Release" for these releases.  The Special Release has been tested on the following

Red Hat 5.x requires two simple modifications which may be done after installation.  They are:

  1. Rename $/qlib/fonts/linux.bak to linux.00
  2. Rename $/qlib/tkc/linux.rh5 to linux.tk5 (You may wish to first save the existing linux.tk5 to linux.bak.)

Installation Instructions:

The procedure for installing Cliq on your system involves three steps:

(1) Loading Cliq from the distribution media.
(2) Running the Cliq Install Script.
(3) Post installation housekeeping.

Before you start.......

During both loading and install, you must be logged in as root or errors will result.

Choose a file system on your system which is large enough to accommodate all of the files on the Cliq distribution media. Approximately 28 mb is required for all Cliq Modules.

Loading Cliq on your system.......

Normally, you will have obtained Cliq via download from the Internet.  If you received it on physical media,  you may copy the Cliq distribution files form the distribution media into any directory within the selected file system.  If you are upgrading, it is recommended that you install into a new directory rather than writing over the existing installation.  After you are satisfied that the new installation is properly installed, the old version may be deleted.

If you received Cliq via download, it will be in the form of a tar file which will need to be unzipped.  If you received Cliq on CD, you simply need to copy all the files to the desired directory and run the Cliq Install Script.  Note that CD distributions  include all modules so if installation of all modules is not desired, the applicable subdirectory should be deleted prior to running the install script.

If the entire contents of the CD Rom were copied to your hard disk, the subdirectory names and the applicable module name are as follows:

$/new/0050COR 
$/new/0100ACC     $/new/0150WRD
$/new/0200FRM     $/new/0250MNU   $/new/0400DCT      $/new/0450CLC
$/new/0500TYP
CliqDesk     
CliqAccessories
CliqWord
CliqForm
CliqIT
Dictionaries
CliqCalc
CliqPage
(Must be Installed)
 



(Used with CliqWord)

(Must be used with CliqWord) 

If all modules are installed, approximately 28 MB of disk space is required.

Zipped files may be unzipped using the command:

tar -xvzf  cliq???.tgz [where ??? is the module label]

After the files have been extracted and installed, the cliq???.tgz file(s) may be removed.

Note that all files are positioned relative to the directory you started from. No files are loaded into absolute pathnames. Once you have loaded and extracted all of the files, you are ready to run the Cliq install script.

Running the Cliq install script......

The install script is located in the directory you installed Cliq.  Make sure you are logged in as root, connected to the installation directory, and enter the following command:

./install [return]

As part of the install script, you will be prompted for a Release Key. This is an alphanumeric code which will enable you to load the program once it is installed.   Carefully enter this key making sure to distinguish between the letter "O" and the number "0". If you have a demo copy, this key will eventually (normally 30 days) expire after which you will not be able to load Cliq.   To register and obtain a permanent release key, contact Quadratron via E-mail. If you have obtained a permanent release key, you will need to connect to the directory in which you installed Cliq and run a program called ./qlicense which will prompt you to enter the the permanent release key.

After the release key has been entered, the installation will be completed and "Installation Complete" will appear on your screen followed by  the shell prompt.  At this point,the Cliq Programs you have installed may be started by entering the command cliq [return]. See "Running Cliq from the Command Line Prompt" below for further information

The script will also prompt you for a series of responses which will vary depending on the modules to be installed. Here are the questions and instructions for responses.

Do you wish to continue installation ? (y or n)?

What directory should contain the Cliq execution script?
(Press <return> for the default of: /usr/bin)

When the Install Script has been completed, the environment variables, directories and files required by Cliq will have been set, created and/or initialized. Nearly all of the directories and files are located relative to the directory into which you loaded the contents of the distribution media. However, the specific directories and files listed below, which were either created or modified by the install script are located as follows:

/usr/spool/qspool

/usr/lib/crontab or /usr/spool/cron/crontabs/root

/usr/bin/cliq

If TERMDIR and MENUDIR environment variables were set, the Install Script resets them to the directories used by Cliq

Post-Installation Housekeeping.......

The following steps should be performed after running the install script and prior to running Cliq:

  1. Cliq for Linux assumes you are running on your system console and that the TERM setting is either "console" or "linux." The installation process will use this setting to locate a Cliq TERMCAP of the same name and use that driver for the Cliq session. If you are using the console but using a different setting for TERM, set QTERM to "console" or "linux." If you are using a character terminal, look in the directory "$QLIB/tkc" to find a driver which matches the terminal or the mode of the terminal you are using. For example, if you are using a VT100 terminal, the correct driver is vt100.tkc. You will simply set the base part of the driver name to QTERM. For example, "Set QTERM=vt100." Contact Quadratron for assistance if needed.
  2. If you used a C shell to run the install script, you must exit and then log in again before running Cliq; otherwise perform the rehash command so that the Cliq load script will be found when it is invoked.
  3. CliqMail looks for your software electronic mail configuration in a file called qmail.cfg, which is located in the $QLIB/etc directory. This file is automatically created when you run the install program.  For most systems, the mail configuration file created by the install program is best for optimal CliqMail operation.
  4. If you want to disable the ability to access the operating system from within Cliq, you can set the SHELL environment variable equal to a null value. It is not sufficient to leave this variable unset.

Running Cliq From the Command Line Prompt.......

You may now run Cliq from the command line by entering cliq [return] . Note that individual applications are called from the <command> key - < tools > or <accessories > after CliqDesk has been loaded. An optional cliq - k [return] , will run the keytest program so that key assignments can be determined.   The first screen you will see is called the "Desk Top" which will normally be a list of files which may be selected and viewed with CliqWordIf CliqWord was not installed, the plain text version of these files may be opened with another editor such as vi.  The files are located in $qlib/qodflts/ext.  From the Desk Top, all of the other Cliq facilities are available through the Command Menu or other keys described below under Function / Control Key Assignments.

Other options to utilize non-English prompts and help files are also available on special request. Contact Quadratron for information.

Cliq TERMCAPs:

TERMCAPs are terminal capabililties files which allow most terminals to function properly with Cliq. Cliq is function key driven, so these TERMCAPs provide a a standard set of key assignments which are the same from terminal to terminal. The termcaps included with Cliq for Linux are located in $QLIB/tkc. Additional TERMCAPs may obtained from Quadratron. Alternative TERMCAPs may be loaded for testing by simply entering Cliq [TERMCAP Name] 

The following list of key assignments shows the control key sequence, the function key assignment (if the proper TERMCAP is set) and the applicable Cliq Function. Refer to the specific application user guide for Cliq functions or the keytest program described above to test your keyboard. A complete discussion of TERMCAPs and technical reference material for creating and modification is available from Quadratron and is also included on our Website.  

Function / Control Key Assignments 
(Example for SCO OpenServer with Term of "ansi")

Control
 Key

Control
 Key

Cliq Function

   

A

F-9

Command

B

Home

Search

C

F-12 / Sh F2  

Copy

D

F-10

Desk

E

Enter

Execute

F

F-2

File

G

F-8

GoTo

H

 

Backspace

I

 

Tab

J

Sh F-9

Macro

K

F-6

Attribute

L

Sh F-6

Mark

M

   

Return

N

End

Cancel

Control
 Key

Control
 Key

Cliq Function

   

O

F-5

Code

P

F-4

Softpage

Q

  

N/A

R

Sh F-5

Replace

S

   

N/A

T

F-12 / Sh F2

Format

U

Sh F-3

Undo

V

Sh F-8

Move

W

F-7

Window

X

Sh F-10

Integrate

Y

F-1

Help

Z

  

Refresh

-

Sh F-4

Hardpage

 

Sh = Shift

   

Cliq Directories:

Cliq requires that a series of user level directories exist - primarily to support CliqAccessory files. Here are the directories Cliq uses:

These directories must exist for each user. If the do not exist, they will be created when first needed along with any default files needed.

Cliq Run-Time Environment:

The variables described below are established by Cliq and are accessible by processes running under Cliq:

Bypassing the Desktop:

It may sometimes be advantageous to load one of the Cliq applications directly if the CliqDesk functions are not needed. For example CliqCalc users may wish to eliminate any confusion caused by key assignments when using CliqDesk as opposed to CliqCalc.

The procedure for accomplishing this is quite simple and straight forward involving a minor edit to the start up script used to call CliqDesk. First, the Cliq start up script (normally located in /usr/bin) needs to be copied to a new file name; e.g. "123" in the case of CliqCalc. This is because the environment settings contained in the start up script must be set regardless of the program being called. Next, the filename 123 is modified to call the appropriate application. In the case of CliqCalc, the actual program name is qcalc. To edit the script, go to the next to the last line which begins with the word "eval" and substitute the word "cliqdesk" with the desired application name - e.g. qcalc. In addition to qcalc, qedit applies to CliqWord and qform applies to CliqForm. Some of these programs also may be run with additional command options - contact Quadratron for details.

Printer Setup:

Only a System Administrator (logged in as "root") may add, change or delete a printer to be utilized by Cliq. Up to 300 printers (numbered 0-299) may be defined. Defined printers (up to 15) are listed on the Printer Definition screen which is accessed from the Cliq Desktop or Index by entering <COMMAND> - System utilities - System administrator -Define a printer. Printer definitions are added or modified by selecting the desired Pr # and entering <EXECUTE>. The following explains each field for a selected printer definition:

The following is a listing of the basic set of driver codes for the Printer Type field. If the printer you are using does not work properly with one of these codes, contact Quadratron.

Printing with 'lp' or 'lpr':

Cliq can be configured to print with lp or lpr instead of the Cliq print spooler, Qspool. This may be appropriate if the printer is located some distance from the user or if some users wish to print with Cliq while others are using lpr. The procedure involves creation of a script which is called from the printcap each time a document is printed.

These are the steps:

  1. Modify the printer definition.

  2. Create a one line shell script.

  3. Modify the printcap.

  4. Rename font files.

Modifying the printer definition.........

  1. Display the printer definition screen as described above.

  2. Change the device name to /dev/null.

  3. Delete any entry in the "Stty for device" field.

  4. Save changes.

  5. Exit Cliq.

Creating a shell script.........

  1. Select a directory in the user's path - e.g., the /usr/bin directory.

  2. Create the script with any desired name.

  3. Enter a line similar to the following  in the script: /usr /bin/lpr -P<HP_LP>  where "HP_LP" is the printer name assigned with the  printer configuration tool.  Note that this example is applicable to Redhat Linux 6.0 - other Linux distributions may require different arguments and/or parameters.  A raw printing option may need to be added as the last argument to this command.  In most configurations, lpr is setup to print plain text files.  Most Cliq files will contain control codes for the printer so the raw printing option allows data other than plain text to be sent to the printer.  Since this option is different from one system to another, the operating system documentation may need to be checked for the correct syntax.

  4. Save the file to a directory in the users' path.

  5. Make the script executable.

Editing the Printcap........

  1. Open the printcap file intended to be used. Printcap files are found in $QLIB/pc.   It may be desirable to first copy the applicable Cliq printcap to a new file name to be used as the printer Type.  This will be the name used in the Printer Definition setup.

  2. At the end of the file, add the line, setup.post_filter=[path]script where script is the name of the shell script created above.   Note that "path" may be omitted if the script is located in the user's path environment.

  3. Modify the line, type_setup.post_filter=Qtypeset to read, type_setup.post_filter=Qtypeset, [path]script where script is the name of the shell script created above.

  4. Save the file and exit.

Renaming Font Files........

  1. Font files are text files found in $QLIB/font. They are grouped and named by using the same base name as the printcap file. Secondly, they use a file extension of "00" through "54" depending on the typeface, point size and other font characteristics. These characteristics can be determined by opening the file with any text editor. More information regarding fonts can be found in the Cliq Technical Reference Guide.

  2. When Printcap files are renamed in order to print with "lp", the font files must also be copied to the new printcap name. Otherwise, the font files will not be located when printing with the new printcap. The file extension should be kept the same as the original.

Note: Complete information regarding printcaps and other printing issues can be found in the Cliq Technical Reference.  This document may be found on our website at Product Support | Documents