แนะนำโปรแกรม Everpad บน Ubuntu

Everpad เป็นโปรแกรมที่ทำให้เราสามารถใช้ Evernote บน Ubuntu ได้ เค้าพัฒนามาให้เข้ากับ Unity ได้เป็นอย่างดี อีกอย่างหนึ่งที่เจ๋งคือจะมีหน้าแสดงโน้ตของเราตรง Unity Lens ด้วยครับ ทำให้เราค้นหาโน้ตของเราได้ง่ายขึ้นด้วย ลองดูรูปข้างล่าง

ขอเซนเซอร์ข้อมูลบางอย่าง 😛

ส่วนหน้าตาเวลาเราจะเขียนโน้ตก็เรียบง่ายแบบนี้

Everpad Composer

การลงโปรแกรมก็ง่ายโคตร

$ sudo add-apt-repository ppa:nvbn-rm/ppa
$ sudo apt-get update && sudo apt-get install everpad

หลังจากที่ลงแล้วให้ไปที่ Unity Dash ก่อนนะครับ แล้วค้นหาคำว่า Everpad เพื่อรันโปรแกรม เราถึงจะเห็นโปรแกรมขึ้นมาตามรูป (สังเกตไอค่อนรูปช้าง)

Everpad Icon

คลิกที่ Everpad (ไอค่อนรูปช้าง) แล้วเลือก Settings and Management แล้วก็ Authorise เพื่ออนุญาตให้โปรแกรมไปดึงข้อมูลจาก Account ของเราได้ แล้วก็อย่าลืมติ๊กถูกตรง Start with system ด้วยนะครับ เวลาเปิดเครื่องใหม่โปรแกรมนี้จะได้ถูกรันโดยอัตโนมัติ 🙂

ของเค้าดีจึงแนะนำต่อครับ!

ที่มา: Use Evernote In Ubuntu With Everpad | OMG! Ubuntu!

วิธีแก้ The following signatures were invalid: BADSIG บน Ubuntu

เจอ error ตอนสั่งอัพเดท Ubuntu ตามนี้

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://packages.ros.org precise Release: The following signatures were invalid: BADSIG 5523BAEEB01FA116 ROS Builder <[email protected]>

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <[email protected]>

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG 8CD60EC948894010 Launchpad PPA for Scopes Packagers
W: GPG error: http://deb.opera.com stable Release: The following signatures were invalid: BADSIG AAFF4A5B336064B5 Opera Software Archive Automatic Signing Key 2012 <[email protected]>
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/precise/Release

W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release

W: Some index files failed to download. They have been ignored, or old ones used instead.

 

วิธีแก้ (น่าจะใช้กับ Ubuntu เวอร์ชั่นไหนก็ได้)

$ sudo apt-get clean
$ cd /var/lib/apt
$ sudo mv lists lists.old
$ sudo mkdir -p lists/partial
$ sudo apt-get clean
$ sudo apt-get update

และแล้ว error ก็หายไป เย้~

ขอขอบคุณ บล็อกของ Luigi R. Viggiano ไว้ ณ ที่นี้ครับ 🙂

ปัญหา rospack หาไฟล์ librospack.so ไม่เจอ

ขอมาจดไว้สักหน่อย เผื่อมีคนที่เริ่มต้นลอง ROS แล้วติดปัญหาเดียวกัน

พอดีผมลองสั่งคำสั่งนี้เล่น

$ rospack

แต่ดันเจอ Error แบบนี้

rospack: error while loading shared libraries: librospack.so: cannot
open shared object file: No such file or directory

เป็นแค่คำสั่งเดียวด้วยนะ 🙂 เอาล่ะ.. ถ้าเราลง ROS ตาม Ubuntu install of Fuerte (เวอร์ชั่นอะไรก็ได้นะ ไม่จำเป็นต้องเป็น Fuerte) แล้วเกิดปัญหาเดียวกันนี้ ให้ลองดูที่ไฟล์ ~/.bashrc ก่อนครับ ของผมจะมีหน้าตาแบบนี้

source /opt/ros/fuerte/setup.bash
export ROS_PACKAGE_PATH=~/Projects/ros_workspace:/opt/ros/fuerte/share:/opt/ros/fuerte/stacks
export ROS_WORKSPACE=~/Projects/ros_workspace
export LD_LIBRARY_PATH=/usr/local/lib

ดูแล้วก็ไม่น่ามีปัญหาอะไร แต่จริงๆ แล้วมีนะ เหตุเกิดเพราะว่าผมไปลง OpenCV ตามหลัง ROS ซึ่ง OpenCV สมัยนี้ก็ฉลาดใส่บรรทัดข้างล่างนี้มาให้เลยตรงบรรทัดสุดท้าย

export LD_LIBRARY_PATH=/usr/local/lib

ซึ่งมีผลทำให้บรรทัดแรก

source /opt/ros/fuerte/setup.bash

ไร้ค่าไปทันที เนื่องจากคำสั่งนี้จะเป็นการเซต LD_LIBRARY_PATH ของ ROS แต่ดันโดน overwrite โดย OpenCV ไปเรียบร้อย

วิธีแก้ก็ง่ายมากครับแค่ย้ายๆ สลับบรรทัดกันดังนี้ เอา LD_LIBRARY_PATH ขึ้นไปไว้บรรทัดแรกแทนจะได้ไม่ต้องมีปัญหากับคำสั่ง source อีก

export LD_LIBRARY_PATH=/usr/local/lib
source /opt/ros/fuerte/setup.bash
export ROS_PACKAGE_PATH=~/Projects/ros_workspace:/opt/ros/fuerte/share:/opt/ros/fuerte/stacks
export ROS_WORKSPACE=~/Projects/ros_workspace

เป็นอันเสร็จสิ้น สามารถใช้ rospack ได้ตามปกติ

วิธีต่อโน้ตบุคออกจอ LCD บน Ubuntu แบบง่ายๆ

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

Continue reading "วิธีต่อโน้ตบุคออกจอ LCD บน Ubuntu แบบง่ายๆ"

Mount USB drive on Ubuntu 9.10 (Karmic Koala)

I write the solution for a problem that USB drive cannot be mounted automatically on Ubuntu 9.10.

Firstly, install gnome-mount.

sudo apt-get install gnome-mount

Secondly, go to System > Preferences > Startup Applications. And add this command.

gnome-mount -p xxx (change xxx to the volume label)

Finally, log out the system and it should work then. However, the problem still occurs after unmount and unplug the USB drive. To fix it, log out the system and then plug in the USB drive again. It is not a very good solution by the way. 🙁

Also, find the bug report here.