Chapter 21 . Working with Words and Images (Web hosting control panel)
Chapter 21 . Working with Words and Images 575 Printing Documents in Linux Printing in most Linux systems these days is provided by the Common UNIX Printing System (CUPS) service. As a nonadministrative user, you don t have a lot of control over how the printers are configured. You can, however, check which printers are available to print to, check the status of print queues (documents waiting to print), and remove any of your own queued print jobs. Refer to Chapter 26 for information on configuring a printer using the CUPS service. Printing to the Default Printer When your system administrator (or you) configured printers for your computer, one of those printers was defined as the default printer. If you are not sure which printer is your default in a Fedora Core or other Red Hat Linux distribution, type system-config-printer and look for the printer with the check by it. For other Linux distributions, check the CUPS Web-based interface to see how your printers are configured. Most graphical word processors, such as StarOffice Writer and OpenOffice.org Writer, let you choose a printer from those available. Some of the less sophisticated Linux utilities that run from the command line, however, use only the default printer. For example, dvips (to print a PostScript file) and groff -l (to print a troff/nroff file) automatically send the output to the default printer. As a regular user, you can override the default printer using the PRINTER environment variable. If the default printer on your computer is lp0, for example, and you want to print regularly to lp1, change your default printer by setting the PRINTER variable as follows: $ export PRINTER=lp1 To have this take effect all the time, you can add this line to one of your shell configuration files (such as $HOME/.bashrc, if you use the bash shell). Printing from the Shell The lpr command is used to print files from the shell. You can use lpr to print whether the LPRng or CUPS print service is being used. If you have a file already formatted, use lpr to print it. For example, if you have a PostScript output file (file.ps) and you want to print it to your PostScript printer, use the following command line: $ lpr file.ps Cross- Reference
From our experience, we can recommend PHP5 Web Hosting services, if you need affordable webhost to host and run your web application.