Unix Technical Forum

root konsole (kde) - Cannot run applications

This is a discussion on root konsole (kde) - Cannot run applications within the Debian Linux support forums, part of the Debian Linux category; --> I can not run X applications from a root konsole (kde). 1. DISPLAY env var is not defined. 2. ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 08:38 AM
Paulo da Silva
 
Posts: n/a
Default root konsole (kde) - Cannot run applications

I can not run X applications from a root konsole (kde).

1. DISPLAY env var is not defined.
2. No authorization.

I could turn around this by:
1. Defining DISPLAY=:0 (for :0 vt)
2. xauth merge /home/<normal_user>/.Xauthority

Is there a better way?
I could put "xauth merge /home/<normal_user>/.Xauthority"
in .bashrc. But what about DISPLAY?

Thanks for any help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 08:38 AM
Sumo Wrestler (or just ate too much)
 
Posts: n/a
Default Re: root konsole (kde) - Cannot run applications

On Thu, 23 Mar 2006 19:16:48 +0000, Paulo da Silva wrote:

> I can not run X applications from a root konsole (kde).
>
> 1. DISPLAY env var is not defined.
> 2. No authorization.
>
> I could turn around this by:
> 1. Defining DISPLAY=:0 (for :0 vt)
> 2. xauth merge /home/<normal_user>/.Xauthority
>
> Is there a better way?
> I could put "xauth merge /home/<normal_user>/.Xauthority" in .bashrc. But
> what about DISPLAY?
>
> Thanks for any help


You should run X applications as root as little as possible, and the extra
work required to get X apps to run as root is a good discouragement of the
practice.

You could set the DISPLAY variable in .bashrc as well as do the xauth
merge, but I would put those command into a separate script.

Typically, I don't bother with the xauth stuff; instead I do this:

useraccount$ xhost +local:
root# export DISPLAY=:0.0

The command "xhost +local:" allows any programs on your machine to contact
the X server.

I haven't created a script to do this. I just type the commands into the
terminal window because it isn't often that I run X apps as root.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com