Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 10-10-2016, 03:41 PM   #1
LQ Newbie
Registered: Apr 2015
Location: Poland
Distribution: Centos 7
Posts: 16

Rep: Reputation: Disabled
[Centos7] Unable to run firewall-config


I have done from virtualbox console (not putty):

yum groupinstall "x window system"

and then

firewall-config, but I'm not able to start this GUI:

[root@server ~]# firewall-config

** (firewall-config:4581): WARNING **: Could not open X display

(firewall-config:4581): Gtk-WARNING **: cannot open display:
[root@server ~]# xclock
Error: Can't open displ

Can you help me to fix this? I would like to be able to use firewall GUI instead of difficult firewall-cmd tool.
Old 10-10-2016, 07:40 PM   #2
Registered: Mar 2008
Posts: 17,000

Rep: Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513
X windows is a client and server setup. It is unusual that on this case the server is what we consider the client usually.

What it is saying is that you haven't started the correct server or sent it to the correct server either by command line or saved file configuration.

I assume you mean you have a command line install and now want a gui??? Try startx to begin with maybe.
Old 10-10-2016, 08:18 PM   #3
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
That said, you do not need X installed to run X applications remotely.
Old 10-11-2016, 03:14 PM   #4
Senior Member
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,220
Blog Entries: 4

Rep: Reputation: 132Reputation: 132
Do you have the firewalld package installed?

yum list firewalld
If it is, check systemd if its started and enabled:

systemctl start firewalld ; systemctl enable firewalld
Old 10-11-2016, 04:09 PM   #5
Registered: Jul 2009
Posts: 35

Rep: Reputation: 17
If this is over remote session, have you tried enabling X forwarding?

X11Forwarding yes
Old 10-11-2016, 04:22 PM   #6
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
It seems not a remote session, so he needs to run X first. As stated by jefro, startx is a good place to begin with.
Old 10-18-2016, 05:40 AM   #7
LQ Newbie
Registered: Apr 2015
Location: Poland
Distribution: Centos 7
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thank you. I was trying to run this without ssh, directly from virtualbox. So the solution was to do just startx.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOs7: Unable to remount after unmount... fanoflq Linux - Newbie 1 05-26-2016 08:15 AM
is it possible to run system-config-firewall via ssh forward without gnome on server? malayo Linux - Distributions 1 01-15-2012 12:17 AM
I run Fedora 9 and I boot from USB, how I run at startup Firewall and antivirus? gginis Linux - Software 3 06-08-2008 03:19 AM
unable to open firewall-config Baracuda Linux - Security 1 07-29-2004 06:47 PM
Volume control is unable to run correctly. Unable to open audio device '/dev/mixer'. sevenreams Slackware 1 05-16-2003 07:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration