顯示具有 Linux 標籤的文章。 顯示所有文章
顯示具有 Linux 標籤的文章。 顯示所有文章

2011年8月31日 星期三

11.04 讀卡機安裝


紀錄一下網路上找到的資料

======================================================

#5 回覆: 升級 11.04 讀卡機裝不起來
Cheng-Wei Chien 6/3 16:59:34
雖然我本身是使用 Debian Wheezy (testing)
但裡頭的 pcscd 和 libpcsclite1 是 1.7.2 版
所以也遇到了 EZ100PU 無法使用的問題

但後來我發現 pcsc-tools 所提供的 pcsc_scan 執行時有如下文字:
PC/SC device scanner
V 1.4.17 (c) 2001-2009, Ludovic Rousseau
Compiled with PC/SC lite version: 1.5.5

我們可以看到,儘管是最新的 pcsc-tools,仍用 1.5.5 版的 pcsc-lite 編譯
後來我從 Debian 套件庫上下載 pcscd 與 libpcsclite1 1.5.5-4 版
降級安裝後,還須在 /etc/apt/preferences 將版本 pin 住,內容如下:


Package: libpcsclite1
Pin: version 1.5.5*
Pin-Priority: 1001

Package: pcscd
Pin: version 1.5.5*
Pin-Priority: 1001



重新安裝虹堡網站的驅動程式,重啟 pcscd 後就可正常使用了
(Ubuntu 可從 Ubuntu 套件庫找 1.5.5-* 版的套件)

2011年7月21日 星期四

Upgrade Kernel in Ubuntu 11.04

紀錄一下怎麼自己升級Kernel。

Now, go to the folder where you downloaded the kernel and move the file linux-2.6.38.3.tar.bz2 to the new location, to do that run:

sudo mv linux-2.6.38.3.tar.bz2 /usr/src/

Extract the file:

cd /usr/src/
sudo tar jxvf linux-2.6.38.3.tar.bz2

Now let’s gain a little time. Let’s import the kernel settings we are currently using:

cd /usr/src/linux-2.6.38.3
sudo cp /boot/config-`uname -r` .config

We are almost ready to compile the kernel. Open the kernel menu settings:


sudo make menuconfig

The command above will open a window inside of the shell. Select the menu item called “Processor type and features —>” and after “Processor family —>”. Choose your processor. In my case, my notebook is a Core i5, I chose the option “Core 2/newer Xeon”.

After run the command sudo make menuconfig, If you receive the error below:

*** Unable to find the ncurses libraries or the
*** required header files.
*** ‘make menuconfig’ requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2

Still In the shell, type:

sudo apt-get install libncurses5-dev

After that, run the command sudo make menuconfig again.

Clean up temp files from a previous compile attempt (skip if necessary)

make-kpkg clean

Compile your Kernel

time fakeroot make-kpkg --initrd --append-to-version=-tweak kernel-image kernel-headers

You can change -tweak to anything you wish

Install your Kernel

cd ~/src


sudo dpkg -i linux-image-2.6.38.2-tweak_2.6.38.2-tweak-10.00.Custom_amd64.deb


sudo dpkg -i linux-headers-2.6.38.2-tweak_2.6.38.2-tweak-10.00.Custom_amd64.deb

Reboot