Linux, Ubuntu

Got this tip from some posts in Ubuntuforums.

Linux bluez stack has no way to turn off Bluetooth device via GUI. Normally we (at least, me) use Bluetooth for file transfer few times a day for very short period. Keeping Bluetooth enable wastes the extremely-precious laptop battery.

The solution is to create this shell script on your desktop. You can choose any name, meaningful or not. My script is called "bttoggle".

#!/bin/bash
if ps -A | grep -c bluetoothd
then
gksudo /etc/init.d/bluetooth stop
else
gksudo /etc/init.d/bluetooth start
fi

Give it executable permission and proper icon. Bluetooth icon in normal Ubuntu desktop should be available at:

/usr/share/icons/hicolor/48x48/apps/bluetooth.png

bttoggle

When you need Bluetooth, double click on bttoggle, choose Run and give your password.

Don't forget to set Bluetooth icon on GNOME panel to "Only display when adapter present" in Preferences > General so you can recognize the status of Bluetooth.

PDF Merging on Linux

apt-get install pdftk

pdftk file1.pdf file2.pdf output out.pdf

from the open device

Apport+Launchpad

หนึ่งในฟีเจอร์ที่ผมรู้สึกว่างี่เง่ามากอันหนึ่งของ Ubuntu รุ่นหลังๆ คือ Apport แบบสงสัยว่าทำไมเวลาโปรแกรมแครช ตูจะต้องล็อกอิน (ด้วย Launchpad account) เพื่อส่งข้อมูลด้วย บนแมคกับวินโดวส์ไม่เห็นต้องมาทำอะไรแบบนี้ แต่ก็ส่งทุกครั้ง เผื่อว่าจะมีประโยชน์

วันนี้พอเข้าใจแล้ว LP#332758 มันมี autotrace (สงสัยเพิ่งทำเสร็จ) ทำงานให้อัตโนมัติ เจ๋งจริงๆ หวังว่าระบบจักรกลแบบนี้จะช่วยให้ Ubuntu เสถียรมากขึ้นนะจ๊ะ

Linux Release Cycle

ในบทสัมภาษณ์ของ Linus นั้นไม่ได้พูดแค่เรื่อง KDE แต่ยังมีเรื่องอื่นๆ ที่น่าสนใจอีกหลายอัน

เรื่องนึงที่ Linus พูดถึงคือเรื่อง release cycle ของระบบปฏิบัติการ โดย Linus เริ่มจากวิจารณ์ release cycle ของ Windows 7 ที่ไมโครซอฟท์ตั้งเป้าว่าจะเป็น 2 ปีว่ามากเกินไป ไมโครซอฟท์ควรแยกส่วนของ OS จาก application และออกให้บ่อยกว่านั้น

ส่วนของลินุกซ์มีดังนี้ (หน้า 4)

For Linux, six months is quite tight. All the pieces you put together, you hope they are stable, but there will be surprises, and six months is a short cycle when you put together so many packages. An annual release cycle is a reasonable cycle for doing a whole distribution.

อันนี้ผมเห็นด้วยมากๆ เลย และเคยพูดกับคนรู้จักหลายคนเป็นการส่วนตัวไว้แล้วว่า 6 เดือนของ Ubuntu นั้นสั้นเกินไป ซึ่งตัวอย่างใน 8.04 LTS ก็แสดงให้เราเห็นชัดเจนแล้วว่าโมเดลนี้มีปัญหา จริงอยู่ว่าถ้าเป็นรอบของ GNOME ซึ่งมีแต่ Desktop Environment นั้นก็พอไหว แต่พอเป็น Ubuntu ซึ่งเป็นระบบปฏิบัติการเต็มตัวแถมมีโปรแกรมใน universe อีกเพียบนี่ไม่ไหวแน่นอน

ถ้า GNOME ยังใช้รอบ 6 เดือนแบบนี้อยู่ ผมคิดว่า Ubuntu ควรออกปีละรุ่นโดยข้าม GNOME 1 รุ่น หรือถ้ายังไม่อยากดึงไว้นานขนาดนั้น ก็อาจเป็นปีไหนที่มี LTS ก็ออกแค่รุ่นเดียว ปีไหนไม่มีก็ออก 2 รุ่นตามปกติ

แต่รอบนึงนานๆ หลายปีแบบ Debian ก็ไม่ไหวเหมือนกันนะ

Ubuntu Jaunty Tweak

เคยเขียนไว้แล้วของเวอร์ชัน Edgy Eft แต่ก็เขียนอีกได้เรื่อยๆ

อันนี้เป็น Jaunty Jackalope Alpha 3 ซึ่งหน้าตาเหมือนกับ Intrepid ทุกประการ