Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-24 Thread Ralph Corderoy

Hi Clive,

> Can I put those 2 commands into a file and run it just before shutdown
> each time, if so how?
> If I put them into a text file on separate lines and called it
> 'testboot.txt' could I type 'run testboot.txt' in a terminal screen,
> would it work?

If you paste this paragraph of commands to a terminal,

cat >testboot <<\E
#! /bin/bash
(date; ls -ld / /tmp /tmp/.{ICE,X11}-unix) >>ralph.txt
ls -ld / /tmp /tmp/.X11-unix
E
chmod a+x testboot

it will create `testboot' in the current directory and you can run it
with `./testboot'.  You've created a shell script;  a text file of
commands for the shell that's had its mode changed (chmod) to be
executable.

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ -- Meets, Mailing list, IRC, LinkedIn, ...
How to Report Bugs Effectively:  http://bit.ly/4sACa


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-24 Thread C A Wills

On 24/08/10 23:37, Ralph Corderoy wrote:


Hi Clive,


That explained some of it, thanks.  Tried the commands again and this
is what I got:-

Tue Aug 24 16:39:55 BST 2010
drwxr-xr-x 20 root root 4096 2010-07-25 23:33 /
drwxrwxrwt 13 root root 4096 2010-08-24 16:38 /tmp
Tue Aug 24 22:59:14 BST 2010
drwxr-xr-x 20 root root 4096 2010-07-25 23:33 /
drwxrwxrwt 13 root root 4096 2010-08-24 22:55 /tmp
drwxrwxrwt  2 root root 4096 2010-08-24 22:54 /tmp/.ICE-unix
drwxrwxrwt  2 root root 4096 2010-08-24 22:54 /tmp/.X11-unix

AND

cl...@clive-laptop:~$ ls -ld / /tmp /tmp/.X11-unix
drwxr-xr-x 20 root root 4096 2010-07-25 23:33 /
drwxrwxrwt 13 root root 4096 2010-08-24 23:01 /tmp
drwxrwxrwt  2 root root 4096 2010-08-24 22:54 /tmp/.X11-unix
cl...@clive-laptop:~$

Any good?


Yep, spot on!  The contents of ./ralph.txt show you're recording the
time and the state of those four directories, and the second's a subset
of that.  The directories permissions are all perfect at the moment.

What I'm assuming is that when xorg complains about /tmp/.X11-unix's
permissions being incorrect, stopping you from getting the login screen,
the fault, or the underlying cause of it, may already be in place before
you shutdown and by recording the state of the directories before
shutdown in ./ralph.txt we'll get proof of the problem.

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ -- Meets, Mailing list, IRC, LinkedIn, ...
How to Report Bugs Effectively:  http://bit.ly/4sACa


Ralph

Can I put those 2 commands into a file and run it just before shutdown 
each time, if so how?
If I put them into a text file on separate lines and called it 
'testboot.txt' could I type 'run testboot.txt' in a terminal screen, 
would it work?


Clive

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ -- Meets, Mailing list, IRC, LinkedIn, ...
How to Report Bugs Effectively:  http://bit.ly/4sACa


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-24 Thread Ralph Corderoy

Hi Clive,

> That explained some of it, thanks.  Tried the commands again and this
> is what I got:-
> 
> Tue Aug 24 16:39:55 BST 2010
> drwxr-xr-x 20 root root 4096 2010-07-25 23:33 /
> drwxrwxrwt 13 root root 4096 2010-08-24 16:38 /tmp
> Tue Aug 24 22:59:14 BST 2010
> drwxr-xr-x 20 root root 4096 2010-07-25 23:33 /
> drwxrwxrwt 13 root root 4096 2010-08-24 22:55 /tmp
> drwxrwxrwt  2 root root 4096 2010-08-24 22:54 /tmp/.ICE-unix
> drwxrwxrwt  2 root root 4096 2010-08-24 22:54 /tmp/.X11-unix
> 
> AND
> 
> cl...@clive-laptop:~$ ls -ld / /tmp /tmp/.X11-unix
> drwxr-xr-x 20 root root 4096 2010-07-25 23:33 /
> drwxrwxrwt 13 root root 4096 2010-08-24 23:01 /tmp
> drwxrwxrwt  2 root root 4096 2010-08-24 22:54 /tmp/.X11-unix
> cl...@clive-laptop:~$
> 
> Any good?

Yep, spot on!  The contents of ./ralph.txt show you're recording the
time and the state of those four directories, and the second's a subset
of that.  The directories permissions are all perfect at the moment.

What I'm assuming is that when xorg complains about /tmp/.X11-unix's
permissions being incorrect, stopping you from getting the login screen,
the fault, or the underlying cause of it, may already be in place before
you shutdown and by recording the state of the directories before
shutdown in ./ralph.txt we'll get proof of the problem.

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ -- Meets, Mailing list, IRC, LinkedIn, ...
How to Report Bugs Effectively:  http://bit.ly/4sACa


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-24 Thread C A Wills

On 24/08/10 19:14, Ralph Corderoy wrote:




 (date; ls -ld / /tmp /tmp/.{ICE,X11}-unix)>>ralph.txt





Then, to give us the output, copy and paste from the terminal back to
the reply.  Include the shell prompt before, where you entered the
command, and the blank one after.  That way we can see that what you
actually entered, and tell that the output finished by the re-appearance
of the shell's prompt.  So, for the first command above, it would be
something like

$ ls -ld / /tmp /tmp/.X11-unix
drwxr-xr-x 22 root root  4096 2010-07-24 07:23 /
drwxrwxrwt 15 root root 20480 2010-08-24 07:35 /tmp
drwxrwxrwt  2 root root  4096 2010-08-14 09:08 /tmp/.X11-unix
$

(`$' is my shell prompt, yours will be different and longer.)

The second command above, the

 (date; ls -ld / /tmp /tmp/.{ICE,X11}-unix)>>ralph.txt


Ralph

That explained some of it, thanks.  Tried the commands again and this is 
what I got:-


Tue Aug 24 16:39:55 BST 2010
drwxr-xr-x 20 root root 4096 2010-07-25 23:33 /
drwxrwxrwt 13 root root 4096 2010-08-24 16:38 /tmp
Tue Aug 24 22:59:14 BST 2010
drwxr-xr-x 20 root root 4096 2010-07-25 23:33 /
drwxrwxrwt 13 root root 4096 2010-08-24 22:55 /tmp
drwxrwxrwt  2 root root 4096 2010-08-24 22:54 /tmp/.ICE-unix
drwxrwxrwt  2 root root 4096 2010-08-24 22:54 /tmp/.X11-unix


AND


cl...@clive-laptop:~$ ls -ld / /tmp /tmp/.X11-unix
drwxr-xr-x 20 root root 4096 2010-07-25 23:33 /
drwxrwxrwt 13 root root 4096 2010-08-24 23:01 /tmp
drwxrwxrwt  2 root root 4096 2010-08-24 22:54 /tmp/.X11-unix
cl...@clive-laptop:~$

Any good?

Clive

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ -- Meets, Mailing list, IRC, LinkedIn, ...
How to Report Bugs Effectively:  http://bit.ly/4sACa


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-24 Thread Ralph Corderoy

Hi Clive,

> >  https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/623294
>
> Looked at that but confused as to what it says!

Simply put, you're getting an error from xorg saying the permissions on
/tmp/.X11-unix aren't as it wants, but its earlier code, attempting to
set the permissions to that value are flawed.

> > >  ls -ld / /tmp /tmp/.X11-unix
> > >
> > > show now, when it's all working?
> 
> drwxrwxrwt 2 root 4096 2010-08-24 13:07 then /tmp/.X11-unix was 
> highlighted in green box (a directory?)

Colours don't matter here, thanks.

> > Clive, it would be helpful if you were to do that command just
> > before shutting down and record the result.  Then we'd be able to
> > see if there's a pattern that matches whether the following boot
> > works or not.  I'd suggest
> >
> > (date; ls -ld / /tmp /tmp/.{ICE,X11}-unix) >>ralph.txt
>
> just run the above output failed with:
> ls: cannot access /tmp/.ICE--unix: No such file or directory
> ls: cannot access /tmp/.X11--unix: No such file or directory

You must have run something slightly different because there are two
minuses in the errors.  Don't attempt to re-type it into a terminal
window because, unless you understand the meaning of every bit and
twiddle, it's hard not to make a typo if you treat it as plain text.  I
suggest you copy and paste it from the email to the terminal.

Then, to give us the output, copy and paste from the terminal back to
the reply.  Include the shell prompt before, where you entered the
command, and the blank one after.  That way we can see that what you
actually entered, and tell that the output finished by the re-appearance
of the shell's prompt.  So, for the first command above, it would be
something like

$ ls -ld / /tmp /tmp/.X11-unix
drwxr-xr-x 22 root root  4096 2010-07-24 07:23 /
drwxrwxrwt 15 root root 20480 2010-08-24 07:35 /tmp
drwxrwxrwt  2 root root  4096 2010-08-14 09:08 /tmp/.X11-unix
$ 

(`$' is my shell prompt, yours will be different and longer.)

The second command above, the

(date; ls -ld / /tmp /tmp/.{ICE,X11}-unix) >>ralph.txt

one that builds up a log of results in ralph.txt in your home directory,
stores its output in that file so you won't see anything, the shell
prompt will just re-appear.  A cut-down version that will display it on
the screen is

(date; ls -ld / /tmp /tmp/.{ICE,X11}-unix)

I've just removed the re-direction that appends the standard output of
the commands onto the end of ./ralph.txt.

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-24 Thread C A Wills

On 24/08/10 12:00, Ralph Corderoy wrote:


Hi Clive,


So it's complaining that /tmp/.X11-unix exists but it isn't a
directory that has `drwxrwxrwt' as its permissions.  That directory is
created by /etc/rcS.d/S70x11-common so for some reason that either
isn't working, or it's work is being trampled afterwards.


There's been some progress.  I've raised a bug on the `chmod 1777' in
/etc/init.d/x11-common that attempts to set the permissions on
/tmp/.X11-unix to drwxrwxrwt.

(If you think that should work, given we're root, think again before the
spoiler in the bug report.  :-)

 https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/623294


Looked at that but confused as to what it says!


and what does

 ls -ld / /tmp /tmp/.X11-unix

show now, when it's all working?


drwxrwxrwt 2 root 4096 2010-08-24 13:07 then /tmp/.X11-unix was 
highlighted in green box (a directory?)


Clive, it would be helpful if you were to do that command just before
shutting down and record the result.  Then we'd be able to see if
there's a pattern that matches whether the following boot works or not.
I'd suggest

 (date; ls -ld / /tmp /tmp/.{ICE,X11}-unix)>>ralph.txt


just run the above output failed with:
ls: cannot access /tmp/.ICE--unix: No such file or directory
ls: cannot access /tmp/.X11--unix: No such file or directory

Even trying with sudo in front it failed, should the () or {} be included?

Will bring the laptop to Blandford meeting so you can see what's happening.

Clive

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
  Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
  List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-24 Thread Ralph Corderoy

Hi Clive,

> So it's complaining that /tmp/.X11-unix exists but it isn't a
> directory that has `drwxrwxrwt' as its permissions.  That directory is
> created by /etc/rcS.d/S70x11-common so for some reason that either
> isn't working, or it's work is being trampled afterwards.

There's been some progress.  I've raised a bug on the `chmod 1777' in
/etc/init.d/x11-common that attempts to set the permissions on
/tmp/.X11-unix to drwxrwxrwt.

(If you think that should work, given we're root, think again before the
spoiler in the bug report.  :-)

https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/623294

> and what does
> 
> ls -ld / /tmp /tmp/.X11-unix
> 
> show now, when it's all working?

Clive, it would be helpful if you were to do that command just before
shutting down and record the result.  Then we'd be able to see if
there's a pattern that matches whether the following boot works or not.
I'd suggest

(date; ls -ld / /tmp /tmp/.{ICE,X11}-unix) >>ralph.txt

If you wish, after a successful boot you can edit the file and add an
"OK" line.

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-23 Thread jr
hi Ralph,

> I don't know.  I think one gdm handles the possibly many X servers and
> arranges :{0,1,...}.log files.  It maybe something related to booting
> rotates them before gdm gets started.  I'm not au fait with the new way
> of starting things up in recent releases so don't know the path from
> init(8) to gdm.  :-)  Anyone else?

the .{0,1,..}.logs are written by the server, I do have those when I
start one or more servers manually.

automatic use of gdm/xdm would require a change of runlevel, I'll have
a nose around the default setups provided sometime in the next frew
days and see what's up. will get back to you on this.

-- 
regards, jr.

time flies like an arrow, fruit flies like a banana.

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-22 Thread Ralph Corderoy

Yo jr!

> > It seems Ubuntu cycles them so that doesn't happen.
> 
> hm, I don't use gdm (or xdm, prefer to start X when needed), am I
> right in thinking that the cycling of the logfiles is handled by gdm?

I don't know.  I think one gdm handles the possibly many X servers and
arranges :{0,1,...}.log files.  It maybe something related to booting
rotates them before gdm gets started.  I'm not au fait with the new way
of starting things up in recent releases so don't know the path from
init(8) to gdm.  :-)  Anyone else?

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-22 Thread jr
yo Ralph,

> It seems Ubuntu cycles them so that doesn't happen.

hm, I don't use gdm (or xdm, prefer to start X when needed), am I
right in thinking that the cycling of the logfiles is handled by gdm?

-- 
regards, jr.

time flies like an arrow, fruit flies like a banana.

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-22 Thread Ralph Corderoy

Hi,

> if (statbuf.st_mode != (S_IFDIR | X_SOCKET_DIR_MODE)) {
>   (void) fprintf(stderr, "X: %s has suspicious mode (not %o) or is not a "
>  "directory, aborting.\n", X_SOCKET_DIR, 
> X_SOCKET_DIR_MODE);
>   exit(1);
> }
> 
> (If X not being Y is an error, why not put the unexpected value in the
> error message!)

I've opened https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/622179
if anyone fancies a Sunday afternoon patch.  :-)

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-22 Thread Ralph Corderoy

Hi Clive,

> Also don't know if what I'm seeing is latest start up info as it
> started OK for last 2x.

You need to keep an eye on that directory and spot the pattern between
the :0.log* files there and your attempts at logging in.

Off-list, you wrote:
> Attached is a screenshot of the 0.log files in var/log/dgm.

I've uploaded it to tinypic.com.

http://i36.tinypic.com/2cookkj.jpg

but another time, the output of

sudo ls -l /var/log/gdm

gives us as much info, if not more, in an easier format to pass around.
:-)

> Looked into the small 0.log.2

I see :0-slave.log.2 is also smaller than the others and from the same
time.  Then :1.log is from a few seconds later.  It looks like a :1.log*
may be created everytime :0 fails?

> and this is the contents:
> 
>X: /tmp/.X11-unix has suspicious mode (not 1777) or is not a 
> directory, aborting.
> 
> This is dated Friday 20 Aug and is only 82 bytes.  Don't know if this
> was from a failure earlier today.

Probably.  I found on Google Codesearch that xserver-wrapper.c has

#define X_SOCKET_DIR "/tmp/.X11-unix"
#define X_SOCKET_DIR_MODE (S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)

...

if (statbuf.st_mode != (S_IFDIR | X_SOCKET_DIR_MODE)) {
  (void) fprintf(stderr, "X: %s has suspicious mode (not %o) or is not a "
 "directory, aborting.\n", X_SOCKET_DIR, X_SOCKET_DIR_MODE);
  exit(1);
}

(If X not being Y is an error, why not put the unexpected value in the
error message!)

So it's complaining that /tmp/.X11-unix exists but it isn't a directory
that has `drwxrwxrwt' as its permissions.  That directory is created by
/etc/rcS.d/S70x11-common so for some reason that either isn't working,
or it's work is being trampled afterwards.

Is there plenty of space when you do

df -h /tmp

and what does

ls -ld / /tmp /tmp/.X11-unix

show now, when it's all working?

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-21 Thread Ralph Corderoy

Hi jr,

> on my system (slackware) the X server's log file is *overwritten*
> every time X starts up.

It seems Ubuntu cycles them so that doesn't happen.

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-21 Thread John Carlyle-Clarke

 On 20/08/10 21:13, jr wrote:

hi Clive,


With:-
   sudo gedit /var/log/gdm/:0.log  (thanks Dan)

Got into :0.log but did not understand what was listed, large file, is there
any way to save file and post to you without copy to list?  Assume I can
give different name with 'save as' from getdit and save to my documents
area; without causing problems?
Also don't know if what I'm seeing is latest start up info as it started OK
for last 2x.

on my system (slackware) the X server's log file is *overwritten*
every time X starts up.

to save the file you could simply copy it to your home directory, eg:
   sudo cp /var/log/gdm/:0.log ~/old.0.log


Might be better with:

sudo cp /var/log/gdm/:0.log ~/old.0.log; sudo chown $USER ~/old.0.log

Otherwise the file will still have root ownership I think.

If you want to share it, you could do:

sudo cat /var/log/gdm/:0.log | xsel -i

Then create a new mail message and click the middle mouse button to paste the 
log in where you want.




--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
  Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
  List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-20 Thread jr
hi Clive,

> With:-
>   sudo gedit /var/log/gdm/:0.log  (thanks Dan)
>
> Got into :0.log but did not understand what was listed, large file, is there
> any way to save file and post to you without copy to list?  Assume I can
> give different name with 'save as' from getdit and save to my documents
> area; without causing problems?
> Also don't know if what I'm seeing is latest start up info as it started OK
> for last 2x.

on my system (slackware) the X server's log file is *overwritten*
every time X starts up.

to save the file you could simply copy it to your home directory, eg:
  sudo cp /var/log/gdm/:0.log ~/old.0.log

-- 
regards, jr.

time flies like an arrow, fruit flies like a banana.

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-20 Thread C A Wills

Ralph


Yes.  Locks up after showing the fault warning, no button pressing is
acted on even "Cntr/Alt/del".  Screen is black, like a terminal window,
fault shown at top line.


I gave incorrect info as Cntrl/Alt/Del does a restart. Sorry.


Nothing works except by pressing the power button. (configured to shut
down). Appears to close correctly, no indication of anything untoward
happening.


#dorset think userspace is involved in handling that, suggesting it may
only be starting X and/or gdm that's the problem and the rest of the
machine is running fine.


Have a look in /var/log/gdm.  An `ls -ltr' command will list the
most recently modified ones at the end.  The last one will probably
be :0.log, meaning the log file for the X server's :0 display.
Perhaps there's something of interest.

Yes. but what am I looking for?

so you'd be able to look in it as a normal user.  I see on 10.04 it's
now
 $ ls -ld /var/log/gdm
 drwxrwx--T 2 root gdm 4096 2010-08-14 09:08 /var/log/gdm


Doing above resulted in same output but date stamp different (as I 
expected).

With:-
   sudo gedit /var/log/gdm/:0.log  (thanks Dan)

Got into :0.log but did not understand what was listed, large file, is 
there any way to save file and post to you without copy to list?  Assume 
I can give different name with 'save as' from getdit and save to my 
documents area; without causing problems?
Also don't know if what I'm seeing is latest start up info as it started 
OK for last 2x.


Clive

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
  Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
  List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-20 Thread Sean Gibbins

On 20/08/10 14:02, Ralph Corderoy wrote:

Hi Sean,

   

Despite its world read permission being set, you still need the sudo
to get to it on my machine.
 

Regardless of the permissions on the file, each directory in the path to
the file needs execute (AKA search) permission if the kernel is to let
you access an entry in that directory by name.
   


That's why it's not working here - no read permission on the 
directories. I didn't read back through the thread to see what Clive's 
permissions were and thought it simpler to hit it with a big hammer than 
try the small one and fail!


Sean


--
music, film, comics, books, rants and drivel:

www.funkygibbins.me.uk


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
  Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
  List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-20 Thread Ralph Corderoy

Hi Sean,

> Despite its world read permission being set, you still need the sudo
> to get to it on my machine.

Regardless of the permissions on the file, each directory in the path to
the file needs execute (AKA search) permission if the kernel is to let
you access an entry in that directory by name.

Read permission on a directory lets you see what's in it.  (It used to
be a directory was opened and read just like a file to see what inode
numbers it referenced and under what names.)  But if there's no read
permission I can still access a file in the directory by name if I
already know its name, e.g. .bash_history.

drwxrwx--T 2 root gdm 4096 2010-08-14 09:08 /var/log/gdm

So for `other', none of rwx are set.  The `T' indicates the sticky bit
is set but, being a capital, `x' isn't.  (It restricts who can delete
files in that directory.)

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-20 Thread Dan Dart
>From GUI you can use gksudo gedit  (file) and it prompts you.

On 20 Aug 2010 13:25, "Sean Gibbins"  wrote:

On 20/08/10 12:55, Ralph Corderoy wrote:
>
>
> I don't know how to recommend a GUI user looks at its...
To list out the files:

   sudo ls -ltr /var/log/gdm/

To view one:

   sudo gedit /var/log/gdm/:0.log

(substituting gedit for the GUI text editor of choice, and :0.log for the
file you want to look at from the output generated by the previous command)

Despite its world read permission being set, you still need the sudo to get
to it on my machine.

Sean

-- 
music, film, comics, books, rants and drivel:

www.funkygibbins.me.uk




--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://w...
--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-20 Thread Sean Gibbins

On 20/08/10 12:55, Ralph Corderoy wrote:


I don't know how to recommend a GUI user looks at its contents.  Anyone
else?  `sudo gnome-open /var/log/gdm'?
   


To list out the files:

sudo ls -ltr /var/log/gdm/

To view one:

sudo gedit /var/log/gdm/:0.log

(substituting gedit for the GUI text editor of choice, and :0.log for 
the file you want to look at from the output generated by the previous 
command)


Despite its world read permission being set, you still need the sudo to 
get to it on my machine.


Sean

--
music, film, comics, books, rants and drivel:

www.funkygibbins.me.uk


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
  Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
  List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-20 Thread Ralph Corderoy

Hi Clive,

> Yes.  Locks up after showing the fault warning, no button pressing is
> acted on even Cntr/Alt/del.  Screen is black, like a terminal window,
> fault shown at top line.

I'm not sure if Ctrl-Alt-Delete should do anything if you're on a
virtual terminal.  What about Alt-1, Alt-2, etc?  They switch between
the different VTs, e.g. you may be left on VT3, Alt-1 will switch to VT1
and Alt-3 will return you to seeing that error message.

> > > If I shut down
> >
> > How do you commence that?  Just trying to get a picture of what's
> > available.
> 
> Nothing works except by pressing the power button. (configured to shut
> down). Appears to close correctly, no indication of anything untoward
> happening.

#dorset think userspace is involved in handling that, suggesting it may
only be starting X and/or gdm that's the problem and the rest of the
machine is running fine.

> > Have a look in /var/log/gdm.  An `ls -ltr' command will list the
> > most recently modified ones at the end.  The last one will probably
> > be :0.log, meaning the log file for the X server's :0 display.
> > Perhaps there's something of interest.
> 
> Just looked - var/log/gdm is empty and is locked(?)

Ah, sorry.  On 8.04 it's

$ ls -ld /var/log/gdm
drwxr-xr-x 2 root root 4096 2010-08-19 22:06 /var/log/gdm

so you'd be able to look in it as a normal user.  I see on 10.04 it's
now

$ ls -ld /var/log/gdm
drwxrwx--T 2 root gdm 4096 2010-08-14 09:08 /var/log/gdm

I don't know how to recommend a GUI user looks at its contents.  Anyone
else?  `sudo gnome-open /var/log/gdm'?

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-20 Thread C A Wills

On 19/08/10 23:46, Dan Dart wrote:

(process:349): GLib-WARNING **: getpwuid_r(): failed due to unknown user
id(0)


User ID 0 is root. Is your /etc/passwd still there and showing a root user?

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Dan

Just checked, files /ect/passwd and /ect/passwd- are both there showing 
1.8Kb size same day/time stamps but doing:

sudo gedit /ect/passwd (or passwd-)
shows nothing, did manage to open passwd as sudo and that showed lots of 
code.


Clive

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
  Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
  List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-19 Thread Dan Dart
> (process:349): GLib-WARNING **: getpwuid_r(): failed due to unknown user
> id(0)

User ID 0 is root. Is your /etc/passwd still there and showing a root user?

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-19 Thread C A Wills

On 19/08/10 13:28, Ralph Corderoy wrote:


Hi Clive,


Following day after several 'boots' it suddenly started intermittent
failing during the start with:
(process:349): GLib-WARNING **: getpwuid_r(): failed due to unknown user
id(0)


By failing you mean there's no graphical login screen provided by gdm?
That warning *may* be unconnected, based on a bit of Googling.



Yes.  Locks up after showing the fault warning, no button pressing is 
acted on even Cntr/Alt/del.  Screen is black, like a terminal window, 
fault shown at top line.



If I shut down


How do you commence that?  Just trying to get a picture of what's
available.


Nothing works except by pressing the power button. (configured to shut 
down). Appears to close correctly, no indication of anything untoward 
happening.





When moving the partitions I did not re-do the partition table: should
I?


No, don't think that's connected.


OK


Have a look in /var/log/gdm.  An `ls -ltr' command will list the
most recently modified ones at the end.  The last one will probably be
:0.log, meaning the log file for the X server's :0 display.  Perhaps
there's something of interest.


Just got back from Walsall/NEC so will look tomorrow.

Just looked - var/log/gdm is empty and is locked(?)

Cheers   Clive

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
  Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
  List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Boot up fault Ubuntu 10.04

2010-08-19 Thread Ralph Corderoy

Hi Clive,

> Following day after several 'boots' it suddenly started intermittent
> failing during the start with:
> (process:349): GLib-WARNING **: getpwuid_r(): failed due to unknown user 
> id(0)

By failing you mean there's no graphical login screen provided by gdm?
That warning *may* be unconnected, based on a bit of Googling.

> If I shut down

How do you commence that?  Just trying to get a picture of what's
available.

> When moving the partitions I did not re-do the partition table: should
> I?

No, don't think that's connected.

Have a look in /var/log/gdm.  An `ls -ltr' command will list the
most recently modified ones at the end.  The last one will probably be
:0.log, meaning the log file for the X server's :0 display.  Perhaps
there's something of interest.

Cheers,
Ralph.


--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


[Dorset] Boot up fault Ubuntu 10.04

2010-08-18 Thread C A Wills
Last week my /root partition filled up and the laptop would not 'boot'. 
 I looked at the system by booting from a live CD and Gparted to 
confirm a full partition; I could not extend / as the swap and /home 
partitions followed directly.
After backing up /home to another area I played around with the 
partitions, shortening, making space, moving each partition and ended up 
with twice the space for /, 1.4GB swap and a shorter /home: left some 
space (unallocated) in case the problem repeats it's self.
Shut down and re-started with fingers crossed, booted OK and all files 
still there, system working normally.
Following day after several 'boots' it suddenly started intermittent 
failing during the start with:
(process:349): GLib-WARNING **: getpwuid_r(): failed due to unknown user 
id(0)


If I shut down and try again it will complete the boot and login screen, 
working as normal.

Sometimes it may need 2 or 3 tries, other times it behaves normally.
Watching the boot screen process (visually) it starts with Unbuntu 
screen (underscore dots flashing) gets past the webcam checking (webcam 
flashes) then fails before Login screen.


When moving the partitions I did not re-do the partition table: should I?

Sorry for long text but that's the order of doing things.  I hate 
intermittent faults!!


Clive

--
Next meeting: Blandford Forum, Tuesday 2010-09-07 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
  Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
  List info: https://mailman.lug.org.uk/mailman/listinfo/dorset