Solved

Run Centos Linux in GUI

Posted on 2014-09-10
16
721 Views
Last Modified: 2014-10-01
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
Comment
Question by:jskfan
  • 7
  • 5
  • 4
16 Comments
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 222 total points
ID: 40314535
do you have KDE/GNOME installed on your system ? if not then runlevel 5 won't work for you.

TY/SA
0
 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 278 total points
ID: 40314706
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
 

Author Comment

by:jskfan
ID: 40314910
So how do I run Gui in Centos 7.0 ?
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 278 total points
ID: 40314974
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
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 222 total points
ID: 40315047
Agree with @Seth Simmons

Ty/SA
0
 

Author Comment

by:jskfan
ID: 40316011
when I run :
yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

I get :
gr
0
 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 278 total points
ID: 40316075
looks like you have DNS issue you need to fix first
0
 

Author Comment

by:jskfan
ID: 40317987
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
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 222 total points
ID: 40318528
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
 

Author Comment

by:jskfan
ID: 40320811
There is Resolv.conf file under etc directory, but it is empty.
0
 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 278 total points
ID: 40321215
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
 

Author Comment

by:jskfan
ID: 40322986
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
 

Author Comment

by:jskfan
ID: 40322997
res
0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 222 total points
ID: 40323189
in resolve.conf

nameserver 4.2.2.2
nameserver 8.8.8.8
0
 
LVL 34

Accepted Solution

by:
Seth Simmons earned 278 total points
ID: 40323437
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
 

Author Closing Comment

by:jskfan
ID: 40356120
Thank you Guys...
I will check it later
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
winscp 000webhost.com 6 71
EXCHANGE. LINUX, SYMANTEC MESSAGING GATEWAY 2 37
Linux FTP Error 5 32
Remove Resilio directory from Netgear ReadyNAS 212 via SSH. 2 46
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question