You are not logged in.

#1 2009-02-23 12:28:55

somethingnew
Member
Registered: 2009-02-19
Posts: 3

ettercap - no NIC & GTK+ failed to initialize. Is X running? [SOLVED]

Hi All,

Sorry if this has been posted a million times before!

Im new to linux and have managed to stumble my way through installation, config etc, but i've got stuck with ettercap.

When i run ettercap as a non root user i can't select an interface. So i thought i would run it as root but the gui wont even load.

below is the output from when I ran ettercap as root.

-------------------------------------------------------------------
bash-3.2# ettercap -G

ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA

GTK support not compiled in ettercap

bash-3.2# ettercap-gtk -G

ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA

(process:2497): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
No protocol specified

GTK+ failed to initialize. Is X running?
-------------------------------------------------------------------

If it helps im running the latest version of arch and kde.

Can someone point me in the right direction to fix this?

Last edited by somethingnew (2009-02-23 14:49:28)

Offline

#2 2009-02-23 13:45:37

xsytry
Member
From: Poznan, Poland
Registered: 2008-07-08
Posts: 21

Re: ettercap - no NIC & GTK+ failed to initialize. Is X running? [SOLVED]

Can you run any other app as root? I mean, is it only ettercap that fails to start as root or is it some general problem?
On my machine it works flawlessly when I run it via sudo.

Last edited by xsytry (2009-02-23 13:51:30)


Do, or do not. There is no try. [Yoda]

Offline

#3 2009-02-23 14:05:31

somethingnew
Member
Registered: 2009-02-19
Posts: 3

Re: ettercap - no NIC & GTK+ failed to initialize. Is X running? [SOLVED]

it look like its more than just ettercap

[user@arch ~]$ su
Password:
bash-3.2# konqueror
No protocol specified
konqueror: cannot connect to X server :0.0

but runs from cli as non su user

Last edited by somethingnew (2009-02-23 14:08:51)

Offline

#4 2009-02-23 14:51:28

somethingnew
Member
Registered: 2009-02-19
Posts: 3

Re: ettercap - no NIC & GTK+ failed to initialize. Is X running? [SOLVED]

sudo ettercap-gtk --gtk worked but su to root didnt. to me thats strange but its working :-)

thank for your help xsytry

Last edited by somethingnew (2009-02-23 15:08:41)

Offline

Board footer

Powered by FluxBB