<br>
<br><tt><font size=2>Holger Krull <holger.krull@gmx.de> wrote on
26/11/2009 14:39:48:<br>
<br>
> yossarianuk schrieb:<br>
> > It works absolutely fine, until I reboot.<br>
> > <br>
> > Then every single time I have to try to login (and fail) 3 times,
then on<br>
> > the 4th login to works, then anyone can login - freenx will then
be 100%<br>
> > fine until the next reboot.<br>
> <br>
> I don't have a solution for you, but i can confirm that you are not
<br>
> alone with this. I'm running Suse 11.0<br>
> </font></tt>
<br>
<br>
<br>
<br><tt><font size=2>I think this is just a timeout loading nxagents libraries
during the first run.</font></tt>
<br>
<br>
<br><tt><font size=2>Suse don't provide a startup script, but here's one
which runs agent at </font></tt>
<br><tt><font size=2>startup and loads all the libraries before any users
try logging in and nxnode </font></tt>
<br><tt><font size=2>times them out.</font></tt>
<br>
<br><tt><font size=2>It isn't AGENT_STARTUP_TIMEOUT it's the agent failing
to do something.</font></tt>
<br><tt><font size=2>Looks like it can't manage its own libraries properly.</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>#!/bin/bash</font></tt>
<br><tt><font size=2>#</font></tt>
<br><tt><font size=2># Sample startup script for FreeNX server</font></tt>
<br><tt><font size=2>#</font></tt>
<br><tt><font size=2># Coypright (c) 2007 by Fabian Franz <freenx@fabian-franz.de>.</font></tt>
<br><tt><font size=2>#</font></tt>
<br><tt><font size=2># License: GNU GPL, version 2</font></tt>
<br><tt><font size=2>#</font></tt>
<br><tt><font size=2># SVN: $Id: freenx-server 485 2008-03-02 10:29:52Z
fabianx $</font></tt>
<br><tt><font size=2>#</font></tt>
<br><tt><font size=2># /etc/init.d/freenx-server</font></tt>
<br><tt><font size=2>#</font></tt>
<br><tt><font size=2>### BEGIN INIT INFO</font></tt>
<br><tt><font size=2># Provides:
freenx-server</font></tt>
<br><tt><font size=2># Required-Start: $ALL</font></tt>
<br><tt><font size=2># Should-Start:</font></tt>
<br><tt><font size=2># Required-Stop:</font></tt>
<br><tt><font size=2># Should-Stop:</font></tt>
<br><tt><font size=2># Default-Start: 3 5</font></tt>
<br><tt><font size=2># Default-Stop:</font></tt>
<br><tt><font size=2># Short-Description: Clears up the mess
and enables NX logins</font></tt>
<br><tt><font size=2># Description: start:-</font></tt>
<br><tt><font size=2>#
Makes sure environment is clean for NX sessions</font></tt>
<br><tt><font size=2>#
Enables ssh key logins for user nx</font></tt>
<br><tt><font size=2>#
Pre-loads nxagent (for libraries)</font></tt>
<br><tt><font size=2>#
NOTE:-</font></tt>
<br><tt><font size=2>#
Does not start any daemon processes</font></tt>
<br><tt><font size=2>#
stop:-</font></tt>
<br><tt><font size=2>#
Disables nx logins</font></tt>
<br><tt><font size=2>#
Terminates all running sessions</font></tt>
<br><tt><font size=2>### END INIT INFO</font></tt>
<br><tt><font size=2>#</font></tt>
<br><tt><font size=2># Shell functions sourced from /etc/rc.status:</font></tt>
<br><tt><font size=2># rc_check
check and set local and overall rc status</font></tt>
<br><tt><font size=2># rc_status
check and set local and overall rc status</font></tt>
<br><tt><font size=2># rc_status -v be
verbose in local rc status and clear it afterwards</font></tt>
<br><tt><font size=2># rc_status -v -r ditto
and clear both the local and overall rc status</font></tt>
<br><tt><font size=2># rc_status -s display
"skipped" and exit with status 3</font></tt>
<br><tt><font size=2># rc_status -u display
"unused" and exit with status 3</font></tt>
<br><tt><font size=2># rc_failed
set local and overall rc status to failed</font></tt>
<br><tt><font size=2># rc_failed <num> set
local and overall rc status to <num></font></tt>
<br><tt><font size=2># rc_reset
clear both the local and overall rc status</font></tt>
<br><tt><font size=2># rc_exit
exit appropriate to overall rc status</font></tt>
<br><tt><font size=2># rc_active
checks whether a service is activated by symlinks</font></tt>
<br><tt><font size=2>. /etc/rc.status</font></tt>
<br>
<br><tt><font size=2># Reset status of this service</font></tt>
<br><tt><font size=2>rc_reset</font></tt>
<br>
<br><tt><font size=2># Return values acc. to LSB for all commands but status:</font></tt>
<br><tt><font size=2># 0 - success</font></tt>
<br><tt><font size=2># 1 - generic or unspecified
error</font></tt>
<br><tt><font size=2># 2 - invalid or excess argument(s)</font></tt>
<br><tt><font size=2># 3 - unimplemented feature (e.g.
"reload")</font></tt>
<br><tt><font size=2># 4 - user had insufficient privileges</font></tt>
<br><tt><font size=2># 5 - program is not installed</font></tt>
<br><tt><font size=2># 6 - program is not configured</font></tt>
<br><tt><font size=2># 7 - program is not running</font></tt>
<br><tt><font size=2># 8--199 - reserved (8--99 LSB, 100--149 distrib,
150--199 appl)</font></tt>
<br><tt><font size=2>#</font></tt>
<br><tt><font size=2># Note that starting an already running service, stopping</font></tt>
<br><tt><font size=2># or restarting a not-running service as well as the
restart</font></tt>
<br><tt><font size=2># with force-reload (in case signaling is not supported)
are</font></tt>
<br><tt><font size=2># considered a success.</font></tt>
<br>
<br><tt><font size=2># Read the config file</font></tt>
<br><tt><font size=2>. $(PATH=$(cd $(dirname $0) && pwd):$PATH
which nxloadconfig) --</font></tt>
<br>
<br><tt><font size=2>case "$1" in</font></tt>
<br><tt><font size=2> start)</font></tt>
<br><tt><font size=2>
echo -n "Enabling FreeNX Sessions . . ."</font></tt>
<br><tt><font size=2>
[ ! -d "/tmp/.X11-unix" ] && mkdir -m1755 /tmp/.X11-unix/</font></tt>
<br><tt><font size=2>
$PATH_BIN/nxserver --cleanup &>/dev/null</font></tt>
<br><tt><font size=2>
$PATH_BIN/nxserver --start &>/dev/null</font></tt>
<br><tt><font size=2>
# Run nxagent to pre-load the libraries and avoid timeouts</font></tt>
<br><tt><font size=2>
$PATH_BIN/nxagent &>/dev/null</font></tt>
<br><tt><font size=2>
# Success or failure - it's all the same</font></tt>
<br><tt><font size=2>
rc_failed 0</font></tt>
<br><tt><font size=2>
rc_status -v</font></tt>
<br><tt><font size=2> ;;</font></tt>
<br><tt><font size=2> stop)</font></tt>
<br><tt><font size=2>
echo -n "Disabling FreeNX Sessions . . ."</font></tt>
<br><tt><font size=2>
$PATH_BIN/nxserver --stop &>/dev/null</font></tt>
<br><tt><font size=2>
$PATH_BIN/nxserver --cleanup &>/dev/null</font></tt>
<br><tt><font size=2>
rc_failed 0</font></tt>
<br><tt><font size=2>
rc_status -v</font></tt>
<br><tt><font size=2> ;;</font></tt>
<br><tt><font size=2> *)</font></tt>
<br><tt><font size=2>
echo "Usage: $0 <start|stop>"</font></tt>
<br><tt><font size=2> ;;</font></tt>
<br><tt><font size=2>esac</font></tt>
<br><tt><font size=2>rc_exit</font></tt>
<br>
<br>
<br><tt><font size=2>As root</font></tt>
<br>
<br><tt><font size=2> Copy into new
file /etc/init.d/freenx-server</font></tt>
<br>
<br><tt><font size=2> chmod 755 /etc/init.d/freenx-server</font></tt>
<br>
<br><tt><font size=2> insserv freenx-server</font></tt>
<br>
<br><tt><font size=2>in case anyone doesn't know how to set it up.</font></tt>
<br>
<br>
<br><tt><font size=2>This should stop the first session failing, and clear
up any mess</font></tt>
<br>
<br><tt><font size=2>left over from other problem sessions which suse obviously
don't </font></tt>
<br>
<br><tt><font size=2>think is worth the effort . . .</font></tt>
<br>
<br>
<br>
<br>
<br>
<br><tt><font size=2><br>
> ________________________________________________________________<br>
> Were you helped on this list with your FreeNX
problem?<br>
> Then please write up the solution in the FreeNX Wiki/FAQ:<br>
> <br>
> </font></tt><a href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ"><tt><font size=2>http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</font></tt></a><tt><font size=2><br>
> <br>
> Don't forget to check the NX Knowledge
Base:<br>
> </font></tt><a href=http://www.nomachine.com/kb/><tt><font size=2>http://www.nomachine.com/kb/</font></tt></a><tt><font size=2>
<br>
> <br>
> ________________________________________________________________<br>
> FreeNX-kNX mailing list --- FreeNX-kNX@kde.org<br>
> </font></tt><a href="https://mail.kde.org/mailman/listinfo/freenx-knx"><tt><font size=2>https://mail.kde.org/mailman/listinfo/freenx-knx</font></tt></a><tt><font size=2><br>
> ________________________________________________________________<br>
</font></tt>