Find the answer to your Linux question:
Results 1 to 2 of 2
I don't know how to search for this, nor if this is the right place to ask. So here it goes. I installed Ubuntu server 10.10 (Linux ubuntu-server 2.6.35-22-generic-pae #35-Ubuntu ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! rostfrei's Avatar
    Join Date
    Oct 2006
    Posts
    17

    Help: tty console to serial port


    I don't know how to search for this, nor if this is the right place to ask. So here it goes. I installed Ubuntu server 10.10 (Linux ubuntu-server 2.6.35-22-generic-pae #35-Ubuntu SMP Sat Oct 16 22:16:51 UTC 2010 i686 GNU/Linux), enabled ssh daemon and removed graphic card. Now I'm running Linux PC box without graphic card and accessing it only over SSH. No X windows is installed. As problems are always around the corner I'd still like to access system trough tty console. Is there a way to configure Linux (Ubuntu) box that default tty input/output is serial port? I have 2 of them. You know, just the way few embedded devices have implemented (or Cisco routers etc.), so you can see everything from GRUB menu to login prompt trough serial port (COM port).

    Thank you for the help!

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,425
    These are the basic steps, you may need to tweak them for ubuntu and your machine a little bit.
    (location and existence of agetty, serial port device, serial port parameters)


    in /etc/securetty add
    Code:
    ttyS0
    in /etc/inittab add
    Code:
    s1:2345:respawn:/sbin/agetty -L 38400 ttyS0 vt100
    Code:
    telinit q
    Then you should already be able to connect via serial port

    To see also grub and the kernel messages while booting:
    add this to grub.conf, in the "kernel" line
    Code:
    kernel console=ttyS0,38400
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •