Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-02-2006, 03:03 PM   #1
LQ Newbie
Registered: Oct 2005
Location: New Jersey
Distribution: Ubuntu, Redhat, Debian, Knoppix STD, Auditor
Posts: 7

Rep: Reputation: 0
Write Error Log to Text File

I've got a problem. After i install debian everything seems to go well. I'm presented with a black screen. I know i have to install x-window and gnome or kde to get the graphical user interface. So i used the apt-get install command to install x-windows, gnome and kde.

Now here's where my problem comes. As soon as i type startx to get GUI going the monitor turns black for a few seconds and then returns to the previous text interface. It also throws out a whole bunch of errors. Too many for me to write down because they are not all displayed on screen.

So my question is as follows is there any way with commands to start x-window and tell it to create a text file with all of errors it encounters. That way i can post it up and you guys can help me to get it going correctly.

If there isn't any way to have it automatically write the error log what's the work around???

Thanks in advance

Last edited by jamez15; 07-02-2006 at 03:10 PM.
Old 07-02-2006, 03:08 PM   #2
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
use the script command to make a log of all the output
(errors ... ...)
the log file will be in ~/typescript
Old 07-02-2006, 04:46 PM   #3
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228

Rep: Reputation: 30
startx > log
You don't need to make a script!
Old 07-02-2006, 07:32 PM   #4
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
/var/log/Xorg.0.log not good enough for you all? Another option:
startx 2> xorg.tmp.log
As opposed to FreeDoughnut's solution, this one will only capture stderr output where as > will only capture stdout which probably won't contain any errors. If you wants both then use &>.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using c++ to write to a text file. Im having problem with strings swatward Programming 4 02-03-2005 09:17 PM
Linux shell command for to create a text file and write to it alix123 Programming 8 01-07-2005 08:18 AM
php script can not write text file lemotion Linux - Newbie 5 04-20-2004 10:14 PM
Does Linux write what happens at boot to a file ? I can't find anything in var/log . lostboy Linux - General 8 05-07-2003 02:58 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:15 PM.

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