發表文章

目前顯示的是 2014的文章

[Qt] MXE - M cross environment

MXE是一套cross complier,可以讓寫好的Qt程式,在Linux環境下編譯成Windows可執行的程式。以下簡單紀錄MXE的基本編譯和使用方法。

[Raspberry Pi] 設定Raspberry Pi成為Wi-Fi基地台(wifi ap)

基本上LINUX中,設定Wi-Fi基地台(wifi ap)分享網路需要dhcp server和hostap兩套件軟體,還需要設定iptables和開啟ipforward功能就可以了。因此,在Raspberry Pi中也是同樣的道理,開始動工吧!!

[Ubuntu] Ubuntu 12.04 安裝 Octave 3.8

在任一發行的Ubuntu版本中安裝最新版本的Octave,只要輸入以下指令就可以了!!

[Raspberry Pi] 解決 Raspberry Pi 找不到 /dev/video0

如果Raspberry Pi使用VLC,ffmpeg,有遇到Rasbian系統找不到/dev/video0的時候,可以用下列方式解決。

[Raspberry Pi] Raspberry Pi與相機模組開箱 - 軟體篇

圖片
Raspberry Pi Camera Raspberry Pi相機模組可輸出最大影像為2592x1944,解析度五百萬像素(megapixels),以一張2592x1944的jpg影像來說,容量約為2.4MB。 安裝相機模組後,可以先使用指令(Shell command)操作相機模組!

[Raspberry Pi] Raspberry Pi與相機模組開箱 - 硬體篇

圖片
Raspberry Pi 及相機模組 期待已久的Raspberry Pi,終於入手了!一次買齊Pi和Camera相機模組,相機鏡頭有五百萬像素,而且意外發現鏡頭還可以調整焦距,相當方便。

[Ubuntu] 解決無法播放已加密的DVD影片

最近播放DVD出現一則系統提示訊息: " Could not read DVD. This may be because the DVD is encrypted and a DVD decryption library is not installed. "    無法播放DVD,為讓Ubuntu順利播放DVD必須將缺乏的libdvdread4,libdvdcss函式庫安裝進電腦。解決方法如下: DVD播放函式庫安裝: Step1.  安裝 libdvdread4      $ sudo apt-get install libdvdread4 Step2.  接者安裝 libdvdcss      $ sudo /usr/share/doc/libdvdread4/install-css.sh 參考: https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs http://askubuntu.com/questions/500/how-can-i-play-encrypted-dvd-movies

[Ubuntu] 幫 Ubuntu 更換 Kernel

幫Ubuntu換上新 kernel 吧!可以到官網 The Linux Kernel Organization 下載。接下來紀錄kernel的安裝和移除步驟!! A. 安裝Kernel: Step1. 搜尋(檢查)想要安裝的kernel版本是否存在         $ sudo apt-cache search linux-image-*        或者填入版本號搜尋,將 X.X.XX 填入版本號         $ sudo apt-cache search linux-image-X.X.XX-generic Step2. 開始安裝kernel         $ sudo apt-get install linux-image-X.X.XX-generic         如果有其他需求,像是編譯模組,可以連headers都裝上          $ sudo apt-get install linux-headers-X.X.XX-generic         Step3. 安裝後,更新initramfs image,詳細man update-initramfs         $ sudo update-initramfs -u -k all        或者使用         $ sudo update-initramfs -u -k `uname -r` Step4. 接著更新grub清單         $ sudo update-grub Step5. 重開機         $ sudo reboot            按ESC鍵進入GRUB選單,選擇安裝的Kernel開機 B.移除Kernel: Step1. 檢查目前正在用哪個kernel         $ uname -a Step2. 或者列出目前系統中已安裝哪些kernel         $ dpkg --get-selections | grep linux-image Step3. 移除不要的Kernel,會自動將相關版本的 linux-image-extra-* 也一併移除         $ sudo apt-get purge linux-image-X.X.XX-XX-generic 參考: initramfs image(update-initra

[OpenCV] 安裝OpenCV2.4.8於Ubuntu12.04

圖片
  OpenCV Example -Facedetect (OpenCV2.4.8 with Python2.7) 發現OpenCV2.4.8只能和Python2.7搭配使用,之前裝的Python3.2暫時派不上用場了,到時候試試就知道;話說回來OpenCV採用BSD授權對開發相當友善。 OpenCV2.4.8安裝於Ubuntu 12.04.3 LTS - 安裝步驟 1. 官網下載OpenCV - opencv.org 2. 解壓縮opencv-2.4.8.zip $ unzip opencv-2.4.8.zip 如果沒有unzip,可以下指令安裝 $ sudo apt-get install unzip 3. 至opencv目錄中,並建立資料夾cv_release $ cd ~/opencv-2.4.8 $ mkdir cv_release $ cd cv_release 4. 安裝complier所需的套件 $ sudo apt-get install build-essential cmake 假設有使用qt5,如果沒裝要記得裝上   $ sudo apt-get install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev 5. 設定Cmake產生Makefile $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_OPENGL=ON -D WITH_OPENNI=ON -D WITH_QT=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_LIBV4L=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON .. 也可以 $ cmake -D BUILD_EXAMPLES=ON .. 其中-D可以設定參數,以下是用到的參數 CMAKE_BUILD_TYPE=RELEASE CMAKE_INSTALL_PREFIX=/usr/loca