LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [Centos7] Unable to run firewall-config (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bcentos7%5D-unable-to-run-firewall-config-4175591143/)

schedar 10-10-2016 03:41 PM

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

jefro 10-10-2016 07:40 PM

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.

Emerson 10-10-2016 08:18 PM

That said, you do not need X installed to run X applications remotely.

JockVSJock 10-11-2016 03:14 PM

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

Bhagyesh 10-11-2016 04:09 PM

If this is over remote session, have you tried enabling X forwarding?

Code:

X11Forwarding yes

c0wb0y 10-11-2016 04:22 PM

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.

schedar 10-18-2016 05:40 AM

Thank you. I was trying to run this without ssh, directly from virtualbox. So the solution was to do just startx.


All times are GMT -5. The time now is 04:34 AM.