Dave,

On Wed, 11 Jun 2008 01:50:46 +0100
Dave Warnock <[EMAIL PROTECTED]> wrote:

> Meik,
> 
> Ok I am past the 22D. It turns out that Ubuntu deletes /tmp at each
> boot so there was no /tmp/SUNWut directory. I tried adding
> 
>          [ ! -d /tmp/SUNWut ] && mkdir /tmp/SUNWut
>          chmod 1777 /tmp/SUNWut
> 
> to /etc/init.d/zsunray-init in the start section, it works when I
> start manually but not on boot (I guess /tmp must be emptied later).
> 
> Anyway then discovered /etc/default/rcS where I changed
>       TMPTIME=0
> to
>       TMPTIME=10

Hm, I think there must be something wrong with the startup scripts.
This TMPTIME parameter (delete only files older than x days) will not 
save you in the long run.
Cleaning /tmp during boot is perfectly normal, everybody does it.
But it should happen at a very early stage in the bootup process. 
On the other side, the SRSS stuff should start very late,
after starting gdm and surely after /tmp cleaning.
And then it recreates the /tmp/SUNWut directory by itself.

This are my startup links:
 
# ls -l /etc/rc*/*bootcl*
lrwxrwxrwx 1 root root 31 2007-03-23 14:46 /etc/rcS.d/S36mountall-bootclean.sh 
-> ../init.d/mountall-bootclean.sh* 
lrwxrwxrwx 1 root root 31 2007-03-23 14:46 /etc/rcS.d/S46mountnfs-bootclean.sh 
-> ../init.d/mountnfs-bootclean.sh*


# ls -l /etc/rc*/*sunr*
lrwxrwxrwx 1 root root 22 2007-06-28 11:15 /etc/rc0.d/K01zsunray-init -> 
../init.d/zsunray-init*
lrwxrwxrwx 1 root root 22 2007-06-28 11:15 /etc/rc1.d/K01zsunray-init -> 
../init.d/zsunray-init*
lrwxrwxrwx 1 root root 22 2007-06-28 11:15 /etc/rc2.d/S99zsunray-init -> 
../init.d/zsunray-init*
lrwxrwxrwx 1 root root 22 2007-06-28 11:15 /etc/rc3.d/S99zsunray-init -> 
../init.d/zsunray-init*
lrwxrwxrwx 1 root root 22 2007-06-28 11:15 /etc/rc4.d/S99zsunray-init -> 
../init.d/zsunray-init*
lrwxrwxrwx 1 root root 22 2007-06-28 11:15 /etc/rc5.d/S99zsunray-init -> 
../init.d/zsunray-init*
lrwxrwxrwx 1 root root 22 2007-06-28 11:15 /etc/rc6.d/K01zsunray-init -> 
../init.d/zsunray-init*



> 
> Directory now stays but I seem to have to zsunray-init manually to
> get sun ray past 22D (nothing in auth_log)
> 
> Anyway now getting to 26D again.
> 
> > On a fresh linux installation this is probably a gdm problem. 
> > SRSS is telling the gdm master process (via the gdmdynamic
> > interface) "There is a new display for you to take care of". 
> > Then gdm forks a child gdm process which will start the Xserver 
> > and the gdmlogin greeter on this display.
> 
> > You could add the two lines 
> > [debug]
> > Enable=true
> > 
> > to /etc/gdm/gdm.conf to see what is going on. 
> 
> OK done that, but it is huge, any tips on what I should be looking
> for?
> 
> > (Or attach strace -f to the gdm master process)
> 
> Sorry I don't understand this. How do I do that?
> 
> > Which version of gdm are you using? gdm 2.20 works for me 
> > but there might be problems with newer versions since 
> > gdm changed a lot. Downgrading gdm to 2.20 may help.
> 
> Ubuntu has a gdm.conf-custom where changes are supposed to go, it
> seems there should not be a gdm.conf, but I have one, not sure what
> created it. Testing indicates that contrary to the docs gdm.conf is
> needed and I think changes in gdm.conf-custom are picked up even
> though there is a gdm.conf

Hm, I don't know. 
<http://www.gnome.org/projects/gdm/docs/2.20/configuration.html> reads:
Previous to GDM 2.13.0.4 only the <etc>/gdm/gdm.conf existed. For best 
backwards 
compatibility, this file will be used instead of the GDM Custom Configuration 
File 
if it exists on your system. 

Anyway, the configuration file (whatever the name) should include things like

PostLoginScriptDir=/etc/X11/gdm/SunRayPostLogin/
PreSessionScriptDir=/etc/X11/gdm/SunRayPreSession/
PostSessionScriptDir=/etc/X11/gdm/SunRayPostSession/
DisplayInitDir=/etc/X11/gdm/SunRayInit
DynamicXServers=true

An example is on the wiki page,
<http://wiki.sun-rays.org/images/6/62/Gdm.conf.txt>

Also, the script directories mentioned and the scripts in them should exist,
and gdm should start before SRSS.

Hope this helps a little bit further.

Meik


-- 
Meik Hellmund
Mathematisches Institut, Uni Leipzig
e-mail: [EMAIL PROTECTED]
http://www.math.uni-leipzig.de/~hellmund
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to