Restore Ubuntu

Linux OS Topics
Post Reply
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Restore Ubuntu

Post by Nipuna » Sat May 29, 2010 3:02 pm

I am Still using Ubuntu 9.10 and I have Ubuntu 10.04 but I didn't install Ubuntu 10.04. My Problem is this,

I tried to Configure Xorg.conf file after that I can't log into Ubuntu. No GUI is coming Only this is coming

" Log into nipuna@desktop: "

How to Restore Ubuntu to Get back to normal?

Thanks
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Restore Ubuntu

Post by Neo » Mon May 31, 2010 12:33 am

Use following commands.
  1. Change current directory to X11

    Code: Select all

    cd /etc/X11
  2. List files starting with xorg.conf

    Code: Select all

    ls xorg.*
  3. Notice your latest backup file in the format xorg.conf.xxxxxxx (In place of xxxxxxx, you will get the date information)
  4. Rename the current xorg.conf to something else

    Code: Select all

    sudo mv xorg.conf myxorg.conf
  5. Restore your best backup file

    Code: Select all

    sudo cp xorg.conf.xxxxxxx xorg.conf
  6. Now, restart your machine....that's it
Next time, before you change a system file, keep a backup as a practice ;)
User avatar
Nipuna
Moderator
Moderator
Posts: 2729
Joined: Mon Jan 04, 2010 8:02 pm
Location: Deraniyagala,SRI LANKA

Re: Restore Ubuntu

Post by Nipuna » Mon May 31, 2010 9:40 am

Thanks. I will Do Try.

Next time i will back up.

Thanks
Post Reply

Return to “Linux”