LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2005, 07:16 AM   #1
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
How do I log on-screen errors to file


I wasn't able to login to my FC3 box as a standard user only root.
I could just make out a CRITICAL error flash up on screen for a very small amount of time (way too quick to read).
In the end I managed to pause and read it using 'scroll lock' (after many, many attempts i've got to say).

I tried adding a log that logged *.* but the error didn't show up.
( I added '*.* /var/log/all in syslog.conf' )

Is there a way to log 'on screen' errors to file?

thanks in advance

Skunkburner
 
Old 05-28-2005, 04:54 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
These errors probably log in somewhere. You just have to figure out what is causing the errors, to find where they are logged. X errors are in your home folder under xsession_errors or something a like.
 
Old 05-29-2005, 01:21 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Have a look at the log files in /var/log. There are several you can look at with the cat command.
 
Old 05-29-2005, 05:43 PM   #4
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Rep: Reputation: 108Reputation: 108
I guess 'script' is what you want. ???
Everything on screen will be stored to file. Default is ./typescript.
 
Old 06-01-2005, 04:15 AM   #5
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Original Poster
Rep: Reputation: 16
It defintely isn't in /var/log I had already checked that ( I tried adding a log that logged *.* but the error didn't show up. )
there was a reference to it - Just not the error message itself.

>> I guess 'script' is what you want. ???

Thats so very nearly what I wanted! : (

it does log 'on screen' errors - if your logged in, the error I was seeing was at the login prompt (init 3)

btw if run 'script' then change to another user session on the same box (ie alt-ctrl-F2 or whatever) it crashes X - so no joy that way either.

Thanks anyway kaz2100.
 
Old 06-01-2005, 11:34 AM   #6
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Rep: Reputation: 108Reputation: 108
I am sure that you have tried "dmesg".
 
Old 06-01-2005, 12:53 PM   #7
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Uh, dmesg will only show you what you saw at startup. To save it to a logfile,
Try:
Code:
cat dmesg > anylogfile.log
--Abid Kazmi
 
Old 06-01-2005, 03:57 PM   #8
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834

Rep: Reputation: 108Reputation: 108
I've got some idea (maybe just idiot)

What happens if
#1, you startup your comp with single user mode.
#2, try to set up some sort of log, script can be one of them
#3, try to execute rc scripts one by one manually (manually follow init 3 process)
#4, try to figure out what goes wrong.

or

By the way, file/directory permissions (owner,group) are not messed up.

Last edited by kaz2100; 06-01-2005 at 03:59 PM.
 
Old 06-01-2005, 04:51 PM   #9
securehack
Member
 
Registered: Sep 2003
Location: United States
Distribution: Slackware 10.1, Debian 3.0, WinXProSP1, Fedora Core 3
Posts: 425

Rep: Reputation: 30
Quote:
#3, try to execute rc scripts one by one manually (manually follow init 3 process)
Dude, that's extreme. It's not that big of a problem.

--Abid Kazmi
 
Old 06-02-2005, 02:51 AM   #10
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Original Poster
Rep: Reputation: 16
Quote:
Dude, that's extreme. It's not that big of a problem.

--Abid Kazmi
How would you know - you didn't post the original problem. At least kaz2100s suggestion is a possible solution not some little troll.

Thanks Kaz2100

abid go troll somewhere else

Last edited by skunkburner; 06-02-2005 at 02:56 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
write errors to log file, instead of /dev/null c_r2005 Linux - General 2 07-30-2005 08:34 AM
Startx results in a black screen with VGA and screen errors kwosource Linux - Newbie 4 03-11-2005 02:58 PM
error: stat of /var/log/ppp/connect-errors failed: No such file or directory Niceman2005 Linux - Newbie 0 01-20-2005 12:29 AM
Strange xdm log in screen and can't log in with it? Erik Plaggenmar Linux - Software 4 06-05-2004 05:07 PM
Log Screen Output to a file sdandeker Linux - Newbie 3 09-17-2003 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration