Changes between Version 4 and Version 5 of Documentation/SupportedImages/BuildingBaselineImage


Ignore:
Timestamp:
Jan 25, 2012, 10:00:24 PM (13 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/SupportedImages/BuildingBaselineImage

    v4 v5  
    99  * Getty serial config (for loggin in from the serial console, other wise it looks like it hangs)
    1010 * Setting Root user to have password less login (and dropping all other user records)
     11  * Modifying console logins (for serial console)
     12  * Modifying ssh logins (the two coupled)
    1113 * removing unnecessary packages to minimize image size
    1214 * installing necessary omf/oml packages
     
    1719
    1820=== Ubuntu 11.10 ===
    19 1. To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub:
    20    {{{
    21    GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
    22    GRUB_TERMINAL=serial
    23    GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
    24    }}}
    25    To configure the serial console for login create a file named /etc/init/ttyS0.conf and give it the following contents:
    26    {{{
    27    # ttyS0 - getty
    28    #
    29    # This service maintains a getty on ttyS0 from the point the system is
    30    # started until it is shut down again.
     21 1. To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub:
     22    {{{
     23    GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8"
     24    GRUB_TERMINAL=serial
     25    GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
     26    }}}
     27    To configure the serial console for login create a file named /etc/init/ttyS0.conf and give it the following contents:
     28    {{{
     29    # ttyS0 - getty
     30    #
     31    # This service maintains a getty on ttyS0 from the point the system is
     32    # started until it is shut down again.
    3133
    32    start on stopped rc or RUNLEVEL=[2345]
    33    stop on runlevel [!2345]
    34    
    35    respawn
    36    exec /sbin/getty -L 115200 ttyS0 vt102
    37    }}}
    38    then start it with up start:
    39    {{{
    40    sudo start ttyS0
    41    }}}
     34    start on stopped rc or RUNLEVEL=[2345]
     35    stop on runlevel [!2345]
     36    
     37    respawn
     38    exec /sbin/getty -L 115200 ttyS0 vt102
     39    }}}
     40    then start it with up start:
     41    {{{
     42    sudo start ttyS0
     43    }}}
    4244 1. To configure root with no password edit /etc/shadow, the first line should look like:
    43    {{{
    44    root:!:15363:0:99999:7:::
    45    }}}
    46    remove the ! that follows the root. This will make the root account active and set the password to nil. Console logins for root will now
    47    not require a password. [[BR]]
    48    [[BR]]
    49    To get ssh to accept the changes we need to modify /etc/ssh/sshd_config make sure a couple of lines have specific values. They are:
    50    {{{
    51    PermitRootLogin yes
    52    StrictModes no
    53    PermitEmptyPasswords yes
    54    UsePAM no
    55    }}}
     45    {{{
     46    root:!:15363:0:99999:7:::
     47    }}}
     48    remove the ! that follows the root. This will make the root account active and set the password to nil. Console logins for root will now
     49    not require a password. [[BR]]
     50    [[BR]]
     51    To get ssh to accept the changes we need to modify /etc/ssh/sshd_config make sure a couple of lines have specific values. They are:
     52    {{{
     53    PermitRootLogin yes
     54    StrictModes no
     55    PermitEmptyPasswords yes
     56    UsePAM no
     57    }}}