[opensuse] 11.3 - kwrite and kate not working for su?
Hi! I like to use kate for system management file editing... i.e. I su to root and then open kate that conveniently saves sessions of multiple files. In 11.3 I get this: loota:/data1/home> su Password: loota:/data1/home # kate & [1] 4373 loota:/data1/home # kate(4373): Session bus not found KCrash: Application 'kate' crashing... sock_file=/root/.kde4/socket-loota/kdeinit4__0 Warning: connect() failed: : No such file or directory KCrash cannot reach kdeinit, launching directly. drkonqi(4374): Session bus not found [1]+ Exit 253 kate loota:/data1/home # And the same happens for kwrite. Both work for the main user though (when started from the terminal). What should I do? Currently I'm editing the files in good ol emacs -- HG. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 01 August 2010 12:28:51 HG wrote:
I like to use kate for system management file editing... i.e. I su to root and then open kate that conveniently saves sessions of multiple files. In 11.3 I get this:
loota:/data1/home> su
Password: loota:/data1/home # kate & [1] 4373
loota:/data1/home # kate(4373): Session bus not found
KCrash:
Application 'kate' crashing...
Warning: connect() failed: : No such file or directory KCrash cannot reach kdeinit, launching
sock_file=/root/.kde4/socket-loota/kdeinit4__0 directly.
drkonqi(4374): Session bus not found
[1]+ Exit 253 kate loota:/data1/home #
And the same happens for kwrite. Both work for the main user though (when started from the terminal). What should I do? Currently I'm editing the files in good ol emacs
As your normal user: "kdesu /usr/bin/kate" This starts kate as root, but preserves the environment needed. Will -- Will Stephenson, openSUSE Team SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-08-01 12:50, Will Stephenson wrote:
On Sunday 01 August 2010 12:28:51 HG wrote:
As your normal user:
"kdesu /usr/bin/kate"
This starts kate as root, but preserves the environment needed.
Or perhaps the traditional "su -". - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkxVU+oACgkQU92UU+smfQVjzQCdGrvacYD8PTEYXgSq7Rtqz4ay RJMAnjGzS8Tx7PkcthRJOy99eW6lqN4G =Npuw -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi!
On Sun, Aug 1, 2010 at 1:50 PM, Will Stephenson
On Sunday 01 August 2010 12:28:51 HG wrote:
I like to use kate for system management file editing... i.e. I su to root and then open kate that conveniently saves sessions of multiple files. In 11.3 I get this:
loota:/data1/home> su
Password: loota:/data1/home # kate & [1] 4373
loota:/data1/home # kate(4373): Session bus not found
KCrash:
Application 'kate' crashing...
Warning: connect() failed: : No such file or directory KCrash cannot reach kdeinit, launching
sock_file=/root/.kde4/socket-loota/kdeinit4__0 directly.
drkonqi(4374): Session bus not found
[1]+ Exit 253 kate loota:/data1/home #
And the same happens for kwrite. Both work for the main user though (when started from the terminal). What should I do? Currently I'm editing the files in good ol emacs
As your normal user:
"kdesu /usr/bin/kate"
This starts kate as root, but preserves the environment needed.
Thanks for this. It does work this way. However, this really just prompts me to ask how is one supposed to administer the openSUSE nowadays? I've been using SuSE since 8.0 and I've always done it so that I log in with my own username (either locally with X or over ssh) and then use su (or sux as it used to be) to change into root. Then I just continue from that. Previously, everything worked well like that. Currently I'm having large problems. How do you do it? Or do you just use command line editing tools still? (That's why I'm trying to use kate... to get away from emacs :-) )
Will
-- Will Stephenson, openSUSE Team SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- HG. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi Carlos!
On Sun, Aug 1, 2010 at 2:00 PM, Carlos E. R.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2010-08-01 12:50, Will Stephenson wrote:
On Sunday 01 August 2010 12:28:51 HG wrote:
As your normal user:
"kdesu /usr/bin/kate"
This starts kate as root, but preserves the environment needed.
Or perhaps the traditional "su -".
That's exactly what I've always done, but which doesn't seem to work.... (please see my first email) :-( -- HG. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi again!
On Sun, Aug 1, 2010 at 2:03 PM, HG
Hi Carlos!
On Sun, Aug 1, 2010 at 2:00 PM, Carlos E. R.
wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2010-08-01 12:50, Will Stephenson wrote:
On Sunday 01 August 2010 12:28:51 HG wrote:
As your normal user:
"kdesu /usr/bin/kate"
This starts kate as root, but preserves the environment needed.
Or perhaps the traditional "su -".
That's exactly what I've always done, but which doesn't seem to work.... (please see my first email) :-(
Ah, thanks! I missed the "-" in the end! Never needed that before - until now. Thanks for the tip - need to learn new fingering again ;-) -- HG. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-08-01 13:01, HG wrote:
On Sun, Aug 1, 2010 at 1:50 PM, Will Stephenson <> wrote:
As your normal user:
"kdesu /usr/bin/kate"
This starts kate as root, but preserves the environment needed.
Thanks for this. It does work this way. However, this really just prompts me to ask how is one supposed to administer the openSUSE nowadays? I've been using SuSE since 8.0 and I've always done it so that I log in with my own username (either locally with X or over ssh) and then use su (or sux as it used to be) to change into root. Then I just continue from that. Previously, everything worked well like that. Currently I'm having large problems. How do you do it? Or do you just use command line editing tools still? (That's why I'm trying to use kate... to get away from emacs :-) )
Depends on each person. I use "su -", and yes, the dash is crucial. Just try both on two terminals and compare the environment. Or read the man page ;-) At least in gnome it works. I don't know if for kde you need something extra that requires kdesu. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkxVWLAACgkQU92UU+smfQXTRQCgiJhwFvuU6vmKfGwtnBhWTpsB ZGYAniil4cvcLdOe9i6OQNAraaVBRQwz =5I7h -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi!
On Sun, Aug 1, 2010 at 2:21 PM, Carlos E. R.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2010-08-01 13:01, HG wrote:
On Sun, Aug 1, 2010 at 1:50 PM, Will Stephenson <> wrote:
As your normal user:
"kdesu /usr/bin/kate"
This starts kate as root, but preserves the environment needed.
Thanks for this. It does work this way. However, this really just prompts me to ask how is one supposed to administer the openSUSE nowadays? I've been using SuSE since 8.0 and I've always done it so that I log in with my own username (either locally with X or over ssh) and then use su (or sux as it used to be) to change into root. Then I just continue from that. Previously, everything worked well like that. Currently I'm having large problems. How do you do it? Or do you just use command line editing tools still? (That's why I'm trying to use kate... to get away from emacs :-) )
Depends on each person. I use "su -", and yes, the dash is crucial. Just try both on two terminals and compare the environment. Or read the man page ;-)
At least in gnome it works. I don't know if for kde you need something extra that requires kdesu.
Should not need anything else in KDE, IMHO. Since 8.X it used to be "sux" until (what is it that I have in that one computer, maybe...) 11.2 when just "su" worked just the same. It's hard to learn again something that has worked for so many years. The good thing about staying with one distro is that they work the way you have learned. :-) -- HG. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi!
On Sun, Aug 1, 2010 at 1:50 PM, Will Stephenson
wrote: On Sunday 01 August 2010 12:28:51 HG wrote:
I like to use kate for system
management file editing... i.e. I su to
root and then open kate
conveniently saves sessions of multiple
files. In
11.3 I get this:
loota:/data1/home> su
Password:
loota:/data1/home # kate &
[1] 4373
loota:/data1/home # kate(4373): Session bus not found
KCrash: Application 'kate' crashing...
sock_file=/root/.kde4/socket-loota/kdeinit4__0
Warning: connect() failed: : No such file or directory
KCrash cannot reach kdeinit, launching
directly.
drkonqi(4374): Session bus not found
[1]+ Exit 253
kate
loota:/data1/home #
And the same
happens for kwrite.
Both work for the main user though
(when started from the terminal). What
should I do? Currently I'm
editing the files in good ol emacs
As your normal user:
"kdesu /usr/bin/kate"
This starts kate as root, but
the environment needed.
Thanks for this. It does work
On Sunday 01 August 2010 13:01:55 HG wrote: that preserves this way. However, this really just
prompts me to ask how is one supposed to administer the openSUSE nowadays? I've been using SuSE since 8.0 and I've always done it so that I log in with my own username (either locally with X or over ssh) and then use su (or sux as it used to be) to change into root. Then I just continue from that. Previously, everything worked well like that. Currently I'm having large problems. How do you do it? Or do you just use command line editing tools still? (That's why I'm trying to use kate... to get away from emacs :-) )
I did a bit of poking, and found out that I was wrong about 'preserves': KApplication (the basis of most kde apps) tries to access the DBUS session bus* for a number of reasons. When you 'su' without '-' the unix environment of the original user is preserved. This includes the variable DBUS_SESSION_BUS_ADDRESS, which is the socket address of the session-local DBUS. For security, DBUS prohibits other UIDs from accessing a user's session bus. When root's Kate's KApplication instance tries to use DBUS_SESSION_BUS_ADDRESS that still points at your regular user's bus it fails with a fatal error, and an unhelpful error message: "Session bus not found." If you use 'kdesu' to launch your apps, it clears that environment variable, leaving root's KDE programs free to use the existing session bus for root applications. Likewise if you 'su -' - the entire environment is reset. If you use 'Terminal - super user mode' from your K Menu to start a Konsole as root all this is done for you and you can launch other KDE apps without kdesu from that Konsole. I'm looking at making the error message more informative. Will * The current standard high level inter-process communications system on Linux, roughly equivalent to COM on Windows. -- Will Stephenson, openSUSE Team SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-08-01 13:42, HG wrote:
Hi!
On Sun, Aug 1, 2010 at 2:21 PM, Carlos E. R. <> wrote:
Depends on each person. I use "su -", and yes, the dash is crucial. Just try both on two terminals and compare the environment. Or read the man page ;-)
At least in gnome it works. I don't know if for kde you need something extra that requires kdesu.
Should not need anything else in KDE, IMHO. Since 8.X it used to be "sux" until (what is it that I have in that one computer, maybe...) 11.2 when just "su" worked just the same. It's hard to learn again something that has worked for so many years. The good thing about staying with one distro is that they work the way you have learned. :-)
The correct method has always been with the dash, even while using "sux". There is an important difference, the dash is not cosmetic. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkxVae8ACgkQU92UU+smfQUJgwCfV2CjHhyt2smuGxXYMY4Y/zPi VdwAni+aZR2lrpZ+8lEi/KkvUcbdKroZ =hCyE -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-08-01 14:16, Will Stephenson wrote:
On Sunday 01 August 2010 13:01:55 HG wrote:
...
I did a bit of poking, and found out that I was wrong about 'preserves':
...
I'm looking at making the error message more informative.
Thanks for the explanation :-) (Mmm... See if you can poke somebody to repair the broken quoting in kmail ;-) ) - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkxVbLIACgkQU92UU+smfQXgIwCghPQA5BBAbkwB7OMu23O2GWcC GF0An0wjqIXkOHrTVd5yFsM7Mtkf0aCy =zavH -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 01 August 2010 14:46:42 Carlos E. R. wrote:
(Mmm... See if you can poke somebody to repair the broken quoting in kmail ;-) )
It was in kdepimlibs4 4.5RC3 but is fixed for 4.5.0. Publish is disabled for KDE:Distro:Factory and I am too lazy to pull the packages directly from the oBS. Suffer my broken quoting until 4.5.0 is released on Aug 4th! Will -- Will Stephenson, openSUSE Team SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-08-01 14:51, Will Stephenson wrote:
On Sunday 01 August 2010 14:46:42 Carlos E. R. wrote:
(Mmm... See if you can poke somebody to repair the broken quoting in kmail ;-) )
It was in kdepimlibs4 4.5RC3 but is fixed for 4.5.0. Publish is disabled for KDE:Distro:Factory and I am too lazy to pull the packages directly from the oBS. Suffer my broken quoting until 4.5.0 is released on Aug 4th!
ROTFL! - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkxVcYAACgkQU92UU+smfQWnYQCfYiza09b9JuxL0cpCPPeYN0mF WosAn3BvUM9sxfyPz+Q1RcNV0gPXo95I =5G4m -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Should not need anything else in KDE, IMHO. Since 8.X it used to be "sux" until (what is it that I have in that one computer, maybe...) 11.2 when just "su" worked just the same. It's hard to learn again something that has worked for so many years. The good thing about staying with one distro is that they work the way you have learned. :-)
Since you are already in a KDE session, hit Alt-F2 to bring up krunner and do "kdesu <program>". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi!
On Sun, Aug 1, 2010 at 5:31 PM, dwgallien
Should not need anything else in KDE, IMHO. Since 8.X it used to be "sux" until (what is it that I have in that one computer, maybe...) 11.2 when just "su" worked just the same. It's hard to learn again something that has worked for so many years. The good thing about staying with one distro is that they work the way you have learned. :-)
Since you are already in a KDE session, hit Alt-F2 to bring up krunner and do "kdesu <program>".
Actually, I'm not. Most often I'm in through SSH from terminal in OS X I guess (now that I got that fixed in the other thread). It's mainly a server. Besides, I always have terminal open... hitting something like Alt+F2 sounds like Windows or OS X kind of stuff :-P (i.e. making things so easy that they get difficult to find out or remember... I still hate the "new" start menu in KDE as it requires huge number of clicking around instead of just moving the mouse...) -- HG. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi!
On Sun, Aug 1, 2010 at 5:31 PM, dwgallien
wrote: Should not need anything else in KDE, IMHO. Since 8.X it used to be "sux" until (what is it that I have in that one computer, maybe...) 11.2 when just "su" worked just the same. It's hard to learn again something that has worked for so many years. The good thing about staying with one distro is that they work the way you have learned. :-)
Since you are already in a KDE session, hit Alt-F2 to bring up krunner and do "kdesu <program>".
Actually, I'm not. Most often I'm in through SSH from terminal in OS X I guess (now that I got that fixed in the other thread). It's mainly a server. Besides, I always have terminal open... hitting something like Alt+F2 sounds like Windows or OS X kind of stuff :-P (i.e. making things so easy that they get difficult to find out or remember... I still hate the "new" start menu in KDE as it requires huge number of clicking around instead of just moving the mouse...)
Sorry about that. Since you wanted to run kate I assumed you were running a KDE session. fwiw, to do short/simple editing from the shell e.g., for config files, I just use nano. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Carlos E. R.
-
dwgallien
-
HG
-
Will Stephenson