LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Reconfiguring xorg from command line in Fedora (http://www.linuxquestions.org/questions/linux-general-1/reconfiguring-xorg-from-command-line-in-fedora-566100/)

armandino 07-02-2007 02:42 PM

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.

weibullguy 07-02-2007 04:58 PM

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

reddazz 07-02-2007 05:14 PM

In Fedora Core and related distributions, you can run the command system-config-display even in text mode.

armandino 07-03-2007 01:26 AM

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


armandino 07-03-2007 01:34 AM

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?).

weibullguy 07-03-2007 07:28 AM

What don't you understand?
Code:

If this server is no longer running, remove /tmo/.X0-lock and start again

reddazz 07-03-2007 11:31 AM

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.

armandino 07-04-2007 03:53 AM

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??


All times are GMT -5. The time now is 05:40 AM.