Chat Server untuk keperluan Mengajar

Iseng juga tengah malem configure chat server di VPS sendiri supaya bisa dimanfaatkan sebagai acuan diskusi para mahasiswa.

Setelah diberdayakan lewat mail server, dan blog sendiri, insyAllah semoga chat server ini bisa berlaku untuk keperluan mengajar.

seperti biasa saya malas menuliskan panduan konfigurasi nya disini, [bukannya pelit… tapi seprtinya dah banyak deh klw googling dan berbagai panduan nan jauh disana]. Namun seperti biasa : No Screenshots are HOAX.

OPENFIRE

Sebagai tambahan, jika kita ingin membangun chat server dengan menggunakan ejabberd (menggunakan protokol xmpp), maka bisa dengan beberapa langkah berikut :
1. ~# hostname # periksa nama hostname server kamu
2. ~# wget -c “https://www.process-one.net/downloads/ejabberd/2.1.10/ejabberd-2.1.10-linux-x86_64-installer.bin.gz”
3. ~# gunzip ejabberd* && chmod +x ejabberd* && ./ejabberd-2.1.10-linux-x86_64-installer.bin
4. ~# cd /opt/ejabberd/conf/ # default path directory installation
5. You have to allowed port number 5222 and 5280 first on your firewall/ proxy application
6. Download ejabberd DB (change file format only to .sql , not .pdf) : ejabberd.sql
Give them privileges with username ‘ejabberd’ and password ‘ejabberd@jojoku’.
7. Open ejabberd.cfg file, then setup these params (we will use odbc method instead internal auth_method) :
– markup (%%{auth_method, internal}.)
– Setup ({odbc_server, {mysql, “localhost”, “ejabberd”, “ejabberd”, “ejabberd@jojoku”}}.)
– Setup ({hosts, [“jojoku”,”<your_nameserver>”]}.)
– Setup ({acl, admin, {user, “admin”, “jojoku”}}.)
– Setup :
{mod_pubsub_odbc,   [ % requires mod_caps
{access_createnode, pubsub_createnode},
{ignore_pep_from_offline, true},
{last_item_cache, false},
%%%%%%{plugins, [“flat”, “hometree”, “pep”]}
{plugins, [“flat_odbc”, “hometree_odbc”, “pep_odbc”]}
]},
– Change with adding postfix mod_last, mod_offline, mod_privacy, mod_private, mod_pubsub, mod_roster, mod_vcard with ‘_odbc’ (without quote).
8. Check your ERLANG_NODE=ejabberd@localhost (change with your hostname server).
9. *(Optional) If you ‘missed’ module of ejabberd-mysql. Download from this : ~# svn co http://svn.process-one.net/ejabberd-modules/mysql/trunk/ && cd trunk && ./build && cp -pa ebin/*.beam src/*.erl /usr/lib64/ejabberd/ebin/ && /opt/ejabberd-2.1.10/bin/stop && /opt/ejabberd-2.1.10/bin/start .
If you do not want tls authentication. Markup starttls in this params :
{listen,
[
{5222, ejabberd_c2s, [
%% {certfile, “/opt/ejabberd-2.1.10/conf/server.pem”}, starttls,
{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 65536}
]},
…..
10. Try to register user with these params :
~# /opt/ejabberd-2.1.10/bin/ejabberdctl register <user> <server> <password> # like : ejabberdctl register admin jojoku tes123
11. Those params will set ejabberd user to be : admin@jojoku with password : tes123 then triggered into users table on ejabberd database.
12. Done !!. Alhamdulillah
hijabberd
testOS

Advertisements

Tinggalkan pesan atau komentar

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s