PDA

View Full Version : [ubuntu] how to make a backup of /etc/x11/xorg.conf



bilbo.san
May 3rd, 2008, 04:46 PM
Hey,

I was able to install the nvidia setting for my video card, changed the res successfully. But I read somewhere in this forum that I should make a backup of the /etc/x11/xorg.conf just in case something goes wrong with the video settings, I have already installed the pack and changed the res twice and returned to the original just now to make this back up.

Is it something you would recommend?
How do I do that?

b.

damis648
May 3rd, 2008, 04:49 PM
in terminal type


sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

and the backup is stored as xorg.conf.backup in /etc/X11/

Monicker
May 3rd, 2008, 04:50 PM
It never hurts to have a backup copy of xorg.conf, especially if you start making changes to it.


cp /etc/X11/xorg.conf /some/safe/place/xorg.conf.backup

Or just copy/paste via the Nautilus file browser.

aheckler
May 3rd, 2008, 04:50 PM
To backup to your home directory:


sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

EDIT: Shoot! Third!

bilbo.san
May 3rd, 2008, 04:53 PM
Thanks !
I just did that, requested my user pass and it did not reported anything, I mean, I dont know, no saved file but no errors either... was it successful?

b.

aheckler
May 3rd, 2008, 04:55 PM
Yes, that is normal. It succeeded. To see for yourself, open up the file browser and go to the etc folder, then X11, and there should be a file called xorg.conf as well as a file called xorg.conf.backup.

bilbo.san
May 3rd, 2008, 04:58 PM
GREAT GREAT!!!

Thanks
b.

aktiwers
May 3rd, 2008, 04:59 PM
Thanks !
I just did that, requested my user pass and it did not reported anything, I mean, I dont know, no saved file but no errors either... was it successful?

b.

Yes it was, you can check it by typing:

ls /etc/X11/

It shows the files in that folder, and the one you backed up should be called "xorg.conf.backup".

The command means:
sudo = gives you super user rights
cp = copy
/etc/X11/xorg.conf = the file you want to copy
/etc/X11/xorg.conf.backup = where you want to copy it.

So to reverce back to your backup you could do like this:

sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf

bilbo.san
May 3rd, 2008, 05:04 PM
Yes it was, you can check it by typing:

ls /etc/X11/It shows the files in that folder, and the one you backed up should be called "xorg.conf.backup".

The command means:
sudo = gives you super user rights
cp = copy
/etc/X11/xorg.conf = the file you want to copy
/etc/X11/xorg.conf.backup = where you want to copy it.

So to reverce back to your backup you could do like this:

sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf

Hey,
This is great info... it is good to know what's that mean, I was actually looking for a manual or something to help understand these coding.

Thank you!

aheckler
May 3rd, 2008, 05:05 PM
Hey,
This is great info... it is good to know what's that mean, I was actually looking for a manual or something to help understand these coding.

Thank you!

https://help.ubuntu.com/community/UsingTheTerminal ;)