Differences between revisions 14 and 15
Revision 14 as of 2013-05-31 14:33:10
Size: 1619
Editor: adjordje
Comment:
Revision 15 as of 2013-10-03 11:16:00
Size: 1485
Editor: davidsch
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
If you want to print documents using GtkLP, it is necessary to set some environment variables first. These variables can be set temporarily at the shell ({{{tcsh}}} is the default shell at D-ITET) or permanently in your home's shell's initialization file {{{.cshrc}}}. If you want to print documents using GtkLP, it is necessary to set some environment variables first.
Line 10: Line 10:
setenv PRINTER etlf11-x8400 export PRINTER="etlf11-x8400"
Line 14: Line 14:
setenv CUPS_SERVER ipp2vpp.ee.ethz.ch export CUPS_SERVER="ipp2vpp.ee.ethz.ch"
Line 18: Line 18:
setenv PRINTER_TOOL /usr/sepp/bin/gtklp export PRINTER_TOOL="/usr/sepp/bin/gtklp"
Line 21: Line 21:
Now you are ready to print with GtkLP. ''If you want to start printing'', go on reading the article about [[Printing/VPPPrinting/Linux/GtkLP|printing with GtkLP]]. To make your printing related {{{ bash }}} environment variable settings permanent, save them in your home's {{{.bashrc}}} file. Now you are ready to print with GtkLP. ''If you want to start printing'', go on reading the article about [[Printing/VPPPrinting/Linux/GtkLP|printing with GtkLP]]. 
Line 23: Line 23:
==== Note for bash users ====
 If your default shell is bash, you must use the '''export''' command instead of '''setenv''': {{{
export PRINTER_TOOL=/usr/sepp/bin/gtklp
}}} Note that export's syntax requires a {{{=}}} sign instead of a space to separate the environment variable name from its assigned value. To make your printing related bash-environment variable settings permanent, save them in your home's {{{.bashrc}}} file.
==== Note for tcsh users ====
 If you use the {{{ tcsh }}} shell instead, you must use the '''setenv''' command instead of '''export''': {{{ setenv PRINTER_TOOL "/usr/sepp/bin/gtklp" }}} In the case of tcsh/ csh, make your printing related environment variable settings permanent, by saving them in your home's {{{.cshrc}}} file.

Printing prerequisites (GtkLP)

If you want to print documents using GtkLP, it is necessary to set some environment variables first.

  • Set the default printer for more convenience. The default printer is always pre-selected in GtkLP's printer list (if you need a list of available printers, you can run  gtklp -S ipp2vpp.ee.ethz.ch  and then open the "printer" dropdown box in the "General" tab).

    Example to make printer "etlf11-x8400" the default printer:
    
    export PRINTER="etlf11-x8400"
  • Allow applications to provide CUPS printing support:
    export CUPS_SERVER="ipp2vpp.ee.ethz.ch"
  • Set the default printing tool to use (when printing from applications) to GtkLP:
    export PRINTER_TOOL="/usr/sepp/bin/gtklp"

To make your printing related  bash  environment variable settings permanent, save them in your home's .bashrc file. Now you are ready to print with GtkLP. If you want to start printing, go on reading the article about printing with GtkLP.

Note for tcsh users

  • If you use the  tcsh  shell instead, you must use the setenv command instead of export:  setenv PRINTER_TOOL "/usr/sepp/bin/gtklp"  In the case of tcsh/ csh, make your printing related environment variable settings permanent, by saving them in your home's .cshrc file.


CategoryPRMT