Re: Anyone could make Epson Stylus cx4700 work?

2007-05-16 Thread Roland Smith
On Tue, May 15, 2007 at 07:53:39PM -0300, Anton Galitch wrote:
  Yes, because escputil belongs to the 'usb' group. It should belong to the
  same group as /dev/ulpt0, which should be 'cups'.
 
  A 'chown :cups escputil' should fix that.
 
  Thanks a lot it worked.
 
  to check the ink level requires using a raw device so the -r option must be
  there. I tried to do it without -u but it still saying Cannot open
  /dev/ulpt0 read/write: Device busy

Isn't there a FAQ for CUPS, or a mailing list? Maybe you should look
there. When I had an epson inkjet printer I don't recall having that
problem, but it's been a while.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpNWP4QFXrw9.pgp
Description: PGP signature


Re: Anyone could make Epson Stylus cx4700 work?

2007-05-15 Thread Roland Smith
On Tue, May 15, 2007 at 01:51:53PM -0300, Anton Galitch wrote:
  Hi
  I tried to install my epson stylus cx4700 printer, I installed cups, then
  gutenprint.
  When configuring the printer in kde control center it detected the driver
  for stylus cx4700 and a device was /dev/ulpt0  (its has a usb connection).
  After doing that I wanted to test it, but it couldnt print anything. neither
  it can give me information about ink level. It says Device is busy.

One thing to check for are the permissions of the device file
/dev/ulpt0. Cups needs to be able to read from and write to this device,
so you should add an entry for it to /etc/devfs.rules. It should _not_
be in /etc/devfs.conf, since usb devices can appear at runtime.

(The first line is only needed when you haven't already got a ruleset name.)

[foo=10]
add path 'ulpt*' mode 0660 group cups

And in /etc/rc.conf you should add:

devfs_system_ruleset=foo

Hope this helps.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpZIzsH01MLj.pgp
Description: PGP signature


Re: Anyone could make Epson Stylus cx4700 work?

2007-05-15 Thread John Nielsen
On Tuesday 15 May 2007 01:44:17 pm Roland Smith wrote:
 On Tue, May 15, 2007 at 01:51:53PM -0300, Anton Galitch wrote:
   Hi
   I tried to install my epson stylus cx4700 printer, I installed cups,
  then gutenprint.
   When configuring the printer in kde control center it detected the
  driver for stylus cx4700 and a device was /dev/ulpt0  (its has a usb
  connection). After doing that I wanted to test it, but it couldnt print
  anything. neither it can give me information about ink level. It says
  Device is busy.

 One thing to check for are the permissions of the device file
 /dev/ulpt0. Cups needs to be able to read from and write to this device,
 so you should add an entry for it to /etc/devfs.rules. It should _not_
 be in /etc/devfs.conf, since usb devices can appear at runtime.

 (The first line is only needed when you haven't already got a ruleset
 name.)

 [foo=10]
 add path 'ulpt*' mode 0660 group cups

 And in /etc/rc.conf you should add:

 devfs_system_ruleset=foo

 Hope this helps.

 Roland

Alternatively, just put this in /etc/devfs.conf:

own ulpt0   root:cups
permulpt0   0664


That's all I had to do to get my cx4800 printing with ulpt and cups.

FYI, the cardreader on my cx4800 works when ulpt is NOT loaded or in the 
kernel but umass is. Similarly, the scanner only works when neither ulpt nor 
umass is loaded or in the kernel. It doesn't attach to uscanner but it works 
with libusb.

JN

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


Re: Anyone could make Epson Stylus cx4700 work?

2007-05-15 Thread Roland Smith
On Tue, May 15, 2007 at 02:56:25PM -0400, John Nielsen wrote:
 On Tuesday 15 May 2007 01:44:17 pm Roland Smith wrote:
  On Tue, May 15, 2007 at 01:51:53PM -0300, Anton Galitch wrote:
Hi
I tried to install my epson stylus cx4700 printer, I installed cups,
   then gutenprint.
When configuring the printer in kde control center it detected the
   driver for stylus cx4700 and a device was /dev/ulpt0  (its has a usb
   connection). After doing that I wanted to test it, but it couldnt print
   anything. neither it can give me information about ink level. It says
   Device is busy.
 
  One thing to check for are the permissions of the device file
  /dev/ulpt0. Cups needs to be able to read from and write to this device,
  so you should add an entry for it to /etc/devfs.rules. It should _not_
  be in /etc/devfs.conf, since usb devices can appear at runtime.
 
  (The first line is only needed when you haven't already got a ruleset
  name.)
 
  [foo=10]
  add path 'ulpt*' mode 0660 group cups
 
  And in /etc/rc.conf you should add:
 
  devfs_system_ruleset=foo
 
  Hope this helps.
 
  Roland
 
 Alternatively, just put this in /etc/devfs.conf:
 
 own   ulpt0   root:cups
 perm  ulpt0   0664
 

This will only work if the printer is connected and switched on at boot!

Generally it's better to put USB devices in /etc/devfs.rules.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpyJXqnpYseJ.pgp
Description: PGP signature


Re: Anyone could make Epson Stylus cx4700 work?

2007-05-15 Thread Anton Galitch

Thanks Roland, I put what you have said to /etc/devfs.rules and it printed
the test page well =)
The only problem now is Epson Inkjet Tool that shows ink levels, cleans
heads, etc when I click on Show ink level it tells:
ERROR:
Cannot open /dev/ulpt0 read/write: Permission denied


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

Re: Anyone could make Epson Stylus cx4700 work?

2007-05-15 Thread Roland Smith
On Tue, May 15, 2007 at 04:06:07PM -0300, Anton Galitch wrote:
  Thanks Roland, I put what you have said to /etc/devfs.rules and it printed
  the test page well =)
  The only problem now is Epson Inkjet Tool that shows ink levels, cleans
  heads, etc when I click on Show ink level it tells:
  ERROR:
  Cannot open /dev/ulpt0 read/write: Permission denied

That tool needs to read and write to /dev/ulpt0, which it can't, because
you've set the permission for 'others' to 0.

Basically you have two choices here,

1) Change the mode for ulpt0 to 666. This means everybody can read/write
   to this device. This is unsafe on a multi-user system or on a
   publicly accessible server.
2) change the group of the program to 'cups', and set it's setgid bit
   (chmod g+s ...). This means that the program will assume the group
   'cups' when it starts, giving it access to the device.

IMHO (2) is the best solution, because it gives the program in question
enough rights to work, without exposing the rest of the system
much.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpDs2N9rzhvw.pgp
Description: PGP signature


Re: Anyone could make Epson Stylus cx4700 work?

2007-05-15 Thread Anton Galitch

Well, I did this and now the permissions look like this:

-r-xr-sr-x  1 root  usb  72504 May 15 13:01 escputil

and if I execute the program being in my user it tells permission denied.

Another problem is that when I executed it in root, it showed

#escputil -iur /dev/ulpt0

Cannot open /dev/ulpt0 read/write: Device busy


There is no printing job, and in the control panel in kde I can see that
printers state is Idle (accepting jobs).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyone could make Epson Stylus cx4700 work?

2007-05-15 Thread Roland Smith
On Tue, May 15, 2007 at 06:25:40PM -0300, Anton Galitch wrote:
  Well, I did this and now the permissions look like this:
 
  -r-xr-sr-x  1 root  usb  72504 May 15 13:01 escputil
 
  and if I execute the program being in my user it tells permission denied.

Yes, because escputil belongs to the 'usb' group. It should belong to the
same group as /dev/ulpt0, which should be 'cups'. 

A 'chown :cups escputil' should fix that.
 
  Another problem is that when I executed it in root, it showed
 
  #escputil -iur /dev/ulpt0
 
  Cannot open /dev/ulpt0 read/write: Device busy
 
  There is no printing job, and in the control panel in kde I can see that
  printers state is Idle (accepting jobs).

I think you need to drop the -r option, (and -u as well). Cups is
probably already using the device.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpvwU8KYQv96.pgp
Description: PGP signature


Re: Anyone could make Epson Stylus cx4700 work?

2007-05-15 Thread Anton Galitch

Yes, because escputil belongs to the 'usb' group. It should belong to the
same group as /dev/ulpt0, which should be 'cups'.



A 'chown :cups escputil' should fix that.


Thanks a lot it worked.

to check the ink level requires using a raw device so the -r option must be
there. I tried to do it without -u but it still saying Cannot open
/dev/ulpt0 read/write: Device busy
maybe there is another way to know the ink level? I checked the cups page
localhost:631 but found nothing there.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]