在Angstrom Linux上自动登录 [英] Automatic login on Angstrom Linux

查看:93
本文介绍了在Angstrom Linux上自动登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么干净的方法可以使Angstrom Linux在不要求登录的情况下启动并打开外壳?

What is a clean way to obtain Angstrom Linux to boot up and open the shell without asking to log in?

推荐答案

我找到了一种不错的方法.这适用于Angstrom(在Beagleboard xM Rev C4上).

I found a nice way to achieve it. This works for me with Angstrom (on a Beagleboard xM Rev C4).

  1. 确保已安装agetty(/sbin/agetty是标准位置).它应该包含在每个Linux Angstrom映像中.

  1. Make sure agetty is installed (/sbin/agetty is the standard location). It should be included in every Linux Angstrom image.

在任何位置创建脚本文件,例如/home/root/autologin.sh.编辑它并添加以下内容:

Create a script file in any location, for example /home/root/autologin.sh. Edit it and add the following:

#!/bin/sh
exec /bin/login -f root

  • 使用命令使其可执行

  • Make it executable with the command

    chmod a+x autologin.sh
    

  • 编辑文件/etc/inittab.在下面的行中注释掉(在开头添加#")

  • Edit the file /etc/inittab. Comment out (by adding a "#" at the beginning) the following line

    1:2345:respawn:/sbin/getty 38400 tty1
    

  • 并添加以下行:

        1:2345:respawn:/sbin/agetty -l /home/root/autologin.sh -n 38400 tty1 linux
    

    希望这对您有所帮助.

    这篇关于在Angstrom Linux上自动登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆