剛安裝好的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