1.Centos升级
yum update
2.Ubuntu升级
sudo apt-get update
3.Ubuntu以root登陆-->
vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
新增一行
greeter-show-manual-login=true
3.Ubuntu在修改完root权限自动登录后,发现开机出现以下提示:
Error found when loading /root/.profile
stdin:is not a tty
…………
解决方法:在终端中用命令gedit /root/.profile,打开文件后找到“mesg n”,
将其更改为“tty -s && mesg n”
4.Ubuntu安装ssh
sudo apt-get install openssh-server
5.修改Ubuntu配置文件使ssh能够连接
vi/etc/ssh/sshd_config
把配置文件中的"PermitRootLogin without-password"加一个"#"号,把它注释掉
再增加一句"PermitRootLogin yes"-->保存,修改成功。rmitRootLogin yes"-->保存,修改成功