WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline alexdepa

  • Newbie
  • *
  • Posts: 3
Login at /dev/ttyS0
« on: April 19, 2010, 09: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: 11022
Re: Login at /dev/ttyS0
« Reply #1 on: April 19, 2010, 10: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, 10:10:46 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline alexdepa

  • Newbie
  • *
  • Posts: 3
Re: Login at /dev/ttyS0
« Reply #2 on: April 19, 2010, 10: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: 11022
The only barriers that can stop you are the ones you create yourself.

Offline alexdepa

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