From: Chris Eckert on
hi all,

(solaris 10 u8, also see older post
in this group)

after failing to install my hp laserjet 1320 nw
using the java desktop system "add printer..."
feature in settings > system settings
due to some strange java error someone
suggested to simply install from the command
line as root:

lpadmin -p hplj1320nw -v /dev/null -m netstandard_foomatic -n
/usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_1320-Postscript.ppd.gz
-o dest=192.168.11.230:9100 -o Duplex=DuplexNoTumble -o banner=never -T
PS -I postscript

then: enable hplj1320nw
then: accept hplj1320nw

all that works, however:

- when printing a text file using 'lp file.txt' nothing happens

- lpstat -o all shows nothing, lpq shows the job
and states "hplj1320nw: stopped:
moving-to-paused", whatever that means,
cancel 4 fails and states "could not connect
to service for request id 4: not-found",
lprm 4 succeeds

- trying to print a text file from the gui
using gedit fails as the printing dialogue
doesn't even show the newly created
printer for selection!!

- svcs -a | grep print shows (among others)
svc:/application/print/server:default with
"online" status

what's wrong here?? i cannot believe
that it's impossible to install a network
printer from the gui as well as from the
command line. this definitely worked under u7
with the gui and a few mouse clicks...

thanks for your help

chris
From: Hugo on
Hi,

Can you confirm that you do indeed have the file
'/usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_1320-Postscript.ppd.gz'
in existence?

and if it does exist, copy it to /tmp/ and run a "gunzip
HP-LaserJet_1320-Postscript.ppd.gz" - whats the result file(s)/folder(s)?

Also, try removing the printer (lpadmin -x <printer>) and then re-adding it
using the following commands;

lpadmin -p hptest -o nobanner, protocol=tcp, dest=192.168.1.230:9100 -m
netstandard -v /dev/null
enable hptest
accept hptest

try your text file again and see if anything happens, if that works, try
your gedit.

Get back to me with the results from that test and the 'gunzip' command.

Thanks
Cya
Hugo
From: John D Groenveld on
In article <1413849118295303075.777992eckert-alphanet.ch(a)news1.open-news-network.org>,
Chris Eckert <eckert(a)alphanet.ch> wrote:
>all that works, however:
>
>- when printing a text file using 'lp file.txt' nothing happens
>
>- lpstat -o all shows nothing, lpq shows the job
>and states "hplj1320nw: stopped:
>moving-to-paused", whatever that means,
>cancel 4 fails and states "could not connect
>to service for request id 4: not-found",
>lprm 4 succeeds

# touch /tmp/foobar.out
# chown lp /tmp/foobar.out
# chmod 600 /tmp/foobar.out
# lpadmin -p foobar -v /tmp/foobar.out -m standard_foomatic \
-n /usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_1320-Postscript.ppd.gz \
-o dest=HPHP1320NW_IP_ADDRESS:9100 -o Duplex=DuplexNoTumble \
-o banner=never -T PS -I postscript
# /bin/enable foobar
# /usr/sbin/accept foobar
# lp -d foobar /etc/release

Does /tmp/foobar.out contain a 500+ lines of PostScript
including these four:
()0(Solaris 10 10/09 s10x_u8wos_08a X86)23 L
()0(Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.)11 L
()0(Use is subject to license terms.)24 L
()0(Assembled 16 September 2009)27 L


>- trying to print a text file from the gui
>using gedit fails as the printing dialogue
>doesn't even show the newly created
>printer for selection!!

I needed to logout and log back into JDS/GNOME for gedit(1)
to see my new printer.

John
groenveld(a)acm.org
From: Chris Eckert on
"Hugo" <hugo(a)idontwantspam.com> wrote:
> Hi,
>
> Can you confirm that you do indeed have the file
> '/usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_1320-Postscript.ppd.gz'
> in existence?


yes, the file exists.


> and if it does exist, copy it to /tmp/ and run a "gunzip
> HP-LaserJet_1320-Postscript.ppd.gz" - whats the result
> file(s)/folder(s)?


already did that, makes no difference.

btw: the gz file expands to a single ppd file
containing printer descriptions, as one
would expect.


> Also, try removing the printer (lpadmin -x <printer>) and then
> re-adding it
> using the following commands;
>
> lpadmin -p hptest -o nobanner, protocol=tcp, dest=192.168.1.230:9100
> -m
> netstandard -v /dev/null
> enable hptest
> accept hptest
>
> try your text file again and see if anything happens, if that works,
> try
> your gedit.


ok will do that and report back.

chris

--
Chris Eckert (mobile)
From: Chris Eckert on
On 2010-05-12 03:13:48 +0200, groenvel(a)cse.psu.edu (John D Groenveld) said:

> In article
> <1413849118295303075.777992eckert-alphanet.ch(a)news1.open-news-network.org>,
Chris
>
> Eckert <eckert(a)alphanet.ch> wrote:
>> all that works, however:
>>
>> - when printing a text file using 'lp file.txt' nothing happens
>>
>> - lpstat -o all shows nothing, lpq shows the job
>> and states "hplj1320nw: stopped:
>> moving-to-paused", whatever that means,
>> cancel 4 fails and states "could not connect
>> to service for request id 4: not-found",
>> lprm 4 succeeds
>
> # touch /tmp/foobar.out
> # chown lp /tmp/foobar.out
> # chmod 600 /tmp/foobar.out
> # lpadmin -p foobar -v /tmp/foobar.out -m standard_foomatic \
> -n
> /usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_1320-Postscript.ppd.gz
> \
> -o dest=HPHP1320NW_IP_ADDRESS:9100 -o Duplex=DuplexNoTumble \
> -o banner=never -T PS -I postscript


just to make sure:

HPHP1320NW_IP_ADDRESS:9100 means i substitute the whole string
HPHP1320NW_IP_ADDRESS with the actual ip address of the network
printer, right?


just to make once again sure: -m standard_foomatic

in my original post this was -m netstandard_foomatic
what's correct now?


> # /bin/enable foobar
> # /usr/sbin/accept foobar
> # lp -d foobar /etc/release
>
> Does /tmp/foobar.out contain a 500+ lines of PostScript
> including these four:
> ()0(Solaris 10 10/09 s10x_u8wos_08a X86)23 L
> ()0(Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.)11 L
> ()0(Use is subject to license terms.)24 L
> ()0(Assembled 16 September 2009)27 L
>
>
>> - trying to print a text file from the gui
>> using gedit fails as the printing dialogue
>> doesn't even show the newly created
>> printer for selection!!
>
> I needed to logout and log back into JDS/GNOME for gedit(1)
> to see my new printer.

i will test the above and report back.

thanks.
chris

--
CHRIS ECKERT
Ziemer Ophthalmic Systems
www.ziemergroup.com