Gumstix LCD pack (verdex XL6P + consoleLCD16-vx + netmicroSD + Samsung LCD).
A second hand is moving at every 0.5 second.
03 June, 2008
20 January, 2008
How to build mail-notificaton to suport SSL in Ubuntu.
I'd had a problem with mail-notification in Ubuntu 7.10 for an ages. The problem was mail-notification didn't support SSL because it was compiled with --disable-ssl (it's something about a licence policy of Debian.). I need to use SSL for one of my email server and was lazy to find a replacement program. After ignoring the problem for a while, I finally found out how to compile mail-notification by using apt-src.
$ sudo aptitude install apt-src
$ mkdir build
$ cd build
$ sudo apt-src install mail-notification
It will create mail-notification_4.1.dfsg.1 directory, then we have to edit a rules file for Debian to enable SSL.
$ sudo gvim mail-notification_4.1.dfsg.1/debian/rules
Erase --disable-ssl and save the file. It's ready to build.
$ sudo apt-src build mail-notification
We finally get mail-notification_4.1.dfsg.1-2ubuntu1_i386.deb and mail-notification-evolution_4.1.dfsg.1-2ubuntu1_i386.deb.
$ sudo aptitude remove mail-notification
$ sudo dpkg -i mail-notification_4.1.dfsg.1-2ubuntu1_i386.deb
PS. you might need to install libssl-dev package by "sudo aptitude install libssl-dev" before you can compile mail-notification.
$ sudo aptitude install apt-src
$ mkdir build
$ cd build
$ sudo apt-src install mail-notification
It will create mail-notification_4.1.dfsg.1 directory, then we have to edit a rules file for Debian to enable SSL.
$ sudo gvim mail-notification_4.1.dfsg.1/debian/rules
Erase --disable-ssl and save the file. It's ready to build.
$ sudo apt-src build mail-notification
We finally get mail-notification_4.1.dfsg.1-2ubuntu1_i386.deb and mail-notification-evolution_4.1.dfsg.1-2ubuntu1_i386.deb.
$ sudo aptitude remove mail-notification
$ sudo dpkg -i mail-notification_4.1.dfsg.1-2ubuntu1_i386.deb
PS. you might need to install libssl-dev package by "sudo aptitude install libssl-dev" before you can compile mail-notification.
18 October, 2007
Upgrade from Ubuntu 7.04 to 7.10 in ThinkPad R50e.
Upgrade from Ubuntu 7.04 to 7.10 in ThinkPad R50e.
I upgraded my computer from 7.04 to 7.10 via update-manager. It works fine with an old kernel but cannot boot from a new kernel which is 2.6.22 version. When I tried to boot from the new kernel, it paused for a while and then gave me a (initramfs) terminal with a message that I implied it could not detect a hard drive. I found out it happened because the initramfs script didn't load ide_generic module to the kernel. I tried to use yaird instead of initramfs-tools, but it doesn't work. I have no idea what's going on.
I solved this problem by compiling a kernel by myself. It's not a best choice to do but I like to have a custom kernel that fits to my computer. Instead of compiling ide_generic and piix as modules, I compiled both of them into the 2.6.22 kernel. I'm happy with the result and it works very well.
I recalled the problem has happened since I did upgrade from 6.10 to 7.04. Fortunately, my computer's running by my custom kernel and it didn't bother me to find out how to use the provided kernel. Just today, 25 Nov, something came up in my mind. When I got a terminal console after waiting for a while as I mention above, I inserted ide_generic module and then the hard drive had been detected. It meant that either 7.10 or kernel 2.6.22 doesn't need to load piix module which I normally used for my notebook to detect the hard drive. I's surprised!!! Moreover, there isn't piix module in the provided kernel. It's been removed for a while I guessed but I didn't notice. It might has happened since 7.04.
To make my computer run by the provided kernel, I edited my own /etc/initramfs-tools/modules from piix to ide_generic and reconfigured the kernel. Everything works very well. I would haven't had the problem if I installed Ubuntu 7.10 instead of upgrading.
I upgraded my computer from 7.04 to 7.10 via update-manager. It works fine with an old kernel but cannot boot from a new kernel which is 2.6.22 version. When I tried to boot from the new kernel, it paused for a while and then gave me a (initramfs) terminal with a message that I implied it could not detect a hard drive. I found out it happened because the initramfs script didn't load ide_generic module to the kernel. I tried to use yaird instead of initramfs-tools, but it doesn't work. I have no idea what's going on.
I solved this problem by compiling a kernel by myself. It's not a best choice to do but I like to have a custom kernel that fits to my computer. Instead of compiling ide_generic and piix as modules, I compiled both of them into the 2.6.22 kernel. I'm happy with the result and it works very well.
I recalled the problem has happened since I did upgrade from 6.10 to 7.04. Fortunately, my computer's running by my custom kernel and it didn't bother me to find out how to use the provided kernel. Just today, 25 Nov, something came up in my mind. When I got a terminal console after waiting for a while as I mention above, I inserted ide_generic module and then the hard drive had been detected. It meant that either 7.10 or kernel 2.6.22 doesn't need to load piix module which I normally used for my notebook to detect the hard drive. I's surprised!!! Moreover, there isn't piix module in the provided kernel. It's been removed for a while I guessed but I didn't notice. It might has happened since 7.04.
To make my computer run by the provided kernel, I edited my own /etc/initramfs-tools/modules from piix to ide_generic and reconfigured the kernel. Everything works very well. I would haven't had the problem if I installed Ubuntu 7.10 instead of upgrading.
19 August, 2007
My Old Documents
วันนี้บังเอิญไปค้นเอกสารเก่าๆ แล้วเจอเอกสารย่อๆ เกี่ยวกับ RTOS และ Computer Control System พร้อมกับการแนะนำอย่างสั้นๆ สำหรับการติดตั้ง RTAI รุ่นโบราณ และ การติดตั้งโปรแกรม CNC ที่ชื่อ EMC เข้าไปหาในเว็ปของหน่วยงาน ไม่เจอ ไม่รู้ไปอยู่ไหน เลยเอามาไว้ที่นี่ด้วย จะได้กระจายๆ แบ่งปั้นความรู้กันไปครับ ดีกว่าเก็บไว้อ่านคนเดียว ก็หวังว่าคนอื่นจะได้เอาไปใช้ประโยชน์บ้างแม้จะเก่าอีกเช่นเคย
ปล. แนะนำให้เข้าไปดูที่ www.rtai.org สำหรับข้อมูลเพิ่มเติมของ RTAI และ www.linuxcnc.org สำหรับโปรแกรม EMC เดี๋ยวนี้เค้าทำไว้ดีมาก ติดตั้งง่ายกว่าเดิมเยอะ และก็สวยด้วย โปรแกรมก็ได้รับการปรับปรุงขึ้นกว่าเก่ามาก สำหรับ EMC ถ้าสนใจเพิ่มเติมลองติดต่อไปที่หน่วยงานในเอกสาร มีพนักงานที่ติดตามเรื่องนี้อยู่พร้อมที่จะให้ความช่วยเหลือเต็มที่ครับ ได้ยินว่าพิมพ์หนังสือเกี่ยวกับ EMC ออกว่างจำหน่ายด้วย แต่ผมยังไม่เคยเห็นหนังสือเลย :-)
วันนี้(23 มกราคม 2551)ไปเจอมาอีกตัวครับ เป็น pdf ของ RTLinux ทั้งห้าบทในบล๊อกนี้ เผื่อใครยังคิดว่ามันมีประโยชน์อยู่บ้าง อยากนำไปพิมพ์มาอ่าน แต่ไม่รับประกันว่าเหมือนกันกับในบล๊อกนะครับ อาจแตกต่างกันนิดหน่อย คำผิด หรือมีเพิ่มเติม
ปล. แนะนำให้เข้าไปดูที่ www.rtai.org สำหรับข้อมูลเพิ่มเติมของ RTAI และ www.linuxcnc.org สำหรับโปรแกรม EMC เดี๋ยวนี้เค้าทำไว้ดีมาก ติดตั้งง่ายกว่าเดิมเยอะ และก็สวยด้วย โปรแกรมก็ได้รับการปรับปรุงขึ้นกว่าเก่ามาก สำหรับ EMC ถ้าสนใจเพิ่มเติมลองติดต่อไปที่หน่วยงานในเอกสาร มีพนักงานที่ติดตามเรื่องนี้อยู่พร้อมที่จะให้ความช่วยเหลือเต็มที่ครับ ได้ยินว่าพิมพ์หนังสือเกี่ยวกับ EMC ออกว่างจำหน่ายด้วย แต่ผมยังไม่เคยเห็นหนังสือเลย :-)
วันนี้(23 มกราคม 2551)ไปเจอมาอีกตัวครับ เป็น pdf ของ RTLinux ทั้งห้าบทในบล๊อกนี้ เผื่อใครยังคิดว่ามันมีประโยชน์อยู่บ้าง อยากนำไปพิมพ์มาอ่าน แต่ไม่รับประกันว่าเหมือนกันกับในบล๊อกนะครับ อาจแตกต่างกันนิดหน่อย คำผิด หรือมีเพิ่มเติม
Subscribe to:
Posts (Atom)
