View previous topic :: View next topic |
Author |
Message |
vladobos n00b
Joined: 15 Aug 2005 Posts: 7 Location: Macedonia
|
Posted: Thu Sep 22, 2005 9:38 pm Post subject: Cannot run GUI aplications as root from console [SOLVED] |
|
|
When I'm logged as normal user, and when I try to open as root in console some GUI aplication I got error messages. For example with gaim, I got:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(gaim:9834): Gdk-CRITICAL **: gdk_display_get_name: assertion `GDK_IS_DISPLAY (display)' failed
** (gaim:9834): WARNING **: cannot open display: unset
Or with oowriter:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
/opt/OpenOffice.org/program/soffice.bin X11 error: Can't open display: :0.0
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)
Obviously it's something with X permisions. Any hints?
Last edited by vladobos on Fri Sep 23, 2005 9:41 pm; edited 1 time in total |
|
Back to top |
|
|
Bonkie Guru
Joined: 28 Oct 2002 Posts: 501 Location: Antwerpen, Belgium
|
Posted: Thu Sep 22, 2005 9:57 pm Post subject: |
|
|
you can only start X apps from the same user, unless you do something linke
this will allow all users (even on network) to start X apps from console
disables that.
ps: not very wise to run x apps as root _________________ "I would say we have a 50% chance of survival, but I consider myself an optimist so I'll give us 50,5% ..."
~ Arthur C. Clarke [Physics PHD,SF Writer], when asked about the chances of the human race's survival |
|
Back to top |
|
|
cklimt n00b
Joined: 10 Aug 2004 Posts: 39
|
Posted: Thu Sep 22, 2005 11:47 pm Post subject: |
|
|
Hi vladobos,
If you use KDE, there is an easy way to launch GUI applications as root: using kdesu. For example, typing this within a console (without being logged as a root) will launch gaim as a root
After this a window will appear asking for your root password. _________________ "The aim of computing is insight not numbers" |
|
Back to top |
|
|
vladobos n00b
Joined: 15 Aug 2005 Posts: 7 Location: Macedonia
|
Posted: Fri Sep 23, 2005 9:40 pm Post subject: |
|
|
Thank you both! |
|
Back to top |
|
|
Vortex375 Veteran
Joined: 03 Mar 2005 Posts: 1739 Location: Deutschland
|
Posted: Fri Sep 23, 2005 10:17 pm Post subject: |
|
|
Quick question:
xhost + returns the following for me:
Code: | xhost +
access control disabled, clients can connect from any host |
I'm quite happy with this setting but where can I change it (just in case)? |
|
Back to top |
|
|
crudh l33t
Joined: 12 May 2005 Posts: 696 Location: Sundbyberg, Sweden
|
Posted: Fri Sep 23, 2005 11:36 pm Post subject: |
|
|
If you're using the xhost solution, use:
instead. This only allows users from the same machine starting X applications. |
|
Back to top |
|
|
|