每日一贴,今天的内容关键字为安装环境
亲测机型: Thinkpad T420(爱机)
1, 载下镜像件文: debian-testing-amd64-DVD-1.iso
http://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-dvd/
2, 作制U盘安装盘:
cat debian-testing-amd64-DVD-1.iso > /dev/sdx
3, 默许安装的是gnome面桌, 如果想安装别的面桌环境可以在安装过程当中不选择安装面桌环境.
只安装base系统, 完成后再安装须要的面桌环境(以kde为例).
4, 安装kde:
- 将debian-testing-amd64-DVD-1.iso拷贝到U盘, 或者移动硬盘...
- 手动挂载该U盘(当然要用root), "mount /dev/sdx /media/xxx"
- 找到系统镜像在U盘上的位置, e.g. "/media/xxx/system-img/debian-testing-amd64-DVD-1.iso"
- 建创一个cdrom软链接到"/dev/", "ln -s /media/xxx/system-img/debian-testing-amd64-DVD-1.iso /dev/sr0"
(如果之前有sr0先将其mv为sr1)
- 把镜像件文作为源, "apt-cdrom add" (安装DVD里的kde而不是通过网络, 这样要快很多)
- apt-get update; apt-get install task-kde-desktop (kde面桌环境)
- 安装文中环境, 安装后就可以常正表现文中, 也会安装fcitx输入法(个人感觉在debian下比ibus好用)
task-chinese-s-desktop - Simplified Chinese desktop kde-l10n-zhcn - Chinese Simplified (zh_CN) localization files for KDE task-chinese-s - Simplified Chinese environment task-chinese-s-kde-desktop - Simplified Chinese KDE desktop
- 启重后进入kde面桌环境
5, 改更更新源/etc/apt/sources.list
## 163 #deb http://mirrors.163.com/debian wheezy main contrib non-free #deb-src http://mirrors.163.com/debian wheezy main non-free contrib #deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free #deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free ## china deb http://ftp.cn.debian.org/debian/ wheezy main contrib non-free deb-src http://ftp.cn.debian.org/debian/ wheezy main contrib non-free # debian security updates deb http://security.debian.org/ wheezy/updates main contrib deb-src http://security.debian.org/ wheezy/updates main contrib # multimedia deb http://deb-multimedia.org wheezy main non-free # virtualbox deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
6, multimedia source warning ?
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1F41B907
7, 修改用户
在件文/etc/sudoers中加添一行, 如下:
username ALL=(ALL:ALL) ALL
8, 安装邮件客户端icedove(其实就是thunderbird, 因为商标问题, 在debian下porting为这个)
apt-get install icedove icedove-l10n-zh-cn
p.s. 前以份备的thunderbird或者icedove邮件直接拷贝到~/.icedove/xxxx.default/Mail以可就了
我在份备的时候发明要先建创账户, 然后把动自生成的~/.icedove/xxxx.default/Mail用之前份备的替换掉才可以.
9, virtualBox
- 下面包含了virtualbox的源, apt-get update后直接apt-get install virtualbox-4.2
- 修改"Default Machine Folder", 直接在 "~/.VirtualBox/VirtualBox.xml" 中修改默许路径(VirtualBox VMs)
- 装完virtualbox没法挂载u盘(等外设),在/etc/group里修改用户组,如下:
vboxusers:x:121:username
10, cannot found wifi firmware ?
apt-get install firmware-iwlwifi
11, thinkpad 键中滑屏设置
add code below into /etc/X11/xorg.conf.d/20-thinkpad.conf (creat this file)
Section "InputClass" Identifier "Trackpoint Wheel Emulation" MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device" MatchDevicePath "/dev/input/event*" Option "EmulateWheel" "true" Option "EmulateWheelButton" "2" Option "Emulate3Buttons" "false" Option "XAxisMapping" "6 7" Option "YAxisMapping" "4 5" EndSection
More info:
http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint#GPointing_Device_Settings
http://wiki.debian.org/InstallingDebianOn/Thinkpad/Trackpoint
12, cannot mount removeable storage after install debian via usb ? (没法挂载u盘、移动硬盘?)
用u盘安装系统的时候, 系统在/etc/fstab里设置了sdb*的权限, 如下:
将这几行删掉就好了.
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/sdb1 /media/usb0 auto rw,user,noauto 0 0 /dev/sdb2 /media/usb1 auto rw,user,noauto 0 0
Details-> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612119
文章结束给大家分享下程序员的一些笑话语录: 人工智能今天的发展水平:8乘8的国际象棋盘其实是一个体现思维与创意的强大媒介。象棋里蕴含了天文数字般的变化。卡斯帕罗夫指出,国际象棋的合法棋步共有1040。在棋局里每算度八步棋,里面蕴含的变化就已经超过银河系里的繁星总数。而地球上很少有任何数量达到这个级别。在金融危机之前,全世界的财富总和大约是1014人民币,而地球人口只有1010。棋盘上,所有可能的棋局总数达到10120,这超过了宇宙里所有原子的总数!经典语录网