Difference between revisions of "SchoolOnffLine: Instalasi ejabberd Chatting Server"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 149: | Line 149: | ||
* [[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 Wikipedia for School]] | ||
* [[Remastering Ubuntu]] | * [[Remastering Ubuntu]] |
Revision as of 15:03, 2 August 2009
Instalasi eJabberd
# su - # apt-get install ejabberd
Ubah Sementara owner /var/lib/ejabberd
Jika semua proses konfigurasi sudah selesai dilakukan ubah lagi menjadi
# chown -Rf ejabberd.ejabberd /var/lib/ejabberd
Konfigurasi Server
Edit /etc/ejabberd/ejabberd.cfg
# vi /etc/ejabberd/ejabberd.cfg
{hosts, ["localhost", "192.168.0.254", "sekolah.sch.id"]}.
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, 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"}}.
{acl, admins, {user, "admin1", "192.168.0.254"}}. {acl, admins, {user, "guru1", "192.168.0.254"}}. {acl, admins, {user, "guru2", "192.168.0.254"}}. {acl, admins, {user, "guru3", "192.168.0.254"}}. {acl, admins, {user, "guru4", "192.168.0.254"}}. {acl, admins, {user, "guru5", "192.168.0.254"}}.
{acl, admins, {user, "admin1", "sekolah.sch.id"}}. {acl, admins, {user, "guru1", "sekolah.sch.id"}}. {acl, admins, {user, "guru2", "sekolah.sch.id"}}. {acl, admins, {user, "guru3", "sekolah.sch.id"}}. {acl, admins, {user, "guru4", "sekolah.sch.id"}}. {acl, admins, {user, "guru5", "sekolah.sch.id"}}.
{access, configure, [{allow, admins}]}. {access, announce, [{allow, admins}]}. {access, muc_admin, [{allow, admins}]}.
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 usernamejadiadmin password password-usernamejadiadmin