CUPS and USB

Anton Markov anton-F0u+EriZ6ihBDgjK7y7TUQ at public.gmane.org
Sun Sep 19 02:29:57 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Martin Duclos wrote:
| Duct tape, is there anything it can't solve? However, I have to favor
| the solution about looking into hotplug and having it connect to same
| device number everytime. Actually, is there a good link to where I could
| get more info?

For information about hotplug, see
http://linux-hotplug.sourceforge.net

You probably don't really need to know those details unless you want to
run some script when the printer is plugged in. Your distribution should
have a package you can install to get hotplug to work. Again, you should
use a recent 2.6 kernel for udev to work properly, as well as hotplug
support in the kernel.

What you are really interested in, is "udev". It basically takes over
managing you /dev (or any other directory you choose) by creating and
deleting device nodes in response to hotplug events.

If there is a package for you distribution to install udev, you should
use that. I know the Debian package installs and sets up udev flawlessly
for me. If you can, configure udev to manage a test directory (like
/udev) to make sure it works, before using it on the real /dev
directory). Unfortunately, udev documentation is scarce.

Once you have udev working, it's a matter of adding a rule file to (on
Debian) /etc/udev/rules.d/ and specifying a naming option. Check the
udev manpage when you get there.

You can get the hotplug and udev tarballs from:
http://www.kernel.org/pub/linux/utils/kernel/hotplug/

Be sure to read the FAQ at the end of that directory listing.

- --
Anton Markov <("anton" + "@" + "truxtar" + "." + "com")>

GnuPG Key fingerprint =
5546 A6E2 1FFB 9BB8 15C3  CE34 46B7 8D93 3AD1 44B4

*** LINUX - MAY THE SOURCE BE WITH YOU! ***
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBTO8jRreNkzrRRLQRAqHBAJ9cKkragAT8m6sekPkvyNp6ISTJYgCdHt1Y
0V5elZPK+kNrTivH3qA3Jnw=
=qS3F
-----END PGP SIGNATURE-----
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list