Ubuntu14切换为root用户登录

  1. 切换为root用户
    sudo -s
  2. 设置root用户密码
    sudo passws root
    根据提示输入两遍密码即可
  3. 进入*/usr/share/lightdm/lightdm.conf.d/ * 目录
    cd /usr/share/lightdm/lightdm.conf.d/
  4. 编辑 50-ubuntu.conf 这个 文件, 在末尾追加greeter-show-manual-login=true
  5. 重启机器 即可实现root登录

切换Ubuntu的源

  1. 切换为清华大学的源,打开清华大学ubuntu数据源 选择你的版本,一定要选择正确

安装Ubuntu14遇到的一些坑

  1. 备份你的/etc/apt/sources.list
  2. 然后清空该文件
  3. 代码复制到清空的/etc/apt/sources.list 内即可
  4. 最后一步 更新源列表
    sudo apt-get update

Ubuntu启用root账户后,登录root账户时报错:读取/root/.profile时发现错误

方法有两种:
1.将/root/.profile文件末尾的mesg n
替换成tty -s && mesg n
然后重启

2.将非root账户目录中的.profile复制到/root/
cp /home/**/.profile /root/
然后重启

相关文章:

  • 2022-01-06
  • 2017-12-08
  • 2021-05-04
  • 2021-11-01
  • 2022-01-18
  • 2021-12-19
  • 2021-12-31
  • 2021-04-29
猜你喜欢
  • 2021-11-28
  • 2021-06-29
  • 2021-11-10
  • 2021-06-14
  • 2021-05-13
  • 2021-05-14
  • 2021-11-22
相关资源
相似解决方案