[K12OSN] lts.conf query - next step for setprinters.sh

Henry Burroughs hburroughs at HHPREP.ORG
Wed Mar 23 14:14:32 UTC 2005


Jim,

A little while back I wrote a script that changes the default printer
for a user based on which client/terminal they are logged on (I have a
spread out K12LTSP implementation).  Right now admins have to edit a
file called /etc/sysconfig/ltsp_printers to associate terminals and
print ques (an extra step).  Would it be possible for me to modify my
script so that it instead checks the lts.conf file for the
information...(You inspired me with the grouping) like so:

[lslabQUE]
    DEFAULT_PRINTER = lslab-hp

[knslabQUE]
    DEFAULT_PRINTER = knslab-hp

#actual machine
[lslabn01] LIKE = lslabQUE
[lslabn02] LIKE = lslabQUE
#etc

My next question is can I add my own options (ie: DEFAULT_PRINTER) to
lts.conf?  If I can hack this together, it would make it easier for
people.  I would use getltscfg in my profile.d script.  Could we get
something like this included in the base LTSP or K12LTSP?

Also, is there documentation under the wiki yet for this type of
configuration for the lts.conf (as well as possible options, etc)?

Thanks!

Henry Burroughs
Technology Director
Hilton Head Preparatory School
www.hhprep.org

> 
> ______________________________________________________________________
> From: Jim McQuillan <jam at mcquil.com>
> To: caldodge at fpcc.net, Support list for opensource software in schools. <k12osn at redhat.com>
> Subject: Re: [K12OSN] lts.conf query
> Date: Tue, 22 Mar 2005 15:10:19 -0500
> 
> 
> 
> On Tue, 22 Mar 2005, Calvin Dodge wrote:
> 
> > Huck wrote:
> > > Is it possible to say in lts.conf
> > >
> > > [ws120 - ws129]
> > >    XSERVER = sis
> > >
> > >
> > > [ws130 - ws139]
> > >    XSERVER = ati
> > >
> > >
> > >
> > > ??
> > >
> > > or do I have to explicitly set each one?
> > >
> > > or maybe something like
> > >
> > > sislab = ws120,ws121,ws122,ws123,ws124,ws125,ws126,ws127,ws128,ws129
> > >
> > > and then
> > >
> > > [sislab]
> > >    XSERVER = sis
> >
> > I'm having a little trouble determining this from the source code (100K of
> > Perl), but I doubt either of the above options is possible.
> 
> Makes me wonder what source code you are looking at.  I wrote getltscfg
> in C.
> And, btw,  [ws120 - ws129] is unfortunately NOT valid.
> 
> What you could do, is setup something like this:
> 
> 
> [DellGX1]
>    XSERVER = sis
> 
> [HPVectra]
>    XSERVER = ati
> 
> [ws120] LIKE = DellGX1
> [ws121] LIKE = DellGX1
> [ws122] LIKE = DellGX1
> [ws123] LIKE = DellGX1
> [ws130] LIKE = HPVectra
> [ws131] LIKE = HPVectra
> [ws131] LIKE = HPVectra
> 
> 
> Hope that helps,
> 
> Jim McQuillan
> jam at Ltsp.org
> 
> 
> 
> 
> >
> > The following script will add the appropriate entries to lts.conf
> > (n=120;while [ $n -le 129 ];do echo \[ws$n\];n=$((n+1));echo "   XSERVER = sis
> > ";done) >>/opt/ltsp/i386/etc/lts.conf
> >
> > Calvin
> >
> > --
> > Calvin Dodge
> > Certified Linux Bigot (tm)
> > http://www.caldodge.fpcc.net
> >
> >
> 




More information about the K12OSN mailing list