按照网上的方法设置/etc/init/tty1.conf ----没用(我在1204版本,按照网上设置有亲测有效的)
希望大神来指导一下
ubuntu1604 如何在字符终端(tty1)设置自动登录root用户
-
- 帖子: 6
- 注册时间: 2017-12-19 17:40
- 系统: ubuntu16.04
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: ubuntu1604 如何在字符终端(tty1)设置自动登录root用户
从 Ubuntu 15.04 开始 systemd 替换了 upstart,以前的教程不适用bob-janpos 写了:用(我在1204版本,按照网上设置有亲测有效的)
创建或修改 /etc/systemd/system/getty@tty1.service.d/override.conf 加入以下内容bob-janpos 写了:ubuntu1604 如何在字符终端(tty1)设置自动登录root用户
代码: 全选
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin root --noclear %I $TERM
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 帖子: 6
- 注册时间: 2017-12-19 17:40
- 系统: ubuntu16.04
Re: ubuntu1604 如何在字符终端(tty1)设置自动登录root用户
创建或修改 /etc/systemd/system/getty@tty1.service.d/override.conf 加入以下内容
[/quote]
我按照您的方法创建了这些文件,重启后进入(tty1)但是黑屏,仅有一个光标,且无法进行任何操作。
我是否有误操作?望赐教
下面是我的日志
getty@tty1.service - Getty on tty1
Loaded: loaded (/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/getty@tty1.service.d
└─override.conf
Active: inactive (dead) since 三 2017-12-20 14:16:48 CST; 27min ago
Docs: man:agetty(8)
man:systemd-getty-generator(8)
http://0pointer.de/blog/projects/serial-console.html
Main PID: 1077 (code=exited, status=1/FAILURE)
12月 20 14:16:48 ubuntu16-04 systemd[1]: getty@tty1.service: Service has no hold-off time, scheduling restart.
12月 20 14:16:48 ubuntu16-04 systemd[1]: Stopped Getty on tty1.
12月 20 14:16:48 ubuntu16-04 systemd[1]: getty@tty1.service: Start request repeated too quickly.
12月 20 14:16:48 ubuntu16-04 systemd[1]: Failed to start Getty on tty1.
代码: 全选
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin root --noclear %I $TERM
我按照您的方法创建了这些文件,重启后进入(tty1)但是黑屏,仅有一个光标,且无法进行任何操作。
我是否有误操作?望赐教
下面是我的日志
getty@tty1.service - Getty on tty1
Loaded: loaded (/lib/systemd/system/getty@.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/getty@tty1.service.d
└─override.conf
Active: inactive (dead) since 三 2017-12-20 14:16:48 CST; 27min ago
Docs: man:agetty(8)
man:systemd-getty-generator(8)
http://0pointer.de/blog/projects/serial-console.html
Main PID: 1077 (code=exited, status=1/FAILURE)
12月 20 14:16:48 ubuntu16-04 systemd[1]: getty@tty1.service: Service has no hold-off time, scheduling restart.
12月 20 14:16:48 ubuntu16-04 systemd[1]: Stopped Getty on tty1.
12月 20 14:16:48 ubuntu16-04 systemd[1]: getty@tty1.service: Start request repeated too quickly.
12月 20 14:16:48 ubuntu16-04 systemd[1]: Failed to start Getty on tty1.
-
- 帖子: 6
- 注册时间: 2017-12-19 17:40
- 系统: ubuntu16.04
Re: ubuntu1604 如何在字符终端(tty1)设置自动登录root用户
代码: 全选
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin root --noclear %I $TERM
代码: 全选
ExecStart=-/usr/bin/agetty --autologin root --noclear %I $TERM
代码: 全选
ExecStart=/sbin/getty -n -l /usr/bin/autologin -8 38400 tty1
代码: 全选
/bin/login -f root
但是我对此并不是很理解。(纯属自己瞎猜,碰出来的)
希望有前辈,能给我讲解一下,或者给我一个学习的方向。