April 2007


บังเอิญไปเจอคำสั่ง alien เข้าเห็นว่าน่าสนใจดีน่าจะมีประโยชน์ต่อตัวเองและคนอื่นบ้าง (ตอนนี้ยังไม่มี - -”) เลยเอามาเล่าสู่กันฟังไว้ก่อน คือว่า จากที่รู้ๆกันอยู่ว่า ไฟล์ติดตั้งโปรแกรมบนลีนุกซ์นั้น เป็นที่นิยมอยู่สองค่ายคือ .rpm จาก Redhat และ .deb จาก Debian (Ubuntu) นอกนั้นก็เป็น source file ที่ต้องนำไป compile กันเอาเอง จากสองนามสกุล (.rpm และ .deb) ไม่สามารถเอามาติดตั้งสลับกันได้ และเพราะอย่างนี้นี่เอง ถึงต้องใช้คำสั่ง alien มาจัดการเปลี่ยนสลับให้ระหว่างสองนามสกุลนี้
ก่อนอื่นต้องติดตั้งโปรแกรม alien ก่อนตามคำสั่งด้านล่างนี้

$ sudo apt-get install alien

ติดตั้งเสร็จแล้วลองดูซิว่ามันทำอะไรได้บ้าง ดูจาก helpตามกรอบด้านล้าง

wutthiphan@osiris:~$ alien
You must specify a file to convert.
Usage: alien [options] file [...]
file [...]                Package file or files to convert.
-d, --to-deb              Generate a Debian deb package (default).
Enables these options:
--patch=       Specify patch file to use instead of automatically
looking for patch in /var/lib/alien.
--nopatch            Do not use patches.
--anypatch           Use even old version os patches.
-s, --single         Like --generate, but do not create .orig
directory.
--fixperms           Munge/fix permissions and owners.
--test               Test generated packages with lintian.
-r, --to-rpm              Generate a Red Hat rpm package.
--to-slp              Generate a Stampede slp package.
-l, --to-lsb              Generate a LSB package.
-t, --to-tgz              Generate a Slackware tgz package.
Enables these options:
--description= Specify package description.
--version=  Specify package version.
-p, --to-pkg              Generate a Solaris pkg package.
-i, --install             Install generated package.
-g, --generate            Generate build tree, but do not build package.
-c, --scripts             Include scripts in package.
-v, --verbose             Display each command alien runs.
--veryverbose         Be verbose, and also display output of run commands.
-k, --keep-version        Do not change version of generated package.
--bump=number         Increment package version by this number.
-h, --help                Display this help message.
-V, --version             Display alien's version number.

คราวนี้ก็มาลองการใช้งานกันครับคร่าวๆนะครับ สมมุติว่ามีไฟล์ test.rpm ต้องการทำให้เป็น .deb ก็สั่งดังนี้ครับ

alien --to-deb package.rpm

หรืออยากเอาโปรแกรมที่อยู่บน Debian(Ubuntu) ไปใช้งานบน Redhat ก็สั่งดังนี้ครับ

alien --to-rpm test.deb

ง่ายดีไหมครับ และลูกเล่นๆอื่นๆอีกดูตาม help แล้วลองใช้ดูนะครับ สำเร็จหรือมีปัญหายังไง โปรดอย่ารอช้า แต่จงคอมเม้นท์ด้วยความระทึกในดวงหทัยพลัน..

(ขอลอกเลียนท่านบรรณาธิการบริหารมติชนสุดสัปดาห์หน่อยนะเหอๆ)

ที่มา : http://linux-ru.blogspot.com/2007/01/rpm-debianubuntu.html

กำลังหลงใหลได้ปลื้มกับ เจ้ากวางน้อย kubuntu 7.04 โค๊ดเนม Feisty Fawn หลังจากติดตั้งมาสอง-สามวันแล้วแต่ก็ไม่ได้ใช้งานอะไรมากเพราะช่วงนี้ ssh อย่างเดียวเลย และสำหรับ firefox นั้นสามารถตัดคำภาษาไทยได้เลยไม่ต้องทำอะไรเพิ่ม (แต่ถ้าเรื่องตัดใจfirefoxช่วยไม่ได้นะครับ)

ต่อมาคือโปรแกรมสนทนา ซึ่งขาดไม่ได้ในชีวิตของคนทำงานด้านนี้ ผมเองใช้กลับไปกลับมาระหว่าง kopete และ Gaim ซึ่ง Gaim ผมจะใช้บนวินโดวส์(รู้จักป่ะ) และkopeteจะใช้บนลีนุกซ์ตลอด คือเรื่องของเรื่องไม่ได้คอนฟิกมันมานานมากแล้ว พอมาวันนี้ที่ต้องคอนฟิกใหม่ msn ผ่าน yahoo ผ่าน icq ผ่าน แต่ดันมางง GTalk ซะงั้น เลยต้องเริ่มหาข้อมูลใหม่ว่าใช้ server ตัวไหน port อะไร จึงต้องมาบันทึกไว้กันลืม ตามด้านล่างนี้

kpete.jpg

เลือกโปรโตคอลเป็นJabber

(more…)

อดทนมานานแสนนานแล้วเหมือนกัน ปกติผมเองเป็นคนค่อนข้างอดทนกับปัญหาต่างๆอยู่พอสมควร ผมใช้งานอินเทอร์เน็ตความเร็วสูง adsl จากทีโอที ที่ความเร็ว 512/256 Kbps ใช้งานมาปีได้แล้ว บอกตามตรงมันขอจากผู้ให้บริการรายอื่นไม่ได้จริงๆ “ใช้ทีโอทีต้องอดทน” มันก้องอยู่ในหัวทุกครั้งที่เน็ตเริ่มช้ามากๆ(ปกติมันจะช้ามาก) เน็ตหลุด(วันล่ะครั้งสองครั้งห้วงเวลาแล้วแต่ 7นาที ถึง 6ชั่วโมง) จนบางครั้งไม่ใหวมากๆเข้าเคยว่าจะไปโพสต์บอกปัญหาซักหน่อยถึงได้เข้าเว็บบอร์ดของทีโอทีเป็นครั้งแรกที่ http://www.tot.co.th/tot/board/bb2_v1/viewforum.php?f=10 แต่แล้วก็ต้องเปลี่ยนใจหลังจากเปิดเว็บนี้ความรู้สึกหงุดหงิด(กับการใช้เน็ต)เริ่มหมดไป กลายเป็นความสงสารแทนเจ้าหน้าที่ของทีโอทีเหลือเกิน เว็บบอร์ดนี้เต็มไปด้วยกระทู้ของลูกค้าที่น่าสงสาร หดหู่ สิ้นหวัง ไร้ที่พึ่ง มีโพสต์แจ้งปัญหา โพสต์ด่าทอ บ้างก็เอารูปจากผลการเช็คสปิดมาให้ดูกัน(ประจาน) มือไม้ผมที่เคยสั่นอยากจะเขียนแจ้งปัญหากลับนิ่งลง “เสียมือเปล่าๆ” เพราะเว็บบอร์ดนี้ ไม่มีใครดูแล Moderators: (ไม่มี) ไม่มีการแจ้งว่าเกิดอะไร ไม่มีการแจ้งว่าจะทำอะไร (บางที่จะกวาดพื้นห้องระบบเขายังแจ้งเลย) ปล่อยให้อยู่กันตามมีตามเกิด ขอความเร็ว 512 Kbps เก็บเงินค่าใช้บริการไปเต็มๆทุกเดือน แต่โยนเศษอินเทอร์เน็ตมาให้พวกลูกค้าแย่งกันใช้อย่างอดอยาก สมเพศตัวเองว่ะ

วันนี้ผมเข้าเว็บผม(server อยู่ที่ IDC ของ pacific)ไม่ได้ แต่ไปที่อื่นได้(ช้าๆ)ก็เลยแปลกใจ login ผ่าน ssh ไปที่serverก็ไม่มีปัญหาเว็บก็ทำงานอยู่ สักพักนี้เลยย้อนไปที่เว็บบอร์ดอีกทีไปดูว่าเผื่อมีใครเจอปัญหาเหมือนกันบ้าง พระเจ้าจอร์จ วันนี้พี่แกเล่น lock บอร์ดเว้ยย แม่งอะไรกันว่ะ เหลือทางเดียวคือโทรไปที่ call center 1100 แต่ก็ยังไม่วายอยากเช็คเพื่อความแน่ใจ เลยลองเอา firefox ไปเกาะ proxy ที่บริษัท ซึ่งใช้adslของTrue แล้วก็สามารถเข้าเว็บที่server ได้ เลยโทรไป ลองถามเข้าดูก่อนว่าเน็ตมีปัญหาหรือเปล่า เขาบอกว่า “ระบบล่มครั้งใหญ่ที่ชุมสายหลักสี่ แต่เห็นว่าแจ้งคืนดีมาแล้ว” ผมเองก็ต้องการแค่นี้ จะได้รู้ว่าต้องรออะไร

red_main-month1.pngกราฟการใช้งานเน็ตของTOT 512/256 kbps สูงๆเขียวๆนั้นเอาไปเกาะproxyข้างนอก
red_main-month_true1.png
อันนี้กราฟการใช้งานเน็ตของTrue ความเร็ว 1024/512 Kbps ที่บริษัทผม
หลังจากวางหูมาครึ่งชั่วโมงกว่าๆ ยังไม่มีอะไรดีขึ้น เอาproxyออกก็เข้าเว็บไม่ได้เหมือนเดิม แต่ก็ไม่รู้ทำไง “ใช้ทีโอทีต้องอดทน” “ใช้ทีโอทีต้องอดทน” “ใช้ทีโอทีต้องอดทน” ท่องไว้ให้ขึ้นใจ

opera.jpegBrowse through Opera’s customer product gallery for select devices that have recently shipped with the Opera browser.

Nintendo Wii
wii.jpgOpera delivers its full Web browser to Nintendo’s new game console, Wii(TM). Users of the Wii console will browse the Internet using their consoles. Navigating via the revolutionary new Wii Remote controller, users can visit Web sites in between gaming sessions. Nintendo Wii promises to deliver an entirely new gaming experience to the market in late 2006.

Sony Mylo
mylo.jpgOpera brings full Web browsing to Sony’s mylo personal communication device. The mylo communicator serves as an entertainment and communication device for those who live in Wi-Fi enabled environments. With the Opera browser, mylo communicator users can surf all their favorite Web sites, including popular webmail services such as Yahoo! Mail and Gmail.

Thales TopSeries In-Flight Entertainment
thales.jpgThe Opera Web browser is integrated into TopSeries, the Thales in-flight entertainment system. Airline passengers will now enjoy the added benefit of a full and fast Internet experience from Opera, in addition to the entertainment offerings also available using the Thales TopSeries System. The TopSeries system is offerable on nearly all Boeing and Airbus single and twin aisle aircrafts.

And more at: http://www.opera.com/products/devices/gallery/

motion-trans.gifBelow is the Links to Working Webcams driven by Motion

Kenneth Lavrsen’s Webcam
Kenneth Lavrsen has 9 online webcamera in his garden. And you can rotate 3 of them.

The Mersey Motion Sensitive Webcam - Liverpool Bay, UK
Impressive view of oil rig and ships sailing by. More info on http://emit.demon.co.uk/webcam/what.php

Badger Cam North East England
Infra red garden camera with motion sensing revealing the night time habits of a wide variety of animals.

Weather-Cam Bochum, Western Germany
Camera looks westward, taking an image every 10 seconds. Every hour a movie is created.

Boundary Street, Shoreditch, East London
A cobbled London street in East London. Watch my new tree grow!

Boundary Passage, Shoreditch, East London
A short passage leading on to Boundary Street. Jack the Ripper murdered here! Watch the passers-by.

Tiger CAM, The fattest cat on the Internet
8 Live video lines. Cameras all around my house, including one for my cat. 4 cameras have Pan and Tilt. LED sign Shoutbox. Line 7 (Front Door) cam uses Motion to monitor who goes in and out of the house.

UT Southwestern Medical Center at Dallas Ambulatory Clinical Building, Dallas, Texas, USA
One Axis 221 Day & Night camera overlooking the construction of our new Ambulatory Clinical Building. The camera faces due south, and is located just west-northwest of downtown Dallas. This image is updated every 10 minutes. Software is Motion 3.2.5 on RH AS 3, lftp 2.6.3-5, and ImageMagick 5.5.6-15.


Amthors Garden Cam

Colur CCTV, attached to a cheap BT878 4 input Card (Grandtech or so) with motion on SuSE? 9.2. Actually, we have three cams, two CCTV on two cards (for the framerates sake…) and a net based web cam. All with motion 3.2.3, doing snapshots, timelapse and surveillance. To manage this, I’ve just created some jsp’s to maintain the files and a streaming servlet to proxy everything thru port 80 of the web server. And of course, the good old cambozola. When I have some time I’ll dig in to that, more then 4 fps is killing my desktop.

Tom Coombs Airplane Cam
A Small Philips USB Webcam…soon to be improved. I am building a kit airplane in my garage and you can see what I do and when I do it here. Enjoy. TC

candy-net cafe (this site)
4 live video cameras (but sometime cam3 or 4 has offline), use 1 card video with chip BT878 4 input (Fly Video EZ) with motion 3.2.4 on Ubuntu 6.10,
server spac are CPU Celeron (Coppermine) 900 MHz cache size: 128 K, RAM SDRAM133 256 MB, HARDDISK 80 GB x 2, ADSL 512/256 Kbps, Dynamic DNS (Custom DNS),
this system is in the small internet-cafe name “CANDY-NET” in Bangkok THAILAND.
(more…)

Next Page »