debian8.4系统安装后的一些设置

1、添加软件源 su到root用户

vi /etc/apt/sources.list 也可用gedit /etc/apt/sources.list (gnome下用,如果kde下则用 kdesudo kate /etc/apt/sources.list 在非root用户下用才能打开。)

#阿里云源(debian 8.x (jessie))

deb http://mirrors.aliyun.com/debian/ jessie main non-free contrib
deb http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ jessie-proposed-updates main non-free contrib

#中科大源(debian 8.x (jessie))

deb http://mirrors.ustc.edu.cn/debian jessie main contrib non-free 
deb-src http://mirrors.ustc.edu.cn/debian jessie main contrib non-free
deb http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian jessie-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian jessie-updates main contrib non-free

2、更新系统

$ sudo aptitude update

$ sudo aptitude upgrade

$ sudo aptitude dist-upgrade

会提示没有安装sudo,那就不用sudo,直接在root#下输入sudo后面的就行了。

3、安装sudo 使普通用户有系统管理的权利

root# aptitude install sudo

root# chmod +w /etc/sudoers 授予sudoers 写的权限,否则为只读。

Root# vi etc/sudoers 或者gedit /etc/sudoers 编辑 etc/sudoers

找到root 行并在下行输入你的账户,在账户后面把root后面的复制下来就行了。然后保存。vi编译器输入:wq

root# chmod 0440 /etc/sudoers 去掉sudoers 写的权限改为只读。

root# exit 退到普通账户。

4、安装编译环境 apt-get install build-essential 即可解决make问题