LinuxQuestions.org
Review your favorite Linux distribution.
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 06-02-2004, 07:23 AM   #1
sibu_rajappan
LQ Newbie
 
Registered: May 2004
Location: india
Posts: 23

Rep: Reputation: 15
Angry my gnome absolutely vanished


at first my gnome crashed and had probs all over but a friend told me to delete the .gnome* , .metacity* , .nautilis* from the root directory........
(chii-chan) i just took it off and oops nothing works now..............i restarted the gui by ctrl+alt+backspace

but it goes blank (black) and nothing happens all other functions works properly................

if i restart the system then gui comes up but none of my session works............

an error is shown and the whole thing goes to blank...............

pls pls pls pls help.................i dont have a gui.....................

all my files are deleted........................................(above mentioned)

now what will i do??????????????
if u are there chii-chan were u playing games???????

i am sorry if i was not polite..............pls help............
 
Old 06-02-2004, 08:03 AM   #2
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
so you are able to get to a working command prompt?
 
Old 06-02-2004, 08:13 AM   #3
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
Can you tell us what the error is before the screen goes blank? Not sure if I can help, but it is somewhere to start.

Bill
 
Old 06-02-2004, 09:32 AM   #4
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
Hi.

What do you mean by root directory? Is it your home directory? If you followed my instruction carefully, there shouldn't be any problem because deleting settings for gnome in your home directory won't affect the gnome installation itself, but would rather reset everything to its default. It happened to me lots of time when I messed up my gnome settings that I have to remove all those settings (but now I'm using WindowMaker instead).

Suppose you can go to command prompt, do exactly the following:

su - [enter your root passowrd]

vi /etc/inittab

press 'i' [it will change into insert mode]

go to "id:5:initdefault:"

change the "5" to "3"

press ':' followed by 'wq'

reboot

You will be in text mode boot.

After login, type the following commands:

cd ~

rm -rf .nautilus .metacity .gnome* gconf*

startx

I hope this time it will help. I didn't mean to play any game with you, this is exactly what I did when I had problem with gnome.
 
Old 06-04-2004, 12:12 AM   #5
sibu_rajappan
LQ Newbie
 
Registered: May 2004
Location: india
Posts: 23

Original Poster
Rep: Reputation: 15
i already deleted the file in the /usr/share/apps/switches/gnome-session
this is the error that is shown wen i restart my gnome..........this file cannot be found............wat is thatt? i actaully gave the same thing u told now........

this file is missing in that directory..........
pls help
 
Old 06-04-2004, 12:21 AM   #6
sibu_rajappan
LQ Newbie
 
Registered: May 2004
Location: india
Posts: 23

Original Poster
Rep: Reputation: 15
could u pls tell me a bit of theory of this removal...........actually i have the same kind of files in both the /root and the /etc directories..........actually are config files kept in the /etc directory?????

pls tell me the theory...................!!!!!!1
 
Old 06-04-2004, 01:46 AM   #7
chii-chan
Member
 
Registered: Sep 2003
Location: chikyuu (E103N6)
Distribution: Redhat 8.0 (2.4.25-custom), Fedora Core 1 (2.4.30-custom)
Posts: 357

Rep: Reputation: 30
sibu_rajappan.

I NEVER told you to go beyond deleting the mentioned folders in YOUR HOME directory, ie /home/sibu_rajappan directory. If you went that far as to even delete /usr/share/apps/switches/gnome-session, even deleting important files in /etc and even in /root user directories, I'd rather say you reinstall the gnome itself (no, no need to reinstall Linux, this isn't windows). Look for thread on installing rpm files.

The idea behind it, let say you create a new user called 'linux_admirer' with useradd command, in Redhat it will create a new user namely 'linux_admirer' and make a directory 'linux_admirer' under /home directory (so it becomes /home/linux_admirer). If you 'ls' the directory content, there will be no files with the '.' (dot) yet (or at least only one or two files, I think .bashrc and .bash_profile will be there). This is also true for other applications. Then you open your GNOME session for the first time. It would create the folders (the ones that I asked you to delete) and create the default settings for you. Then as you change the GNOMe up to your taste, it would be saved in those directories. Sometimes (or at least for me it often happens), you messed up the settings just like in case you exit the GNOME without properly saving the settings or force reset, usually you will have problem opening your GNOME session. That's when you have to delete all those messed up settings so that it would create a new default one for you. That's the real theory behind it.

But sibu_rajappan, don't be so frustated with trying/playing with different things/settings in Linux, and end up messiong up things, its just the beginning. I messed up my Linux many times before I get used to it. Good Luck.

%%%%%%%%%%%%%%%%%%%%%%%%
Addition:
If you still have the files mentioned (i.e. .nautilus .metacity .gconf* .gnome*) in your /root directory, you can try using it. Copy it to your home directory (assess it first with root account):
Code:
su - [password]

cp -R /root/.nautilus* /root/.metacity* /root/.gnome* /root/.gconf* /home/sibu_rajappan/

cd /home/sibu_rajappan

chown -R sibu_rajappan:sibu_rajappan .metacity* .nautilus* .gnome* .gconf*
Exit root account.

Then try using your account again to start GNOMe session.

May be I misunderstood your post saying that you deleted the files in /root.


Last edited by chii-chan; 06-04-2004 at 01:56 AM.
 
Old 06-04-2004, 01:02 PM   #8
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
I agree with chii-chan on reinstalling Gnome at this point. It sounds like you may have misunderstood where and what to remove. Don't remove anything from the /etc directory. You're right there are a lot of configuration files there and its best to learn about those one at a time. After reinstallation I would clear out the directories that chii-chan mentioned from your home directory to start out with a standard copy of Gnome. When Gnome is first started it will create those directories for you to hold your desktop settings and what not.

Bill
 
Old 06-04-2004, 10:55 PM   #9
sibu_rajappan
LQ Newbie
 
Registered: May 2004
Location: india
Posts: 23

Original Poster
Rep: Reputation: 15
can u help me with reinstalling the gnome...........?????
 
Old 06-05-2004, 09:53 PM   #10
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
There might be a better way of doing this, but here is what I would do. If this were a relatively new system and I haven't done much customization I would backup any data I want to keep and then reinstall Linux (including GNOME) from scratch.

What distribution are you using?

If a lot of customization has been done and I didn't want to screw around with reconfiguring all the work I've already done then I would go for a reinstall of GNOME. Since I'm using Red Hat this would involve using rpm to get the system squared away. I would go through the list of packages that GNOME requires and use rpm -V <package> to verify those packages. Verifying the packages will tell me which ones are missing files or don't match the metadata in the rpm database. Any packages with a descrepancy would be reinstalled. This will take some time to accomplish since Gnome has a large number of packages.

Probably the best place to look for a list of packages that Gnome requires is http://www.gnome.org. For example, the release notes for GNOME 2.6 have a document entitled Installation of the GNOME 2.6 Developer Platform and Desktop. This has a list of packages and most importantly the installation order. If you have another version of GNOME you could probably do a google search for Installation GNOME x.x and come up with the document you need. If not, I'm sure 2.6 would probably be a good guideline. Be sure and let us know how things turn out.

Bill

Last edited by wmakowski; 06-06-2004 at 12:54 AM.
 
Old 06-06-2004, 08:52 AM   #11
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
Quote:
Originally posted by sibu_rajappan
i already deleted the file in the /usr/share/apps/switches/gnome-session
this is the error that is shown wen i restart my gnome..........this file cannot be found............wat is thatt? i actaully gave the same thing u told now........

this file is missing in that directory..........
pls help
Just thought of another option after reading a little more about rpm. Try the command rpm -qf "/usr/share/apps/switches/gnome-session". This should return the name of the package that supplies that file. Then it is a matter of just reinstalling that package. Of course this answer is dependent on rpm being the package manager in the distribution you are using.

Bill
 
  


Reply


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
Absolutely no clue tuananhbirm Mandriva 2 06-05-2005 11:48 AM
Which of these packages do I absolutely need? Can I remove them? Erik_the_Red Ubuntu 3 06-03-2005 01:07 PM
Gnome 2.8.3 mimetypes vanished shade13 Linux - Software 0 03-20-2005 02:55 PM
A MUST READ...absolutely classic. kersten78 General 53 11-12-2004 09:41 AM
absolutely very new 'n stuff...help needed plastiquepony Linux - Newbie 3 11-16-2001 09:21 AM


All times are GMT -5. The time now is 02:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration