Difference between revisions of "SchoolOnffLine: Instalasi ejabberd Chatting Server"

From OnnoWiki
Jump to navigation Jump to search
Line 14: Line 14:
 
  {hosts, ["localhost", "192.168.0.254", "sekolah.sch.id","sekolah"]}.
 
  {hosts, ["localhost", "192.168.0.254", "sekolah.sch.id","sekolah"]}.
  
==Tambahkan User Demo==
 
 
Restart ejabberd
 
 
# /etc/init.d/ejabberd restart
 
 
Add user dari [[shell]]
 
 
ejabberdctl register admin1 localhost 123456
 
ejabberdctl register siswa1 localhost 123456
 
ejabberdctl register siswa2 localhost 123456
 
ejabberdctl register siswa3 localhost 123456
 
ejabberdctl register siswa4 localhost 123456
 
ejabberdctl register siswa5 localhost 123456
 
ejabberdctl register guru1 localhost 123456
 
ejabberdctl register guru2 localhost 123456
 
ejabberdctl register guru3 localhost 123456
 
ejabberdctl register guru4 localhost 123456
 
ejabberdctl register guru5 localhost 123456
 
 
ejabberdctl register admin1 192.168.0.254 123456
 
ejabberdctl register siswa1 192.168.0.254 123456
 
ejabberdctl register siswa2 192.168.0.254 123456
 
ejabberdctl register siswa3 192.168.0.254 123456
 
ejabberdctl register siswa4 192.168.0.254 123456
 
ejabberdctl register siswa5 192.168.0.254 123456
 
ejabberdctl register guru1 192.168.0.254 123456
 
ejabberdctl register guru2 192.168.0.254 123456
 
ejabberdctl register guru3 192.168.0.254 123456
 
ejabberdctl register guru4 192.168.0.254 123456
 
ejabberdctl register guru5 192.168.0.254 123456
 
 
ejabberdctl register admin1 sekolah.sch.id 123456
 
ejabberdctl register siswa1 sekolah.sch.id 123456
 
ejabberdctl register siswa2 sekolah.sch.id 123456
 
ejabberdctl register siswa3 sekolah.sch.id 123456
 
ejabberdctl register siswa4 sekolah.sch.id 123456
 
ejabberdctl register siswa5 sekolah.sch.id 123456
 
ejabberdctl register guru1 sekolah.sch.id 123456
 
ejabberdctl register guru2 sekolah.sch.id 123456
 
ejabberdctl register guru3 sekolah.sch.id 123456
 
ejabberdctl register guru4 sekolah.sch.id 123456
 
ejabberdctl register guru5 sekolah.sch.id 123456
 
 
==Konfigurasi Administrator==
 
 
# vi /etc/ejabberd/ejabberd.cfg
 
 
Set Previlige Admin
 
 
{acl, admin, {user, "admin1", "localhost"}}.
 
{acl, admin, {user, "guru1", "localhost"}}.
 
{acl, admin, {user, "guru2", "localhost"}}.
 
{acl, admin, {user, "guru3", "localhost"}}.
 
{acl, admin, {user, "guru4", "localhost"}}.
 
{acl, admin, {user, "guru5", "localhost"}}.
 
 
{acl, admin, {user, "admin1", "192.168.0.254"}}.
 
{acl, admin, {user, "guru1", "192.168.0.254"}}.
 
{acl, admin, {user, "guru2", "192.168.0.254"}}.
 
{acl, admin, {user, "guru3", "192.168.0.254"}}.
 
{acl, admin, {user, "guru4", "192.168.0.254"}}.
 
{acl, admin, {user, "guru5", "192.168.0.254"}}.
 
 
{acl, admin, {user, "admin1", "sekolah.sch.id"}}.
 
{acl, admin, {user, "guru1", "sekolah.sch.id"}}.
 
{acl, admin, {user, "guru2", "sekolah.sch.id"}}.
 
{acl, admin, {user, "guru3", "sekolah.sch.id"}}.
 
{acl, admin, {user, "guru4", "sekolah.sch.id"}}.
 
{acl, admin, {user, "guru5", "sekolah.sch.id"}}.
 
 
Pastikan ..
 
 
{access, configure, [{allow, admin}]}.
 
{access, announce, [{allow, admin}]}.
 
{access, muc_admin, [{allow, admin}]}.
 
  
 
Restart eJabberd
 
Restart eJabberd
Line 106: Line 30:
 
  # ejabberdctl status
 
  # ejabberdctl status
 
  # ejabberdctl stop
 
  # ejabberdctl stop
 +
 +
 +
* [[SchoolOnffLine: ejabberd - menambahkan / mengurangi user]]
  
  
Line 119: Line 46:
  
 
  # ejabberdctl unregister namauser namaserver
 
  # ejabberdctl unregister namauser namaserver
 +
  
  

Revision as of 08:34, 7 September 2009

Pastikan anda sebagai root. Instalasi eJabberd dapat dilakukan menggunakan perintah

su -
apt-get install ejabberd


Konfigurasi Server

Edit /etc/ejabberd/ejabberd.cfg

# vi /etc/ejabberd/ejabberd.cfg 
{hosts, ["localhost", "192.168.0.254", "sekolah.sch.id","sekolah"]}.


Restart eJabberd

# /etc/init.d/ejabberd restart

Start & Stop Server

Start & Stop eJabberd

# /etc/init.d/ejabberd stop
# /etc/init.d/ejabberd start
# /etc/init.d/ejabberd restart
# ejabberdctl start
# ejabberdctl status
# ejabberdctl stop



Add & Remove User

Add user

# ejabberdctl register admin1 example.org FgT5bk3
# ejabberdctl register namauser namaserver password


Remove User

# ejabberdctl unregister namauser namaserver



Web Admin

http://192.168.0.254:5280/admin/

Login dengan

username admin1@192.168.0.254
password 123456
Ejabberd-01.jpeg
Ejabberd-02.jpeg
Ejabberd-03.jpeg
Ejabberd-04.jpeg
Ejabberd-05.jpeg
Ejabberd-06.jpeg

Pranala Menarik