To setup each Raspberry Pi 2 as a Stratum 1 NTP server I’m following the recipe created by David Taylor. While the recipe is very thorough and complete, I ran into an issue disabling the login prompt on the Raspberry Pi’s serial port under Debian Jessie. No matter what I did the login prompt would always be re-enabled after the Pi rebooted. This resulted in GPSD not starting correctly. Read on to find out how to resolve the issue.I found the solution in this post on the Raspberry Pi forum at StackExchange. In summary:
- Execute the following commands:
123sudo systemctl stop serial-getty@ttyAMA0.servicesudo systemctl disable serial-getty@ttyAMA0.servicesudo systemctl mask serial-getty@ttyAMA0.service
- Then run the configuration program
- Select option “9 – Advanced Options”
- Select option “A7 – Serial”
- Select “No”.
- Select “Okay”.
- This will return you to the main menu, select “<Finish>”.
- You will then be asked if you would like to reboot your Pi. Select “<No>”.
- Then you will need to edit the file
/etc/boot.txtwith your favorite text editor and add or change the following line:
- Now you can reboot your Pi.
This should ensure that the login prompt is disabled on the serial port.