How do we setup pgadmin3 to run via the console and not via X windows?

If I run pgadmin,  the error message is:

Error: Unable to initialize gtk, is DISPLAY set properly?

 

I think this means its expecting to run via X Windows, which is not running.

 

Currently the display is set to:

TERM=xterm

consoletype=pty

 

How do we setup pgadmin3 to run via the console and not via X windows?

 
shaunwinginAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

earth man2Commented:
use psql command line client program ?
0
Hugh FraserConsultantCommented:
pgadmin has a graphical display that requires X Windows. if you're not willing to run X on the database server, run pgadmin from another computer that is running X and redirect the display.
0
shaunwinginAuthor Commented:
I have another server with X. How do I run it from another CentOS 5.1 machine? How do I redirect the display?

SO I take it there is no psql command line client program ?
0
Hugh FraserConsultantCommented:
It's standard X display stuff. On the "X" host (I'mm call it xhost.com), allow inbound X connections from the DB host (I'll call it dbhost.com) by typing:

xhost + dbhost.com

Telnet/ssh to dbhost.com and export the DISPLAY variable to point to xhost.com:

export DISPLAY=xhost.com:0.0

Then run pgadmin.

BTW, the command line command is psql as earthman2 stated.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.