Wednesday, June 27, 2007

周杰伦 - 发如雪限制级版MV

0 comments

好好听的歌被他拿来搞到这样,有才华。。。

Monday, June 25, 2007

Celcom vs Digi Yellow Fellow

1 comments

很有趣的动画,让我想起 "Happy Tree Friends"
不知道是不是在讽刺Digi!!



Thursday, June 21, 2007

想出名吗?想超越林志玲吗?

0 comments

超越林志玲不是梦,机会就摆在你眼前,看你有没有这胆量来挑战 Centurise Media 所举办的"封星榜"

"封星榜"是一项全新的真人秀,为你设置一条通往明日之星的真实途径,由两位资深的模特儿与广播界资深艺人 May Wan 与 Daniel Tan 主持。

"封星榜"将寻找两位具备主持人,品牌代言人和模特儿特质的人选,充当全新真人秀的"封星榜"之星。到时你将有机会赢取 RM50,000 现金奖和一年节目主持人或模特儿合约。会有两位优胜者的出现,个别获得 RM25,000 现金。

只要你是年龄介于18至30岁的马来西亚男性和女性又能精通中、英的读讲能力具有天分、魅力,个性、风格与神秘特质,"封星榜"之星就是你了。还等什么?还不赶快来报名。



选拔细节:

日期:2007年6月23及24日,2007年6月30及7月1日
地点:Parkroyal Hotel, Level 2 Catleya Rooms, Jalan Sultan Ismail, KL
所有选拔将在上午10时开始至傍晚5时结束。报名表格可在选拔处获取,在网上报名就以网上优先轮候为准。

注意:请携带您的参赛表格、新身份证和一张彩色近照

请到官方网站报名 www.starceleb.tv

Tuesday, June 19, 2007

Ubuntu Install CD Customization (Feisty 7.04)

6 comments

This guide is for the Alternative Install or Server Install CDs

Copy the entire installation CD to a directory on your hard drive. This guide will assume your CD image is in /opt/cd-image/, but you can put it wherever you like. It will take around 1GB of hard drive space.

If you have an ISO file, you can mount it and copy files out of it without burning it to CD:

mount -o loop /image.iso /mnt
mkdir -p /opt/cd-image
cp -rT /mnt /opt/cd-image

Changing isolinux.cfg to identify your preseed

We will create a preseed file called 'my.seed', which will live in the /preseed folder of the CD-ROM. We tell d-i where to find this file by modifying the boot-loader configuration file, located in isolinux/isolinux.cfg, to pass appropriate parameters on the kernel command line. In /opt/cd-image/isolinux/isolinux.cfg, add a new section labeled like this:
LABEL my
menu label ^My Installation
kernel /install/vmlinuz
append file=/cdrom/preseed/my.seed locale=en_US
console-setup/ask_detect=false console-setup/layoutcode=us
priority=critical initrd=/install/initrd.gz ramdisk_size=16384
root=/dev/ram rw quiet --
If you want to set the default action to booting with your custom seed, change the DEFAULT line to read 'DEFAULT my'.

You must specify a locale and keyboard on the command line, as these questions are asked before the seed is loaded. You can also set priority=critical here to ensure you don't see any unnecessary debconf questions.


Writing the preseed file

A preseed file has 4 fields per line:

  1. identity of the program which will pick up this command

  2. name of the variable whose value will be passed

  3. variable type

  4. value of variable

It looks something like this (from the default ubuntu-server.seed on the 7.04 CD):

# Always install the server kernel.
d-i base-installer/kernel/override-image string linux-server
# Don't install usplash.
d-i base-installer/kernel/linux/extra-packages-2.6 string
# Desktop system not installed.
d-i archive-copier/desktop-task string ubuntu-standard
d-i archive-copier/ship-task string
# Only install the standard system and language packs.
d-i pkgsel/install-pattern string ~t^ubuntu-standard$
d-i pkgsel/language-pack-patterns string
# No language support packages.
d-i pkgsel/install-language-support boolean false
The easiest way to create a preseed file is to start with an example and modify it:

https://help.ubuntu.com/7.04/installation-guide/example-preseed.txt

If you can't find the option you're looking for you can generate a comprehensive preseed file based on your own install time choices by using debconf-get-selections

debconf-get-selections
usage:
sudo apt-get install debconf-utils # It is part of the debconf-utils.
debconf-get-selections --installer > somefile.txt
debconf-get-selections >> somefile.txt

This will output a list of all debconf options you've chosen throughout your install; you can pick options out of this and put them into your preseed file.


Modify pool structure to include more packages

Probably the prime motivation to build your own install CDs is to modify which packages are installed; in particular you may want to add some packages to the CD.

The easiest way to do this is to build an 'extras' repository structure, containing only your extra .debs, and merge these into the CD file hierarchy before rebuilding the .ISO image. This guide will step you through how to do this.

This requires you to generate the Packages files that defines what files are in your repository; the Release file that indexes your Packages files, and the signed Release.gpg file, approving the repository as being official.


Create an "Extras" component

Create directories for your new component (substituting your version where appropriate):

cd /opt/cd-image
mkdir -p dists/feisty/extras/binary-i386 pool/extras/ isolinux preseed

Put all the extra .debs you want on your CD into pool/extras.

Create the file dists/feisty/extras/binary-i386/Release with the following content:

Archive: feisty
Version: 7.04
Component: extras
Origin: Ubuntu
Label: Ubuntu
Architecture: i386

You will need to run apt-ftparchive (below) to generate the Packages file.


Generating a new ubuntu-keyring .deb to sign your CD

In order to sign the Release file, we need to use GPG. The install system will then check the signature against the public keys held in the package ubuntu-keyring. You do not have a private key that matches one of the ones in the shipped ubuntu-keyring, so we need to build a custom version of the ubuntu-keyring package. Install the gnupg package if you do not have it already.

To create a signing key, enter gpg --gen-key. Accept the defaults, (for this use, it is probably OK to use "No expiry"). For your Real Name and E-mail address, you might like to use something like "XXX Signing Key" and "packages@xxx.example.org". Enter an appropriate passphrase.

In another directory (I use /opt/build/), we will download the source for the ubuntu-keyring package, unpack it, add our own GPG key, and rebuild the package. These steps import the 2 Ubuntu public signing keys into your main keyring, then exports them, along with your own public signing key, into a replacement keyring. "YOURKEYID" should be replaced with the 8-digit hexadecimal code that gpg tells you when you do the --list-keys command."Signing Key Name" is what you used in the previous step, when running gpg --gen-key.

To clarify, below is an example 'gpg --list-keys' response. In this example, "YOURKEYID" immediately follows the '/' on the line beginning with 'pub' (which in this example is '437D05B5'.)

gpg --list-keys
pub 1024D/437D05B5 2006-09-08
uid XXX Signing Key
sub 2048g/79164387 2006-09-08

Here is an example, which you will need to customize to suit your own setup:

cd /opt/build
sudo apt-get install fakeroot # requires the fakeroot package
apt-get source ubuntu-keyring
cd ubuntu-keyring-2005.01.12.1/keyrings
gpg --import < ubuntu-archive-keyring.gpg
gpg --list-keys "Signing Key Name"
gpg --export FBB75451 437D05B5 YOURKEYID > ubuntu-archive-keyring.gpg
cd .. # you are now on ubuntu-keyring-2005.01.12.1
dpkg-buildpackage -rfakeroot -m"Your Name " -kYOURKEYID
cd .. # you are now on /opt/build
cp ubuntu-keyring*deb /opt/cd-image/pool/main/u/ubuntu-keyring

You will end up with a udeb file for the installer, and a .deb file for the system. Both files need to be copied into the main component of your CD, because the CD will not check the extras directory.


Building the repository with apt-ftparchive

apt-ftparchive builds the Packages and Packages.gz files, needed by the installer. In order to use apt-ftparchive we will need to provide it with some configuration and some index files.

We will put the index files in /opt/indices:

mkdir -p /opt/indices /opt/apt-ftparchive
cd /opt/indices/
DIST=feisty; wget http://archive.ubuntu.com/ubuntu/indices/override \
.$DIST.{extra.main,main,main.debian-installer,restricted, \
restricted.debian-installer}

Create the files apt-ftparchive-deb.conf, apt-ftparchive-udeb.conf, apt-ftparchive-extras.conf, and release.conf in a directory (/opt/apt-ftparchive), substituting /opt/cd-image/ for the path to your CD image directory, and /opt/indices/ for the location of the index files, if they differ.

/opt/apt-ftparchive/apt-ftparchive-deb.conf:
Dir {
ArchiveDir "/opt/cd-image/";
};

TreeDefault {
Directory "pool/";
};

BinDirectory "pool/main" {
Packages "dists/feisty/main/binary-i386/Packages";
BinOverride "/opt/indices/override.feisty.main";
ExtraOverride "/opt/indices/override.feisty.extra.main";
};

BinDirectory "pool/restricted" {
Packages "dists/feisty/restricted/binary-i386/Packages";
BinOverride "/opt/indices/override.feisty.restricted";
};

Default {
Packages {
Extensions ".deb";
Compress ". gzip";
};
};

Contents {
Compress "gzip";
};
/opt/apt-ftparchive/apt-ftparchive-udeb.conf:
Dir {
ArchiveDir "/opt/cd-image/";
};

TreeDefault {
Directory "pool/";
};

BinDirectory "pool/main" {
Packages "dists/feisty/main/debian-installer/binary-i386/Packages";
BinOverride "/opt/indices/override.feisty.main.debian-installer";
};

BinDirectory "pool/restricted" {
Packages "dists/feisty/restricted/debian-installer/binary-i386/Packages";
BinOverride "/opt/indices/override.feisty.restricted.debian-installer";
};

Default {
Packages {
Extensions ".udeb";
Compress ". gzip";
};
};

Contents {
Compress "gzip";
};
/opt/apt-ftparchive/apt-ftparchive-extras.conf:

Dir {
ArchiveDir "/opt/cd-image/";
};

TreeDefault {
Directory "pool/";
};

BinDirectory "pool/extras" {
Packages "dists/feisty/extras/binary-i386/Packages";
};

Default {
Packages {
Extensions ".deb";
Compress ". gzip";
};
};

Contents {
Compress "gzip";
};

release.conf

APT::FTPArchive::Release::Origin "Ubuntu";
APT::FTPArchive::Release::Label "Ubuntu";
APT::FTPArchive::Release::Suite "feisty";
APT::FTPArchive::Release::Version "7.04";
APT::FTPArchive::Release::Codename "feisty";
APT::FTPArchive::Release::Architectures "i386";
APT::FTPArchive::Release::Components "main restricted extras";
APT::FTPArchive::Release::Description "Ubuntu 7.04";

To build the repository, sign it, and update the MD5SUM file, you can use a script like this:

BUILD=/opt/cd-image
APTCONF=/opt/apt-ftparchive/release.conf
DISTNAME=feisty

pushd $BUILD
apt-ftparchive -c $APTCONF generate \
/opt/apt-ftparchive/apt-ftparchive-deb.conf

apt-ftparchive -c $APTCONF generate \
/opt/apt-ftparchive/apt-ftparchive-udeb.conf

apt-ftparchive -c $APTCONF generate \
/opt/apt-ftparchive/apt-ftparchive-extras.conf

apt-ftparchive -c $APTCONF release $BUILD/dists/$DISTNAME \
>$BUILD/dists/$DISTNAME/Release

gpg --default-key "YOURKEYID" \
--output $BUILD/dists/$DISTNAME/Release.gpg \
-ba $BUILD/dists/$DISTNAME/Release

find . -type f -print0 | xargs -0 md5sum > md5sum.txt
popd

Building the ISO image

IMAGE=custom.iso
BUILD=/opt/cd-image/

mkisofs -r -V "Custom Ubuntu Install CD" \
-cache-inodes \
-J -l -b isolinux/isolinux.bin \
-c isolinux/boot.cat -no-emul-boot \
-boot-load-size 4 -boot-info-table \
-o $IMAGE $BUILD

Saturday, June 16, 2007

ADVERTLETS发支票了

4 comments



目前已经收到支票的网友有Smashpop, AprilCherrie, YongKaiLoon, Fayz (Syokkahwin), HongKiat, Delephant, Stupe
您心动了吗?想赚取零用钱吗?那么就赶快加入Advertlets吧!

Tuesday, June 12, 2007

杯子与水的爱情故事

0 comments

杯子:我好寂寞,我需要水,给我点水吧!

主人:好吧!拥有了你想要的水,你就不寂寞了吗?

杯子:应该是吧!

主人把开水倒进了杯子里。水很热,杯子感到自己快被融化掉了。杯子想,这就是爱情的力量吧!

水变温了,杯子感觉很舒服。杯子想,这就是生活的感觉吧!

水变凉了,杯子害怕了,在怕什么他自己也不知道。杯子想,这就是失去的滋味吧!

水凉透了,杯子绝望了,这也许就是缘分的杰作吧!

杯子:主人,快把水倒出去,我不需要了。

主人不在,杯子感觉自己压抑死了。可恶的水,冰凉的,放在心里,感觉好难受。

杯子奋力一晃,水终于走出了杯子的心里。杯子好开心。突然,杯子掉在了地上。

杯子碎了。临死前,他看见了。他心里的每一个地方都有水的痕迹,这时他才知道,他爱水。可是,他再也无法完整地把水放在心里了。

杯子哭了。他的眼泪和水融在了一起,奢望着能用最后的力量再去爱水一次。

当主人捡着杯子的碎片时,被其中的一片割破了手指,指间有血。

杯子笑了。爱情啊,到底是什么?

难道只有经历了痛苦才知道珍惜吗?

杯子笑了。爱情啊!到底是什么?

难道要到一切都无法挽回时才说放弃吗?

杯子笑了。爱情啊!到底是什么。。。

爱是人类最美的语言,爱能够创造奇迹。只有肯奉献爱的人,才能得到真正的爱。在与相爱的人相处时,矛盾肯定多多少少会有,但是双方一定要在理解的基础上处理好矛盾,不然的话就会造成难以磨灭的痛苦。

Friday, June 8, 2007

写BLOG赚钱

3 comments


现在大马新加坡有新的广告公司提供CODE给Blogger赚钱了!!!【也可以放在论坛和网站】只要你加入会员,把他所给你的CODE加入你的Blog里面就可以了赚马币了。这个是蛮新的广告公司,好像DIGI也有参与其中,大概和adbrates那些差不多,不过是大马新加坡的,很多人都加入了。按这里注册