On Thu, 2006-08-31 at 10:53 -0600, Roy Souther wrote:
> Yes it is important that the users not be able to see the other
> printers because there are about 20 printers in the school and  that
> just confuses them.

That sounds reasonable.

> I cannot restrict printer access by user ID because students and staff
> will move between their class rooms and the computer lab, and staff
> will also want to print from the terminal in the staff room.

So does this.

> I think the MAC address of the terminal is the key. I can have each
> MAC address set in the dhcpd.conf to set the system name to identify
> the room it is in like rm16t1 rm16t2 and so on. Then when a user tries
> to print I can have some CUPS-backend that runs a simple bash script
> to take the $DISPLAY to find the terminal it is connected to then use
> that to find the MAC address, then the room and finally return the
> information about what printer should be usable to the CUPS server.

Why mess with MAC addresses?  If you use dhcp to give terminals names
based on the room they're in (et, rm16t1), then your bash script just
needs to do "room=`echo $DISPLAY | cut -dt -f1`.

> I think you hit on one key issue, CUPS may not be able to hide the
> other printers. For that mater I don't even know if CUPS is able to
> set a different default printer for each user

Setting a default printer is easy.  In ~/.xsession or some other script
run as the user at login, run
   lpoptions -d `echo DISPLAY | cut -dt -f1`

This assumes that DISPLAY looks like "rm16t1" and that the printer in
room 16 is called "rm16".  If some rooms share printers, you may need to
set up aliases in DNS (eg, rm15 CNAME rm16 if room 15 needs to print on
the printer in room 16).  Then tell everyone to print to always print to
their default printer.

Patching cups to do what you want might be easy, it might be very
difficult.  You might contact the cups developers.

-David

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_____________________________________________________________________
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

Reply via email to