LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-2007, 02:42 PM   #1
armandino
Member
 
Registered: Oct 2005
Posts: 72

Rep: Reputation: 15
Reconfiguring xorg from command line in Fedora


Is there in Fedora an utility which, like Ubuntu's "dpkg-reconfigure xserver-xorg", can be used to reconfigure the X server (ie, editing the xorg.conf file) AT COMMAND LINE, when the X server does NOT start and consequently the "system-config-display" command is NOT working?

Thanks.
 
Old 07-02-2007, 04:58 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
I always like the configuration utility that is provided by X Windows. Execute as root to create a new xorg.conf
Code:
cd ~ &&
mv /etc/X11/xorg.{conf,conf-old} &&
Xorg -configure
Then test your new configuration file
Code:
X -config ~/xorg.conf.new
You will only see a 'grey' background with black X cursor, but this indicates the X server is working. Exit with Control+Alt+Backspace. If the system does not work, take a look at /var/log/Xorg.0.log to see what went wrong.

Now, as the root user, move the configuration file to the new directory
Code:
cp -v ~/xorg.conf.new /etc/X11/xorg.conf
 
1 members found this post helpful.
Old 07-02-2007, 05:14 PM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
In Fedora Core and related distributions, you can run the command system-config-display even in text mode.
 
Old 07-03-2007, 01:26 AM   #4
armandino
Member
 
Registered: Oct 2005
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by weibullguy
I always like the configuration utility that is provided by X Windows....
Code:
Xorg -configure
...
I tried that, but I'm getting the following message:
Code:
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmo/.X0-lock and start again
 
Old 07-03-2007, 01:34 AM   #5
armandino
Member
 
Registered: Oct 2005
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by reddazz
In Fedora Core and related distributions, you can run the command system-config-display even in text mode.
How can I do that?
If I launch that command in a pts/n terminal I obviously get the graphic mode.
If I launch it in a virtual terminal, say tty1, I get the graphic mode again, but in display :17.0 (by the way, why 17?).
 
Old 07-03-2007, 07:28 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
What don't you understand?
Code:
If this server is no longer running, remove /tmo/.X0-lock and start again
 
Old 07-03-2007, 11:31 AM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by armandino
How can I do that?
If I launch that command in a pts/n terminal I obviously get the graphic mode.
If I launch it in a virtual terminal, say tty1, I get the graphic mode again, but in display :17.0 (by the way, why 17?).
Its a graphical tool, that runs its own xserver if the xorg settings are not working properly. Anyway, try the solution suggested in the error message you got.
 
Old 07-04-2007, 03:53 AM   #8
armandino
Member
 
Registered: Oct 2005
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by reddazz
Its a graphical tool...
I understood that.
I thought it could be similar to "system-config-network" which, when launched from a VT, runs in text mode. I thought I could be missing some option to make "system-config-display" work the same way.

So my initial question becomes more relevant: is there in Fedora (or is it possible to yum install from Fedora's repos) any text-mode utility with which to configure the X server without having to manually edit xorg.conf??
 
  


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
mice: difference between xorg.conf's "ButtonMapping" and xmodmap on command line??? whysyn Linux - Hardware 3 03-16-2007 08:06 AM
mplayer doesn't work after reconfiguring xorg akudewan Linux - Software 2 09-02-2005 01:53 AM
Fedora Linux - Command Line only...? Nickj Linux - Newbie 4 07-26-2005 12:20 PM
Reconfiguring X Server from command line Jongi Mandriva 1 04-10-2005 03:28 AM
Fedora command line only terran2k Linux - General 1 01-15-2004 07:17 AM


All times are GMT -5. The time now is 10:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration