Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-10 Thread YoYo Siska
Hareesh Nagarajan wrote:
 On 5/8/05, Dmitri Vassilenko [EMAIL PROTECTED] wrote:
 
On Sunday May 8 2005 22:14, Hareesh Nagarajan wrote:

How do I enable programs which are executed by the root to connect to
the X server?

I think if you're doing this locally, you can just copy .Xauthority in the
directory of the user currently using the server to /root/ (or whatever
root's home directory is).
 
 Thanks Dimitri and to everyone who replied to this thread.
 

Maybe a slightly better approach:
I put this in root's .bashrc:
xauth merge ~yoyo/.Xauthority

when the information in .Xauthority changes, this get's it again, and
doesn't destroy any previous (if i connect as root to some other X server)
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-09 Thread Sami Samhuri
* On Sun May-08-2005 at 09:14:15 PM -0500, Hareesh Nagarajan said:
 Hi All:
 
 How do I enable programs which are executed by the root to connect to
 the X server?

I think you might be looking for this command (normal user):

% xhost +localhost

For more info read 'man xhost'.

-- 
Sami Samhuri


pgpFLhHoLCdSm.pgp
Description: PGP signature


Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-09 Thread martin nicolas
Are you using su for beeing root ? In that case have a look at sux (which permit to give access to x for root in sudo mode).On 5/9/05, Sami Samhuri 
[EMAIL PROTECTED] wrote:* On Sun May-08-2005 at 09:14:15 PM -0500, Hareesh Nagarajan said:
 Hi All: How do I enable programs which are executed by the root to connect to the X server?I think you might be looking for this command (normal user):% xhost +localhost
For more info read 'man xhost'.--Sami Samhuri-- Nicolas


Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-09 Thread Martin Carpella
Sami Samhuri [EMAIL PROTECTED] writes:

 I think you might be looking for this command (normal user):

 % xhost +localhost

Note however that this can be dangerous, as now every local user could
send you a window to your X-server, not only root.

Regards,
Martin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-09 Thread Hareesh Nagarajan
On 5/8/05, Dmitri Vassilenko [EMAIL PROTECTED] wrote:
 On Sunday May 8 2005 22:14, Hareesh Nagarajan wrote:
  How do I enable programs which are executed by the root to connect to
  the X server?
 
 I think if you're doing this locally, you can just copy .Xauthority in the
 directory of the user currently using the server to /root/ (or whatever
 root's home directory is).

Thanks Dimitri and to everyone who replied to this thread.

I used this recipe and I'm now able to connect to an XServer as root
(I need K3B to work as root you see!)

-Hareesh

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-09 Thread Dmitri Vassilenko
On Monday May 9 2005 05:57, Hareesh Nagarajan wrote:
 I used this recipe and I'm now able to connect to an XServer as root
 (I need K3B to work as root you see!)

Unless you really want to you don't have to. Just add yourself to the 
burning and cdrw groups and you should be set. :)

Dmitri
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-09 Thread Sami Samhuri
* On Mon May-09-2005 at 10:57:47 AM +0200, Martin Carpella said:
 Sami Samhuri [EMAIL PROTECTED] writes:
 
  I think you might be looking for this command (normal user):
 
  % xhost +localhost
 
 Note however that this can be dangerous, as now every local user could
 send you a window to your X-server, not only root.

True. I suppose I shouldn't have assumed this was a desktop with one
user.

-- 
Sami Samhuri


pgpOHN6uIAxiu.pgp
Description: PGP signature


Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-09 Thread Volker Armin Hemmann
Hi,

with KDE

kdesu xemacs

or

kdesu k3b 

is the easiest way.

But without KDE, the earlier mentioned sux, or xhost +localhost etc are fine 
too.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-08 Thread Dmitri Vassilenko
On Sunday May 8 2005 22:14, Hareesh Nagarajan wrote:
 How do I enable programs which are executed by the root to connect to
 the X server?

I think if you're doing this locally, you can just copy .Xauthority in the 
directory of the user currently using the server to /root/ (or whatever 
root's home directory is).

Dmitri
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-08 Thread Philip Webb
050508 Myk Taylor wrote:
 Hareesh Nagarajan wrote:
 How do I enable programs which are executed by root
 to connect to the X server?
 If you're logged into a X as a user and su to root in a console,
 root won't have the appropriate credentials to access X (~/.Xauthority).
 One way around this is to allow forwarded X connections in sshd 
 and run
   ssh -Y [EMAIL PROTECTED]
 instead of su.  the '-Y' parameter sets the DISPLAY variable
 and forwards X connections to your running window manager.
 any other solutions out there?

running a KDE 'root konsole', i have no problem starting Gvim .
perhaps KDE takes care of the necessary authority  permissions.

-- 
,,
SUPPORT ___//___,  Philip Webb : [EMAIL PROTECTED]
ELECTRIC   /] [] [] [] [] []|  Centre for Urban  Community Studies
TRANSIT`-O--O---'  University of Toronto
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-08 Thread Nick Rout

On Sun, 08 May 2005 19:51:15 -0700
Myk Taylor wrote:

 If you're logged into a X as a user and su to root in a console, root
 won't have the appropriate credentials to access X (~/.Xauthority).  One
 way around this is to allow forwarded X connections in sshd and run
   ssh -Y [EMAIL PROTECTED]
 instead of su.  the '-Y' parameter sets the DISPLAY variable and
 forwards X connections to your running window manager.
 
 any other solutions out there?

sux does the same as su but transfers whatever is needed for
authentication.



 
 --myk
 
 Hareesh Nagarajan wrote:
  How do I enable programs which are executed by the root to connect to
  the X server?
 -- 
 gentoo-user@gentoo.org mailing list

-- 
Nick Rout

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Programs executed as root cannot connect to X server

2005-05-08 Thread Rumen Yotov
Hareesh Nagarajan wrote:

Hi All:

How do I enable programs which are executed by the root to connect to
the X server?

E.g.:
root: hareesh/ # xemacs
Xlib: connection to :0.0 refused by server
Xlib: No protocol specified

X server not responding
: :0.0

Thanks,

Hareesh

  

Hi,
Just set it (or export it): DISPLAY=:0.0 command-here.
HTH
-- 
gentoo-user@gentoo.org mailing list