Last active
May 1, 2019 20:16
-
-
Save sepastian/3a64c9445d8e6c37e679 to your computer and use it in GitHub Desktop.
Headless initial login and initialization of a Raspberry PI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use lsleases (https://github.com/j-keck/lsleases) to detect the Raspberries IP address. | |
# Other suggested using ping and arp, both of which rely on the hostname of the Raspberry to display as 'raspberry'; | |
# depending on the network, the hostname may change; | |
# lsleases will still work. | |
$ sudo lsleases -s | |
2015/01/15 15:36:40 startup - version: 1.4.0 | |
2015/01/15 15:36:40 enable active check - ping every: 15m | |
# | |
# Reboot the Raspberry and wait | |
# | |
2015/01/15 15:37:10 new DHCP Lease: '132.231.71.116 b8:27:eb:f5:c3:4a raspberrypi' | |
# SSH into the Raspberry. | |
$ ssh [email protected] # password: raspberry | |
# When logging into a Raspberry PI for the first time in non-headless mode, | |
# it would run raspi-config; run raspi-config manually. | |
$ sudo raspi-config | |
# Optionally, purge X and everything depending on it. | |
$ sudo apt-get remove --dry-run --auto-remove --purge 'libx11-.*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment