On Fri, 2004-12-31 at 14:47, Anselm Martin Hoffmeister wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello *, > > Ivan Krstic (whom some of you know from LinuxWorld SF 2004) and me have put > some dozens of hours into setting up scripts and playing with cups and sane > to achieve transparent printer and scanner selection, based on the terminal > the user sits at, and making it easy configurable.
Anselm, this is great! I've done some very simple things for this, but your solution is much nicer. I'd like to work with you on this. > What we did in particular was to write wrappers for "cupsdoprint" and "lpr" > as > well as "scanimage", that skim through a text-mode config file listing all > MAC addresses, IP addresses and the printer/scanner to be expected to be > used. Mine works the same, but echoes "Default $PRINTER" > ~/.lpoptions. > We defined a printer at USB port /dev/null (printing can no way fail, > so printer will never be stopped by cups because of device failure...) with > the name of "Printrouter" (or $MAGICPRINTER.... :-) set as standard print > device, and cupsdoprint will basically grab all print jobs to that device and > reroute them to the correct printer. This sounds good. Does it work if there is more than one type of printer, say one postscript and one HP? > Now what I'm interested to know: Is there any development in ltspadmin or > separately going into the direction of having central configuration of all > terminals? As we are doing terminal-dependant print routing, using dynamic IP > allocation is out of question anyway, and so having a central source of > information seems a good idea for me. Well, if you use MAC addresses instead of names or IP addresses, then dynamic IP allocation isn't a problem, is it? > Another thought how to realize similar things would be to extend the lts.conf > by two parameters This is good (I started down that road), except that a lot of programs that print run on the server, where they can't use lts.conf. If you mount /home on the terminal, then you can put the current correct answers somewhere in ~ (like my ~/.lpoptions), but this seems like a lot of extra work in situations where you aren't using local apps. For this reason, I use a world-readable file in /etc on the server and run the script as the user in the X session script (once I know DISPLAY, I know everything I need to know to look up the correct printer). What do you think? -- David Johnston <[EMAIL PROTECTED]> ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net
