[DONE] Need help editing xorg.conf
I installed Ubuntu last night and spent about 8 hours playing around with it
I'm just starting to get a hang of it, i.e. how the file structure works and stuff like that.. my problem at the moment is with the resolution. I cant edit xorg.conf, I just dont know how. I managed to find it and open it through some text editor but it only opens as "read only" ..sorry for making you read all that, but my question is this: How do I edit xorg.conf? .. do I need to log out of X to do that? |
You haven't got root permissions. Try this:
Code:
sudo emacs /etc/X11/xorg.conf Code:
sudo xorgconfig Code:
sudo xorgcfg |
sudo gedit /etc/X11/xorg.conf works as well.
|
Quote:
Quote:
Quote:
as far as I remember emacs is an editor, and judging by that error I guess I dont have it installed? |
Try other editors like nano or vi
|
There should be a way in Ubuntu to change the screen resolution without editing xorg.conf. If I recall correctly there is an admin option of some type in the gnome system menu. Look around in there for the settings. Ubuntu does pretty good hardware support, so you should have some options. I would be very careful if you do decide to edit xorg.conf, since you are a newbie, you could get urself into some problems.
|
Quote:
..I made the edit I need to do, but I'm a bit confused on how to save the file. - will WriteOut save the file? Quote:
the odd thing is that my xorg.conf file lists the correct device driver and even the correct resolution, so I have no idea why it doesnt work |
Control + C will save the file, control + X will exit
|
Quote:
|
you save with ctrl+x with nano
|
Quote:
thanks for the help btw I really appreciate it |
But it opens? and you can read it? if you can read it and edit it. typing ctrl+x will ask if you want to save. type Y and it will warn you about overwriting files. did it ask you for a password after the sudo?
try sudo nano /etc/X11/xorg.conf |
Quote:
- when I typed sudo nano /etc/X11/xorg.conf I would spell x11 instead of X11 - mispelling it would open Nano, but it wouldnt open the appropriate file - I would then manually open the file, but evidently I wasnt getting the sudo privileges what I learned - Linux is case sensitive when it comes to file locations - nano is a text-based editor and Gedit is an X editor - 'sudo' gives power to edit system files thanks for all your help, I still have tons of questions but this problem is solved :) |
The easiest way to aviod things like that is to use the <tab> key. if you type /et then tab it will put /etc/ if you were to type /etc/x then the tab key it would beep if you have sound or not complete. This is true with files as well and yes *nix is case sensitive
|
Glad you got your first problem solved, however, I believe that if your maintaining your Linux system then you may as well just login as (su) superuser, rather then using sudo...
$ su <enter> PW <enter> # KC |
All times are GMT -5. The time now is 10:09 PM. |