xorg.conf file

Asked by george

Well now comes a stupid question I was in Xorg. config before and don't recall how to get there. I hit alt+f2 type in xorg.conf and I get the wonderful could not open file:///home/name/xorg.conf or if I try xorg.con/home/name/desktop/ I get the almost the same Error stating file '/home/gk/xorg.conf /home/name/Desktop/xorg.conf': No such file or directory. So where did it go or how do I get there from here.

Thanks in advance
I'm learning, albeit slowly
George

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xorg Edit question
Assignee:
No assignee Edit question
Solved by:
george
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#1

Hi,

The file you are looking for is

/etc/X11/xorg.conf

Regards,

Mark

Revision history for this message
george (gk-joimail) said :
#2

Thanks Mark be that doesn't work either now Error stating file '/etc/x11/xorg.conf': No such file or directory pops up.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#3

Hi,

It's /etc/X11/xorg.conf with a capital X, not /etc/x11/xorg.conf

Regards,

Mark

Revision history for this message
george (gk-joimail) said :
#4

Guess what Mark, IT WORKS,

Thank you

George

Revision history for this message
LEGOManiac (bzflaglegomaniac) said :
#5

It's always important to remember that Linux is case sensitive.

One command that I've become very accustomed to using is "locate". As in:

locate xorg.conf
/etc/X11/xorg.conf
/etc/X11/xorg.conf.20090109001216
/etc/X11/xorg.conf.20090109001708
/etc/X11/xorg.conf.failsafe
/usr/share/man/man5/xorg.conf.5.gz
/var/lib/x11/xorg.conf.md5sum
/var/lib/x11/xorg.conf.roster

I do this in a bash shell from the windowed environment. That allows me to then use the mouse in the shell window to highlight the file and path that I want and copy and paste it somewhere (for example "/etc/X11/xorg.conf"). That ensures that I get the full path name, spelling and punctuation correct.

Hope it helps

Revision history for this message
george (gk-joimail) said :
#6

Thank you both, I found the xorg.conf file I need. All I wish to do is change the dual monitor settings. I have dual monitors but are different resolutions. When I change my setting in xorg.conf and hit "save" I get "could not save file, you do not have permission necessary to save file" So I guess my new or more information needed question is how do I change a configuration in system.

Thanks again
dumb me
George

Revision history for this message
george (gk-joimail) said :
#7

Oh yeah I'm running 8.1
Thanks

Revision history for this message
Andrew Morris (ajmorris) said :
#8

hi george, to save the settings to xorg.conf, you need superuser privileges, i.e. root.
So when you edit /etc/X11/xorg.conf - add 'sudo' in-front of your text-editor, i.e:

 sudo nano -w /etc/X11/xorg.conf

Note, if you are using the gnome GUI text editor, gedit, the command is:

gksudo gedit /etc/X11/xorg.conf

Revision history for this message
george (gk-joimail) said :
#9

This is getting a bit over my head, are there any publications, books, etc regarding how to work in Ubuntu? I understand the command you posted Andrew, but I don't understand where it goes in the editor or the difference between the two editors. I go to either the f2 option or the file system and do the file open thing and get to the program I wish to edit.

Revision history for this message
george (gk-joimail) said :
#10

More added, if I open xorg.config here xorg.conf (/etc/X11). gedit Where do I place the gksudo gedit /etc/X11/xorg.conf command to make the changes I wish to implement?

Revision history for this message
Andrew Morris (ajmorris) said :
#11

the commands i posted are for in a 'terminal' (or CLI) -- if you're using alt+f2, enter the latter one into the dialog box that appears;

gksudo gedit /etc/X11/xorg.conf

then make your changes, and you will be able to save it.

If you use the 'file system' as you mentioned, i assume you are referring to the nautilus file manager. You would need to open nautilus with root privilges, i.e. gksudo nautilus --no-desktop (or use the root file browser menu entry)

The difference between sudo, and gksudo is simple. gksudo is used for opening GTK applications with super user privileges, sudo is for terminal applications. As for books etc, im sure there are plenty around... however, you might like to browse around http://wiki.ubuntu.com for how to work in Ubuntu :)

Revision history for this message
george (gk-joimail) said :
#12

Thank you Andrew, it looks like it is what I needed. Am not able to play around right now, but when I opened the gksudo gedit conf file just to look I was able to save it, albeit unchanged, but it did except the save.

Thanks again