didism2
(usa Debian)
Enviado em 30/08/2016 - 12:43h
Olá Carlos , obrigado pela sua resposta
Aos que estão chegando agora nesse tópico , informo que consegui fazer a instalação seguindo esse tudo aqui:
https://community.igniterealtime.org/thread/53527
1. Install Ubuntu
i. Setup primary user: UbuntuMainUser
Reference:
http://www.simpleprecision.com/how-to-set-a-static-ip-to-ubuntu-14-04-server/
ii. Set network config
$ sudo vi /etc/network/interfaces
Reference:
https://igniterealtime.jiveon.com/thread/52470
2. Download Openfire .deb
$ wget --no-certificate-check
https://download.igniterealtime.org/openfire/openfire_3.9.3_all.deb
Reference:
https://help.ubuntu.com/community/Java,
http://www.duinsoft.nl/packages.php
3. Install latest version of Oracle Sun Java
i. $ sudo vi /etc/apt/sources.list
Add line: deb
http://www.duinsoft.nl/pkg debs all
ii. Import gpg key
$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
iii. Install Java
$ sudo apt-get update
$ sudo apt-get install update-sun-jre
Reference:
https://help.ubuntu.com/community/PostgreSQL,
https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/databas e.html
4. Install latest version of PostgreSQL
$ sudo apt-get install postgresql postgresql-contrib
5. Setup PostgreSQL database
i. Set postgres user password
$ sudo -u postgres psql postgres
# \password postgres
Ctrl + D
ii. Create Database for Openfire
$ sudo -u postgres createdb -E UNICODE openfire_db
iii. Create User for Openfire Database access
$ sudo -u postgres createuser -D -A -P db_admin
Reference:
http://www.postgresql.org/docs/9.3/static/sql-grant.html
iv. Give User Access to Openfire Database
$ sudo -u postgres psql postgres
# GRANT ALL PRIVILEGES ON openfire_db TO db_admin;
Ctrl + D
6. Import Openfire's PostgreSQL schema
i. Add user UbuntuMainUser to PostgreSQL
$ sudo -u postgres createuser --superuser UbuntuMainUser
$ sudo -u postgres psql
# \password UbuntuMainUser
Ctrl + D
ii. Grant all privileges to openfire_db to UbuntuMainUser
$ sudo -u postgres psql postgres
# GRANT ALL PRIVILEGES ON DATABASE openfire_db TO 'UbuntuMainUser';
Ctrl + D
iii. Copy schema file to UbuntuMainUser's home directory
$ cp ../openfire/resources/database/openfire_postgresql.sql /home/UbuntuMainUser/
iv. Take ownership of schema file
$ sudo chown UbuntuMainUser:UbuntuMainuser openfire_postgresql.sql
v. Import schema file to Openfire Database
$ psql -d openfire_db -f /home/UbuntuMainUser/openfire_postgresql.sql
vi. Give ownership of Openfire Database back to Openfire Database User
$ sudo -u postgres psql postgres
# ALTER DATABASE openfire_db OWNER to db_admin;
# \c openfire_db;
# REASSIGN OWNED BY UbuntuMainUser TO db_admin;
CTRL + D
7. Install Openfire .deb
$ sudo dpkg -i openfire_3.9.3_all.deb
8. Run Openfire webconfig at
http://your.ubuntu.server.IP:9090
i. Language: English (or your choice)
ii. Server Info
Domain: Put here whatever you want to be after @ for your Openfire usernames. For example, if you want Jessica@openfire.company.com, put 'openfire.company.com' here.
Blowfish Encryption: Create your own long string of characters, letters, numbers, and symbols here
iii.Database
External Database
Type: PostgreSQL
Address: http://localhost:5432/openfire_db
Login: db_admin
Password: (from step 6.i.)