Linux openoffice安装方法
2017-03-30 15:18
344 查看
解压缩:
tar -zxvf OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_zh-CN.tar.gz
安装方法有两种:
1):进入到 OOO330_m20_native_packed-1_zh-CN.9567目录下,点击setup 进行安装就ok
2):进入到 OOO330_m20_native_packed-1_zh-CN.9567的RPMS中
安装所有 OpenOffice 组件
rpm -ivh o*.rpm
安装 OpenOffice 桌面控制台 desktop-integration
进入到desktop-integration中
rpm -ivh openoffice.org3.3-redhat-menus-3.3-9556.noarch.rpm
netstat-aon|findstr "8100" (winds) netstat–an|grep
8100(linux)
安装到目录 /usr/local
拷贝XP下fonts目录下的文件编码,放置安装目录位于/usr/share/fonts/下的winxp下,
同时也拷贝到拷贝到/usr/java/jdk1.6.0_29/jre/lib/fonts/fallback目录下
首先得让系统找到你安装的新字体,为此,在上面的两个目录内依次执行以下命令
# mkfontscale
# mkfontdir
然后刷新系统的缓存:
# fc-cache -f –v
接下来就需要配置local.conf文件了。(注:这个文件位于/etc/fonts/目录下,默认没有这个文件)下面就是local.conf配置文件里的内容(或者直接从安装文件中拷贝local.conf)
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM"fonts.dtd">
<!-- /etc/fonts/local.conf file toconfigure local fonts -->
<fontconfig>
<!--
fonts alias settings
2字体别名设置
-->
<match target="pattern">
<test name="family">
<string>宋体</string>
</test>
<edit name="family"mode="assign">
<string>SimSun</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>新宋体</string>
</test>
<edit name="family"mode="assign">
<string>NSimSun</string>
</edit>
</match>
<!--
3、字体组与字体名设置
Mark common families with their generics so we'll get
something reasonable
-->
<!--
Sans-serif faces
-->
<alias>
<family>Arial</family>
<family>Verdana</family>
<family>Trebuchet MS</family>
<family>Comic Sans MS</family>
<family>SimSun</family>
<family>PMingLiU</family>
<family>Arial UnicodeMS</family>
<default><family>sans-serif</family></default>
</alias>
<!--
Serif faces
-->
<alias>
<family>Times NewRoman</family>
<family>Georgia</family>
<family>SimSun</family>
<family>PMingLiU</family>
<default><family>serif</family></default>
</alias>
<!--
Monospace faces
-->
<alias>
<family>Courier New</family>
<family>Andale Mono</family>
<family>NSimSun</family>
<family>MingLiU</family>
<default><family>monospace</family></default>
</alias>
<!--
Provide required aliases for standard names
4、字体匹配顺序,重要的内容在这里设置
-->
<alias>
<family>sans-serif</family>
<prefer>
<family>Arial</family>
<family>Verdana</family>
<family>Trebuchet MS</family>
<family>Comic Sans MS</family>
<family>SimSun</family>
<family>PMingLiU</family>
<family>Arial UnicodeMS</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Times NewRoman</family>
<family>Georgia</family>
<family>SimSun</family>
<family>PMingLiU</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Courier New</family>
<family>Andale Mono</family>
<family>NSimSun</family>
<family>MingLiU</family>
</prefer>
</alias>
<!--
SimSun english portion substitutionsubstitution
5.SimSun英文部分替换动作
-->
<match target="pattern">
<test name="family" >
<string>SimSun</string>
</test>
<edit name="family"mode="prepend" binding="strong">
<string>Tahoma</string>
</edit>
</match>
<!--
NSimSun english portion substitutionsubstitution
6.同上,替换NSimSun的英文部分
-->
<match target="pattern">
<test name="family" >
<string>NSimSun</string>
</test>
<edit name="family"mode="prepend" binding="strong">
<string>Courier New</string>
</edit>
</match>
<!--
Courier substitution
7.Courier字体的替换
-->
<match target="pattern">
<test name="family" >
<string>Courier</string>
</test>
<edit name="family"mode="prepend" binding="strong">
<string>Courier New</string>
</edit>
</match>
<!--
Bold Tahoma/Verdana substitution:
when its size more than 20px,substitution with Bold Arial
8.Tahoma/Verdana粗体替换
-->
<match target="pattern">
<test name="family" >
<string>Tahoma</string>
<string>Verdana</string>
</test>
<test name="weight"compare="more_eq">
<int>180</int>
</test>
<test name="pixelsize"compare="more_eq" >
<double>20</double>
</test>
<edit name="family"mode="prepend" binding="strong">
<string>Arial</string>
</edit>
</match>
<!--
Target dots per inch, change dpi to 96
9.设置字体显示的DPI
-->
<match target="pattern" >
<edit name="dpi"mode="assign" >
<double>96</double>
</edit>
</match>
<!--
Enable sub-pixel rendering.
Ifyou are using CRT, set rgb -> none
10.子像素渲染
-->
<match target="font">
<edit name="rgba"mode="assign">
<const>none</const>
</edit>
</match>
<!--
Font size settings:
set the apposite font size,so it's easy to be read
11.最小字体号设置
-->
<match target="pattern" >
<test name="pixelsize"compare="more_eq" >
<double>8</double>
</test>
<test name="pixelsize"compare="less_eq" >
<double>12</double>
</test>
<edit name="pixelsize"mode="assign" >
<double>12</double>
</edit>
</match>
<!--
Artificial oblique for fonts without an italic or oblique version
12.支持伪粗体
-->
<match target="font">
<!-- check to see if the font is roman-->
<test name="slant">
<const>roman</const>
</test>
<!-- check to see if the patternrequested non-roman -->
<test target="pattern"name="slant" compare="not_eq">
<const>roman</const>
</test>
<!-- multiply the matrix to slant thefont -->
<edit name="matrix"mode="assign">
<times>
<name>matrix</name>
<matrix>
<double>1</double><double>0.2</double>
<double>0</double><double>1</double>
</matrix>
</times>
</edit>
<!-- pretend the font is oblique now-->
<edit name="slant"mode="assign">
<const>oblique</const>
</edit>
</match>
<!--
Synthetic emboldening for fonts that do not have bold face available
13.支持伪粗体
-->
<match target="font">
<!-- check
b4af
to see if the font is justregular -->
<test name="weight"compare="less_eq">
<int>100</int>
</test>
<!-- check to see if the patternrequests bold -->
<test target="pattern"name="weight" compare="more_eq">
<int>180</int>
</test>
<!-- set the embolden flag -->
<edit name="embolden"mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
Default Fonts setting
here autohint = ture / hinting = false is for free fonts in your system
wewill use autohint = false / hinting = true for MS core fonts
14.默认AA,Auto,Hinting设置
-->
<match target="font" >
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>false</bool>
</edit>
<edit name="hintstyle"mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!--
The dual-width Asian fonts (spacing=dual) are not rendered correctly,
apparently FreeType forces all widths to match. Trying to disable the
width forcing code by setting globaladvance=false alone doesn't help.
Asa brute force workaround, also set spacing=proportional, i.e. handle
them as proportional fonts:
15.解决中英文间距过宽的问题
-->
<match target="font">
<test name="lang"compare="contains" >
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<edit name="spacing"mode="assign" >
<const>proportional</const>
</edit>
<edit name="globaladvance"mode="assign" >
<bool>false</bool>
</edit>
</match>
<!--
CJK antialias settings:
when font size (in pixel) between 8 and 20px
16.CJK字体AA设置
-->
<match target="font" >
<test name="lang"compare="contains" >
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<test name="pixelsize"compare="more_eq" >
<double>8</double>
</test>
<test name="pixelsize"compare="less_eq" >
<double>20</double>
</test>
<edit name="antialias"mode="assign" >
<bool>false</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>false</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>false</bool>
</edit>
</match>
<!--
CJK antialias settings:
when font size (in pixel) more than 20px, enable AA.
17.CJK字体AA设置
-->
<match target="font" >
<test name="lang"compare="contains" >
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<test name="pixelsize"compare="more_eq" >
<double>20</double>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>true</bool>
</edit>
</match>
<!--
Italic CJK fonts,enable AA
18.CJK斜体字AA设置
-->
<match target="font">
<test name="lang"compare="contains" >
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<test name="slant"compare="not_eq">
<const>roman</const>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
Microsoft fonts settings
19.MS字体AA设置
-->
<!--
default : smoothed and hinted
-->
<match target="font" >
<test name="foundry" >
<string>monotype</string>
<string>microsoft</string>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>false</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hintstyle"mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!--
Microsoft YaHei Enable AA
20.MS YAHEI 字体AA设置
-->
<match target="font" >
<test name="family"compare="eq" >
<string>MicrosoftYaHei</string>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>false</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hintstyle"mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!--
Courier New:
both enable autohint and hinting looks very well.
21.Courier New 字体AA设置
-->
<match target="font" >
<test name="family" >
<string>Courier</string>
<string>Courier New</string>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hintstyle"mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!--
Courier New font size
22.Courier New 字体大小设置
-->
<match target="font" >
<test name="family" >
<string>Courier New</string>
</test>
<test name="pixelsize"compare="less_eq" >
<double>14.7</double>
</test>
<edit name="pixelsize"mode="assign" >
<double>14.7</double>
</edit>
</match>
</fontconfig>
tar -zxvf OOo_3.3.0_Linux_x86-64_install-rpm-wJRE_zh-CN.tar.gz
安装方法有两种:
1):进入到 OOO330_m20_native_packed-1_zh-CN.9567目录下,点击setup 进行安装就ok
2):进入到 OOO330_m20_native_packed-1_zh-CN.9567的RPMS中
安装所有 OpenOffice 组件
rpm -ivh o*.rpm
安装 OpenOffice 桌面控制台 desktop-integration
进入到desktop-integration中
rpm -ivh openoffice.org3.3-redhat-menus-3.3-9556.noarch.rpm
后台服务方式启动openoffice
/opt/openoffice.org3/program/soffice-headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard&检查是否安装成功
查看8100端口是否被监听netstat-aon|findstr "8100" (winds) netstat–an|grep
8100(linux)
linux 下openoffice文件转换中文乱码问题
xpdf-chinese-simplified安装到目录 /usr/local
拷贝XP下fonts目录下的文件编码,放置安装目录位于/usr/share/fonts/下的winxp下,
同时也拷贝到拷贝到/usr/java/jdk1.6.0_29/jre/lib/fonts/fallback目录下
首先得让系统找到你安装的新字体,为此,在上面的两个目录内依次执行以下命令
# mkfontscale
# mkfontdir
然后刷新系统的缓存:
# fc-cache -f –v
接下来就需要配置local.conf文件了。(注:这个文件位于/etc/fonts/目录下,默认没有这个文件)下面就是local.conf配置文件里的内容(或者直接从安装文件中拷贝local.conf)
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM"fonts.dtd">
<!-- /etc/fonts/local.conf file toconfigure local fonts -->
<fontconfig>
<!--
fonts alias settings
2字体别名设置
-->
<match target="pattern">
<test name="family">
<string>宋体</string>
</test>
<edit name="family"mode="assign">
<string>SimSun</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>新宋体</string>
</test>
<edit name="family"mode="assign">
<string>NSimSun</string>
</edit>
</match>
<!--
3、字体组与字体名设置
Mark common families with their generics so we'll get
something reasonable
-->
<!--
Sans-serif faces
-->
<alias>
<family>Arial</family>
<family>Verdana</family>
<family>Trebuchet MS</family>
<family>Comic Sans MS</family>
<family>SimSun</family>
<family>PMingLiU</family>
<family>Arial UnicodeMS</family>
<default><family>sans-serif</family></default>
</alias>
<!--
Serif faces
-->
<alias>
<family>Times NewRoman</family>
<family>Georgia</family>
<family>SimSun</family>
<family>PMingLiU</family>
<default><family>serif</family></default>
</alias>
<!--
Monospace faces
-->
<alias>
<family>Courier New</family>
<family>Andale Mono</family>
<family>NSimSun</family>
<family>MingLiU</family>
<default><family>monospace</family></default>
</alias>
<!--
Provide required aliases for standard names
4、字体匹配顺序,重要的内容在这里设置
-->
<alias>
<family>sans-serif</family>
<prefer>
<family>Arial</family>
<family>Verdana</family>
<family>Trebuchet MS</family>
<family>Comic Sans MS</family>
<family>SimSun</family>
<family>PMingLiU</family>
<family>Arial UnicodeMS</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Times NewRoman</family>
<family>Georgia</family>
<family>SimSun</family>
<family>PMingLiU</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Courier New</family>
<family>Andale Mono</family>
<family>NSimSun</family>
<family>MingLiU</family>
</prefer>
</alias>
<!--
SimSun english portion substitutionsubstitution
5.SimSun英文部分替换动作
-->
<match target="pattern">
<test name="family" >
<string>SimSun</string>
</test>
<edit name="family"mode="prepend" binding="strong">
<string>Tahoma</string>
</edit>
</match>
<!--
NSimSun english portion substitutionsubstitution
6.同上,替换NSimSun的英文部分
-->
<match target="pattern">
<test name="family" >
<string>NSimSun</string>
</test>
<edit name="family"mode="prepend" binding="strong">
<string>Courier New</string>
</edit>
</match>
<!--
Courier substitution
7.Courier字体的替换
-->
<match target="pattern">
<test name="family" >
<string>Courier</string>
</test>
<edit name="family"mode="prepend" binding="strong">
<string>Courier New</string>
</edit>
</match>
<!--
Bold Tahoma/Verdana substitution:
when its size more than 20px,substitution with Bold Arial
8.Tahoma/Verdana粗体替换
-->
<match target="pattern">
<test name="family" >
<string>Tahoma</string>
<string>Verdana</string>
</test>
<test name="weight"compare="more_eq">
<int>180</int>
</test>
<test name="pixelsize"compare="more_eq" >
<double>20</double>
</test>
<edit name="family"mode="prepend" binding="strong">
<string>Arial</string>
</edit>
</match>
<!--
Target dots per inch, change dpi to 96
9.设置字体显示的DPI
-->
<match target="pattern" >
<edit name="dpi"mode="assign" >
<double>96</double>
</edit>
</match>
<!--
Enable sub-pixel rendering.
Ifyou are using CRT, set rgb -> none
10.子像素渲染
-->
<match target="font">
<edit name="rgba"mode="assign">
<const>none</const>
</edit>
</match>
<!--
Font size settings:
set the apposite font size,so it's easy to be read
11.最小字体号设置
-->
<match target="pattern" >
<test name="pixelsize"compare="more_eq" >
<double>8</double>
</test>
<test name="pixelsize"compare="less_eq" >
<double>12</double>
</test>
<edit name="pixelsize"mode="assign" >
<double>12</double>
</edit>
</match>
<!--
Artificial oblique for fonts without an italic or oblique version
12.支持伪粗体
-->
<match target="font">
<!-- check to see if the font is roman-->
<test name="slant">
<const>roman</const>
</test>
<!-- check to see if the patternrequested non-roman -->
<test target="pattern"name="slant" compare="not_eq">
<const>roman</const>
</test>
<!-- multiply the matrix to slant thefont -->
<edit name="matrix"mode="assign">
<times>
<name>matrix</name>
<matrix>
<double>1</double><double>0.2</double>
<double>0</double><double>1</double>
</matrix>
</times>
</edit>
<!-- pretend the font is oblique now-->
<edit name="slant"mode="assign">
<const>oblique</const>
</edit>
</match>
<!--
Synthetic emboldening for fonts that do not have bold face available
13.支持伪粗体
-->
<match target="font">
<!-- check
b4af
to see if the font is justregular -->
<test name="weight"compare="less_eq">
<int>100</int>
</test>
<!-- check to see if the patternrequests bold -->
<test target="pattern"name="weight" compare="more_eq">
<int>180</int>
</test>
<!-- set the embolden flag -->
<edit name="embolden"mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
Default Fonts setting
here autohint = ture / hinting = false is for free fonts in your system
wewill use autohint = false / hinting = true for MS core fonts
14.默认AA,Auto,Hinting设置
-->
<match target="font" >
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>false</bool>
</edit>
<edit name="hintstyle"mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!--
The dual-width Asian fonts (spacing=dual) are not rendered correctly,
apparently FreeType forces all widths to match. Trying to disable the
width forcing code by setting globaladvance=false alone doesn't help.
Asa brute force workaround, also set spacing=proportional, i.e. handle
them as proportional fonts:
15.解决中英文间距过宽的问题
-->
<match target="font">
<test name="lang"compare="contains" >
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<edit name="spacing"mode="assign" >
<const>proportional</const>
</edit>
<edit name="globaladvance"mode="assign" >
<bool>false</bool>
</edit>
</match>
<!--
CJK antialias settings:
when font size (in pixel) between 8 and 20px
16.CJK字体AA设置
-->
<match target="font" >
<test name="lang"compare="contains" >
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<test name="pixelsize"compare="more_eq" >
<double>8</double>
</test>
<test name="pixelsize"compare="less_eq" >
<double>20</double>
</test>
<edit name="antialias"mode="assign" >
<bool>false</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>false</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>false</bool>
</edit>
</match>
<!--
CJK antialias settings:
when font size (in pixel) more than 20px, enable AA.
17.CJK字体AA设置
-->
<match target="font" >
<test name="lang"compare="contains" >
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<test name="pixelsize"compare="more_eq" >
<double>20</double>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>true</bool>
</edit>
</match>
<!--
Italic CJK fonts,enable AA
18.CJK斜体字AA设置
-->
<match target="font">
<test name="lang"compare="contains" >
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<test name="slant"compare="not_eq">
<const>roman</const>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
Microsoft fonts settings
19.MS字体AA设置
-->
<!--
default : smoothed and hinted
-->
<match target="font" >
<test name="foundry" >
<string>monotype</string>
<string>microsoft</string>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>false</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hintstyle"mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!--
Microsoft YaHei Enable AA
20.MS YAHEI 字体AA设置
-->
<match target="font" >
<test name="family"compare="eq" >
<string>MicrosoftYaHei</string>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>false</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hintstyle"mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!--
Courier New:
both enable autohint and hinting looks very well.
21.Courier New 字体AA设置
-->
<match target="font" >
<test name="family" >
<string>Courier</string>
<string>Courier New</string>
</test>
<edit name="antialias"mode="assign" >
<bool>true</bool>
</edit>
<edit name="autohint"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hinting"mode="assign" >
<bool>true</bool>
</edit>
<edit name="hintstyle"mode="assign" >
<const>hintfull</const>
</edit>
</match>
<!--
Courier New font size
22.Courier New 字体大小设置
-->
<match target="font" >
<test name="family" >
<string>Courier New</string>
</test>
<test name="pixelsize"compare="less_eq" >
<double>14.7</double>
</test>
<edit name="pixelsize"mode="assign" >
<double>14.7</double>
</edit>
</match>
</fontconfig>
相关文章推荐
- OpenOffice linux 安装
- VMware Workstation/Fusion 中安装 Fedora 23/24 及其他 Linux 系统时使用 Open VM Tools 代替 VMware Tools 增强工具的方法
- Linux openoffice 安装测试
- Linux下openoffice+swftools安装教程
- Linux OpenOffice 安装
- VMware Workstation/Fusion 中安装 Fedora 23/24 及其他 Linux 系统时使用 Open VM Tools 代替 VMware Tools 增强工具的方法
- linux openoffice的安装
- linux Openoffice安装
- 《Linux安装openoffice 服务》Install OpenOffice on Linux(CentOS)
- Linux程序安装方法(给新手看,特啰嗦)
- [Linux]输入法xsim安装方法
- 解决Linux上安装MYSQL“mysqld 已死,但是 subsys 被锁 ”的方法
- [原创] Linux下安装OpenWebMail
- 小结一下在linux下软件安装的方法
- Linux下软件安装常用方法
- Linux下软件安装方法总结
- 在Linux fedora 5上使用yum来安装xine的方法
- linux通用的软件安装方法