ubuntu自动登录tty1(shell,text)配置
2017-02-13 09:56
477 查看
1.写脚本autologin代码:#!/bin/bash
/bin/login -f #你的用户名移动到/usr/bin/下,并且用chmod +x autologin设置可执行权限2.修改/etc/init/tty1.conf修改前:# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]respawn
exec /sbin/getty -8 38400 tty1修改后:# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]respawn
exec /sbin/getty -n -l /usr/bin/autologin -8 38400 tty1
/bin/login -f #你的用户名移动到/usr/bin/下,并且用chmod +x autologin设置可执行权限2.修改/etc/init/tty1.conf修改前:# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]respawn
exec /sbin/getty -8 38400 tty1修改后:# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]respawn
exec /sbin/getty -n -l /usr/bin/autologin -8 38400 tty1
相关文章推荐
- ubuntu自动登录tty1(shell,text)配置
- ubuntu自动登录tty1(shell,text)配置
- shell脚本自动 进行配置免密登录,安装java环境,安装tomcat
- Ubuntu下实现root自动登录
- Ubuntu设置root用户自动登录
- secureCRT自动登录配置脚本
- ubuntu 9.10 root登录 vi支持backspace与方向键 SSH安装 退出xwindow快捷键设置 apt-get源获取 配置雅黑字体 小企鹅输入法安装 NetBeans字体乱码 编译环境 JDK安装
- ubuntu自动登录ssh 推荐
- Ubuntu下实现root自动登录
- VMware中安装Ubuntu 10.04后的一些配置(上网、g++、用putty登录、中文输入法)
- Shell 和 Expect 脚本的自动登录运行
- VMware中安装Ubuntu 10.04后的一些配置(上网、g++、用putty登录、中文输入法)
- 让Ubuntu自动登录到X
- ubuntu usb0 网卡自动配置
- Ubuntu下配置SVN自动发送邮件通知
- ubuntu: root 自动登录
- Ubuntu下配置tty全过程
- ubuntu root 用户 自动登录
- ubuntu 9.10 root登录 vi支持backspace与方向键 退出xwindow快捷键设置 apt-get源获取 配置雅黑字体 小企鹅输入法安装 NetBeans字体乱码解决 转载
- linux下ftp自动登录配置以及相关宏命令配置