東川印記

一本東川,笑看爭龍斗虎;寰茫兦者,度橫佰昧人生。

Openfire即时通讯搭建jitsi视频通话

2014年10月23日星期四



mysql服务器
sudo apt-get install mysql-server
进入
mysql -u root -p
密码
远程访问不了http://blog.csdn.net/d87420572/article/details/8700902

授权
mysql>GRANT ALL PRIVILEGES ON *.* TO 'senRsl'@'%' IDENTIFIED BY '0123' WITH GRANT OPTION;
使修改生效FLUSH PRIVILEGES;
登陆
  1. senrsl@senrsl-ubuntu:~/test$ mysql -u root -p
  2. Enter password:
  3. Welcome to the MySQL monitor.  Commands end with ; or \g.
  4. Your MySQL connection id is 38
  5. Server version: 5.5.35-1ubuntu1 (Ubuntu)
  6. Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
  7. Oracle is a registered trademark of Oracle Corporation and/or its
  8. affiliates. Other names may be trademarks of their respective
  9. owners.
  10. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  11. mysql> use mysql;
  12. Reading table information for completion of table and column names
  13. You can turn off this feature to get a quicker startup with -A
  14. Database changed
  15. mysql> select host.user from user;
  16. ERROR 1054 (42S22): Unknown column 'host.user' in 'field list'
  17. mysql> select host,user from user;
  18. +---------------+------------------+
  19. | host          | user             |
  20. +---------------+------------------+
  21. | %             | root             |
  22. | %             | senRsl           |
  23. | 127.0.0.1     | root             |
  24. | ::1           | root             |
  25. | localhost     | debian-sys-maint |
  26. | localhost     | root             |
  27. | senrsl-ubuntu | root             |
  28. +---------------+------------------+
  29. 7 rows in set (0.00 sec)
  30. mysql>
关闭防火墙
sudo ufw status


查看端口是否开启
netstat -an | grep tcp



修改绑定地址
senrsl@senrsl-ubuntu:~/test$ sudo gedit /etc/mysql/my.cnf



重启mysql


部署openfire,到
jdbc:mysql://localhost:3306/test_openfire?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8

增加用户,用户后面@之后要填后来配的,比方说sd@192.168.9.9,当初配的是senrsl- ubuntu,所以,实际应该填 sd@senrsl-ubuntu,不然找不到用户。。。。

视频通话
Could not establish connection ICE failed
jvb.sh --secret=xxxxx --domain='example.com' --port=5275    sudo ./jvb.sh --secret=xxxxx --domain='192.168.9.9' --port=5275    
从一个内斗严重的阵地跳出来,跳到另一个内斗纷繁的环境中去。。。。

服务器 win server 2008配置openfire
jdbc:mysql://localhost:3306/openfire?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8

jdbc:mysql://127.0.0.1:3306/openfire?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8
jvb.bat --secret=dc --domain='192.168.4.225' --port=5275

无语,openfire只有x32的win版,放到x64一堆错,调好了结果插件又一堆错。。。。
服务器有四个网卡。。。。
128G内存。。。。
豪华配置。。。。
2014年10月22日21:35:55
闪人。


给架了个linux服务器,我去,除了ssh能不能图形化连接一下。。。。
[root@localhost ~]# lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID:    CentOS
Description:    CentOS release 6.2 (Final)
Release:    6.2
Codename:    Final
图形化VNC。。。。

好吧,带ftp的ssh比图形化啊好用

jdbc:mysql://192.168.4.225:3306/openfire?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8

使用自带的openjdk1.6,结果插件跑不起来。。。。
然后,卸载以前的,安新的。
查看以前的


[root@localhost bin]#  rpm -qa | grep java
openoffice.org-javafilter-3.2.1-19.6.el6_0.5.x86_64
tzdata-java-2011l-4.el6.noarch
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.41.1.10.4.el6.x86_64
java_cup-0.10k-5.el6.x86_64
[root@localhost bin]#
rpm -e --nodeps java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.41.1.10.4.el6.x86_64


然后安装新的
  1. [root@localhost openfire]# ll
  2. 总用量 133456
  3. -rw-r--r--  1 root root 126679286 10月 23 21:28 jdk-7u71-linux-x64.rpm
  4. drwxr-xr-x 10 root root      4096  5月  7 02:59 openfire
  5. -rw-r--r--  1 root root   9969978 10月 23 21:29 openfire_3_9_3.tar.gz
  6. [root@localhost openfire]# rpm -ivh jdk-7u71-linux-x64.rpm
  7. Preparing...                ########################################### [100%]
  8.    1:jdk                    ########################################### [100%]
  9. Unpacking JAR files...
  10.     rt.jar...
  11.     jsse.jar...
  12.     charsets.jar...
  13.     tools.jar...
  14.     localedata.jar...
  15.     jfxrt.jar...
  16. [root@localhost openfire]# java -version
  17. java version "1.7.0_71"
  18. Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
  19. Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
  20. [root@localhost openfire]#
然后跑openfire
然后插件被读出来了


./jvb.sh --secret=dc --domain='10.1.11.201' --port=5275  

下载jitsi源码,然后导入eclipse,编译,或者直接ant build run
详细教程https://jitsi.org/Documentation/ConfigureEclipseNew


jitsi跑android项目http://blog.csdn.net/t273453051/article/details/23924693
1,解压,导入源码,导入eclipse;
2,在jitsi目录下创建local.properties
内容
  1. # This file is automatically generated by Android Tools.
  2. # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
  3. #
  4. # This file must *NOT* be checked into Version Control Systems,
  5. # as it contains information specific to your local configuration.
  6. # location of the SDK. This is only used by Ant
  7. # For customization when using a Version Control System, please read the
  8. # header note.
  9. sdk.dir=/home/senrsl/android/adt-bundle-linux-x86_64-20140702/sdk
  10. # This file is automatically generated by Android Tools.
  11. # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
  12. #
  13. # This file must be checked in Version Control Systems.
  14. #
  15. # To customize properties used by the Ant build system use,
  16. # "ant.properties", and override values to adapt the script to your
  17. # project structure.
  18. #proguard.config=proguard.cfg
  19. # Project target.
  20. target=android-19
3,终端senrsl@senrsl-ubuntu:~/test/jisti/jitsi-android-master$ ant setup-libs
  1. senrsl@senrsl-ubuntu:~$ cd test/jisti/jitsi-android-master/
  2. senrsl@senrsl-ubuntu:~/test/jisti/jitsi-android-master$ ant setup-libs
  3. Buildfile: /home/senrsl/test/jisti/jitsi-android-master/build.xml
  4. define-jarjar:
  5. create-asset-dex:
  6. [getbuildtools] Using latest Build Tools: 20.0.0
  7.      [copy] Copying 20 files to /home/senrsl/test/jisti/jitsi-android-master/bin/asset-libs
  8.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/bin/asset-libs/protocol-sip.jar
  9.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/bin/asset-libs/smacklib.jar
  10.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/bin/asset-libs/protocol-jabber.jar
  11.     [mkdir] Created dir: /home/senrsl/test/jisti/jitsi-android-master/bin/jitsi_bundles_dex_dir
  12.       [dex] input: /home/senrsl/test/jisti/jitsi-android-master/bin/asset-libs
  13.       [dex] Converting compiled files and external libraries into /home/senrsl/test/jisti/jitsi-android-master/bin/jitsi_bundles_dex_dir/classes.dex...
  14.       [jar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/assets/jitsi-bundles-dex.jar
  15.    [delete] Deleting directory /home/senrsl/test/jisti/jitsi-android-master/bin/asset-libs
  16. setup-libs:
  17.     [mkdir] Created dir: /home/senrsl/test/jisti/jitsi-android-master/libs
  18.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/ui-service.jar
  19.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/protocol.jar
  20.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/libjitsi.jar
  21.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/bouncycastle.jar
  22.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/bccontrib.jar
  23.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/certificate.jar
  24.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/zrtp4j.jar
  25.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/otr.jar
  26.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/commons-codec.jar
  27.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/sdes4j.jar
  28.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/httpcore.jar
  29.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/httpclient.jar
  30.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/httputil.jar
  31.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/java-stubs.jar
  32.    [jarjar] Building jar: /home/senrsl/test/jisti/jitsi-android-master/libs/resourcemanager.jar
  33.      [copy] Copying 32 files to /home/senrsl/test/jisti/jitsi-android-master/libs
  34.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/browserlauncher.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/browserlauncher.jar
  35.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/callhistory.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/callhistory.jar
  36.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/contactlist.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/contactlist.jar
  37.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/contactsource.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/contactsource.jar
  38.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/credentialsstorage.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/credentialsstorage.jar
  39.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/defaultresources.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/defaultresources.jar
  40.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/dnsservice.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/dnsservice.jar
  41.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/filehistory.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/filehistory.jar
  42.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/globaldisplaydetails.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/globaldisplaydetails.jar
  43.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/history.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/history.jar
  44.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/metahistory.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/metahistory.jar
  45.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/msghistory.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/msghistory.jar
  46.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/muc.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/muc.jar
  47.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/netaddr.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/netaddr.jar
  48.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/notification-service.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/notification-service.jar
  49.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/notification-wiring.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/notification-wiring.jar
  50.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/plugin-loggingutils.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/plugin-loggingutils.jar
  51.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/replacement.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/replacement.jar
  52.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/sysactivitynotifications.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/sysactivitynotifications.jar
  53.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/systray-service.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/systray-service.jar
  54.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/updateservice.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/updateservice.jar
  55.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/bundles/util.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/util.jar
  56.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/native/armeabi/libjnawtrenderer.so to /home/senrsl/test/jisti/jitsi-android-master/libs/armeabi/libjnawtrenderer.so
  57.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/native/armeabi/libjnffmpeg.so to /home/senrsl/test/jisti/jitsi-android-master/libs/armeabi/libjnffmpeg.so
  58.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/native/armeabi/libjng722.so to /home/senrsl/test/jisti/jitsi-android-master/libs/armeabi/libjng722.so
  59.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/native/armeabi/libjnopensles.so to /home/senrsl/test/jisti/jitsi-android-master/libs/armeabi/libjnopensles.so
  60.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/native/armeabi/libjnopus.so to /home/senrsl/test/jisti/jitsi-android-master/libs/armeabi/libjnopus.so
  61.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/native/armeabi/libjnspeex.so to /home/senrsl/test/jisti/jitsi-android-master/libs/armeabi/libjnspeex.so
  62.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/android-support-v4.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/android-support-v4.jar
  63.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/log4j-1.2.8.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/log4j-1.2.8.jar
  64.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/osgi.core.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/osgi.core.jar
  65.      [copy] Copying /home/senrsl/test/jisti/jitsi-android-master/lib/smack-sasl.jar to /home/senrsl/test/jisti/jitsi-android-master/libs/smack-sasl.jar
  66. BUILD SUCCESSFUL
  67. Total time: 14 seconds
  68. senrsl@senrsl-ubuntu:~/test/jisti/jitsi-android-master$
4,编译成功,刷新项目,此时项目不报错,Run As,然后手机正常运行。

然后折腾PC客户端
https://jitsi.org/Documentation/ConfigureEclipseNew
http://blog.csdn.net/kl222/article/details/7489833
1,导入项目
2,配置ant,
eclipse,windows-show views-ant,打开ant视图,
右键 Add Buildfiles,选择项目下的build.xml

3,双击make执行编译,双击run执行运行。
4,配置debug
项目右键,debug as,debug configuration,

java application,New,依次填入。
切换选项卡到Arguments,
VM arg:
  1. -Dfelix.config.properties=file:lib/felix.client.run.properties
  2. -Djava.util.logging.config.file=lib/logging.properties
  3. -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=test/jisti/dev-debug
Apply,Debug.
一开始PC端用最新版2.5,结果没声音,视频超级不稳定,然后改下2.4最后一个版本,good.


明天开始改源码。

没有评论 :

发表评论