title: SSH login shows Only console users are allowed to run the X server
body: <p>Every time I log in from SSH, I get:</p>
  
  <blockquote>
    <p>Only console users are allowed to run the X server</p>
  </blockquote>
  
  <p>I also get this if I make a new <code>tmux</code> pane, which I can handle by putting:</p>
  
  <p><code>test -z ${TMUX} &amp;&amp; startx
  </code></p>
  
  <p>in my <code>.zprofile</code></p>
  
  <p>I assume I get the message because I run <code>startx</code>.
  How can I make it not to run <code>startx</code> if I log in from ssh?</p>