sugree's blog

Making a swap partition in Linux

I have just made an backup of my old data in NTFS partition in my laptop. So, it is a good time to format that partition into ext3. In my case, the partition is a logical partition inside Win95 extended partition (f or W95 Ext'd (LBA)) while itself is NTFS (8 or HPFS/NTFS). In summary, my partition table is as follow.

/dev/hda1   Linux
/dev/hda2   W95 Ext'd (LBA)
/dev/hda5   HPFS/NTFS
/dev/hda6   Linux swap / Solaris

At the end of this transformation, I expect to have as below.

/dev/hda1   Linux
/dev/hda2   Linux extended
/dev/hda5   Linux
/dev/hda6   Linux swap / Solaris

Lineage 2 : Decrypt l2.ini version 413

Here is just my short note about hacking Lineage 2. In fact, I have never played this game. Anyway, my friend asked me to help him to modify l2.ini. It seems to be easy but actually, this file is encrypted by some (at least me) unknown algorithm. He has a tool called Decrypt Pack. Anyway, it did work as expect. I guessed that there are several encryption algorithm so the default one did not match to the l2.ini available in Thailand's client.

Installing VHCS on CentOS 4.4

I found an installation guide of VHCS on CentOS 4.x in its wiki. It looks a bit complicate but not too bad for me. So I suggested my friend to give it a try. He installed CentOS 4.4 as usual and then I have to install further packages to meet the requirements of VHCS. This is a long, long story. In fact, VHCS doesn't support CentOS exactly. The only distributions supported by VHCS are just Debian-based and SUSE. That's why I have to make it work myself.

Installing multilingual MediaWiki under the same domain

Multilingual is such a common thing today. Wikipedia has multilingual in subdomain. So you may read Wikipedia in English at http://en.wikipedia.org/ and in Thai at http://th.wikipedia.org/. I like it. Anyway, it will not look that pretty if your domain is not just for wiki. For example, http://www.thaigrid.or.th/ which has its wiki at http://research.thaigrid.or.th/. According to subdomain approach, they will have multilingual as follows.

How to encode video for PSP using MEncoder

Just a short note, it is possible to convert any video formats to play on PSP using MEncoder. I don't know much about PSP but my friend has one.

Port Forwarding using iptables

If you are behind a router aka ADSL router and you are assigned a private IP address, e.g., 192.168.0.0/16, 172.16.0.0/16, or 10.0.0.0/8, you will be able to use most of Internet applications like Web, E-mail, FTP, and more. However, P2P softwares might not work well because your computer can't receive incoming connection directly. You have to choice, DMZ or Port Forwarding. In case of your router is purely hardward, PortForward.com might help. Otherwise, your router might be handmade Linux router or you are using a kind of a VPN. The most common software in Linux router or VPN is iptables. This article is to describe how to set port forwarding through DNAT using iptables.