I can add a network printer with ADMINTOOL. However, I have a problem to add a network printer using lpadmin on my Sparc Solaris 8 box.
Here's the detail:
lpadmin -p printername
lpadmin: ERROR: Missing -U or -v option.
To Fix: Local printer must have a port defined (-v option)
or have dial-out instructions (-U option).
I know I have to use the -v option. However, how can I create a special device file in order to specify the device path? I have looked into the man pages but it just tells me that -v is associated with device only. Can someone please help me on this?
I find the following steps working for me to connect to a network printer and I'd like to share it with all of you.
steps:
lpsystem -t bsd printer-server-name .
(register remote system with the print service)
lpadmin -p printer-name -s printer-server-name!printer-name.
(configure the printer/ services)
lpadmin -d printer-name.
(set up default printer)
============
By the way, when I do man lpsystem, the system docs tells me that lpsystem is considered obsolete. I have yet to find another way to do it, other than admintool, however.