Re: USB Printer Prebloms

2020-03-05 Thread Duncan Patton a Campbell
On Wed, 4 Mar 2020 08:38:02 +0100
Sebastien Marie  wrote:

> On Tue, Mar 03, 2020 at 10:57:03PM -0700, Duncan Patton a Campbell wrote:
> > 
> > I've had problems getting an old Brother printer to work (again)
> > and have managed to locate/understand? the source of the problems.
> > 
> > 1. ulpt must be disabled:
> > # config -ef /bsd
> > ukc> disable ulpt
> > ukc> quit
> > 
> > 2. modifying the kernel changes the kernel checksum so to get it to relink
> > sha256 -h /var/db/kernel.SHA256 /bsd
> > 
> > 3. relinking the kernel _re-enables_ ulpt.
> > 
> > So I'm going to have install the build system and run thru the kernel 
> > patches
> > after I figure out how to disable ulpt in the GENERIC.MP build.  
> > 
> > Does this sound like it will work?
> 
> Pratical advice:
> 
> Depending your need, you could also live without kernel relinking (KARL) in
> order to keep ulpt(4) disabled using config(8).
> 
> I would still relink after an upgrade in order to have an unique /bsd (and not
> the one publicly available from internet).
> 
> So it would be:
> - after an upgrade, reboot and wait relinking to be done (a fresh /bsd will be
>   installed)
> - run `config -ef /bsd' and disable ulpt in the new (and unique) kernel
> - do *NOT* regenerate /var/db/kernel.SHA256 (so sha256 will mismatch)
> - reboot again and run on the new /bsd (with ulpt disabled)
> 
> System will complains that relinking failed, but your /bsd with ulpt disabled
> will stay.
> 
Pretty much that's where I'm at.  I'm gonna try again to get ulpt to work.  

Thanks,

Dhu

> 
> Developer advice:
> 
> mpi@ already pointed the right way to deal with it: make ulpt(4) and ugen(4) 
> to
> coexist. This way you could use cupsd (using ugen) with a GENERIC kernel.
> 
> see https://marc.info/?l=openbsd-tech=151618565000531=2 for details
> 
> Thanks.
> -- 
> Sebastien Marie
> 
> 


-- 
Je suis Canadien. Ce n'est pas Francais ou Anglaise.  
 C'est une esp`ece de sauvage: ne obliviscaris, vix ea nostra voco;-) 



Re: USB Printer Prebloms

2020-03-05 Thread Duncan Patton a Campbell
On Wed, 04 Mar 2020 08:05:08 +
Xianwen Chen (陈贤文)  wrote:

> Dear Ducan,
> 
> I just set up a Brother HL-5450DN Series on OpenBSD 6.6 amd64.
> 
> > 1. ulpt must be disabled:
> > # config -ef /bsd
> > ukc> disable ulpt
> > ukc> quit
> 
> I studied tutorials on-line and previous discussions on @misc. I found
> out that for 6.6 amd64, if I disabled ulpt(4), I would not get the
> printer to work. On the contrary, I was able to get the printer to work
> by using ulpt(4).
> 
> For other bits I followed previous tutorials and discussions, that I
> used footmatic-rip and so on.
> 
> Yours sincerely,
> Xianwen
> 
> 
> 

Haven't got it to work yet with ulpt enabled but it's useful to know it's now 
possible.  

Thanks, 

Dhu


-- 
Je suis Canadien. Ce n'est pas Francais ou Anglaise.  
 C'est une esp`ece de sauvage: ne obliviscaris, vix ea nostra voco;-) 



Re: USB Printer Prebloms

2020-03-04 Thread 陈贤文
Dear Ducan,

I just set up a Brother HL-5450DN Series on OpenBSD 6.6 amd64.

> 1. ulpt must be disabled:
> # config -ef /bsd
> ukc> disable ulpt
> ukc> quit

I studied tutorials on-line and previous discussions on @misc. I found
out that for 6.6 amd64, if I disabled ulpt(4), I would not get the
printer to work. On the contrary, I was able to get the printer to work
by using ulpt(4).

For other bits I followed previous tutorials and discussions, that I
used footmatic-rip and so on.

Yours sincerely,
Xianwen




Re: USB Printer Prebloms

2020-03-03 Thread Sebastien Marie
On Tue, Mar 03, 2020 at 10:57:03PM -0700, Duncan Patton a Campbell wrote:
> 
> I've had problems getting an old Brother printer to work (again)
> and have managed to locate/understand? the source of the problems.
> 
> 1. ulpt must be disabled:
> # config -ef /bsd
> ukc> disable ulpt
> ukc> quit
> 
> 2. modifying the kernel changes the kernel checksum so to get it to relink
> sha256 -h /var/db/kernel.SHA256 /bsd
> 
> 3. relinking the kernel _re-enables_ ulpt.
> 
> So I'm going to have install the build system and run thru the kernel patches
> after I figure out how to disable ulpt in the GENERIC.MP build.  
> 
> Does this sound like it will work?

Pratical advice:

Depending your need, you could also live without kernel relinking (KARL) in
order to keep ulpt(4) disabled using config(8).

I would still relink after an upgrade in order to have an unique /bsd (and not
the one publicly available from internet).

So it would be:
- after an upgrade, reboot and wait relinking to be done (a fresh /bsd will be
  installed)
- run `config -ef /bsd' and disable ulpt in the new (and unique) kernel
- do *NOT* regenerate /var/db/kernel.SHA256 (so sha256 will mismatch)
- reboot again and run on the new /bsd (with ulpt disabled)

System will complains that relinking failed, but your /bsd with ulpt disabled
will stay.


Developer advice:

mpi@ already pointed the right way to deal with it: make ulpt(4) and ugen(4) to
coexist. This way you could use cupsd (using ugen) with a GENERIC kernel.

see https://marc.info/?l=openbsd-tech=151618565000531=2 for details

Thanks.
-- 
Sebastien Marie



USB Printer Prebloms

2020-03-03 Thread Duncan Patton a Campbell


I've had problems getting an old Brother printer to work (again)
and have managed to locate/understand? the source of the problems.

1. ulpt must be disabled:
# config -ef /bsd
ukc> disable ulpt
ukc> quit

2. modifying the kernel changes the kernel checksum so to get it to relink
sha256 -h /var/db/kernel.SHA256 /bsd

3. relinking the kernel _re-enables_ ulpt.

So I'm going to have install the build system and run thru the kernel patches
after I figure out how to disable ulpt in the GENERIC.MP build.  

Does this sound like it will work?

RSVP 

thanks,

Dhu

-- 
Je suis Canadien. Ce n'est pas Francais ou Anglaise.  
 C'est une esp`ece de sauvage: ne obliviscaris, vix ea nostra voco;-) 



Re: suggestions for USB printer (maybe even with scanner)?

2020-02-19 Thread Jordan Geoghegan




On 2020-02-18 21:28, Stuart Longland wrote:

On 6/2/20 7:26 am, Adam Thompson wrote:

I don't know what you need in a printer, and I don't know what you mean
by cheap, so... YMMV.

However, I've found Brother **LASER** printers to be very good, and most
of them support PCL6 and/or PS3.
For example, the HL-L2370DW can only connect via USB, and supports PCL6,
and currently sells for ~C$150-160.

Somewhat related, does this hold true for their Ethernet-connected
printers as well?

We have an Epson WF-7510 which is due for replacement and while I can
set up OpenBSD on a small box to act as a print server, having something
I can point OpenBSD's lpd or cups at over a network is helpful too.


Yes, I have a Brother laser printer that I print to using lpd. I can 
send it PDF or postscript documents (or raw text) via lpr and it prints 
just fine, without any drivers or cups or other such nonsense.




Re: suggestions for USB printer (maybe even with scanner)?

2020-02-18 Thread Stuart Longland
On 6/2/20 7:26 am, Adam Thompson wrote:
> I don't know what you need in a printer, and I don't know what you mean
> by cheap, so... YMMV.
> 
> However, I've found Brother **LASER** printers to be very good, and most
> of them support PCL6 and/or PS3.
> For example, the HL-L2370DW can only connect via USB, and supports PCL6,
> and currently sells for ~C$150-160.

Somewhat related, does this hold true for their Ethernet-connected
printers as well?

We have an Epson WF-7510 which is due for replacement and while I can
set up OpenBSD on a small box to act as a print server, having something
I can point OpenBSD's lpd or cups at over a network is helpful too.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Re: USB printer?

2020-02-18 Thread Stefan Sperling
On Mon, Feb 17, 2020 at 06:47:49PM +0100, Claus Assmann wrote:
> I got a 
> HP DeskJet 2630
> printer and connected it via usb
> I tried to use it "directly", i.e., /etc/printcap:
> usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D:
> as mentioned in the original mail
> 
> but this results in an "output error" after I started lpd
> and used
> lpr doc.ps
> 
>  ulpt0 at uhub0 port 4 configuration 1 interface 1 "HP DeskJet 2600 series" 
> rev 2.00/1.00 addr 2
>  ulpt0: using bi-directional mode
>  ugen0 at uhub0 port 4 configuration 1 "HP DeskJet 2600 series" rev 2.00/1.00 
> addr 2
>  ulpt0: output error
> 
> I didn't try to set up cups or similar stuff as that seems
> to be overkill for my simple use case and probably results
> in the same USB error?
> If someone has this kind of printer connected via USB: I am
> interested in the config.

Try the cups-filters package and follow the instructions given in
the file /usr/local/share/doc/pkg-readmes/cups-filters

You can't avoid the printer drivers from cups but you may be able to
get away with running lpd(8) instead of cupsd.
You will also need a2ps and a suitable printer driver (foo2zjs in my case).

Here are the packages I use for my HP LaserJet 1020:
a2ps-4.14p15format files for printing on PostScript printers
cups-filters-1.25.6 OpenPrinting CUPS filters
foo2zjs-20190909driver for ZjStream wire protocol compatible printers

Note however that ulpt(4) recognizes my printer and loads firmware for it.
If firmware is also required for your model to work (I have no idea if it is)
then the ulpt driver would need to be modified to do that, too.

$ cat /etc/printcap
lp|local line printer|HP-LaserJet_1020:\
:lf=/var/log/lpd-errs:\
:sd=/var/spool/output/lpd:\
:lp=/dev/ulpt0:\
:if=/etc/foomatic/direct/filter.sh:\ 
:sh:\
:mx#0:

And the filter script is this:

$ cat /etc/foomatic/direct/filter.sh
#!/bin/sh

# for debugging:
#echo "$*" >> /tmp/filter-args

args=`getopt cw:l:i:j:n:h: $*`
if [ $? -ne 0 ]
then
echo 'Usage: [-c] -wwidth -llength -iindent -n login -h host acct-file'
exit 2
fi

set -- $args

while [ $# -ne 0 ]
do
   case "$1"
   in
   -c)
   flag="$1"; shift;;
   -o|-w|-l|-i|-j|-n|-h)
   oarg="$2"; shift; shift;;
   --)
   shift; break;;
   esac
done

/usr/local/bin/a2ps -BRq --columns=1 -o - | \
/usr/local/bin/foomatic-rip -P HP-LaserJet_1020 \
--ppd /etc/foomatic/direct/HP-LaserJet_1020.ppd



Re: USB printer?

2020-02-18 Thread Maurice McCarthy
In my belief, you _must install hpcups. And if you use the usb then
you _must disable ulpt in the kernel. See
/usr/local/share/doc/pkg-readmes/cups



Re: [*EXT*] Re USB printer?

2020-02-17 Thread Edgar Pettijohn


On Feb 17, 2020 11:47 AM, Claus Assmann  wrote:
>
> I got a 
> HP DeskJet 2630
> printer and connected it via usb
> I tried to use it "directly", i.e., /etc/printcap:
> usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D:
> as mentioned in the original mail
>
> but this results in an "output error" after I started lpd
> and used
> lpr doc.ps
>
> ulpt0 at uhub0 port 4 configuration 1 interface 1 "HP DeskJet 2600 series" 
> rev 2.00/1.00 addr 2
> ulpt0: using bi-directional mode
> ugen0 at uhub0 port 4 configuration 1 "HP DeskJet 2600 series" rev 2.00/1.00 
> addr 2
> ulpt0: output error
>
> I didn't try to set up cups or similar stuff as that seems
> to be overkill for my simple use case and probably results
> in the same USB error?
> If someone has this kind of printer connected via USB: I am
> interested in the config.
>
> Thanks.
>
> PS: full dmesg attached in case it provides some info about the USB
> problem - hopefully it isn't stripped by the mailing list software;
> here's at least some USB info:
>
> uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x02: apic 2 int 16
> uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x02: apic 2 int 21
> ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x02: apic 2 int 18
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
> addr 1
>
> -- 
> Address is valid for this mailing list only, please do not reply
> to it direcly, but to the list.
>

I've used a couple of hp printers in the past and I always had to use hpcups. 
It is possible that I gave up too early.

Edgar



Re: USB printer?

2020-02-17 Thread Claus Assmann
I got a 
HP DeskJet 2630
printer and connected it via usb
I tried to use it "directly", i.e., /etc/printcap:
usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D:
as mentioned in the original mail

but this results in an "output error" after I started lpd
and used
lpr doc.ps

 ulpt0 at uhub0 port 4 configuration 1 interface 1 "HP DeskJet 2600 series" rev 
2.00/1.00 addr 2
 ulpt0: using bi-directional mode
 ugen0 at uhub0 port 4 configuration 1 "HP DeskJet 2600 series" rev 2.00/1.00 
addr 2
 ulpt0: output error

I didn't try to set up cups or similar stuff as that seems
to be overkill for my simple use case and probably results
in the same USB error?
If someone has this kind of printer connected via USB: I am
interested in the config.

Thanks.

PS: full dmesg attached in case it provides some info about the USB
problem - hopefully it isn't stripped by the mailing list software;
here's at least some USB info:

uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x02: apic 2 int 16
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x02: apic 2 int 21
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x02: apic 2 int 18
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1

-- 
Address is valid for this mailing list only, please do not reply
to it direcly, but to the list.



Re: suggestions for USB printer (maybe even with scanner)?

2020-02-05 Thread Chris Bennett
A lot of people are mentioning the need to deal with the new lpr tools
being at /usr/local/bin.
I found that adding a symmlink from /usr/bin/lpr to /usr/local/bin/lpr,
etc. to help with programs that expect to find lpr at that exact
location.

Using a symlink will make life much easier with a few programs, since
everything finds what it needs at either location. You will need to
refresh the symlink after each upgrade. Backup the /usr/bin files just
in case you really do need them later.

Good luck! Printing is so damned easy or so brutally hard. ;-{)>

--
Chris




Re: suggestions for USB printer (maybe even with scanner)?

2020-02-05 Thread Jonathan Drews


Hi Claus:
 
 USB printers are kind of difficult to set up on OpenBSD. You can read the 
instructions on USB setup in /usr/local/share/doc/pkg-readmes/cups. I never
get USB printing to work on my OpenBSD 6.6. Instead I used a wireless Xerox
Laser printer. Here is how I did it for a Xerox 6022 laser printer. I paid 
$150.00 USD for my Xerox 6022 Phasor

To get this laser printer running over WiFi do:
0) Connect the Xerox Phaser 6022 to your wireless access point. I did
this using a spare windows computer. I suppose you can do this
through the little setup screen, on top of the laser printer.
1) Install the CUPS package.
2) Add the following line to your /etc/rc.conf.local file:
pkg_scripts=cupsd. Reboot the computer to make sure CUPS is
running. See man (8) rc.conf.local
3) From the CD that came with my Phaser 6022, I removed the file
xerox-phaser-6022_1.0-22_all.deb.
4) This is an archive file. It contains your *.ppd. Do
$ ar x xerox-phaser-6022_1.0-22_all.deb
(See man (1) ar)
5) After extraction you will see data.tar.gz. That tarball contains
the Xerox_Phaser_6022.ppd. Get the *.ppd with
$ tar zxvf data.tar.gz
6) Move Xerox_Phaser_6022.ppd to /root.
7) Start a web browser and point it to "http://localhost:631;.
8) Select add a printer and login. I had to use my user account to
login. Logging in as root would not work. You CUPS will probe
your wireless network and you should see an address like
192.168.1.X, where X can be any number. It will also identify the
printer as Xerox Phaser 6022.
9) Since there is no entry for Xerox, load the
Xerox_Phaser_6022.ppd.
10) Complete the CUPS setup and you are ready to print

You have to use the absolute path name
/usr/local/bin/lpr, /usr/local/bin/lprm, /usr/local/bin/lpq and
/usr/local/bin/lp to print with CUPS.

LibreOffice prints with out modification.
You can print photos and graphics (*jpeg, *.png , etc) with
Firefox

xpdf reguires the following line in the .xpdfrc:


# Set the default PostScript file or command.

psFile "|/usr/local/bin/lpr"

# Set the default PostScript paper size -- this can be letter, legal,
# A4, or A3. You can also specify a paper size as width and height
# (in points).
 
 

Sent: Wednesday, February 05, 2020 at 12:56 PM
From: "Claus Assmann" 
To: misc@openbsd.org
Subject: suggestions for USB printer (maybe even with scanner)?
I need to buy a printer to connect to one of my OpenBSD machines
and I prefer a USB connection (as I don't control the network at
my current place). Can I just buy any USB printer or are there
printers which do not work with OpenBSD? If so, what do I need
to check / avoid?

Any suggestion for something "cheap" (to print just a few documents
as needed)? I never had to buy a printer before, so I'm not familiar
with this area -- if possible I would like to get a printer/scanner
but I have no idea what I can buy locally :-(
A HP laserjet (which was a gift but broke today) worked only with
one of my OpenBSD machines which seemingly was related to the USB
HW, using a printcap entry like this:
usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D:

--
Address is valid for this mailing list only, please do not reply
to it direcly, but to the list.
 



Re: suggestions for USB printer (maybe even with scanner)?

2020-02-05 Thread Adam Thompson

On 2020-02-05 13:56, Claus Assmann wrote:

I need to buy a printer to connect to one of my OpenBSD machines
and I prefer a USB connection (as I don't control the network at
my current place).  Can I just buy any USB printer or are there
printers which do not work with OpenBSD? If so, what do I need
to check / avoid?

Any suggestion for something "cheap" (to print just a few documents
as needed)? I never had to buy a printer before, so I'm not familiar
with this area -- if possible I would like to get a printer/scanner
but I have no idea what I can buy locally :-(
A HP laserjet (which was a gift but broke today) worked only with
one of my OpenBSD machines which seemingly was related to the USB
HW, using a printcap entry like this:
usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D:


I don't know what you need in a printer, and I don't know what you mean 
by cheap, so... YMMV.


However, I've found Brother **LASER** printers to be very good, and most 
of them support PCL6 and/or PS3.
For example, the HL-L2370DW can only connect via USB, and supports PCL6, 
and currently sells for ~C$150-160.


Just don't try to use their MFC-* line of color printers under UNIX 
(except MacOS).  FWIW, if you're in a situation where you have a spare 
Mac, the Mac can bridge from CUPS/PDF format to Brother proprietary 
format... bit pf a pain but it works.


-Adam



Re: suggestions for USB printer (maybe even with scanner)?

2020-02-05 Thread Raymond, David
I have had good luck on OpenBSD with a variety of HP printers using
the hplip package and cups.  (To use the latter, put /usr/local/bin
before /usr/bin in your PATH to avoid confusion with lpr programs.)
The xsane package does scanning on HP printers that have this
function.  I have connected them mainly via the network, but I don't
see why direct usb connections wouldn't work as well.

Dave Raymond

On 2/5/20, Claus Assmann  wrote:
> I need to buy a printer to connect to one of my OpenBSD machines
> and I prefer a USB connection (as I don't control the network at
> my current place).  Can I just buy any USB printer or are there
> printers which do not work with OpenBSD? If so, what do I need
> to check / avoid?
>
> Any suggestion for something "cheap" (to print just a few documents
> as needed)? I never had to buy a printer before, so I'm not familiar
> with this area -- if possible I would like to get a printer/scanner
> but I have no idea what I can buy locally :-(
> A HP laserjet (which was a gift but broke today) worked only with
> one of my OpenBSD machines which seemingly was related to the USB
> HW, using a printcap entry like this:
> usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D:
>
> --
> Address is valid for this mailing list only, please do not reply
> to it direcly, but to the list.
>
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



suggestions for USB printer (maybe even with scanner)?

2020-02-05 Thread Claus Assmann
I need to buy a printer to connect to one of my OpenBSD machines
and I prefer a USB connection (as I don't control the network at
my current place).  Can I just buy any USB printer or are there
printers which do not work with OpenBSD? If so, what do I need
to check / avoid?

Any suggestion for something "cheap" (to print just a few documents
as needed)? I never had to buy a printer before, so I'm not familiar
with this area -- if possible I would like to get a printer/scanner
but I have no idea what I can buy locally :-(
A HP laserjet (which was a gift but broke today) worked only with
one of my OpenBSD machines which seemingly was related to the USB
HW, using a printcap entry like this:
usb:lp=/dev/ulpt0:sd=/var/spool/output/usb:sf:sh:tr=^D:

-- 
Address is valid for this mailing list only, please do not reply
to it direcly, but to the list.



Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-06-12 Thread Tuyosi T
​hi .

it is fun that i do the print command on OpenBSD's chrome
at the company ,  then  ​i get the printing at my home's printer which is
registerd on ArchLinux's chromium .

namely internet printing !

 [Google Cloud Print for Chromium] is interesting  !
---
http://openbsd-akita.blogspot.com/2018/06/use-openbsds-x-as-daily-use-inclluting.html


Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-06-01 Thread Stuart Henderson
On 2018-06-01, Tuyosi T  wrote:
> hi all .
> i do not understand lpr .
>
> so my settings are
>
>  # ls -l /usr/bin/lpr
> lrwxr-xr-x  1 root  wheel  18 Jun  1 05:52 /usr/bin/lpr ->
> /home/snap/lpr.bat
>
> # cat /home/snap/lpr.bat
> lp -dEP-901A
>
> then
> seamonkey and leafpad print easily .
>
> ---
> regards
>

Normally for printing via CUPS from Gtk+2 applications like seamonkey
and leafpad, you would install gtk+2-cups (similar with gtk+3-cups for
newer applications).

This is mentioned in the pkg-readme for cups but is quite easy to miss.



Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-05-31 Thread Tuyosi T
hi all .
i do not understand lpr .

so my settings are

 # ls -l /usr/bin/lpr
lrwxr-xr-x  1 root  wheel  18 Jun  1 05:52 /usr/bin/lpr ->
/home/snap/lpr.bat

# cat /home/snap/lpr.bat
lp -dEP-901A

then
seamonkey and leafpad print easily .

---
regards


Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-05-16 Thread Jordan Geoghegan



On 05/16/18 01:10, Erling Westenvik wrote:

On Wed, May 16, 2018 at 12:45:12AM -0700, Jordan Geoghegan wrote:

On 05/16/18 00:27, Tuyosi T wrote:

hi
i can not distinguish between lp and lpr .


lpr(1) is a program used to print to an lpd server, wheras lp(4) is a driver
that doesn't appear to have been ported from 4.4BSD yet.

lp(1) gets installed as part of cups(1).

Thanks for the clarification on lp. I'm a bit of a luddite when it comes 
to the software I run. If it ain't in base, I try to avoid having to run 
it.


I got what I deserved:

https://www.cups.org/doc/man-lp.html



Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-05-16 Thread Erling Westenvik
On Wed, May 16, 2018 at 12:45:12AM -0700, Jordan Geoghegan wrote:
> On 05/16/18 00:27, Tuyosi T wrote:
> > hi
> > i can not distinguish between lp and lpr .
> > 
> lpr(1) is a program used to print to an lpd server, wheras lp(4) is a driver
> that doesn't appear to have been ported from 4.4BSD yet.

lp(1) gets installed as part of cups(1).

> https://man.openbsd.org/lpr.1
> https://man.openbsd.org/NetBSD-7.1/lp.4



Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-05-16 Thread Jordan Geoghegan

On 05/16/18 00:27, Tuyosi T wrote:

hi
i can not distinguish between lp and lpr .

lpr(1) is a program used to print to an lpd server, wheras lp(4) is a 
driver that doesn't appear to have been ported from 4.4BSD yet.


https://man.openbsd.org/lpr.1

https://man.openbsd.org/NetBSD-7.1/lp.4



Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-05-16 Thread Tuyosi T
hi
i can not distinguish between lp and lpr .

anyway
/etc/printcap
709a-wifi|709a-wifi:rm=bsd.my.domain:rp=709a-wifi:

and
the setting of print on leafpad  is 'lp -d709a-wifi ' .
it goes well .

regards

ps my /etc/cups/cupsd.conf is
LogLevel warn
PageLogFormat
Listen localhost:631
Listen /var/run/cups/cups.sock
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes

  Order allow,deny


  Order allow,deny


  AuthType Default
  Require user @SYSTEM
  Order allow,deny


  AuthType Default
  Require user @SYSTEM
  Order allow,deny


  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  
Order deny,allow
  
  
Require user @OWNER @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
Require user @OWNER @SYSTEM
Order deny,allow
  
  
Order deny,allow
  


  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  
AuthType Default
Order deny,allow
  
  
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  
  
Order deny,allow
  


  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  
AuthType Negotiate
Order deny,allow
  
  
AuthType Negotiate
Require user @OWNER @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Negotiate
Require user @OWNER @SYSTEM
Order deny,allow
  
  
Order deny,allow
  



Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-05-15 Thread Jordan Geoghegan

On 05/15/18 18:19, IL Ka wrote:

Hello Jordan,
>> you can do some neat things and avoid having to remove the ulpt(4) 
driver from the kernel


What can be the reason to remove it?
Some people remove the ulpt driver to allow CUPS to interface easier 
with their printer. This solution has always irritated me, and I prefer 
using lpd to manage my printers. CUPS can still be used to print to an 
lpd based print server, the only difference is that CUPS isn't handling 
the spooling and network print jobs etc server-side.
Obsd does not have FAQ about that, but freebsd has pretty good 
article: https://www.freebsd.org/doc/handbook/printing.html

And almost everything covered by it is true for openbsd.

This here is a good place to start: https://man.openbsd.org/lpd.8

No FAQ for printing, but the man pages are your friend. Many moons ago, 
I as complete rookie at Unix printing, managed to set up my friends 
restaurant using an OpenBSD lpd print server to drive all of his receipt 
and kitchen print jobs. I managed to pull this off using only the man 
pages. The OpenBSD man pages are a treasure trove of knowledge-- don't 
always depend on the FAQ's entirely! The FAQ serves to supplement the 
man pages, not replace them.




Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-05-15 Thread IL Ka
Hello Jordan,
>> you can do some neat things and avoid having to remove the ulpt(4)
driver from the kernel

What can be the reason to remove it?

If I understand it correctly, this driver provides support for "USB printer
class"
( http://www.usb.org/developers/docs/devclass_docs/usbprint11a021811.pdf )

It creates some kind of "channel" (like LPT port) which can be used to
query printer status,
obtain its ID etc.
Application then sends plaintext or PCL or PostScript or whatever printer
supports to this "channel".

Sysadmin configures "printcap" by adding filters that convert data to PCL
or postscript, and
lpd creates "pool", while CUPS ties all layers providing IP Printing and
other protocols to submit print jobs.

Obsd does not have FAQ about that, but freebsd has pretty good article:
https://www.freebsd.org/doc/handbook/printing.html
And almost everything covered by it is true for openbsd.


Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-05-15 Thread Jordan Geoghegan


On 05/15/18 13:04, Tuyosi T wrote:

i think it is impossible to print USB only printers .



I have successfully printed to several USB based printers in my time 
with OpenBSD, ranging from USB thermal receipt printers, USB restaurant 
dot matrix kitchen printers all the way up to your modern day consumer 
throw away HP printer.


I also have had great success utilizing DB9/DB25 serial line printers 
with OpenBSD.


With a bit of playing around with lpd(8) and your printcap(5) file, you 
can do some neat things and avoid having to remove the ulpt(4) driver 
from the kernel while still making the printer fully usable and 
available to CUPS and over the network.





Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-05-15 Thread Tuyosi T
hi all .

i at last find i can  print if i use the printer which has both cups driver
and wifi interface (for example EP-709A).
so
i do not need to use [ Google Cloud Print for Chromium ] .

and
i think it is impossible to print USB only printers .

at this sate openbsd become everyday OS .
---
regards


Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-03-31 Thread Tuyosi T
using [ Google Cloud Print for Chromium ] ,
i  also print text files besides pdf files .

for example
1)  chrome test.txt

2)  right click , then the print menu appears .
(cups is not installed)


Re: print usb printer by [ Google Cloud Print for Chromium ]

2018-02-17 Thread Tuyosi T
i write down in more detailed manner but in japanese   in
https://qiita.com/tyokai/items/0cb47bd08cf6ec45de93 .

-
regards


print usb printer by [ Google Cloud Print for Chromium ]

2017-11-02 Thread Tuyosi T
hi all .

till now i cannot print by USB printer (epson PX-404A) from openbsd .
now i suceed to print from openbsd to use[  Google Cloud Print for Chromium
]   .

HUBarchlinux:USBPX-404A
|
openbsd

PX-404A is an  old old USB pringer and of course  *not*  a Cloud Printer .
but openbsd's  *chrome*  can print the the content by epson PX-404A with
Google Cloud Print for Chromium .

i am happy to conquer USB printer problem of openbsd to a some degree .
---
regards
Mac pro (2006) runs openbsd by fedora's grub .
https://www.youtube.com/watch?v=lqK9LIcHiQg


Re: print from openbsd to archlinux's USB printer

2017-05-28 Thread Tuyosi T
continued

i try and error and try 

i replace command line "lpr" to " lp
-h192.168.1.64:631/printers/EPSON_PX-404A/version=1.1 "
then print www page directly to arch's USB printer  .

but
when i restart  seamonley  , this " lp
-h192.168.1.64:631/printers/EPSON_PX-404A/version=1.1 " disapear .

it is regrettable .
are there any trick to this ?

---
regards


Re: print from openbsd to archlinux's USB printer

2017-05-28 Thread Tuyosi T
continued



at openbsd

use seamonkey , and print page to file (mozilla.pdf)

lp -h192.168.1.64:631/printers/EPSON_PX-404A/version=1.1  mozilla.pdf

then print it to USB printer which is attached to archlinux
---

there must be much  more convinient mmethod ,
it is what ?

-
regards


print from openbsd to archlinux's USB printer

2017-05-28 Thread Tuyosi T
Hi all.

my situation is
openbsd--wired-->archlinux(192.168.1.64)--usb cable->USB printer

1) in archlinux
cat /etc/cups/cupsd.conf
---
MaxLogSize 0
LogLevel warn
port 631   #<-
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes

  Order allow,deny
  Allow localhost  #<-
  Allow 192.168.1.0/24 #<-


  Order allow,deny
  Allow localhost  #<-
  Allow 192.168.1.0/24 #<-


  AuthType Default
  Require user @SYSTEM
  Order allow,deny


  AuthType Default
  Require user @SYSTEM
  Order allow,deny


  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  
Order deny,allow
  
  
Require user @OWNER @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
Require user @OWNER @SYSTEM
Order deny,allow
  
  
Order deny,allow
  


  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  
AuthType Default
Order deny,allow
  
  
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  
  
Order deny,allow
  


  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  
AuthType Negotiate
Order deny,allow
  
  
AuthType Negotiate
Require user @OWNER @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Negotiate
Require user @OWNER @SYSTEM
Order deny,allow
  
  
Order deny,allow
  




cat /etc/cups/mime.types
application/octet-stream


cat /etc/cups/mime.convs
application/octet-stream   application/vnd.cups-raw0




2)openbsd
at httpa://192.178.1.64:631
i can print out testpage

but
i cannot print google's home page .

what is lack ?
/etc/printcap and more

--
regards


Re: USB printer

2016-09-19 Thread Benjamin Baier
On Mon, 19 Sep 2016 11:47:51 +0900
Tuyosi T <nakajin.fu...@gmail.com> wrote:

> does anyone find good URL about printing with USB printer by cups ?
file:///usr/local/share/doc/pkg-readmes/cups-2.1.4

Greetings Ben



USB printer

2016-09-18 Thread Tuyosi T
Hi all .

i try to print with USB printer .

differen from linux , it seams hard .

does anyone find good URL about printing with USB printer by cups ?

-
regards



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-10 Thread Raf
Hi Alessandro,

On Mon, Dec 08, 2014 at 11:45:43AM EST, Alessandro DE LAURENZIS wrote:

 Laptop's USB ports are 2.0; I do not know if there could be an impact
 of the xhci driver anyway, but how could I check? Any chances to
 switch off xhci and revert to uhci/ehci?

Sure there is:

#xhci*  at pci?
#usb*   at xhci?

:^)

Well, at least one person has reported[0] issues with USB2.0 hub, which
has been plugged into a USB2.0 port BTW (just to clarify).

However, whether your issue is related to that one or whether xHCI
enabled in the kernel has any impact on USB2.0 devices? That I don't
know - I merely (making an assumption, which may as well be flawed)
put the two together as it is plausible.

[0] http://marc.info/?l=openbsd-miscm=141690178901244w=2

Regards,

Raf



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-08 Thread Alessandro DE LAURENZIS
Hello Antoine,

On Sat 06/12 12:28, Antoine Jacoutot wrote:
  Actually, I just hooked up my HP USB printer and was able to print just 
  fine...
 
 Oop sorry I meant to answer that in previous:
 
  just22@poseidon:[~] ll /etc/cups/printers.conf
  -rw---  1 root  _cups   897B Dec  3 08:58 /etc/cups/printers.conf
 
  (not readable by _cups?)
 
 That's fine. cupsd starts as root, read its config and then drops privileges 
 to _cups.
 

At this point, I'm completely out of ideas... Maybe a regression specific
to that particular PPD? Just wait and see what happens with future
updates...

Just to give you a more complete picture, I tried to remove/reinstall
cups and hplip, wiping out all the related directories, just in case of
some strange side effects related to previous configs, without any
luck.

Of course, if you have anything else to suggest in order to help the
debug, please let me know.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-08 Thread Antoine Jacoutot
On Mon, Dec 08, 2014 at 04:05:31PM +0100, Alessandro DE LAURENZIS wrote:
 Hello Antoine,
 
 On Sat 06/12 12:28, Antoine Jacoutot wrote:
   Actually, I just hooked up my HP USB printer and was able to print just 
   fine...
  
  Oop sorry I meant to answer that in previous:
  
   just22@poseidon:[~] ll /etc/cups/printers.conf
   -rw---  1 root  _cups   897B Dec  3 08:58 /etc/cups/printers.conf
  
   (not readable by _cups?)
  
  That's fine. cupsd starts as root, read its config and then drops 
  privileges to _cups.
  
 
 At this point, I'm completely out of ideas... Maybe a regression specific
 to that particular PPD? Just wait and see what happens with future
 updates...
 
 Just to give you a more complete picture, I tried to remove/reinstall
 cups and hplip, wiping out all the related directories, just in case of
 some strange side effects related to previous configs, without any
 luck.
 
 Of course, if you have anything else to suggest in order to help the
 debug, please let me know.

Were is your ppd coming from? Did you generate it yourself?

-- 
Antoine



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-08 Thread Raf
On Mon, Dec 08, 2014 at 10:05:31AM EST, Alessandro DE LAURENZIS wrote:

Hi Alessandro,

 Of course, if you have anything else to suggest in order to help the
 debug, please let me know.

As Antoine has pointed out:

AJ The issue is not with USB printing per se but with the HPLIP
AJ driver with a USB printer. I have several USB printers that
AJ I use without issue.

AJ There's probably a regression in HLIP after CUPS got updated
AJ to version 2. I'll try and look into it but don't hold your
AJ breath too soon... or maybe a future HPLIP release will fix this.

That may as well be true but I wanted to double-check whether your issue
is at all related to the recent USB 3.0/xhci changes in -current?

The reason I mention it is the fact that several people have reported
issues with USB 1.x and/or USB 2.0 devices while using USB 3.0 ports.

Regards,

Raf



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-08 Thread Alessandro DE LAURENZIS
Hello Antoine,

On Mon 08/12 16:11, Antoine Jacoutot wrote:
 Were is your ppd coming from? Did you generate it yourself?

Not at all, it comes from hpcups:

Description:HP Deskjet F4280 All-in-One
Location:   
Driver: HP Deskjet f4200 Series, hpcups 3.14.6 (color, 2-sided printing)
Connection: hp:/usb/Deskjet_F4200_series?serial=CN8C54F12J05BR
Defaults:   job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-08 Thread Alessandro DE LAURENZIS
Hi Raf,

On Mon 08/12 10:39, Raf wrote:
 That may as well be true but I wanted to double-check whether your issue
 is at all related to the recent USB 3.0/xhci changes in -current?
 
 The reason I mention it is the fact that several people have reported
 issues with USB 1.x and/or USB 2.0 devices while using USB 3.0 ports.
 

Laptop's USB ports are 2.0; I do not know if there could be an impact of
the xhci driver anyway, but how could I check? Any chances to switch off
xhci and revert to uhci/ehci?

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-06 Thread Antoine Jacoutot
On Wed, Dec 03, 2014 at 09:03:55AM +0100, Alessandro DE LAURENZIS wrote:
 Dear @misc reader,
 
 my HP Deskjet F4280 USB printer is (again!) not working after CUPS
 update to v2.0.1 in current.
 
 ulpt* is of course disabled, devices' permissions seem ok and the
 printer is correctly recognized:
 
 Console log for poseidon.atlantide.net
 ugen1 at uhub8 port 4 HP Deskjet F4200 series rev 2.00/1.00 addr 7

The issue is not with USB printing per se but with the HPLIP driver with a USB 
printer.
I have several USB printers that I use without issue.

There's probably a regression in HLIP after CUPS got updated to version 2.
I'll try and look into it but don't hold your breath too soon... or maybe a 
future HPLIP release will fix this.

-- 
Antoine



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-06 Thread Antoine Jacoutot
 The issue is not with USB printing per se but with the HPLIP driver with a 
 USB printer.
 I have several USB printers that I use without issue.
 
 There's probably a regression in HLIP after CUPS got updated to version 2.
 I'll try and look into it but don't hold your breath too soon... or maybe a 
 future HPLIP release will fix this.

Actually, I just hooked up my HP USB printer and was able to print just fine...

-- 
Antoine



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-06 Thread Antoine Jacoutot
 Actually, I just hooked up my HP USB printer and was able to print just 
 fine...

Oop sorry I meant to answer that in previous:

 just22@poseidon:[~] ll /etc/cups/printers.conf
 -rw---  1 root  _cups   897B Dec  3 08:58 /etc/cups/printers.conf

 (not readable by _cups?)

That's fine. cupsd starts as root, read its config and then drops privileges to 
_cups.

-- 
Antoine



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-04 Thread Gareth Osler
Not able to print to an Epson Stylus Office similarly also.

A workaround here http://article.gmane.org/gmane.os.openbsd.misc/215308

I have also been able to configure a raw lpd printer managed with cups.



USB printer not working with CUPS 2.0.1 (in -current)

2014-12-03 Thread Alessandro DE LAURENZIS
Dear @misc reader,

my HP Deskjet F4280 USB printer is (again!) not working after CUPS
update to v2.0.1 in current.

ulpt* is of course disabled, devices' permissions seem ok and the
printer is correctly recognized:

Console log for poseidon.atlantide.net
ugen1 at uhub8 port 4 HP Deskjet F4200 series rev 2.00/1.00 addr 7

just22@poseidon:[~] ls -la /dev/ugen1.*
crw-rw  1 _cups  _saned   63,  16 Nov 28 22:22 /dev/ugen1.00
crw-rw  1 _cups  _saned   63,  17 Nov 28 22:22 /dev/ugen1.01
crw-rw  1 _cups  _saned   63,  18 Nov 28 22:22 /dev/ugen1.02
crw-rw  1 _cups  _saned   63,  19 Nov 28 22:22 /dev/ugen1.03
crw-rw  1 _cups  _saned   63,  20 Nov 28 22:22 /dev/ugen1.04
crw-rw  1 _cups  _saned   63,  21 Nov 28 22:22 /dev/ugen1.05
crw-rw  1 _cups  _saned   63,  22 Nov 28 22:22 /dev/ugen1.06
crw-rw  1 _cups  _saned   63,  23 Nov 28 22:22 /dev/ugen1.07
crw-rw  1 _cups  _saned   63,  24 Nov 28 22:22 /dev/ugen1.08
crw-rw  1 _cups  _saned   63,  25 Nov 28 22:22 /dev/ugen1.09
crw-rw  1 _cups  _saned   63,  26 Nov 28 22:22 /dev/ugen1.10
crw-rw  1 _cups  _saned   63,  27 Nov 28 22:22 /dev/ugen1.11
crw-rw  1 _cups  _saned   63,  28 Nov 28 22:22 /dev/ugen1.12
crw-rw  1 _cups  _saned   63,  29 Nov 28 22:22 /dev/ugen1.13
crw-rw  1 _cups  _saned   63,  30 Nov 28 22:22 /dev/ugen1.14
crw-rw  1 _cups  _saned   63,  31 Nov 28 22:22 /dev/ugen1.15

just22@poseidon:[~] ls -la /dev/usb*
crw-rw  1 root   wheel61,   0 Nov 28 22:22 /dev/usb0
crw-rw  1 _cups  _saned   61,   1 Nov 28 22:22 /dev/usb1
crw-rw  1 root   wheel61,   2 Nov 28 22:22 /dev/usb2
crw-rw  1 root   wheel61,   3 Nov 28 22:22 /dev/usb3
crw-rw  1 root   wheel61,   4 Nov 28 22:22 /dev/usb4
crw-rw  1 root   wheel61,   5 Nov 28 22:22 /dev/usb5
crw-rw  1 root   wheel61,   6 Nov 28 22:22 /dev/usb6
crw-rw  1 root   wheel61,   7 Nov 28 22:22 /dev/usb7

just22@poseidon:[~] lsusb
Bus 000 Device 001: ID 8086: Intel Corp. 
Bus 001 Device 001: ID 8086: Intel Corp. 
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 005: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
Bus 001 Device 006: ID 046d:089d Logitech, Inc. QuickCam E2500 series
Bus 001 Device 007: ID 03f0:2504 Hewlett-Packard DeskJet F4200 series
Bus 002 Device 001: ID 8086: Intel Corp. 
Bus 003 Device 001: ID 8086: Intel Corp. 
Bus 004 Device 001: ID 8086: Intel Corp. 
Bus 004 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 005 Device 001: ID 8086: Intel Corp. 
Bus 006 Device 001: ID 8086: Intel Corp. 

just22@poseidon:[~] sudo /usr/local/libexec/cups/backend/usb
DEBUG: Loading USB quirks from /usr/local/share/cups/usb.
DEBUG: Loaded 71 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=14
DEBUG2: Printer found with device ID: MFG:HP;MDL:Deskjet F4200
series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:CB656B;SN:CN8C54F12J05BR;S:038000C486001021002c1f0002ac000;J:
;Z:0102,0503b60800,0600,0c0,0e,0f,100202,12000,147,150;
Device URI:
usb://HP/Deskjet%20F4200%20series?serial=CN8C54F12J05BRinterface=1
direct
usb://HP/Deskjet%20F4200%20series?serial=CN8C54F12J05BRinterface=1 HP
Deskjet F4200 series HP Deskjet F4200 series MFG:HP;MDL:Deskjet
F4200
series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:CB656B;SN:CN8C54F12J05BR;S:038000C486001021002c1f0002ac000;J:
;Z:0102,0503b60800,0600,0c0,0e,0f,100202,12000,147,150;


Since I was not able to print, I tried to delete and reinstall the
printer from the CUPS web interface (and from HPLIP GUI too), but, even
if the operation seems to complete flawlessly and the
/etc/cups/printer.conf is written correctly, the printer isn't listed
among the available devices in CUPS.

After enabling Save debugging information for troubleshooting in CUPS,
this is the relevant content of /var/log/cups/error_log


D [03/Dec/2014:08:57:49 +0100] CUPS-Add-Modify-Printer 
ipp://localhost/printers/HP_Deskjet_F4280
D [03/Dec/2014:08:57:49 +0100] cupsdIsAuthorized: username=
D [03/Dec/2014:08:57:49 +0100] [Client 84] Returning HTTP Unauthorized for 
CUPS-Add-Modify-Printer (ipp://localhost/printers/HP_Deskjet_F4280) from 
localhost
D [03/Dec/2014:08:57:49 +0100] [Client 84] cupsdSendHeader: code=401, 
type=text/html, auth_type=1
D [03/Dec/2014:08:57:49 +0100] [Client 84] WWW-Authenticate: Basic 
realm=CUPS, trc=y
D [03/Dec/2014:08:57:49 +0100] [Client 85] Accepted from localhost (Domain)
D [03/Dec/2014:08:57:49 +0100] [Client 85] Waiting for request.
D [03/Dec/2014:08:57:49 +0100] [Client 86] Accepted from localhost (Domain)
D [03/Dec/2014:08:57:49 +0100] [Client 86] Waiting for request.
D [03/Dec/2014:08:57:49 +0100] [Client 85] HTTP_STATE_WAITING Closing for error

Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-03 Thread Aurélien DESBRIÈRES
Alessandro DE LAURENZIS just22@gmail.com writes:

 Dear @misc reader,

 my HP Deskjet F4280 USB printer is (again!) not working after CUPS
 update to v2.0.1 in current.

 ulpt* is of course disabled, devices' permissions seem ok and the
 printer is correctly recognized:

 Console log for poseidon.atlantide.net
 ugen1 at uhub8 port 4 HP Deskjet F4200 series rev 2.00/1.00 addr 7

 just22@poseidon:[~] ls -la /dev/ugen1.*
 crw-rw  1 _cups  _saned   63,  16 Nov 28 22:22 /dev/ugen1.00
 crw-rw  1 _cups  _saned   63,  17 Nov 28 22:22 /dev/ugen1.01
 crw-rw  1 _cups  _saned   63,  18 Nov 28 22:22 /dev/ugen1.02
 crw-rw  1 _cups  _saned   63,  19 Nov 28 22:22 /dev/ugen1.03
 crw-rw  1 _cups  _saned   63,  20 Nov 28 22:22 /dev/ugen1.04
 crw-rw  1 _cups  _saned   63,  21 Nov 28 22:22 /dev/ugen1.05
 crw-rw  1 _cups  _saned   63,  22 Nov 28 22:22 /dev/ugen1.06
 crw-rw  1 _cups  _saned   63,  23 Nov 28 22:22 /dev/ugen1.07
 crw-rw  1 _cups  _saned   63,  24 Nov 28 22:22 /dev/ugen1.08
 crw-rw  1 _cups  _saned   63,  25 Nov 28 22:22 /dev/ugen1.09
 crw-rw  1 _cups  _saned   63,  26 Nov 28 22:22 /dev/ugen1.10
 crw-rw  1 _cups  _saned   63,  27 Nov 28 22:22 /dev/ugen1.11
 crw-rw  1 _cups  _saned   63,  28 Nov 28 22:22 /dev/ugen1.12
 crw-rw  1 _cups  _saned   63,  29 Nov 28 22:22 /dev/ugen1.13
 crw-rw  1 _cups  _saned   63,  30 Nov 28 22:22 /dev/ugen1.14
 crw-rw  1 _cups  _saned   63,  31 Nov 28 22:22 /dev/ugen1.15

 just22@poseidon:[~] ls -la /dev/usb*
 crw-rw  1 root   wheel61,   0 Nov 28 22:22 /dev/usb0
 crw-rw  1 _cups  _saned   61,   1 Nov 28 22:22 /dev/usb1
 crw-rw  1 root   wheel61,   2 Nov 28 22:22 /dev/usb2
 crw-rw  1 root   wheel61,   3 Nov 28 22:22 /dev/usb3
 crw-rw  1 root   wheel61,   4 Nov 28 22:22 /dev/usb4
 crw-rw  1 root   wheel61,   5 Nov 28 22:22 /dev/usb5
 crw-rw  1 root   wheel61,   6 Nov 28 22:22 /dev/usb6
 crw-rw  1 root   wheel61,   7 Nov 28 22:22 /dev/usb7

 just22@poseidon:[~] lsusb
 Bus 000 Device 001: ID 8086: Intel Corp. 
 Bus 001 Device 001: ID 8086: Intel Corp. 
 Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
 Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
 Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
 Bus 001 Device 005: ID 046d:c050 Logitech, Inc. RX 250 Optical Mouse
 Bus 001 Device 006: ID 046d:089d Logitech, Inc. QuickCam E2500 series
 Bus 001 Device 007: ID 03f0:2504 Hewlett-Packard DeskJet F4200 series
 Bus 002 Device 001: ID 8086: Intel Corp. 
 Bus 003 Device 001: ID 8086: Intel Corp. 
 Bus 004 Device 001: ID 8086: Intel Corp. 
 Bus 004 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
 Bus 005 Device 001: ID 8086: Intel Corp. 
 Bus 006 Device 001: ID 8086: Intel Corp. 

 just22@poseidon:[~] sudo /usr/local/libexec/cups/backend/usb
 DEBUG: Loading USB quirks from /usr/local/share/cups/usb.
 DEBUG: Loaded 71 quirks.
 DEBUG: list_devices
 DEBUG: libusb_get_device_list=14
 DEBUG2: Printer found with device ID: MFG:HP;MDL:Deskjet F4200
 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:CB656B;SN:CN8C54F12J05BR;S:038000C486001021002c1f0002ac000;J:
 ;Z:0102,0503b60800,0600,0c0,0e,0f,100202,12000,147,150;
 Device URI:
 usb://HP/Deskjet%20F4200%20series?serial=CN8C54F12J05BRinterface=1
 direct
 usb://HP/Deskjet%20F4200%20series?serial=CN8C54F12J05BRinterface=1 HP
 Deskjet F4200 series HP Deskjet F4200 series MFG:HP;MDL:Deskjet
 F4200
 series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1;CLS:PRINTER;DES:CB656B;SN:CN8C54F12J05BR;S:038000C486001021002c1f0002ac000;J:
 ;Z:0102,0503b60800,0600,0c0,0e,0f,100202,12000,147,150;
 

 Since I was not able to print, I tried to delete and reinstall the
 printer from the CUPS web interface (and from HPLIP GUI too), but, even
 if the operation seems to complete flawlessly and the
 /etc/cups/printer.conf is written correctly, the printer isn't listed
 among the available devices in CUPS.

 After enabling Save debugging information for troubleshooting in CUPS,
 this is the relevant content of /var/log/cups/error_log


 D [03/Dec/2014:08:57:49 +0100] CUPS-Add-Modify-Printer
 ipp://localhost/printers/HP_Deskjet_F4280
 D [03/Dec/2014:08:57:49 +0100] cupsdIsAuthorized: username=
 D [03/Dec/2014:08:57:49 +0100] [Client 84] Returning HTTP Unauthorized
 for CUPS-Add-Modify-Printer
 (ipp://localhost/printers/HP_Deskjet_F4280) from localhost
 D [03/Dec/2014:08:57:49 +0100] [Client 84] cupsdSendHeader: code=401,
 type=text/html, auth_type=1
 D [03/Dec/2014:08:57:49 +0100] [Client 84] WWW-Authenticate: Basic 
 realm=CUPS, trc=y
 D [03/Dec/2014:08:57:49 +0100] [Client 85] Accepted from localhost (Domain)
 D [03/Dec/2014:08:57:49 +0100] [Client 85] Waiting for request.
 D [03/Dec/2014:08:57:49 +0100] [Client 86] Accepted from localhost (Domain)
 D [03/Dec

Usb printer problem after upgrade

2010-08-02 Thread nixlists
Hi.

I upgraded from a few months old -current snapshot to the August 1
i386 snapshot, and now any attempt to write to /dev/ulpt0 (my usb
printer) results in Device busy. Booting with the old kernel - no
problem, I can print. Is this a bug in the new snapshot? Is anyone
else having issues with their USB printers with this snapshot?

Thanks.


ulpt0 at uhub0 port 2 configuration 1 interface 0 Hewlett-Packard hp
LaserJet 2420 rev 2.00/1.00 addr 2
ulpt0: using bi-directional mode



Re: cups and gutenprint refuse to work with canon usb printer

2009-06-14 Thread Jacob Meuser
On Thu, Jun 11, 2009 at 10:08:09PM +, Moritz Herrmann wrote:
 Hi guys,
 after trying a whole day myself to get the old Canon PIXMA iP2000 to 
 print from OBSD 4.5
 i considered asking the mailing list for help.
 
 The printer itself is fine and is recognized as:
 # dmesg | grep ulpt 
 ulpt0 at uhub4 port 2 configuration 1 interface 0 Canon iP2000 rev 
 1.10/1.05 addr 2
 ulpt0: using bi-directional mode
 
 Then I consulted http://openprinting.org/ where I found, that gutenprint 
 drivers for my printer should work fine.
 So after installing CUPS and succesfully printing on a HP Laserjet I 
 installed gutenprint and tried to configure the Canon printer with the 
 Cups web interface. As Cups didn't have the Canon model as a choice I 
 manually downloaded the gutenprint database extracted the suitable .ppd 
 file and copied it to /usr/local/share/cups/model/. Still the printer is 
 not working.
 I am unsure if I made a stupid mistake so far, because after getting 
 gutenprint with pkg_add I presumably should not have downloaded the ppd 
 file manually.
 
 Here is the cups error log:
 
 I [11/Jun/2009:22:03:55 +] Job 18 queued on pixmaiP2000 by root.
 I [11/Jun/2009:22:03:55 +] Started filter 
 /usr/local/libexec/cups/filter/pstops (PID 25160) for job 18.
 I [11/Jun/2009:22:03:55 +] Started filter 
 /usr/local/libexec/cups/filter/pstoraster (PID 20648) for job 18.
 I [11/Jun/2009:22:03:55 +] Started filter 
 /opt/gutenprint/cups/lib/filter/rastertogutenprint.5.0 (PID 19387) for job 


seems like an odd path.  you probably don't want to use the downloaded
PPDs.

also, I don't think you understood what it says @ openprinting.org.
the entry for this printer is a little confusing.  you are supposed
to treat the printer like it's a bj800 or bj7000.  if you install the
foomatic-db-engine package, you can get a PPD like so:

$ foomatic-ppdfile -p Canon-BJC-7000 -d bjc800

that one will use plain ol' ghostscipt, no gutenprint.  if you wish
to try the gutenprint driver, install foomatic-db-gutenprint and
do

$ foomatic-ppdfile -p Canon-BJC-7000 -d gutenprint

of course the main confusion is that the openprinting.org entry
uses 'bj' instead of 'bjc'.  note that the entry is user-contributed
and can be edited by anyone.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: cups and gutenprint refuse to work with canon usb printer

2009-06-14 Thread Moritz Herrmann
 Thank you all for your help,
like Jacob supposed, I misunderstood the entry of openprinting.org
and the usage of the foomatic-engine-db. With Jacob's explanation
everything worked instantaneously. Thank you very much!
Moritz

Jacob Meuser wrote:

  On Thu, Jun 11, 2009 at 10:08:09PM +, Moritz Herrmann wrote:

Hi guys,
after trying a whole day myself to get the old Canon PIXMA iP2000 to 
print from OBSD 4.5
i considered asking the mailing list for help.

The printer itself is fine and is recognized as:
# dmesg | grep ulpt 
ulpt0 at uhub4 port 2 configuration 1 interface 0 Canon iP2000 rev 
1.10/1.05 addr 2
ulpt0: using bi-directional mode

Then I consulted http://openprinting.org/ where I found, that 
gutenprint 
drivers for my printer should work fine.
So after installing CUPS and succesfully printing on a HP Laserjet I 
installed gutenprint and tried to configure the Canon printer with the 
Cups web interface. As Cups didn't have the Canon model as a choice I 
manually downloaded the gutenprint database extracted the suitable .ppd 
file and copied it to /usr/local/share/cups/model/. Still the printer is 
not working.
I am unsure if I made a stupid mistake so far, because after getting 
gutenprint with pkg_add I presumably should not have downloaded the ppd 
file manually.

Here is the cups error log:

I [11/Jun/2009:22:03:55 +] Job 18 queued on pixmaiP2000 by root.
I [11/Jun/2009:22:03:55 +] Started filter 
/usr/local/libexec/cups/filter/pstops (PID 25160) for job 18.
I [11/Jun/2009:22:03:55 +] Started filter 
/usr/local/libexec/cups/filter/pstoraster (PID 20648) for job 18.
I [11/Jun/2009:22:03:55 +] Started filter 
/opt/gutenprint/cups/lib/filter/rastertogutenprint.5.0 (PID 19387) for job 

  
  seems like an odd path.  you probably don't want to use the downloaded
  PPDs.
  
  also, I don't think you understood what it says @ openprinting.org.
  the entry for this printer is a little confusing.  you are supposed
  to treat the printer like it's a bj800 or bj7000.  if you install the
  foomatic-db-engine package, you can get a PPD like so:
  
  $ foomatic-ppdfile -p Canon-BJC-7000 -d bjc800
  
  that one will use plain ol' ghostscipt, no gutenprint.  if you wish
  to try the gutenprint driver, install foomatic-db-gutenprint and
  do
  
  $ foomatic-ppdfile -p Canon-BJC-7000 -d gutenprint
  
  of course the main confusion is that the openprinting.org entry
  uses 'bj' instead of 'bjc'.  note that the entry is user-contributed
  and can be edited by anyone.



cups and gutenprint refuse to work with canon usb printer

2009-06-11 Thread Moritz Herrmann

Hi guys,
after trying a whole day myself to get the old Canon PIXMA iP2000 to 
print from OBSD 4.5

i considered asking the mailing list for help.

The printer itself is fine and is recognized as:
# dmesg | grep ulpt 
ulpt0 at uhub4 port 2 configuration 1 interface 0 Canon iP2000 rev 
1.10/1.05 addr 2

ulpt0: using bi-directional mode

Then I consulted http://openprinting.org/ where I found, that gutenprint 
drivers for my printer should work fine.
So after installing CUPS and succesfully printing on a HP Laserjet I 
installed gutenprint and tried to configure the Canon printer with the 
Cups web interface. As Cups didn't have the Canon model as a choice I 
manually downloaded the gutenprint database extracted the suitable .ppd 
file and copied it to /usr/local/share/cups/model/. Still the printer is 
not working.
I am unsure if I made a stupid mistake so far, because after getting 
gutenprint with pkg_add I presumably should not have downloaded the ppd 
file manually.


Here is the cups error log:

I [11/Jun/2009:22:03:55 +] Job 18 queued on pixmaiP2000 by root.
I [11/Jun/2009:22:03:55 +] Started filter 
/usr/local/libexec/cups/filter/pstops (PID 25160) for job 18.
I [11/Jun/2009:22:03:55 +] Started filter 
/usr/local/libexec/cups/filter/pstoraster (PID 20648) for job 18.
I [11/Jun/2009:22:03:55 +] Started filter 
/opt/gutenprint/cups/lib/filter/rastertogutenprint.5.0 (PID 19387) for job 18.
I [11/Jun/2009:22:03:55 +] Started backend 
/usr/local/libexec/cups/backend/usb (PID 29145) for job 18.
E [11/Jun/2009:22:03:55 +] PID 29145 (/usr/local/libexec/cups/backend/usb) 
stopped with status 1!
I [11/Jun/2009:22:03:55 +] Hint: Try setting the LogLevel to debug to 
find out more.
E [11/Jun/2009:22:03:55 +] PID 19387 
(/opt/gutenprint/cups/lib/filter/rastertogutenprint.5.0) crashed on signal 6!
I [11/Jun/2009:22:03:55 +] Hint: Try setting the LogLevel to debug to 
find out more.
E [11/Jun/2009:22:03:55 +] [Job 18] Unable to open USB device 
usb:/dev/ulpt0: Permission denied
I [11/Jun/2009:22:03:57 +] [Job 18] Backend returned status 1 (failed)
I [11/Jun/2009:22:03:57 +] Saving printers.conf...
I [11/Jun/2009:22:03:58 +] Started 
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=18730)
I [11/Jun/2009:22:04:04 +] Started 
/usr/local/libexec/cups/cgi-bin/admin.cgi (pid=6313)
I [11/Jun/2009:22:04:05 +] Started 
/usr/local/libexec/cups/daemon/cups-deviced (pid=7400)

I hope someone can help here,

greetz Moritz



Re: cups and gutenprint refuse to work with canon usb printer

2009-06-11 Thread Cem Kayali

Maybe you should try

file:/dev/ulpt0


Regards,
Cem

Moritz Herrmann, 06/12/09 01:08:

Hi guys,
after trying a whole day myself to get the old Canon PIXMA iP2000 to 
print from OBSD 4.5

i considered asking the mailing list for help.

The printer itself is fine and is recognized as:
# dmesg | grep ulpt ulpt0 at uhub4 port 2 configuration 1 interface 0 
Canon iP2000 rev 1.10/1.05 addr 2

ulpt0: using bi-directional mode

Then I consulted http://openprinting.org/ where I found, that 
gutenprint drivers for my printer should work fine.
So after installing CUPS and succesfully printing on a HP Laserjet I 
installed gutenprint and tried to configure the Canon printer with the 
Cups web interface. As Cups didn't have the Canon model as a choice I 
manually downloaded the gutenprint database extracted the suitable 
.ppd file and copied it to /usr/local/share/cups/model/. Still the 
printer is not working.
I am unsure if I made a stupid mistake so far, because after getting 
gutenprint with pkg_add I presumably should not have downloaded the 
ppd file manually.


Here is the cups error log:

I [11/Jun/2009:22:03:55 +] Job 18 queued on pixmaiP2000 by root.
I [11/Jun/2009:22:03:55 +] Started filter 
/usr/local/libexec/cups/filter/pstops (PID 25160) for job 18.
I [11/Jun/2009:22:03:55 +] Started filter 
/usr/local/libexec/cups/filter/pstoraster (PID 20648) for job 18.
I [11/Jun/2009:22:03:55 +] Started filter 
/opt/gutenprint/cups/lib/filter/rastertogutenprint.5.0 (PID 19387) for 
job 18.
I [11/Jun/2009:22:03:55 +] Started backend 
/usr/local/libexec/cups/backend/usb (PID 29145) for job 18.
E [11/Jun/2009:22:03:55 +] PID 29145 
(/usr/local/libexec/cups/backend/usb) stopped with status 1!
I [11/Jun/2009:22:03:55 +] Hint: Try setting the LogLevel to 
debug to find out more.
E [11/Jun/2009:22:03:55 +] PID 19387 
(/opt/gutenprint/cups/lib/filter/rastertogutenprint.5.0) crashed on 
signal 6!
I [11/Jun/2009:22:03:55 +] Hint: Try setting the LogLevel to 
debug to find out more.
E [11/Jun/2009:22:03:55 +] [Job 18] Unable to open USB device 
usb:/dev/ulpt0: Permission denied
I [11/Jun/2009:22:03:57 +] [Job 18] Backend returned status 1 
(failed)

I [11/Jun/2009:22:03:57 +] Saving printers.conf...
I [11/Jun/2009:22:03:58 +] Started 
/usr/local/libexec/cups/cgi-bin/printers.cgi (pid=18730)
I [11/Jun/2009:22:04:04 +] Started 
/usr/local/libexec/cups/cgi-bin/admin.cgi (pid=6313)
I [11/Jun/2009:22:04:05 +] Started 
/usr/local/libexec/cups/daemon/cups-deviced (pid=7400)


I hope someone can help here,

greetz Moritz




Re: cups and gutenprint refuse to work with canon usb printer

2009-06-11 Thread Antoine Jacoutot
On Thu, 11 Jun 2009, Moritz Herrmann wrote:
 E [11/Jun/2009:22:03:55 +] [Job 18] Unable to open USB device
 usb:/dev/ulpt0: Permission denied

This is probably your issue.
Give /dev/ulpt0 ownership to the _cups user.


-- 
Antoine



usb printer speed

2007-08-20 Thread Onat I#350;IK
My usb printer works very slow under OpenBSD,
I mean, when compared to other operating systems.
According to dmesg, the printer operates through
usb version 1. Is there any way, like kernel
configuration or so, to make it operate under
usb version 2?

I'm asking because I want to erase that other
operating system from my hard drive. Currently
I only need it to print faster.

Send instant messages to your online friends http://uk.messenger.yahoo.com 



OpenBSD and USB printer

2007-06-10 Thread Bambero

Hello

I have problem to configure USB printer (CANON ip4200) using cups.
Here are some outputs:

# usbdevs
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: UHCI root hub, Intel
addr 1: EHCI root hub, Intel
addr 2: iP4200, Canon

dmesg

ulpt0 at uhub4 port 7 configuration 1 interface 0
ulpt0: Canon iP4200, rev 2.00/1.09, addr 2, iclass 7/1
ulpt0: using bi-directional mode
...

when starting cups returns following messages:

I [10/Jun/2007:20:56:17 +0200] Listening to 0:631
I [10/Jun/2007:20:56:17 +0200] Loaded configuration file /etc/cups/cupsd.conf
I [10/Jun/2007:20:56:17 +0200] Configured for up to 100 clients.
I [10/Jun/2007:20:56:17 +0200] Allowing up to 100 client connections per host.
I [10/Jun/2007:20:56:17 +0200] Full reload is required.
W [10/Jun/2007:20:56:47 +0200] LoadDevices: Backend did not respond
within 30 seconds!
I [10/Jun/2007:20:56:49 +0200] LoadPPDs: Read /etc/cups/ppds.dat, 13 PPDs...
I [10/Jun/2007:20:56:49 +0200] LoadPPDs: No new or changed PPDs...
I [10/Jun/2007:20:56:49 +0200] Full reload complete.

What may be wrong ?

Regards
Bambero



Re: USB Printer Recommendation

2007-04-03 Thread James Turner
On Mon, Apr 02, 2007 at 10:52:03PM -0500, Denny White wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
 
 Alright, I was able to get the printer to print using the apsfilter.  
 Works
 awesome!  Now to buy some ink and remove all traces of windows from my 
 hard
 drive.  Thanks again everyone!
 
 Alright, well the disposition didn't have any cheap laser printers but I 
 did
 find a HP DeskJet 810C for $15.  I know you guys said stay away from 
 inkjet
 printers, but the price was right and the hpijs driver says it supports 
 it.
 It's connected via usb.  I installed hpijs along with all it's 
 dependencies.
 I
 then edited /etc/printcap with:
 lp|DeskJet:\
   :lp=/dev/ulpt0:\
   :af=/usr/local/share/ppd/HP/HP-DeskJEt_810C-hpijs.ppd.gz:\
   :if=/usr/local/bin/foomatic-rip:\
   :sd=/var/spool/output:\
   :sh
 
 After starting lpd, I then tried to print with lpr, lpr /etc/printcap.
 The printer starts up and begins to print, but then the paper light comes
 on and after pressing it, a blank sheet comes out.  Anybody have any
 thoughts?  Is my printcap wrong?  Thanks.
 
 
 
 Today James Turner wrote:
 
 Well, it seems I'm still having issues with apsfilter.  It prints the
 first 1/4 of the page on one sheet and the other 3/4 on another.  I'm
 now trying the foomatic-rip script again, which is yielding the same
 result as last time.  Some one emailed me a nice set of instructions off
 list, but I no longer have them  since I thought apsfilter was working.
 Below is my /etc/printcap file, I have a2ps, hpijs and ghostscript all
 installed.  Any help would be great, thanks.
 
 lp|DeskJet:\
  :lp=/dev/ulpt0:\
  :if=/usr/local/bin/foomatic-rip:\
  :sd=/var/spool/lpd/lp:\
  :lf=/var/spool/lpd/lp/log:\
  :af=/usr/local/share/ppd/HP/HP-DeskJet_810C-hpijs.ppd.gz:\
  :sh:
 
 Moved your posting down so it can be followed better. I never
 had much luck with apsfilter or hpijs. I have an old HP DeskJet
 722C on an xp box. Everytime I do a new install of OpenBSD, I
 copy foomatic-rip  the pertinent ppd file to /usr/local/bin 
 use the following /etc/printcap entry:
 
 
 rp|windows line printer:\
   :rp=HPDeskJet:\
   :rm=remotexpbox:\
   :af=/usr/local/bin/pnm2ppa.ppd:\
   :if=/usr/local/bin/foomatic-rip:\
   :sd=/var/spool/output:\
   :mx#0:\
   :sh
 
 I noticed your ppd file is either gzipped or the entry in your
 printcap is wrong. That may be a capability of apsfilter, foomatic
 or hpijs I'm not familiar with. Don't know, but in all probability,
 someone on the list may enlighten me. ;) Also, my printer is not usb
 so that may be an issue. I just know the procedure I outlined above
 works okay here. So, try putting the ungzipped ppd file into
 /usr/local/bin, set the path appropriately in printcap, then try
 
 lpr -Plp filetoprint
 
 Hope this helps.
 
 - --Denny White
 
 
 ===
 GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
 Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
 ===
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (OpenBSD)
 
 iD8DBQFGEc9oy0Ty5RZE55oRAi+EAJ9eVlnhCg3yNOPNr/Da71qsCZw8twCgiMtu
 DX8aoVA2QVqz0CsImN+GDHc=
 =Jfhw
 -END PGP SIGNATURE-
Thanks for the help, gunzipping the ppd file and moving it into /usr/local/bin
worked.  Except it's doing what apsfilter did, printing the first half on one
sheet of paper and the rest on another.  Could this be a problem with the
printer?  This is the point where I wished I follower everyone's advice and just
spent the money on a laser postscript printer!



Re: USB Printer Recommendation

2007-04-02 Thread James Turner
Well, it seems I'm still having issues with apsfilter.  It prints the first 1/4
of the page on one sheet and the other 3/4 on another.  I'm now trying the
foomatic-rip script again, which is yielding the same result as last time.  Some
one emailed me a nice set of instructions off list, but I no longer have them
since I thought apsfilter was working.  Below is my /etc/printcap file, I have
a2ps, hpijs and ghostscript all installed.  Any help would be great, thanks.

lp|DeskJet:\
  :lp=/dev/ulpt0:\
  :if=/usr/local/bin/foomatic-rip:\
  :sd=/var/spool/lpd/lp:\
  :lf=/var/spool/lpd/lp/log:\
  :af=/usr/local/share/ppd/HP/HP-DeskJet_810C-hpijs.ppd.gz:\
  :sh:

 Alright, I was able to get the printer to print using the apsfilter.  Works
 awesome!  Now to buy some ink and remove all traces of windows from my hard
 drive.  Thanks again everyone!

  Alright, well the disposition didn't have any cheap laser printers but I did
  find a HP DeskJet 810C for $15.  I know you guys said stay away from inkjet
  printers, but the price was right and the hpijs driver says it supports it.
  It's connected via usb.  I installed hpijs along with all it's dependencies.
  I
  then edited /etc/printcap with:
  lp|DeskJet:\
:lp=/dev/ulpt0:\
:af=/usr/local/share/ppd/HP/HP-DeskJEt_810C-hpijs.ppd.gz:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/output:\
:sh
  
  After starting lpd, I then tried to print with lpr, lpr /etc/printcap.  
  The
  printer starts up and begins to print, but then the paper light comes on and
  after pressing it, a blank sheet comes out.  Anybody have any thoughts?  Is 
  my
  printcap wrong?  Thanks.



Re: USB Printer Recommendation

2007-04-02 Thread Denny White

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1





Alright, I was able to get the printer to print using the apsfilter.  Works
awesome!  Now to buy some ink and remove all traces of windows from my hard
drive.  Thanks again everyone!


Alright, well the disposition didn't have any cheap laser printers but I did
find a HP DeskJet 810C for $15.  I know you guys said stay away from inkjet
printers, but the price was right and the hpijs driver says it supports it.
It's connected via usb.  I installed hpijs along with all it's dependencies.
I
then edited /etc/printcap with:
lp|DeskJet:\
  :lp=/dev/ulpt0:\
  :af=/usr/local/share/ppd/HP/HP-DeskJEt_810C-hpijs.ppd.gz:\
  :if=/usr/local/bin/foomatic-rip:\
  :sd=/var/spool/output:\
  :sh

After starting lpd, I then tried to print with lpr, lpr /etc/printcap.
The printer starts up and begins to print, but then the paper light comes
on and after pressing it, a blank sheet comes out.  Anybody have any
thoughts?  Is my printcap wrong?  Thanks.





Today James Turner wrote:


Well, it seems I'm still having issues with apsfilter.  It prints the
first 1/4 of the page on one sheet and the other 3/4 on another.  I'm
now trying the foomatic-rip script again, which is yielding the same
result as last time.  Some one emailed me a nice set of instructions off
list, but I no longer have them  since I thought apsfilter was working.
Below is my /etc/printcap file, I have a2ps, hpijs and ghostscript all
installed.  Any help would be great, thanks.

lp|DeskJet:\
 :lp=/dev/ulpt0:\
 :if=/usr/local/bin/foomatic-rip:\
 :sd=/var/spool/lpd/lp:\
 :lf=/var/spool/lpd/lp/log:\
 :af=/usr/local/share/ppd/HP/HP-DeskJet_810C-hpijs.ppd.gz:\
 :sh:


Moved your posting down so it can be followed better. I never
had much luck with apsfilter or hpijs. I have an old HP DeskJet
722C on an xp box. Everytime I do a new install of OpenBSD, I
copy foomatic-rip  the pertinent ppd file to /usr/local/bin 
use the following /etc/printcap entry:


rp|windows line printer:\
:rp=HPDeskJet:\
:rm=remotexpbox:\
:af=/usr/local/bin/pnm2ppa.ppd:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/output:\
:mx#0:\
:sh

I noticed your ppd file is either gzipped or the entry in your
printcap is wrong. That may be a capability of apsfilter, foomatic
or hpijs I'm not familiar with. Don't know, but in all probability,
someone on the list may enlighten me. ;) Also, my printer is not usb
so that may be an issue. I just know the procedure I outlined above
works okay here. So, try putting the ungzipped ppd file into
/usr/local/bin, set the path appropriately in printcap, then try

lpr -Plp filetoprint

Hope this helps.

- --Denny White


===
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===
iD8DBQFGEc9oy0Ty5RZE55oRAi+EAJ9eVlnhCg3yNOPNr/Da71qsCZw8twCgiMtu
DX8aoVA2QVqz0CsImN+GDHc=
=Jfhw
-END PGP SIGNATURE-



Re: USB Printer Recommendation

2007-03-21 Thread Greg Thomas

On 3/21/07, Bob Beck [EMAIL PROTECTED] wrote:

* James Turner [EMAIL PROTECTED] [2007-03-21 00:11]:
 I'm looking to finally cut the last strand that keeps windows on my hard 
drive.  I currently have a brother mfc-210c printer.  I'm looking to replace it 
with a cheap openbsd/lpr friendly solution.  Although the mfc is a multifunction 
printer, that is not a requirement for the new printer.  It has finally sunk in 
how sad it is to have to keep windows just to print, it's also a pain in the ass 
to have to reboot every time I want to print.  Any suggestions would be awesome, 
thanks.


LexMark C510 laser. Color, ethernet, postscript. $325 CDN 6 months ago
just works.

I've had nothing but pain and aggravation with bullshit inkjets.



That sounds like a nice one.  Unfortunately I don't think the OP is
going to find anything with ps for under his target price of $50.  Oh
well.

Greg



Re: USB Printer Recommendation

2007-03-21 Thread James Turner
On Wed, Mar 21, 2007 at 10:27:40AM -0600, Bob Beck wrote:
 * James Turner [EMAIL PROTECTED] [2007-03-21 00:11]:
  I'm looking to finally cut the last strand that keeps windows on my hard 
  drive.  I currently have a brother mfc-210c printer.  I'm looking to 
  replace it with a cheap openbsd/lpr friendly solution.  Although the mfc is 
  a multifunction printer, that is not a requirement for the new printer.  It 
  has finally sunk in how sad it is to have to keep windows just to print, 
  it's also a pain in the ass to have to reboot every time I want to print.  
  Any suggestions would be awesome, thanks.
  
 
   LexMark C510 laser. Color, ethernet, postscript. $325 CDN 6 months ago
 just works.
 
   I've had nothing but pain and aggravation with bullshit inkjets.
 
   -B
 

Although this seems like a great printer, my biggest limitation is price.  We
have a university property disposition near me, which I'm going to go check out
later today.  My friend has gotten a couple sun sparc stations from them for
under $20 bucks.  I'm hoping they will have some cheap laser printers.  Thanks
for your recommendation.



Re: USB Printer Recommendation

2007-03-21 Thread Darrin Chandler
On Wed, Mar 21, 2007 at 10:27:40AM -0600, Bob Beck wrote:
   LexMark C510 laser. Color, ethernet, postscript. $325 CDN 6 months ago
 just works.
 
   I've had nothing but pain and aggravation with bullshit inkjets.

Was that new or used? And if you don't mind sharing where you bought it
then please do. I'm finding them, but for a lot more money.

-- 
Darrin Chandler   |  Phoenix BSD Users Group
[EMAIL PROTECTED]  |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/darrin/  |



Re: USB Printer Recommendation

2007-03-21 Thread Greg Thomas

On 3/21/07, James Turner [EMAIL PROTECTED] wrote:



Although this seems like a great printer, my biggest limitation is price.  We
have a university property disposition near me, which I'm going to go check out
later today.  My friend has gotten a couple sun sparc stations from them for
under $20 bucks.  I'm hoping they will have some cheap laser printers.  Thanks
for your recommendation.



Several years ago I got an old, used Xerox laser printer for really
cheap, with postscript and network interface, in a similar place.  For
printing term papers I'd highly recommend trying to find a used laser.

Greg



Re: USB Printer Recommendation

2007-03-21 Thread Bob Beck
 Although this seems like a great printer, my biggest limitation is price.  We
 have a university property disposition near me, which I'm going to go check 
 out
 later today.  My friend has gotten a couple sun sparc stations from them for
 under $20 bucks.  I'm hoping they will have some cheap laser printers.  Thanks
 for your recommendation.
 

If you're going to a surplus auction from a university, any of the
older school hp lasrjet printers (4m+ 5m, etc. etc.) that do postscript
would be a good pick. heavy as all hell, and not good on power
(so you need to turn them off when you're not using it if you're
paying the power bill) but you can still get cartridge refills easy
for them.  You may need to be a bit clever and take some oil of wintergreen
to the rubber pickup rollers if they're old and slick. 

A postscript ethernet capable laserjet would work well. 
your biggest risk there is you get one with a crappy cartridge or 
drum, meaning you'd need to shell out another hundred bucks or so
to make it work, which can turn your $20 printer into $170 printer
pretty quick. 

Do your homework and find somethign that speaks postscript.

-Bob



Re: USB Printer Recommendation

2007-03-21 Thread Bob Beck
* Darrin Chandler [EMAIL PROTECTED] [2007-03-21 11:30]:
 On Wed, Mar 21, 2007 at 10:27:40AM -0600, Bob Beck wrote:
  LexMark C510 laser. Color, ethernet, postscript. $325 CDN 6 months ago
  just works.
  
  I've had nothing but pain and aggravation with bullshit inkjets.
 
 Was that new or used? And if you don't mind sharing where you bought it
 then please do. I'm finding them, but for a lot more money.

New, used, it doesn't matter

Most of them have bullshit printer suport that you have to
install crazy ghostscript filters to print to them, or cups nonsense.
Bleah.

Get something that groks postscript :)

-Bob



Re: USB Printer Recommendation

2007-03-21 Thread Darrin Chandler
On Wed, Mar 21, 2007 at 11:35:53AM -0600, Bob Beck wrote:
 * Darrin Chandler [EMAIL PROTECTED] [2007-03-21 11:30]:
  On Wed, Mar 21, 2007 at 10:27:40AM -0600, Bob Beck wrote:
 LexMark C510 laser. Color, ethernet, postscript. $325 CDN 6 months ago
   just works.
   
 I've had nothing but pain and aggravation with bullshit inkjets.
  
  Was that new or used? And if you don't mind sharing where you bought it
  then please do. I'm finding them, but for a lot more money.
 
   New, used, it doesn't matter
 
   Most of them have bullshit printer suport that you have to
 install crazy ghostscript filters to print to them, or cups nonsense.
 Bleah.
 
   Get something that groks postscript :)

Ok, I should have trimmed more. I was asking about the LexMark C510,
which I have only found for way more than the $325 you mentioned
($500-600). If you know of a cheap source then please share!

-- 
Darrin Chandler   |  Phoenix BSD Users Group
[EMAIL PROTECTED]  |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/darrin/  |



Re: USB Printer Recommendation

2007-03-21 Thread Travers Buda
 On Wed, 21 Mar 2007, James Turner wrote:
 
 Although this seems like a great printer, my biggest limitation is price.  
 We
 have a university property disposition near me, which I'm going to go 
 check out
 later today.  My friend has gotten a couple sun sparc stations from them 
 for
 under $20 bucks.  I'm hoping they will have some cheap laser printers.  
 Thanks
 for your recommendation.

Printers are the bane of my existance.  However, I have had wonderful
experiences with the HP LJ 4m.  Ancient, power-hungr, loud.  Yet
it works beautifly with postscript via serial, parallel, or over
the network (you can just do cat blah.ps | nc printer some-port-i-forget.
Nmap it to find out.) The guys down at the surplus probably consider
it worthless junk, so that should help with your price.

-- 
Travers Buda



Re: USB Printer Recommendation

2007-03-21 Thread James Turner
Alright, well the disposition didn't have any cheap laser printers but I did
find a HP DeskJet 810C for $15.  I know you guys said stay away from inkjet
printers, but the price was right and the hpijs driver says it supports it.
It's connected via usb.  I installed hpijs along with all it's dependencies.  I
then edited /etc/printcap with:
lp|DeskJet:\
  :lp=/dev/ulpt0:\
  :af=/usr/local/share/ppd/HP/HP-DeskJEt_810C-hpijs.ppd.gz:\
  :if=/usr/local/bin/foomatic-rip:\
  :sd=/var/spool/output:\
  :sh

After starting lpd, I then tried to print with lpr, lpr /etc/printcap.  The
printer starts up and begins to print, but then the paper light comes on and
after pressing it, a blank sheet comes out.  Anybody have any thoughts?  Is my
printcap wrong?  Thanks.

On Wed, Mar 21, 2007 at 11:15:33AM -0600, Bob Beck wrote:
  
  Although this seems like a great printer, my biggest limitation is price.  
  We
  have a university property disposition near me, which I'm going to go check 
  out
  later today.  My friend has gotten a couple sun sparc stations from them for
  under $20 bucks.  I'm hoping they will have some cheap laser printers.  
  Thanks
  for your recommendation.
  
 
   If you're going to a surplus auction from a university, any of the
 older school hp lasrjet printers (4m+ 5m, etc. etc.) that do postscript
 would be a good pick. heavy as all hell, and not good on power
 (so you need to turn them off when you're not using it if you're
 paying the power bill) but you can still get cartridge refills easy
 for them.  You may need to be a bit clever and take some oil of wintergreen
 to the rubber pickup rollers if they're old and slick. 
 
   A postscript ethernet capable laserjet would work well. 
 your biggest risk there is you get one with a crappy cartridge or 
 drum, meaning you'd need to shell out another hundred bucks or so
 to make it work, which can turn your $20 printer into $170 printer
 pretty quick. 
 
   Do your homework and find somethign that speaks postscript.
 
   -Bob



Re: USB Printer Recommendation

2007-03-21 Thread James Turner
Alright, I was able to get the printer to print using the apsfilter.  Works
awesome!  Now to buy some ink and remove all traces of windows from my hard
drive.  Thanks again everyone!

On Wed, Mar 21, 2007 at 03:46:19PM -0400, James Turner wrote:
 Alright, well the disposition didn't have any cheap laser printers but I did
 find a HP DeskJet 810C for $15.  I know you guys said stay away from inkjet
 printers, but the price was right and the hpijs driver says it supports it.
 It's connected via usb.  I installed hpijs along with all it's dependencies.  
 I
 then edited /etc/printcap with:
 lp|DeskJet:\
   :lp=/dev/ulpt0:\
   :af=/usr/local/share/ppd/HP/HP-DeskJEt_810C-hpijs.ppd.gz:\
   :if=/usr/local/bin/foomatic-rip:\
   :sd=/var/spool/output:\
   :sh
 
 After starting lpd, I then tried to print with lpr, lpr /etc/printcap.  The
 printer starts up and begins to print, but then the paper light comes on and
 after pressing it, a blank sheet comes out.  Anybody have any thoughts?  Is my
 printcap wrong?  Thanks.
 
 On Wed, Mar 21, 2007 at 11:15:33AM -0600, Bob Beck wrote:
   
   Although this seems like a great printer, my biggest limitation is price. 
We
   have a university property disposition near me, which I'm going to go 
   check out
   later today.  My friend has gotten a couple sun sparc stations from them 
   for
   under $20 bucks.  I'm hoping they will have some cheap laser printers.  
   Thanks
   for your recommendation.
   
  
  If you're going to a surplus auction from a university, any of the
  older school hp lasrjet printers (4m+ 5m, etc. etc.) that do postscript
  would be a good pick. heavy as all hell, and not good on power
  (so you need to turn them off when you're not using it if you're
  paying the power bill) but you can still get cartridge refills easy
  for them.  You may need to be a bit clever and take some oil of wintergreen
  to the rubber pickup rollers if they're old and slick. 
  
  A postscript ethernet capable laserjet would work well. 
  your biggest risk there is you get one with a crappy cartridge or 
  drum, meaning you'd need to shell out another hundred bucks or so
  to make it work, which can turn your $20 printer into $170 printer
  pretty quick. 
  
  Do your homework and find somethign that speaks postscript.
  
  -Bob



Re: USB Printer Recommendation

2007-03-21 Thread Steve Shockley

James Turner wrote:

Although this seems like a great printer, my biggest limitation is price.  We
have a university property disposition near me, which I'm going to go check out
later today.  My friend has gotten a couple sun sparc stations from them for
under $20 bucks.  I'm hoping they will have some cheap laser printers.  Thanks
for your recommendation.


A used small-office laser is probably a better bet, but if you want 
cheap there's always the Dell 1110 
(http://openprinting.org/show_printer.cgi?recnum=Dell-1100_Laser_Printer) 
and from what I see it looks like it should work with some configuration.


Of course, Bob's right, getting a Postscript printer (or even PCL) is 
the way to go.  I got a Dell 3100CN for ~$US260 shipped a while back, so 
keep your eyes peeled.  It'll be a long time before I need another printer.




Re: USB Printer Recommendation

2007-03-21 Thread James Turner
On Tue, Mar 20, 2007 at 11:19:39PM -0700, Greg Thomas wrote:
 On 3/20/07, James Turner [EMAIL PROTECTED] wrote:
 I'm looking to finally cut the last strand that keeps windows on my hard 
 drive.
 
 You didn't mention ink or laser but my Brother HL-5250DN works GREAT
 for the price.
 
 Greg


Ink is fine, I'm just looking for something to print my term papers.  I prefer 
a price tag under $50. 



Re: USB Printer Recommendation

2007-03-21 Thread Bob Beck
* James Turner [EMAIL PROTECTED] [2007-03-21 00:11]:
 I'm looking to finally cut the last strand that keeps windows on my hard 
 drive.  I currently have a brother mfc-210c printer.  I'm looking to replace 
 it with a cheap openbsd/lpr friendly solution.  Although the mfc is a 
 multifunction printer, that is not a requirement for the new printer.  It has 
 finally sunk in how sad it is to have to keep windows just to print, it's 
 also a pain in the ass to have to reboot every time I want to print.  Any 
 suggestions would be awesome, thanks.
 

LexMark C510 laser. Color, ethernet, postscript. $325 CDN 6 months ago
just works.

I've had nothing but pain and aggravation with bullshit inkjets.

-B



USB Printer Recommendation

2007-03-20 Thread James Turner
I'm looking to finally cut the last strand that keeps windows on my hard drive. 
 I currently have a brother mfc-210c printer.  I'm looking to replace it with a 
cheap openbsd/lpr friendly solution.  Although the mfc is a multifunction 
printer, that is not a requirement for the new printer.  It has finally sunk in 
how sad it is to have to keep windows just to print, it's also a pain in the 
ass to have to reboot every time I want to print.  Any suggestions would be 
awesome, thanks.



Re: USB Printer Recommendation

2007-03-20 Thread Greg Thomas

On 3/20/07, James Turner [EMAIL PROTECTED] wrote:

I'm looking to finally cut the last strand that keeps windows on my hard drive.


You didn't mention ink or laser but my Brother HL-5250DN works GREAT
for the price.

Greg



Re: USB printer not working

2007-01-24 Thread Heinrich Rebehn

Heinrich Rebehn wrote:

Hi all,

i just received a Soekris 4801 which i want to use as a file and print 
server. However, i cannot get the printer to work. For testing purposes 
i am using a  HP Deskjet 600 connected via a USB/Parallel cable.


When i connect the printer it shows up as:

ulpt0 at uhub0 port 1 configuration 1 interface 0
ulpt0: Prolific Technology Inc. IEEE-1284 Controller, rev 1.00/2.02, 
addr 2, iclass 7/1

ulpt0: using bi-directional mode

Trying to access the printer:

# echo Hello World  /dev/ulpt0
-bash: /dev/ulpt0: Resource temporarily unavailable
# echo Hello World  /dev/ulpt0
-bash: /dev/ulpt0: Device busy

Further attempts always yield Device busy.

The printer is working fine on another machine under Windows and Linux.
The soekris' USB port seems to be ok too, since i can access a USB stick.

Browsing the web only showed some old posts saying that this used to 
work with 2.8 :-(. The FAQ says nothing about printing at all.


Am i missing something? Anything to configure?

dmesg is attached. Thanks for any help :-)



For the records: Connecting the USB/Parallel adapter cable via a USB HUB 
works. So does using a real USB printer. So it seemed to be a USB 
power problem.


--Heinrich



USB printer not working

2007-01-10 Thread Heinrich Rebehn
Hi all,

i just received a Soekris 4801 which i want to use as a file and print 
server. However, i cannot get the printer to work. For testing purposes 
i am using a  HP Deskjet 600 connected via a USB/Parallel cable.

When i connect the printer it shows up as:

ulpt0 at uhub0 port 1 configuration 1 interface 0
ulpt0: Prolific Technology Inc. IEEE-1284 Controller, rev 1.00/2.02, 
addr 2, iclass 7/1
ulpt0: using bi-directional mode

Trying to access the printer:

# echo Hello World  /dev/ulpt0
-bash: /dev/ulpt0: Resource temporarily unavailable
# echo Hello World  /dev/ulpt0
-bash: /dev/ulpt0: Device busy

Further attempts always yield Device busy.

The printer is working fine on another machine under Windows and Linux.
The soekris' USB port seems to be ok too, since i can access a USB stick.

Browsing the web only showed some old posts saying that this used to 
work with 2.8 :-(. The FAQ says nothing about printing at all.

Am i missing something? Anything to configure?

dmesg is attached. Thanks for any help :-)

Heinrich Rebehn

University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -

Phone : +49/421/218-4664
Fax   :-3341
OpenBSD 4.0-stable (GENERIC) #1: Mon Nov  6 17:19:58 CET 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by National Semi (Geode by NSC 
586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 268005376 (261724K)
avail mem = 236724224 (231176K)
using 3297 buffers containing 13504512 bytes (13188K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 20/50/29, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Cyrix GXm PCI rev 0x00
sis0 at pci0 dev 6 function 0 NS DP83815 10/100 rev 0x00, DP83816A: irq 10, 
address 00:00:24:c7:34:00
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 7 function 0 NS DP83815 10/100 rev 0x00, DP83816A: irq 10, 
address 00:00:24:c7:34:01
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 8 function 0 NS DP83815 10/100 rev 0x00, DP83816A: irq 10, 
address 00:00:24:c7:34:02
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
gscpcib0 at pci0 dev 18 function 0 NS SC1100 ISA rev 0x00
gpio0 at gscpcib0: 64 pins
NS SC1100 SMI rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 NS SCx200 IDE rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: HITACHI_DK23EA-20
wd0: 16-sector PIO, LBA, 19077MB, 39070080 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
geodesc0 at pci0 dev 18 function 5 NS SC1100 X-Bus rev 0x00: iid 6 revision 3 
wdstatus 0
ohci0 at pci0 dev 19 function 0 Compaq USB OpenHost rev 0x08: irq 11, version 
1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
isa0 at gscpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask fbe5 netmask ffe5 ttymask ffe7
pctr: no performance counters in CPU
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: vendor 0x USB Flash Drive, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets
sd0 at scsibus0 targ 1 lun 0: USB, Flash Drive, 1.12 SCSI0 0/direct removable
sd0: 247MB, 247 cyl, 64 head, 32 sec, 512 bytes/sec, 507901 sec total
umass0: at uhub0 port 1 (addr 2) disconnected
sd0 detached
scsibus0 detached
umass0 detached
ulpt0 at uhub0 port 1 configuration 1 interface 0
ulpt0: Prolific Technology Inc. IEEE-1284 Controller, rev 1.00/2.02, addr 2, 
iclass 7/1
ulpt0: using bi-directional mode



usb printer problem

2006-03-18 Thread Carlos Alberto Pereira Gomes
Hi,
I'm trying to configure an Epson Stylus C67 usb inkjet printer without
success.

My system is an snapshot from:
OpenBSD 3.9-beta (GENERIC) #591: Thu Jan 19 12:32:39 MST 2006

I have a simple /etc/printcap:  

   
lp|lpjet|EpsonC67:\
:lp=/dev/ulpt0:\
:mx#0:\
:rs=false:\
:sd=/var/spool/output/lp:\
:lf=/var/log/lpd-errs:\
:sh:

The printer is detected with a similar message both at the usb 1.1 
and usb 2.0 ports:

ulpt0 at uhub0 port 2 configuration 1 interface 0
ulpt0: EPSON USB Printer, rev 1.10/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode


But when I use:

sudo cat sometextfile  /dev/ulpt0

or

lpr sometextfile

the printer makes some noise, moves the printing head and stops without 
printing anything.

commands like lpc restart all, lpc clean all, lprm - don't help.

I've searched google and found that a similar problem was solved by using 
/dev/unlpt0 but this device is not present in openbsd.

http://www.onlamp.com/pub/a/bsd/2003/11/06/Big_Scary_Daemons.html 

Have anyone had such a problem?

Am I missing some configuration?


Thanks,

-- 
Carlos 



Re: usb printer problem

2006-03-18 Thread Tom
Hello,
I had very similar problems with a HP 3845 following the same guide. I was
advised to try apsfilter which is in ports but still had no luck. Eventually
I tried using foomatic using the guide at
http://www.jakemsr.com/openbsd/foomatic.html
Worked for me, although it keeps printing using my now empty colour
cartridge, and ignores my black one.
Perhaps you'll have more luck.
Regards,
T

On 18/03/06, Carlos Alberto Pereira Gomes [EMAIL PROTECTED] wrote:

 Hi,
 I'm trying to configure an Epson Stylus C67 usb inkjet printer without
 success.

 My system is an snapshot from:
 OpenBSD 3.9-beta (GENERIC) #591: Thu Jan 19 12:32:39 MST 2006

 I have a simple /etc/printcap:
 lp|lpjet|EpsonC67:\
 :lp=/dev/ulpt0:\
 :mx#0:\
 :rs=false:\
 :sd=/var/spool/output/lp:\
 :lf=/var/log/lpd-errs:\
 :sh:

 The printer is detected with a similar message both at the usb 1.1
 and usb 2.0 ports:

 ulpt0 at uhub0 port 2 configuration 1 interface 0
 ulpt0: EPSON USB Printer, rev 1.10/1.00, addr 2, iclass 7/1
 ulpt0: using bi-directional mode


 But when I use:

 sudo cat sometextfile  /dev/ulpt0

 or

 lpr sometextfile

 the printer makes some noise, moves the printing head and stops without
 printing anything.

 commands like lpc restart all, lpc clean all, lprm - don't help.

 I've searched google and found that a similar problem was solved by using
 /dev/unlpt0 but this device is not present in openbsd.

 http://www.onlamp.com/pub/a/bsd/2003/11/06/Big_Scary_Daemons.html

 Have anyone had such a problem?

 Am I missing some configuration?


 Thanks,

 --
 Carlos



Re: looking for reliable USB printer

2005-10-04 Thread Shane J Pearson

Marc,

On 05/10/2005, at 5:39 AM, Daniel Martini wrote:


I bought a Kyocera FS-1010 in July 2004 for 249,- EUR. Probably one  
of the

cheapest blackwhite Laser Printers having native PostScript (actually
KPDL2, Kyoceras PostScript dialect). Works flawlessly up to now.  
Plug in


I know you are looking for USB, however if you are avoiding printers  
with

a network connection because they tend to be expensive, then...

I have not tried the USB functionality, however I have a Kyocera
FS-1020DN. My FS-1020DN also does postscript (in the printer), plus
duplex, came with an internal 10/100 print server and does 20 A4 ppm. I
have always just printed through the network. The duplex functionality
half ejects the paper and brings it back through the printer, so the
speed is more than halved when doing duplex printing.

It is not a dodgy GDI Win printer.

It seems cheap to me considering these features. Doing a quick search,
I find these brand new at around $630 Australian and 450 Euros at
French stores.


Shane J Pearson



Re: looking for reliable USB printer

2005-10-02 Thread Adriaan Misc
On 10/1/05, Marc Espie [EMAIL PROTECTED] wrote:

 Just wanted to know what people currently use for an usb printer under
 OpenBSD. I'm looking for rather cheap hardware that's currently sold
 in europe as brand new, and guaranteed to work (through experience)
 by people...


Last year I bought a HP Deskjet 3820, but I don't think it is really a
current model anymore. It has USB as well as a parallel port Because I don't
use color I take advantage of the PCL support of the printer and simply
configure it as a Laserjet. I use apsfilter
.
With hpijs it also prints color.

=Adriaan=



looking for reliable USB printer

2005-09-30 Thread Marc Espie
Just wanted to know what people currently use for an usb printer under
OpenBSD. I'm looking for rather cheap hardware that's currently sold
in europe as brand new, and guaranteed to work (through experience)
by people...