Hi,

I think it was David Johnston who asked me to share my solution for the $PRINTER problem under KDE with everyone, but when I sent all my mails to orcus the other day, this mail was killed too - so I am not sure if I speak to the right one. He will know, anyway :-)

This is what I found out:

In /etc/profile.local you insert a script like this. For the mailing list, I changed all comments into English:


----------------- # setting printer name according to terminal #

REMOTEHOSTNAME="`echo $DISPLAY | cut -d\":\" -f1| cut -d\".\" -f1`"

case "$REMOTEHOSTNAME" in
    ws001|ws002|ws003|ws004|ws005|ws006)
        PRINTER=printer1
            ;;
    ws007|ws008|ws009|ws010|ws011|ws012|ws013|ws014)
        PRINTER=printer2
            ;;
    ws015|ws016|ws017|ws018|ws019|ws020)
        PRINTER=printer1
            ;;
    ws021|ws022|ws023|ws024)
        PRINTER=printer2
            ;;
    #unknown terminal
    *)
        PRINTER=lp
esac
export PRINTER

# now changes made for CUPS:

# lpoptions -d $PRINTER

# no! better not this way, produces ugly messages
# for root in terminal sessions. Instead of this,
# changed /etc/cups/lpoptions to
# Default $PRINTER
# that works smoother
---------------------

Thanks again for everyone helping me, all information above has been gathered from other friendly people :-)

Hope it helps!

Rolf



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_____________________________________________________________________
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