Jump to content

Problems starting apps from the command-line


Recommended Posts

Btw, I'm using Debian, though I don't think that would change anything here. If you want to move the topic that's fine by me.

 

Every time I try to start Firefox, Thunderbird, or any app that i start from konsole (I apt-getted them), I get the following error:

Xlib: connection to ":0.0" refused by server

Xlib: Invalid MIT-MAGIC-COOKIE-1 key

 

(firefox-bin:2815): Gtk-WARNING **: cannot open display:

 

Doing some googling, it appears that using xhost +username or xhost +hostname (I assume that's the hostname you gave during install, right?) should fix it. I have tried this (as root as well) with X both not running and running, and it didn't seem to fix it. If I run "startx" it works fine. Not sure why it wouldn't be running that anyway though...

 

When I installed Debian, I installed it with a minimal install, only installing the bare necessities of what I needed at the time, hoping to avoid bloat. Just wondering if a package could be missing or something.

 

Thanks all!

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Yeah, surely enough there are GTK2 libs missing... or maybe libstdc- something.

If you have some debugger installed (strace or whatever) you can try running Firefox thru the debugger- it will give a better view about what's missing.

Edited by scarecrow
Link to comment
Share on other sites

Thanks all. I've got it working by installing libstdc++6. However, I now have one other problem, which is with display managers. If I start xdm, it will always prompt me for a username and password, however, since I'm the only one using the computer, I want auto-login. So I resort to kdm.

 

When I start kdm, even though I have it all configured to auto-login and all (as well as using dpkg-reconfigure to make sure it's starting kdm and not xdm), all it gives me is a little console prompt in a white box (a screenshot is included). If I type startkde it works like normal, but I have to keep the box open or KDE will close. What am I doing wrong with the kdm config?

, or am I doing anything wrong at all?

 

Just thought it might be related :).

post-8974-1123201844_thumb.jpg

Edited by Aomighty
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...