Thanks Jim. I feel honored when I get a response from you in person, pretty darn cool.<br><br>I am using Ubuntu, but I am using LTSP 4.2 not MUkow. I am also using cups (via the (gnome-cups-manager) to manage printers. The printer is shared via smb:// Using your example below would I just do something similar to:
<br><br>case `echo $DISPLAY | sed s/:.*$//` in<br> ws004) lpoptions -d smb://pathtoprinter;;<br> ws005) lpoptions -d smb://pathtootherprinter;<br>esac<br><br>Thanks again for your help.<br>John<br><br><div><span class="gmail_quote">
On 1/28/07, <b class="gmail_sendername">Jim McQuillan</b> <<a href="mailto:jam@mcquil.com">jam@mcquil.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
John,<br><br>what you are trying to do, really isn't LTSP related at all.<br><br>It just so happens that your users are connection with LTSP terminals,<br>and the printers are attached to LTSP terminals. Other than that, it's
<br>really a printer management issue on the server.<br><br>You want one users default printer to be printerA, and another users<br>default printer to be printerB.<br><br>Assuming that you've got your printers all configured in CUPS on the
<br>server, you can use the 'lpoptions' command to set a default for each user.<br><br>Because a user may log into ws004 in the morning, and then log into<br>ws005 in the afternoon, you'll need to call lpoptions each time the user
<br>logs in. the /etc/profile script might be a good place to put this.<br><br>The magic scripting you'll need to add is something like this:<br><br>case `echo $DISPLAY | sed s/:.*$//` in<br> ws004) lpoptions -d printerA;;
<br> ws005) lpoptions -d printerB;;<br>esac<br><br>That way, each time a user logs in, it checks the current terminal that<br>they are logging in with, and it sets their default printer accordingly.<br><br>If you are using Ubuntu's LTSP, you can't use the $DISPLAY, you'll have
<br>to use another env variable, like $SSH_CLIENT, which has a different<br>format. do: echo $SSH_CLIENT to see what the value looks like.<br><br>Hope that helps,<br>Jim McQuillan<br><a href="mailto:jam@Ltsp.org">jam@Ltsp.org
</a><br><br><br>john wrote:<br>> Hi all,<br>><br>> I want to use networked printing on my thin clients and specify it per<br>> station ( e.g tell ws004 to print to networked printer A and ws005 to<br>> print to networked printer B).
<br>><br>> My reading of lts.conf it appears to say that one can only do this<br>> with local printers. Can anyone help me figure out if what I want to<br>> do is possible?<br>><br>> TIA!<br>><br>> John
<br></blockquote></div><br>