Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

How to come in linux prompt without login?

Hello everyone,

I want to come in linux prompt directly without input login name and password.How can I do?Ken is here?Pls help me?

Tony Zhu

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you want to use single user boot, you can also create a file (empty is fine I think) /etc/singleboot to force init to go into single user boot without passing command line args to the kernel. If you go this route you just need to add that file to the FileSystem project in the NIOS IDE and flash a new filesystem image to the board.

    Tuck
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Ken,

    I am so sorry to renew you too late,because now in my term only have one board,we have to use it by turns.

    Yes,the busybox filesystem can bypass the login,and can come into linux prompt:"#".But there are two questions waiting for your answer ,pls help:

    The first:How can I let the linux system autorun without input "nios2-termal" in the console?

    And the second:How can I bypass "Please press Enter to activate this console",before come into linux prompt:"#"?

    Thanks again!

    Tony Zhu
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Take a look at thread:

    booting the linux (http://www.niosforum.com/forum/index.php?act=st&f=2&t=589&hl=serial,and,jtag)

    It has a basic answer to your first question.

    As for the booting straight to a shell prompt, according to the busybox documentation, you can switch

    ::askfirst:-/bin/sh

    with

    ::respawn:-/bin/sh

    and that should send you straight to the prompt.

    For more information, please take a look at the busybox documentation (http://www.busybox.net/downloads/busybox.html)

    There are other methods, but the above is my own personal preference.