Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 802
  • Last Modified:

Run Centos Linux in GUI

I am trying to Run Centos in GUI mode.
After doing some research, I found that I need to do some changes in Inittab file.
https://www.centos.org/docs/5/html/5.1/Installation_Guide/ch14s04s02.html

however my Inittab file looks like the one in the screenshot below. how can I change it to boot in Gui mode ?

I have centos release 7.0
Thanks
centos

Apparently even after I changed it , it did not boot to GUI.

ce
I changed it to this and did not boot in Gui
ce
0
jskfan
Asked:
jskfan
  • 7
  • 5
  • 4
9 Solutions
 
SandyCommented:
do you have KDE/GNOME installed on your system ? if not then runlevel 5 won't work for you.

TY/SA
0
 
Seth SimmonsSr. Systems AdministratorCommented:
read the first line of that file...

"inittab is no longer used when using systemd"

systemctl set-default graphical.target changes the run level in RHEL/CentOS 7

the documentation you are referring to is for CentOS 5 which does apply there; it doesn't apply here to 7
0
 
jskfanAuthor Commented:
So how do I run Gui in Centos 7.0 ?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Seth SimmonsSr. Systems AdministratorCommented:
package install

yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

gui at startup

ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
0
 
SandyCommented:
Agree with @Seth Simmons

Ty/SA
0
 
jskfanAuthor Commented:
when I run :
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

I get :
gr
0
 
Seth SimmonsSr. Systems AdministratorCommented:
looks like you have DNS issue you need to fix first
0
 
jskfanAuthor Commented:
this is a virtual machine on my laptop.
I have VMware workstation installed on my laptop, and have installed Centos 7.0, but I could not run it into GUI mode...
I am not sure what kind of DNS issue, this could be ??
0
 
SandyCommented:
The last screenshot you posted is showing that when you are trying to install GUI pkgs on your system. It is unable to connect with internet due to name resolution failure so...

1. Check /etc/resolve.conf and correct the dns config.. In case you don't have in-house dns then use 8.8.8.8 and 4.2.2.2 as global dns.

2. Install GUI pkgs

3. modify default runlevel config.

TY/SA
0
 
jskfanAuthor Commented:
There is Resolv.conf file under etc directory, but it is empty.
0
 
Seth SimmonsSr. Systems AdministratorCommented:
try this (replace my-eth1 with the device name):

nmcli con mod my-eth1 ipv4.dns "8.8.8.8 8.8.4.4"
0
 
jskfanAuthor Commented:
I am not sure if I have eth0.
I run ifconfig , I get command not found

well I typed your command above in resolv.conf, assuming I have etho. However I still cannot boot to GUI
res
0
 
jskfanAuthor Commented:
res
0
 
SandyCommented:
in resolve.conf

nameserver 4.2.2.2
nameserver 8.8.8.8
0
 
Seth SimmonsSr. Systems AdministratorCommented:
nmcli is a command; the IP addresses are separated by a space "8.8.8.8 8.8.4.4"
haven't worked with RHEL 7 too heavily so not sure if manually editing that file will be overwritten on reboot
0
 
jskfanAuthor Commented:
Thank you Guys...
I will check it later
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 7
  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now