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

From OnnoWiki
Jump to navigation Jump to search
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
Instalasi eJabberd
+
Pastikan anda sebagai root. Instalasi eJabberd dapat dilakukan menggunakan perintah
  
  # su -
+
  su -
  # apt-get install ejabberd
+
  apt-get install ejabberd
 
 
 
 
==Ubah Sementara owner /var/lib/ejabberd==
 
 
 
# chown -Rf root.root /var/lib/ejabberd
 
 
 
Jika semua proses konfigurasi sudah selesai dilakukan ubah lagi menjadi
 
 
 
# chown -Rf ejabberd.ejabberd /var/lib/ejabberd
 
  
  
Line 19: Line 10:
 
Edit /etc/ejabberd/ejabberd.cfg  
 
Edit /etc/ejabberd/ejabberd.cfg  
  
  # vi /etc/ejabberd/ejabberd.cfg  
+
  vi /etc/ejabberd/ejabberd.cfg  
  
  {hosts, ["localhost", "192.168.0.254", "sekolah.sch.id"]}.
+
  {hosts, ["localhost","192.168.0.254","sekolah.sch.id","sekolah"]}.
  
  
==Tambahkan User Demo==
+
Restart eJabberd
 
 
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, admins, {user, "admin1", "localhost"}}.
 
{acl, admins, {user, "guru1", "localhost"}}.
 
{acl, admins, {user, "guru2", "localhost"}}.
 
{acl, admins, {user, "guru3", "localhost"}}.
 
{acl, admins, {user, "guru4", "localhost"}}.
 
{acl, admins, {user, "guru5", "localhost"}}.
 
{access, configure, [{allow, admins}]}.
 
  
 +
/etc/init.d/ejabberd restart
  
 
==Start & Stop Server==
 
==Start & Stop Server==
Line 87: Line 23:
 
Start & Stop eJabberd
 
Start & Stop eJabberd
  
  # /etc/init.d/ejabberd stop
+
  /etc/init.d/ejabberd stop
  # /etc/init.d/ejabberd start
+
  /etc/init.d/ejabberd start
  # /etc/init.d/ejabberd restart
+
  /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
+
  ejabberdctl start
 +
ejabberdctl status
 +
ejabberdctl stop
  
 +
==Setup Demo User==
  
 +
* [[SchoolOnffLine: ejabberd - menambahkan / mengurangi user]]
  
 
==Web Admin==
 
==Web Admin==
Line 116: Line 41:
 
Login dengan
 
Login dengan
  
  username usernamejadiadmin
+
  username admin1@sekolah.sch.id
  password password-usernamejadiadmin
+
  password 123456
  
 
[[Image:Ejabberd-01.jpeg|center|200px|thumb]]
 
[[Image:Ejabberd-01.jpeg|center|200px|thumb]]
Line 130: Line 55:
  
 
[[Image:Ejabberd-06.jpeg|center|200px|thumb]]
 
[[Image:Ejabberd-06.jpeg|center|200px|thumb]]
 
 
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 
* [[Remaster Ubuntu untuk SchoolOnffLine Menggunakan UCK]]
 
* [[Remaster Ubuntu untuk SchoolOnffLine Menggunakan UCK]]
 +
* [[SchoolOnffLine: Server Berbasis Sabily 9.04]]
 +
* [[SchoolOnffLine: Server Berbasis Ubuntu 9.04]]
 +
* [[SchoolOnffLine: Server Berbasis Ubuntu]]
 +
* [[SchoolOnffLine: Server Berbasis Ubuntu 9.04 Alternate]]
 +
* [[SchoolOnffLine: Server Berbasis Ubuntu 9.04 Server]]
 +
* [[SchoolOnffLine: Server Wikipedia for School]]
 
* [[Remastering Ubuntu]]
 
* [[Remastering Ubuntu]]
 +
 +
[[Category: Linux]]
 +
[[Category: Distro Linux]]
 +
[[Category: SchoolOnffLine]]

Latest revision as of 14:36, 17 November 2010

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

Setup Demo User

Web Admin

http://192.168.0.254:5280/admin/

Login dengan

username admin1@sekolah.sch.id
password 123456
Ejabberd-01.jpeg
Ejabberd-02.jpeg
Ejabberd-03.jpeg
Ejabberd-04.jpeg
Ejabberd-05.jpeg
Ejabberd-06.jpeg

Pranala Menarik