Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to configure print support for network printer 1

Status
Not open for further replies.

sunny1504

Technical User
Nov 30, 2005
77
0
0
US
I have a network printer at Ip address 192.168.8.23 and want to configure my sun fire v210 to print to the network printer.
The printer name should be configured as sunny.
The printer model is HP Laserjet 4050.

Also I dont have access to GUI neither I can export display.
I need to configure remotely using putty software (ssh).

I am not very familiar with this scenario.

Thanks in advance
 
To setup sunny as Postscript printer do:

Code:
cd /etc/lp/fd
for f in *.fd
do
    lpfilter -f `basename $f .fd` -F $f
done

lpadmin -p sunny \
    -v /dev/null \
    -i /usr/lib/lp/model/netstandard \
    -o dest=192.168.8.23:9100 -o protocol=tcp \
    -o nobanner \
    -I postscript -T PS

/usr/bin/enable sunny
accept sunny

... the Solaris 8 way. I asume the JetDirect Cars uses port 9100 and TCP.

Huebs
===
 
Hi Huebs,

Below is the error.

Also what does the below mentioned part in the script do can you guide me.

cd /etc/lp/fd
for f in *.fd
do
lpfilter -f `basename $f .fd` -F $f
done



UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
UX:lpfilter: ERROR: "basename $f .fd" doesn't have the correct syntax.
TO FIX: Give a name that has 1 to 14 letters,
digits, dashes, or underscores.
Print services started.
printer "sunny" now enabled
destination "sunny" now accepting requests


Thank you very much huebs.
 
You did not use the correct "`" around the basename, you need backticks, not single quotes.

The lpfilter was only ment to build up /etc/lp/filter.table in case you don't have one. Fix the filtertabel, the printer should already work.

If you have Solaris 10, you could also use the .ppd file for your printer.

BTW, the "Cars" should be a "card" ... fat fingers.

Huebs
===
 
You are rigt I did use the incorrect one.
thanks very much.
 
But I am not sure about the 9100 port so I have not used the port number at all.

Also I am not able to print
#lp -d sunny /testprint
request id is sunny-8 (1 file(s))

There is no activity at the printer.



Do the network printer needs to be configured to use some port number(... the Solaris 8 way. I asume the JetDirect Cars uses port 9100 and TCP.
).
I am not very sure
 
can you print the POSIX way:

cat someSmallFileLike/etc/hosts | unix2dos | lp -d IP-Address-of-the-printer:RAW

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Try port 9100, I think it's the right one (Google jetdirect +port).

Delete the printer using "lpadmin -x sunny" and recreate it.

Huebs
===
 
I checked by doing snoop between my system and printer, it does show me traffic between them.

Previously after adding printer I was not able to see network traffic between them.
The posix way works totally fine.
 
Also I have not installed jetdirect or any other package on this system.
 
AFAIK you don't need the jetdirect software.

What does "lpstat -t" say ?
What's in /var/lp/logs/lpsched ?
What's in /etc/lp/printers/sunny/configuration ?

Huebs
===
 
bash-2.05# lpstat -t
scheduler is running
no system default destination
device for sunny: /dev/sunny

sunny accepting requests since Fri Jan 13 15:02:49 2006
printer sunny is idle. enabled since Fri Jan 13 17:59:52 2006. available.

bash-2.05# more /etc/lp/printers/sunny/configuration
Banner: on
Content types: simple
Device: /dev/ssunny
Interface: /usr/lib/lp/model/net_ljx000
Printer type: unknown
Modules:
Options:

 
Sunny,

did you try the lpadmin command I posted above? (The one with port 9100, /dev/null, netstandard ...)
If you did, you might try adding "-o timeout=10" after the "protocol=tcp" (which means raw tcp printing).
If you don't have tcp communication between host and printer, maybe your print jobs do not pass the filters ...

Huebs
===
 
After installing jetadmin I was able to print, the above output pasted was after the jetadmin installation.

Thanks very much for you time.
highly appreciated.
 
Ok, so all the magic is done in the /usr/lib/lp/model/net_ljx000 interface from the jetadmin package ...

Happy printing,
Huebs
===
 
Huebs,

Can you suggest how to increase the font, remove the banner and set the default page to a4.

I have tried lpadmin -p sunny -o A4 -o banner=never
I am not sure if the above works even though in the file mentioned below the banner appears to be off.

bash-2.05# more /etc/lp/printers/sunny/configuration
Banner: off

Can you suggest whether A4 will work and also how to set the font size

I did try to telnet to the network printer on 9100 port which implies that 9100 port is not configured


Also you have mentioned "if there is no tcp communication between host and printer, maybe your print jobs do not pass the filters ...", in the above scenario where print job wont get to printer what can we do to get pass through filter?

Thanks
Sunil D'Souza
 
>> Can you suggest how to increase the font, remove the banner and set the default page to a4.

is it a prosscript page or an ascii page? do you have a grey banner and footer with name of the printing person, date, etc?
the program which is used for this is usually (or was) mp "make pretty", maybe you can find&grep for this? Another widely used program is postprint...

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
I was able to block the banner by using option -o banner=never.

Also I have disabled the banner on the printer by doing telnet to the printer and giving the value banner:0 which disables the banner.

Franz, I will try postprint very soon thanks very much for you precious time.

Kind Regards
Sunil D'Souza
 
@sunny

Welcome. If you already fixed the banner, that's 50%. You can work a lot with filters or override them by using you own converters such as a2ps, mp etc.

btw: are you in relationship to Desmond F. D'Souza?
He was at my company back in the mid '90ies to give some OO trainings, also his colleague Alan Wills, which's training I joined...

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top