I want to find and edit my xorg.conf file for tweaking and configure it for new settings. The problem is that I'm unable to find the file. According to my research, xorg.conf should in /etc/X11 or /usr/X11R6/lib/X11/ directory. I found directories but not the file in directories. How do I find the xorg.conf under Unix or Linux like operating systems?
On most modern Linux or Unix like system Xorg is all about auto-configuring settings without using xorg.conf file. Xorg server will generate a temporary xorg.conf on startup if no config file is found in /etc/, or /etc/X11, or /usr/X11R6/lib/X11/ directory. However, you can use the following command to create a new config file:
Xorg -configure
It will creates xorg.conf.new in your current directory. Edit as per your requirements, test it and move to /etc/X11:
# vi xorg.conf.new
# X -config -retro xorg.conf.new
# cp xorg.conf.new /etc/X11
See this faq for more information. The default location for Unix / Linux / BSD operating systems are as follows:
- /etc/X11/xorg.conf
- /etc/xorg.conf
- /usr/X11R6/lib/X11/xorg.conf
Also, you can use the following find command to locate xorg.conf:
# find / -type f -name xorg.conf
OR
# find / -type f -name xorg.conf &>/tmp/output &
### after some time run ###
# cat /tmp/output
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 1 comment… read it below or add one }
I wish everything in Linux was a easy to tweak as that NetPix you get off of dotdeb.com.