Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently reinstalled Redhat 7.1. But i did not enable graghical login. Now when i login using text and startx i only get KDE. how do i select gnome to start? and how do enable graphical login?
To enable GUI login, you need to set your default runlevel to 5. To do this, open up the file /etc/inittab and change the line that looks like this:
id:3:initdefault:
to this
id:5:initdefault:
There should be an explanation of the different runlevels immediately above this line.
How to startup in Gnome? Well, if you've enabled the GUI login, then you should be presented with a little selector box, so that's not a problem. If, however, you choose to stay with text login, then you need to:
edit/create a file in your home directory called .xinitrc (all in small letters, with a dot at the beginning) and add exec startgnome to it. If you want to have various programs run when you type startx, then you put them in the file. My .xinitrc file looks like this:
It changes the background images, it runs gkrellm (the monitoring thing), it runs an organiser, it runs a text console, it runs xmms, and then starts sawfish. The & symbol means 'continue to next line even if program hasn't finished yet', so all the things are run, and then sf, so that when I quit sf, they all quit. The # is a comment, so if I want, I can choose between any of the other window managers simply by editing the file.
an even easier way to switch the default desktop al the command line is to type switchdesk gnome, and they already had a good way to change the login to graphical, another way to do that too, though I don't think it is as nice is to just run back thought Xconfigurator one of the questions it asks is about the graphical login.
What is suppose to happen when you type in startx? because when I do it this information comes on the screen but it doesn't change to graghcial. I also tried switchdesk and that didn't work, it asked wich one I wanted and I typed it in but nothing happened.
What information comes on the screen when you type startx? It should launch your desktop environment/window manager. Did you get any errors? You can check by typing at command line less /var/log/XFree86.0.log. To get back to a command line prompt type the letter Q. Please post any error messages or at least the information that came on screen.
When I did startx it told me where to go to report bugs and stuff and it wrote that no screens where found. When I did the /var/log..... one all this information came on the screen half of it I didn't even know what it meant.
Thanks Capt! I knew there was something to that, but never knew the difference.
Miebro, type Xconfigurator as root into command line, per Capt_Caveman. This will get your XFree86 setup going and you should be able to configure it to work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.