Debian8.8开发环境(二)安装程序设置

一、debian8.8源
进入root帐号,打开/etc/apt/source.list,写入这个源

中科大

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

新的debian系统没有sudo,这个时候直接在root账户下,执行apt-get update更新源,然后就可以安装自己的程序了。

二、sudo的安装和设置
root账户终端中执行 apt-get install sudo
打开/etc/sudoers文件,在root账户下复制root一行的内容,把名字改为自己的账户。账户就是终端中@前面的名字,需要使用root账户去修改,有时候修改后还不行,那就是sudoers文本权限的问题了,使用chmod修改下即可。
然后就可以在自己的帐号下面使用sudo权限了。

猜你喜欢

转载自blog.csdn.net/u010590568/article/details/72868255