LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2009, 11:00 PM   #1
pensivepanda
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Exclamation Messed up my Desktop D:


Ok I did somthing weird and have no clue what i did wrong i'm using Ubuntu Wubi version 9.04 and I need to know is there any way I can get ubuntu back to default settings through the terminal or by so other means. So that I don't have to reinstall ubuntu.....

Thanks so much, Ian ;D
 
Old 08-27-2009, 11:11 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
I don't understand what you mean by "Desktop D:". Please indicate what problems you are having and what you changed before the problems.
Given a time frame to work with, you could check files in ~/.gnome2 and ~/.config to determine which files were altered.
e.g.
find ~/.gnome2 ~/.config -ctime -3
 
Old 08-27-2009, 11:13 PM   #3
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
If it's just desktop settings and program settings the easiest way to do that is this in /home/<user> or 'cd ~/':

rm .* -R

If you have Wine installed and any programs inside I would severly suggest you rename the wine directory.... such as:

mv .wine wine -R

That might be correct? That will force all the desktop settings to the default.

You could also just do it folder by folder, I'd start with removing .config and any folder that is named like your WM, such as if you use gnome get rid of .folder with gnome in it. This is a very ugly way of doing it I know, but it's very easy to understand and shouldn't remove anything that you need.

Last edited by mushroomboy; 08-27-2009 at 11:14 PM.
 
Old 08-27-2009, 11:34 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Deleting all hidden directories in the $HOME directory is a bit of overkill, and almost as drastic as reinstalling. Renaming ~/.gnome2 and ~/.config would be less drastic.

Some other things to look for are files owned by root. If you run a gui program as root, it could have altered a config file or log file, making it unreadable. These could be located in /tmp/ as well. If there was a runaway application that caused the .xsession-errors file to grow in size, filling available disk space, that can prevent logging in to Gnome or KDE.

After making some changes, such as hostname, you need to log out and log in again. Some other changes such as to group membership or the sudoers configuration can require a restart. Orphaned pid files in /var/run can prevent programs from starting. A kernel upgrade requires a restart.
Removing all files from /tmp/ often can help.
 
Old 08-27-2009, 11:35 PM   #5
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
how about sudo apt-get remove ubuntu-desktop and reinstalling it again.
 
Old 08-27-2009, 11:46 PM   #6
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
Quote:
Originally Posted by kdelover View Post
how about sudo apt-get remove ubuntu-desktop and reinstalling it again.
you would have to do purge, but then that might not remove the user's files just the config files for the system. jschiwal is right though, .gnome2 and .config could just be renamed.
 
  


Reply

Tags
default


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I messed up - The Desktop Disappeared PLEASE HELP kai_summers Linux - Newbie 1 11-07-2007 10:03 AM
Messed up my desktop. Need to reinstall compiz and desktop effect jobbe Linux - Software 2 09-20-2007 02:35 AM
HELP I messed up my GUI/Desktop in Dreamlinux linuxwise Linux - Newbie 2 08-29-2007 10:04 AM
Xorg very messed up. Cannot access desktop. xTheLostx Ubuntu 6 09-06-2006 03:31 PM
Help! XFCE messed up desktop... desperate_penguin Linux - Software 6 12-01-2005 03:04 AM


All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration