Executing the Installation Shell Script
Having configured the printer IP address, follow the procedure below to execute the installation shell script and set up the workstation printing environment.
Before executing the installation shell script, the IP address, host name, and printer name are required.
Download the installation shell script from our Web site. Keep the installation shell script as local folders.
The following procedures use the sample IP address: 192.168.15.16; sample host name: nphost; and sample printer name: np.
Move to the directory that has kept the installation shell script.
Run the installation shell script.
# sh ./install
Insert a period and slash before the current directory.
Enter a number to select the workstation operating system that you are using.
Network printer install shell
Select your workstation OS type
1. SunOS 4.x.x
2. Solaris 2.x, Solaris 7-9 (SunOS5.x)
3. HP-UX
4. UnixWare
5. Linux
6. OpenServer
7. Quit
2
Enter <1-7>:
If you select "7", the installation shell script ends.
Enter the printer's IP address.
Enter Printer host IP address <xxx.xxx.xxx.xxx> [return=skip]:
192.168.15.16
If the host name of the printer has already been configured, press the [RETURN] ([ENTER]) key. Nothing will be added to the /etc/hosts file.
Enter the printer's host name.
Enter Printer host name : nphost
If no IP address was entered in step 4, nothing is added to the /etc/hosts file.
Configure the printer name.
Enter logical printer name [default nphost_prn]
If you want to use the default name, press the [RETURN] ([ENTER]) key. Enter a new name, if you want to use a different one.
The host name entered in step 5 followed by "_prn" appears in "default".
Set the print option.
Enter remote printer name [default lp]:
Press the [RETURN] ([ENTER]) key, and printing with PostScript is enabled.
If you want to set the device option, enter the option parameter.
Enter remote printer name [default lp]:tray=tray1
If you enter "text", text printing is enabled.
If you enter "text", printing with PostScript is disabled.
Enter remote printer name [default lp]:text
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.
After setup with the installation shell script is complete, and if you entered the IP address in step 4, the following message appears:
hosts file is modified
Perform a test print to make sure that the settings are correct.
# lpr -Pnp file_name
# lp -d np file_name
SunOS, UnixWare, and OpenServer appear on the screen, but they are not supported. Use Solaris, HP-UX, or Linux.
The IP address will be added to the /etc/hosts file.
The host name will be added to the /etc/hosts file.
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.
For details about how to download the installation shell script, contact your sales or service representative.
For details about lpr and lp, see Printing Method.
For details about the device option, see Specifying the Device Option.
Related topics