[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] change runlevel in lts.conf doesn't !



Here they are.

[root klask12ltsp root]# rpm -q ltsp_esound
ltsp_esound-0.3-k12ltsp.2.3.0

[root klask12ltsp root]# rpm -V ltsp_esound
[root klask12ltsp root]# 

[root klask12ltsp root]# rpm -V ltsp_esound
[root klask12ltsp root]# 

[root klask12ltsp profile.d]# cat ltsp-esound.sh
#!/bin/sh
#
# Sound support for the Linux Terminal Server Project
#

REMOTESOUNDIP="`echo $DISPLAY | cut -d\":\" -f1`" 
REMOTESOUNDPORT="16001"

LIBESDPATH="/usr/lib/libesd.so.0"
LIBESDDSPPATH="/usr/lib/libesddsp.so.0"

if [ -f /etc/sysconfig/k12ltsp ]
then
   . /etc/sysconfig/k12ltsp
fi

# if netcat is installed, we'll check to see if the terminal is
listening
if [ "$REMOTESOUNDIP" -a -x "`which nc 2> /dev/null`" ]
then
   if [ "`nc -v -w 1 -z $REMOTESOUNDIP $REMOTESOUNDPORT 2>&1 | grep -v
open$`" ]
   then
      # netcat says the terminal is not listening, bail!
      unset REMOTESOUNDIP
      unset REMOTESOUNDPORT
      unset LIBESDPATH
      unset LIBESDDSPPATH
   fi
fi


# don't use this hack for local X sessions or root
if [ "$REMOTESOUNDIP" -a "$UID" -ne "0" ]
then
   export ESPEAKER=${REMOTESOUNDIP}:16001
   export ESDDSP_MIXER=1
   /usr/bin/esdctl unlock

   # do the LD_PRELOAD hacks?
   if [ $REMOTE_SOUND_HACKS = "YES" -a -x "$LIBESDPATH" -a -x
"$LIBESDDSPPATH" ]
   then
        export LD_PRELOAD="$LIBESDPATH $LIBESDDSPPATH"
   fi
fi


# clean up temporary variables
unset REMOTESOUNDIP
unset REMOTESOUNDPORT
unset LIBESDPATH
unset LIBESDDSPPATH
[root klask12ltsp profile.d]# 



On Tue, 2003-10-07 at 11:57, Duane Wilson wrote:
> In the default section.  I am also assigning options based on MAC
> addresses.
> Duane
> 
> 
> On Tue, 2003-10-07 at 11:49, jam mcquil com wrote:
> > On 7 Oct 2003, Duane Wilson wrote:
> > 
> > > I want to boot my terminals into runlevel 3 for diagnosis.
> > > 
> > > I went to lts.conf and changed RUNLEVEL=3
> > 
> > WHich section of lts.conf ?
> > 
> > If you put it in a specific workstation section, like '[ws001]',
> > it could be that the workstation doesn't know it's own hostname.
> > 
> > Try putting it in the '[Default]' section.  Then once you get
> > a bash prompt, type:  'hostname' and see what the workstation
> > thinks its name is.
> > 
> > If you are assigning Ip address dynamically from a pool of addresses,
> > then the client doesn't have a hostname.  So, instead of using the
> > hostname in the lts.conf file, you can use the MAC address.
> > 
> > That would be like this:
> > 
> >   [00:E0:40:01:EB:02]
> > 
> >       RUNLEVEL = 3
> > 
> > 
> > Of course, you'd substitute your MAC address for the value above.
> > 
> > Jim McQuillan
> > jam Ltsp org
> > 
> > 
> > 
> > > 
> > > Rebooted the terminal - came back with graphical logon and logged to
> > > icewm.
> > > 
> > > Rebooted the server and got same result.
> > > 
> > > I don't get it.
> > > 
> > > Duane Wilson
> > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > K12OSN mailing list
> > > K12OSN redhat com
> > > https://www.redhat.com/mailman/listinfo/k12osn
> > > For more info see <http://www.k12os.org>
> > > 
> > 
> > 
> > _______________________________________________
> > K12OSN mailing list
> > K12OSN redhat com
> > https://www.redhat.com/mailman/listinfo/k12osn
> > For more info see <http://www.k12os.org>
> 
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN redhat com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]