Page 121 / 154 Scroll up to view Page 116 - 120
116
chown
bin.daemon /var/spool/hp5l
chmod
775 /var/spool/hp5l
5.
Add an entry for the printer to
/etc/printcap
, similar to the following:
hp5l:\
:lp=:sd=/var/spool/hp5l :mx#0:\
:rm=ps-142634:rp=ps-142634-p1:
The meaning of each of the entries is described below. The directory path in the
sd
spool directory entry should match the directory name you created above. If
your entry requires more than one line you can escape the newline with a
backslash.
6.
Issue the command
lpc
start
hp5l
to start a spool daemon for the printer. The printer will now be available for use.
7.
Optionally, add another printcap entry (and issue another
lpc start
command)
for a second printer, using the
port_TEXT
port. This second printer name can be
used for printing text files.
Entries in
/ect/printcap
begin with a name for the printer or a list of name,
separated by | (a vertical bar). The entries used above are:
lp=
The lp entry is used to specify a local printer device.
Since the printer is a remote printer, this entry should be blank.
Page 122 / 154
117
sd=dir
The location of the printer’s local spool directory.
mx#blocks
The limit for print job files in the local spool directory;
0 means no limit.
rm=address
The host where the remote printer is located, in this case
the D-Link print server.
rp=printer
The name of the printer on the remote host.
For the D-Link print server, the port name should be used.
Note: this entry is case-sensitive.
Page 123 / 154
118
Printing from SCO Unix System V/386
To allow printing to a printer attached to your D-LINK network print server from a
SCO Unix System V/386 host.
1.
Login as the superuser (root).
2.
Add an entry for the print server in the host’s
/etc/hosts
file, giving a hostname
for the print server’s IP address. A line in
/etc/hosts
contains an IP address
and one or more aliases for the host. For example:
202.39.74.40
ps-142634
ps-142634.dlink.com.tw
If you use DNS (the Domain Naming Services protocol), you can add an address
record entry to your DNS database for the print server.
3.
Change to the
/dev
directory, and issue the command
mkdev rlp
4.
The script will ask:
Do you want to install or delet remote printing (i/d/q)?
Answer
i
and press Enter to continue.
5.
The script will ask:
Do you want to change the remote printer description file
/etc/printcap (y/n)?
Answer y and press Enter to continue.
6.
The script will ask:
Please enter the printer name (q to quit):
Enter an alias for the printer on the local machine and press Enter. This name
should be the same as the destination port name.
Page 124 / 154
119
7.
Answer r (remote printer) to the question
Is printer a remote printer or a local printer (r/l)?
8.
When prompted with the question:
Please enter the name of the remote host that printer is attached
to:
then enter the address of the D-Link print server. You can use the name you
added to /etc/host in the step above.
9.
Confirm that your entries are correct.
Is this correct? (y/n)
10.
Answer the question:
Would you like this to be the system default printer? (y/n)
11.
When you are done adding remote printers, enter q for the printer name.
12.
Answer y to the question
Do you want to start remote daemon now (y/n)?
Once remote printing is set up, you can use the
lp
command to print jobs to the new
printer. For more information, consult your SCO Unix documentation.
Page 125 / 154
120
Printing from Solaris
To allow printing from a Sun Solaris workstation,
1.
Log in as the superuser (root).
2.
Add an entry for the print server in the host’s
/etc/hosts
file, giving a hostname
for the print server’s IP address. A line in
/etc/hosts
contains an IP address
and one or more aliases for the host . For example:
202.39.74.40
ps-142634
ps-142634.dlink.com.tw
If you use DNS (the Domain Naming Services protocol), you can add an address
record entry to your DNS database for the print server.
3.
In OpenWindows, start the
admintool
program.
4.
Click on the
Printer Manger
icon.
5.
From the
Edit
menu, select
Add Print
, then
Add Access to Remote Printer…
6.
Enter values for the fields as follow:
Printer Name
This field should contain the name of the printer port you wish to
use. The field is case-sensitive.
Printer Server
This field should contain the IP address of the print server, or
the alias name you added in step 2.
Printer Server OS
This field should be set to BSD.
7.
Confirm the addition.
8.
Optionally repeat the addition to add another printer for printing text files,
with
_TEXT
appended to the port name.
Once you have added the new printer, you can use the
lp
command to print files to
the printer. Consult your Solaris documentation for details.

Rate

4 / 5 based on 1 vote.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top