<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d5235279\x26blogName\x3druff+rants\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLACK\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://steelburn.blogspot.com/search\x26blogLocale\x3den_GB\x26v\x3d2\x26homepageUrl\x3dhttp://steelburn.blogspot.com/\x26vt\x3d-830537559292416964', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>
 

Virus W32.Brontok.A / W32.Rontobro@mm

Hi,
Just to share with you, should anyone has trouble removing this virus,
which was created by someone from our neighbouring country Indonesia.

I've been directed to these pages which offer solutions to remove the
virus from Windows systems:

http://skinhead69.gamexeon.com/

http://www.eset.com/home/home.htm

The first one was written by a fella from Indonesia as well, stating
that a local virus should have a local vaccine. :-)

Hope this information is useful for you.

VNC: Tunneling with PuTTY

Do you want to know how you can remotely access a computer in a LAN from outside with VNC?
Well, theoretically it is impossible to access any computer in a LAN from outside. Not if you know how to do port-forwarding! Tunnels? Yeah. We're going to create tunnels.
OK. Let me share with you how to use PuTTY to do port forwarding. What you need is:
  1. a gateway (a computer with interface to both LAN and WAN) running SSH daemon.
  2. another computer running VNCserver in the LAN.
  3. a computer to connect from outside, having both PuTTY and VNCviewer.
Let us continue with the steps, with PuTTY first:
  1. Run PuTTY.
  2. In PuTTY, choose from Category menu, choose Connection-->SSH-->Tunnels
  3. Tick both options:
    • Local ports accept connections from other hosts
    • Remote ports do the same (SSH-2 only)
  4. Put Source port: 5901
  5. Put Destination: <LAN IP>:5901
  6. Click "Add" button.
  7. Choose Session
  8. Put gateway IP, port 22
  9. Click on "Open" button.
  10. Login to SSH via PuTTY
Next is what we need to do with our VNCviewer. In this example I'm using RealVNC. You may get a copy for free and test it out. Let's continue:
  1. Run VNC Viewer
  2. In Server field, put localhost:1
  3. Press "OK" button.
  4. That's all! Believe me, it's working already.

I'm Brown

Hey, I've just completed a tickle.com test titled "What's your true colour?"
I turned to be brown in colour. Here the description:
Brown
You're brown, a credible, stable color that's reminiscent of fine wood, rich leather, and wistful melancholy. Most likely, you're a logical, practical person ruled more by your head than your heart. With your inquisitive mind and insatiable curiosity, you're probably a great problem solver. And you always gather all of the facts before coming to a timely, informed decision. Easily intrigued, you're constantly finding new ways to challenge your mind, whether it's by reading the newspaper, playing a trivia game, or composing a piece of music. Brown is an impartial, neutral color, which means you tend to see the difference between fact and opinion easily and are open to many points of view. Trustworthy and steady, you really are a brown at heart.
Anyone else for a try? http://web.tickle.com/color/

Setup software RAID-1 dalam distro Linux berasaskan Slackware

Kita sambung semula tutorial untuk setup RAID-1 dalam distro Zenwalk.
Saya membatalkan hasrat menggunakan dd untuk duplicate hard disk tempohari. Lambat sangat. OK. Consider kita buat semula. Secara ringkasnya ini adalah langkah-langkah yang perlu dibuat untuk setup RAID dalam Zenwalk.
Langkah-langkah:
  1. Install Zenwalk dalam /dev/sdb
  2. Buat partition /dev/sda sebijik macam /dev/sdb
  3. Tukar semua partition Linux kepada "Linux RAID Autodetect" (type in hex: fd)
  4. Compile Zenwalk Linux kernel untuk support RAID
  5. Bina dan configure /etc/raidtab
  6. Initialize RAID disks ( /dev/md{0,1,2} ). Buat nod kalau perlu ( mknod /dev/md{0,1,2} b 9 {0,1,2} )
  7. Buat filesystem dalam RAID disks (mkfs/mkreiserfs)
  8. Mount RAID disk /dev/md0 ke /mnt
  9. Buat salinan /dev/sdb1 ke /dev/md0:
    1. cp -a {/bin,/boot,/home,/lib,/mnt,/opt,/root,/sbin,/tmp,/var,/usr,/dev} /mnt
    2. Buat special mounts: mkdir -p {/cache,/proc,/sys}
  10. Configure semula LILO untuk boot dari /dev/md0
  11. Edit /mnt/etc/fstab, tukar /dev/sd{1,2,3} kepada /dev/md{0,1,2}
  12. Reboot
  13. Kalau tak dapat nak boot ke /dev/md0, tambah kat LILO: root=/dev/md0
  14. Run LILO
  15. Run raidhotadd /dev/md{0,1,2} /dev/sdb{1,2,3}
  16. Edit /etc/raidtab
  17. Sentiasa periksa /proc/mdstat untuk pastikan status macam mana
Penerangan:
/etc/raidtab asal (langkah 5):
raiddev       /dev/md0
raid-level 1
chunk-size 64k
persistent-superblock 1
nr-raid-disks 2
device /dev/sda1
raid-disk 0
device /dev/sdb1
failed-disk 1

raiddev /dev/md1
raid-level 1
chunk-size 64k
persistent-superblock 1
nr-raid-disks 2
device /dev/sda2
raid-disk 0
device /dev/sdb2
failed-disk 1
raiddev       /dev/md2
raid-level 1
chunk-size 64k
persistent-superblock 1
nr-raid-disks 2
device /dev/sda3
raid-disk 0
device /dev/sdb3
failed-disk 1
/etc/raidtab yang telah diubah (langkah 16):
raiddev       /dev/md0
raid-level 1
chunk-size 64k
persistent-superblock 1
nr-raid-disks 2
device /dev/sda1
raid-disk 0
device /dev/sdb1
raid-disk 1

raiddev /dev/md1
raid-level 1
chunk-size 64k
persistent-superblock 1
nr-raid-disks 2
device /dev/sda2
raid-disk 0
device /dev/sdb2
raid-disk 1
raiddev       /dev/md2
raid-level 1
chunk-size 64k
persistent-superblock 1
nr-raid-disks 2
device /dev/sda3
raid-disk 0
device /dev/sdb3
raid-disk 1
So, kalau selesai langkah-langkah ni, sepatutnya RAID-1 dah pun boleh digunakan. 
P/S: Tutorial ni dibuat dengan menganggap pembaca yang nak buat RAID-1 ni dah ada asas Linux yang kemas.

PHP: How to disallow direct access to PHP scripts.

Hari ni nak tulis tutorial ringkas tentang bagaimana nak hadkan access ke skrip PHP. Pendek kata, orang kena access melalui fail yang betul barulah boleh gunakan skrip tu.
 
Untuk tujuan itu, kita boleh gunakan 4 fail sebagai contoh:
  1. config.inc.php - simpan konfigurasi site
  2. restrict.php - kod untuk hadkan access
  3. contoh.php - fail contoh yang sepatutnya dipanggil melalui index.php
  4. index.php - fail yang sepatutnya digunakan.
OK. Kita mulakan ya.
Dalam contoh ini, saya menggunakan WAMPSERVER ( http://www.wampserver.com ). Lokasi default tempat fail-fail HTML dan PHP disimpan ialah c:\wamp\www
 
Untuk projek ni, kita buat satu sub-direktori dalam c:\wamp\www dan namakannya sebagai 'sitename'. Anda boleh ubah nama tu kepada apa-apa nama yang anda suka. Anda juga boleh memasukkan fail-fail yang bakal kita cipta terus ke dalam site anda sendiri. Kalau ikut contoh, sepatutnya dah ada direktori c:\wamp\www\sitename kan? Eh.. nak ingatkan ni, cuma langkah pertama dan kedua aje yang penting, yang seterusnya tu sekadar nak pastikan kod ni jalan aje.
 
---
 
Langkah Pertama:
 
Edit config.inc.php dan masukkan dalam blok <?php .. ?> :
$site_name = "c:\wamp\www\sitename";
 
 
Langkah Kedua:
 
Edit restrict.php dan masukkan yang berikut:
<?
include("./config.inc.php");
if (strtolower($site_path."/index.php") != strtolower($_SERVER['SCRIPT_FILENAME']))
 header("Location: index.php");
?>
 
Langkah Ketiga:
 
Edit contoh.php, dan muatkan kod berikut:
<?php
include("restrict.php");
 
echo "Fail contoh.php tak dapat diproses kalau panggil terus.<br>\n";
?>
 
 
Langkah Keempat:
Edit index.php, dan masukkan contoh kod:
<?php
echo "Kena panggil fail index.php dulu<br>\n";
 
include("contoh.php");
?>

Something Nice To Share

Something nice to share...


Read these beautiful lines:

To realize
The value of a sister
Ask someone
Who doesn't have one.

To realize
The value of ten years:
Ask a newly
Divorced couple.

To realize
The value of four years:
Ask a graduate.

To realize
The value of one year:
Ask a student who
Has failed a final exam.

To realize
The value of nine months:
Ask a mother who gave birth to a still born.

To realize
The value of one month:
Ask a mother
who has given birth to
A premature baby.

To realize
The value of one week:
Ask an editor of a weekly newspaper.

To realize
The value of one hour:
Ask the lovers who are waiting to Meet.

To realize
The value of one minute:
Ask a person
Who has missed the train, bus or plane.

To realize
The value of one-second:
Ask a person
Who has survived an accident...

To! realize
The value of one millisecond:
Ask the person who has won a silver medal in the Olympics

Time waits for no one.

Treasure every moment you have.
You will treasure it even more when
you can share it with someone special.

To realize the value of a friend:
Lose one.

Thanks to: Ina

Setup software RAID-1 dalam distro Linux berasaskan Slackware (part 1)

Saya telah memasukkan Zenwalk Linux ke dalam satu server HP ProLiant ML110. Cakera keras unit ini merupakan jenis SATA dan terdapat chipset ICH7R yang boleh digunakan untuk SATA RAID-0/1. Masalahnya kebanyakan distro (kependekan distribution) Linux tidak memuatkan support untuk SATA RAID menggunakan chipset tersebut.

Apa yang saya buat pada peringkat awal ialah dengan memasukkan sahaja Zenwalk Linux ke dalam /dev/sda (hard disk pertama) selepas membuat partitions yang berpatutan sebelum saya mendapati apa salahnya jika saya menggunakan software RAID-1 supaya hasrat menggunakan RAID yang terbantut sebelum ini dapat dicapai.

Satu sumber yang diperolehi dalam Internet saya jadikan rujukan untuk tujuan ini:
http://www.megapico.co.uk/linuxdocs/slackware_raid.html

Walau bagaimanapun, saya mengikut dokumentasi tersebut, saya perlu memasukkan Linux ke dalam /dev/sdb (hard disk kedua) barulah betul. Jadi, saya pun membuat satu salinan hard disk pertama di dalam hard disk kedua dengan cara berikut:
# dd if=/dev/sda of=/dev/sdb bs=10240
Dengan arahan di atas, saya akan mendapat satu salinan hard disk yang benar-benar serupa.

Saya sedang menunggu semuanya selesai....



ruff rants

What's going on around me... what's I feel about things happening around.. and also about upcoming events sometimes.

blogsphere
10 recent rants
rant archives



Technorati search