From: | Andreas Kretzer <andi(at)kretzer-berlin(dot)de> |
---|---|
To: | Postgres Interface List <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: Problem with pgaccess |
Date: | 2002-03-20 16:31:54 |
Message-ID: | 3C98B97A.BBE87DFB@kretzer-berlin.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Ricardo Javier Aranibar León schrieb:
> Hi,..
> Sorry for this letter, but I have problems again with pgaccess, I send you
> the file "env "
> I use Linux SuSE 7.3. and KDE2 the messages when I execute pgaccess is:
> postgres(at)kepos:>pgaccess
> Application initialization failed: no display name and no $DISPLAY
> enviroment variable.
I assume you made 'su' to become user postgres .... In this case you
have no default display and are not allowed to write to the display which is
used by the user-id under which you really logged in. So you must do the
following:
1. as the original user allow access to your display: 'xhost +'
2. as user postgres set your DISPLAY variable: export DISPLAY=localhost:0.0
Don't forget to disable this global access (security!!!!) with 'xhost -' after finishing
your su'd postgres session.
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Meskes | 2002-03-20 20:03:51 | Re: ecpg weird behavior |
Previous Message | Thomas Lockhart | 2002-03-20 03:46:04 | Re: ecpg weird behavior |