Professional Documents
Culture Documents
用Xvfb讓OpenOffice開 時自動 動
網 上 尋 種方法 後,終於找到方法了。
動OpenOffice並提供轉 能了。
我的作業系統是CentOS 5 Final,以下開始介紹安裝方法。
一、安裝Xvfb
可以利用yum來安裝Xvfb:(注意 小 要正確 )
二、安裝OpenOffice
來 尋soffice.bin看是放在 裡 徑底下:
用到 !
01. #!/bin/bash
02.
03. case "$1" in
04. start)
05. DISPLAY=:5.0
06. export DISPLAY
07. Xvfb :5 -screen scrn 1024x768x24 &
08. /opt/openoffice.org3/program/soffice.bin "-
accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -nofirststartwizard -
nologo -headless -display:5" &
09. ;;
10. stop)
11. pkill soffice &
12. pkill Xvfb &
13. exit 1 &
14. ;;
15. *)
16. echo "Usage: $0 { start | stop }"
17. exit 1
18. ;;
19. esac
20. exit 0
參 資料:
建 件格式 服 器
How to install Xvfb (X11 Server) in Linux Server
相關連結:
2 意見:
Wa Pa 提到...
2009年9月8日 上午 11:01
布丁布丁吃布丁 提到...
詳情請看JODConverter或是OpenOffice相關的 件吧!
2009年9月8日 下午 2:38