[K12OSN] How do you setup clients so they print to different default printers?
Petre Scheie
petre at maltzen.net
Wed Feb 28 15:58:33 UTC 2007
You'll have to assign specific addresses to the clients in /etc/dhcpd-k12ltsp.conf.
Then you can control the default printer based on the workstation name or address. For
example, you could create the following script, call it set_printer.sh, and put it in
/etc/profile.d.
#!/bin/sh
# Set default printer based on which workstation is being used
ws=$(echo $LTSP_CLIENT|cut -d. -f1)
case $ws in
ws001 ) lpoptions -d library_printer ;;
ws002 ) lpoptions -d library_printer ;;
# and so on for the library workstations
...
# now assign printers for the lab workstations
ws013 ) lpoptions -d lab_printer ;;
ws014 ) lpoptions -d lab_printer ;;
# and so on
esac
### End of script
HTH
Petre
wilson at wilsonch.gotdns.com wrote:
> Our school currently has one beefy LTSP server that we use for the
> computer lab (15 Clients) and library (12 Clients). We have setup (2) Dell
> 1710N network printers in the Lab & Library but how do you set the user
> profiles so each location prints to the correct printer by default?
> Thanks!
>
> Thin Client network range (192.168.0.100-200 /24)
> Lab Printer 192.168.0.10 /24
> Library Printer 192.168.0.11 /24
>
> Generic User accounts are created for each lab.
> ==Lab==
> Station 1 - 15
>
> ==Library==
> Library 1 - 12
>
>
>
> Wilson Chan
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
More information about the K12OSN
mailing list