[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. |
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. |
That said, you do not need X installed to run X applications remotely.
|
Do you have the firewalld package installed?
Code:
yum list firewalld Code:
systemctl start firewalld ; systemctl enable firewalld |
If this is over remote session, have you tried enabling X forwarding?
Code:
X11Forwarding yes |
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.
|
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. |