trying to start openoffice in linux
I am trying to start openoffice3 in linux ,failing with this error
Code:
|
Hi,
Why are you trying to run soffice as root? You should run it as a normal user. In any case, if you have logged in X as a normal user and then su to root to run soffice you need to do the following: In an xterm as normal user run: Code:
xhost +localhost |
I want to run openoffice as a service not as s GUI ,I am using jodconverter http://artofsolving.com/node/12
jodconverter has java java api which allows file conversion in various formats this jodconverter internally uses openoffice.The api connects to openoffice running as a service. the link aboove talks about running openoffice as a service in linux . I am trying to run openoffice as service. |
I tried this still failing
Code:
[root@ACFAS11 webapps]# export DISPLAY=:0.0 |
Hi,
According to the link you've posted, you don't need to set a DISPLAY. Instead you need to unset it, if it's already set (i.e. if you're going to run the soffice command from inside an X terminal) Quote:
Code:
soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard |
Initially I tried
Code:
$ unset DISPLAY |
Quote:
To verify you can run: Code:
echo $DISPLAY Regards |
Quote:
I did as you said. Code:
[root@ACFAS11 ~]# echo $DISPLAY |
Huh, it works here (Slackware and LibreOffice 3.4.4) and I don't think that Openoffice is different on this.
Anyway try to run Xvfb before soffice to get a dummy DISPLAY and see what you have Code:
Xvfb :0 -screen 0 1024x768x8 & |
Quote:
Code:
[root@ACFAS11 ~]# Xvfb :0 -screen 0 1024x768x8 & |
You don't have Xvfb installed. You can use your package manager to install it.
What is your distro btw? There is an openoffice-headless package for various distros (e.g for centos it's openoffice.org-headless), so you might install that, instead of going into that trouble. Regards |
Quote:
Thanks a lot for all your help, I tried this Code:
[root@ACFAS11 tmp]# yum install openoffice.org-headless I tried find Code:
|
Hi,
I can only guess that /usr/bin/soffice is a symlink for /usr/lib64/openoffice.org3/program/soffice. Did you try to see if it works now? |
Quote:
|
All times are GMT -5. The time now is 06:45 PM. |