| 20 | | To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub: |
| | 20 | 1. To configure grub/kernel messages to goto serial add/modify the following lines in /etc/default/grub and run update-grub: |
| | 21 | {{{ |
| | 22 | GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8" |
| | 23 | GRUB_TERMINAL=serial |
| | 24 | GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" |
| | 25 | }}} |
| | 26 | To configure the serial console for login create a file named /etc/init/ttyS0.conf and give it the following contents: |
| | 27 | {{{ |
| | 28 | # ttyS0 - getty |
| | 29 | # |
| | 30 | # This service maintains a getty on ttyS0 from the point the system is |
| | 31 | # started until it is shut down again. |
| 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 | | |
| 28 | | To configure the serial console for login create a file named /etc/init/ttyS0.conf and give it the following contents: |
| 29 | | {{{ |
| 30 | | # ttyS0 - getty |
| 31 | | # |
| 32 | | # This service maintains a getty on ttyS0 from the point the system is |
| 33 | | # started until it is shut down again. |
| 34 | | |
| 35 | | start on stopped rc or RUNLEVEL=[2345] |
| 36 | | stop on runlevel [!2345] |
| 37 | | |
| 38 | | respawn |
| 39 | | exec /sbin/getty -L 115200 ttyS0 vt102 |
| 40 | | }}} |
| 41 | | then start it with up start: |
| 42 | | {{{ |
| 43 | | sudo start ttyS0 |
| 44 | | }}} |
| 45 | | |
| | 33 | start on stopped rc or RUNLEVEL=[2345] |
| | 34 | stop on runlevel [!2345] |
| | 35 | |
| | 36 | respawn |
| | 37 | exec /sbin/getty -L 115200 ttyS0 vt102 |
| | 38 | }}} |
| | 39 | then start it with up start: |
| | 40 | {{{ |
| | 41 | sudo start ttyS0 |
| | 42 | }}} |
| | 43 | 1. To configure root with no password edit /etc/shadow, the first line should look like: |
| | 44 | {{{ |
| | 45 | root:!:15363:0:99999:7::: |
| | 46 | }}} |
| | 47 | remove the ! that follows the root. This will make the root account active and set the password to nil.[[BR]] |
| | 48 | [[BR]] |
| | 49 | For ssh... |