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: - a gateway (a computer with interface to both LAN and WAN) running SSH daemon.
- another computer running VNCserver in the LAN.
- a computer to connect from outside, having both PuTTY and VNCviewer.
Let us continue with the steps, with PuTTY first: - Run PuTTY.
- In PuTTY, choose from Category menu, choose Connection-->SSH-->Tunnels
- Tick both options:
- Local ports accept connections from other hosts
- Remote ports do the same (SSH-2 only)
- Put Source port: 5901
- Put Destination: <LAN IP>:5901
- Click "Add" button.
- Choose Session
- Put gateway IP, port 22
- Click on "Open" button.
- 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: - Run VNC Viewer
- In Server field, put localhost:1
- Press "OK" button.
- 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: 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.
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: - Install Zenwalk dalam /dev/sdb
- Buat partition /dev/sda sebijik macam /dev/sdb
- Tukar semua partition Linux kepada "Linux RAID Autodetect" (type in hex: fd)
- Compile Zenwalk Linux kernel untuk support RAID
- Bina dan configure /etc/raidtab
- Initialize RAID disks ( /dev/md{0,1,2} ). Buat nod kalau perlu ( mknod /dev/md{0,1,2} b 9 {0,1,2} )
- Buat filesystem dalam RAID disks (mkfs/mkreiserfs)
- Mount RAID disk /dev/md0 ke /mnt
- Buat salinan /dev/sdb1 ke /dev/md0:
- cp -a {/bin,/boot,/home,/lib,/mnt,/opt,/root,/sbin,/tmp,/var,/usr,/dev} /mnt
- Buat special mounts: mkdir -p {/cache,/proc,/sys}
- Configure semula LILO untuk boot dari /dev/md0
- Edit /mnt/etc/fstab, tukar /dev/sd{1,2,3} kepada /dev/md{0,1,2}
- Reboot
- Kalau tak dapat nak boot ke /dev/md0, tambah kat LILO: root=/dev/md0
- Run LILO
- Run raidhotadd /dev/md{0,1,2} /dev/sdb{1,2,3}
- Edit /etc/raidtab
- 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: - config.inc.php - simpan konfigurasi site
- restrict.php - kod untuk hadkan access
- contoh.php - fail contoh yang sepatutnya dipanggil melalui index.php
- 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
|
|