raspi-config icon indicating copy to clipboard operation
raspi-config copied to clipboard

Display IP address

Open lurch opened this issue 10 years ago • 3 comments

As discussed here when the Pi boots up for the first time, raspi-config starts automatically and obscures the IP address that gets displayed. This means that in the rare scenarios where you have a monitor and ethernet connected, but don't have a keyboard connected (?!), you can't see what the Pi's IP address is in order to connect to it via SSH. Having raspi-config display the Pi's IP address would fix this.

lurch avatar Jul 03 '14 23:07 lurch

If anyone still interested in implementing it here is command to display IPs separated by new line, excluding localhost: ifconfig | sed -r -e '/inet addr:/!d; s/.+?inet addr:([0-9\.]*).*/\1/; /127\.0\.0\.1/d' Please put it somewhere in raspi-config, it is really awkward to go to net map to determine ip of raspberry pi.

Bit-notes avatar Mar 05 '15 14:03 Bit-notes

That sed nastiness isn't necessary - you can achieve the same thing using hostname -I, as documented here.

lurch avatar Mar 05 '15 16:03 lurch

That's what you get from learning by reading stackoverflow. Thanks :)

Bit-notes avatar Mar 05 '15 20:03 Bit-notes