Thread: Re: Problem with pgaccess
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@kepos:>pgaccess Application initialization failed: no display name and no $DISPLAY enviroment variable. _________________________________________________________________ MSN Photos es la manera más sencilla de compartir e imprimir sus fotos: http://photos.latam.msn.com/Support/WorldWide.aspx
Ricardo Javier Aranibar León wrote:> Hi,.. Sorry for this letter, but I have problems again with> pgaccess, I send you thefile "env " I use Linux SuSE 7.3. and KDE2> the messages when I execute pgaccess is:> postgres@kepos:>pgaccess> Applicationinitialization failed: no display name and no $DISPLAY> enviroment variable. That's odd...are you running pgaccess on the same machine you're running KDE on? --Jeremy
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@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: exportDISPLAY=localhost:0.0 Don't forget to disable this global access (security!!!!) with 'xhost -' after finishing your su'd postgres session.
Why do you want to use this from the user postgres???? This easely done with logon feature of pgaccess... Just use the postgres as username. What you also can try is "sux" (su with X acces). example: "sux postgres". Ricardo Javier Aranibar León wrote: > > 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@kepos:>pgaccess > Application initialization failed: no display name and no $DISPLAY > enviroment variable. > > _________________________________________________________________ > MSN Photos es la manera más sencilla de compartir e imprimir sus fotos: > http://photos.latam.msn.com/Support/WorldWide.aspx > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly -- Thanks in advance, Stefan -------------------------------------------------------------- Linux a world without borders, fences, windows and gates..... Titanic98 "Which computer do you want to sink today????"