http://blog.youkuaiyun.com/u010053463/article/details/49300625
ubuntu 14.04 添加阿里镜像源
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
ubuntu设置root密码
切换到root用户 执行
sudo passwd
#设置root密码- 回车,回车,回车就完成了,然后
su root 切换root用户
ubuntu14.04 sudo免密码
- cd /etc/sudoers.d
- vi nopasswd4sudo
`your_account` ALL=(ALL) NOPASSWD : ALL
ubuntu 开机默认进入root用户
vim /etc/lightdm/lightdm.conf
# 里面改成下面内容,就自己root登陆了,别忘了设置root密码在
"autologin-user=root"