Serial Console on Ubuntu JeOS PDF Print E-mail
Wednesday, 24 June 2009 11:28

I installed Ubuntu JeOS on an Artigo Pico-ITX, and wanted to run it headless so I needed to enable the serial console.  Ubuntu JeOS uses upstart as per normal Ubuntu releases (rather than sysvinit like other distros) and instructions vary depending on which Ubuntu release you have.

Ubuntu 9.10 (Karmic Koala):

Paste the following into /etc/init/ttyS0.conf

    # ttyS0 - getty
    #
    # This service maintains a getty on ttyS0 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 -L 115200 ttyS0 vt102

then start the service by typing

    sudo start ttyS0


Ubuntu 9.04 (Jaunty Jackalope):

Paste the following into /etc/event.d/ttyS0

    # ttyS0 - getty
    #
    # This service maintains a getty on ttyS0 from the point the system is
    # started until it is shut down again.

    start on runlevel 2
    start on runlevel 3
    start on runlevel 4
    start on runlevel 5

    stop on runlevel 0
    stop on runlevel 1
    stop on runlevel 6

    respawn
    exec /sbin/getty 115200 ttyS0


To connect to the serial console you will need a NULL modem cable, a terminal that supports a baud rate of 115200 bps 8N1, and the flying lead provided with the Artigo (see photo below).


Serial lead on Artigo Pico-ITX



You can also get grub's output on the serial console by following the instructions further down the page but I didn't bother.

 
Joomla Templates by Joomlashack