Re: [gentoo-user] Re: gtkpod won't start

2007-11-24 Thread Billy Holmes
Neil Bothwick wrote:
>> it's probably pam related.
>> 
> I have he same here and I don't use pam.


have you looked at /etc/profile{,.d,.env} ?


otherwise, if you really want to know, then strace "su -"

--b
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: gtkpod won't start

2007-11-24 Thread Neil Bothwick
On Sat, 24 Nov 2007 16:00:38 -0500, Billy Holmes wrote:

> > Sorry, but I don't get your point. How does this explain why root has
> > a correct $DISPLAY after using "su" or "su -"?

> it's probably pam related.

I have he same here and I don't use pam.


-- 
Neil Bothwick

Quick!! Act as if nothing has happened!


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: gtkpod won't start

2007-11-24 Thread Billy Holmes
Dirk Heinrichs wrote:
> Sorry, but I don't get your point. How does this explain why root has a 
> correct $DISPLAY after using "su" or "su -"?
>   

it's probably pam related.

check /etc/pam.d/su

check if it has:

sessionrequired pam_env.so
sessionoptional pam_xauth.so


then check /etc/security/pam_env.conf and make sure the DISPLAY option
is commented out.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: gtkpod won't start

2007-11-24 Thread Dirk Heinrichs
Am Freitag 23 November 2007 schrieb Billy Holmes:
> Dirk Heinrichs wrote:
> > No difference with "su -". I don't have any line in root's *rc files
> > which set the DISPLAY.
>
> $ set | grep XAUTH
> $ su -
> # set | grep XAUTH
>
> notice, they will be different.
>
> It boils down to security.
>
> you can do it two ways.
>
> $ su -
> # export XAUTHORITY=/home/$OLDUSER/.Xauthority
> # xterm
>
> -OR-
>
> $ xauth extract /tmp/keys.txt $DISPLAY
> $ su -
> # xauth merge /tmp/keys.txt
> # xterm

Sorry, but I don't get your point. How does this explain why root has a 
correct $DISPLAY after using "su" or "su -"?

BTW: On another box running Ubuntu (too slow for all the compiling), using su 
doesn't set $DISPLAY for root, which is the behaviour I would expect.

Bye...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: gtkpod won't start

2007-11-23 Thread Billy Holmes
Dirk Heinrichs wrote:
> No difference with "su -". I don't have any line in root's *rc files which 
> set the DISPLAY.

$ set | grep XAUTH
$ su -
# set | grep XAUTH

notice, they will be different.

It boils down to security.

you can do it two ways.

$ su -
# export XAUTHORITY=/home/$OLDUSER/.Xauthority
# xterm

-OR-

$ xauth extract /tmp/keys.txt $DISPLAY
$ su -
# xauth merge /tmp/keys.txt
# xterm


-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: gtkpod won't start

2007-11-23 Thread Neil Bothwick
On Fri, 23 Nov 2007 08:55:33 +0100, Dirk Heinrichs wrote:

> > Using 'sux' with no problems so far  
> 
> How does this explain why I have $DISPLAY set _correctly_ after using 
> _normal_ su?

Hmm, so do I. I hadn't noticed because I have su aliased to sux, but
calling su directly now leaves $DISPLAY intact.

-- 
Neil Bothwick

If Barbie is so popular, why do you have to buy her friends?


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: gtkpod won't start

2007-11-23 Thread Dirk Heinrichs
Am Freitag, 23. November 2007 schrieb ext Rumen Yotov:

> Using 'sux' with no problems so far

How does this explain why I have $DISPLAY set _correctly_ after using 
_normal_ su?

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: gtkpod won't start

2007-11-22 Thread Rumen Yotov
On (23/11/07 07:58) Dirk Heinrichs wrote:
> Am Donnerstag, 22. November 2007 schrieb ext Dan Farrell:
> > However, if you su or
> > something, you'll no longer have that environment variable.
> 
> Hmm, although I'm not sure why, I do:
> 
> % whoami
> dheinric
> % echo $DISPLAY
> :0
> % su
> Passwort:
> # whoami
> root
> # echo $DISPLAY
> :0
> 
> No difference with "su -". I don't have any line in root's *rc files which 
> set the DISPLAY.
> 
> Bye...
> 
>   Dirk
> -- 
> Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
> Configuration Manager   | Fax:  +49 (0)211 47068 111
> Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
> Wanheimerstraße 68  | Web:  http://www.capgemini.com
> D-40468 Düsseldorf  | ICQ#: 110037733
> GPG Public Key C2E467BB | Keyserver: www.keyserver.net
Hi,

Using 'sux' with no problems so far :-)
HTH. Rumen
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: gtkpod won't start

2007-11-22 Thread Dirk Heinrichs
Am Donnerstag, 22. November 2007 schrieb ext Dan Farrell:
> However, if you su or
> something, you'll no longer have that environment variable.

Hmm, although I'm not sure why, I do:

% whoami
dheinric
% echo $DISPLAY
:0
% su
Passwort:
# whoami
root
# echo $DISPLAY
:0

No difference with "su -". I don't have any line in root's *rc files which 
set the DISPLAY.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: gtkpod won't start

2007-11-22 Thread Dan Farrell
On Thu, 22 Nov 2007 02:49:11 + (UTC)
Thufir <[EMAIL PROTECTED]> wrote:

> I only started googling $DISPLAY, but yes, it's the same user who
> started the X session.  Normally I use GNOME, but will also try just
> X and KDE.
> 

really?  in your previous message you pasted:

>arrakis ~ # gtkpod
>(gtkpod:11857): Gtk-WARNING **: cannot open display: 

did you start the X session as root?  

it's important to differentiate between having permission to write to
an X display (xhost permits that) and knowing which display to write
to - $DISPLAY will be set to that if you're already in the 'X
environment' (it's an environment variable).  However, if you su or
something, you'll no longer have that environment variable.  

Generally speaking it should be set to ":0" which is equivilent to
"localhost:0.0" or localhost server, display 0, screen 0.  

if I were in your position I would say:
$ DISPLAY=":0" gtkpod
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: gtkpod won't start

2007-11-22 Thread Dirk Heinrichs
Am Donnerstag 22 November 2007 schrieb Thufir:

> [EMAIL PROTECTED] ~ $ echo $DISPLAY
>
> [EMAIL PROTECTED] ~ $

So it's unset, which is the reason for the error you get from gtkpod. It 
doesn't know on which display to open.

Try setting it ":0" (export DISPLAY=:0) before you run the command.

However, I'm still wondering why it is unset, because the display manager 
should take care of setting it correctly.

HTH...

Dirk


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: gtkpod won't start

2007-11-21 Thread Dirk Heinrichs
Am Donnerstag, 22. November 2007 schrieb ext Thufir:
> On Wed, 21 Nov 2007 07:56:33 +0100, Dirk Heinrichs wrote:
> > That has it all. Is your $DISPLAY variable set correctly? Is this the
> > same user who started the X session?
>
> I only started googling $DISPLAY, but yes, it's the same user who started
> the X session.

So, what does "echo $DISPLAY" show? Also helpfull would be the output 
of "ps -ef|grep X". How do you start X, via display manager (gdm, xdm, 
kdm,...) or with startx after text console login? 

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


signature.asc
Description: This is a digitally signed message part.