LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 12-22-2011, 12:17 AM   #1
mediumrare
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Rep: Reputation: Disabled
synaptic starts from kmenu but not from root konsole (and other stuff)


I would appreciate help in understanding and fixing what I have done wrong. I have tried to keep this as short as possible so maybe I have left out important stuff. More info can be provided, please ask. Thanks in advance for reading and any suggestions.

Background:
Not sure of the details, but something(s) went awry before/during/after setting things up (loosely following http://techpatterns.com/forums/about1435.html) to be able to run firefox aurora instead of iceweasel on Debian. Some files were deleted as a result of an apt-get session and KDE would no longer run - that was fixed. Some packages from experimental were installed. Other things which I no longer remember also happened.

I think the best place for me to start might be if I could figure out why synaptic starts from the kmenu but gparted does not. But maybe not. Info about other programs is for context. Sorry if this is not the right place for this or if it's faq and solved, I did look. Anyway....

--------
Synaptic 0.75.3 DOES start from Kmenu BUT
omega:/home/rtq# synaptic
No protocol specified

(synaptic:5521): Gtk-WARNING **: cannot open display: :0
---------
---------
Gparted 0.10.0-1 DOES NOT start from Kmenu (no output at all that I could see), and
omega:/home/rtq# gparted
No protocol specified

(gpartedbin:5939): Gtk-WARNING **: cannot open display: :0
--------
--------
Firefox DOES NOT start from Kmenu (no output at all that I could see), and
omega:/home/rtq# firefox
No protocol specified
No protocol specified
No protocol specified
Error: cannot open display: :0

BUT

omega:/home/rtq# firefox -help
Usage: firefox [ options ... ] [URL]
where options include:

X11 options
<snippage>

so there is some life in firefox. Also, firefox will start and run normally in some circumstances not specified here for the sake of brevity.
--------
--------
Installed Versions and system info:
kdebase-bin 4:4.6.5-1
kdebase-workspace 4:4.6.5-4
xorg 1:7.6+10
X11-common 1:7.7+10
libX11-6 2:1.4.4-4
~$ cat /etc/issue
Debian GNU/Linux wheezy/sid \n \l

~$ uname -a
Linux omega 3.1.0-1-686-pae #1 SMP Sun Dec 11 20:40:16 UTC 2011 i686 GNU/Linux

~$ firefox -v
Mozilla Firefox 10.0a2
 
Old 12-22-2011, 09:58 AM   #2
rizzy
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 283

Rep: Reputation: 65
have you tried running programs with kdesu or kdesudo? i.e. kdesu synaptic
 
1 members found this post helpful.
Old 12-29-2011, 08:37 PM   #3
mediumrare
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Update:

No, I haven't. I might at some point. But, as I mentioned, firefox also will only run at least some of the time and only as root. I am reluctant routinely to connect firefox as root to the net.

This is partly solved. (Also I have done some apt-get updates so some of the above version numbers may have changed.)

Re gparted, this works:
rtq@omega:~$ su-to-root -X -c /usr/sbin/gparted

Re firefox this works:
rtq@omega:~$ su-to-root -X -c /opt/firefox/firefox

But, as I said, I prefer not to run firefox as root. When I try as not root I get the following:
rtq@omega:~$ firefox
rtq@omega:~$

omega:/home/rtq# firefox
No protocol specified
No protocol specified
No protocol specified
Error: cannot open display: :0

omega:/home/rtq# firefox -v
Mozilla Firefox 11.0a2
No protocol specified

Btw, I did stfw for "Error: cannot open display: :0" among other things. What I found that seems to work (such as running startx as root) does not seem to allow me to run firefox as an unprivileged user.

For example, this works:
rtq@omega:~$ xhost local:rtq
non-network local connections being added to access control list
omega:/home/rtq# firefox

Unfortunately, it still requires running firefox as root.

I have also rtfm, but maybe not the right stuff.

Help requested and appreciated.
 
Old 12-31-2011, 02:03 PM   #4
mediumrare
LQ Newbie
 
Registered: Dec 2011
Posts: 7

Original Poster
Rep: Reputation: Disabled
Ok, because gparted and synaptic both work, I'm going to mark this solved. Thanks to rizzy for his/hercomment and to others for reading.

I may start another thread for the firefox problem (which is still not resolved) after the new year.

Best wishes to all for happiness, health and honest prosperity in 2012.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I start my laptop Konsole on Linux 9.04 starts fullscreen and asks me to log in Jamesscn Linux - Newbie 3 06-28-2009 12:38 PM
opensuse11.0: konsole only starts in root mode Sjonnie48 Suse/Novell 3 12-07-2008 01:50 AM
Two Fluxbox Versions - Root starts newest,User starts oldest fortezza Linux - Software 1 05-21-2006 02:17 AM
Synaptic stuff canyon289 Linux - Software 3 07-11-2005 02:25 AM
Synaptic wants to remove all my stuff Sammy Jenkis Linux - Newbie 0 09-12-2003 02:51 PM


All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration