there is no different between Rock and Blog

Setting Mikrotik

SKENARIO

LAN —> Mikrotik RouterOS —> Modem ADSL —> INTERNET

Untuk LAN, kita menggunakan ip address class C, dengan network 192.168.10.0/24. Untuk Mikrotik RouterOS, kita perlu dua ethernet card. Satu (ether1 - 192.168.1.2/24) untuk sambungan ke Modem ADSL dan satu lagi (ether2 - 192.168.10.1/24) untuk sambungan ke LAN. Untuk Modem ADSL, IP kita set 192.168.1.1/24.

Sebelum mengetikkan apapun, pastikan Anda telah berada pada root menu dengan mengetikkan “/”

1. Set IP untuk masing² ethernet card

ip address add address=192.168.1.2/24 interface=ether1 (public)

ip address add address=192.168.10.1/24 interface=ether2 (local)

Untuk menampilkan hasil perintah di atas ketikkan perintah berikut:

ip address print


Kemudian lakukan testing dengan mencoba nge-ping ke gateway atau ke komputer yg ada pada LAN. Jika hasilnya sukses, maka konfigurasi IP Anda sudah benar

ping 192.168.1.1
ping 192.168.10.10

2. Menambahkan Routing
ip route add gateway=192.168.1.1

3. Setting DNS

ip dns set primary-dns=202.134.1.10 allow-remote-requests=yes
ip dns set secondary-dns=202.134.0.155 allow-remote-requests=yes

Karena koneksi ini menggunakan Speedy dari Telkom, maka DNS yg aq pake ya punya Telkom. Silahkan sesuaikan dengan DNS provider Anda.

Setelah itu coba Anda lakukan ping ke yahoo.com misalnya:

ping yahoo.com

Jika hasilnya sukses, maka settingan DNS sudah benar

4. Source NAT (Network Address Translation) / Masquerading

Agar semua komputer yg ada di LAN bisa terhubung ke internet juga, maka Anda perlu menambahkan NAT (Masquerade) pada Mikrotik.

ip firewall nat add chain=srcnat action=masquerade out-interface=ether1

Sekarang coba lakukan ping ke yahoo.com dari komputer yang ada di LAN

ping yahoo.com

Jika hasilnya sukses, maka setting masquerade sudah benar

5. DHCP (Dynamic Host Configuration Protocol)

Karena alasan supaya praktis, temenku pengin pake DHCP Server. Biar klo tiap ada klien yang konek, dia ga perlu setting IP secara manual. Tinggal obtain aja dari DHCP Server, beres dah. Untungnya Mikrotik ini juga ada fitur DHCP Servernya. Jadi ya ga ada masalah.. 
* Membuat IP Address Pool

ip pool add name=dhcp-pool ranges=192.168.0.2-192.168.0.254

* Menambahkan DHCP Network
ip dhcp-server network add address=192.168.10.0/24 gateway=192.168.10.1 dns-server=202.134.1.10,202.134.0.155

* Menambahkan Server DHCP

ip dhcp-server add name=DHCP_LAN disabled=no interface=ether2 address-pool=dhcp-pool
Sekarang coba lakukan testing dari komputer klien, untuk me-request IP Address dari Server DHCP. Jika sukses, maka sekali lagi, settingannya udah bener

6. Management Bandwidth

Agar semua komputer klien pada LAN tidak saling berebut bandwidth, maka perlu dilakukan yg namanya bandwidth management atau bandwidth control, idea: (saya menggunakan simple que supaya lebih mudah ;

queue simple add name=”Billing” target-address=192.168.10.2/32 dst-address=0.0.0.0/0 interface=Local queue=default priority=8 limit-at=16000/32000 max-limit=16000/64000

queue simple add name=”Kasir” target-addresses=192.168.10.3/32 dst-address=0.0.0.0/0 interface=Local parent=Shaping priority=8 queue=default/default limit-at=0/8000 max-limit=0/256000 total-queue=default

Lanjutkan perintah tersebut untuk semua client yang ingin di limit bnadwithnya.

7. Graphing

Mikrotik ini juga dilengkapi dengan fungsi monitoring traffic layaknya MRTG biasa. Jadi kita bisa melihat berapa banyak paket yg dilewatkan pada PC Mikrotik kita.

tool graphing set store-every=5min

Berikutnya yang akan kita monitor adalah paket² yg lewat semua interface yg ada di PC Mikrotik kita, klo di komputerku ada ether1 dan ether2.

tool graphing interface add interface=all store-on-disk=yes

Sekarang coba arahkan browser anda ke IP Router Mikrotik. Klo aq di sini:

http://192.168.10.1/graphs/

Nanti akan ada pilihan interface apa aja yg ada di router Anda. Coba klik salah satu, maka Anda akan bisa melihat grafik dari paket2 yg lewat pada interface tersebut.

dicopas dari sini

Membuat Cluster Load Balancing Dengan Cepat dan Mudah

Copas dari blognya linux2.arinet.org

Written by ari   

Sunday, 17 February 2008 ImageSelama ini orang selalu menganggap bahwa membuat cluster load balancing adalah hal yang rumit dan memusingkan. Dan.. memang benar pendapat ini. Tapi sebenarnya ada satu cara mudah untuk mencapainya dengan menggunakan yang namanya balance.

Sebelumnya kita bahas dahulu sedikit mengenai konsep Clustering. Secara prinsip clustering mempunyai 2 buah pendekatan:
1. High Availability (Failover), adalah bila satu server gagal melayani service tertentu, maka tugas server tersebut otomatis akan dilempar ke server lainnya.
2. High throughput (Performance), disini yang diinginkan adalah performance yang tinggi yang dicapai dengan “membagi2” tugas yang ada ke sekumpulan server. Contohnya adalah:
2a. High-performance Computing (HPC), adalah sekumpulan server yang bekerja bersama-sama pada saat yang bersamaan untuk mengerjakan sesuatu tugas tertentu, biasanya dalam bentuk tugas perhitungan yang berat2, seperti simulasi bumi, me-render film animasi, dll.
2b. Load Balancing, adalah membagi2 beban kerja ke sekumpulan server diluar konteks computing, misalnya membagi beban kerja web server, mail server, dll.

Bagaimana mencapai hal ini?
Ada beberapa software opensource yang dapat kita gunakan:
1. Linux High-Availability (http://www.linux-ha.org)
2. RedHat Cluster Suite dan Piranha (http://www.redhat.com)
3. Linux Virtual Server (http://www.linuxvirtualserver.org)
4. BeoWulf Cluster (http://www.beowulf.org)
5. Openmosix (http://openmosix.sourceforge.net)

Namun solusi2 di atas kadang kala terlalu “canggih” atau “overkill” untuk mencapai tujuan clustering kita. Disinilah ‘balance’ masuk. Apa yang dapat ia sediakan?
1. Merupakan user-space program. Tidak perlu compile kernel dll. Langsung jalan secara command line.
2. Load balancing secara tcp. Cukup menyebutkan protocol atau port tcp berapa yang ingin kita load balancing.

Cara setup:
1. Download paketnya dari http://www.inlab.de/balance.html
wget http://www.inlab.de/balance-3.40.tar.gz
2. Extract, compile dan install:
2a. tar zxvf balance-3.40.tar.gz
2b. cd balance-3.40
2c. vi Makefile
Ubah baris ini: MANDIR=${BINDIR}/../man/man1
Menjadi: Untuk Ubuntu: MANDIR=/usr/share/man/man1
Untuk RedHat: MANDIR=/usr/local/share/man/man1
2d. make
2e. make install
Done! :)

Cara pakai:
Sebelumnya kita misalkan skenario seperti ini:
Kita mempunyai sebuah website yang ingin kita bagi beban kerjanya ke 3 buah server web. Maka kita perlu mensetupnya seperti terlihat di gambar (Oya, gambarnya adalah foto PC zaman dulu, tapi itu hanya ilustrasi yah, nanti servernya jangan pakai PC zaman dulu juga. Hehe…). Tiga buah server web yaitu www1 (192.168.0.1), www2 (192.168.0.2), dan www3 (192.168.0.3). Di depan mereka kita install sebuah server (192.168.0.254) yang bertugas membagi2 bebas kerja para server www tersebut. Jadi IP yang akan diakses oleh user adalah IP 192.168.0.254, jangan ke masing2 server www.

Image

Commandnya: (Jalankan command ini di 192.168.0.254) balance
Bila diketik tanpa option dia akan muncul seperti ini:
 _           _
| |__   __ _| | __ _ _ __   ___ ___
| ‘_ \ / _` | |/ _` | ‘_ \ / __/ _ \
| |_) | (_| | | (_| | | | | (_|  __/
|_.__/ \__,_|_|\__,_|_| |_|\___\___|
  this is balance 3.40
  Copyright (c) 2000-2006,2007
  by Inlab Software GmbH, Gruenwald, Germany.
  All rights reserved.

usage:
  balance [-b addr] [-B addr] [-t sec] [-T sec] [-adfpHM] \
          port [h1[:p1[:maxc1]] [!%] [ … hN[:pN[:maxcN]]]]
  balance [-b addr] -i [-d] port
  balance [-b addr] -c cmd  [-d] port

  -a        enable channel autodisable option
  -b host   bind to specific address on listen
  -B host   bind to specific address for outgoing connections
  -c cmd    execute specified interactive command
  -d        debugging on
  -f        stay in foregound
  -i        interactive control
  -H        failover even if Hash Type is used
  -M        use MMAP instead of SHM for IPC
  -p        packetdump
  -t sec    specify connect timeout in seconds (default=5)
  -T sec    timeout (seconds) for select (0 => never) (default=0)
   !        separates channelgroups (declaring previous to be Round Robin)
   %        as !, but declaring previous group to be a Hash Type

examples:
  balance smtp mailhost1:smtp mailhost2:25 mailhost3
  balance -i smtp
  balance -b 2001:DB8::1 80 10.1.1.1 10.1.1.2
  balance -b 2001:DB8::1 80


Jadi cara pakainya adalah misalnya:
balance -f http 192.168.0.1 192.168.0.2 192.168.0.3

Option -f itu artinya balance jalan di foreground, berguna untuk kita debug dan cancel. Kalau misalnya sudah ok, bisa kita jalankan tanpa option -f, maka balance akan jalan di background.

Untuk melihat cara bekerja balance adalah dengan membuka sebuah terminal dan meload website 192.168.0.254 secara berulang2. Untuk mudahnya dapat kita gunakan text browser seperti elinks:
watch elinks —dump http://192.168.0.254
Untuk kebutuhan testing, dapat kita atur agar isi website di 192.168.0.1, 192.168.0.2, dan 192.168.0.3 berbeda, jadi command di atas akan menampilkan isi website yang berbeda, tanda bahwa balance sudah meload balancing traffik web ke tiga buah server tersebut.

Contoh lain adalah:
balance -f http 192.168.0.1::100 ! 192.168.0.2::100 ! 192.168.0.3
Arti option di atas adalah: koneksi http akan diprioritaskan ke server 192.168.0.1 sampai sebanyak 100 koneksi, bila sudah penuh maka akan dilempar ke 192.168.0.2 sampai sebanyak 100 koneksi juga, sisanya akan ke 192.168.0.3

Bagaimana jika kita ingin menghandle koneksi yang memerlukan session seperti website dynamic pakai php? Hal ini bisa dicapai dengan option ‘%’ yaitu mengaktifkan session seperti ini:
balance -f http 192.168.0.1 192.168.0.2 192.168.0.3 %

Untuk option2 selengkapnya dapat kita lihat di ‘man balance’.

Apakah hanya dapat digunakan untuk akses http? Tentu tidak, dengan sedikit eksplorasi kita dapat pula menggunakannya untuk keperluan lain seperti load balancing akses internet, email, proxy, dll.

Penutup
Program balance ini menyediakan sebuah solusi praktis dan mudah untuk membuat sebuah cluster load balancer. Performance yang dihasilkan cukup bagus. Namun bila kita ingin menggunakan solusi yang lebih handal, kita dapat menggunakan LVS (linux virtual server) dengan kombinasi linux-ha. Namun tentu saja settingannya akan jauh lebih rumit. Kita akan membahasnya di lain kesempatan. Selamat mencoba :)

Tutorial ini dapat di download dari menu Download sebelah. Jangan lupa register dulu yah untuk mendownload.
Download > Artikel > Linux Admin > Sort berdasarkan Submit Date > adm_cluster_loadbalancing_mudah.

weekend working

Akhir minggu ini akan kerja berat, melengkapi konten di Green Template ke Blue Template dan memindahkan nya ke Server kumham, Mudah2an servernya nggak mati lagi tapi kl mati juga ya terpaksa senin ane datang pagiiii bgt u upload ke Server online….Bismillah,…mudah2an lancar dan tidak ada gangguan Amin. 

Create a Snazzier Devel Toolbar

Essential Drupal Modules

November 22nd, 2009

Share/Save

There are many Drupal module lists out there, but I feel they lack a few really essential ones. These are the modules that I install with every new site.

Essential Drupal Modules

Administration Menu

Provides a dropdown menu to most administrative tasks and other common destinations

This module makes administering a site quick and easy. It takes the “navigation” block menu, and puts it up top in a nice, slick drop-down menu. It’s configurable to “sticky” at the top of the page, and also to drop the site down 20px so that it doesn’t cut anything off. It’s a great way to make administering a site just a little easier, especially in the development process.

Devel

Various blocks, pages, and functions for developers.

This holds a host of functions for developing a Drupal site. It may be a bit overkill for some, but it does have a few functions that will be handy for anyone. The two most valuable are “empty cach” and “theme developer.” Anyone working on a new Drupal site will need to empty the cache often. Devel gives a quick link to do just that. The theme develper is probably the most handy function out of all of the modules listed here. You enable it, click on an area of your site, and it will display what tpl file or theme function that section of the site is using, where it’s located, and what to call it if you want to make a modification.

Personally, I like to style the default Devel developement block to match the Administration menu. Here is a short tutorial on how to do it.

Advanced Help

Allow advanced help and documentation.

This one is pretty self explanatory. It’s very useful with some of the more advanced modules

Webform

Enables the creation of forms and questionnaires.

This module is a life saver. Drupal does not come with an easy form creation tool, and the form api is very extensive and confusing. The Webform module makes form creation super easy. You can create just about anything with this module, and if you can think of something that you can’t do with the default UI, it allows for additional php validation and processing.

It has a built in pager function for multi-step forms, which is great, however, if you want to make a survey style form where the user’s input from one question determines where they go next, you need to do a bit of coding, along with using the Rules module. I built a small example which you can view here.

Rules

Lets you define conditionally executed actions based on occurring events.

An extremely useful module. I don’t think anyone should be without it on a Drupal site, yet I don’t see it on many lists. This module lets you control most aspects of the site through the use of conditionals. For example, a rule that I always set up is one to email me when there is a new comment in the approval queue. It’s a simple thing that Drupal just doesn’t have in it’s core UI. Another useful rule on sites with many users is to tell Drupal what page to bring a user of a certain role to on login. You can get much more complex. The module integrates with CCK, Content Access, Token, and Views. It also supports forms, allowing you to target specific fields, as well as allows the scheduling of actions so you can automate aspects of your workflow.

Views

Create customized lists and queries from your database.

Views is one of the most robust modules out there. You can create custom pages, blocks, and rss feeds based on certain database queries. The UI is pretty good, although it takes some getting used to. If you have a blog on Drupal, use views instead of the core module. It gives you much more control over what you want to display.

Views comes with some fantastic documentation and tutorials. To access it, install Views along with the Advanced Help module.

“SEO” Checklist

A Search Engine Optimization checklist for Drupal 6

This module doesn’t really do much of anything, but it can help you do one of the most important things for your new website. SEO!

This is a great module for a quick reference of what you need to be doing to keep your Drupal site in the forefront of the major search engines. Not only does it have links to submit your url and xml sitemap to Google, Yahoo, and Bing, it also has an extensive list of useful modules to make SEO a breeze. It even checks for you to see if they are installed on the system. These modules are also in my “essential” list, but since they are referenced in the SEO Checklist, I won’t go into great detail. Here is a short list of some of the modules that SEO Checklist recommends:

This is just a very small sample of what to expect from this module. It’s really useful to keep track of what you’ve done SEO-wise, and also to discover some new tricks and tips that you may not have known about.

Token

Provides a shared API for replacement of textual placeholders with actual data.

From the developer: “Tokens are small bits of text that can be placed into larger documents via simple placeholders, like %site-name or [user]. The Token module provides a central API for modules to use these tokens, and expose their own token values.”

Here is a list of modules that use the Token module.

Honorable Mentions

Here are a few other modules that I use, but don’t necessarily consider “essential.”

CCK (Content Construction Kit)

The Content Construction Kit allows you to add custom fields to nodes using a web browser.

This is an extremely handy module and a staple in Drupal development, although it’s not needed for every site. CCK allows you to add fields to nodes. So, for example, if you need certain descriptors for a content type, like an address field, you could add this easily. It’s a great way to customize content types to fit your exact needs.

AJAX

Automatically validates and submits any Drupal form using AJAX

This is a fantastic and super easy way to ajaxify all your forms. It’s not essential, but it’s definitely super cool.

Content Access

Provides flexible content access control

This is a handy little module if you need to control permissions for specific pages by role. It has a very extensive permission set, and easily fulfills your page specific permission needs.

Generate Password

Generate a password when adding a new user.

This module simply gives you the option of assigning random passwords to new users. It’s a life saver when you have to set up a lot of users quickly.

WYSIWYG

Allows users to edit contents with client-side editors.

If you need a wysiwyg editor on your site, this is how to make it happen. This isn’t actually an editor in itself, but a control point for tinyMCE, FCKediter, etc. It supports pretty much any wysiwyg that you can think of, and allows you, if you have the need, to install them all and assign them to different input filters, as well as control all of their options from one place.


That’s the end of my list. If you feel I have forgotten anything, leave a comment and tell me about it. If you have any questions on how to use these modules, most are very well documented on drupal.org, and if you still can’t find the answer, don’t hesitate to ask.

Membuat Block Region pada Drupal

Creating regions in Drupal is easy. Here is a super quick tutorial to get you started. This tutorial assumes that you have Drupal installed, as well as a theme. Just in case you don’t know, a region is a place on your site in which you can place blocks.

Creating a Block Region in Drupal

For our tutorial, we will make a region called “Content Top.” This will be displayed directly above the main content of your site. The process is the same for any region except for the code placement in your page.tpl.php file, so if you don’t need this particular block, feel free to modify the steps as necessary.

1) Open your themename.info file and place the following code:

regions[content_top] = Content Top

There should already be some regions declared. Put this code in the same area. If you are creating a different block, simply change the name. The name inside the brackets will be the variable name to be printed in page.tpl.php, and the name after the equals sign will be the name of the region in the administration section of the site.

2) Open your page.tpl.php file and place the following code right before the $content line:

<?php if ($content_top): ?>
  <?php print $content_top ?>
<?php endif; ?> 
<?php print $content?>

3) Save and upload both files

4) Now, go to your site and navigate to admin/settings/performance.

5) Go to the bottom of the page and press “Clear Cache.”

6) You can now go to the block administration page and put a block in your new region.

If you would like a block region somewhere else on your site, then instead of placing the code before the $content declaration, place your code someplace else. For example, if you wanted to make a “Content Bottom” region, put the code after the $content variable.

This is a very simple process, and quite handy for adding content controllable through the administration section of a Drupal site.

Sedih & Gemes

(illustrasi)

beritanya http://news.okezone.com/read/2010/07/15/340/353346/sebelum-tewas-dianiaya-bayi-jodi-diikat-5-jam

tiap hari di berita siang kok beritanya tentang penganiayaan Anak keci oleh orang tua melulu, kenapa manusia ini kok tega & tidak punya hati udah kayak binatang aja tindakannya, apa mereka nggak pernah jadi anak2 ya,..brojol dari batu langsung jadi anak gede……Semoga Allah melindungi kita….

Hujan di Pagi Hari

Pagi sekitar jam 5-8 jakarta dan sekitarnya diguyur hujan ringan, sempet sebelum berangkat kerja liat www.lewatmana.com dengan www.macetlagi.com.

dan Alhamdulillah sampe kantor lancar dan tidak hujan ,ETD 1 jam 30 menit Actual : 1 jam 10 menit

Script Block untuk melihat file dari WebFM di Drupal

<?php

$result = db_query(“SELECT fpath FROM webfm_file order by fid desc limit 0,4 “);

$items = array();

while ($row = db_fetch_object($result)) 

{

$palsu   = array(“/”,”sites”, “default”, “files”,”webfile”,”FileKanwil”);

$asli = array(“”,”“,”“,”“,”“,”“);

$linknya = str_replace($palsu, $asli, $row->fpath);

?>

<tr>

<td>

<ul><li><a href=”<? echo $row->fpath;?>”><?echo $linknya;?></a></ul></li>

</td>

</tr>

<?

}

?>

<tr>

<td><br>

<a href=”http://riau.kemenkumham.go.id/webfm”>

<ul><li>File Lainnya</li></ul></a>

</td></tr>

HandPhone 3G murah ….sejauh yang saya tahu

dengan harga second antara Rp 525K - 800K

Network system

UMTS / GSM 900 / GSM 1800 / GSM 1900Size107 x 57 x 15 mmWeight112 gDisplay- TFT touchscreen, 256K colors
- 240 x 320 pixels, 38 x 52 mm
- QWERTY keyboard
- Handwriting recognition (English and Chinese)Battery typeStandard battery, Li-Po 900 mAh (BST-33)Stand-byUp to 340 hTalk timeUp to 7 hRingtones- Polyphonic (40 channels), MP3, AACOptionNumber in phoneIn memory, 12 fields, Photo callCall recordsYesMemory- Card Slot Memory Stick Micro (M2), 64 MB card included
- 80 MB shared memoryGPRSClass 10 (4+1/3+2 slots), 32 - 48 kbpsMessagingSMS, MMS, Email, Instant MessagingInfrared portYesGamesGofl, QuadraPop + downloadableColorGranite Black, Crystal WhiteFeatures

- HSCSD Yes, 43.2 kbps 
- 3G Yes, 384 kbps 
- Bluetooth v2.0
- OS Symbian OS v9.1, UIQ 3.0 
- HTML (Opera 8), RSS reader
- Java MIDP 2.0
- Video playback 
- Media Player (MP3, AAC)
- T9
- Sync ML
- Office applications
- Organiser
- Photo album
- Voice memo

main ini sekarang :D

main ini sekarang :D