WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Login at /dev/ttyS0  (Read 4815 times)

Offline alexdepa

  • WikiUser
  • *
  • Posts: 3
Login at /dev/ttyS0
« on: April 19, 2010, 06:30:21 AM »
Hi all,
I've just install Micro Core on a flash disk and I put it on an Alix board that doesn't have a vga output so, my only way to dialog with it is through serial console. I've enabled console=ttyS0,115200n8 on menu.lst and now I can view the boot process through serial console but, in the end, the system make a root login on tty1. How can I enable root login on ttyS0?

Thanks!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10048
Re: Login at /dev/ttyS0
« Reply #1 on: April 19, 2010, 07:07:48 AM »
Edit this line in /etc/inittab:

Quote
tty1::respawn:/sbin/rungetty tty1 --autologin root

How, that depends on the serial line I guess.

edit: Actually, rungetty doesn't do serial. Looks like you'll need to compile a suitable getty to do that.
edit2: Or see if busybox getty would work.
« Last Edit: April 19, 2010, 07:10:46 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline alexdepa

  • WikiUser
  • *
  • Posts: 3
Re: Login at /dev/ttyS0
« Reply #2 on: April 19, 2010, 07:29:59 AM »
Ok but how can I edit /dev/inittab once I've installed Micro Core an a hard/flash disk?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10048
The only barriers that can stop you are the ones you create yourself.

Offline alexdepa

  • WikiUser
  • *
  • Posts: 3
Re: Login at /dev/ttyS0
« Reply #4 on: April 19, 2010, 07:55:35 AM »
Thank you! It works!  ;)