USB / printer woes

2008-04-24 Thread David Reedy Jr
Small home network. Bottom line, trying to get a USB printer working 
with cups. Right now I'm thinking it's more of a usb problem.

USB related dmesg output...

uhci0: VIA 83C572 USB controller port 0xd400-0xd41f at device 11.0 on 
pci2
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: VIA 83C572 USB controller on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: VIA 83C572 USB controller port 0xd000-0xd01f at device 11.1 on 
pci2
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: VIA 83C572 USB controller on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1
uhub1: 2 ports with 2 removable, self powered
ehci0: VIA VT6202 USB 2.0 controller mem 0xf200-0xf2ff at 
device 11.2 on pci2
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb2: EHCI version 1.0
usb2: companion controllers, 2 ports each: usb0 usb1
usb2: VIA VT6202 USB 2.0 controller on ehci0
usb2: USB revision 2.0
uhub2: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb2
uhub2: 4 ports with 4 removable, self powered

when I turn on the printer I get...

ulpt0: HP Deskjet 3840, class 0/0, rev 2.00/1.00, addr 2 on uhub1
ulpt0: using bi-directional mode

Depending on the physical port connected to, it's either uhub0 or uhub1, 
connecting to usb0 / usb1 both of which are usb revision 1.0. All the 
information I have says this printer is usb 2.0. Why is it not 
attaching to ehci0/uhub2/usb2?

echo something  /dev/ulpt0 results in silence. So does printing a 
test page from the cups web interface. It's a black hole.

Can anybody tell me what's wrong? Would removing ohci/uhci from the 
kernel force it to connect to the usb 2.0 side of things?

tia,

Dave.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unable to open device file /dev/lpt0: Permission denied

2008-04-23 Thread David Reedy Jr

Christian Zachariasen wrote:
On Wed, Apr 23, 2008 at 4:53 AM, David Reedy Jr [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


On Tuesday 22 April 2008 10:40:25 am Roland Smith wrote:
 On Tue, Apr 22, 2008 at 10:08:37AM -0500, David Reedy Jr wrote:
   IICR, the print device should belong to the cups group. At
least,
   that's my working setup.
  
   I have the following in /etc/devfs.conf:
  
   # Give cups printer access
   own lpt0root:cups
   permlpt00660
 
  Thanks for the info. This didn't actually fix the problem, but I
  know it was needed since I read somewhere that everything that
  cupsd spawns runs as cups.
 
  What I ended up doing was resetting my cupsd.conf to default and
  redid my settings. I must have had a typo in there somewhere
before
  because as soon as I restarted cupsd after making the changes, the
  parallel and usb ports suddenly became available as devices
for the
  printer.

 It happens. :-)

  I had previously selected lpd and then manually specified the uri
  as parallel:/dev/lpt0.
 
  The laser on the parallel port is now working fine.

 Good.

  I also went ahead
  and setup my deskjet on usb:/dev/ulpt0. Print test pages get
marked
  as completed but nothing actually comes out of the printer. Still
  trying to figure that one out.

 Have a look at the cups logfiles in /var/log/cups. They should give
 you some pointers. You'll probably need to set the device
permissions
 for ulpt in devfs.rules, not devfs.conf!

I got the rules setup in devfs.rules, no problem. When I turn on the
printer it's detected...

ulpt0: HP Deskjet 3840, class 0/0, rev 2.00/1.00, addr 2 on uhub0
ulpt0: using bi-directional mode

and things get set right permission-wise...

crw-rw  1 root  cups0,  88 Apr 22 21:20 /dev/ulpt0

according to /var/log/cups/error_log it prints...

I [22/Apr/2008:21:20:03 -0500]
Started /usr/local/libexec/cups/cgi-bin/printers.cgi (pid=756)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding start banner page
none.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding job file of type
application/postscript.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding end banner page none.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Queued on inkjet by root.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started
filter /usr/local/libexec/cups/filter/pstops (PID 757)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started
filter /usr/local/libexec/cups/filter/pstoraster (PID 758)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started
filter /usr/local/libexec/cups/filter/rastertohp (PID 759)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started
backend /usr/local/libexec/cups/backend/usb (PID 760)
I [22/Apr/2008:21:20:06 -0500]
Started /usr/local/libexec/cups/cgi-bin/printers.cgi (pid=761)
I [22/Apr/2008:21:20:06 -0500] [Job 47] Completed successfully.
I [22/Apr/2008:21:20:17 -0500]
Started /usr/local/libexec/cups/cgi-bin/printers.cgi (pid=762)

but the job disappears into some sort of black hole. Nothing prints.
Printer just sits there peacefully doing nothing.

From printers.conf for this printer...

Printer inkjet
Info HP DeskJet 3845
Location Bottom
DeviceURI usb:/dev/ulpt0
State Idle
StateTime 1208917161
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser root
AllowUser davidrjr
OpPolicy default
ErrorPolicy stop-printer
/Printer

If anybody has additional insight, I'd sure appreciate it.

Dave

 Roland


___
freebsd-questions@freebsd.org
mailto:freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


IIRC, you should be able to actually write

echo something  /dev/ulpt0

and it should print? Might be useful for testing and stuff.

Test goes to the same black hole. I think I've found the problem...

uhci0: Intel 82801BA/BAM (ICH2) USB controller USB-A port 
0xb400-0xb41f irq 3 at device 31.2 on pci0


Perhaps putting a USB 2.0 controller in this old machine might make a 
difference. :)


Anyway, after a quick bit of googling around for your problem (I've 
had CUPS problems many times in the past myself and I know how hard it 
can be) I found this:


Here is a workaround:

In printers.conf () you will probably find a line like this:

DeviceURI usb:/dev/ulpt0

change usb: to file:, so that it looks something like this:


DeviceURI file:/dev/ulpt0

Then restart cups. Cups will not read any status information from the
printer, but at least it can print. Be warned about unknown side effects. :)

Jan

Re: Unable to open device file /dev/lpt0: Permission denied

2008-04-22 Thread David Reedy Jr
On Monday 21 April 2008 2:54:16 pm Roland Smith wrote:
 On Mon, Apr 21, 2008 at 01:05:56PM -0500, David Reedy Jr wrote:
  Small home network. Trying to get cups working on my server.
 
  FreeBSD 7.0-RELEASE #4: Tue Apr 15 11:01:37 CDT 2008
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/OMEGA
  ...
  ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0
  ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
  ppc0: FIFO with 16/16/9 bytes threshold
  ppbus0: Parallel port bus on ppc0
  ppbus0: [ITHREAD]
  ppbus0: IEEE1284 device found /NIBBLE
  Probing for PnP devices on ppbus0:
  ppbus0: Hewlett-Packard HP LaserJet 6L/0101.01 PRINTER HP
  ENHANCED PCL5,PJL

 snip

  StateMessage Unable to open device file /dev/lpt0: Permission
  denied

 snip

  Trying to print a test page from the cups web interface on a client
  machine, I get the error message. Doing chmod 777 /dev/lpt0 does
  not change anything.
 
  Can somebody tell me what I've done wrong or point me in the
  direction I should be looking?

 IICR, the print device should belong to the cups group. At least,
 that's my working setup.

 I have the following in /etc/devfs.conf:

 # Give cups printer access
 own lpt0root:cups
 permlpt00660

Thanks for the info. This didn't actually fix the problem, but I know it 
was needed since I read somewhere that everything that cupsd spawns 
runs as cups.

What I ended up doing was resetting my cupsd.conf to default and redid 
my settings. I must have had a typo in there somewhere before because 
as soon as I restarted cupsd after making the changes, the parallel and 
usb ports suddenly became available as devices for the printer. I had 
previously selected lpd and then manually specified the uri as 
parallel:/dev/lpt0.

The laser on the parallel port is now working fine. I also went ahead 
and setup my deskjet on usb:/dev/ulpt0. Print test pages get marked as 
completed but nothing actually comes out of the printer. Still trying 
to figure that one out.


 If you don't want to reboot;
 # chown root:cups /dev/lpt0
 # chmod 0660 /dev/lpt0

 Roland


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Having trouble getting cups working

2008-04-22 Thread David Reedy Jr
On Tuesday 22 April 2008 9:40:16 am Andrew Falanga wrote:
 HI,

 I've never actually tried to install cups before and last night
 decided to give it a try because I was not having much success
 getting my printer working using the handbook directions.  (I got it
 all setup correctly, obviously something is incorrect but stay with
 me, and although I could get stuff to print when I did 'cat
 somefile  /dev/lp0' I couldn't get anything to print when I
 submitted to lpd.)

 So, I installed cups from ports, and setup my HP LaserJet 4+.  All
 seemed to go well.  At first I had a problem with an error, something
 like unknown application/postscript.  Anyway, some digging on the
 internet revealed that I needed ESP Ghostscript installed.  So, I got
 that and that error went away. Now, however, I still cannot get it to
 print.

 When I try to submit the printer test page from the web management
 interface, it says, network host 'sniper' busy: will retry in X
 seconds.  The URI I'm using for my printer is, lpd://sniper/lj4. 
 The printer is connected to my parallel port and I think this is what
 I want because the other options are whatever it is that cups calls
 JetDirect and then IPP and something else.


I've just been dealing with the same thing the last day or two. First 
off, the uri you want is parallel:/dev/lpt0. The advise I was given 
yesterday was to add the following to /etc/devfs.conf (requires reboot)

own lpt0 root:cups
perm lpt0 0660

or to...

chown /dev/lpt0 root:cups
chmod 0660 lpt0

After making that change, the parallel port still wasn't listed as an 
available device (along with JetDirect, IPP, LPD, etc). I ended up 
resetting my /usr/local/etc/cups/cupsd.conf file to default and redid 
the settings. After restarting the cupsd I suddenly had the parallel 
and usb ports listed. I'm guessing I had a typo in my original setup.

HTH.

Dave

 Anyway, if someone could please point me in the correct direction I'd
 appreciate it greatly.

 Thanks,
 Andy
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unable to open device file /dev/lpt0: Permission denied

2008-04-22 Thread David Reedy Jr
On Tuesday 22 April 2008 10:40:25 am Roland Smith wrote:
 On Tue, Apr 22, 2008 at 10:08:37AM -0500, David Reedy Jr wrote:
   IICR, the print device should belong to the cups group. At least,
   that's my working setup.
  
   I have the following in /etc/devfs.conf:
  
   # Give cups printer access
   own lpt0root:cups
   permlpt00660
 
  Thanks for the info. This didn't actually fix the problem, but I
  know it was needed since I read somewhere that everything that
  cupsd spawns runs as cups.
 
  What I ended up doing was resetting my cupsd.conf to default and
  redid my settings. I must have had a typo in there somewhere before
  because as soon as I restarted cupsd after making the changes, the
  parallel and usb ports suddenly became available as devices for the
  printer.

 It happens. :-)

  I had previously selected lpd and then manually specified the uri
  as parallel:/dev/lpt0.
 
  The laser on the parallel port is now working fine.

 Good.

  I also went ahead
  and setup my deskjet on usb:/dev/ulpt0. Print test pages get marked
  as completed but nothing actually comes out of the printer. Still
  trying to figure that one out.

 Have a look at the cups logfiles in /var/log/cups. They should give
 you some pointers. You'll probably need to set the device permissions
 for ulpt in devfs.rules, not devfs.conf!

I got the rules setup in devfs.rules, no problem. When I turn on the 
printer it's detected...

ulpt0: HP Deskjet 3840, class 0/0, rev 2.00/1.00, addr 2 on uhub0
ulpt0: using bi-directional mode

and things get set right permission-wise...

crw-rw  1 root  cups0,  88 Apr 22 21:20 /dev/ulpt0

according to /var/log/cups/error_log it prints...

I [22/Apr/2008:21:20:03 -0500] 
Started /usr/local/libexec/cups/cgi-bin/printers.cgi (pid=756)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding start banner page none.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding job file of type 
application/postscript.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding end banner page none.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Queued on inkjet by root.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started 
filter /usr/local/libexec/cups/filter/pstops (PID 757)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started 
filter /usr/local/libexec/cups/filter/pstoraster (PID 758)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started 
filter /usr/local/libexec/cups/filter/rastertohp (PID 759)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started 
backend /usr/local/libexec/cups/backend/usb (PID 760)
I [22/Apr/2008:21:20:06 -0500] 
Started /usr/local/libexec/cups/cgi-bin/printers.cgi (pid=761)
I [22/Apr/2008:21:20:06 -0500] [Job 47] Completed successfully.
I [22/Apr/2008:21:20:17 -0500] 
Started /usr/local/libexec/cups/cgi-bin/printers.cgi (pid=762)

but the job disappears into some sort of black hole. Nothing prints. 
Printer just sits there peacefully doing nothing.

From printers.conf for this printer...

Printer inkjet
Info HP DeskJet 3845
Location Bottom
DeviceURI usb:/dev/ulpt0
State Idle
StateTime 1208917161
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser root
AllowUser davidrjr
OpPolicy default
ErrorPolicy stop-printer
/Printer

If anybody has additional insight, I'd sure appreciate it.

Dave

 Roland


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Unable to open device file /dev/lpt0: Permission denied

2008-04-21 Thread David Reedy Jr
Small home network. Trying to get cups working on my server.

FreeBSD 7.0-RELEASE #4: Tue Apr 15 11:01:37 CDT 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/OMEGA
...
ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: Parallel port bus on ppc0
ppbus0: [ITHREAD]
ppbus0: IEEE1284 device found /NIBBLE
Probing for PnP devices on ppbus0:
ppbus0: Hewlett-Packard HP LaserJet 6L/0101.01 PRINTER HP ENHANCED 
PCL5,PJL
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
...

As you can see, I have a LaserJet attached to the parallel port. Here is 
my printers.conf.

# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2008-04-21 12:16
DefaultPrinter laser
Info HP LaserJet 6L
Location Top
DeviceURI parallel:/dev/lpt0
State Stopped
StateMessage Unable to open device file /dev/lpt0: Permission denied
StateTime 1208798191
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser root
AllowUser davidrjr
OpPolicy default
ErrorPolicy stop-printer
/Printer

Trying to print a test page from the cups web interface on a client 
machine, I get the error message. Doing chmod 777 /dev/lpt0 does not 
change anything.

Can somebody tell me what I've done wrong or point me in the direction I 
should be looking?

Dave
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pkg_list mypackage?

2008-03-13 Thread David Reedy Jr

Gilles wrote:

Hello

The online FreeBSD manual in the 4.4 Using the Packages System part
doesn't mention a command to list the files that were installed
through a package.
  

pkg_info -L pkg-name

What is the equivalent of eg. pkg_list mypackage?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

  

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Install order?

2008-01-04 Thread David Reedy Jr

Hello all,

I'm very new to FreeBSD, just installed it for the first time maybe a 
week ago. I've redone it several times since, so feel comfortable in the 
VERY basics. I've got things like ntp, ftp, and ssh configured, no 
problem. Not worried about mail.


I'm setting this machine up as a local internet test server. I need to 
get Apache, MySQL and PHP installed, and I'm worried if there's a 
preferred /required order to get it to work right / at all. FWIW - I've 
checked the handbook, apache.org, php.net, and mysql.com. I keep feel 
like I'm going round in circles.


Also, I've noticed that some of the port versions on this site are a 
little newer that in my 6.2 release. Will I have problems installing 
these instead?


Thanks in advance.

Dave
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]