Error Unable To Initialize Gtk Is Display Set Properly Pgadmin3
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers error unable to initialize gtk is display set properly ubuntu or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask error unable to initialize gtk is display set properly pcsx2 Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: error unable to initialize gtk is display set properly logout process completed Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to set DISPLAY variable for a process? up vote 2 down vote favorite 1 I try to run pgadmin3 as user unable to initialize gtk is display set properly mac postgres and I get following error: No protocol specified Error: Unable to initialize gtk, is DISPLAY set properly? Command pgadmin3 runs well under pavel (my main user account). The answers of a question on this suggested either some server connection magic (not my case - I try to run it on localhost), or setting DISPLAY variable. I checked it through printenv both under pavel and postgres, and it's :0 for both. I used the trick to find which processes have DISPLAY variable
Filezilla Error Unable To Initialize Gtk Is Display Set Properly
set under both users. For pavel, there's very long list with the DISPLAY values :0 (for most processes, including pgadmin) or :0.0 (for some). But for postgres, there are just three or four processes in the list. Here's where I'm stuck: how to set an environment variable (DISPLAY, in this case) for a process? Or better, for application/user combination, so that the process would see the DISPLAY setting from the very start. I already tried to hardcode DISPLAY in ETC/ENVIRONMENT, but nothing changed - it affects the DISPLAY value where it is set (for users and processes), but not its visibility for processes run by the users. environment-variables postgresql share|improve this question asked Oct 30 '14 at 7:47 Pavel V. 140212 Does this work for you? env DISPLAY=:0 pgadmin3 –MadMike Oct 30 '14 at 8:11 @MadMike: no, still the same error. –Pavel V. Oct 30 '14 at 8:37 Maybe this answer works for you? askubuntu.com/a/28572/75166 –MadMike Oct 30 '14 at 8:40 @MadMike: No protocol specified. xhost: unable to open ":0" - so no luck. I will try to search more and focus on the "no protocol specified" part - this wasn't included in the questions/answers I already inspected. –Pavel V. Oct 30 '14 at 8:47 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted It sounds like you sudo'd to the postgres user then tried to run Pgadmin from there. D
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow
Unable To Initialize Gtk Is Display Set Properly Linux
the company Business Learn more about hiring developers or posting ads with us Unix error unable to initialize gtk is display set properly linux & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users error unable to initialize gtk is display set properly centos of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and http://askubuntu.com/questions/543476/how-to-set-display-variable-for-a-process rise to the top gksudo --user postgres pgadmin3 produces Unable to initialize GTK+. Why? up vote 0 down vote favorite $ pgadmin3 $ pcmanfm $ gksudo pcmanfm Invoke the programs fine but: $ gksudo --user postgres pgadmin3 Produces: 19:38:10: Error: Unable to initialize GTK+, is DISPLAY set properly? Why? gtk share|improve this question asked Apr 20 at 2:57 C.W.Holeman II 1,15221530 add a comment| 1 Answer 1 active oldest votes up vote 1 down http://unix.stackexchange.com/questions/277699/gksudo-user-postgres-pgadmin3-produces-unable-to-initialize-gtk-why vote accepted By default, another user does not have permission to use the X screen. This works for me: xhost SI:localuser:postgres gksudo --user postgres pgadmin3 # or sudo -u postgres -H pgadmin3 Related answer: What does this `xhost ...` command do? share|improve this answer answered Apr 26 at 11:11 Daniel Vérité 1514 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged gtk or ask your own question. asked 5 months ago viewed 64 times active 5 months ago Linked 2 What does this `xhost …` command do? Related 3Terminal resizes itself1Why are certain menus unreadable when using a new GTK+ theme with Nautilus?1GConf-WARNING **: Client failed to connect to the D-BUS daemon: Unable to autolaunch when setuid5How can I make text in meld readable?1Why do I need GTK+ to build GTK+? And how to fix it2libvte unicode font handling Hot Network Questions With the passing of Thai King Bhumibol, are there any customs/etiquette as a traveler I should be aware of? How d
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://stackoverflow.com/questions/29219696/how-to-utilize-gui-tool-of-pgadmin-using-vagrant about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up How to utilize GUI tool of pgadmin using vagrant up vote 0 down vote favorite I have installed postgresql upon a vagrant ubuntu box and also companied control unable to console with sudo apt-get --assume-yes install pgadmin3 the tool is installed under /usr/bin but I can not open pdadmin3 in the virtualbox due to the error Error: Unable to initialize gtk, is DISPLAY set properly? Could I possibly do this kind of thing in vagrant virtual box ? Or some work around postgresql vagrant vagrant-plugin share|improve this question edited Mar 23 '15 at 23:35 asked Mar 23 '15 at 20:26 Hello lad 1,63011440 add a comment| 1 unable to initialize Answer 1 active oldest votes up vote 0 down vote accepted Run PgAdmin locally on your main desktop and connect to PostgreSQL on your Vagrant VM over TCP/IP. The host can connect to guests if properly configured. You'll need to (a) ensure that Vagrant has suitable networking from host to guest, either using NAT and port forwards or using a virtual bridge; (b) ensure that PostgreSQL on the guest listens on all interfaces for TCP/IP connections using listen_addresses in postgresql.conf and (c) ensure that PostgreSQL on the guest is configured to allow connections from remote peers in pg_hba.conf. Alternately, PgAdmin supports ssh tunnels. If you can ssh to the virtualbox you can configure PgAdmin to ssh to it too, then make a local PostgreSQL connection. Personally I prefer to instead just use the psql command-line client for PostgreSQL directly on the VM. Way less hassle. share|improve this answer answered Mar 24 '15 at 1:55 Craig Ringer 134k18223306 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged postgresql vagrant vagrant-plugin or ask y