LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to avoid warning with serviceconf command? (https://www.linuxquestions.org/questions/linux-general-1/how-to-avoid-warning-with-serviceconf-command-834885/)

pankaj songire 09-28-2010 01:27 AM

How to avoid warning with serviceconf command?
 
I have execute following command and got the following warning.
How I can resolve this?

[root@sina0012 /]# serviceconf
No display information -- gtk_init not called

Gtk-WARNING **: cannot open display:

xeleema 09-29-2010 09:59 AM

Greetingz!

The serviceconf command is a GUI command, you have to be running an X session (either locally or remotely) in order to use it. It also typically requires root permissions.
Note that in order to run the command while SSH'd into a remote system you will need;

1) To have an X server on your local system "listening"
2) Have the "DISPLAY=" environment varible set to "DISPLAY=your.ip.address.here:0.0"
3) Use "sudo" to run the serviceconf command.

Have fun!


All times are GMT -5. The time now is 03:18 PM.