Results 1 to 4 of 4

Thread: Server console over serial port

  1. #1
    Join Date
    Mar 2009
    Beans
    20
    Distro
    Ubuntu 11.04 Natty Narwhal

    Server console over serial port

    Hi all,

    Is there a way to get console output over a serial (COM) port? I have a box that I use as a NAS, DNS, DHCP and mt-daapd server, I don't have a spare monitor and it is not worth buying one just to use it once or twice a year.

    I found this guide http://linux.koolsolutions.com/2009/...other-machine/
    but it doesn't work with Natty

    Any help is appreciated

    Cheers!

  2. #2
    Join Date
    May 2008
    Beans
    19

    Re: Server console over serial port

    Can't you just ssh to the host ?

    Sounds easier to me...

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Server console over serial port

    Quote Originally Posted by ralfarof View Post
    Is there a way to get console output over a serial (COM) port?
    Yes. I've set it up many times, mostly on Debian, but always from the first beginning of the installation never afterwards. I'm sure there is a way to retrofit the machine, but am not sure how.

    I took a look in one machine and see that /etc/initab has some info about the serial connection. I don't know if it is adequate to just change that one file but it is a start.

    Code:
    T0:23:respawn:/sbin/getty -L ttyS0 19200 vt102

  4. #4
    Join Date
    Mar 2009
    Beans
    20
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Server console over serial port

    Quote Originally Posted by Lars Noodén View Post
    Yes. I've set it up many times, mostly on Debian, but always from the first beginning of the installation never afterwards. I'm sure there is a way to retrofit the machine, but am not sure how.

    I took a look in one machine and see that /etc/initab has some info about the serial connection. I don't know if it is adequate to just change that one file but it is a start.

    Code:
    T0:23:respawn:/sbin/getty -L ttyS0 19200 vt102
    there's no /etc/inittab on Natty, that's the problem.

    I found this in /etc/init/tty1.conf

    Code:
    # tty1 - getty
    #
    # This service maintains a getty on tty1 from the point the system is
    # started until it is shut down again.
    
    start on stopped rc RUNLEVEL=[2345]
    stop on runlevel [!2345]
    
    respawn
    exec /sbin/getty -8 38400 tty1
    I'm gonna play with that and see what happens, worst case scenario I'll be busy the next few hours reinstalling my server

Bookmarks

Posting Permissions

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