ejabberd - Comments for "ejabberctl live can&amp;#039;t start appmon, error is: couldn&amp;#039;t connect to display &amp;quot;:0&amp;quot;" https://www.ejabberd.im/node/4790 en Thank you, badlop. This https://www.ejabberd.im/node/4790#comment-57538 <p>Thank you, badlop. This method works correctly.</p> Mon, 27 Jun 2011 07:54:19 +0000 dinosaurkfb comment 57538 at https://www.ejabberd.im Maybe the erlang node runs as https://www.ejabberd.im/node/4790#comment-57529 <p>Maybe the erlang node runs as root:</p> <pre> (ejabberd@localhost)1&gt; os:cmd("whoami"). "root\n" </pre><p>and it now doesn't have access to the X system in your machine.</p> <p>How you can give access for your X to the "root" user: add in your $HOME/.bashrc file this line:</p> <pre>export XAUTHORITY=/home/`whoami`/.Xauthority</pre><p> An alternative is to run the erlang node as your user:</p> <pre>$ whoami badlop $ ./configure --enable-user=badlop $ make $ sudo make install $ ejabberdctl live (ejabberd@localhost)1&gt; os:cmd("whoami"). "badlop\n" (ejabberd@localhost)2&gt; appmon:start(). {ok,&lt;0.558.0&gt;} (ejabberd@localhost)3&gt; </pre> Sat, 25 Jun 2011 10:32:00 +0000 mfoss comment 57529 at https://www.ejabberd.im