Ricoh Aficio AP400N Owner's manual

UNIX Supplement

Introduction
To get maximum versatility from this machine all operators should carefully read and follow the instruc-
tions in this manual. Please keep this manual in a handy place near the machine.
Please read the Safety Information before using this machine. It contains important information related
to USER SAFETY and PREVENTING EQUIPMENT PROBLEMS.
Important
Contents of this manual are subject to change without prior notice. In no event will the company be li-
able for direct, indirect, special, incidental, or consequential damages as a result of handling or oper-
ating the machine.
Notes
For use with the following machines
• RICOH Aficio AP400
• RICOH Aficio AP400N
• SAVIN MLP25
• SAVIN MLP25N
• Gestetner P7325
• Gestetner P7325N
• nashuatec P7325
• nashuatec P7325N
• Rex-Rotary P7325
• Rex-Rotary P7325N
• Lanier LP025
• Lanier LP025n
• Lanier LP026
• Lanier LP026n
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 trademark of Hewlett-Packard Company.
LINUX is a trademark of Linus Torvalds.
RED HAT is a registered trademark of Red Hat, Inc.
Other product names used herein are for identification purposes only and might be trademarks of their
respective companies. We disclaim any and all rights in those marks.

i
TABLE OF CONTENTS
How to Read This Manual .....................................................................................1
1. UNIX Configuration
Before Setup...........................................................................................................3
Using the lp/lpr commands.........................................................................................3
Using the rsh/rcp/ftp commands ................................................................................ 3
Using the Installation Shell Script........................................................................4
Assigning the IP Address ...........................................................................................5
Executing the Installation Shell Script ........................................................................6
After Executing Installation Shell Script ...................................................................10
Printing Method.................................................................................................... 15
Printing with lpr, lp....................................................................................................15
Printing with rsh, rcp, ftp ..........................................................................................16
Printer Status .......................................................................................................18
Viewing the Print Job Status with lpq and lpstat ......................................................18
Viewing the Printer Status with rsh and ftp ..............................................................18
Copying Information to a File ...................................................................................19
Specifying the Device Option .............................................................................20
Configuring the Device Option .................................................................................20
Printer Language......................................................................................................22
Text Printing .............................................................................................................23
Input Tray ................................................................................................................. 23
Paper Size................................................................................................................24
Paper Type...............................................................................................................25
Output Tray ..............................................................................................................26
Copies ......................................................................................................................26
Collating ...................................................................................................................27
Duplex Printing.........................................................................................................27
Binding .....................................................................................................................28
Orientation................................................................................................................29
Resolution ................................................................................................................29
Symbol Set...............................................................................................................30
INDEX......................................................................................................... 32

ii

1
How to Read This Manual
Symbols
In this manual, the following symbols are used:
R
WARNING:
This symbol indicates a potentially hazardous situation which, if instructions
are not followed, could result in death or serious injury.
R
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.

2

3
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
A
AA
AUse the installation shell script to register the device option, as well as the
printer host name and the IP address.
⇒p.4 “Using the Installation Shell Script”
B
BB
BStart printing.
⇒p.15 “Printing Method”
Using the rsh/rcp/ftp commands
A
AA
AEdit the host file to register the printer host name and the IP address.
B
BB
BStart printing.
⇒p.15 “Printing Method”
Reference
See p.10 “After Executing Installation Shell Script” for host file editing.
Note
❒If you cannot edit the host file, use the install shell script to register the host
name.

UNIX Configuration
4
1
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 the lpadmin com-
mand for System V UNIX.
Preparation
The installation shell script can be used on the following workstations: (it can-
not be used with other types of workstations.)
•SunOS 4.x.x, SunOS 5.x
•Solaris 2.x, Solaris 7, 8
•HP-UX 8.x, 9.x, 10.x, 11.x
•Redhat Linux 5.2, 6.x, 7.0, 7.1, 7.2
•OpenServer 5.06
•UnixWare 7.1.1
Depending on the security setting when installed, rsh/rcp/% telnet may not
be usable with RedHat 7.1 or later. Change the security level to the level that
allows use of rsh/rcp/% telnet. For more information about how to change
the setting, see the operating instructions for RedHat.
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.

Using the Installation Shell Script
5
1
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 the Printer
Reference.
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.
A
AA
AEnter the following:
# 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 ap-
pears.
no answer from 192.168.15.16
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.

UNIX Configuration
6
1
Executing the Installation Shell Script
After having configured the printer IP address, follow the procedure below to
execute the installation shell script and set up the workstation printing environ-
ment.
Preparation
Before executing the installation shell script, the IP address, the host name
and the printer name are required.
Following procedures use sample IP address: 192.168.15.16, sample host
name: nphost and sample printer name: np.
Note
❒Use ftp to get the installation shell script from the printer.
A
AA
ALog on to the workstation as root.
Note
❒If you do not log on as root, the installation shell script will not run.
B
BB
BGet the installation shell script from the printer.
AMove to the directory you want to copy the installation shell script to.
BUse ftp to connect to the printer with the IP address that you just config-
ured.
# ftp 192.168.15.16
Connected to 192.168.15.16
220 printer FTP server ready.
name (192.168.15.16:root:)
CWhen a user name is requested, leave blank and press the {
{{
{RETURN}
}}
}(
{
{{
{ENTER}
}}
}) key.
331 Password required for root.
Password:
DWhen a password is requested, leave blank and press the {
{{
{RETURN}
}}
}(
{
{{
{ENTER}
}}
}) key.
230 User root logged in.
ftp>
EType the following to get the installation shell script.
ftp> get install
FClose the ftp session.
ftp> bye
221 Goodbye.
#

Using the Installation Shell Script
7
1
C
CC
CRun the installation shell script.
# sh ./install
Note
❒Insert a period and slash before the current directory.
D
DD
DEnter a number to select the workstation OS that you are using.
Network printer install shell
Copyright RICOH CO.,LTD. 1994-2003
Select your workstation OS type
1.SunOS 4.x.x
2.Solaris 2.x, Solaris 7-8 (SunOS5.x)
3.HP-UX
4.UnixWare
5.Linux
6.OpenServer
7.Quit
Enter <1-7>:
2
Note
❒SunOS, UnixWare and OpenServer appear on the screen, but they are not
supported. Use Solaris, HP-UX or Linux.
❒If you select “7”, the installation shell script exits.
E
EE
EEnter the IP address of the printer.
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}
}}
}( {
{{
{ENTER}
}}
}) key. Nothing will be added to the /etc/hosts file.
F
FF
FEnter the host name of the printer.
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 E, nothing is added to the /etc/hosts
file.

UNIX Configuration
8
1
G
GG
GConfigure the printer name.
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 Ffollowed by “_prn”appears in “default”.
H
HH
HSet the print option.
Enter remote printer name [default lp]:
•Press the {
{{
{RETURN}
}}
}( {
{{
{ENTER}
}}
}) key, and print with PCL or PostScript is en-
abled.
•If you want to set the device option, enter the option parameter.
Enter remote printer name [default lp]:tray=tray1
For more information about the device option, see p.20 “Specifying the De-
vice Option”.
•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 Red
Hat Linux 7.0, 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.
After the setup with the installation shell script is complete, and if you enter
the IP address in step E, the following message appears.
hosts file is modified
I
II
IPerform a test print to make sure that the settings are correct.
# lpr -Pnp file_name
# lp -d np file_name
For more information about lpr and lp, see p.15 “Printing Method”.

Using the Installation Shell Script
9
1
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, and 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.
AStop the scheduler.
# /usr/sbin/lpshut
BDelete the printer.
# /usr/sbin/lpadmin -x printer_name
CRestart the scheduler.
# /usr/lib/lpsched

UNIX Configuration
10
1
After Executing Installation Shell Script
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:
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.
❒You must make an entry for each printer option when using the same
printer.

Using the Installation Shell Script
11
1
❒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.
❖
❖❖
❖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/printcap.
Change the owner and group of the directory to root and lp. The following
examples show how to make a /var/spool/lpd/npd spool directory.
# cd /var/spool/lpd
# mkdir npd
# chown root npd
# chgrp lp npd
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.
rp Optional specification
“lp”will be assigned, if the option
is not used.
Select options for printing. For
more information about available
options, see p.20 “Specifying the
Device Option”.
sd Path name of the spool directory. Path name of the spool directory
that is to be created.
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.

UNIX Configuration
12
1
❖
❖❖
❖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.
AIf your workstation is Solaris 2.5.1, register the print server and print client
to the print service.
# lpsystem -t bsd -R 0 -y ″
″″
″Network Printer″
″″
″nphost

Using the Installation Shell Script
13
1
BRegister the printer as a remote printer.
# lpadmin -p np -s nphost!"option" -T dump -I any
•np is the printer name, nphost is the host name. For more information
about “option”, see p.20 “Specifying the Device Option”.
“lp”will be assigned, if the 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.
CIf your workstation is Solaris 2.5.1, set the print job to active so that it can
be accepted by the print queue.
/usr/lib/accept np
DIf your workstation is Solaris 2.5.1, set the print job to active to print.
/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.
❒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.
AStop the scheduler.
/usr/lib/lpshut
BRegister the printer.
/usr/lib/lpadmin -Pnp -v/dev/null -mrmodel
-ormnphost -orp"option" -ob3
•np is the printer name, nphost is the host name.
For more information about “option”, see p.20 “Specifying the Device
Option”.
“lp”will be assigned, if the option is not used.

UNIX Configuration
14
1
CSet the printer so that the print job is listed in the print queue.
/usr/lib/accept np
DSet the printer to perform the print job.
/usr/lib/enable np
ERestart the scheduler.
/usr/lib/lpsched

Printing Method
15
1
Printing Method
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.
❒The message “print session full”appears when the maximum number of
print requests has been reached (max. 5 sessions (Job Spool setting available)).
You should try to print again when the number of requests is less than five.
You can check the number of print requests using % telnet. For more informa-
tion about using % telnet, see the Printer Reference.
❒The number of print sessions does not change, whether you increase or re-
duce the machine's total memory size.

UNIX Configuration
16
1
Printing with rsh, rcp, ftp
You can also print using the rsh, rcp and ftp commands.
Note
❒Print using the format that the printer can support.
❒The message "print session full" appears when the maximum number of print
requests has been reached. *1
*1 The maximum number of print session differs depending on printer's total mem-
ory size. When the printer has standard memory (32MB), one print session is
available. When the printer has optional memory (total 96MB), the maximum
number of print sessions available is five (ftp:three).
rsh
% rsh host_name print < file_name
For example:
host name is nphost, file name is file1
% rsh nphost print < file1
Note
❒“host_name”is the name entered when executing the installation shell script.
❒If you use a HP-UX, use the remsh command instead of rsh.
rcp
❖
❖❖
❖To specify and print the file
% rcp file_name [file_name...] host_name:
For example:
host name is nphost, file names are file1 and file2
% rcp file1 file2 nphost:
❖
❖❖
❖To print all of the files in a directory
% rcp -r directory_name host_name:
For example:
host name is nphost, directory name is directory1
% rcp -r directory1 nphost:
Note
❒“host_name”is the name entered when executing the installation shell script.
❒You can use wild cards ( * or ? ) for the file name.
Table of contents
Other Ricoh Printer manuals

Ricoh
Ricoh Laser AP1600 User manual

Ricoh
Ricoh SP 230DNw User manual

Ricoh
Ricoh G1168604A User manual

Ricoh
Ricoh SP 110 SU User manual

Ricoh
Ricoh D649 Quick start guide

Ricoh
Ricoh Infoprint 4100 User manual

Ricoh
Ricoh J012 User manual

Ricoh
Ricoh Ri 100 Pink User manual

Ricoh
Ricoh Aficio MP W3600 Owner's manual

Ricoh
Ricoh MP 2501SP Instruction manual

Ricoh
Ricoh SP 320DN User manual

Ricoh
Ricoh Priport JP5000 User manual

Ricoh
Ricoh BP20 - Aficio B/W Laser Printer User manual

Ricoh
Ricoh Aficio AP4510 User manual

Ricoh
Ricoh FW830 User manual

Ricoh
Ricoh SP150 series User manual

Ricoh
Ricoh MP CW2201 Quick start guide

Ricoh
Ricoh LCIT RT5130 Quick start guide

Ricoh
Ricoh Pro 8100S User manual

Ricoh
Ricoh Kir-P1 Service manual