在 Debian/Ubuntu 上重新編譯核心與模組

[ubuntu]在ubuntu上重新編譯核心
http://axp1.csie.ncu.edu.tw/~rick/blog/?p=37

Linux 的模擬世界 (五) - 3D 硬體加速(自行編譯 nVIDIA 顯示卡模組)

http://tetralet.luna.com.tw/index.php?op=ViewArticle&articleId=157&blogId=1

先筆記一下 :)

Powered by ScribeFire.

[Debian/Ubuntu] 輕鬆使用 jfbterm,在 console 下顯示中文字

用下面的方式可以不需重編譯核心,也能使用 jfbterm !

安裝 unicode 字型與 jfbterm:

sudo apt-get install unifont jfbterm

備份 grub 開機選單 menu.lst

cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
vim /boot/grub/menu.lst

在適當的地方加入新的一組開機選項,例如:

title Debian GNU/Linux, kernel 2.6.18-3-k7 (vga=785)
root (hd1,4)
kernel /boot/vmlinuz-2.6.18-3-k7 root=/dev/hdd5 ro quiet vga=785
initrd /boot/initrd.img-2.6.18-3-k7
savedefault

重開機後用這組選項進入系統,登入後執行 jfbterm 就可以看到中文囉 :D
這裡的 vga=785 指的是 VESA framebuffer console @ 640×480x64k

# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024×768x64k
# vga=791
# VESA framebuffer console @ 1024×768x32k
# vga=790
# VESA framebuffer console @ 1024×768x256
# vga=773
# VESA framebuffer console @ 800×600x64k
# vga=788
# VESA framebuffer console @ 800×600x32k
# vga=787
# VESA framebuffer console @ 800×600x256
# vga=771
# VESA framebuffer console @ 640×480x64k
# vga=785
# VESA framebuffer console @ 640×480x32k
# vga=784
# VESA framebuffer console @ 640×480x256
# vga=769

ref: Ubuntu 正體中文站 - 討論區: 請問要如何在console模式下輸入中文?
UbuntuL10n - 維基百科: console 中文顯示

[Debian/Ubuntu] 重編譯套件

在 Debian/Ubuntu 下如果想重新編譯某套件讓程式效能更好,其實不必到該程式的官方站抓取原始檔,祇要在套件來源 (Sources.list) 中加入 deb-src 型式的來源,用 apt-get 的內建功能就能辦到。以 wine 為例子:

建個 debtmp 資料夾,方便管理編譯產生的檔案
mkdir debtmp && cd debtmp

apt-get update
apt-get build-dep wine
apt-get build source wine

dpkg -i wine*.deb
dpkg -i libwine*.deb

done.

第二種更簡便的方法是利用 apt-build。

apt-get install apt-build
apt-build install --reinstall <套件名稱>

Debian sid

最近在玩 Debian :D
(這陣子忘記寫 Blog 了@@)