linux
分类: 信息化
2014-07-18 13:38:26
配置apt源
wget -q "" -O- | sudo apt-key add -
sudo wget "" -P /etc/apt/sources.list.d/
安装Xwiki,包括tomcat以及mysql
apt-get update
apt-get install xwiki-enterprise-tomcat7-mysql
JAVA_OPTS="-Djava.awt.headless=true -Xmx512m -XX:MaxPermSize=192m"
xwiki.authentication.ldap=1
#-# LDAP Server (Active Directory, eDirectory, OpenLDAP, etc.)
xwiki.authentication.ldap.server=xxxxx
xwiki.authentication.ldap.port=389
#-# LDAP login, empty = anonymous access, otherwise specify full dn
#-# {0} is replaced with the user name, {1} with the password
#xwiki.authentication.ldap.bind_DN=cn={0},department=People,department=example,department=com,o=MP
xwiki.authentication.ldap.bind_DN=uid={0},ou=People,dc=example,dc=com
xwiki.authentication.ldap.bind_pass={1}
#-# The Base DN used in LDAP searches
xwiki.authentication.ldap.base_DN=dc=example,dc=com
Apache_OpenOffice_4.0.0_Linux_x86-64_install-deb_zh-CN.tar.gz
Apache_OpenOffice_4.0.0_Linux_x86-64_langpack-deb_zh-CN.tar.gz
解压后安装所有的deb包
dpkg -i *.deb
安装包
apt-get install libxt6 libxrender1
配置xwiki配置文件
#vim /usr/lib/xwiki/WEB-INF/xwiki.properties
openoffice.serverType=0
openoffice.serverPort=8100
openoffice.autoStart=true
openoffice.homePath=/opt/openoffice4/
openoffice.profilePath=/opt/openoffice4/4
openoffice启动脚本
# cat /opt/openoffice4/4
/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
重启服务
/etc/init.d/tomcat7 restart