#安装openoffice
[root@cql ~]# tar -xf Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz
[root@cql zh-CN]# cd RPMS/
[root@cql RPMS]# rpm -ivh *.rpm
[root@cql zh-CN]# desktop-integration/
[root@cql desktop-integration]# rpm -ivh openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm
[root@cql RPMS] yum groupinstall "X Window System"
报错:
SyntaxError: invalid syntax
File "/usr/libexec/urlgrabber-ext-down", line 28
except OSError, e:
解决办法:
由于升级过python版本,修改/usr/libexec/urlgrabber-ext-down和/usr/bin/yum的python解释器版本
启动:
[root@cql desktop-integration]# /opt/openoffice4/program/soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard &
[1] 57754
[root@cql desktop-integration]# ps aux | grep 57754
root 57754 0.0 0.3 113132 752 pts/0 S 09:39 0:00 /bin/sh /opt/openoffice4/program/soffice --headless --accept=socket,host=127.0.0.1,port=8100;urp; --nofirststartwizard
root 57801 0.0 0.2 112680 696 pts/0 R+ 09:40 0:00 grep --color=auto 57754
#安装libreoffice
[root@www tools]# tar -xvf LibreOffice_6.0.5.2_Linux_x86-64_rpm.tar.gz -C /opt
[root@www tools]# tar -xf LibreOffice_6.0.5.2_Linux_x86-64_rpm_langpack_zh-CN.tar.gz -C /opt
[root@www opt]# cd /opt/LibreOffice_6.0.5.2_Linux_x86-64_rpm/RPMS
[root@www RPMS]# yum localinstall *.rpm
[root@www opt]# cd /opt/LibreOffice_6.0.5.2_Linux_x86-64_rpm_langpack_zh-CN/RPMS
[root@www RPMS]# yum localinstall *.rpm
/opt/libreoffice6.0/program/soffice --headless --accept='socket,host=127.0.0.1,port=8100;urp;' --nofirststartwizard &
#设置开机重自启动直接将上面的启动命令写入/etc/rc.d/rc.local文件中
#如果出现中文乱码的情况,首先关注在libreoffice的安装目录下的fonts目录下有没有简体中文的字体文件
#然后去看系统目录下/usr/share/fonts下有没有简体中文的字体文件