Debian lenny amd64 硬盘安装
对 ubuntu 很无奈,因为舍不得以前好不容易配置,暂先留着。
1,先用 gparted 把以前用来放电影的分区弄出一点来,分 /,/usr,/var,/home 分区(共享以前的 swap 分区),
2,下载 debian lenny 的 businesscard,再加上用来硬盘引导的 vmlinuz, initrd.gz, 这里要注意的是 businesscard ISO 中的 vmlinuz 和 initrd.gz 并不能用来从硬盘引导安装 debian。
http://cdimage.debian.org/debian-cd/5.0.0/amd64/iso-cd/
http://ftp.debian.org/debian/dists/lenny/main/installer-amd64/current/images/hd-media/
3,修改 menu.lst, 这里很方便的是没有像 ubuntu 那样多的参数,很简洁。
title Debian Install
root (hd0,6)
kernel /vmlinuz
initrd /initrd.gz root=/dev/ram ramdisk_size=20480
boot
4,安装过程中选择好分区,连上网络,就开始装了,很简单。
初步配置
1,成为sudoer
$su
#visudo
#vim /etc/group
2,安装scim
$sudo aptitude install scim scim-pinyin scim-tables-zh scim-bridge-client-gtk scim-bridge-client-qt
$mkdir ~/.xinput.d
$cd ~/.xinput.d
$ln -s /etc/X11/xinit/xinput.d/scim-bridge ./en_US
$ln -s /etc/X11/xinit/xinput.d/scim-bridge ./zh_CN
3,关于 locale
增加其它locale
$sudo vim /etc/locale.gen
$sudo locale-gen
关于 locale 的变量和文件
$LANG '/etc/default/locale' #系统 locale
$LANGUAGE '' #gdm登录界面语言
'~/.dmrc' #gnome 会话中语言
$cat ~/.dmrc
[Desktop]
Session=default
Language=en_US.UTF-8 #gnome会话语言
PS:从上面可以看出,即便是用 export 使命设置了系统的 locale,gnome 会话还是使用默认的语言,要想改变 gnome 会话语言,要么在登录时改变,要么编辑 ~/.dmrc 文件。
3,安装wqy
到 wqy 官方下载矢量字体 .ttc,放在字体目录/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc,和它的一个 44-wqy-zenhei.conf 文件,放在 /etc/fonts/conf.avail,在conf.d 中建一个连接
$fc-cache -fv
PS:为什么要到官方下载字体文件呢,因为 debian 中的 wqy 包较老了,比官方的要少等宽字体。
4,中文选择
$touch ~/.fonts.conf
$vim ~/.fonts.conf
5,安装 nvidia
$apt-cache search nvidia
$sudo aptitude install nvidia-kernel-2.6.26-1-amd64 nvidia-settings nvidia-xconfig
$sudo nvidia-xconfig
或安装官方 nvidia
$sudo aptitude install build-essential linux-headers-2.6.26-1-amd64 linux-image-2.6.26-1-amd64
$sudo ./NVIDIA-Linux-x86_64-180.44-pkg2.run
$nvidia-xconfig
6,其它
$sudo aptitude install samba smbfs smbclient ntfs-3g dosfstools
$sudo aptitide install iceweasel axel rtorrent azureus filezilla
$sudo aptitide install smplayer audacious
$sudo aptitide install ia32-libs ia32-libs-gtk
$sudo dpkg --force-architecture -i linuxqq_v1.0.2-beta1_i386.deb
注:Linux QQ输入中文解决
复制 32位的 im-scim-bridge.so,im-scim.so 到 /usr/lib32/gtk-2.0/2.10.0/immodules/ ,备份/etc/gtk-2.0/gtk.immodules.32,新建gtk.immodules.32,内容见评论。
2009年4月11日星期六
订阅:
博文评论 (Atom)
$cat /etc/gtk-2.0/gtk.immodules.32
回复删除# GTK+ Input Method Modules file
# Automatically generated file, do not edit
# Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.12.9
#
# ModulesPath = /root/.gtk-2.0/2.10.0/x86_64-pc-linux-gnu/immodules:/root/.gtk-2.0/2.10.0/immodules:/root/.gtk-2.0/x86_64-pc-linux-gnu/immodules:/root/.gtk-2.0/immodules:/usr/lib/gtk-2.0/2.10.0/x86_64-pc-linux-gnu/immodules:/usr/lib/gtk-2.0/2.10.0/immodules:/usr/lib/gtk-2.0/x86_64-pc-linux-gnu/immodules:/usr/lib/gtk-2.0/immodules
#
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-inuktitut.so"
"inuktitut" "Inuktitut (Transliterated)" "gtk20" "/usr/share/locale" "iu"
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-thai.so"
"thai" "Thai-Lao" "gtk+" "/usr/share/locale" "lo:th"
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-ti-er.so"
"ti_er" "Tigrigna-Eritrean (EZ+)" "gtk20" "/usr/share/locale" "ti"
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.so"
"cyrillic_translit" "Cyrillic (Transliterated)" "gtk20" "/usr/share/locale" ""
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-am-et.so"
"am_et" "Amharic (EZ+)" "gtk20" "/usr/share/locale" "am"
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-ti-et.so"
"ti_et" "Tigrigna-Ethiopian (EZ+)" "gtk20" "/usr/share/locale" "ti"
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-scim.so"
"scim" "SCIM Input Method" "scim" "/usr/share/locale" "ja:ko:zh"
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-multipress.so"
"multipress" "Multipress" "gtk20" "" ""
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-viqr.so"
"viqr" "Vietnamese (VIQR)" "gtk20" "/usr/share/locale" ""
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-ipa.so"
"ipa" "IPA" "gtk20" "/usr/share/locale" ""
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-scim-bridge.so"
"scim-bridge" "SCIM Bridge Input Method" "" "" ""
"/usr/lib32/gtk-2.0/2.10.0/immodules/im-cedilla.so"
"cedilla" "Cedilla" "gtk20" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa"