Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
somersetOffline
Post subject: sux and sux dbus-launch not now working?  PostPosted: 09.10.2010, 17:33



Joined: 2010-10-09
Posts: 8

Status: Offline
hi there

I can't now get sux (with or without dbus-launch) to work (like it used to with previous sidux).

I'm using the live dvd aptosid 10 2

example :-

aptosid@aptosid:~$ sux
xauth: creating new authority file /root/.Xauthority
root@aptosid:/home/aptosid# dbus-launch dolphin
No protocol specified
No protocol specified
dolphin: cannot connect to X server :0.0
<unknown>(3965)/: Communication problem with "dolphin" , it probably crashed.
Error message was: "org.freedesktop.DBus.Error.ServiceUnknown" : " "The name org.kde.dolphin was not provided by any .service files" "

root@aptosid:/home/aptosid#

---or---

aptosid@aptosid:~$ sux
xauth: creating new authority file /root/.Xauthority
root@aptosid:/home/aptosid# dolphin
<unknown>(4029)/: KUniqueApplication: Cannot find the D-Bus session server: "/usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
"

<unknown>(4028)/: KUniqueApplication: Pipe closed unexpectedly.

root@aptosid:/home/aptosid#



Can anyone help me how to run dolphin and others as a root user?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
edhunterOffline
Post subject: RE: sux and sux dbus-launch not now working?  PostPosted: 09.10.2010, 17:49



Joined: 2010-08-26
Posts: 16

Status: Offline
try su-to-root -X -c dolphin and/or Alt + F2 and then kdesu dolphin

_________________
My blog
 
 View user's profile Send private message  
Reply with quote Back to top
somersetOffline
Post subject: RE: sux and sux dbus-launch not now working?  PostPosted: 09.10.2010, 18:25



Joined: 2010-10-09
Posts: 8

Status: Offline
Great!!

su-to-root -X -c dolphin and Alt + F2 and then kdesu dolphin

both work!!

Thanks very much for your help and quick reply!
 
 View user's profile Send private message  
Reply with quote Back to top
somersetOffline
Post subject:   PostPosted: 10.10.2010, 11:05



Joined: 2010-10-09
Posts: 8

Status: Offline
!oops

Problem still not solved. (I thougth it was, see previous)

When dolphin opened using " su-to-root -X -c dolphin and/or Alt + F2 and then kdesu dolphin" as advised. I still cannot right click on a text file and edit, say with kwrite.

      Code:
The error is now an error box
- Sorry dolphin -
KDEInit could not launch '/usr/bin/kwrite'.


The same error occurs opening a file from Krusader root-mode.

I'm new to forums so not sure if I should open a new topic or continue?

Thanks again for help and advice.
 
 View user's profile Send private message  
Reply with quote Back to top
blackholeOffline
Post subject:   PostPosted: 10.10.2010, 13:06



Joined: 2010-09-12
Posts: 110

Status: Offline
It happens sometimes. Normally a reboot will fix the problem (longtime bug).
However, in krusader, you can edit without problems hitting F4 (edit).
 
 View user's profile Send private message  
Reply with quote Back to top
somersetOffline
Post subject:   PostPosted: 10.10.2010, 14:19



Joined: 2010-10-09
Posts: 8

Status: Offline
Thankyou edhunter and blackhole for your help and time.

More info.

After dolphin opened using " su-to-root -X -c dolphin" and edit a text file.

error
- Sorry dolphin -
KDEInit could not launch '/usr/bin/kwrite'.

After closing this box the computer runs slow with cpu time constantly at approx 70%.
In System activity viewer there are 4 or 5 greyed out processes constantly flicking on and off. There are several knotify4 and a dbus-daemon, that have constantly changing PID's.

The easiest way to recover cpu is to change runlevel by init 2 and then init 5.

However krusader root-mode and edit with F4 does seem to work, but it is a lot of extra effort just to edit a few text files in root mode.

Thanks again for help.
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject:   PostPosted: 10.10.2010, 19:14



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
you could resort to using mc or mcedit <path>
vi is another possibility but needs some getting-used-to
(some people say vi is a operating system, not an editor) Smile

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject:   PostPosted: 11.10.2010, 11:19



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
somerset,
could you please report your version of sux.
there is a new version out today: 1.0.1-6
could you try that please with kde and gtk apps and report any errors.
i am trying to give useful input to the maintainer.
thxx.

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
somersetOffline
Post subject:   PostPosted: 17.10.2010, 20:04



Joined: 2010-10-09
Posts: 8

Status: Offline
Sorry for delay - I've been offline for a while.

I'm using apttosid 10 2 dvd in 32bit live mode.

sux version is 1.0.1-5

After loading sux 1.0.1-6 with apt-get (i'm in live mode). The result is still the same.

      Code:
aptosid@aptosid:~$ sux
xauth:  creating new authority file /root/.Xauthority
root@aptosid:/home/aptosid# dolphin
<unknown>(28162)/: KUniqueApplication: Cannot find the D-Bus session server:  "/usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
"

<unknown>(28161)/: KUniqueApplication: Pipe closed unexpectedly.

On a friends dual core laptop htop shows both cores shoot up to about 70% after trying to open a text file from root mode "su-to-root -X -c dolphin", but wont launch kwrite.
-error- KDEInit could not launch '/usr/bin/kwrite'

apt-get'ed gedit plus about 40MB dependencies.
From root mode dolphin text file "open with gedit" - Does not open - no error box this time but again cpu both cores shoot up to about 70% until processes killed again.


cheers
somerset
 
 View user's profile Send private message  
Reply with quote Back to top
sx9Offline
Post subject:   PostPosted: 17.10.2010, 23:19



Joined: 2010-09-12
Posts: 219
Location: Wiesbaden,Germany
Status: Offline
I've got the same problem from the beginning I use sidux/aptosid. I can't start an application to open something out of an application like dolphin or konqueror, wich I have started with su rights (sudo, su-to-root, kdesu, sux - it's everytime the same). I always right-klick on an object I want to open with another application, select open with and than select... (I have set the configuration on german so the entrys I have listed here might differ). In the following window you can select the application that should open your document - enter kdesu [application].
It normally works, so I think the, for example, kdesu dolphin accesses it's fixed configuration (here a .desktop file somewhere around ~/.kde/…/servicemenus) wich tells itto execute the standard kwrite, not the root-kwrite, but dolphin is (partly) in root-mode so KDEInit and klaunch are getting a bit confused. I think that the real problem is in sudo on wich kdesu and sux are based on (not really, but theey all use the same parts like the sudoers-list and have similar libraries) that just simulates a root environment, but not completely. Another ugly thing can happen when using kdesu/sudo/sux: If you start a programm like dolphin the first time, but you do this with root-rights, the configuration is saved in your home environment, but is owned by root, because sudo gives root-powers, stays in your normal home-folder (if you haven't changed it in the commandline), what causes that the next start of dolphin doesn't work properly, because you have no write access to the config. So you have to get root again and change all ownership of all data in your home-folder to your username.
I think I'll try to bugfix the "can't run an application out of root-mode"Problem.

_________________
My new self-made computer:
Intel Core i7-2600k
ASUS Maximus IV Gene-Z (Mainboard)
2x4GB DDR3 RAM
ATI Radeon HD 6770
OCZ Vertex 3 60GB (SSD)
Western Digital Caviar Green WD20EARX 2TB (HDD)
...
aptosid x86_64
 
 View user's profile Send private message Send e-mail Yahoo Messenger  
Reply with quote Back to top
devilOffline
Post subject:   PostPosted: 18.10.2010, 04:37



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
thanks for checking.
i pointed the maintainers attention to this thread.
sux has ever been working here without glitches.
i had no time so far to diff whatever there is.

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
sx9Offline
Post subject:   PostPosted: 18.10.2010, 15:52



Joined: 2010-09-12
Posts: 219
Location: Wiesbaden,Germany
Status: Offline
Do you know where the servicemenu folder in KDE4 is (Still working with KDE3 on an USB-Drive - never have done a d-u there Smile )?
You can add this script to /usr/bin/rootlauncher and modify all servicemenu scripts so that they execute rootlauncher [command]
Example:

EXEC= rootlauncher kwrite

Here is the script:

      Code:
#!/bin/bash

user="$( getent passwd $UID | cut -d: -f1 )"
if [ "$user" == "root" ]
then
    echo 'Hi root'
    su-to-root -X -c $@
else
    $@
fi


That should be a temporary fix.
 
 View user's profile Send private message Send e-mail Yahoo Messenger  
Reply with quote Back to top
sx9Offline
Post subject:   PostPosted: 21.10.2010, 17:03



Joined: 2010-09-12
Posts: 219
Location: Wiesbaden,Germany
Status: Offline
Ah... here is the folder: /usr/share/kde4/services/ServiceMenus/ and /usr/share/applications/kde4/

_________________
My new self-made computer:
Intel Core i7-2600k
ASUS Maximus IV Gene-Z (Mainboard)
2x4GB DDR3 RAM
ATI Radeon HD 6770
OCZ Vertex 3 60GB (SSD)
Western Digital Caviar Green WD20EARX 2TB (HDD)
...
aptosid x86_64
 
 View user's profile Send private message Send e-mail Yahoo Messenger  
Reply with quote Back to top
somersetOffline
Post subject:   PostPosted: 22.10.2010, 16:46



Joined: 2010-10-09
Posts: 8

Status: Offline
hi all

I think I found a tempory fix using "xhost +"

Open a console.
      Code:

aptosid@aptosid:~$ xhost +
access control disabled, clients can connect from any host
aptosid@aptosid:~$ su
root@aptosid:/home/aptosid# dolphin
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
"/usr/bin/dolphin(3505)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
...etc ...etc

dolphin, konqueror and others now work as expected in root mode, you can open a file by right clicking and open with...

Found by http://www.mepislovers.org/forums/archi ... 22067.html and others.

And "man xhost"

I expect there are security implications. Maybe issue a "xhost -" when done??

Also all the aptosid manuals referring to "sux" are not now valid until the "sux" problem is sorted.(from wherever the bug originates)

cheers to all
somerset
 
 View user's profile Send private message  
Reply with quote Back to top
ikeinthaiOffline
Post subject: installed system no problem.  PostPosted: 24.10.2010, 08:24



Joined: 2010-09-22
Posts: 119
Location: bigannastybkk
Status: Offline
      somerset wrote:
Also all the aptosid manuals referring to "sux" are not now valid until the "sux" problem is sorted.(from wherever the bug originates


on installed systems no problem with sux/dbus-launch.

ike.

_________________
aptosid: magic in action, the point of the spear. bleedin pearls before swine? lets hope not. freesoftware/freedomsoftware=a chance at freedom. participants, engage your vehicle. . . avatar by zenren
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio