openoffice 安装 linux and windows

来源:互联网 发布:贵阳 云计算 编辑:程序博客网 时间:2024/06/14 06:02
openoffice下载路径
http://www.openoffice.org/download/other.html#tested-full


这里都以openoffice.org3.4为例,openoffice.org3.4需要glibc-2.11版本,升级这个基础库,建议在redhat 6.0以上版本的操作系统上安装
windows:

1.下载openoffice.org3.4 windows版本,安装都是下一步,这里就不说了


2.写openoffice.org3.4启动脚本
新建一个文件,并命名为"openoffice.bat",内容为:


@echo off
cd  C:\Program Files\OpenOffice.org 3\program 
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard


3.windows openoffice.org3.4就已经配置好了,要用到openoffice.org3.4时,只需用启动openoffice.bat就行


Linux:
一、下载下载openoffice.org3.4 linux版本


二、安装openOffice
1.使用tar -xzvf Apache_OpenOffice_incubating_3.4.1_Linux_x86_install-rpm_zh-CN.tar.gz解压缩后,会得到zh-CN


目录。
2.进入openoffice.org3.4安装文件目录,命令:cd zh-CN/RPMS
3.安装命令,执行 rpm –ivh *rpm(安装所有rpm文件)
4.进入到desktop-integration目录 cd desktop-integration
5.执行 rpm -ivh openoffice.org3.4-redhat-menus-3.4-9593.noarch.rpm
这时openOffice己经安装完成,默认安装在/opt下


三、启动openOffice
#vi /usr/sbin/openoffice.sh
内容如下:
ps -ef|grep -i openoffice|grep -v grep|awk '{print $2}' |xargs kill -9
/opt/openoffice.org3/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard&


#chmod 775 /usr/sbin/openoffice.sh


四、linux openoffice.org3.4就已经配置好了,要用到openoffice.org3.4时,只需用执行命令 openoffice.sh