LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-24-2011, 04:36 PM   #1
MaikoID
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Rep: Reputation: 0
Question Why can't I start a X application from Konsole root logged ?


Hi, I'm using Kubuntu 11.04. In all Ubuntu's versions I always did the login with root in a terminal using the command:

Code:
sudo su -
then I put my password, after this I could do everything until I close the terminal. In Kubuntu 11.04 I can't do that.
Code:
maiko@maiko-laptop:~$ sudo su -
[sudo] password for maiko: 
root@maiko-laptop:~# kate
No protocol specified
kate: cannot connect to X server :0
root@maiko-laptop:~# kpackagekit 
unnamed app(2644): KUniqueApplication: Cannot find the D-Bus session server:  "//bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
" 

unnamed app(2643): KUniqueApplication: Pipe closed unexpectedly. 

root@maiko-laptop:~#
Could anyone explain to me why can't I start a X application from root's terminal in Kubuntu?
 
Old 08-24-2011, 05:23 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Use kdesu

Quote:
sudo frontend for KDE
KdeSudo is a graphical frontend for the sudo utility, which allows users to run programs as root (or another user) by giving their own password.
http://packages.ubuntu.com/natty/kdesudo
 
Old 08-24-2011, 05:28 PM   #3
MaikoID
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Same error:

Code:
root@maiko-laptop:~# kdesudo kate
No protocol specified
kdesudo: cannot connect to X server :0
root@maiko-laptop:~#
 
Old 08-24-2011, 05:31 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Try running

Code:
kdesudo kate
as a user that has sudo privileges not as root.
 
Old 08-24-2011, 05:35 PM   #5
MaikoID
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I don't want to start my applications as a normal user, I want to do that with root privilegies without exit from my current terminal session or write the password again. I always did that in ubuntu why is it different in Kubuntu ?
 
Old 08-24-2011, 06:35 PM   #6
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by MaikoID View Post
I don't want to start my applications as a normal user, I want to do that with root privilegies without exit from my current terminal session or write the password again. I always did that in ubuntu why is it different in Kubuntu ?
You will be running the application with root privileges, using sudo to elevate your user.

Code:
kdesudo kate
then enter your user password to run kate as root.
 
Old 08-24-2011, 08:02 PM   #7
MaikoID
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by andrewthomas View Post
You will be running the application with root privileges, using sudo to elevate your user.

Code:
kdesudo kate
then enter your user password to run kate as root.
you aren't understand me. I don't want to leave my current opened root shell session, I would like to have a behavior similar to Ubuntu.

I don't want to type root's password again.
 
Old 08-26-2011, 08:44 AM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
You run "kdesudo" as a normal user, not as root.

And by the way, isn't it "kdesu", not "kdesudo"?
 
Old 08-26-2011, 11:50 AM   #9
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by MTK358 View Post
You run "kdesudo" as a normal user, not as root.

And by the way, isn't it "kdesu", not "kdesudo"?
That is what I thought, but I guess not.
http://packages.ubuntu.com/natty/amd64/kdesudo/filelist
Code:
/usr/bin/kdesudo
/usr/share/doc/kdesudo/changelog.Debian.gz
/usr/share/doc/kdesudo/copyright
/usr/share/man/man1/kdesudo.1.gz
 
  


Reply

Tags
konsole, kubuntu, root, terminal


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
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 04:27 PM
Running graphic application over network while not logged in yelp666 Linux - General 6 03-29-2004 08:02 AM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM
application errors. where are they logged? digitized_funk Linux - Newbie 1 03-27-2003 12:01 AM


All times are GMT -5. The time now is 09:05 PM.

Main Menu
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