TCPIP Printer in Unix

How do we install a Printer connected directly to network with a private IP of 192.9.168.109 on a SUN system with IP of 192.9.168.2 so that we can use it with the lp command. The printer is a standard Line Matrix Printer. I would like to know how to add it from COMMANDLINE also.

Thanx

To set up a print server: In root
command-line> admintool &
Browse --> Printers
Add --> Local Printer
and add the printer name, etc and the correct 'PORT'

on the command line:
#Shut-down lp scheduler
/usr/sbin/lpshut

#Id new printer to lp system
lpadmin -p Printername -i /usr/lib/lp/model/standard
-l/dev/term/11

whereby the Printername is the name you've assigned to the printer, and /dev/term/11 is the port its connect to.

#Resume print servers
/sur/lib/lpshed

#Allow printer to accept requests
accept Printename

#enable printer
enable Printername

correction: to resume print services is:

/usr/lib/lpsched

and not:

/sur/lib/lpshed

You can also edit your original messages when a typo occurs. The edit button is right next to the quote button. I am good friends with the edit button; I visit it often! :slight_smile:

/edit: replaced "type" with "typo". :smiley: