A free Basic UNIX-training with muLinux
Printing
Configuration
of the printer
Before we're able to print, we must configure the printer and its
interface. In addition we use the muLinux configuration program setup .
This is a special muLinux program and not a generally available Unix Tool.
It is advisable to record the adjustments you make in writing, e.g. on the
printout of this page. The option - f (English f orce )forces
changes to the configuration paragraph printer in the MuLinux configuration files.
The program setup makes these
changes for us, by asking us questions. Nice and easy then.
Note that here only ASCII, Postscript and HP PCL printers are supported.
/# setup -f printer
- Rustic printer Setup -
muLinux support basically only ASCII parallel printers and remote Unix
printers which CAN and-purchased " lpd " BSD protocol.
Anyway, a limited support for POSTSCRIPT and HP-PCL printers is
available.
- print with " lpr [ file ] ". Lake lpr - h. NO local spool, sorry. -
logs in / var/log/lp.log.
DO you want printer support (y/n) [ n ] > y
The setup program wants know whether we have the printer directly
connected to our PC or whether we want to access a printer in the
network. As we have not yet setup the network, we will look at a local connected
printer set up.
This setup is for:
[ 1 ] a local parallel printer
[ 2 ] a remote Unix printer
(1/2)? [ 1 ] 1
Now we must decide on one of the offered printers. Those in doubt should first
try using just an ASCII type, and having proven basic operation, move on to
try the other types of printer.
- "HP" Postscript printer (e.g. Apple Laserwriter)
- "pcl" HP-PCL compatible printers (e.g. HP laser jet)
- "ascii" simple ASCII printers (this type functions in the case of many printers).
- "raw " no filter; direct accesses to port.
muLinux support this printers:
"HP" is for true Postscript printers (i.e. Apple Laserwriter)
"pcl" is for printers which and-purchased
"ascii" for HP-PCL (i.e. HP laser jet) for raw ASCII printing (work with almost printers).
"raw" means NO filter; direct printer to port ACCESS
If your printer case in " HP " or " pcl " class, you CAN print
ASCII, PGM, and tiff (fax) files. "HP" printers support thus POSTSCRIPT
files:) Otherwise, only ASCII allowed.
Enter PRINTER [ ASCII ] HP or pcl
or ASCII or raw
What resolution in dots per inch has the printer?
If you don't know, consult the manual for the printer, if you dont have that,
see the manufacturers web site, or for now, just accept the defaults - see what
happens.
Having got a basic printer set up working, you will find it easier to tweak the
quality of print later. Do whats easiest for now.
Afterwards comes the question about the paper size. This is usually A4.
The question about the scaling can also be [ Enter ]
acknowledged accepting the defaults, like also the following question about the shift (English
DISPLACEMENT) on the paper.
If this doesn't make sense to you now, don't worry, just accept the defaults
by pressing [ Enter ] .
-- Tuning of parameter (efix converter)
RESOLUTION (XxY or X) set resolution OF X by Y
dots by inch; PAGE (a4, type character, legally) is the PAGE format;
SCALE (HorizxVert) scale the inputs by % factors and
DISPLACEMENT (RightxDown) displace the outputs (<0 allowed).
Enter resolution [ 300x300 ] [ Enter ] or other values
Enter PAGE [ a4 ] [ Enter ]
Enter Scale [0.9x0.9 ] [ Enter ]
Enter DISPLACEMENT [ 0x0.4 ]
[ Enter ]
ARe you happy with this configuration (y/n)? y
Whether we are really happy with our configurationl we will soon see.
Configuration of the printer interface
We have not configured the interfaces yet, and to start that off, use the
setup -
program with the option for the configuration of the interfaces.
The full command is thus:
/# setup - f port
Here one can configure all the interfaces including the mouse. Here only the parallel interface interests us in the printer.
- Serial/Parallel/Mouse DEVICE -
Configuration OF serial port (modem, serial mice), bus mouse and
printer port.
DO you want serial/parallel/mouse support (y/n) [ n ] > y
The question about the modem is not important with regards to the printer setup.
The question about the printer port /dev/lp1 are answered. If the following
did not print, use /dev/lp0.
Serial of port in Linux of AR called /dev/ttyS0 (COM1),
/dev/ttyS1 (COM2), etc.. Parallel port of AR called
/dev/lp0, /dev/lp1 (LPT1).
Where your modem and your printer DEVICE of AR attached?
Enter MODEM_DEVICE or /dev/null [ /dev/ttyS1 ] > [Enter ]
Enter PRINTER_DEVICE or /dev/null [ /dev/lp1 ] > [ Enter ] or / dev/lp0
The configuration of the mouse is likewise still insignificant when setting up the printer.
These other devices, Modem and Mouse just happen to be configured in this interface with the Printer setup.
We ignore them both with regard to printing.
Therefore we can again just hit [ Enter ] to acknowledge the prompts,
making no changes to the current settings.
Enter SERIAL_DEVICE or /dev/null [ /dev/ttyS0 ] > [ Enter ]
...
Enter MOUSE_DEVICE or /dev/null [ /dev/ttyS0 ] > [ Enter ]
...
Enter MOUSE_PROTOKOLL [ Microsoft ] > [ Enter ]
...
Enter EMULATE3BUTTONS [ NO ] > [ Enter ]
...
DO you want to of CHANGES serial port default setup? (y/n) [ y ] > n
...
Enter PORT_LIST [ ttyS0, ttyS1 ] > [ Enter ]
...
Enter BASE_LIST [ - - ] > [ Enter ]
...
Enter IRQ_LIST [ - - ] > [ Enter ]
The test will print a file. In addition the instruction serves lpr.
/# lpr /etc/passwd
It would have the file /etc/passwd print out.
If there are errors, or simply nothing prints out, have a look in the log
files /var/log/lp.log :
/# less /var/log/lp.log
If the printing was successful, we save our muLinux configuration as tutorial01:
/# setup - s tutorial01
Printing
For printing the instruction mentioned already above serves lpr :
/# lpr filename
The file which can be printed is transferred easily as option. Also several files can be printed:
/# lpr filname1 filname2...
One receives assistance for setting up printing to the network in such a way:
/# lpr - h
/# setup - f lpd
Unix print server
DO you want a lpd like print server support?: 
Robert.Warnke@giso.de (copyleft) Robert Warnke, Berlin (Germany) - You can write me in English. | http://rowa.giso.de | translated by Alex Wild
|