Debian普通用户添加sudo权限
刚安装好的Debian默认还没有sudo功能。
1、安装sudo
# apt-get install sudo
2、修改 /etc/sudoers 文件属性为可写
# chmod +w /etc/sudoers
3、编辑 /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的权限,执行时不需要密码。
4、修改/etc/sudoers 文件属性为只读
# chmod -w /etc/sudoers
http://www.cnblogs.com/wangkongming/p/3758759.html
VirtualBox下Debian安装增强功能
打开一个root终端:
apt-get install build-essential
sh /media/cdrom0/VBoxLinuxAdditions.run
http://blog.sina.com.cn/s/blog_4a0a8b5d0102v3u2.html
2.
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/53208505