Ubuntu Linux: How to reconfigure X windows system (X.org server)
Q. I had messed up my Ubuntu Linux X windows configuration by editing files. Now all I want is my default settings back to previous state. How do I reconfigure X.org windows system?
A. You need to use dpkg-reconfigure command which reconfigures packages after they have already been installed. Pass it the names of a package or packages to reconfigure. It will ask configuration questions, much like when the package was first installed.
Ubuntu reconfigure xorg
Type any one of the following command to reconfigure X.org windows system:
As the root user:
# dpkg-reconfigure xserver-xorg
OR as a normal user:
$ sudo dpkg-reconfigure xserver-xorg
Just follow on screen questions and you should able to restore or reconfigure to previous state.
See also:
- Black Screen While Starting X window system error and solution
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Ubuntu / Debian Linux Regenerate OpenSSH Host Keys
- How to: Stop X.Org Server
- Linux: How To Copy and Paste From the Command Line
- Fedora Linux reconfigure X server
- Does Linux grub replace Windows MBR?
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!




January 4th, 2008 at 2:27 pm
Thanks!
I put this also in my blog so that more users can find a solution faster.
January 5th, 2008 at 5:16 am
sudo dpkg-reconfigure -phigh xserver-xorgfor automatic configuration
May 27th, 2008 at 3:43 pm
[...] tweaks things a bit more than he should, this has saved me a few times now. Props go to a poster on this page. [...]