title: centOS server openoffice headless
body: <p>I am trying to start openOffice as a service on CentOS(non-graphical) server. </p>
  
  <pre><code>soffice -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" &amp; &gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>How ever I am getting below error</p>
  
  <pre><code> Set DISPLAY environment variable, use -display option
     or check permissions of your X-Server
     (See "man X" resp. "man xhost" for details)
  
  [1]+  Done                    soffice -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" 
  </code></pre>
  
  <p>This command works just fine in Ubuntu.<br>
  Can you please suggest how can I start OpenOffice as a service on CentOS server?</p>