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. |
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 | }}} |