ubuntu安装其他(1、JIVE安装)
-------------------
李家芳(leejiafang@tom.com)
非常棒的 即时通信 会议 软件。
0、前期准备
使用'server'选项安装ubuntu系统。
# sudo su -
# apt-setup
# apt-get update
# apt-get install vsftpd
# vi /etc/vsftpd.conf
# cd /home/ftp/
# mkdir pub
# chmod 777 pub
# /etc/init.d/vsftpd restart
1、下载安装JDK1.5
到http://java.sun.com下载jdk-1_5_0_04-linux-i586.bin。
上传到/home/ftp/pub:
# sudo su -
# chmod 755 /home/ftp/pub/jdk-1_5_0_04-linux-i586.bin
# cd /opt
# /home/ftp/pub/jdk-1_5_0_04-linux-i586.bin
# ln -s /opt/jdk-1_5_0_04 /opt/java
2、编辑环境变量:
Modify the /etc/profile file:
# vi /etc/profile
在文件末尾加上:
JAVA_HOME=/opt/java
PATH=$PATH:$JAVA_HOME/bin:
export PATH JAVA_HOME CATALINA_HOME ANT_HOME OX_HOME TOMCAT_HOME CLASSPATH
# source /etc/profile
注意:不要在/etc/bash.bashrc当中设置全局环境变量,有时不灵。
3、安装JIVE
If using the .tar.gz, extract the archive to /opt or /usr/bin:
# cd /opt
# tar xzvf /home/ftp/pub/jive_messenger_2_1_2.tar.gz
# cd jive_messenger/bin
启动messenger:
# ./messenger
Usage: ./messenger {start|stop}
# ./messenger start
Starting messenger
# ./messenger stop
4、安装配置database PostgreSQL
安装postgresql:
# apt-get update
# apt-get install postgresql
安装管理工具:
首先需要将/etc/apt/sources.list当中的universe选型行的注释去掉,即允许universe包:
# vi /etc/apt/sources.list
# apt-get update
# apt-get install phppgadmin
修改phpPgAdmin 的配置文件/etc/phppgadmin/config.inc.php,apache.conf
# cd /etc/phppgadmin/
# vi config.inc.php
$conf['servers'][0]['desc'] = 'PostgreSQL'; // Display name for server
$conf['servers'][0]['host'] = '127.0.0.1'; // Hostname or IP address for server.
$conf['servers'][0]['port'] = 5432; // Database port on server
$conf['servers'][0]['defaultdb'] = 'messenger'; // Default database to connect to.以后修改成'messenger';
编辑phppgadmin配置文件:
# vi /etc/phppgadmin/apache.conf
打开allow all选项:注意实际使用时绝对不可以,所以最好不改变选项,而在本机进行配置。
将/etc/phppgadmin/apache.conf拷贝到/etc/apache2/目录:
# cp /etc/phppgadmin/apache.conf /etc/apache2/
修改/etc/apache2/apache2.conf,寻找335行Add Type application去掉以下两行的注释:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
寻找120行,并加入以下一行:
# Include all the user configurations:
Include /etc/apache2/httpd.conf
Include /etc/apache2/apache.conf //添加这一行,加载phppgadmin的配置文件,很重要;
启动一下apache
# /etc/init.d/apache2 restart
接着就要看/etc/postgresql/pg_hba.conf 里面是否有以下配置:
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
local all all trust
host all all 127.0.0.1 255.255.255.255 trust
这是开放127.0.0.1 可以访问。
好了,一切准备就绪,只等重启PostgreSQL了!
# /etc/init.d/postgresql reload
启动一下apache
# /etc/init.d/apache2 restart
4.1. Configure PostgreSQL:
# vi /etc/postgresql/pg_hba.conf
Change this line(将以下行):
# All other connections by UNIX sockets
local all all ident sameuser
To this line(改成):
# All other connections by UNIX sockets
local all all trust
And change this line(将以下行):
# All IPv4 connections from localhost
host all all 127.0.0.1 255.255.255.255 ident sameuser
To this line(改成):
# All IPv4 connections from localhost
host all all 127.0.0.1 255.255.255.255 trust
注意:下面这三行不需要配置也可以。
------------------------------------------------------
#vi /etc/postgresql/postgresql.conf and set :
POSTGRES_OPTIONS="-i"
or else postgresql wont accept network connections.
------------------------------------------------------
# /etc/init.d/postgresql reload
4.2 建立配置数据库:
# su - postgres
$ createuser --pwprompt
Enter name of user to add: messenger //注意:这个用户名
Enter password for new user: secret
Enter it again: secret
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) n
CREATE USER
$ createdb -O messenger -E UNICODE messenger //注意:数据库db的名称
CREATE DATABASE
$ psql -U messenger messenger < /opt/jive_messenger/resources/database/messenger_postgresql.sql
CREATE SEQUENCE
CREATE SEQUENCE
CREATE SEQUENCE
CREATE SEQUENCE
CREATE SEQUENCE
CREATE TABLE
...
INSERT 17664 1
$ exit
现在可以使用管理控制台http://172.17.1.106/phppgadmin/index.php设置postgres.
用户名:messenger
密码:messenger
4.3 配置 JDBC Drivers:
启动messenger
# cd /opt/jive_messenger/bin
# ./messenger start
使用管理控制台http://172.17.1.106:9090设置jive jdbc.
数据库驱动选项: 选择PostgreSQL
JDBC 驱动程序类: org.postgresql.Driver
数据库 URL: jdbc:postgresql://localhost:5432/messenger
用户名:messenger
密码:messenger
连接: 最少:5 最多:15
连接池可以维护的最少和最多数据库连接数。
连接超时:
回收连接池中的连接的时间(天)。
配置其他各种事项,配置管理员:admin, 密码:xxxxxx
5、安装配置plugin
将插件broadcast.jar,registration.jar,...等文件上传到/home/ftp/pub/Plugin目录:
# cd /home/ftp/pub/Plugin
# mv * /opt/jive_messenger/plugin/
# cd /opt/jive_messenger/bin
# ./messenger stop
# ./messenger start
系统会自动发现并接口配置插件。
使用管理控制台http://172.17.1.106:9090设置系统.
可以设置用户帐号、用户、用户组、房间等。
注意:
通过定义组,组中用户,并选定以下三项:
×启用名单中的共享组
×组显示名称
×在所有用户的名单中显示组。
可以定义很好的组织结构。
6、install Jive Messenger as a service
7、客户端
很好的客户端:
Coccinella : 白板功能。
whisper :smack实现。
exodus
BuddySpace :地图功能。
资源共享:我的ubuntu 使用历程(10-JIVE)
-
- 帖子: 132
- 注册时间: 2005-10-23 21:46
- 来自: 深圳