2009-12-21

Menggunakan Mercurial di google Code

Kemarin baca artikel dari teman tentang Subversion, bagus juga, tetapi gua lebih senang dengan Mercurial, lebih simple, ga perlu authentikasi, sehingga semua orang bisa "push" dan "pull".

Ini tahapannya buat pakai Google Code untuk store project, dan menggunakan mercurial untuk repository-nya.

1. Bikin account dulu di google code

2. Bikin Project di google code. http://code.google.com/hosting/

3. Setup mercurial di local komputer

Ubuntu/Debian :: sudo apt-get install mercurial

4. clone / Bikin copy nya ke local :

hg clone https://projectname.googlecode.com/hg/ projectname

5. cd projectname

6. [copy-kan file project ke sini, kemudian edit edit edit]

6. jalankan hg add

7. hg status

8. hg commit -m "bla bla bla"

9. hg push

10. username nya masukkan user google code anda

11. pass nya lihat di googlecode password

https://code.google.com/hosting/settings

Selesai..

Tinggal ber mercurial ria... komputer mati .. project tersimpan dengan aman di googlecode.. :D

Reblog this post [with Zemanta]

2009-12-16

visualisasi harddisk space dengan filelight, pengganti overdisk di ubuntu


pas masih pake windows, gw sering banget pake overdisk, tools untuk mevisualisasikan alokasi data, size masing2 folder dan lain2 dari harddisk kita.. tools ini enak banget biar bisa tau secara detail alokasi file2 dalam folder kita.. meskipun ga detail, tapi cukuplah untuk tau seberapa gede folder yg kita punya. Ini skrinsot untuk overdisk :



dari gambar kliatan kalo kita mouseover ke salah satu bagian dari pie-chart yang digenerate overdisk akan muncul informasi nama folder, berapa jumlah folder yang ada dalam folder yg dimouseover dan berapa besar total satu foldernya .. asik kan? nah dulu2 di linux gw selalu cek liwat cli, meskipun ga sedetil ini, command-nya du(disk usage)
detanto@detantoCQ45:~$ du -sh *
608K Desktop
5.2G Documents
814M Downloads
4.0K examples.desktop
4.0K hosts
276K hwinfo
4.0K interfaces
156M Komodo-Edit-5
6.4G Music
11G opt
3.8G Pictures
......
Barusan nemu di internet ada macam overdisk ini, namanya filelight. Cara instalasi seperti biasa, tinggal apt-get
detanto@detantoCQ45:~$ sudo apt-get install filelight
[sudo] password for detanto:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
librsvg2-2.18-cil libgdata1.4-cil python-urwid libwnck2.20-cil libnotify0.4-cil libgnomedesktop2.20-cil
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
exiv2 kde-icons-oxygen kdebase-runtime kdebase-runtime-bin-kde4 kdebase-runtime-data kdebase-runtime-data-common kdelibs-bin kdelibs5 kdelibs5-data khelpcenter4 libclucene0ldbl libexiv2-5
libknotificationitem1 liblzma0 libplasma3 libqimageblitz4 libqt4-dbus libqt4-designer libqt4-opengl libqt4-phonon libqt4-qt3support libqt4-script libqt4-sql libqt4-sql-mysql libqt4-svg libqt4-webkit
libqt4-xml libsoprano4 libstreamanalyzer0 libstreams0 libxcb-shape0 libxcb-shm0 libxcb-xv0 libxine1 libxine1-bin libxine1-console libxine1-misc-plugins libxine1-x phonon-backend-xine soprano-daemon
Suggested packages:
kdebase djvulibre-bin libqt4-dev gxine xine-ui libxine1-doc libxine-doc libxine1-ffmpeg
The following NEW packages will be installed:
exiv2 filelight kde-icons-oxygen kdebase-runtime kdebase-runtime-bin-kde4 kdebase-runtime-data kdebase-runtime-data-common kdelibs-bin kdelibs5 kdelibs5-data khelpcenter4 libclucene0ldbl libexiv2-5
libknotificationitem1 liblzma0 libplasma3 libqimageblitz4 libqt4-dbus libqt4-designer libqt4-opengl libqt4-phonon libqt4-qt3support libqt4-script libqt4-sql libqt4-sql-mysql libqt4-svg libqt4-webkit
libqt4-xml libsoprano4 libstreamanalyzer0 libstreams0 libxcb-shape0 libxcb-shm0 libxcb-xv0 libxine1 libxine1-bin libxine1-console libxine1-misc-plugins libxine1-x phonon-backend-xine soprano-daemon
0 upgraded, 41 newly installed, 0 to remove and 86 not upgraded.
Need to get 48.3MB of archives.
After this operation, 159MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
buset dah gede bener! 50MB cuy .. tapi internet gw kenceng kok .. jadi no worries, iseng2 berhadiah :P.. dan yang banyak tuh perkakas2 lain yg musti diinstall sebelum filelight, karena si filelight ini aslinya kde
setelah selesei, filelight akan muncul di Applications->Accessories->Filelight. Mantab juga aplikasi ini, tapi imho lebih lelet overdisk untuk proses scanning directories-nya, filelight cman butuh 20detik untuk scan 60gb

skrinsot filelight :


untuk mengetahui size, jumlah file, persentasi dari pie-chartnya, tinggal di-mouse ever ke chart-nya ..klik ke pie/folder-nya akan menge-zoom lebih dalam ke dalam folder. misal kita klik ke /home/detanto/, filelight akan menunjukkan isi dari /home/detanto beserta informasi lainnya.

Ada beberapa fitur, misalnya skip direktori2 tertentu :


Rubah color-scheme, tunjukkan file2 kecil, dsb :


silakan menjajal filelight, biar tau kalo kebanyakan simpen file anu2 :P

2009-12-15

thunderbird3 dan google wave

2 minggu lalu dapet mainan baru, googlewave .. keren banget buat kolaborasi antar team. Tools ini gw pake untuk kolaborasi antar team programmer di kantor. supaya lebih mantap, gw pake chrome browser khusus untuk googlewave. sebetulnya ga perlu gitu si, cman masi tetep musti pake firefox buat develop software karena tools firebug dan web-developer toolbar yang mbantu banget. Di chrome udah ada juga plugin buat firebug, tapi ya biar mantep develop tetep pake firefox, ya cuman masalah mantep2an aja sih :P
Ini sekilas googlewave di chromium gw :



hari ini setelah install thunderbird 3, kok rasanya kurang sreg sama mail client ini :P .. iseng2 gugling, malah nemu link ini , dia bilang, bisa mengintegrasikan googlewave ke dalam thunderbird 3, tepatnya di tab-nya.

Langkahnya, buka thunderbird, trus buka Error Console (letaknya di Tools->Error Console), akan tampil windows Error Console seperti ini :



kemudian paste code dibawah ini ke field code, dan klik evaluate.
Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.
nsIWindowMediator).getMostRecentWindow("mail:3pane").document.getElementById("tabmail").
openTab("contentTab", {contentPage: "https://wave.google.com/wave/?nouacheck"});
(kalau copy paste, diilangin dulu carriage return-nya yak) .. dan selese, googlewave tampil di tab thunderbird, fyi tab ini akan direstore ulang setelah thunderbird di close, jadi ga perlu paste lagi ke error console-nya.. ini skrinsotnya :



dan silahkan nge-wave di thunderbird! :)

install thunderbird 3 di karmic koala

thunderbird 3 udah rilis beberapa waktu lalu, metode instalasi ada 2, liwat manual download file-nya dan tambahin sources di /etc/apt/sources.list

cara pertama : download paket thunderbird dari sini. Setelah donlod selese, extract file
detanto@detantoCQ45:~/opt/pfiles/$ tar xjvf thunderbird-3.0.tar.bz2
Kemudian buat profile
detanto@detantoCQ45:$~/opt/pfiles/thunderbird -ProfileManager
Pertama kali gw liat kok bentuknya aneh gini hihihi, akhirnya coba2 import data thunderbird lama yang udah dibackup, fyi data email ada di /home/detanto/.mozilla-thunderbid/profile(kodeaneh)/Mail/*

Karena thunderbird gw dari awal banget..hmm kalo ga salah dari versi 1.x gitu, gw pengen ini dari awal yang baru.. krn itu aku bikin akun satu2 kemudian aku copy data dari folder Mail/account ke folder2 baru di thunderbird 3

cara kedua : edit /etc/apt/sources.list. tambahkan
deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu karmic main
Ubuntu harus mengotitentifikasi PPA-nya (Personal Package Archive), kalau engga, pasti ga bisa update ke alamat diatas.
W: GPG error: http://ppa.launchpad.net karmic Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EF4186FE247510BE
Cara authenticate-nya, di halaman PPA-nya akan ada OpenPGP key id, misalnya yang ada di https://launchpad.net/~ubuntu-mozilla-daily/+archive/ppa adalah 1024R/247510BE, ambil bagian setelah tanda "/" yaitu 247510BE, kemudian
detanto@detantoCQ45:~/opt/pfiles/thunderbird$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247510BE
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys B34505EA326FEAEA07E3618DEF4186FE247510BE
gpg: requesting key 247510BE from hkp server keyserver.ubuntu.com
gpg: key 247510BE: public key "Launchpad PPA for Ubuntu Mozilla Daily Build Team" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
kemudian update
detanto@detantoCQ45:/$ sudo apt-get update
setelah itu tinggal seperti biasa, gunakan apt-get install thunderbird-3.0 atau 3.1

ini gw attach skrinsot dengan themes leopard_mail-default-graphite-3.1.4



sumber2 :
https://launchpad.net/~ubuntu-mozilla-daily/+archive/ppa

2009-12-14

RabbitVCS, subversion client di linux


di artikel sebelumnya, pernah gw bahas tentang subversion. Afaik, pada saat itu blun ada tools sepowerful tortoisesvn, gw rasain paling lumayan adalah nautilussvn, tapi ada beberapa kekurangan, yang gw inget kalo proses commit, add lambatnya minta ampun, malah pernah hang nautilus gw. Sampai pada akhirnya gw mutusin coding php pake netbeans yang notabene beratnya ajrut2an, tapi terpaksa, butuh yang gui-nya enak soalnya :D ..

sampai pas minggu kemaren, gw install karmic koala dan pengen jajal nautilussvn lagi dengan pemikiran mungkin yang versi baru lebih mantab surantab ..

pas mengunjungi websitenya di http://code.google.com/p/nautilussvn/, wah ternyata dapet kabar udah ganti jadi rabbitVCS ".. We are excited to announce the release of RabbitVCS v0.12, the successor to NautilusSVN! ", langsung deh jalan ke link-nya di http://rabbitvcs.org/.


cari2 downloadnya, beuh ada file debian package buat ubuntu, debian, rpm buat fedora, malah buat ubuntu bisa langsung di apt-get dengan nambahin di /etc/apt/sources.list-nya .. mantab

apabila download langsung deb-nya bisa ke sini, setelah selesai, seperti biasa

sudo dpkg -i rabbitvcs_versi_terbaru.deb

setelah itu akan apabila diklik kanan pada folder yang belum ada subversionnya, akan muncul seperti ini :



sementara kalau sudah ada subversionnya, pada saat klik kanan akan muncul



proses commit pada folder yang telah tersubversi :




report proses commit telah berhasil :



proses update subversion :



tools ini sangat bagus, compare to nautilussvn, sampai hari ini belum menemukan hal2 yang tidak mengenakkan, seperti hang dsb dsb .., jadi bagi pencari pengganti tortoisesvn yang cuman zalan di windows, boleh coba rabbitVSC, dijamin puasss :) .. fyi, karena ada si klenci ini, untuk koding php sekarang gw pake Komodo, lebih ringan daripada netbeans, dan bisa project pula.. disini bisa diintegrasikan dengan svn, next gw tulis cara integrasi komodo dengan svn-nya ..

terminator

suka pake cli pas lagi di desktop? biasa jalanin Applications->Accessories->terminal?
well ada yang muantab nih, terminator, tenang ini bukan robot penghancur dari masa depan, ini terminal biasa tapi bisa banyak window ..
Cara instalasinya mudah, tinggal
detanto@detantoCQ45:~$ sudo apt-get install terminator
bila instalasi dah selesai, shortcut akan muncul di Applications->Accessories->terminator, tepatnya pas dibawah terminal :)

install acrobat reader di karmic koala

download file dari adobe.com langsung - http://get.adobe.com/uk/reader/otherversions/
setelah selesai download (file-nya yang versi 9 gede banget, sekitar 60MB)

jalankan :
detanto@detantoCQ45:~$ sudo dpkg -i AdbeRdr9.2-1_i386linux_enu.deb
[sudo] password for detanto:
Selecting previously deselected package adobereader-enu.
(Reading database ... 223192 files and directories currently installed.)
Unpacking adobereader-enu (from AdbeRdr9.2-1_i386linux_enu.deb) ...
Setting up adobereader-enu (9.2) ...

Processing triggers for man-db ...
detanto@detantoCQ45:~$
setelah selesai, shortcut untuk adobe reader akan muncul di Application->Office

2009-12-13

mencari file di linux

locate

di linux ada beberapa metode untuk mencari file. gw dulu memakai metode locate, tetapi locate ini mempunyai kelemahan..yaitu harus menjalankan command updatedb dulu supaya mengupdate database file yang ada di sistem, jangan dikira command updatedb lgsg jadi, makan waktu juga dan pula updatedb ini musti pake sudo jadi ga bisa user biasa .. jadi step-nya :
detanto@detantoCQ45:~$ sudo updatedb
[sudo] password for detanto
kemudian kita masukkan file yang kita cari, seumpama kita mencari file berekstensi conn(file koneksi aquafold datastudio)
detanto@detantoCQ45:~$ locate *.conn
/home/detanto/.datastudio/connections/detantot61.conn
/home/detanto/.datastudio/connections/edp01.conn
/home/detanto/.datastudio/connections/kimsystem.conn
/home/detanto/.datastudio/connections/mysql - lokalhos.conn
find
selain locate ada juga find, hmmm ini yg sekarang sering banget gw pake .. karena lgsg jebret ga perlu update2an segala. cuman memang lebih lelet karena lgsg nyari file di sistem
perintah sering gw pake :
find /(lokasi pencarian) -iname file_yg_dicari
perintah diatas bisa dibaca, cari file_yg_dicari mulai dari root(/) dan ga pedulikan uppercase ato lowercase atau case insensitive (option iname), kalo case sensitive gunakan option -name
perintah find ini bener2 bisa diulik macem2, berikut share dari pengalaman gw tentang beberapa kombinasi command find :
  1. mencari direktori bernama kemas
    detanto@detantoCQ45:~$ find /home/detanto -type d -name kemas
    /home/detanto/.gconf/apps/control-center/network/kemas
    /home/detanto/Documents/NetBeansProjects/unused/kemas-persistence-old/src/id/co/kemas
    /home/detanto/Documents/NetBeansProjects/unused/kemas-persistence-old/build/classes/id/co/kemas
    /home/detanto/Documents/NetBeansProjects/unused/kemas-persistence-old/build/test/classes/id/co/kemas
    /home/detanto/Documents/NetBeansProjects/unused/kemas-persistence-old/test/id/co/kemas
    Type d merupakan direktori, ada banyak pilihan type (dari perintah man find), kalo gw sih seringnya cman pake d sama f doang :D
    b      block (buffered) special
    c character (unbuffered) special
    d directory
    p named pipe (FIFO)
    f regular file
    l symbolic link; this is never true if the -L option or the -follow option is in effect,
    unless the symbolic link is broken. If you want to search for symbolic links when -L is in effect, use -xtype.
    s socket
    D door (Solaris)
  2. mencari file/direktori hidden, tinggal ketik
    find . -type f -name ".*"find . -type d -name ".*"
    titik disini adalah direktori user berada. jadi seumpama kita berada di /home/detanto, perintah ini akan mencari di direktori2 yang ada didalam /home/detanto

  3. mencari file yang yang mengandung "detanto" berukuran diatas 5MB
    detanto@detantoCQ45:~$ find -iname detanto* -size +5M
    /opt/mysql_database/misc/detantonux.err
  4. Mencari file dengan permission tertentu.
    misalnya kita mau mencari file dengan permission 777 dan menampilkannya dengan command ls -l
    detanto@detantoCQ45:~/test$ find . -perm 777 -type f -iname *.txt -exec ls -l {} \;
    -rwxrwxrwx 1 detanto detanto 0 2009-12-13 21:02 ./test1.txt
    misalnya kita mau langsung menghapusnya
    detanto@detantoCQ45:~/test$ find . -perm 777 -type f -iname *.txt -exec rm {} \;
  5. Mencari yang bukan ato find invert

    misal di direktori /home/detanto/test, ada 5 file :
    detanto@detantoCQ45:~/test$ ls -l
    total 0
    -rw-r--r-- 1 detanto detanto 0 2009-12-13 21:41 test1.txt
    -rw-r--r-- 1 detanto detanto 0 2009-12-13 21:02 test2.txt
    -rw-r--r-- 1 detanto detanto 0 2009-12-13 21:02 test3.txt
    -rw-r--r-- 1 detanto detanto 0 2009-12-13 21:02 test4.txt
    -rw-r--r-- 1 detanto detanto 0 2009-12-13 21:02 test5.txt
    Kita mau mencari yang bukan bernama test2.txt
    detanto@detantoCQ45:~/test$ find . -not -iname test2.txt
    .
    ./test4.txt
    ./test1.txt
    ./test5.txt
    ./test3.txt
hmm apalagi ya, sepertinya yg sering aku pake dan hasil browsing2 di internet cman ini, nanti kalo ada lagi aku tambahin di sini :D

2009-11-20

Package menarik dari Repo Ubuntu Debian (asr-manpages, funny-manpages)

Tahu manpages di Linux kan?
nah ada package yang unik di Ubuntu .. yaitu funny-manpages dan asr-manpages
Install packages nya


sudo apt-get install funny-manpages dan asr-manpages

kemudian coba ketikan beberapa perintah
~ $ man sysadmin
~ $ man baby
~ $ man sex
~ $ man think
~ $ man party

etc...

Lihat outputnya .....








Powered by ScribeFire.

2009-10-10

cron, crontab, backup

ada topik basi yg pasti dah pada jago.. cron :)

Apa itu cron?
cron adalah scheduler di unix-like dan merupakan singkatan dari chronograph

cron digunakan untuk mengatur skedul sehingga user dapat menjalankan perintah atau script pada waktu tertentu, biasanya digunakan untuk maintenance atau administrasi.

Apa yang bisa dilakukan cron?

Contoh2 yang bisa dilakukan dengan cron :
  • backup
    bisa backup database, backup data ato backup system
  • kirim email
    seumpama pengen kirim imil ke user jam 10 malem, tinggal diset gaksah balik kantor jam 10 malem :)
  • reboot server
  • dsb
di tempat gw, cron hanya digunakan untuk backup database dan tentu saja download scheduler kekekekek karena ga etis donlod file2 gede pas jam sibuk :P

cron merupakan daemon yang hanya perlu dijalankan sekali dan akan berjalan di background process. Pada kebanyakan distro, cron sudah terinstall secara ostosmastis dan di-load di startup, untuk melihatnya ketik

detanto@detantoCQ45:~$ ps aux | grep cron
root 3625 0.0 0.0 3480 1036 ? Ss 08:43 0:00 /usr/sbin/cron
detanto 11502 0.0 0.0 3340 816 pts/1 S+ 10:06 0:00 grep cron

Menggunakan cron

Ada beberapa cara untuk menggunakan cron, kalo diliat di /etc, akan ada beberapa file yang berbau cron

detanto@detantoCQ45:/etc$ ls -l | grep cron
drwxr-xr-x 2 root root 4096 2009-10-10 09:19 cron.daily
drwxr-xr-x 2 root root 4096 2009-08-30 22:48 cron.hourly
drwxr-xr-x 2 root root 4096 2009-10-05 10:45 cron.monthly
-rw-r--r-- 1 root root 724 2008-11-12 22:47 crontab
drwxr-xr-x 2 root root 4096 2009-08-30 22:48 cron.weekly
dari hasil ls, ada bberapa file yang berbau cron, apabila kita meletakkan script di dalam direktori cron.daily atau hourly, skedul akan dijalankan sesuai dengan nama direktorinya ..
kalo kita mau bikin skedul sendiri yang ga ngikut direktori2 itu, kita bisa edit lgsg ke file crontab. crontab adalah cron table; adalah sebuah file yang berisi skedul yang berisi job yang musti dilakukan pada waktu tertentu.

Isi dari crontab :

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#

Syntax crontab :

.---------------- menit
| .------------- jam
| | .---------- hdb
| | | .------- bulan (1 - 12) ato jan,feb,mar,apr ...
| | | | .---- hdm (0 - 6)
| | | | |
* * * * * user cmd

menit perintah akan dijalankan pada menit keberapa, nilai :'0' and '59'
jam perintah akan dijalankan pada jam keberapa, nilai : 0-23, 0 adalah tengah malam
hdb (hari dalam sebulan) perintah akan dijalankan pada hari keberapa dalam sebulan, misal kita mo jalankan perintah pada hari ke 13 setiap bulam , hdb akan mempunyai nilai 13
bulan perintah akan dijalankan pada bulan keberapa dalam setahun, nilai : 1-12 atau nama bulan dalam bhs inggris
hdm perintah akan dijalankan pada hari keberapa dalam seminggu, nilai : 0-6 atau nama hari dalam bhs inggris ((Minggu=0 or 7) ato sun,mon,tue,wed,thu,fri,sat )
user user yang akan menjalankan
cmd perintah yang mau dijalankan
contoh script yang gw masukkin di /etc/crontab

00 23 * * * root mysqldump --user root --password=apaya hrd > /home/detanto/backup_mysql/hrd_`date '+\%Y\%m\%d_\%H\%M\%S'`.sql
Script di atas akan melakukan script backup mysql spesifik ke database hrd tiap jam 11 malem dengan format file :
hrd_`date '+\%Y\%m\%d_\%H\%M\%S'`.sql
di direktori /home/detanto/backup_mysql/

ini gw share script yang menarik, dia nge-backup semua database yang ada di mysql, sebetulnya bisa menggunakan option --all-database, tapi afaik hasilnya jadi satu dalam satu file. Script yang gw buat ini akan membackup satu2 ke dalam file berformat gz .. jd irit :P

#!/bin/bash

dbUSRNM="root" # user database
dbPASSW="qqwwee" # password database
dbHOSTS="localhost" # host database

# path perintah linux
cmMYSQL="$(which mysql)"
cmDUMPS="$(which mysqldump)"
cmGZIP="$(which gzip)"

vrFILE=""
#lokasi backup
vrDESTI="/home/detanto/backup_mysql"
#hostname dari server yg akan dibackup
vrHOSTS="$(hostname)"
#tanggal
vrDATES="$(date +"%Y-%m-%d_%H%M%S")"
#array database yang tidak dibackup
arNOBCK=("mysql" "test" "sample" "information_schema")
#array database yang ada di server
arDBASE="$($cmMYSQL -u $dbUSRNM -h $dbHOSTS -p$dbPASSW -Bse 'show databases')"
#looping semua database yang sudah diisi arraynya di arDBASE
for db in $arDBASE
do
lewat=-1
if [ "$arNOBCK" != "" ];
then
for i in ${arNOBCK[@]}
do
[ "$db" == "$i" ] && lewat=1 || :
done
fi

if [ "$lewat" == "-1" ] ; then
#nama file
vrFILE="$vrDESTI/$db.$vrHOSTS.$vrDATES.gz"
#menjalankan perintah mysqldump dan lgsg di zip ke format gz
$cmDUMPS -u $dbUSRNM -h $dbHOSTS -p$dbPASSW $db | $cmGZIP -9 > $vrFILE
fi
done
simpan script ini, tambahkan permission untuk diexecute trus dipasang deh ke /etc/crontab


sumber2:
http://en.wikipedia.org/wiki/Cron
http://www.tech-recipes.com/category/computer-programming/unix-shell-scripting/bourne-shell-scripting/




2009-08-13

Konfigurasi Openfire dengan Zimbra Authentication (Zimbra-LDAP)

Setelah berhasil nginstall zimbra, saya coba konfigurasi Openfire agar menggunakan Authentikasi dari ZIMBRA.
Caranya :
Download dan Install Openfire Server

kemudian setup Openfirenya dengan login ke http:/localhost:9090

Pilih databasenya (Gua pilih postgreSQL)
kemudian pilih authentikasi dengan OpenLDAP

untuk DN isi DN dari Zimbra
dc=hamasaki,dc=okeh

masukkan IP / host ZIMBRA
Kemudian pilih test untuk melihat berhasil atau tidaknya.
pilih user dari ZIMBRA yang akan mendapat akses admin di Openfire (Dalam hal ini saya menggunakan andyut@hamasaki.okeh)
selesai.. tinggal next next next ...

Catatan : Untuk penambahan user dsb hanya bisa dilakukan di ZIMBRA server.



Powered by ScribeFire.

Install Zimbra server untuk Jaringan Lokal

Setelah kepending seminggu lebih gara2x ngurusin database... akhirnya sempat juga nginstall Zimbra server. Zimbra server gua ambil yg buat Ubuntu 8.04.
Caranya nginstall :

Install dulu OSnya (Gua pake LinuxMint Elyssa XFCE) dengan Hostname / nama komputer.
"mail"
Kemudian Install package yang dibutuhkan

sudo apt-get install bind9 dnsutils file libgmp3c2 libexpat1 libstdc++5 libltdl3 libperl5.8 perl curl libpcre3 libc6

Edit /etc/network/interfaces
menjadi

allow-hotplug eth0
iface eth0 inet static
address 192.168.1.240
netmask 255.255.255.0


edit /etc/hosts (saya mau bikin dengan domain hamasaki.okeh)

127.0.0.1 localhost.localdomain localhost
192.168.1.240 mail.hamasaki.okeh mail


Buat DNS server


edit /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
query-source address * port 53;
forwarders {
192.168.1.240 ;
};
auth-nxdomain no; # conform to RFC1035
};


Cek /etc/resolv.conf
nameserver 192.168.1.240

restart DNS server
sudo /etc/init.d/bind9 restart

edit /etc/bind/named.conf.local
zone "db.hamasaki.okeh" {
type master;
file "/etc/bind/db.hamasaki.okeh";
};


edit dan buat file
/etc/bind/db.hamasaki.okeh
;
; BIND data file for hamasaki.okeh
;
$TTL 604800
@ IN SOA mail.db.hamasaki.okeh. admin.db.hamasaki.okeh. (
070725 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS mail
MX 10 mail
IN A 192.168.1.240
mail IN A 192.168.1.240


buat folder /temp/zcs
extract zcs di folder tersebut
ganti permission
sudo chmod -R 777 /temp

Install Zimbra Server


sudo /temp/zcs/./install.sh
Ikutin petunjuknya (kebanyakan tinggal enter enter :D )

setelah selesai set admin password, dan terakhir pilih apply configuration setting.

Restart servernya

ZIMBRA Server Sudah bisa digunakan.

Untuk akses dari client

webbased
http://192.168.1.240
Web Administrator
https://192.168.1.240:7071
Thunderbird / Outlook
smtp : 192.168.1.240 ( Tls Enabled when possible )
pop3 : 192.168.1.240 ( Tls Enabled when possible )
username : [user]@hamasaki.okeh

IM (Pidgin) :
Protokol : XMPP / Jabber
username : [user name]
domain : hamasaki.okeh
connect server (Advanced Setting) : 192.168.1.240



2009-08-10

Managing IT

Ada artikel yang menarik dari http://www.cioupdate.com/insights/article.php/3710291/The-Top-20-Best-Practices-for-Managing-IT.htm



1. Adopt ITIL and other frameworks like COBIT and ISO 17799 to bring discipline and efficiency to IT operations.


2. Use IT systems performance management audits and software to increase application throughput and manage costs.

3. Utilize server consolidation to cut hardware, software, staff, and other costs.


4. Implement data center automation to reduce operating costs.


5. Install server virtualization to lower hardware costs and reduce administrative burden.


6. Embark on application rationalization to help IT shed duplicate applications and infrastructure.


7. Get improved data on application resource usage so you can make better use of maintenance staff.


8. Use application portfolio management (APM) tools to develop metrics to drive maintenance effort and cost reductions.


9. Use software change and configuration management tools and processes to reduce outages.


10. Undertake IT asset management initiatives to optimize usage of software and hardware.


11. Install the current generation of service-desk tools keep IT support costs down.


12. Employ enterprise architecture groups to drive standardization of the software portfolio.


13. Use your vendor and contract management teams to squeeze more value from vendors.


14. Utilize contract life-cycle management tools to help optimize the savings from supplier contracts.


15. Use formalized and aggressive IT sourcing practices to cut ongoing depreciation and maintenance fees.


16.
Employ eSourcing and services procurement tools help secure more competitive vendor bids.


17. Keep selective outsourcing options on the table that may lower costs and improve IT.


18. Implement IT operations scorecards to track and drives improvements and reduces cost.


19. Give IT leaders dual roles as business relationship managers and IT activity managers.


20. Create a funding pool to pay for IT MOOSE management initiatives.








Powered by ScribeFire.



2009-08-06

cairo dock di ubuntu jaunty

bbrp hari lalu kakak gw dateng dari kalimantan, dia bawa notbuk yang pake linux mint, ditambah sesuatu yg dulu kala pernah gw pasang tapi males masang di instalasi sekarang .. cairo-dock. dulu pernah masang ini sama awm (avant window manager).

pertama kali liat si biasa aja, tapi kok penasaran ya.. akhirnya gw pasang juga tuh cairo-dock.
instalasi sederhana sekale, cuman :
apt-get install cairo-dock
setelah dipake sehari, kok kayanya kurang asik ya.. rencana sore mau aku remove trus aku install manual dari package-nya, ga liwat apt-get karena biasanya kurang update. pas malem sampe rumah kakak gw pas ada, dan trnyata bener cairo-docknya dia beda banget, lebih lengkap. smangkin mantab untuk remove dan install manual.

  1. donlod file di sini https://developer.berlios.de/project/showfiles.php?group_id=8724
  2. Pilih donlod file yang sesuai, untuk notbuk gw pake yg blakangnya i686, cairo-dock_v2.0.8_i686.deb sama cairo-dock-plug-ins_v2.0.8_i686.deb
  3. lgsg sudo dpkg -i cairo-dock_v2.0.8_i686.deb cairo-dock-plug-ins_v2.0.8_i686.deb
  4. setting2 sesuei selera, selesai deh.

hasilnya :


yang perlu dicermati(halah) adalah virtualbox. Setelah dipasangin cairo-dock dan semua fitur2 compiz aku nyalain, tau2 xp-ku yang di virtualbox jadi transparent wakakakaka .. xp-nya jadi tembus pandang gitu, jadi anehlah pokoknya :


solusinya adalah :
1. buka CompizConfig Setting Manager ( kalo belum install, ketik sudo apt-get install compizconfig-settings-manager)
2. di Windows Management, klik Windows Rule kemudian di field "No ARGB Visuals" isikan dengan class=VirtualBox
3. tutup virtualbox dan jalankan lagi
4. selesai

sip deh cairo-dock dah jalan, ntar kalo bikin lambat tinggal diremove lagi.

2009-07-31

Remember when.......

Remember when.......

A computer was something on TV
from a science fiction show of note
a window was something you hated to clean
And ram was the cousin of a goat

Meg was the name of my girlfriend
and gig was a job for the nights
now they all mean different things
and that really mega bytes

An application was for employment
a program was a TV show
a cursor used profanity
a keyboard was a piano

Memory was something that you lost with age
a cd was a bank account
and if you had a 3.5" floppy
you hoped nobody found out

Compress was something you did to the garbage
not something you did to a file
and if you unzipped anything in public
you'd be in jail for a while

Log on was adding wood to the fire
hard drive was a long trip on the road
a mouse pad was where a mouse lived
and a backup happened to your commode

Cut you did with a pocket knife
paste you did with glue
a web was a spider's home
and a virus was the flu

I guess I'll stick to my pad and paper
and the memory in my head
I hear nobody's been killed in a computer crash
but when it happens, they will wish they were dead.

Powered by ScribeFire.

2009-07-24

Rip DVD di Ubuntu

beberapa hari lalu dapet kiriman 3 DVD live-nya Mike Portnoy, Billy Sheehan, Paul Gilbert, Neil Morse dan kawan2. lagunya buwat gw muantab2, dan jadi sering diputer. mikir2 gmana caranya dari DVD ini dirip ke mp3 ato ogg ato wav ato teman2nya, biar bisa didengerin sambil sepedaan ato pake mp3 .
sudo apt-get install lsdvd transcode
setelah terinstall, ketik
lsdvd
perintah diatas digunakan untuk mencari informasi track, track terpanjang biasanya yang kita cari, contoh hasil dari lsdvd :

detanto@detantonux:~$ lsdvd
libdvdread: Encrypted DVD support unavailable.
************************************************
** **
** No css library available. See **
** /usr/share/doc/libdvdread4/README.Debian **
** for more information. **
** **
************************************************
Disc Title: AMAZING_JOURNEY
Title: 01, Length: 02:10:11.066 Chapters: 31, Cells: 31, Audio streams: 02, Subpictures: 00
Title: 02, Length: 00:30:38.233 Chapters: 06, Cells: 06, Audio streams: 01, Subpictures: 00
Title: 03, Length: 00:07:49.100 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 00
Title: 04, Length: 00:07:54.210 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 00
Title: 05, Length: 00:07:19.000 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 00
Title: 06, Length: 00:05:34.176 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 00
Title: 07, Length: 00:01:59.100 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 00
Title: 08, Length: 00:30:36.233 Chapters: 05, Cells: 05, Audio streams: 01, Subpictures: 00

Longest track: 01
dari hasil lsdvd didapatkan track terpanjang adalah track 01, kemudian kita rip dvd tersebut ke ogg. secara default, proses ripping ke ogg membutuhkan oggenc yang tidak diinstall secara default oleh jaunty, untuk instalasinya cukup ketik
sudo apt-get install vorbis-tools
setelah proses install selesai, kita gunakan tools transcode untuk rippingnya, command-nya :
transcode -i DEV -x TYPE -T X,Y,Z -a 0 -y videomode, audiomode -b BRT -m "/home/detanto/Amazing Journey - Track Y.ogg"

-i : input device-nya
DEV : lokasi input
-x : tipe inputnya
TYPE : type input device
-b : bitrate
-T : DVD Title-nya, X : Title, Y : Track, Z : Angle
-y : output
-m : output file namenya
contoh implementasinya :
transcode -i /dev/cdrom -x dvd -T 1,2,1 -a 0 -y null,ogg -b 256 -m "/home/detanto/Amazing Journey - Track Y.ogg"
Penjelasan :
Argumen diatas mengidentifikasi kalo input device-nya adalah "/dev/dvd", tipe inputnya dvd, Title 1, chapter 2, dan camera angle 1, audio track adalah track 0 (-a), output formatnya yang video-nya null, audionya ke ogg, outputnya ke /home/detanto/Amazing Journey - Track Y.ogg
Untuk me-rip semua file ke dalam satu file, tinggal dimainin di parameter -T, diisi 1, -1, dia akan langsung me-rip semua chapter ke dalam satu file

Permasalahannya adalah kemalasan :P, kalo lagunya 1 ato 2 sih ga masalah, lha kalo lagunya diatas 5 males juga bikin command satu2 dan ganti tracknya satu2 setelah selesai. Untuk otomatisasi,
bisa dibuat program bash sederhana :
vi ripdvd
trus isi ripdvd itu dengan kode berikut :
for i in `seq 1 31`;
do
x=$(($i+1))
transcode -i /dev/cdrom -x dvd -T 1,$x,1 -a 0 -y null,ogg -b 256 -m "/home/detanto/Amazing Journey - Track $i.ogg"
done

Penjelasan :
ditentukan yg akan dirip adalah file yang ada di Title 01, Chapter terakhir adalah 31, jadi looping dari angka 1 ke 31, x adalah i+1 karena track pertama biasanya adalah menu-nya jadi ga perlu kita rip

setelah selesai, keluar dari vi, dan beri otorisasi execute ke file ripdvd
chmod +x ripdvd
kemudian jalankan
./ripdvd
selesai deh .. tinggal duduk manis nunggu kelar prosesnya hueheuheue, tapi perlu diingat bhw ga semua track itu dipake jadi ya teteup musti seleksi ulang. yang belum nemu adalah cara lgsg kasi nama file audionya heuheuheue

diambil dari beberapa sumber dan beberapa modifikasi :
1. http://ubuntuforums.org/showthread.php?t=330856
2. man transcode
3. simple bash programming

Pidgin Error

Setelah hampir 3 minggu tidak menggunakan pidgin, dikarenakan bisa login, tapi buddy nya ga ada yang kelihatan. jadi menderitaaaaa. akhir nya saya lapor ama eyang guru (detanto) hehehe.

Ternyata di pidgin.im juga memberi solusi. begini neh caranya:

pertama buka terminal dulu.
setelah itu copy dan paste perintah dibawah ini:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com \ 67265eb522bdd6b1c69e66ed7fb8bee0a1f196a8

setelah itu copy paste lagi yang ini:
echo deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu \ `lsb_release --short --codename` main | \

dan abis itu copy paste lagi:
sudo tee /etc/apt/sources.list.d/pidgin-ppa.list

nah. langkah selanjutnya:
sudo apt-get purge pidgin (untuk menghilangkan pidgin secara keseluruhan)
sudo apt-get update
sudo apt-get install pidgin

selesaii.

2009-06-22

Install Font MIcrosoft

di ubuntu tinggal
sudo apt-get install msttcorefonts


selesai... kita bisa pakai font Verdana, Times New Roman, Comic sans, dsb di Linux







Powered by ScribeFire.

2009-06-16

install jaunty jackalope di t61

baru hari ini berani nekat install jaunty di t61 ku karena banyak kerjaan yg g bs dipending. sekalian pas ga masuk, coba2 install deh..

urutan persiapan
-donlod iso (udah lama bgt didonlod, sjak hari 1 kluar), burn ke cd
-backup email (thunderbird)
-backup home folder (karena kmaren ngga rapi)
-install ubuntu dengan porsi partisi yg sesuai

konfigurasi partisi :
/home --> 40GB
/ --> 20GB
swap 1GB
pada waktu backup data ke komputer lain, ketemu masalah resuming scp. karena sempat mati lampu, proses kopi data 20GB terpaksa harus diulang. hmmm harus ada cara lain yg bisa resume karena scp ga ada fasilitas resume. di internet nemu cara pake rsync, commandnya :
sudo rsync --partial --progress -rsh=ssh fileyangmaudikopi lokasikopian
di notbukku command-nya jd kaya gini
sudo rsync --partial --progress -rsh=ssh 10.0.0.1:/home/detanto/opt/var /home/detanto/Desktop/opt
file2 yg perlu aku backup yg bukan dokumen:
1. pidgin --> adanya di /home/user/.purple
2. konfigurasi apache -> /usr/local/apache/conf
3. datastudio -> /home/user/.datastudio
4. mozilla firefox beserta antek2nya -> /home/user/.mozilla
5. database mysql -> /usr/local/mysql/var

instalasi berjalan mulus, proses pengembalian data juga berjalan mulus yang kurang satu doang trnyata proses pengkopian conf apache gatot.. sontoloyo terpaksa deh konfigurasi ulang smua. Proses pengembalian sistem berjalan mulus, ngikutin semua catetan yg gw tulis di blog ini ..mantaabbb

ada beberapa catatan untuk driver nvidia, supaya driver bisa diload lbh smooth, klik System->Administration->Hardware Drivers .. nanti akan ada pilihan untuk mengaktifkan driver proprietary tersebut

overall gw puas dengan jaunty ini, proses loading cuepet, grafisnya oke, dsb .. besok2 deh setelah aku perkosa abis aku review lagi :P

2009-06-07

Hacker kepinteran [Original version]

ORIGINAL VERSION

I get a laugh every time I read this. I thought you all would get a

laugh too.



The dangerous hacker is called bitchchecker and the one being fucked and

original author of the comments, who is talking here, is known as Elch.

127.0.0.1 is always the IP address of the computer you're currently

using; any request there will return to your computer.

Notice that in Germany we get Daylight Savings Time (DST) earlier than

in the US.



The story starts (I'm shortcutting here) with a kid insulting everyone

on the #stopHipHop IRC channel. Most people there believed it was rather

funny, but it got even more funny...

* bitchchecker (~
java@euirc-a97f9137.dip.t-dialin.net) Quit (Ping timeout#)

* bitchchecker (~java@euirc-61a2169c.dip.t-dialin.net) has joined

#stopHipHop

<bitchchecker> why do you kick me

<bitchchecker> can't you discus normally

<bitchchecker> answer!

<Elch> we didn't kick you

<Elch> you had a ping timeout: * bitchchecker

(~java@euirc-a97f9137.dip.t-dialin.net) Quit (Ping timeout#)

<bitchchecker> what ping man

<bitchchecker> the timing of my pc is right

<bitchchecker> i even have dst

<bitchchecker> you banned me

<bitchchecker> amit it you son of a bitch

<HopperHunter|afk> LOL

<HopperHunter|afk> shit you're stupid, DST^^

<bitchchecker> shut your mouth WE HAVE DST!

<bitchchecker> for two weaks already

<bitchchecker> when you start your pc there is a message from windows

that DST is applied.

<Elch> You're a real computer expert

<bitchchecker> shut up i hack you

<Elch> ok, i'm quiet, hope you don't show us how good a *****r you are ^^

<bitchchecker> tell me your network number man then you're dead

<Elch> Eh, it's 129.0.0.1

<Elch> or maybe 127.0.0.1

<Elch> yes exactly that's it: 127.0.0.1 I'm waiting for you great attack

<bitchchecker> in five minutes your hard drive is deleted

<Elch> Now I'm frightened

<bitchchecker> shut up you'll be gone

<bitchchecker> i have a program where i enter your ip and you're dead

<bitchchecker> say goodbye

<Elch> to whom?

<bitchchecker> to you man

<bitchchecker> buy buy

<Elch> I'm shivering thinking about such great Hack0rs like you

* bitchchecker (~java@euirc-61a2169c.dip.t-dialin.net) Quit (Ping timeout#)


What happened is clear: That guy entered his own IP address in his

mighty Hack-Tool and crashed his own PC. This way, the attack on my PC

was a failure.


I was already starting to think that I did not have to worry, but a good

*****r never calls it a day. Two minutes later he returned.

* bitchchecker (~java@euirc-b5cd558e.dip.t-dialin.net) has joined

#stopHipHop

<bitchchecker> dude be happy my pc crashed otherwise you'd be gone

<Metanot> lol

<Elch> bitchchecker: Then try *****ng me again... I still have the same

IP: 127.0.0.1

<bitchchecker> you're so stupid man

<bitchchecker> say buy buy

<Metanot> ah, [Please control your cussing] off

<bitchchecker> buy buy elch

* bitchchecker (~java@euirc-b5cd558e.dip.t-dialin.net) Quit (Ping timeout#)


There was a tension in the room... Would he manage, after these two

failures, to crash my PC? I waited. Nothing happened. I felt relieve...


Six minutes passed by until he prepared the next wave of attack. Being a

*****r, who usually cracks whole data centers, he knew what his problem

was now.

* bitchchecker (~java@euirc-9ff3c180.dip.t-dialin.net) has joined

#stopHipHop

<bitchchecker> elch you son of a bitch

<Metanot> bitchchecker how old are you?

<Elch> What's up bitchchecker?

<bitchchecker> you have a frie wal

<bitchchecker> fire wall

<Elch> maybe, i don't know

<bitchchecker> i'm 26

<Metanot> such behaviour with 26?

<Elch> how did you find out that I have a firewall?

<Metanot> tststs this is not very nice missy

<bitchchecker> because your gay fire wall directed my turn off signal

back to me

<bitchchecker> be a man turn that shit off

<Elch> cool, didn't know this was possible.

<bitchchecker> thn my virus destroys your pc man

<Metanot> are you *****ng yourselves?

<Elch> yes bitchchecker is trying to hack me

<Metanot> he bitchchecker if you're a *****r you have to get around a

firewall even i can do that

<bitchchecker> yes man i hack the elch but the sucker has a fire wall the

<Metanot> what firewall do you have?

<bitchchecker> like a girl

<Metanot> firewall is normal a normal *****r has to be able to get past

it...you girl^^

<He> Bitch give yourself a jackson and chill you're letting them provoce

you and give those little girls new material all the time

<bitchchecker> turn the firewall off then i send you a virus [Please

control your cussing]er

<Elch> Noo

<Metanot> he bitchchecker why turn it off, you should turn it off

<bitchchecker> you're afraid

<bitchchecker> i don't wanna hack like this if he hides like a girl

behind a fire wall

<bitchchecker> elch turn off your shit wall!

<Metanot> i wanted to say something about this, do you know the

definition of *****ng??? if he turns of the firewall that's an

invitation and that has nothing to do with *****ng

<bitchchecker> shut up

<Metanot> lol

<bitchchecker> my grandma surfs with fire wall

<bitchchecker> and you suckers think you're cool and don't dare going

into the internet without a fire wall


He calls me girly and says only his grandma would use a firewall. I know

that elder people are much more intelligent then younger, but I couldn't

let that rest. To see whether he really is a good *****r I lie and let

everything as it is. I don't have a firewall at all, only my router.

<Elch> bitchchecker, a collegue showed me how to turn the firewall off.

Now you can try again

<Metanot> bitch*****r can't hack

<Black<TdV>> nice play on words ^^

<bitchchecker> wort man

<Elch> bitchchecker: I'm still waiting for your attack!

<Metanot> how many times again he is no *****r

<bitchchecker> man do you want a virus

<bitchchecker> tell me your ip and it deletes your hard drive

<Metanot> lol ne give it up i'm a *****r myself and i know how *****rs

behave and i can tell you 100.00% you're no *****r..^^

<Elch> 127.0.0.1

<Elch> it's easy

<bitchchecker> lolololol you so stupid man you'll be gone

<bitchchecker> and are the first files being deleted

<Elch> mom...

<Elch> i'll take a look


In panic I started the Windows Explorer, my heart beating faster. Had I

under-estimated him?

<bitchchecker> don't need to rescue you can't son of a bitch

<Elch> that's bad

<bitchchecker> elch you idiout your hard drive g: is deleted

<Elch> yes, there's nothing i can do about it

<bitchchecker> and in 20 seconds f: is gone


Yes, true, G: and F: were gone. Did I ever have them? Doesn't matter, I

did not have time to think, I was scared. bitchchecker was comforting me

with a music tip.

<bitchchecker> tupac rules

<bitchchecker> elch you son of a bitch your f: is gone and e: too


Drive E:? Oh my god... All the games are there! And the vacation

pictures! I instantly take a look. Everything still there. But the

*****r said it was deleted....


Or isn't it happening on my computer?

<bitchchecker> and d: is at 45% you idiot lolololol

<He> why doesn't meta say anything

<Elch> he's probably rolling on the floor laughing

<Black<TdV>> ^^

<bitchchecker> your d: is gone

<He> go on BITCH


The guy is good: My CD-drive is allegedly deleted! Bitchchecker turned

my ancient disk sucker into a burner! But how did he do this? I'll have

to ask him. Some encourage him. He himself is giving advice how to avoid

the disaster on my hard drives.

<bitchchecker> elch man you're so stupid never give your ip on the internet

<bitchchecker> i'm already at c: 30 percent


Should I tell him he's not attacking my computer?

* bitchchecker (~java@euirc-9ff3c180.dip.t-dialin.net) Quit (Ping timeout#)


Too late... It's 20:22 when we get the last message of our *****r with

the alias "bitchchecker". We see that he has a "Ping timeout".


We haven't seen him since then... must be the Daylight Saving Time.

Thanks

2009-06-05

Sharing Printer di Linux

Ternyata lebih mudah sharing printer dilinux dibanding windows.. gua coba install HP 4355 All in One dan Epson LQ 2180 di 1 komputer.
caranya install dulu printernya di komputer (Gua pake LinuxMint XFCE)
Untuk HP 4355 All in One caranya sama lihat lihat http://nyemplunglinux.blogspot.com/2009/05/install-driver-hp-f2235-all-in-one-di.html
untuk Epson LQ 2180 download disini PPD nya http://www.ziddu.com/downloadlink/2591657/eplq2180.ppd.zip kemudian tinggal masuk ke menu Printing Add Printer pilih Epson on LPT1 (Biasanya) .. drivernya ambil dari file yang tadi didownload. selesai

untuk sharing diwindows

buka Menu Printing


Pilih Server --- Setting




Rubah menjadi



Restart Cups atau restart komputernya

Untuk client
Di Linux .. otomatis keluar di list Printing tinggal add aja..

Di Windows masuk ke Printer --- Add Printer




Masukkan url .. normally  http://[printer ip]:631/Printers/[nama printer]




selesai .. lebih simple kan ?



Powered by ScribeFire.

2009-06-04

Setup Pfsense

Akhirnya berhasil juga install configure Pfsense
Caranya :
Download PFsense di http://www.pfsense.org/mirror.php?section=downloads
Burn ke CD menggunakan Brassero

Siapkan 1 komputer dengan minimal 2 NIC.. 1 WAN dan yang lain LAN, spek komputer ga tinggi, gua pake komputer bekas (P IV RAM 256 20 Gb ATA)

Boot CD Pfsense, pilih default.<Enter>
VLAN = No <Enter>
LAN Network =
Pilih a Untuk cek autodetect Network card
kemudian masukkan ID lan Card untuk LAN (contoh rl0 )

kemudian masukkan ID lan Card untuk WAN (contoh rl1 )

selesai --> reboot --> pilih install to Harddisk
Ikutin petunjuk selanjutnya ... biasanya tinggal pilih accept accept accept accept

cabut CD-nya .. boot dari HD
setelah muncul muncul menu pfsense pilih nomor 2 ( Set LAN Setting )
masukkan IP LAN , masukkan netmask (normally 24)
selesai untuk server

Dari admin masuk ke http://<IP LAN pfsense>
masukkan user: admin pass : pfsense [ default configuration]

ikutin petunjuk selanjutnya .. sesuaikan dengan setting jaringan masing masing
kemudian untuk test WAN connection pilih Menu System -- Package .. jika koneksi internet berhasil akan muncul daftar plugin yang bisa diinstall.
selanjutnya tinggal konfigurasi diclient.. masukkan gateway <IP LAN pfsense>, yang lain tergantung konfigurasi di pfsense







Powered by ScribeFire.

2009-06-02

USB problem Virtualbox 2.2.2 & ubuntu 9.04

cara menampilkan usb device di vbox 2.2.2 dan jaunty

1) # sudo gedit /etc/fstab
pada baris akhir tambahkan ini:
none /proc/bus/usb usbfs devgid=46,devmode=664 0 0
2) save file
3) # sudo mount -a

selesai

2009-05-28

Repositori lokal drive

setelah 3 hari berkutak dan mencari cara bikin repositori di lokal drive, akhirnya ketemu juga. hehehe. cara nya ternyata sangat mudah. ada dua cara melakukannya.

cara pertama hanya untuk di lokal drive saja.

persyaratan:
1. punya dvd repository nya. sebanyak 6 buah.(kebetulan saya baru beli dari www.baliwae.com).
2. punya space hardisk +- 23 GB.

caranya:
1. buat direktori baru
2. mkdir /home/hanny/ubuntu/jaunty/1
3. mkdir /home/hanny/ubuntu/jaunty/2
4. mkdir /home/hanny/ubuntu/jaunty/3
5. mkdir /home/hanny/ubuntu/jaunty/4
6. mkdir /home/hanny/ubuntu/jaunty/5
7. mkdir /home/hanny/ubuntu/jaunty/6

8. copy isi per dvd ke setiap direktori yang baru, yang di copy: dist dan pool
9. cp /media/cdrom/* /home/hanny/ubuntu/jaunty/1
10. cp /media/cdrom/* /home/hanny/ubuntu/jaunty/2
11. cp /media/cdrom/* /home/hanny/ubuntu/jaunty/3
12.cp /media/cdrom/* /home/hanny/ubuntu/jaunty/4
13.cp /media/cdrom/* /home/hanny/ubuntu/jaunty/5
14.cp /media/cdrom/* /home/hanny/ubuntu/jaunty/6

15. tambahkan source.list di /etc/apt/source.list
16. sudo nano /etc/apt/source.list

tambahkan list dibawah ini

deb file:///home/hanny/ubuntu/jaunty/1 jaunty main restricted universe multiverse
deb file:///home/hanny/ubuntu/jaunty/2 jaunty main restricted universe multiverse
deb file:///home/hanny/ubuntu/jaunty/3 jaunty main restricted universe multiverse
deb file:///home/hanny/ubuntu/jaunty/4 jaunty main restricted universe multiverse
deb file:///home/hanny/ubuntu/jaunty/5 jaunty main restricted universe multiverse
deb file:///home/hanny/ubuntu/jaunty/6 jaunty main restricted universe multiverse

17. save
18. sudo apt-get updates

cara kedua adalah untuk bisa digunakan/share dengan user lain.
1. harus install apache2 dulu.
2. sudo apt-get install apache2
3.setelah itu kita akan membuat direktori di /var/www
4. sudo mkdir /var/www/ubuntu/jaunty/1
5. sudo mkdir /var/www/ubuntu/jaunty/2
6. sudo mkdir /var/www/ubuntu/jaunty/3
7. sudo mkdir /var/www/ubuntu/jaunty/4
8. sudo mkdir /var/www/ubuntu/jaunty/5
9. sudo mkdir /var/www/ubuntu/jaunty/6

10. copy isi per dvd ke setiap direktori yang baru, yang di copy: dist dan pool
11. cp /media/cdrom/* /var/www/ubuntu/jaunty/1
12. cp /media/cdrom/* /var/www/ubuntu/jaunty/2
13. cp /media/cdrom/* /var/www/ubuntu/jaunty/3
14.cp /media/cdrom/* /var/www/ubuntu/jaunty/4
15.cp /media/cdrom/* /var/www/ubuntu/jaunty/5
16.cp /media/cdrom/* /var/www/ubuntu/jaunty/6

15. tambahkan source.list di /etc/apt/source.list
16. sudo nano /etc/apt/source.list

tambahkan list dibawah ini

deb http://192.168.0.221/ubuntu/jaunty/1 jaunty main restricted universe multiverse
deb http://192.168.0.221/ubuntu/jaunty/2 jaunty main restricted universe multiverse
deb http://192.168.0.221/ubuntu/jaunty/3 jaunty main restricted universe multiverse
deb http://192.168.0.221/ubuntu/jaunty/4 jaunty main restricted universe multiverse
deb http://192.168.0.221/ubuntu/jaunty/5 jaunty main restricted universe multiverse
deb http://192.168.0.221/ubuntu/jaunty/6 jaunty main restricted universe multiverse

17. save
18. sudo apt-get updates

selesai. selamat mencoba.

2009-05-27

Install driver HP F2235 All in One di Ubuntu

download dulu HPlib terbaru  di http://hplipopensource.com/hplip-web/gethplip.html

Sebelum install pastikan internet connection-nya active, dan kabel USB-nya terhubung dengan printer.

Install driver nya melalui terminal

yoshizuki@bahamut ~ $ sh hplip-3.9.4b.run

Pilih automatic detect dsb.. ikutin petunjuk selanjutnya.... setelah selesai biasanya minta restart, pilih "r" untuk restart.

sekarang tinggal ditest printernya dengan print test page.
Untuk scanner-nya install sane / Xsane

yoshizuki@bahamut ~ $ sudo apt-get install xsane

jalankan xsane di Application=>Graphics=>xSane

biasanya langsung kedetect ..tinggal scan saja... dan outputnya bisa dipilih   PIFF, PDF, JPEG, atau yang lain..



Powered by ScribeFire.



2009-05-25

Blok Mp3 di Samba PDC

Akhirnya nemu juga cara buat denied  file mp3, avi dan teman-temannya di Samba PDC

Tinggal tambahkan 1 line ini di [global] setting

    veto files = /*.mp3/*.divx/*.eml/*.dat/*.db/*.inf/*.com/*.exe/*.vbs/*.dll/


restart samba ---- selesai .. user tidak bisa lagi store file Mp3, Avi , divx dll di PDC






Powered by ScribeFire.

2009-05-14

Data Models di web2py MVC Framework

Gua baru belajar web2py nih buat implementasi dan mutasi program tradeERP gua... Web2py ada 3 bagian utama yaitu Models Controller dan View, untuk sementara gua learning Data Models dulu..

Di web2py support many data source... diantaranya Gluon dari Google App Engine, PostgreSQL, Mysql, dan SQLlite (default)


contoh menggunakan Gluon

try:
    from gluon.contrib.gql import *  # if running on Google App Engine
except:
    db = SQLDB('sqlite://storage.db')  # if not, use SQLite or other DB
else:
    db = GQLDB()  # connect to Google BigTable
    session.connect(request, response, db=db)  #  and store sessions there


Deklarasi standar database , table, insert, count, delete, dan update

db = SQLDB(‘postgres://user:password@hostname/db’, pools=10)
db.define_table(‘person’,db.Field(’name’,’string’))
id= db.person.insert(name=’max’)
query=(db.person.id==id)
db(query).count()
db(query).delete()
db(query).update(name=’Max’)
rows = db(query).select(orderby=db.person.name)
for row in rows: print row.name



drop table dan truncate

db.person.truncate()
db.person.drop()


Contoh deklarasi table ,  dan validasi table, serta reference table (foreign key)

db.define_table('products', SQLField('name'), SQLField('description',
                'text'))


# MANY (users) TO MANY (purchases)

db.define_table('purchases', SQLField('buyer_id', db.users),
                SQLField('product_id', db.products), SQLField('quantity'
                , 'integer'))

purchased = (db.users.id == db.purchases.buyer_id) & (db.products.id
         == db.purchases.product_id)

db.users.name.requires = IS_NOT_EMPTY()
db.users.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db, 'users.email')]
db.dogs.owner_id.requires = IS_IN_DB(db, 'users.id', 'users.name')
db.dogs.name.requires = IS_NOT_EMPTY()
db.dogs.type.requires = IS_IN_SET(['small', 'medium', 'large'])
db.purchases.buyer_id.requires = IS_IN_DB(db, 'users.id', 'users.name')
db.purchases.product_id.requires = IS_IN_DB(db, 'products.id',
        'products.name')
db.purchases.quantity.requires = IS_INT_IN_RANGE(0, 10)


Pretty clean and readable  dibanding JAVA .. hehehehehehe :D

Powered by ScribeFire.



Instalasi web2py MVC Framework

Gua lagi nyoba MVC frameworknya web2py ... download di http://www.web2py.com/examples/default/download

kemudian extract packagenya ....

Buka Port 8000 (pastikan tidak ada yang menggunakan port ini)
Sekarang siapkan program python-nya

install python 2.5 di komputer

Windows
download dulu python di www.python.org 
Jalankan installer Python.. tinggal next next next  :D

kemudian jalankan web2py dengan doubleclick web2py.py atau di comandprompt ketik python25 web2py.py

Di linux (Ubuntu/Mint)

sudo apt-get install python2.5

Untuk package databasenya jgn lupa

Postgresql
sudo apt-get install python2.5-psycopg2 atau python2.5-pgsql

Mysql
sudo apt-get install python2.5-mysqldb

untuk yang lain tinggal lihat di manual Python dan web2py

kemudian jalankan python2.5 web2py
masukkan password admin dan ........ web2py siap dijalankan



Powered by ScribeFire.



[Migration journey] PostgreSQL VS MS SQL Server

Gua berencana mau mutasi my old tradeERP ke Linux platform. pengennya sih pakai Oracle, tapi terlalu canggih, akhirnya gua putusin pakai PostgreSQL karena secara syntax dan struktur ga jauh beda dengan oracle.

Database sebelumnya gua pake MS SQL server  2000. update terbaru sudah keluar versi 2008 menggunakan .NET framework 3.5 ( kl tidak salah), karena itu gua males upgrade.. pasti ada tetek bengek dan sebagainya :P

Ini comparasi selama gua pelajari MSSQL dan PGSQL

Datatype :

Di postgreSQL tidak mengenal datatype tinyint , smallmoney , smalldatetime, dan datetime, semuanya mesti diconvert dahulu tinyint jadi smallint , smallmoney jadi numeric, smalldatetime / datetime jadi timestamp

PostgreSQL support banyak datatype diantaranya Array , Ciddr , Inetd, Polygon, Circle, GIS format, dsb. sedangkan SQL server tidak  (Udah mahal .. payah .. :P)

Store procedure :

DI postgreSQL kita bisa define variable dengan tipe data langsung dari table nya ..

contoh :

create table mydb ( idx as varchar(20) );
;

<font face="sans-serif">maka deklarasi variable untuk merefer idx adalah user_idx mydb.idx%TYPE<br /><br />RDMS & ORM <br /><br />Yang unik yang belum aku temuin di MSSQL adalah di postgreSQL support inheritance dan polymorph.. dasar OOP<br />jadi bener-bener Object Oriented Database :D<br /><br />contohnya <br /><br /></font><small><font face="sans-serif"><i><small>CREATE TABLE cities (<br />    name            text,<br />    population      float,<br />    altitude        int     -- in feet<br />);<br /><br />CREATE TABLE capitals (<br />    state           char(2)<br />) INHERITS (cities);<br /></small></i></font></small><font face="sans-serif"><small><font face="sans-serif"><i><small><br />select * from capitals;<br /><br /><u>name | population | altitude | state </u></small></i></font></small><br />.....................<br /><br /><br /></font>
Yang lain tentang postgreSQL menyusul




Powered by ScribeFire.



Resolution Display trouble di Linux MInt / Ubuntu

Barusan gua ada trouble lagi otak atik sreen resolution ternyata gua salah setting, resolution ganti 1600x1400, terus dimonitor keluar error "cannot display ... optimum display 1280 x 1024". (Ok ... problem biasa nih pikir gua)  ... gua coba cara Debian dengan menggunakan 915resolution dan xdebconfigurator

sudo apt-get xdebconfigurator hwinfo ddcprobe xresprobe

kemudian jalankan xdebconfigurator

sudo xdebconfigurator

terus catet semua output Hsync, Vsync , driver dll..

setting ulang xserver-xorg

sudo dpkg-reconfigure xserver-xorg

ok .sampai sini fine fine aja

setelah enter-enter-enter ... lho kok ada yang aneh... settingan display monitor kok ga keluar? yang keluar hanya konfigurasi keyboard, mouse, language, dll... but no display resolution ..!!!
Ok, gua pikir fine ajalah siapa tahu autodetect.
kompie gua restart -- login .. lho ternyata masih problem...

sekarang gua otak atik xorg.conf nya (ada di /etc/X11/xorg.conf), gua tambahin  parameter di section "Screen"

Modes              "1280x1024" "1024x768" "640x480"
DefaultDepth    16


save, logout.. restart.. ternyata tetap.. (ggggrrrr) .. Gua curiga jangan-jangan hanya user itu aja yang bermasalah, buat buktiin gua create user baru

sudo adduser testing

kemudian login pake user tersebut (testing).. dan BISAA!!!! ga ada masalah di resolution..

Ok.. problemnya berarti konfigurasi startup display di user.. bukan di XORG.conf... gua login pake user yang bermasalah di console (Failsafe terminal).. kemudian gua jalanin

gnome-display-properties

gua pilih ke display awal -- apply --logout --- kemudian login lagi dengan GUI . dan .. BISAA!!!!!!  :D









Powered by ScribeFire.

2009-05-13

Binatang yang Akrab di dunia Linux :D

Buat iseng iseng .. ini daftar binatang-binatang yang jadi Ikon di dunia Linux

1. Penguin (Tux) : yah apalagi.. logonya linux lah...
2. Mice : Logonya Xfce
3. Blue Elephant : Logonya PostgreSQL
4. Bunglon : Logonya SuSe
5. ThunderBird : ya Thunderbird
6. Phoenix : Sunbird . kl ga salah
7. Godzilla  : Logonya Mozilla
8. Squirrel : Logonya Squirrel SQL
9. Fox : fireFox
10. Elang Laut : iconnya OpenOffice
11. Cat (Tom character) : Logonya Apache TomCat
12. Jackapole, Heron, Fawn : Nama release Ubuntu
13. Dolphin : Logonya Gambas

sisanya menyusul .. :D

Powered by ScribeFire.



2009-05-12

Instalasi IPCop

Minggu lalu gua browsing nyari firewall yang cocok dan gampang buat dikonfigurasi, akhirnya nemu pfsense dan IPCop, Pfsense gua udah coba, lumayan buat instalasinya, nah sekarang IPCop..

Caranya :
1. Download dulu Ipcop di www.ipcop.org
2. extract IPCop

sysadmin@bahamut ~/download $ tar xvzf ipcop-1.4.21

kemudian jalankan dikonsole

sysadmin@bahamut ~/download/ipcop-1.4.21 $ sudo chmod 755 make.sh

kemudian


sysadmin@bahamut ~/download/ipcop-1.4.21 $ sudo ./make.sh clean


sysadmin@bahamut ~/download/ipcop-1.4.21 $ sudo ./make.sh prefetch [nih dia donlod package yang diperlukan buat bikin ISO]
sysadmin@bahamut ~/download/ipcop-1.4.21 $ sudo ./make.sh build

Selanjutnya bersambung dulu ...





Powered by ScribeFire.

admin MSSQL diLinux dengan SQuirreL SQL

Walau gua udah pake 100% linux, tapi server-server dikantor, masih pake Win buat njalanin SQL server dan ASP. Biasanya buat manage / edit SQL gua pake Aqua Datastudio, tapi sekarang sudah tidak gratis lagi :(, akhirnya setelah ubek-ubek dan test, gua putusin pake Squirrel SQL.

caranya donlod dulu di http://squirrel-sql.sourceforge.net/

pastikan JRE /JDK minimal 1.5 keatas..

kemudian jalankan programnya untuk install ke dalam system.

untuk plugin MS SQL server gua pakai JTDS
donlod manual di http://jtds.sourceforge.net/

komponen ini yang saya gunakan juga untuk koneksi MS SQL Server ke OpenOffice.org . (Mantab toh.. :D )

Untuk database yang lain lihat direferensi Squirrel SQL. ada banyak kok.



Driver yang lainnya bisa dilihat di menu driver pada Squirrel SQL, support bayar sekali database,
diantaranya PostgreSQL, Mysql, Oracle, Sybase, SAPDB, SQLLite, HSQL, dsb.


Sebagai catatan, karena berbasis JAVA maka agak berat boo .. minimum RAM 1GB




Powered by ScribeFire.



2009-05-11

php konek MS SQL Server? kenapa tidak?

setelah sekian lama menggunakan php dan belun pernah konek ke mssql dari linux box, hari ini akhirnya mencoba dan berhasil.

kalo apache+phpnya ada di windows, proses gampang banget. tinggal hapus ";" di php5.ini tepat pas di php_mssql.dll, restart apache, selesei.

kalo dari linux box agak ribet, musti install php-pear, freetds dsb. berikut urut2annya:
1. Download FreeTDS dari http://www.freetds.org/
2. extract dan install
# tar zxvf freetds-stable.tgz
# cd freetds-0.82/ <-- versi gw, trgantung dari donlodan # ./configure --prefix=/usr/local/freetds # make # $ make install
3. Install php-pear, php-sybase, php5-dev
seperti biasa, ada cara mudah dan cara susah, cara mudahnya seperti ini :
apt-get install php5-sybase php-pear php5-dev
cara susahnya :P, seperti ini :
masuk ke direktori installer php, ketik :
#./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-mssql=/usr/local/freetds/

di pcku ada masalah pada waktu konfigurasi, dia mengeluarkan error :
configure: error: Directory /usr/local/freetds/bin is not a FreeTDS
apabila ada error seperti ini, yg harus dilakukan adalah copy 2 file (tds.h & libtds.a) dari hasil extract-an freetds-stable.tgz (di pc gw di direktori : /home/detanto/Desktop/freetds-0.82) :
cp /home/detanto/Desktop/freetds-0.82/include/tds.h /usr/local/freetds/include
cp /home/detanto/Desktop/freetds-0.82/src/tds/.libs/libtds.a /usr/local/freetds/lib
setelah proses copy selesai, configure lagi dan lanjutkan ke make & make install
#make
# make install
4. edit file freedts.conf yang ada di /usr/local/freetds/etc
vi /usr/local/freetds
trus beri konfigurasi sql server yang akan kita hubungi
[SQLsystem]
host =10.1.2.7
port = 1433
tds version = 7.0
5. testing dari php, buat file test.php, trus masukkan kode ini :
putenv('TDSVER=80');
putenv('FREETDSCONF=/usr/local/freetds/etc/freetds.conf');
$db_conn = mssql_connect("SQLsystem","detanto","112233")
or die( "ERROR: DB Connection failed" );

$sqldb=mssql_select_db("ITEMMASTER",$db_conn);
$sql="SELECT top 10 PRODUCT_NAME,ITEM_IMAGE1 FROM TB_ITEM_MASTER WHERE ITEM_IMAGE1 IS NOT NULL";
$tbl_item=mssql_query($sql);
while($row=mssql_fetch_array($tbl_item))
{
echo $row['PRODUCT_NAME']."\n";
mssql_close($db_conn)
6. Restart apache dan buka file test.php

Kalo kode ini berhasil, brarti dah sukses dah :D

2009-05-03

setting sharing internet isp fastnet di linux

di rumah internet pake fastnet dari firstmedia yg 130rebuan.. sebelumnya aku share internet pake windows, baik2 aja sih .. g pernah masalah juga wong client-nya cman 2, maksimal 4 hehehhe. cman kurang asoy aja dan dhcp-nya kadang idup kadang engga, jadilah mutusin mau pake linux aja.

setelah bberapa mggu lalu donlod debian lenny, dan udah diinstall kumplit dengan gnome-nya dan mau nggarap ruter tapi ga sempat2, hari ini akhirnya disempetin settingnya. cman makan waktu 15 minit untuk setting jadi router dan dhcpnya .. cepet ya? lha emang gampang soalnya kekekekeke

ada beberapa jalan untuk njadiin ruter; cara gampang dan mudah. cara gampang pake paket yang udah ada, misalnya shorewall; cara yang riweh pake iptables.

coba yang riweh dulu ye..
dari awal deh, install sperti biasa; trus apt-get install sudo supaya ga perlu su - kalo mau ngelakuin apa2.

setelah apt-get install; ketik visudo kmudian di baris trakhir kasi user kita; misalnya :
detanto ALL=(ALL) ALL
instalasi sudo udah selesai, mari kita lanjutin dengan setting ruternya.
Konfigurasi di rumah adalah seperti ini :
internet--fastnet--modem--(eth1)->PC->(eth0)--wireless access point--client

Syarat buat pc jelas NIC-nya harus 2. satu buat external (eth1), satu buat internal (eth0).
ga ngaruh eth0 ato eth1-nya. yang penting satu NIC buat kabel dari modem/internet, yang satunya buat ke jaringan internal, di pcku konfigurasinya kaya gitu :D

pertama2 setting kedua NIC ini, di debian edit file interface di /etc/network
vi /etc/network/interfaces
IP dari fastnet didapat dari server DHCP mereka, jadi eth1 akan diset ke dhcp; sementara eth0 akan diberikan ip fix di range 10.0.0.xxx supaya sama dengan kantorku sekarang. selain itu harus dirubah juga mac address dari eth1 supaya ga usah telpon fastnet untuk nge-flush networkku. fyi firstmedia ngeblok koneksi dari mac address jaringan yang nyambung ke jaringan mereka. umpama sekarang yang kehubung ke internet mereka mac-nya adalah : 00:23:f8:d8:5d:89. kmudian bberapa jam kmudian ada komputer kita yg lain dengan mac address 09:17:e3:d7:94:7f pengen konek ke internet. kalo cuman kita sambungin lgsg ke modem, ini ga akan bisa! dari pengalaman, musti dimatiin dulu modemnya skitar .5 jam ato kalo ga telpon CS-nya firstmedia untuk nge-flush modem kita. wahh males bgt kekekeke ..

di windows, bisa diakalin dengan donlod dulu software namanya macchanger (search di google aja, aku lupa alamatnya). dengan software ini kita bisa ngubah mac address kita dengan membuat batch atau lgsg pake commandnya. misal :
macchanger "Local Area Connection" 00:23:f8:d8:5d:89
dengan perintah ini mac address dari NIC yang mempunyai nama "Local Area Connection akan berubah mnjadi angka tersebut. di debian/ubuntu ato sodara2nya. kita ga perlu install apa2 tinggal kita masukkan di /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.1

auto eth1
iface eth1 inet dhcp
hwaddress ether 00:23:f8:d8:5d:89
setelah itu ketik :
echo “1” > /proc/sys/net/ipv4/ip_forward
command diatas supaya value ip_forward menjadi 1(true), ato komputer ini boleh melakukan ip forwarding
Kemudian ketik :
iptables – t nat –A POSTROUTING –d 0/0 –o eth1 –j MASQUERADE
printah ini memberitahukan menambahkan rules di table nat bhw paket jaringan setelah di routing, untuk tujuan mana saja (-d 0/0, -d adalah destination) dari eth1 (-o eth1) agar di rubah ipnya menjadi ip external server. jadi; klien atau komputer yang melalui router ini, ketika melakukan akses ke internet akan dikenal/menggunakan IP external yang dimiliki router.

setelah selesai, kita coba klien konek ke AP dengan konfigurasi :
ip : 10.0.0.2 // ip tdk boleh sama
subnet : 255.255.255.0 // subnet hrs sama dgn server
gateway : 10.0.0.1 // ip router
DNS 1 : 202.73.99.8 // fastnet
DNS 2 : 61.247.0.8 // fastnet
Tautanseharusnya klien bisa lgsg konek ke internet. ada satu masalah : masa iya musti setting manual tiap kali ada klien/komputer lain konek ke hotspot kita? wah repot dong. masalah ini bs diseleseiken dengan memasang dhcp server di router kita, karena udah pernah aku posting, tinggal dilanjutken aja bacanya ke sini http://nyemplunglinux.blogspot.com/2008/12/dhcp-dynamic-host-control-protocol.html

setelah setting selesei smua, tinggal konek bareng2 deh :D