Penemuan fenomenal yang penulis maksudkan berupa teknik baru pemecahan persamaan diferensial nonlinear. Masyarakat umum tentu awam terhadap istilah persamaan diferensial ini, tetapi penulis juga meyakini bahwa tidak semua mahasiswa dan dosen di perguruan tinggi yang mengenal betul bentuk persamaan diferensial nonlinear tersebut. Hal ini karena materi kuliah di perguruan tinggi umumnya di seputaran persamaan diferensial linear. Karena itu para pembaca pastilah mengira kalau penulispun kebingungan tentang bagaimana cara menyampaikan berita baik ini kepada khalayak, agar penemuan yang menurut keyakinan penulis Insya Allah bakal ”mengibarkan merah putih” di manca negara itu dapat membanggakan siapa saja yang membaca tulisan ini Ibu ibu di rumah tentu lumrah mempraktekkan resep adonan kue yang dibacanya dari sebuah majalah. Menurut resep itu untuk membuat sepotong kue diperlukan sekian gram tepung terigu, sekian gram gula, sekian miligram panili, dan sekian gram kuning telur (ibu-ibu sekalian, di buku pelajaran fisika jumlah gram ini dinamakan massa bukanlah berat seperti yang biasa kita sebut). Kalau jumlah gram tepung terigu, gula, panili dan kuning telur masing-masing dilambangkan dengan u,v,w,x , maka resep kue itu dapat dituliskan dalam sebuah persamaan sederhana y= u + v + w + x . Tetapi kalau ibu-ibu hendak membuka usaha katering kue, maka rumus atau formula resep itu disamping harus memasukkan upah produksi, juga perlu mengoptimalkan komposisi bahan-bahannya, guna meraup keuntungan yang maksimal. Resep kue tersebut sekarang berubah menjadi y = au + bv + cw + dx + e, yang oleh mahasiswa ekonomi dikenal dengan persamaan linear yang mengandung 4 perubah bebas u,v,w, dan x. Tentu formula resep kue yang terakhir ini sudah diluar jangkauan ibu-ibu, karenanya ibu-ibu perlu menyekolahkan salah seorang putra-putrinya ke fakultas ekonomi, untuk mengetahui bagaimana cara mendapatkan angka a,b,c,d, dan e optimal yang akan membuat usaha katering kue tersebut sukses menyedot banyak pelanggan. Lantas dalam bentuk apa persamaan yang notabene menjadi basis sains dan teknologi tinggi itu?
Menurut penulis berkembangnya ilmu pengetahuan modern merupakan perwujudan cara memandang alam sekitar yang ditindaklanjuti dengan upaya menjelaskan keteraturan dan ketidakteraturan peristiwa yang terjadi di dalamnya (ini oleh para fisikawan disebut hukum alam). Dulu ketika di sekolah dasar kita sama-sama pernah diajarkan cara menghitung panjang garis miring segitiga siku-siku dengan dalil phitagoras. Ternyata dalil Phitagoras itu tidak sekedar untuk menghitung panjang ”garing” segitiga siku-siku, melainkan merupakan pembangun tiga fungsi trigonometri fundamental yaitu fungsi sina, cosa, dan tana. Mungkin tidak banyak yang tahu bahwa sesungguhnya hampir semua persoalan kehidupan di dunia ini pada dasarnya dapat ditangani dengan ketiga fungsi penting tersebut, asalkan mereka tahu bagaimana cara menggunakannya. Mengingat demikian pentingnya maka penulis mensketsakan gambar segitiga ”keramat” tersebut di bawah ini lengkap dengan definisi ketiga fungsi fundamental sina, cosa, dan tana
Page diatas, sengaja di edit, bukan tulisan penulis secara penuh(copy paste edit)
Untuk lengkapnya, silangkan kunjungi website www.rohedi.com
http://rohedi.com/content/view/15/26/
Penulis dalam hal ini adalah Drs. Ali Yunus Rohedi, MT.
Friday, July 11, 2008
Friday, July 4, 2008
Create startup script for postgresql on solaris
Here is simple script postgresql 8.2(startup on solaris)
Create file in /etc/init.d with name postgresql
#!/sbin/sh
#change with your prefix installation
PGBIN=/usr/postgres/8.2/bin
PGDATA=/export/postgres82/pgdata
PGLOG=/export/postgres82/pgdata/log
PGUSER=postgres
case "$1" in
'start')
su - $PGUSER -c "$PGBIN/pg_ctl -D $PGDATA start"
;;
'stop')
su - $PGUSER -c "$PGBIN/pg_ctl -D $PGDATA stop"
;;
'refresh')
su - $PGUSER "$PGBIN/pg_ctl -D $PGDATA reload"
;;
*)
echo $"Usage: $0 {start|refresh}"
exit 1
;;
esac
change file permission to 755
then you have to make link to other directory.
#ln /etc/init.d/postgresql /etc/rc0.d/K03postgresql
#ln /etc/init.d/postgresql /etc/rc1.d/K03postgresql
#ln /etc/init.d/postgresql /etc/rc2.d/K03postgresql
#ln /etc/init.d/postgresql /etc/rcS.d/K03postgresql
#ln /etc/init.d/postgresql /etc/rc3.d/S90postgresql
Try to start stop service and restart the system.
check with
# ps -ef | grep post
postgres 736 734 0 15:47:00 ? 0:00 /usr/postgres/8.2/bin/postgres -D /export/postgres82/pgdata
root 739 711 0 15:49:13 pts/2 0:00 grep post
postgres 734 1 0 15:47:00 pts/2 0:00 /usr/postgres/8.2/bin/postgres -D /export/postgres82/pgdata
postgres 737 734 0 15:47:00 ? 0:00 /usr/postgres/8.2/bin/postgres -D /export/postgres82/pgdata
#
Finish
Create file in /etc/init.d with name postgresql
#!/sbin/sh
#change with your prefix installation
PGBIN=/usr/postgres/8.2/bin
PGDATA=/export/postgres82/pgdata
PGLOG=/export/postgres82/pgdata/log
PGUSER=postgres
case "$1" in
'start')
su - $PGUSER -c "$PGBIN/pg_ctl -D $PGDATA start"
;;
'stop')
su - $PGUSER -c "$PGBIN/pg_ctl -D $PGDATA stop"
;;
'refresh')
su - $PGUSER "$PGBIN/pg_ctl -D $PGDATA reload"
;;
*)
echo $"Usage: $0 {start|refresh}"
exit 1
;;
esac
change file permission to 755
then you have to make link to other directory.
#ln /etc/init.d/postgresql /etc/rc0.d/K03postgresql
#ln /etc/init.d/postgresql /etc/rc1.d/K03postgresql
#ln /etc/init.d/postgresql /etc/rc2.d/K03postgresql
#ln /etc/init.d/postgresql /etc/rcS.d/K03postgresql
#ln /etc/init.d/postgresql /etc/rc3.d/S90postgresql
Try to start stop service and restart the system.
check with
# ps -ef | grep post
postgres 736 734 0 15:47:00 ? 0:00 /usr/postgres/8.2/bin/postgres -D /export/postgres82/pgdata
root 739 711 0 15:49:13 pts/2 0:00 grep post
postgres 734 1 0 15:47:00 pts/2 0:00 /usr/postgres/8.2/bin/postgres -D /export/postgres82/pgdata
postgres 737 734 0 15:47:00 ? 0:00 /usr/postgres/8.2/bin/postgres -D /export/postgres82/pgdata
#
Finish
Installing pkg_get on Solaris 10
This package is for automatically download and install package. This is package have same function with apt-get on debian or yum on Redhat.
First download package from http://www.blastwave.org/pkg_get-3.8.4-SunOS5.8-all-CSW.pkg
# pkgadd -d pkg_get-3.8.4-SunOS5.8-all-CSW.pkg
The following packages are available:
1 CSWpkgget pkg_get - CSW version of automated package download tool
(all) 3.8.4
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance from
pkg_get - CSW version of automated package download tool(all) 3.8.4
You may use and copy this software without charge, as you see fit.
The software is copyright (C) Philip Brown, Nov 2000-2007
Dont forget to update /opt/csw/etc/pkg-get.conf with your nearest archive site.
(or /etc/opt/csw/pkg-get.conf)
The default site ibiblio.org may or may not be slow for you!
The selected base directory must exist before installation
is attempted.
Do you want this directory created now [y,n,?,q] y
Using as the package base directory.
## Processing package information.
## Processing system information.
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
1 package pathname is already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of [y,n,?] y
Installing pkg_get - CSW version of automated package download tool as
## Installing part 1 of 1.
/opt/csw/bin/pkg-get
/opt/csw/etc/pkg-get.conf.csw
/opt/csw/share/man/man1m/pkg-get.1m
/var/pkg-get/admin-fullauto
[ verifying class ]
## Executing postinstall script.
Installing /opt/csw/etc/pkg-get.conf.csw to pkg-get.conf
**** IMPORTANT ****
A default configuration file for pkg-get has been created in
/opt/csw/etc/pkg-get.conf
You should edit it to change the 'site' configuration, to point to
the most appropriate mirror for you, from the list at
http://www.blastwave.org/mirrors
Installation of was successful.
#
# /opt/csw/bin/pkg-get -help
pkg-get, by Philip Brown , phil@bolthole.com
(Internal SCCS code revision 3.11)
Originally from http://www.bolthole.com/solaris/pkg-get.html
pkg-get is used to install free software packages
pkg-get
Need one of 'install', 'upgrade', 'available','compare'
'-i|install' installs a package
'-u|upgrade' upgrades already installed packages if possible
'-a|available' lists the available packages in the catalog
'-c|compare' shows installed package versions vs available
'-l|list' shows installed packages by software name only
Optional modifiers:
'-d|download' just download the package, not install
'-D|describe' describe available packages, or search for one
'-U|updatecatalog' updates download site inventory
'-S|sync' Makes update mode sync to version on mirror site
'-f' dont ask any questions: force default pkgadd behaviour
Normally used with an override admin file
See /var/pkg-get/admin-fullauto
'-s ftp://site/dir' temporarily override site to get from
#
For example I will install package nano for editing.
# /opt/csw/bin/pkg-get -i nano
...
/opt/csw/share/locale/sr/LC_MESSAGES/nano.mo
/opt/csw/share/locale/sv/LC_MESSAGES/nano.mo
/opt/csw/share/locale/tr/LC_MESSAGES/nano.mo
/opt/csw/share/locale/uk/LC_MESSAGES/nano.mo
/opt/csw/share/man
/opt/csw/share/man/man1/nano.1
/opt/csw/share/man/man5/nanorc.5
[ verifying class ]
## Executing postinstall script.
Updating the info dir file for CSWtexinfo
chroot: exec failed: No such file or directory
Installation of was successful.
# /opt/csw/bin/nano # running nano
First download package from http://www.blastwave.org/pkg_get-3.8.4-SunOS5.8-all-CSW.pkg
# pkgadd -d pkg_get-3.8.4-SunOS5.8-all-CSW.pkg
The following packages are available:
1 CSWpkgget pkg_get - CSW version of automated package download tool
(all) 3.8.4
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance
pkg_get - CSW version of automated package download tool(all) 3.8.4
You may use and copy this software without charge, as you see fit.
The software is copyright (C) Philip Brown, Nov 2000-2007
Dont forget to update /opt/csw/etc/pkg-get.conf with your nearest archive site.
(or /etc/opt/csw/pkg-get.conf)
The default site ibiblio.org may or may not be slow for you!
The selected base directory must exist before installation
is attempted.
Do you want this directory created now [y,n,?,q] y
Using as the package base directory.
## Processing package information.
## Processing system information.
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
WARNING: setting mode of to default mode (755)
1 package pathname is already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user
permission during the process of installing this package.
Do you want to continue with the installation of
Installing pkg_get - CSW version of automated package download tool as
## Installing part 1 of 1.
/opt/csw/bin/pkg-get
/opt/csw/etc/pkg-get.conf.csw
/opt/csw/share/man/man1m/pkg-get.1m
/var/pkg-get/admin-fullauto
[ verifying class
## Executing postinstall script.
Installing /opt/csw/etc/pkg-get.conf.csw to pkg-get.conf
**** IMPORTANT ****
A default configuration file for pkg-get has been created in
/opt/csw/etc/pkg-get.conf
You should edit it to change the 'site' configuration, to point to
the most appropriate mirror for you, from the list at
http://www.blastwave.org/mirrors
Installation of
#
# /opt/csw/bin/pkg-get -help
pkg-get, by Philip Brown , phil@bolthole.com
(Internal SCCS code revision 3.11)
Originally from http://www.bolthole.com/solaris/pkg-get.html
pkg-get is used to install free software packages
pkg-get
Need one of 'install', 'upgrade', 'available','compare'
'-i|install' installs a package
'-u|upgrade' upgrades already installed packages if possible
'-a|available' lists the available packages in the catalog
'-c|compare' shows installed package versions vs available
'-l|list' shows installed packages by software name only
Optional modifiers:
'-d|download' just download the package, not install
'-D|describe' describe available packages, or search for one
'-U|updatecatalog' updates download site inventory
'-S|sync' Makes update mode sync to version on mirror site
'-f' dont ask any questions: force default pkgadd behaviour
Normally used with an override admin file
See /var/pkg-get/admin-fullauto
'-s ftp://site/dir' temporarily override site to get from
#
For example I will install package nano for editing.
# /opt/csw/bin/pkg-get -i nano
...
/opt/csw/share/locale/sr/LC_MESSAGES/nano.mo
/opt/csw/share/locale/sv/LC_MESSAGES/nano.mo
/opt/csw/share/locale/tr/LC_MESSAGES/nano.mo
/opt/csw/share/locale/uk/LC_MESSAGES/nano.mo
/opt/csw/share/man
/opt/csw/share/man/man1/nano.1
/opt/csw/share/man/man5/nanorc.5
[ verifying class
## Executing postinstall script.
Updating the info dir file for CSWtexinfo
chroot: exec failed: No such file or directory
Installation of
# /opt/csw/bin/nano # running nano
Wednesday, July 2, 2008
cvsup ports-supfile
viperbsd# cp /usr/share/examples/cvsup/ports-supfile /tmp
copy ports-supfile ke /tmp
edit bagian di bawah, pilih salah satu mirror ports.
*default host=cvsup1.FreeBSD.org
viperbsd# cvsup -g -L 2 ports-supfile
...
Applying fixups for collection ports-all/cvs
Fixup ports/games/doom/files/patch-ab
Fixup ports/graphics/vcg/files/tMakefile
Fixup ports/net/wmwave/files/patch-wmwave.c
Shutting down connection to server
Finished successfully
viperbsd#
Biar gak lupa link cvsup mirror seluruh dunia .. :)
http://www.freebsd.org/doc/handbook/cvsup.html#CVSUP-MIRRORS
copy ports-supfile ke /tmp
edit bagian di bawah, pilih salah satu mirror ports.
*default host=cvsup1.FreeBSD.org
viperbsd# cvsup -g -L 2 ports-supfile
...
Applying fixups for collection ports-all/cvs
Fixup ports/games/doom/files/patch-ab
Fixup ports/graphics/vcg/files/tMakefile
Fixup ports/net/wmwave/files/patch-wmwave.c
Shutting down connection to server
Finished successfully
viperbsd#
Biar gak lupa link cvsup mirror seluruh dunia .. :)
http://www.freebsd.org/doc/handbook/cvsup.html#CVSUP-MIRRORS
Friday, June 27, 2008
Yahoo ...blok ip telkomspeedy ...
Test email dari server testing Centos 5.1, saya pakai cyrus-imapd versi 2.3.7 dan postfix 2.3.3. Server kirim dan terima dari server gmail bisa, namun begitu saya coba email ke yahoo ternyata di blok.
: host mx1.mail.sg1.yahoo.com[124.108.116.72]
said: 553 Mail from wahyu@xxxxx.org not allowed - 5.7.1
[BL21] Connections not accepted from IP addresses on Spamhaus PBL; see
http://postmaster.yahoo.com/550-bl21.html [550] (in reply to MAIL FROM
command)
Ternyata yahoo blok dari spamhaus PBL. Saya menggunjungi website spamhaus.
IP Address Lookup
125.164.xx.xxx is not listed in the SBL
125.164.xx.xxx is listed in the PBL, in the following records:
* PBL171259
125.164.xx.xxx is not listed in the XBL
Berdasarkan di bawah, blok ip dari Telkomspeedy di blok
Ref: PBL171259
125.164.72.0/23 is listed on the Policy Block List (PBL)
Berarti ada 510 IP yang di blok. Karena hanya untuk testing, saya tidak remove IP address statik saya.
said: 553 Mail from wahyu@xxxxx.org not allowed - 5.7.1
[BL21] Connections not accepted from IP addresses on Spamhaus PBL; see
http://postmaster.yahoo.com/550-bl21.html [550] (in reply to MAIL FROM
command)
Ternyata yahoo blok dari spamhaus PBL. Saya menggunjungi website spamhaus.
IP Address Lookup
125.164.xx.xxx is not listed in the SBL
125.164.xx.xxx is listed in the PBL, in the following records:
* PBL171259
125.164.xx.xxx is not listed in the XBL
Berdasarkan di bawah, blok ip dari Telkomspeedy di blok
Ref: PBL171259
125.164.72.0/23 is listed on the Policy Block List (PBL)
Berarti ada 510 IP yang di blok. Karena hanya untuk testing, saya tidak remove IP address statik saya.
Wednesday, June 25, 2008
Setting PPPoE di Centos 5.1 menggunakan telkomspeedy
Catatan untuk membuat PPPoE di Centos 5.1 menggunakan telkomnetspeedy.
Karena Up Link dan Down Link Telkomspeedy sudah lumayan kenceng, walaupun kalau lagi lemot juga sangat lemot.
Gambar di bawah capture konfigurasi modem am300 gratis dari telkomspeedy :)

Setting modem di setting seperti diatas.
Kemudian setting Centos 5.1 dengan 2 ethernet, 1 ethernet untuk jaringan lokal, dan 1 ethernet untuk koneksi ke modem.
Internet <--> Modem(bridge) <--> Server gateway(eth1,eth0)
[root@wahyucentos ssh]# cat /etc/redhat-release
CentOS release 5 (Final)
[root@wahyu ssh]#
[root@wahyucentos ssh]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:8D:C3:39:7D
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:8dff:fec3:397d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5990 errors:0 dropped:0 overruns:0 frame:0
TX packets:2161 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:825820 (806.4 KiB) TX bytes:1069634 (1.0 MiB)
Interrupt:217 Base address:0xa800
eth1 Link encap:Ethernet HWaddr 00:1E:58:31:B3:EB
inet addr:192.168.100.96 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::21e:58ff:fe31:b3eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2847 errors:0 dropped:0 overruns:0 frame:0
TX packets:2878 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1084873 (1.0 MiB) TX bytes:539141 (526.5 KiB)
Interrupt:209 Base address:0x2000
[root@wahyucentos ssh]#
[root@wahyucentos ssh]#system-config-network

Klik New, dan pilih xDSL connections, pilih ethernet 1(eth1)masukan username dan
password telkom.
Setelah itu, active kan ppp
Sehingga dapat di lihat seperti dibawah ini. Dapat di lihat bahwa, pppC dengan nama koneksi test sudah aktif.

Di atas, saya juga mengaktifkan eth1 dengan ip address lokal.
[root@wahyucentos ssh]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:8D:C3:39:7D
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:8dff:fec3:397d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5990 errors:0 dropped:0 overruns:0 frame:0
TX packets:2161 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:825820 (806.4 KiB) TX bytes:1069634 (1.0 MiB)
Interrupt:217 Base address:0xa800
eth1 Link encap:Ethernet HWaddr 00:1E:58:31:B3:EB
inet addr:192.168.100.96 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::21e:58ff:fe31:b3eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2847 errors:0 dropped:0 overruns:0 frame:0
TX packets:2878 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1084873 (1.0 MiB) TX bytes:539141 (526.5 KiB)
Interrupt:209 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1296 errors:0 dropped:0 overruns:0 frame:0
TX packets:1296 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2913220 (2.7 MiB) TX bytes:2913220 (2.7 MiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:125.xxx.xx.xxx P-t-P:125.xxx.xx.x Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:2629 errors:0 dropped:0 overruns:0 frame:0
TX packets:2617 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1013596 (989.8 KiB) TX bytes:460371 (449.5 KiB)
[root@wahyucentos ssh]#
Jangan lupa untuk setting iptables, dan forwarding agar, bisa di gunakan sebagai gateway. Atau kalau ingin menggunakan squid, bisa di installkan juga.
Karena Up Link dan Down Link Telkomspeedy sudah lumayan kenceng, walaupun kalau lagi lemot juga sangat lemot.
Gambar di bawah capture konfigurasi modem am300 gratis dari telkomspeedy :)

Setting modem di setting seperti diatas.
Kemudian setting Centos 5.1 dengan 2 ethernet, 1 ethernet untuk jaringan lokal, dan 1 ethernet untuk koneksi ke modem.
Internet <--> Modem(bridge) <--> Server gateway(eth1,eth0)
[root@wahyucentos ssh]# cat /etc/redhat-release
CentOS release 5 (Final)
[root@wahyu ssh]#
[root@wahyucentos ssh]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:8D:C3:39:7D
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:8dff:fec3:397d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5990 errors:0 dropped:0 overruns:0 frame:0
TX packets:2161 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:825820 (806.4 KiB) TX bytes:1069634 (1.0 MiB)
Interrupt:217 Base address:0xa800
eth1 Link encap:Ethernet HWaddr 00:1E:58:31:B3:EB
inet addr:192.168.100.96 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::21e:58ff:fe31:b3eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2847 errors:0 dropped:0 overruns:0 frame:0
TX packets:2878 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1084873 (1.0 MiB) TX bytes:539141 (526.5 KiB)
Interrupt:209 Base address:0x2000
[root@wahyucentos ssh]#
[root@wahyucentos ssh]#system-config-network

Klik New, dan pilih xDSL connections, pilih ethernet 1(eth1)masukan username dan
password telkom.
Setelah itu, active kan ppp
Sehingga dapat di lihat seperti dibawah ini. Dapat di lihat bahwa, pppC dengan nama koneksi test sudah aktif.

Di atas, saya juga mengaktifkan eth1 dengan ip address lokal.
[root@wahyucentos ssh]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:8D:C3:39:7D
inet addr:192.168.0.105 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:8dff:fec3:397d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5990 errors:0 dropped:0 overruns:0 frame:0
TX packets:2161 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:825820 (806.4 KiB) TX bytes:1069634 (1.0 MiB)
Interrupt:217 Base address:0xa800
eth1 Link encap:Ethernet HWaddr 00:1E:58:31:B3:EB
inet addr:192.168.100.96 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::21e:58ff:fe31:b3eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2847 errors:0 dropped:0 overruns:0 frame:0
TX packets:2878 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1084873 (1.0 MiB) TX bytes:539141 (526.5 KiB)
Interrupt:209 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1296 errors:0 dropped:0 overruns:0 frame:0
TX packets:1296 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2913220 (2.7 MiB) TX bytes:2913220 (2.7 MiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:125.xxx.xx.xxx P-t-P:125.xxx.xx.x Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:2629 errors:0 dropped:0 overruns:0 frame:0
TX packets:2617 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1013596 (989.8 KiB) TX bytes:460371 (449.5 KiB)
[root@wahyucentos ssh]#
Jangan lupa untuk setting iptables, dan forwarding agar, bisa di gunakan sebagai gateway. Atau kalau ingin menggunakan squid, bisa di installkan juga.
Tuesday, June 24, 2008
Delete mailbox on cyrus-imap
To delete mailbox on cyrus-imap you have to give permission. By default admin doesn't have permission deleting mailbox.
moonlight# cyradm -u cyrus localhost
Password:
localhost> lm
user.bafrin (\HasChildren) user.john.Sent (\HasNoChildren)
user.bafrin.Drafts (\HasNoChildren) user.john.Trash (\HasNoChildren)
user.bafrin.Sent (\HasNoChildren) user.wahyu (\HasChildren)
user.bafrin.Trash (\HasNoChildren) user.wahyu.Drafts (\HasNoChildren)
user.john (\HasChildren) user.wahyu.Sent (\HasNoChildren)
user.john.Drafts (\HasNoChildren) user.wahyu.Trash (\HasNoChildren)
localhost> dm user.john
deletemailbox: Permission denied
localhost>
localhost> lam user.john
john lrswipkxtecda
localhost> dm user.john
deletemailbox: Permission denied
localhost> sam user.john cyrus c
localhost> lam user.john
john lrswipkxtecda
cyrus kxc
localhost> dm user.test
deletemailbox: Mailbox does not exist
localhost> dm user.john
localhost> lm
user.bafrin (\HasChildren) user.wahyu (\HasChildren)
user.bafrin.Drafts (\HasNoChildren) user.wahyu.Drafts (\HasNoChildren)
user.bafrin.Sent (\HasNoChildren) user.wahyu.Sent (\HasNoChildren)
user.bafrin.Trash (\HasNoChildren) user.wahyu.Trash (\HasNoChildren)
localhost>
moonlight# cyradm -u cyrus localhost
Password:
localhost> lm
user.bafrin (\HasChildren) user.john.Sent (\HasNoChildren)
user.bafrin.Drafts (\HasNoChildren) user.john.Trash (\HasNoChildren)
user.bafrin.Sent (\HasNoChildren) user.wahyu (\HasChildren)
user.bafrin.Trash (\HasNoChildren) user.wahyu.Drafts (\HasNoChildren)
user.john (\HasChildren) user.wahyu.Sent (\HasNoChildren)
user.john.Drafts (\HasNoChildren) user.wahyu.Trash (\HasNoChildren)
localhost> dm user.john
deletemailbox: Permission denied
localhost>
localhost> lam user.john
john lrswipkxtecda
localhost> dm user.john
deletemailbox: Permission denied
localhost> sam user.john cyrus c
localhost> lam user.john
john lrswipkxtecda
cyrus kxc
localhost> dm user.test
deletemailbox: Mailbox does not exist
localhost> dm user.john
localhost> lm
user.bafrin (\HasChildren) user.wahyu (\HasChildren)
user.bafrin.Drafts (\HasNoChildren) user.wahyu.Drafts (\HasNoChildren)
user.bafrin.Sent (\HasNoChildren) user.wahyu.Sent (\HasNoChildren)
user.bafrin.Trash (\HasNoChildren) user.wahyu.Trash (\HasNoChildren)
localhost>
Friday, June 6, 2008
Thursday, June 5, 2008
Buat jasperserver di satu server
Idenya sih, karena kita memakai jasperserver 2.1, dan ada beberapa aplikasi yang berjalan menggunakan DB postgresql 8.2 yang berbeda. Agar aplikasi report yang di pakai, bisa menggunakan satu server report(jasperserver).
Saya menggunakan jasperserver versi di bawah, karena untuk mempermudah saja, installnya.
Karena sudah bundle dengan MySql, dan tomcat.
jasperserver-2.1-linux-installer.bin
Installasi saya taruh di /home/jasperserver-2.1
[root@temo jasperserver-2.1]# ls
ant jasperctl.sh license.txt scripts
apache-tomcat java mysql uninstall
docs js-installer-version.txt releaseNotes.txt
ireport licenses samples
[root@temo jasperserver-2.1]#
/home/jasperserver-2.1/apache-tomcat/webapps
copy folder jasperserver ke jasperprc, jaspershp, jaspervr di sesuaikan dgn namanya.
Edit file2 berikut, di sesuaikan dgn kebutuhan.
[root@temo WEB-INF]#
hibernate.properties jboss-web.xml web.xml
[root@temo WEB-INF]#
Edit web.xml, edit bagian ini ...
JasperSHP UI application
webAppRootKey
jaspershp.root
Di samakan dgn DBnya mysql.
Untuk hibernate.properties
# Properties file with JDBC-related settings.
# Applied by PropertyPlaceholderConfigurer from "applicationContext-*.xml".
# Targeted at system administrators, to avoid touching the context XML files.
# Property that determines the Hibernate dialect
metadata.hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
metadata.hibernate.dataSource.jndiName=jdbc/jaspershp
Dan seterusnya.
Buat database di mysql.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| foodmart |
| jasperprc |
| jaspershp |
| jaspervr |
| mysql |
| sugarcrm |
| test |
+--------------------+
8 rows in set (0.03 sec)
mysql>
Edit file di :
/home/jasperserver-2.1/apache-tomcat/webapps/jaspershp/META-INF
nama file context.xml
auth="Container"
name="jdbc/jaspershp"
type="javax.sql.DataSource"
password="passwordnya"
driverClassName="com.mysql.jdbc.Driver"
maxIdle="30"
maxWait="1000"
username="usernya"
url="jdbc:mysql://127.0.0.1:3306/jaspershp?useUnicode=true&characterEncoding=UTF-8"
maxActive="20"/>
Restart apache tomcat, melalui manager.
note: bbrp langkah di lewati, spt, create db, import db data(import DB data dump harus di ganti sesuai dbnya [use namadbnya])
Saya menggunakan jasperserver versi di bawah, karena untuk mempermudah saja, installnya.
Karena sudah bundle dengan MySql, dan tomcat.
jasperserver-2.1-linux-installer.bin
Installasi saya taruh di /home/jasperserver-2.1
[root@temo jasperserver-2.1]# ls
ant jasperctl.sh license.txt scripts
apache-tomcat java mysql uninstall
docs js-installer-version.txt releaseNotes.txt
ireport licenses samples
[root@temo jasperserver-2.1]#
/home/jasperserver-2.1/apache-tomcat/webapps
copy folder jasperserver ke jasperprc, jaspershp, jaspervr di sesuaikan dgn namanya.
Edit file2 berikut, di sesuaikan dgn kebutuhan.
[root@temo WEB-INF]#
hibernate.properties jboss-web.xml web.xml
[root@temo WEB-INF]#
Edit web.xml, edit bagian ini ...
Di samakan dgn DBnya mysql.
Untuk hibernate.properties
# Properties file with JDBC-related settings.
# Applied by PropertyPlaceholderConfigurer from "applicationContext-*.xml".
# Targeted at system administrators, to avoid touching the context XML files.
# Property that determines the Hibernate dialect
metadata.hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
metadata.hibernate.dataSource.jndiName=jdbc/jaspershp
Dan seterusnya.
Buat database di mysql.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| foodmart |
| jasperprc |
| jaspershp |
| jaspervr |
| mysql |
| sugarcrm |
| test |
+--------------------+
8 rows in set (0.03 sec)
mysql>
Edit file di :
/home/jasperserver-2.1/apache-tomcat/webapps/jaspershp/META-INF
nama file context.xml
name="jdbc/jaspershp"
type="javax.sql.DataSource"
password="passwordnya"
driverClassName="com.mysql.jdbc.Driver"
maxIdle="30"
maxWait="1000"
username="usernya"
url="jdbc:mysql://127.0.0.1:3306/jaspershp?useUnicode=true&characterEncoding=UTF-8"
maxActive="20"/>
Restart apache tomcat, melalui manager.
note: bbrp langkah di lewati, spt, create db, import db data(import DB data dump harus di ganti sesuai dbnya [use namadbnya])
Subscribe to:
Posts (Atom)
