Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am working on creating a real time kernel with RT-PREEMPT patch. I have created this kernel without graphic desktop. It comes up in the terminal mode with login prompt. The requirement is, it should boot and directly go to the shell prompt with root permission, without asking for login. How can this be done? Can you help me?

share|improve this question

1 Answer 1

I have done some research and found that this might be what you want. Is that correct? http://linux.koolsolutions.com/2009/04/30/autologin-linux-console-mode/

I have not yet been able to test this. But I will do so in a moment.

UPDATE:

I have gotten it to work, but it is slightly different on Ubuntu.

  1. First install mingetty:

    sudo apt-get install mingetty
    
  2. Edit /etc/init/tty1.conf:

    Change:

    exec /sbin/getty -8 38400 tty1
    

    To:

    exec /sbin/mingetty --autologin root --noclear tty1
    
  3. Reboot and test.

This worked for me on Ubuntu 12.04, if this works for you and you need more tty's to autologin start changing tty2.conf - tty6.conf and you should be good to go.

share|improve this answer
    
Testing it in a VM as we speak. –  Jochen Oonincx Jul 27 '12 at 7:06
2  
You'll want the exec . –  geirha Jul 27 '12 at 7:14
    
D'oooh. You are absolutely right. I will edit :P –  Jochen Oonincx Jul 27 '12 at 7:31
    
working for ubuntu-server 14.04 also. –  harshitgupta Jun 25 at 20:16
    
what is function of "--noclear"? –  harshitgupta Jun 25 at 20:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.