Monthly Archives: November 2010

PlayOn!HD

About 2 weeks ago, I bought myself a birthday present: A.C.Ryan PlayOn!HD.  I’ve been looking for a small device (a lightweight computer) and I finally settled with this PlayOn!HD.  I bought it because it’s a linux based device (hackable, install new software, can do a whole lot of things), consume less power (24W max), can run BT client and, of cause as a media player, it can play almost all types of video file on a TV.  With such a device, I can now connect to the world of BT without using a computer which consume much more power.

There were 2 shops selling the same device (same model, same specs).  Shop A was selling at RM499 (old stock).  Shop B was selling at RM519 (new stock with the latest firmware).  I bought mine from the shop B (new stock with the latest firmware).  It was a wrong decision!  The new firmware is simply useless.  It introduces a much uglier GUI, BT client crashes every few minutes and installing additional software is impossible.  That is 2 of of 4 main reasons for me to buy it!  At first, I though it was my fault, must be some configuration problem.  After numerous attempt in trying different configurations and searching the A.C.Ryan forum, I realized that I’m not the only one facing the issues.  It’s simply unbelievable that a company would advertise its device as BT capable but does not.  Yesterday, I downloaded an older firmware from the official website (at least they make the older firmwares available), hack it (so that I can install additional software afterward) and flash it to the device.  With the old firmware, I have a much responsive and beautify GUI but the BT client is still broken.  Never mind, since I’ve hacked the firmware, I can now install 3rd-party software (http://www.plugondevice.com/) onto the device.  The first software I’ve installed is the BT client : Transmission.

I’m now using the firmware version v7.06.r3875_Asian.  To hack it and make it possible to install 3rd-party software from PlugOnDevice (http://www.plugondevice.com/), you’ll have to unzip the firmware called install.img (it’s exactly a zip file) and extract a file called configuration.xml.  Edit the file like the following:

Original:

<image type="yaffs2">
    <fileName>package2/yaffs2_1.img</fileName>
    <mountPoint>/</mountPoint>
</image>
<image type="yaffs2">
    <fileName>package2/usr.local.etc.tar.bz2</fileName>
    <mountPoint>/usr/local/etc</mountPoint>
    <sizeBytesMin>0x0700000</sizeBytesMin>
</image>

Modified:

<image type="yaffs2">
    <fileName>package2/yaffs2_1.img</fileName>
    <mountPoint>/</mountPoint>
    <sizeBytesMin>0x5500000</sizeBytesMin>
</image>
<image type="yaffs2">
    <fileName>package2/usr.local.etc.tar.bz2</fileName>
    <mountPoint>/usr/local/etc</mountPoint>
    <sizeBytesMin>0x0400000</sizeBytesMin>
</image>

Save the updated configuration.xml back to the install.img file and flash the device.

Overall, the device is OK but the latest firmware is very disappointing.  Unless you are a linux user, I wouldn’t recommend buying it (there are many media player only device out there at a much cheaper price).  I hope they would listen to their customers comments and advices in the forum and come out with a really good firmware soon.  Since I’m a linux user, hacking is something I enjoy, I’m quite happy now with this device.  Now… what else can I do with it?  🙂

头痛

今天午饭后,回到座位继续工作时,突然发现电脑萤幕的一些字母竟然不见了!鼠标有时也看不见!头也开始有点晕、有点痛… 心想可能只是有点累,过一会儿就好了,所以就继续工作。可是头越来越痛,没办法只好到一边的沙发坐着,休息一下再继续。可是头痛不但没好转,呼吸也开始有些急促。就这样挣扎了一个小时,实在是没办法继续工作了,我向老板请了今年的第一个病假。开车回家只是十多分钟,可是头痛得很,还真有点担心,所以一直与前面的车子报保持着距离。回到家,倒在床上,希望睡一觉就没事。可是头一直痛,就是睡不着… 躺了一会儿,没效。起身,冲了壶凉茶,坐在沙发上,慢慢的喝。天空开始乌云密怖、起风、雷电交加。没多久就下起了倾盆大雨。雷电的次数可是我见过最多的一次!凉爽的天气喝着热呼呼的凉茶,渐渐的头痛好多了。现在已经是晚上十点半,头还是有点重重的。希望睡了一觉,明天就没事了…

陈氏书院

刚到吉隆坡时,我就注意到一栋古色古香的建筑--陈氏书院。一直都想到里头看看,但在吉隆坡生活了这么多年都没成行。今天离开了大众书局,心想:陈氏书院就在不远的地方,干脆就现在去吧!就这样,我终于到了陈氏书院。

陈氏书院的外墙和屋顶有着许多的雕像。

陈氏书院的正门口。

祠堂的正厅取名“德星堂”。此名的由来就不得而知了。

祠堂正中祭拜的是三个陈氏的老祖宗。两边的照片又都是谁呢?

这陈氏书院究竟是如何运作的?是个私人祠堂吗?这一切我都不知道。在里头转了一圈,并没看见什么说明。期间有几名老外游客走进来,可是没有英文解说(华文的也没有),他们呆了不到半分钟就离开了。感觉上很可惜… 这么一个文化气息浓郁祠堂、充满特色的建筑,老外游客应该是非常喜欢的。从前在香港,我到过他们旅游局大力推广的heritage trail的祠堂。太差了(怎么差就不说了),根本就无法和陈氏书院相比。可是那儿有双语的解说板,陈氏书院也应该有。我们的旅游局究竟要来干什么的?

纸玫瑰

前两天,发现了另一个纸玫瑰“福山玫瑰”的教程,成品似乎比“川崎玫瑰”漂亮。于是,我便下载了打算试一试。之前学折“川崎玫瑰”时,共花了好几个小时才完成;这一次有经验了,但也花了约四十五分钟吧!的确,“福山玫瑰”比“川崎玫瑰”漂亮,而且感觉上比较容易。也可能是我的手工不够好,所以作出来的“川崎玫瑰”不标准吧…

左边的是刚折好的“福山玫瑰”;右边的是从前折的“川崎玫瑰”。

Install Multiple SSL Certificates in Apache Web Server

  1. Generate the server key:
    # openssl genrsa -out /etc/ssl/private/abc.com.key 4096
  2. Generate and self-sign the certificate:
    # openssl req -new -key /etc/ssl/private/abc.com.key -x509 -out /etc/ssl/certs/abc.com.crt -days 7000
    Country Name (2 letter code) [AU]:MY
    State or Province Name (full name) [Some-State]:Kuala Lumpur
    Locality Name (eg, city) []:Kuala Lumpur
    Organization Name (eg, company) [Internet Widgits Pty Ltd]:ABC Ltd
    Organizational Unit Name (eg, section) []:
    Common Name (eg, YOUR name) []:abc.com
    Email Address []:admin@abc.com
  3. Repeat Step 1 and 2 for another domain name:
    # openssl genrsa -out /etc/ssl/private/xyz.com.key 4096
    # openssl req -new -key /etc/ssl/private/xyz.com.key -x509 -out /etc/ssl/certs/xyz.com.crt -days 7000
    Country Name (2 letter code) [AU]:MY
    State or Province Name (full name) [Some-State]:Kuala Lumpur
    Locality Name (eg, city) []:Kuala Lumpur
    Organization Name (eg, company) [Internet Widgits Pty Ltd]:XYZ Ltd
    Organizational Unit Name (eg, section) []:
    Common Name (eg, YOUR name) []:xyz.com
    Email Address []:admin@xyz.com
  4. Configure Apache to host two domains using different certificates:
    <VirtualHost 192.168.100.1:443>
    ServerName abc.com
    SSLEngine on
    SSLCertificateFile    /etc/ssl/certs/abc.com.crt
    SSLCertificateKeyFile /etc/ssl/private/abc.com.key
    ....
    </VirtualHost>
    <VirtualHost 192.168.100.2:443>
    ServerName xyz.com
    SSLEngine on
    SSLCertificateFile    /etc/ssl/certs/xyz.com.crt
    SSLCertificateKeyFile /etc/ssl/private/xyz.com.key
    ....
    </VirtualHost>
  5. Enable SSL module:
    # cd /etc/apache2/mods-enabled/
    # ln -s ../mods-available/ssl.conf
    # ln -s ../mods-available/ssl.load
    # /etc/init.d/apache2 restart

Note:

  • Each IP address can only be configured with one certificate.  For the example above:
    • abc.com=192.168.100.1
    • xyz.com=192.168.100.2
  • In step 2, the “common name” must refer to the domain name of the web site.  If a different name is given, you’ll get a certificate error message like the following:  “Certificate belongs to a different site, which could indicate an identity theft”.
  • I’m using Debian for the above example.