LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hello,

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
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,010

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
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
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

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

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

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

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

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

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

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
schedar
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 PM.

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