Originally posted by marghorp
I have killed GNOME. I have played with permissions and killed GNOME (it doesnt start anymore). So I want to switch to KDE. How can I do that using only command line. GUI doesn't work Or do I have to reinstall Linux?
You didn't specify which distribution, but from your user information, I'll assume you're using Red Hat. What I'd do, personally, if something got really messed up is this:
First I'd locate all the hidden files and directories associated with GNOME in my home directory, and I'd completely remove them. Then I'd try logging into GNOME and see if I could get lucky and have that fix the problem. If yes, then problem solved. Just be careful when configuring next time.
If that fails, the next thing to do would be to remove all the packages that have to do with GNOME. This would be a bit trickier and will require some understanding and knowledge. With the help of a package manager, it might be possible to locate them. (I could do this, but I have the experience). Once you get rid of all the packages, then install them again using either the installation CDs or the Red Hat FTP site.
Last ditch alternative is to reinstall. Again, I'd start simple and work up. First, I'd try to install/upgrade over what's already there by inserting the CDs and installing them again. If you're familiar with the command line, by explicitly using rpm with the -Uvh flags, sometimes you can install and upgrade software. IF nothing is different, it doesn't hurt anything, but if you have new sofware, it installs over existing software. I avoid using the force and override flags unless I have no other workarounds left.
If all of that fails, I rebuild the entire disk partition and reinstall the software. I rarely have to go to that extreme unless I'm testing something and I want to install or reinstall anyway.