[FreeNX-kNX] Re: Keep NX-Users to their home directory
Kurt Pfeifle
k1pfeifle at gmx.net
Sun Oct 17 19:21:08 UTC 2004
On Sunday 17 October 2004 14:29, Christian Lensch wrote:
> > In case you think he is confused by the many programs and options:
> > well, lock down his NX desktop on your server with the "kiosktool"
> > of KDE-3.3, remove the "Start" button (or remove many entries from
> > the start menu), remove most icons from the desktop and just leave
> > the konqi and kmail ones left...
>
> Thanks a lot, this is exactly what I was looking for. Another very cool
> KDE-feature I didn't know about!
;-)
> Here are some other questions:
> What would be the command I would have to use in order to start a
> non-kde session (e.g. fluxbox, windowmaker etc)?
Depending on how you start these for a regular local session... Possibly
you'll have to write a little wrapper script which sets the correct
environment variables.
I dont know about fluxbox and windowmaker. But KDE sessions are normally
started by a script called "startkde" and Gnome session use "gnome-session"
(both scripts are part of each standard system).
The commercial NoMachine NX Client calls "startkde" for a KDE session and
"gnome-session" for a Gnome session. For other session types there is the
"custom command" (which you find by selecting session type "Unix/Custom"
--> "Settings").
To give you an example how my NX server is tweaked may show you how you
can adapt it to your case:
* I left "startkde" which starts my KDE-3.3.1 sessions (installed with
YaST on SuSE-9.1
* I replaced the original "gnome-session" script by one that in reality
starts my current (self-compiled) KDE HEAD. This one needed some
tweaks in the environment variable and then calls the "other" (KDE
HEAD) "startkde".
Here is what is in my manipulated "gnome-session" script:
kurt at p15159004:~/movies> cat `which gnome-session"
> `
bash: command substitution: line 1: unexpected EOF while looking for matching `"'
bash: command substitution: line 2: syntax error: unexpected end of file
kurt at p15159004:~> cat `which gnome-session`
#!/bin/bash
QTDIR=/home/kdedev/src/kde/qt-copy
KDEDIR=/home/kdedev/kde-unstable
KDEHOME=~/.kdecvs
PATH=$KDEDIR/bin:$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
KDEDIRS=$KDEDIR
export QTDIR KDEDIR KDEDIRS KDEHOME PATH MANPATH LD_LIBRARY_PATH
exec $KDEDIR/bin/startkde "$@"
> and
> Is it possible for him to access directories on his local machine
> (Win 98) by using shares. Would I have to start a Samba-Server on
> my server?
No, you don't even need a full Samba server running on the NX server.
What you need is a working "smbmnt" (not to mix up with "smbmount",
please) utility, and smbmnt must be installed setuid root.
> Greetings
> Christian
Cheers,
Kurt
More information about the FreeNX-kNX
mailing list