I have been using the minimal iso (CentOS-6.0-x86_64-minimal.iso) to install CentOS 6. I wanted to add a GUI to my vm, but I could not find easy documentation showing how to add a GUI, or Gnome in this case, to a CentOS 6 minimal install. I was not looking for the smallest X windows install, I was just trying to get the Desktop to function like it would as if I installed from the full DVD.
There are a lot of results of how to do this, but things have been renamed in CentOS 6, so that made it more difficult to figure out. Also, there are “Short Names” and I am assuming they are called “Long Names” associated with a yum groupinstall, which added to my confusion.
To add Gnome/GUI to a minimal CentOS 6 install run (short name version):
yum groupinstall basic-desktop desktop-platform x11 fonts
And the “long name” version:
yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"
Hope that helps someone or at least help me to remember.
I was looking for this and found this very helpful. Thank you.
Thanks, it helped a lot π
It helped me. Thank you for the notes!
This is exactly what I was looking for.
I forgot to check the X window when installing CentOS 6 from the ISO. Some posts said I should run: yum groupinstall “Desktop” “X Window System”. I did that, but I did not get any fonts after startx. Now I know I was missing something in the command.
I wondered how to do the same using the ISO. Would you mind sharing that also? Thanks much!
I am not sure how to do this with the ISO, I always just install from the minimal ISO, so I don’t ever have the X Windows bits on the ISO.
Thanks for taking the time to comment!
OMG, thank you so much, this was exactly what I was looking for.
Glad I could be of assistance! Thanks for taking the time to comment.
Thanks!!!
I was trying to set up minimal X windows on CentOS, and your tips greatly helped. Thanks!
Glad I could help! Thanks for taking the time to comment.
very helpful, worked perfectly.
You need to add following line in /etc/inittab file after installing Desktop Environment & Xorg packages.
exec /etc/X11/prefdm -nodaemon
Thanks!
Nirmal Pathak > Acually just changing the default runlevel from 3 to 5 in the inittab should suffice.
Once the minimal installation is done & then you are installing the Deskstop Packages changing Default runlevel from 3 to 5 does not start Xorg for GUI hence we need to add “exec /etc/X11/prefdm -nodaemon” in /etc/inittab file. π
Thanks!! Great help!
thanks a lot.!!!
Thanks, this is exactly what I was looking for!
Thanks for talking the time to comment. Glad I could help.
Thanks for the guidance. It worked nicely.
Any idea what would be the command(s) to remove GUI support?
Thanks in advance..
I usually don’t remove the GUI, I just change the init state to 3. Actually I usually leave it at three and run startx when I need a GUI.
Thanks..
thanks
Very helpful for installing the Gnome desktop. I am an avid supporter of the CentOS project, so I need to install the basic server without the desktop. However, I am currently testing a restore of email and needed to add a desktop and Thunderbird.
Thanks again!
Its very helpful , Thanks a lot π
Super ..Great help!!!!!!!!!!!!!!!!!Nice information ….
Gracias por compartir!!… Muy util!… Justo lo que buscaba
Thanks a lot!
Thanks for the tip !
Precise info!
Cheers
excellent post great work really appreciate
Thanks! This helped.
I installed centos 6.2 x86_64 minimal gnome and i want to switch to full gnome but don’t know how. Do you have any solution for this ?
I hardly ever use a GUI, so I don’t know. Sorry.
Hi,
I installed centos 6.3 basic server on a Fujitsu Laptop lifebook T4215. I could not install using full install so i installed using basic Video driver. Later I downloaded drivers from Intel related to GM945 graphic processor hoping that it would take care of display issue. Then i added as explained in this thread gnome desktop and modified the /inittab file as well. The display just hangs and I tried CTL+ALT+F6 to switch to CLI mode but nothing happens. Looks like I have to reinstall again. Could any of you suggest how can I go back to command mode again with out reinstalling everything again. Any help would be greatly appreciated.
Thanks in advance.
S V Prasad
If you hit Ctrl + Alt + F1, that should take you back to the text console. Log in, change your init state back to 3. Reboot. Then make sure your gnome session works with startx. Will that work? Not sure about the different drivers, but if it works with startx, it should work with init state 5. I think.
Hope that helps.
I tried hitting , (comma) as suggested by you but still I can see blank screen only. Am I missing something. When should I press the “comma key”. After I boot the system it lists windows or Centos. I select centos and booting process starts. I can see some colour bands wirh centos then everything goes blank and there is no way I could do anything after that. No key works. I have to only power down to start again. I am not clear when should i press the suggested key. Could you please bit more clear. Thanks for your help.
Sorry, WordPress hid my “Ctrl + Alt + F1 “.
And you hit Ctrl + Alt + F1 after the system is done booting and it goes blank. This should show you the console loggin, where you can login and change your init state back to 3. Then reboot.
After that log in and try startx. This should allow you to troubleshoot X. Hope that helps.
Thanks Murphy but unfortunately still it is not coming out. May be I have to reinstall everything again. I fear may be the display driver has some problem.
Sorry I wasn’t able to help. I am sure you have re-installed by now, but the only other thing I could think fo was to ssh into the box from another machine and chage the initab back to 3 remotely.
I did reinstall everything and updated video drivers. Now everything is working fine. Thanks for your support.
Worked like a charm! GJDM
Thanks for taking the time to comment. It always makes my day!
Thanks a lot. Help me a lot.
Thank-you * inifinity
Yup, helped me too π
Throwing this into Evernote, so I will always have it handy. Thanks!
Thank you very much. I was setting up VMware Fusion on my Mac and installed CentOS 6 minimal and then installed gnome-desktop and gdm but the login screen was just blocks or whatever those special characters are. Not sure which of the groupinstall was necessary, don’t care, it works.
Thank you