Hello Thomas:
I've just solved it with LTSP 4.1 and SuSE9.1, working with KDE, it shoudn't
be difficult to change it for GNOME. I warn you, it's not the best solution,
in fact it's not a good solution but at least it's working now, i'm out of
time so i'll fix it later.
Mini-mini-HowTo - LTSP HelpDesk
1. Enable SSH
1.1 Modify /opt/ltsp/i386/etc/sshd_config
X11Forwarding yes
PidFile /tmp/sshd.pid
1.2 Copy the keys from your already configured ssh server
cp /etc/ssh/*key* /opt/ltsp/i386/etc/ssh/
1.3 Create the file /opt/ltsp/i386/etc/rc.local to launch ssh server
echo "Starting SSH"
/sbin/sshd &
1.4 Create the file /opt/ltsp/i386/etc/shadow with "your root password"
FIXME, PLEASE FIXME!!
root:EnrcyptedRootPassword:12698:0:10000::::
2. Enable permissions to access X at servers users
2.1 Add the script /home/XXX/.kde/Autostart/helpdesk.sh for each user (I've
recently read that DISABLE_ACCESS_CONTROL in lts.conf makes something
similar)
/usr/X11R6/bin/xhost +localhost &
3. Create the conection script for VNC at /usr/local/bin/shd
test -z "$1" && echo "Please type your client's IP/name .." && exit 1
cliente=$1
ssh -L 5900:localhost:5900 [EMAIL PROTECTED] 'export
DISPLAY=:0.0;/usr/X11R6/bin/x11vnc -display :0 -shared -localhost'
&>/dev/null &
sleep 8
vncviewer -encodings "tight hextile zlib" localhost:0 &>/dev/null &
exit 0
4. Make the conection to your client after he's started his KDE session, you
must know his IP/name.
shd ws092
With this method, the vnc server it's started in the client, only when you
need it, and, the "xhos +localhost " that each user executes when login in,
is , i think, safer than DISABLE_ACCESS_CONTROL.
Hope to help, and waiting for any comments, suggestions, reproachs from all
gurus at the list.
Thanks for such a great software as is LTSP!!!!!!
Greetings from Bolivia
Oxiel
El Mar 30 Nov 2004 06:51, Thomas Constans escribi�:
> Le mar 30/11/2004 � 11:32, Dag Sverre Seljebotn a �crit :
> > > i am not sure that a rc script could work since the vnc needs X to be
> > > up and running ( it needs a $DISPLAY ). so i am looking for a way to
> > > start it with gdm or user session.
> >
> > On the client, $DISPLAY is always ":0" (short for localhost:0). So you
> > do, on the shell screen:
>
> nope $DISPLAY is set _only_ if x is up and running.
>
> > DISPLAY=:0 some-vnc-command
> >
> > ...and some-vnc-command will pop up whatever needs X on the graphical
> > screen. You might need to do "xhost +" from within the X session before
> > this (while figuring it out, it is possible to work around that, but for
> > now we're just hackign).
>
> correct with the xhost +
>
> my problem is not how to write up a script to launch the server( or any
> other local app ) but where to put this script so it is run autmatically
> when x starts
>
> thanks
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_____________________________________________________________________
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