刚安装好的Debian默认尚未sudo功能。
一、安装sudo
# apt-get install sudo
二、修改 /etc/sudoers 文件属性为可写
# chmod +w /etc/sudoers
三、编辑 /etc/sudoers ,添加以下行
# vim /etc/sudoers
root ALL=(ALL) ALL
user ALL=(ALL) ALL 用户user执行sudo时须要密码。
#user ALL=NOPASSWD:ALL 用户user执行sudo时不须要密码。
#user ALL=NOPASSWD:/etc/network/interfaces 用户user执行只有sudo执行/etc/network/interfaces的权限,执行时不须要密码。
四、修改/etc/sudoers 文件属性为只读
# chmod -w /etc/sudoershtml
http://www.cnblogs.com/wangkongming/p/3758759.htmllinux
打开一个root终端:vim
apt-get install build-essentialui
sh /media/cdrom0/VBoxLinuxAdditions.runspa
http://blog.sina.com.cn/s/blog_4a0a8b5d0102v3u2.html.net
2.code
sudo apt-get install g++ sudo apt-get install make sudo apt-get install linux-headers-$(uname -r) sudo sh ./autorun.sh sudo poweroff --reboot
http://blog.csdn.net/cqdjyy01234/article/details/53208505htm