Kanotix - Gtk help

Hey drop us a line about the show. Feel free to ask questions, provide feedback and criticism, or just ramble on about anything your little heart desires.

Moderators: snarkout, Patrick, dann

Post Reply
steve riley
Posts: 38
Joined: Mon Oct 03, 2005 10:42 am

Kanotix - Gtk help

Post by steve riley » Sat Nov 05, 2005 4:30 pm

I'm taking Patrick's recommendation and trying Kanotix. Looks good but I'm having trouble with Synaptic.

(I installed Kanotix once for practice and saw Synpatic. Then I reintalled and could not find Synaptic in the menus any more.)

I downloaded it with apt-get (thanks for the repo thread!) and I have the Synaptic command. However, when I run the command I get:

Gtk-WARNING **: cannot open display:

I looked around for suggestions and tried "xhost +" and then tried apt-get install gnome-common, but still get the same error.

I suspect there is still some Gnome component missing. Please let me know any suggestions!

steve riley
Posts: 38
Joined: Mon Oct 03, 2005 10:42 am

Post by steve riley » Sat Nov 05, 2005 4:45 pm

Got it. I rebooted and found Synaptic in the menus under K>System.

However, I still get the error when I do the synaptic command as root. Why is this?

User avatar
CptnObvious999
Posts: 798
Joined: Fri Jun 03, 2005 7:54 pm
Location: Maryland
Contact:

Post by CptnObvious999 » Sat Nov 05, 2005 4:55 pm

chances are you did this from the command line. when you start a program under the command line as a regular user it should automatically redirect the GUI program to your current X session (assuming you are running the X session as a user and not root...which you damn well should be ;-) ). When you change to the super user in the command line it doesn't like to start GUI programs. You can get around this by running "kdesu yourprogram" or "gksu yourprogram"

Judland
Posts: 1030
Joined: Tue Apr 27, 2004 12:55 pm

Post by Judland » Sun Nov 06, 2005 12:30 am

If you're a regular user under KDE and open up a terminal window and then proceed to "su", instead do "sux", which will give you access to the X-session as superuser.

User avatar
snarkout
Site Admin
Posts: 1342
Joined: Tue Aug 16, 2005 9:35 pm

Post by snarkout » Sun Nov 06, 2005 1:52 am

Also take a look at kdesu, assuming it's in kanotix (I can't imagine why it wouldn't be).

EDIT: Oops, beaten. I didn't read the replies in this thread carefully enough, I guess.
Shared pain is lessened, shared joy is increased; thus do we refute entropy.
--Spider Robinson

steve riley
Posts: 38
Joined: Mon Oct 03, 2005 10:42 am

Post by steve riley » Sun Nov 06, 2005 2:57 pm

Thanks.

sux is there and worked. (I thought maybe that was a joke!)

Out of curiosity I did ps -ef after a fresh reboot and found:

root 3067 2994 0 05:32 ? 00:00:01 /usr/X11R6/bin/X -nolisten tcp -dpi 72 -br :0 vt7 -auth /var/run/xauth/A:0-n5ux6l

root 3078 2994 0 05:32 ? 00:00:00 -:0

user11 3942 3078 0 05:46 ? 00:00:00 /bin/sh /usr/bin/x-session-manager

user11 3975 3942 0 05:46 ? 00:00:00 /usr/bin/ssh-agent x-session-manager

So root starts X but user11 owns the X session.

What is that "-:0" ?

Judland
Posts: 1030
Joined: Tue Apr 27, 2004 12:55 pm

Post by Judland » Sun Nov 06, 2005 5:57 pm

I believe that's an X-session indicator, telling you which virtual desktop the X-session is running on.... i think.

Post Reply