配置源
nano /etc/apt/sources.list
deb http://ftp.cn.debian.org/debian stable main contrib non-free
deb-src http://ftp.cn.debian.org/debian stable main contrib non-free
deb http://ftp.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb http://mirrors.163.com/debian/ squeeze main non-free contrib
deb http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib
deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib
deb http://ftp.cn.debian.org/debian squeeze main
安装中文包(KDE)apt-get install kde-i18n-zh*
安装中文字体apt-get install xfonts-wqy
安装scim中文输入法apt-get install scim-pinyin
iceweasel中文插件apt-get install iceweasel-l10n-zh-cn
iceweasel百度搜索引擎http://mycroftproject.com/search-engines.html?name=baidu
初始化声音alsactl init
安装编译工具apt-get install linux-headers-2.6.32-5-amd64
apt-get install make
apt-get install gcc
apt-get install build-essential
安装Flash插件apt-get install flashplugin-nonfree
影音播放器Mplayer和播放前端SMplayerapt-get install mplayer smplayer
安装wineapt-get install wine
下载并安装winetricks(wine管理)wget http://www.kegel.com/wine/winetricks
chmod +x winetricks
mv winetricks /usr/local/bin
Code::Blocks安装
官方网站下载Code::Blocks的deb包
用dpkg -i *.deb安装,如果缺少包,用apt-get -f install自动安装缺省包Code::Blocks中文包下载
下载中文语言包,放到/usr/share/codeblocks/locale/zh_CN/文件夹下。注意,若无/usr/share/codeblocks/locale/zh_CN文件夹,自行建立。之后在Code::Blocks的setting--view--Internationlization下选择chinese(simplifield),重启Code::Blocks即可
重启不过Grub直接进入系统,是因为安装了kexec
简单说一下kexec的作用吧: 无重启切换内核 这便于开发人员的调试工作
默认状态下没开启 若开启此功能 需要apt-get install kexec-tools
若是我们想关闭这个功能 只需要删除kexec-tools即可
带着这样的思路 执行sudo apt-get remove kexec-tools