Februari 20, 2009

Automatic Startup - Shutdown LISTENER ORACLE 11g

1. create script status listener
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi statuslsnr
#!/bin/sh
# Start the oracle listener
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=mkt
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=ubs
export ORACLE_TERM=xterm
$ORACLE_HOME/bin/lsnrctl status
exit 0

[oracle@mkt ~]$ chmod u+x statuslsnr

2. create script start listener
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi startlsnr
#!/bin/sh
# Start the oracle listener
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=mkt
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=ubs
export ORACLE_TERM=xterm
$ORACLE_HOME/bin/lsnrctl start
exit 0

[oracle@mkt bin]$ chmod u+x startlsnr

3. create script stop listener
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi stoplsnr
#!/bin/sh
# Start the oracle listener
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=mkt
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=ubs
export ORACLE_TERM=xterm
$ORACLE_HOME/bin/lsnrctl stop
exit 0

[oracle@mkt bin]$ chmod u+x stoplsnr

4. create script status,start dan stop listener
[oracle@mkt ~]$ cd $ORACLE_HOME/bin
[oracle@mkt bin]$ vi listener11g
#!/bin/sh
#
# chkconfig: 345 51 49
# description: startup and shutdown the Oracle 11g listener
#
echo “Oracle 11g listener start/stop/status”
ORA_OWNER=oracle
ORA_BASE=/u01/app/oracle
ORA_HOME=$ORA_BASE/product/11.1.0/db_1

case “$1″ in
’start’)
# Start the listener
echo -n “Starting the Listener for 11g: “
su - $ORA_OWNER -c $ORA_HOME/bin/startlsnr
echo
;;

’stop’)
# Stop the listener
echo -n “Shutting down Listener for 11g: “
su - $ORA_OWNER -c $ORA_HOME/bin/stoplsnr
echo
;;

’status’)
# Status the listener
echo -n “Status Listener for 11g: “
su - $ORA_OWNER -c $ORA_HOME/bin/statuslsnr
echo
;;

‘restart’)
# Restart the Oracle databases:
echo -n “Restarting Listener for 11g:”
$0 stop
$0 start
echo
;;
*)

echo “Usage: listener11g [ status | start | stop | restart }"
exit 1
esac
exit 0

[oracle@ubs bin]$ chmod u+x listener11g

4. copy script listener11g to /etc/rc.d/init.d/
[oracle@mkt bin]$ su - root
Password:
[root@mkt ~]# cp /u01/app/oracle/product/11.1.0/db_1/bin/listener11g /etc/rc.d/init.d/
[root@mkt ~]# chmod 700 /etc/rc.d/init.d/listener11g

5. test script listener11g login as root
[root@mkt ~]# cd /etc/rc.d/init.d
[root@mkt init.d]# ./listener11g
Oracle 11g listener start/stop/status
Usage: listener11g [ status | start | stop | restart }

[root@mkt init.d]# ./listener11g status
Oracle 11g listener start/stop/status
Status Listener for 11g:
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 09-DEC-2008 14:41:00
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mkt.localdomain)(PORT=1521)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date 09-DEC-2008 07:55:38
Uptime 0 days 6 hr. 45 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/mkt/listener/alert/log.xml
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mkt.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary…
Service “mkt” has 1 instance(s).
Instance “mkt”, status READY, has 1 handler(s) for this service…
Service “mktXDB” has 1 instance(s).
Instance “mkt”, status READY, has 1 handler(s) for this service…
Service “mkt_XPT” has 1 instance(s).
Instance “mkt”, status READY, has 1 handler(s) for this service…
The command completed successfully

[root@mkt init.d]# ./listener11g restart
Oracle 11g listener start/stop/status
Restarting Listener for 11g:Oracle 11g listener start/stop/status
Shutting down Listener for 11g:
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 09-DEC-2008 14:42:02

Copyright (c) 1991, 2007, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mkt.localdomain)(PORT=1521)))
The command completed successfully

Oracle 11g listener start/stop/status
Starting the Listener for 11g:
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 09-DEC-2008 14:42:07

Copyright (c) 1991, 2007, Oracle. All rights reserved.

Starting /u01/app/oracle/product/11.1.0/db_1/bin/tnslsnr: please wait…

TNSLSNR for Linux: Version 11.1.0.6.0 - Production
System parameter file is /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/mkt/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mkt.localdomain)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mkt.localdomain)(PORT=1521)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date 09-DEC-2008 14:42:07
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.1.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/mkt/listener/alert/log.xml
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mkt.localdomain)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully

6. chkconfig script listener11g
[root@mkt init.d]# /sbin/chkconfig –add listener11g
[root@mkt init.d]# /sbin/chkconfig –list listener11g
listener11g 0 :o ff 1 :o ff 2 :o ff 3 :o n 4 :o n 5 :o n 6 :o ff
[root@mkt init.d]# /sbin/chkconfig listener11g on

Resetting Catalyst Switch

Reset Catalyst Switches Running Cisco IOS Software

The procedure in this section applies to the router cards, the modular or fixed configuration switches, and GL-3 Catalyst series switches running Cisco IOS Software:

  • Router cards

    • WS-X4232-L3 (Catalyst 4006/4000)

    • RSM/RSFC (Catalyst 5500/5000)

    • MSFC/MSM (Catalyst 6500/6000)

  • Catalyst modular switches

    • Catalyst 6500/6000

    • Catalyst 4500/4000

  • Catalyst fixed configuration switches

    • Catalyst 2940

    • Catalyst 2950/2955

    • Catalyst 2970

    • Catalyst 3550

    • Catalyst 3560

    • Catalyst 3750

    • Catalyst 2900XL/3500XL

  • GL-3 Catalyst switches

    • Catalyst 2948G-L3

    • Catalyst 4908G-L3

Switches running Cisco IOS Software have a running configuration file and a startup configuration file. The RAM stores the running configuration, and the NVRAM stores the startup configuration. When you make a configuration change to a switch running Cisco IOS Software, the change becomes part of the running configuration. You must save the configuration changes to the startup configuration; otherwise, the configuration is lost during the next reload or power outage. This is because you lose the running configuration stored in RAM when you reload the switch or turn off the power. To save the configuration into NVRAM, issue the write memory command or the copy running-config startup-config command. If you do not save your changes to NVRAM, the changes clear from RAM and are no longer part of the startup configuration when the switch reloads.

On the Catalyst modular or fixed configuration switches running Cisco IOS Software, a separate file stores the VLAN information. The file is called vlan.dat file and is stored in NVRAM for modular switches or in Flash for fixed configuration switches. To reset these switches to factory defaults, you need to delete the startup configuration and the vlan.dat file. To restore the Catalyst 2948G-L3/4908G-L3 switches and router cards to the factory defaults, you only need to delete the startup configuration file. These switches do not contain VLAN information because they do not participate in VLAN Trunk Protocol (VTP).

Reset Switch Configuration

To reset the switch to factory default, issue the erase startup-config or write erase command. This command does not clear the boot variables, such as config-register and boot system settings. You can alter the boot system parameters with the boot command. In Catalyst 4500/4000 and 6500/6000 series switches running Cisco IOS Software, you can change the configuration register value with the config-register command.

This example shows how to reset a switch running Cisco IOS Software to factory defaults with the write erase command:

Cat2950# write erase
Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK]
Erase of nvram: complete
Cat2950#
Cat2950# reload

System configuration has been modified. Save? [yes/no]: n

!--- Do not save the configuration at this prompt. Otherwise, the switch
!--- reloads with the current running configuration and does not reset to default.

Proceed with reload? [confirm]y

2w0d: %SYS-5-RELOAD: Reload requested

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 18:57 by antonino
WS-C2950G-12-EI starting...


!--- Output suppressed.


32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:05:DC:C9:79:00
Motherboard assembly number: 73-5781-08
Motherboard serial number: FAB0515A069
Model revision number: 02
Model number: WS-C2950-24
System serial number: FAB0517Q00B

--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]:n
00:00:16: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
00:00:21: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software(C2950-I6Q4L2-M)Version 12.1(19)EA1, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2003 by cisco Systems, Inc.
Compiled Tue 09-Dec-03 00:12 by yenanh

Press RETURN to get started!

00:00:37: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down
00:00:38: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
Switch>
Switch>

At this stage, the switch configuration has reset to the factory defaults, with the exclusion of the VLAN information.

Reset VLAN Information

To reset the VLAN information to the factory defaults, delete the vlan.dat file from the Flash or NVRAM and reload the switch. On the 6500/6000 series switches running Cisco IOS Software, the vlan.dat file is stored in const_nvram. On the 4500/4000 series switches running Cisco IOS Software, the vlan.dat file is stored in cat4000_flash:. On the 2940, 2950/2955, 2970, 3550, 3550, 3560, 3570, and 2900XL/3500XL fixed configuration switches, the vlan.dat file is stored in flash:.

To erase the vlan.dat file on the 6500/6000 switches, issue the erase const_nvram: command. On the 4500/4000 switches, issue the erase cat4000_flash: command. On the fixed configuration switches, issue the delete flash:vlan.dat command.

The example steps show how to delete the VLAN information on Catalyst fixed configuration switches. You can use the same steps, with their respective commands, for the 6500/6000 and 4500/4000 running Cisco IOS Software:

  1. To verify the VLAN information, issue the show vlan command, and to verify the vlan.dat file, issue the dir command.

    Cat2950# show vlan

    VLAN Name Status Ports
    ---- -------------------------------- --------- -------------------------------
    1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
    Fa0/5, Fa0/6, Fa0/7, Fa0/8
    Fa0/9, Fa0/10, Fa0/11, Fa0/12
    Fa0/13, Fa0/14, Fa0/15, Fa0/16
    Fa0/17, Fa0/18, Fa0/19, Fa0/20
    Fa0/21, Fa0/22, Fa0/23, Fa0/24

    2 VLAN0002 active
    3 VLAN0003 active
    4 VLAN0004 active



    !--- Despite the erase of the startup configuration file,
    !--- these user-created VLANs remain.



    600 VLAN0600 active
    1002 fddi-default active
    1003 token-ring-default active
    1004 fddinet-default active
    1005 trnet-default active

    VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
    ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
    1 enet 100001 1500 - - - - - 1002 1003
    2 enet 100002 1500 - - - - - 0 0
    3 enet 100003 1500 - - - - - 0 0
    4 enet 100004 1500 - - - - - 0 0
    600 enet 100600 1500 - - - - - 0 0
    1002 fddi 101002 1500 - - - - - 1 1003
    1003 tr 101003 1500 1005 - - - srb 1 1002
    1004 fdnet 101004 1500 - - 1 ibm - 0 0
    1005 trnet 101005 1500 - - 1 IBM - 0 0
    Switch#


    Cat2950# dir flash:

    !--- On the 4500/4000, issue the dir cat4000_flash: command.
    !--- On the 6500/6000, issue the dir const_nvram: command.


    Directory of flash:/

    2 -rwx 2487439 Mar 11 1993 01:25:32 c2950-i6q4l2-mz.121-9.EA1d.bin
    3 -rwx 840 Mar 20 1993 09:20:09 vlan.dat

    !--- This vlan.dat file stores user-configured VLANs.

    4 -rwx 2491435 Mar 08 1993 16:14:13 c2950-mvr.bin
    6 -rwx 42 Mar 01 1993 00:07:35 env_vars
    7 -rwx 109 Mar 11 1993 01:23:56 info
    8 drwx 640 Mar 11 1993 01:26:35 html
    19 -rwx 109 Mar 11 1993 01:26:35 info.ver

    7741440 bytes total (1088512 bytes free)
    Switch#
  2. Delete the VLAN information from Flash or NVRAM, and reload the switch.

    Note: On the 6500/6000 and 4500/4000 running early versions of Cisco IOS Software, the delete command may not work. Instead, you must issue the command erase const_nvram: or the command erase cat4000_flash:. Do not specify the vlan.dat file in the command syntax. However, on later versions of Cisco IOS Software, the delete const_nvram:vlan.dat command works for the 6500/6000, and the delete cat4000_flash:vlan.dat command works on the 4500/4000.

    Cat2950# delete flash:vlan.dat
    Delete filename [vlan.dat]?

    !--- Press Enter.

    Delete flash:vlan.dat? [confirm]y

    Cat2950# reload
    Proceed with reload? [confirm]y
    4w5d: %SYS-5-RELOAD: Reload requested
  3. After reload, check the VLAN information with the show vlan command.

    The user-configured VLANs no longer appear in the command output. Only factory-default VLAN information is on the switch.

    Cat2950# show vlan

    VLAN Name Status Ports
    ---- -------------------------------- --------- -------------------------------
    1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
    Fa0/5, Fa0/6, Fa0/7, Fa0/8
    Fa0/9, Fa0/10, Fa0/11, Fa0/12
    Fa0/13, Fa0/14, Fa0/15, Fa0/16
    Fa0/17, Fa0/18, Fa0/19, Fa0/20
    Fa0/21, Fa0/22, Fa0/23, Fa0/24
    1002 fddi-default active
    1003 token-ring-default active
    1004 fddinet-default active
    1005 trnet-default active

    VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
    ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
    1 enet 100001 1500 - - - - - 0 0
    1002 fddi 101002 1500 - - - - - 0 0
    1003 tr 101003 1500 - - - - - 0 0
    1004 fdnet 101004 1500 - - - ieee - 0 0
    1005 trnet 101005 1500 - - - IBM - 0 0
    Switch#

Reset Catalyst Switches in Redundant Mode

For the 6500/6000 and 5500/5000 switches running CatOS in redundant mode, the standby Supervisor Engine synchronizes with changes made to the active Supervisor Engine. So, if you reset the configuration on the active Supervisor Engine to factory defaults with the clear config command, the standby Supervisor Engine also resets to factory defaults. Whether you set the configuration mode to binary or text mode with the set config mode command, the switch resets to factory defaults when you clear the configuration on the active Supervisor Engine.

To reset 6500/6000 switches running Cisco IOS Software in redundant mode to factory defaults, you need to complete these steps:

  1. Erase the startup configuration with the erase startup-config command on the active Supervisor Engine.

    Note: This also erases the startup configuration on the standby Supervisor Engine.

  2. Delete the vlan.dat file as shown in the Reset VLAN Information section of this document.

  3. Reload the active Supervisor Engine with the reload command

Note: If the Supervisor Engine enters the ROMmon mode after it reloads, check the boot variable to see if it is set to boot from the proper image. You may also refer to the document Recovering a Catalyst 6500/6000 Running Cisco IOS System Software from a Corrupted or Missing Boot Loader Image or ROMmon Mode for further troubleshooting information.

Membuat Billing Hotspot

Tutorial from firsty

Perpaduan Chillispot, Freeradius dan Mysql dapat menghasilkan aplikasi Hotspot lumayan handal. Chillispot sebagai Authentikasi, Freeradius untuk account phpmyprepaid sebagai billlingnya dan Mysql untuk databasenya.

Sebagai uji coba saya akan menjelaskan bagaimana cara membuat Wi-Fi Hotspot terserbut :

A. Yang dibutuhkan :

1. Hotspot Access Point device, dalam hal ini saya menggunakan Linksys Tipe 54 GL AP bisa di gunakan AP Tipe apa saja.

2. Sebuah komputer yang akan di jadikan sebagai radius server.

3. OS GNU/Linux, Saya menggunakan OpenSUSE (10.2), Ubuntu, Slackware (dijelaskan)

4. Mysql, untuk Authentic melalui database, untuk authentic nya bisa dengan beberapa cara seperti : unix user, smb user, file user

5. Apache dengan perl support, untuk membuat user authentic melalui web-based, serta utk membuat login authentic via web-based di cgi-bin/hotspotlogin.cgi

6. Chillispot, sistem kerja software ini adalah apabila user belum mendapatkan authentic dari server maka ia akan ter-redirect ke halaman login

7. Freeradius, ini berfungsi sebagai pemberi authentifikasi kepada user

8. PhpMyPrepaid, bila anda menggukan authentic melalui database Mysql, bisa juga sebagai pembuat user prepaid untuk billingnya

9. Rokok, bisa Djarum Super bisa juga Marlboro, Atau Fileter Sejenisnya.

10. Kopi, biar kuat begadang. atau susu putih ajah, gak usah pake gula, biar segerrrrrrr. menulis ini aja perlu Sopi Susu

B. Cara Install :

1. Untuk OS tergantung dari distro apa yang anda pakai, kali ini saya memakai distro keluaran dari SUSE (OpenSUSE 10.2-10.3). Saya hanya akan menjelaskan cara meng-install-nya dengan cara Distro OpenSUSE, Ubuntu Slackware dan untuk yang lain itu tergantung distro apa yang anda pilih dan nantinya di bagian konfigurasi akan di samakan untuk beberapa distro di atas.

2. Install mysql

3. Install Apache

4. Download chillispot; lalu install rpm -ivh chillispot-1.0.i386.rpm (Keluarga RPM) silahkan di sesuaikan sesuai keluarganya masing-masing (jika menggunakan Chilli di PC).

5. Install Freeradius

6. Setelah kita mengintsall Apache dan Mysql lalu kita dapat men-download phpmyprepait;

extract ke /srv/www/htdocs

7. Sambil menginstall semua jgn lupa ambil rokok dan di nyalakan.

8. Jangan lupa untuk menyeduh kopi atau susunya.

3. Configurasi :

1. Saya mengeset Wi-Fi Hostpot (Linksys WRT 54GL) sebagai Access Point. Kemudian Linksys tersebut di upgrede ke OpenWRT dan install Chillispot di dalam Linsys WRT 54GL tersebut. setelah selesai melakukan konfigurasi

# nvram set wan_device=eth0

Paket yang di perlukan dalam linksys yaitu :

* ip_2.6.11-050330-1_mipsel.ipk

* libpcap_0.9.4-1_mipsel.ipk

* tcpdump_3.8.3-1_mipsel.ipk

* kmod-sched_2.4.30-brcm-3_mipsel.ipk

* tc_2.6.11-050330-1_mipsel.ipk

* chillispot_1.0RC3-1_mipsel.ipk (diperlukan jika chilli diletakkan di Linksys)

* kmod-tun_2.4.30-1.ipk

1. Berikut konfigurasi Linsys WRT 54GL

nvram set lan_proto=static

nvram set lan_ipaddr=192.168.10.254

nvram set lan_netmask=255.255.255.0

- seting wan/internet

nvram set wan_proto=static nvram set wan_ipaddr=XX.XX.XX.XX (berikan ip local)

nvram set wan_netmask=255.255.255.0

nvram set wan_gateway=XX.XX.XX.XX

nvram set wan_dns=”diisi” Biarkan terpasang.

nvram set wan_hostname= (pengguna)

- Seting AP

nvram set wl0_mode=ap

nvram set wl0_ssid=disesuikan

nvram set wl0_auth_mode=open

nvram set wl0_wep=disabled

nvram set wl0_channel=(pilih channel yang cocok)

nvram commit

2. Setelah melukuan flashing dan Install OS nya seperti kebutuhan diatas dan di sesuaikan, pertama kita harus mematikan service dhcpd yang ada di server kita, biarkan chillispot yang menangani dhcp.

3. # pico /etc/chilli.conf isi dari chilli saya (konfigurasi ini bisa di gunakan di Linksys 54GL atau di Komputer PC

##############################################################################

#

# Sample ChilliSpot configuration file @ Fadly Kasim

#

##############################################################################

net 192.168.154.0/24

dynip 192.168.154.0/24

statip 192.168.154.0/24

domain (domain isp anda)

dns1 202.X.X.X (DNS Anda)

dns2 202.X.X.X (DNS Anda)

#Radius parameters

radiusauthport 1812

radiusacctport 1813

radiuslisten 127.0.0.1

radiusserver1 127.0.0.1

radiusserver2 127.0.0.1

radiussecret testing123

#dhcpmac 00:00:5E:00:02:00

dhcpif eth0

uamserver https://192.168.154.1/cgi-bin/hotspotlogin.cgi

###########################################

#Untuk meng allow domain yang bisa di akses

uamallowed www.google.com

##########################################

uamsecret theuamsecret

uamlisten 192.168.154.1

uamallowed 192.168.154.1

uamport 3990

#======Selesai=============#

4. Konfigurasikanlah chilli.conf sesuai kebutuhan anda, disini ada beberapa point penting dalam konfigurasinya, yaitu:

radiussecret, ini dibutuhkan untuk komunikasi antara radius server dan chillispot

uamserver, dimana file hotspotlogin.cgi di simpan. Biasanya di letakkan di /var/www/cgi-bin

dhcpif, di sesuikan ethx yang nantinya di gunakan untuk client

Untuk itu bisa melakukakan copy file hotspotlogin.cgi dari /usr/share/doc/chillispot-1.0/hotspotlogin.cgi ke /var/www/cgi-bin, jadi nanti utk URL redirect nya akan menjadi https://192.168.0.254/cgi-bin/hotspotlogin.cgi (lihat uamserver), ingat harus dalam secure line ssl.

5. konfigurasi radius :

Setelah install Freeradius lalu masuk ke direktori radius dimana konfigurasinya berada, bila anda menggunakan OpenSuse dan memakai RPM dalam menginstallnya maka anda masuk ke direktori /etc/raddb/ dan apabila anda menginstall dengan cara meng-compile sendiri secara default direktori nya ada di /usr/local/etc/raddb/ atau terserah dimana –prefix=PREFIX anda diletakan.

# pico client.conf isinya seperti ini :

client 192.168.0.254 {

secret = //ini untuk membuat komunikasi dalam chillispot dan radius (seperti pada point C.3.d)

shortname = localhost

radius = other

}

# pico sql.conf, ini diedit karena kita akan menggunakan mysql sebagai database user authentic, ada beberapa point penting yaitu :

driver = “rlm_sql_mysql” // Modul yang digunakan untuk koneksi ke mysql server

driver/lib yang digunakan apabila kita menggunakan Mysql, ada beberapa tipe driver disini yaitu : rlm_sql_mysql, rlm_sql_postgresql,rlm_sql_iodbc, rlm_sql_oracle, rlm_sql_unixodbc, rlm_sql_freetds

server = “localhost” //server mysql berada.

login = “root” //login access ke mysql dan memiliki GRANT ke database

radius password = “blablabla” //password dari database-user yang memiliki GRANT ke database radius

radius_db = “radius”//database-name dimana user radius berada

#pico radius.conf lalu tambahkan perintah dibawah ini, sesudah baris sqlcounter monthlycounter { sampai tanda } dan ditambah sesudah tanda } isinya :

$INCLUDE ${confdir}/sql.conf

sqlcounter noresetcounter {counter-name = Max-All-Session-Time check-name = Max-All-Sessionsqlmod-inst = sql key = User-Name reset = never query = “SELECT SUM(AcctSessionTime) FROM radacct WHERE UserName=’%{%k}’” }

untuk authorize ganti dengan :

authorize {

preprocess

chap

mschap

suffix

eap

sql

noresetcounter

}

dan untuk Authentication ganti dengan:

authenticate {

Auth-Type PAP{

pap

}

Auth-Type CHAP {

chap

}

Auth-Type MS-CHAP {

mschap

}

unix

eap

}

6. Sekarang kita akan mencoba men-setting konfigurasi di PhpMyPrepaid sebagai user administrator sekaligus bisa sebagai pembuat prepaid card login serta billing nya.

Extract ke folder apache berada, default ada di /var/www/

  1. Masuk ke folder phpmyprepaid
  2. # pico config.inc.php disini ada beberapa point penting:

$dbName=”radius”; //database yang di pakai

$fpdfdir=”/var/www/phpmyprepaid/fpdf”; //lokasi dari direktori fpdf berada, tanpa“/”

(slash)

$radius_server=”192.168.0.254″; //server radius berada

$radius_server_port=”1812″; //port yang dipakai oleh radius server

$radiussecret=””; //huruf rahasia yang dipakai oleh radius server untuk dapat berkomunikasi,

#pico dbconnect.php // edit seperti yang di edit di radius server

$my_host = “localhost”;

$my_user = “root”;

$my_pass = “PASS-MYSQL-ANDA”;

$my_dbase = “radius”;

7. Jalankan http://192.168.0.254/phpmyprepaid/index.php maka akan muncul tampilan instalasi phpmyprepaid, isi kolom databases dan di sesuikan dengan databases pada radius dbconnect.php secara otomatis menginstall dengan sendiri

8. Masukan username admin dan password admin, setelah semua database terinstall Maka dengan berakhir nya point terakhir maka selesai jugalah pekerjaan kita