|

How to set up the PrintServer (UNIX host) for use with MultiView DeskTop LPR
SCO UNIX OPENSERVER 5
1. Add a local printer
- Run "scoadmin" on host; then select the following:
Printer Manager -----> Add local
You will be presented with the following printer configuration menu:
Printer name [printer1]
Description [printer1 is a printer to be accessed remotely]
Model [standard] or [dumb]
Device name [enter the port, such as /dev/lp0 ]
(make sure you can redirect data through the port you selected)
- You may wish to make printer1 the default printer by selecting the default option on this menu.
- Enable the printer -- tell it to accept requests and start the scheduler. Following are options on the sysadmsh menu:
Printer ---> Schedule ---> Enable
Printer ---> Schedule ---> Accept
Printer ---> Schedule ---> Begin
- Test printer1 to ensure that it works properly. Type the following at the prompt:
lp /etc/motd
If printer1 is not the default printer, enter:
lp -dprinter1 /etc/motd
2. Installing rlp
- Enter System Maintenance mode and run the following command to install remote line printing:
mkdev rlp
You will see the following menu:
Remote printing configuration
Do you want to install or delete remote printing (i/d/q)?
- Select "i" to install.
Do not install remote printing twice. If you wish to run mkdev rlp twice, you must first select "d" to delete your previous configuration before reinstalling.
- If you choose to install rlp, you will see the following messages:
Installing remote line printing
Creating directories /usr/lpd/remote and /usr/spool/lpd and
file /etc/printcap.
Saving lp, cancel and lpstart commands to /usr/lpd/remote.
Installing remote lp, cancel and lpstat commands in /usr/bin
Do you want to change the remote printer description
file /etc/printcap (y/n)?
- Select "y".
- You will see output similar to the following:
Remote Printing Configuration
Enter information for remote printers or
local printers accepting print jobs.
Please enter the printer name (q to quit): printer1
- Enter printer1 since printer1 is the local printer that is configured.
Is printer1 a remote printer or local printer (r/l)? l
- Select "l"; printer1 is a local printer on your UNIX host.
Please enter the name of the device for printer1:/dev/lp0
You must specify the same device name used to set up printer1.
Printer printer1 users device /dev/lp0
Is this correct(y/n) y
Putting printer1 in printer description file and
creating spool directory...done.
- You will see the following prompt if the directories that rlp needs to install already exist:
Remote line printing working directory already exists.
Do you wish to continue installing the remote
line printing system (y/n)?
- Enter "y" to continue the installation.
- Next you will see:
Setting up rc scripts.
- Finally, you are asked to start lpd.
Do you want to start remote daemon now (y/n)?
- Select "y".
3. Making sure lpd is running
- Boot the system and enter multi user mode. To check that there is an lpd process running, type:
ps -ef | grep lpd
- To start lpd, type:
lpd start
- To stop lpd, type:
lpd stop
4. Check /etc/printcap
5. Check /etc/hosts
Make sure the hostname and the IP address of the client is specified correctly in /etc/hosts file. This should be the names used for the PC which will print to this host. (PC host names are defined in the TCP/IP stack host file on the PC)
6. Check /usr/spool/lp/admins/lp/printers/printer1/configuration
Make sure the configuration file in host looks similar to the following:
Banner:on:Always
Device:/dev/lp0
interface:/usr/spool/lp/model/standard
printer type: unknown
7. Grant the client (PC) access to PrintServer (UNIX host)
List all of the clients that are to have access to the print server in either the /etc/hosts.equiv or the /etc/hosts.lpd as shown below:
vi /etc/hosts.lpd
host1
For security reasons, we recommend adding the client in /etc/hosts.lpd. This grants only remote printer access.
8. Adding additional remote access to local printers on the UNIX host
Once rlp has been set up use the rlpconf program to add additional printer support. First follow the steps as described in (A) to set up a new printer spooler queue.
- Run the rlpconf program by entering:
rlpconf
- You will see output similar to the following:
Remote Printing Configuration
Enter information for remote printers or
local printers accepting print jobs.
Please enter the printer name (q to quit): printer3
- Enter the name of the local printer that was configured in step 1.
Is printer3 a remote printer or local printer (r/l)? l
- Select "l"; printer3 is a local printer on your UNIX host.
Please enter the name of the device for printer3:/dev/lp1
- You must specify the same device name used to set up printer3.
Printer printer3 users device /dev/lp1
Is this correct(y/n) y
Putting printer1 in printer description file and
creating spool directory...done.
- Repeat steps 4 and 6 for the new printer.
|