jump to navigation

Corel acquires IVI August 31, 2006

Posted by TSAI HONG-BIN in Diary.
add a comment

What a news, I don’t even finish my probation yet … now my boss changes!!

I then talked to VP Mike, (Ha! VP, a newbie requests for an appointment with VP!!), and got informed that core research group in Fremont won’t have any change, development team in Taiwan is highly emphesized and other development teams in China and India, are shrinked or closed.

Till now, I don’t see a reason for quiting, so I decide to stay. On the contrary, some other team members have started to joking about finding another job. Well, I keep looking at this deal in an optimistic way since if I don’t , I cannot be driven to work.

Advertisements

So Entangled Linux … SELinux August 31, 2006

Posted by TSAI HONG-BIN in Linux.
add a comment

Lately I’m assigned to study selinux and have an indepth understanding about this complicated stuff. What so called “pioneer” or “leading technology” directly equals “not handy”, “all you got is man” and “RTFS” (Read The Fxxking Source).

Well, the idea of MAC is not new. Its implementation is never hard, but complicated. If you ever build a website for enterprise customers, you’ll know what I’m saying. The design of access control toward web pages, moduels, functions…etc is just as it is employed in SELinux, a matrix (called “access vector” in SELinux). What makes it so much like in a extremely geek world is its enganglement with operating system.

When writing an access control module for a website, all you have to care is database design and programming logic. What if we want to write an access control module in an operating system? Then you have to take good care of boot-up, file system, processes, sockets… blah blah. Besides, you’ll need to hack (well, not so hacking, but it feels like a hacker’s job) into the kernel, stuff hooks in, then wrap it up again. This, is what “Linux Security Module” doing.

So, now, I registered to redhat selinux mailling list, to absorb some “selinux pros” atmosphere…

“The most horrible animal in the world… August 24, 2006

Posted by TSAI HONG-BIN in Misc.
add a comment

is your ex-wife.” said 李敖.

Whilst hearing this, I thought, “What makes an ex-wife? ex-husband.”

The logic is somewhat like, “nu-weapons are horrible, but those who made them are even more terrifying.”

early in the morning, I looked down at NeiHu August 23, 2006

Posted by TSAI HONG-BIN in Diary.
add a comment

This Tuesday I got up early. It was 6 o’clock, too early for me to feel hungry. Besides, there were rare shops open and few people on the street. Suddenly, an idea flashed in my mind. Since I’ve been thinking of hiking with my sweetheart every weekend after she moved to Taipei, why not take a reconnaissance first.

One great thing of living in NeiHu is that there’re mountains around. One doesn’t have to take much of a traffic to start hiking. I rode to the end of 大湖山莊街 and stepped on stone ladders, hiking toward the woods in front of me. Without a map, the fingerposts along were my only guide. Fortunately, the hiking trails here are well-developed so that I won’t get loss.

Here is my route: 大湖山莊街 -> 葉氏祖廟 -> 圓覺寺 -> 碧山巖 -> 鯉魚山步道 (下山) -> 大湖山莊街

While standing on the edge of 碧山巖, I can look down at the whole Taipei city. Especially Taipei 101, it’s the most arresting piece. NeiHu, is at the bottom of my eyes. I can see clearly the apartment I live in, and the building I worked at. Additionally, I saw the hills and mountains, and hill-tops behind them holding Taipei. After the touching moment, I took way back home.

I didn’t know exactly how far I walked, but, shamely, I stopped 4 times to make my breathe smoother. The whole trip took me about 1 and a half hour to back to where I started. What’s even more amazing is that I still had enough time to take a shower, a breakfast, and then go to work, *EARILIER* than regular duty-on time.

I will soooo take Hsin-Ju here enjoying with me.

everything’s bootable but me…(2) August 23, 2006

Posted by TSAI HONG-BIN in Linux.
add a comment

Cofession, I then threw the usbinitrd.img away and created a root file system to work it out. So, then, it seems like to start over.

Instead of using an initrd.img, I let it boot from a root file system. First we create a ramdisk file.

#dd if=/dev/zero of=/tmp/rootfs-file bs=1k count=4096

#mkfs.ext2 /tmp/rootfs-file 4096

#mount /tmp/rootfs-file /mnt/rootfs -o loop

I created root file system via buildroot-20060817.tar.gz. Unexpectedly, nodes under /dev in the target root file system it created are all normal files. I didn’t aware of this situation at the begining and therefore suffered from the result of system hang during booting process. Anyway, the fixup is quite simple, just copy the /dev of the system currently running like

#cp -dfR /dev/ /path/to/rootfs/

Besides, make sure that you selected all desired packages in busybox and re-compiled. the target root file system is located in ~buildroot/build_i386/root/ (presume that your target system is still in i386 architecture)

#cp -dfR /path/to/buildroot/build_i386/root/* /mnt/rootfs/

#umount /mnt/rootfs

#dd if=/tmp/rootfs-file bs=1k count=4096 | gzip -9 > rootfs.gz

#cp rootfs.gz /media/disk/

#umount /media/disk

Unnecessary kernel modules are removed, others are set build-in. In the end of recompiling, I got a kernel image in 1MB. Then copy all stuff to the usb drive. Set syslinux.cfg as follows:

############################################

DEFAULT vmlinuz

APPEND root=/dev/ram0 ramdisk_size=100000 init=/etc/init initrd=rootfs.gz

############################################

Now you got it.