Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't run Guarddog v2.6.0 in Gnome v2.30?

18 views
Skip to first unread message

Ant

unread,
Nov 29, 2011, 12:20:53 AM11/29/11
to
Hi.

A few days ago, I installed a new clean Debian stable since my old one
from 2004 was badly shaped. I am still trying to configure it up like my
old one from scratch.

How do I run Guarddog v2.6.0 with root/sudo access in Gnome v2.3 since I
don't like KDE v4.4.3 (currently installed too)? I can run Guarddog
without problems if I use KDE and it even asks my root/sudo password.

I noticed running Guarddog as root/sudo in Terminal in Gnome shows:
# guarddog
No protocol specified
guarddog: cannot connect to X server :0.0

I have no problems running other KDE programs like kmail, kruler, etc.
in Gnome though.

FYI, I use Guarddog because it is easy to configure my iptables. ;)

Thank you in advance. :)
--
"The life of an ant and that of my child should be granted equal
consideration." --Michael W. Fox, Vice President, The Human Society of
the United States, The Inhumane Society, New York, 1990.
/\___/\ Ant @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / If crediting, then use Ant nickname and AQFL URL/link.
( ) If e-mailing, then axe ANT from its address if needed.
Ant is currently not listening to any songs on this computer.

Geoff Clements

unread,
Nov 29, 2011, 4:00:22 PM11/29/11
to
Ant wrote:

> Hi.
>
> A few days ago, I installed a new clean Debian stable since my old one
> from 2004 was badly shaped. I am still trying to configure it up like my
> old one from scratch.
>
> How do I run Guarddog v2.6.0 with root/sudo access in Gnome v2.3 since I
> don't like KDE v4.4.3 (currently installed too)? I can run Guarddog
> without problems if I use KDE and it even asks my root/sudo password.
>
> I noticed running Guarddog as root/sudo in Terminal in Gnome shows:
> # guarddog
> No protocol specified
> guarddog: cannot connect to X server :0.0
>
> I have no problems running other KDE programs like kmail, kruler, etc.
> in Gnome though.
>
> FYI, I use Guarddog because it is easy to configure my iptables. ;)
>
> Thank you in advance. :)

The problem is caused by X not allowing any connection to the server other
than your normal user.

As the normal user try:
$ xhost +local:

then run Guarddog as root. When you have finished run
$ xhost -local:

I tried Guarddog a few years back and it caused me problems (can't remember
what they were though). These days I use firehol which has worked well for
years with no gui problems! However the lack of IPv6 support is likely to
send me to something else, probably shorewall.

--
Geoff

J G Miller

unread,
Nov 29, 2011, 5:17:09 PM11/29/11
to
On Tuesday, Novenber 29th, 2011, at 21:00:22h +0000, Geoff Clements suggested:

> As the normal user try:
> $ xhost +local:

Or even better use gksudo.

QUOTE

gksu is a frontend to su and gksudo is a frontend to sudo.
Their primary purpose is to run graphical commands that need
root without the need to run an X terminal emulator and
using su directly.

UNQUOTE

Ant

unread,
Dec 1, 2011, 6:12:16 PM12/1/11
to
I will try that later. Hmm, maybe it is time to replace Guarddog since I
have been using it to configure my firewall throuh GUI.
--
Quote of the Week: "Stir up an ant's nest." --unknown
/\___/\ Ant @ http://antfarm.home.dhs.org (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |
\ _ / Please nuke ANT if replying by e-mail. If crediting,
( ) then please kindly use Ant nickname and AQFL URL/link.

Ant

unread,
Dec 3, 2011, 3:22:38 AM12/3/11
to
On 12/1/2011 3:12 PM PT, Ant typed:

>> The problem is caused by X not allowing any connection to the server other
>> than your normal user.
>
>> As the normal user try:
>> $ xhost +local:
>
>> then run Guarddog as root. When you have finished run
>> $ xhost -local:
>
>> I tried Guarddog a few years back and it caused me problems (can't remember
>> what they were though). These days I use firehol which has worked well for
>> years with no gui problems! However the lack of IPv6 support is likely to
>> send me to something else, probably shorewall.
>
> I will try that later. Hmm, maybe it is time to replace Guarddog since I
> have been using it to configure my firewall throuh GUI.

Perfect. It worked. I forgot to mention that running Guarddog as a
regular user (no su/root) had no problems.
--
"Even an ant can hurt an elephant." --Proverb
/\___/\ Ant @ http://antfarm.ma.cx (Personal Web Site)
/ /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
| |o o| |

Ant

unread,
Dec 3, 2011, 3:46:09 AM12/3/11
to
On Nov 29, 2:17 pm, J G Miller <mil...@yoyo.ORG> wrote:
>
> > As the normal user try:
> > $ xhost +local:
>
> Or even better usegksudo.
>
> QUOTE
>
>  gksu  is a frontend to su andgksudois a frontend to sudo.
>  Their primary purpose is to run graphical commands that need
>  root  without  the need to run an X terminal emulator and
>  using su directly.
>
> UNQUOTE

Gksudo seems to crashes for me:

$ gksudo
(gksudo:13587): GLib-CRITICAL **: g_str_has_prefix: assertion `str !=
NULL' failed
0 new messages