LinuxQuestions.org
Register a domain and help support LQ
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 07-02-2006, 04:03 PM   #1
jamez15
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
James

Last edited by jamez15; 07-02-2006 at 04:10 PM.
 
Old 07-02-2006, 04:08 PM   #2
binary_y2k2
Member
 
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
Code:
script
startx
(errors ... ...)
exit
the log file will be in ~/typescript
 
Old 07-02-2006, 05:46 PM   #3
FreeDoughnut
Member
 
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, 08:32 PM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
/var/log/Xorg.0.log not good enough for you all? Another option:
Code:
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 &>.
 
  


Reply


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 09:34 AM
Using c++ to write to a text file. Im having problem with strings swatward Programming 4 02-03-2005 10:17 PM
Linux shell command for makefile.in to create a text file and write to it alix123 Programming 8 01-07-2005 09:18 AM
php script can not write text file lemotion Linux - Newbie 5 04-20-2004 11: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 03:58 PM


All times are GMT -5. The time now is 06:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration