Ricoh kc1prt, pr1013 UNIX Supplement

UNIX Supplement

Read this manual carefully before you use this product and keep it handy for future reference. For safety, please follow the instructions in this manual.

Introduction

To get maximum versa tility from this machin e all opera tors shoul d carefull y read and f ollow th e instruc­tions in this manual. Please keep this manual in a handy place near the machine.
Please read the Safety Information in the Copy Reference before using this machine. It contains im­portant information related to USER SAFETY and PREVENTING EQUIPMENT PROBLEMS.

Important

Parts of this manual are subject to change without prior notice. In no event will the company be liable for direct, indirect, special, incidental, or consequential damages as a result of handling or operating the machine.

Further Information

Please consult your authoriz ed reseller concerning additio nal UNIX support.

Trademarks

PostScript is a registered trademark of Adobe Systems Incorporated. Sun, SunOS and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the
United States and other countries. HP-UX is a registered tradem ark of Hewlet t-Pac ka r d Company. LINUX is a trademark of Linus Torvalds. RED HAT is a registered trademark of Red Hat, Inc. Other product name s used her ein are for iden tifica tion purposes o nly and might be trademarks of t heir
respective companies. We disclaim any and all rights in those marks.

Manuals for This Machine

Manuals for This Machine

There are ten manuals that separately describe the operational procedures for the operation and maintenance of the machine.
To enhance safe and efficient operation of the machine, all users should read and follow the instructions contained in the following manuals.
❖❖❖❖ Copy Reference
Describes the procedures and functions for using this machine as a copier.
❖❖❖❖ System Settings
Describes the system settings of this machine.
❖❖❖❖ Facsimile Reference <Basic Features>
Describes the procedures and most frequently used functions for using this machine as a facsimile.
❖❖❖❖ Facsimile Reference <Advanced Features>
Describes the procedures and more advanced functions for using this ma­chine as a facsimile. And also explains settings for key operators.
❖❖❖❖ Printer Reference 1
Describes the system settings, procedures and functions for using this ma­chine as a printer.
❖❖❖❖ Printer Reference 2
Describes the procedures and provides necessary information about using this machine as a printer. This manual is included as a PDF file on the CD­ROM labeled “Operating Instructions for Printer”.
❖❖❖❖ Network Interface Board Quick Configuration Guide
Describes the procedures and provides necessary information about setting up and using the printer under the network environment. This manual is in­cluded as a PDF file on the CD-ROM labeled “Operating Instructions for Printer”.
❖❖❖❖ Type 1018 PostScript level2 Compatible Kit Operating Instructions Supplement
Describes the functions of Printer Utility for Mac. This manual is included as a PDF file on the CD-ROM labeled “Operating Instructions for Printer”.
❖❖❖❖ UNIX Supplement
Provides information about setting up and using the printer in a UNIX envi­ronment. This manual is included as a PDF file on the CD-ROM labeled “Op­erating Instructions for Printer”. (this manual)
❖❖❖❖ Network Interface Board Type 1018 Owner's Manual
Describes the procedures and provides necessary information about setting up and using the printer under the network environment. This manual is in­cluded as a PDF file on the CD-ROM labeled “Print Server Software and Doc­umentation” which comes with optional Network Interface Board Type 1018.
i

How to Read This Manual

R
R

Symbols

In this manual, the following symbols are used:
WARNING:
This symbol indicates a potentially hazardous situation which, if instructions are not followed, could result in death or serious injury.
CAUTION:
This symbol indicates a potentially hazardous situation which, if instructions are not followed, may result in minor or moderate injury or damage to property.
* The statements above are notes for your safety.
Important
If this instruction is not followed, paper might be misfeed, originals might be damaged, or data might be lost. Be sure to read this.
Preparation
This symbol indicates the prior knowledge or preparations required before op­erating.
Note
This symbol indicates precautions for operation, or actions to take after misop­eration.
Limitation
This symbol indicates numerical limits, functions that cannot be used together, or conditions in which a particular function cannot be used.
Reference
This symbol indicates a reference.
[]
Keys that appear on the machine's panel display.
Keys and buttons that appear on the computer's display.
{}
Keys built into the machine's control panel.
Keys on the computer's keyboard.
ii

TABLE OF CONTENTS

1.UNIX Configuration
Before Setup .............................................................................................. 1
Using the lp/lpr commands............................................................................ 1
Using the Installation Shell Script ........................................................... 2
Assigning the IP Address .............................................................................. 2
Installing the Installation Shell Script............................................................. 3
After Executing Install Shell .......................................................................... 6
Printing Method ....................................................................................... 10
Printing with lpr, lp....................................................................................... 10
Printer Status........................................................................................... 11
Viewing the Print Job Status with lpq and lpstat ......................................... 11
INDEX........................................................................................................ 12
iii
iv

1. UNIX Configuration

This section explains how to set up a network printer and check the print status using UNIX.
Limitation
To print from a UNIX workstation, use the file that the printer supports.

Before Setup

Setting up can vary depending on the printing commands. Please make sure to make the settings accordingly.

Using the lp/lpr commands

Use the Installation Shell Script to register the printer host name and the IP
A
address.
Start printing.
B
P.10 “Printing Method”
1
1
UNIX Configuration

Using the Installation Shell Script

The installation shell script helps with the setup process. The installation shell script automates some of the tasks in configuring /etc/hosts, /etc/printcap, and in creating the spool directory for BSD UNIX, and in running lpadmin command for System V UNIX.
Preparation
The installation shell script can be used on the following three kinds of work­stations. This installation shell script cannot be used with other types of work­stations.
Solaris 2.5.1, 2.6, 7, 8
HP-UX 8.x, 9.x, 10.x, 11.0
Red Hat Linux 6.x, 7
When you use NIS (Network Information Service) or DNS, you should con­figure the server before running this installation shell script.
For more information about the configuration utility of your OS, see the man­ual that came with the utility.

Assigning the IP Address

Preparation
Configure the machine to use the TCP/IP protocol.
Make sure that the TCP/IP protocol on the machine is set to active. (The default is active.)
Assign an IP address to the machine and configure the other settings re­quired for using the TCP/IP protocol.
Reference
For more information about how to make the above settings, see Printer Ref­erence 1 that comes with this machine.
Checking the IP address configuration
Follow the procedure below to make sure that the IP address has been config­ured correctly.
The following procedure uses the sample IP address: 192.168.15.16.
Enter the following:
A
# ping 192.168.15.16
If the address has been configured correctly, the following message appears.
192.168.15.16 is alive
If the address has been configured incorrectly, the following message appears.
2
no answer from 192.168.15.16
Using the Installation Shell Script
Note
When you use NIS, the IP address and host name are written to /etc/hosts
on the master server. When you use DNS, the information is written to a data file on the name server. After writing the host name and IP address to the file, make sure that the configuration is correct by pinging the host name.
# ping host_name
If the host name is registered with an IP address, the server can access the
printer using its host name instead of its IP address.

Installing the Installation Shell Script

After configuring the printer IP address, follow the procedure below to install the installation shell script and set up the workstation printing environment.
The following procedure uses the sample IP address: 192.168.15.16, sample host name: nphost, and sample printer name: np.
Log on to the workstation as the root account.
A
1
Note
If you do not log on as the root, the installation shell script will not run.
Obtain the installation shell script from the CD-ROM labeled “Printer
B
Drivers and Utilities”.
A Move to the directory you want to copy the installation shell script to. B Use the cp command to copy the installation shell script.
# cp {CD-ROM_root}/unix/install install
Run the installation shell script.
C
# sh ./install
Note
Insert a period and slash before the current directory.
Enter a number to select the workstation OS that you are using.
D
Network printer install shell Copyright RICOH CO.,LTD. 1994-2000 Select your workstation OS type.
1. SunOS 4.x.x
2. Solaris 2.x, Solaris 7-8 (SunOS5.x)
3. HP-UX 8.x,9.x,10.x,11.x
4. UnixWare
5. Linux
6. other
Enter <1-6>:
2
3
1
UNIX Configuration
Note
SunOS and UnixWare appear on the screen, but they are not supported.
Use Solaris, HP-UX or Linux.
If you select “6, the installation shell script exits.
Enter the IP address of the printer.
E
Enter Printer host IP address <xxx.xxx.xxx.xxx> [re­turn=skip]:
192.168.15.16
Note
The IP address will be added to the /etc/hosts file.If the host name of the printer has already been configured, press the {RE-
TURN} key. Nothing will be added to the /etc/hosts file.
Enter the host name of the printer.
F
Enter Printer host name : nphost
Note
The host name will be added to the /etc/hosts file.
If no IP address was entered in step
Configure the printer name.
G
Enter logical printer name [default nphost_prn]
If you want to use the default name, press the {RETURN} key. Enter a new name, if you want to use a different one.
Note
The host name entered in step
Set the print option.
H
Enter remote printer name [default lp]:
Press the {RETURN} key, print with PCL or PostScript is enabled.
If you enter text, text printing is enabled. If you enter text, printing with PCL and PostScript is unavailable.
Enter remote printer name [default lp]:text
Limitation
You can enter up to 14 characters for HP-UX 11.0, 256 for Solaris 8, and 51
for Red Hat Linux 6.2.
When printing with the lp command, use ( _ ) instead of ( = ) and ( ; ) in-
stead of ( , ) for operating systems that cannot use ( = ) and ( , ) such as So­laris 2.5 or later.
, nothing is added to the /etc/hosts file.
E
followed by “_prn” appears in “default”.
F
After the setup with the installation shell script is complete, and if you enter the IP address in step
hosts file is modified
4
, the following message appears.
E
Using the Installation Shell Script
Perform a test print to make sure that the settings are correct.
I
# lpr -Pnp file_name # lp -d np file_name
For more information about lpr and lp, see P.10 Printing Method”.
Deleting the printer
To print using the lp or lpr command, the option specified when the installation shell script is executed is used. Change the option in accordance with the work­station you are using.
❖❖❖❖ BSD UNIX workstation, Linux
Delete the printer entry from /etc/printcap, then execute the installation shell script again. Select options during the setup process. Or, search the printer entry from /etc/printcap, and change its rp capability to option setting.
❖❖❖❖ Solaris, HP-UX
Delete the printer entry, and then execute the installation shell script again. Select options during the setup process. To delete the printer entry, follow the procedure below.
Stop the scheduler.
A
# /usr/sbin/lpshut
Delete the printer.
B
# /usr/sbin/lpadmin -x printer_name
1
Restart the scheduler.
C
# /usr/lib/lpsched
5
1
UNIX Configuration

After Executing Install Shell

The printing environment is set up automatically when the installation shell script is executed.
This section describes the set up contents when the installation shell script is ex­ecuted under Red Hat Linux, Solaris and HP-UX.
Linux
❖❖❖❖ Adding the IP address and host name to the /etc/hosts file
The following line is added to the /etc/hosts file. The IP address and printer host name which you previously entered in the installation script will be used.
192.168.15.16 nphost # Network Printer
192.168.15.16 is the IP address, nphost is the host name, from # to the end of the line is a comment.
Note
The /etc/hosts file contains a list of the IP addresses and host names of all
of the hosts communicating on the network. Each entry is delimited with a space or a tab, and each line is separated with a return.
If you do not use NIS or DNS, you must manually enter the IP address and
host name of each workstation using the network printer in the /etc/hosts file.
❖❖❖❖ Adding an entry to the /etc/printcap file
The following entry is added to the /etc/printcap file, which is the configu­ration for printing with the lpr command. In order to use the lpr command to print, you need to edit the /etc/hosts file, add an entry for the network print­er to the /etc/printcap file and create a spool directory.
##PRINTTOOL3## REMOTE np|Network Printer:\ :rm=nphost:\ :rp=option:\ :sd=/var/spool/lpd/npd:\ :lf=/var/log/npd-errs:\ :sh:\ :mx#0:
6
Using the Installation Shell Script
Note
The /etc/printcap file is used to register the name and attributes of a print-
er. You must make an entry for the network printer in the /etc/printcap file of all workstations using the network printer.
Each entry is separated with colons into several fields. The syntax is to be-
gin each entry with a colon, followed by the entry, and then end with a co­lon, a back slash, and then a return.
The first line of the field is the name of the printer. You use this name when
logging on to a network printer from a workstation. You can define several different names by separating each name with the “|” character.
The second and following lines contain the printer's attributes. Attributes
of the printer are represented by two character names referred to as capa­bilities. For more information about capabilities, see the following table.
Capability Explanation Value Required for the Network
Printer.
rm Host name of the printer The host name that was registered
with the /etc/hosts file.
sd Path name of the spool directory. Path name of the spool directory
that is to be created.
1
lf Path name of the log file. Path name of the log file.
For example /var/log/lpd-errs.
mx Maximum file size which the di-
rectory can copy. When set to 0, the size is unlimited. If nothing is en­tered, the size is set to 1024 k.
None or something suitable.
❖❖❖❖ Making the spool directory
Create a spool directory under /var/spool/lpd. The name of the spool direc­tory should be the name of the printer followed by a “d”.
Note
The spool directory is used to control the data used for a print job. For ex-
ample, when a print job is created, a temporary copy of the file data used for printing is created in the spool directory. All workstations accessing the network printer need to have a spool directory for the network printer.
A spool directory should be made for every network printer entry listed in
the /etc/printcap file.
The spool directory should normally be made under /var/spool/lpd and
the name should match that listed under the sd capability in /etc/print­cap. Change the owner and group of the directory to root and lp. The fol­lowing examples show how to make a /var/spool/lpd/npd spool directory.
# cd /var/spool/lpd # mkdir npd # chown root npd # chgrp lp npd
7
1
UNIX Configuration
❖❖❖❖ Making the log file
Error messages are logged to a file created in the /var/log directory. The log file name is the printer name followed by “d-errs”.
Note
The log file is used for logging some errors or warning messages by the
UNIX workstation.
The log file should be made for every network printer entry listed in the /
etc/printcap file.
The log file should normally be made under /var/log directory and the
name should match that listed under the lf capability in /etc/printcap. Change the owner and group of the log file to root and lp. The following examples show how to make a /var/log/npd-errs file.
# cd /var/log # touch npd-errs # chown root npd-errs # chgrp lp npd-errs
Solaris
❖❖❖❖ Adding the IP address and host name to the /etc/hosts file
The following line is added to the /etc/hosts file. The IP address and printer host name which you previously entered in the installation script will be used.
192.168.15.16 nphost # Network Printer
192.168.15.16 is the IP address, nphost is the host name, from # to the end of the line is a comment.
Note
The /etc/hosts file contains a list of the IP addresses and their host names
of all of the hosts communicating on the network. Each entry is delimited with a space or a tab, and each line is separated with a return.
If you do not use NIS or DNS, you must manually enter the IP address and
host name of each workstation using the network printer in the /etc/hosts file.
❖❖❖❖ Registering the printer
The installation shell script registers the printer as a remote printer.
If your workstation is Solaris 2.5.1, register the print server and print client
A
to the print service.
# lpsystem -t bsd -R 0 -y ″″″Network Printer″″″″ nphost
Register the printer as a remote printer.
B
# lpadmin -p np -s nphost!"option" -T dump -I any
np is the printer name, nphost is the host name.
lp will be assigned, if the device option is not used.
When printing with the lp command, use ( _ ) instead of ( = ) and ( ; ) instead of ( , ) for operating systems that cannot use ( = ) and ( , ) such as Solaris 2.5 or later.
8
Using the Installation Shell Script
If your workstation is Solaris 2.5.1, set the print job to active so that it can
C
be accepted by the print queue.
/usr/lib/accept np
If your workstation is Solaris 2.5.1, set the print job to active to print.
D
/usr/lib/enable np
HP-UX
❖❖❖❖ Adding the IP address and host name to the /etc/hosts file
The following line is added to the /etc/hosts file. The IP address and printer host name which you previously entered in the installation script will be used.
192.168.15.16 np # Network Printer
192.168.15.16 is the IP address, np is the host name, from # to the end of the line is a comment.
Note
The /etc/hosts file contains a list of the IP addresses and their host names
of all of the hosts communicating on the network. Each entry is delimited with a space or a tab, and each line is separated with a return.
1
If you do not use NIS or DNS, you must manually enter the IP address and
host name of each workstation using the network printer in the /etc/hosts file.
❖❖❖❖ Registering the printer
The installation shell script registers the printer as a remote printer following the procedure below.
Stop the scheduler.
A
/usr/lib/lpshut
Register the printer.
B
/usr/lib/lpadmin -Pnp -v/dev/null -mrmodel
-ormnphost -orp"option" -ob3
np is the printer name, nphost is the host name.
lp will be assigned, if the Device option is not used.
Set the printer so that the print job is listed in the print queue.
C
/usr/lib/accept np
Set the printer to perform the print job.
D
/usr/lib/enable np
Restart the scheduler.
E
/usr/lib/lpsched
9
UNIX Configuration

Printing Method

1

Printing with lpr, lp

Execute one of the following commands according to the type of workstation be­ing used:
❖❖❖❖ BSD UNIX workstation, Linux
% lpr -Pprinter_name file_name [file_name...]
For example: printer name is np, file names are file1 and file2
% lpr -Pnp file1 file2
❖❖❖❖ Solaris, HP-UX
% lp -d printer_name file_name [file_name...]
For example: printer name is np, file names are file1 and file2
% lp -d np file1 file2
Note
printer_name is the name that was entered when executing the installation
shell script.
You can use wild cards ( * or ? ) for the file name.
10

Printer Status

Printer Status
You can use the following commands to have information and the printer status displayed or copied to a file.
Use the lpq or lpstat command to display the status of the printer or information about print jobs.

Viewing the Print Job Status with lpq and lpstat

❖❖❖❖ BSD UNIX workstation, Linux
% lpq -Pprinter_name
For example: Printer name is np
% lpq -Pnp
❖❖❖❖ System V UNIX, Solaris, HP-UX
% lpstat -o printer_name
For example: Printer name is np
% lpstat -o np
1
Note
In case of HP-UX, do not put a space between -o and printer name”.
11

INDEX

B
BSD UNIX workstation, Linux
,
11
,
5
10
Deleting the printer Printer Status Printing Method
C
configuration
UNIX
D
,
,
1
Deleting the printer
,
5
I
installation shell script
,
2
P
Printer Status Printing Method Printing with lpr, lp
,
11
,
10
,
10
S
Solaris, HP-UX
,
,
11
5
10
Deleting the printer Printing Method
System V UNIX, Solaris, HP-UX
Printer Status
,
U
,
UNIX
1
12
EE GB UE USA B405
Copyright © 2001
UNIX Supplement
EE GB
UE USA B405-8680
Loading...