Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old April 24th, 2007   #1
Huzudra
A Carafe of Ubuntu
 
Huzudra's Avatar
 
Join Date: Sep 2006
Beans: 99
help? how do i edit xorg.conf from commandline?

i sort of messed things up messing around a little and i need to fix my xorg.conf now, but i dont know how to edit it from commandline! i thought that removing xserver-xorg-core would remove all the config and put it back to how it was, then just reinstall the nvidia driver but that didnt work! this all happened when i changed it from nv to nvidia and restarted. i just need to change that back i think... i cant even rememeber the command to enable the driver now, its been a heck of a day and i just want to fix this.

i can see the file in windows with explore2fs but i cannot make changes to it, pretty frustrating!

Last edited by Huzudra; April 24th, 2007 at 05:25 PM..
Huzudra is offline   Reply With Quote
Old April 24th, 2007   #2
robrmd9
Just Give Me the Beans!
 
Join Date: Oct 2005
My beans are hidden!
Ubuntu 8.04 Hardy Heron
Re: help? how do i edit xorg.conf from commandline?

Hey, just do something like:

Code:
sudo nano /etc/X11/xorg.conf
This will open it up in nano, which is a command-line text editor.
robrmd9 is offline   Reply With Quote
Old April 24th, 2007   #3
itsjustarumour
Ubuntu Extra Shot
 
Join Date: Dec 2006
Location: Oxford and Jyvaskyla
Beans: 359
Ubuntu 9.10 Karmic Koala
Re: help? how do i edit xorg.conf from commandline?

Try:

Quote:
sudo nano /etc/X11/xorg.conf
__________________
Resuscitating metaphysics from the graveyard of logical positivism, in time for tea.
itsjustarumour is offline   Reply With Quote
Old April 24th, 2007   #4
itsjustarumour
Ubuntu Extra Shot
 
Join Date: Dec 2006
Location: Oxford and Jyvaskyla
Beans: 359
Ubuntu 9.10 Karmic Koala
Re: help? how do i edit xorg.conf from commandline?

I'll second that then, lol!
__________________
Resuscitating metaphysics from the graveyard of logical positivism, in time for tea.
itsjustarumour is offline   Reply With Quote
Old April 24th, 2007   #5
Huzudra
A Carafe of Ubuntu
 
Huzudra's Avatar
 
Join Date: Sep 2006
Beans: 99
Re: help? how do i edit xorg.conf from commandline?

thanks to both of you, i'll try this once i've downloaded the new image and burned it to CD just incase i cant get it fixed, i'll just format/reinstall. there was nothing on there that was special, i just booted to it to check email/browse/chat on gaim.
Huzudra is offline   Reply With Quote
Old April 24th, 2007   #6
Huzudra
A Carafe of Ubuntu
 
Huzudra's Avatar
 
Join Date: Sep 2006
Beans: 99
Re: help? how do i edit xorg.conf from commandline?

while i appreciate the help, it didnt work out, says the file is empty or doesnt exist when i try nano, but i can SEE it when in windows or booted to the cdrom and its there and not empty!!! but i cant write to it from either so im just going to reinstall. now heres a good one, how come im having install problems now!

i formatted the partition it was on to ext3 again but it says theres no root file system installed? or am i mistooken and it should be ext2? nevermind, i need to learn to read whats on my screen! its just one of those days!

Last edited by Huzudra; April 24th, 2007 at 09:57 PM..
Huzudra is offline   Reply With Quote
Old April 24th, 2007   #7
strabes
Chocolate Ubuntu Mocha Blend
 
strabes's Avatar
 
Join Date: Jun 2006
Beans: 1,736
Ubuntu 8.04 Hardy Heron
Re: help? how do i edit xorg.conf from commandline?

The terminal is case sensitive. Make sure the "X" in "X11" is capitalized. /etc/X11/xorg.conf
strabes is offline   Reply With Quote
Old April 24th, 2007   #8
Huzudra
A Carafe of Ubuntu
 
Huzudra's Avatar
 
Join Date: Sep 2006
Beans: 99
Re: help? how do i edit xorg.conf from commandline?

thats good to know! i just reinstalled, reinstalled the nvidia-glx, enabled it, same problem again! yargh this is getting on my nerves now! i really dont like a 60hz refresh rate so i'd like to get this working!


so i wrote down the backup, tried to do it, it cant stat the backup file, no directory found!? is that case sensitive too? i think i got it down right, it should go like...

cp /var/backups/xorg/xorg.cong.2007-04-24-22:22:15 /etc/X11/xorg.conf

correct? it says it cant find the backup file im pointing at, but now that i know the X11 part is case sensitive i think i can edit the config back to having the driver disabled so atleast i can use it again. but why am i having it break each time i enable the nvidia-glx driver? i dont think i need the legacy driver just yet, its an fx5700. i am soo very confused here! i'd never had the driver enabled under edgy, it wouldnt let me saying something about how i had to manually edit it, i never got around to it.

edit, backup didnt work because thats not a 1, its a 4!!! i cant see straight today. guys i swear im not usually this mr magoo about things.


really the root issue, besides my ineptitudes today, is that whenever i enable the nvidia-glx xserver tosses itself out the window with a short rope around its neck. i think the error is no device found or no monitor found.

back onto linux, got it updated. it looks like the nvidia-glx when enabled points to a pci device, where as this system has an agp card installed? i'm pretty lost on this one, i dont know that much yet. how do i fix this? 60hertz hertz my eyes.

heres the bit from the config

Section "Device"
Identifier "nVidia Corporation NV36.2 [GeForce FX 5700]"
Driver "nv"
BusID "PCI:1:0:0"
EndSection

Last edited by Huzudra; April 25th, 2007 at 12:19 AM..
Huzudra is offline   Reply With Quote
Old April 25th, 2007   #9
Huzudra
A Carafe of Ubuntu
 
Huzudra's Avatar
 
Join Date: Sep 2006
Beans: 99
Re: help? how do i edit xorg.conf from commandline?

any thoughts on the nvidia-glx issue? or should i start a new thread about this topic?
Huzudra is offline   Reply With Quote
Old April 25th, 2007   #10
strabes
Chocolate Ubuntu Mocha Blend
 
strabes's Avatar
 
Join Date: Jun 2006
Beans: 1,736
Ubuntu 8.04 Hardy Heron
Re: help? how do i edit xorg.conf from commandline?

Read my whole post.

When you're typing directories & commands in terminal you can hit tab twice to show you all of the items in the directory you're pointing at. You can also type it and hit tab & it will complete the name for you. This way you avoid typos and the like.

You'll have to use "sudo cp" instead of just "cp" to copy root files.

Quote:
cp /var/backups/xorg/xorg.cong.2007-04-24-22:22:15 /etc/X11/xorg.conf
In the first part of your command it should be "xorg.conf" not "xorg.cong." So, if the rest of your filename is correct, the command you should run will look like this:

Code:
sudo cp /var/backups/xorg/xorg.conf.2007-04-24-22:22:15 /etc/X11/xorg.conf
strabes is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:32 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry