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:
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:
Also, you can use the following find command to locate xorg.conf:
# find / -type f -name xorg.conf
# find / -type f -name xorg.conf &>/tmp/output &
### after some time run ###
# cat /tmp/outputTweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?