Debian7教程(4)——系统必备配置(1)
admin 于 2014年07月05日 发表在 Debian系统教程
安装完成Debian系统后,通过前面的介绍,可以默认电脑已经配置好网络连接,此篇文章主要讲解关于源及拼音输入法的配置。作为必备的设置,两个合在一块介绍。
1. 添加sudo功能:
(1)初次安装Debain后,还不可以使用sudo,所以需要根据文档,配置完网络后,具体执行如下操作:
#切换到管理员root su #安装sudo工具 apt-get install sudo #修改文件属性; chmod +w /etc/sudoers #编辑文件 vi /etc/sudoers #在文件内容:root ALL=(ALL:ALL) ALL 后添加一行:user ALL=(ALL:ALL) ALL #如:lu ALL=(ALL:ALL) ALL
(2)恢复文件属性:
chmod -w /etc/sudoers
(3) 注销或者重启一下,便可以使用sudo命令。
2. 配置软件源:
(1)更改相应源文件,可以提高系统下载软件的速度:
sudo gedit /etc/apt/sources.list
(2)将sources.list中的内容,替换为如下内容:
deb http://mirrors.163.com/debian/ wheezy main non-free contrib 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 deb http://mirrors.163.com/debian/ wheezy-updates main contrib non-free deb-src http://mirrors.163.com/debian/ wheezy-updates main contrib non-free deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free
(3)然后更新系统:
sudo apt-get update
3. 配置Ibus-拼音输入法
(1)安装完成后,打开ibus配置,关于具体配置,之前有详细介绍《Debian(Wheezy)中设置Ibus输入法配置总结》
sudo apt-get install ibus ibus-pinyin
(2)首次打开Ibus,有如下提示:
根据提示内容,gedit .bashrc 添加:
export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus