Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display IP address #38

Open
lurch opened this issue Jul 3, 2014 · 3 comments
Open

Display IP address #38

lurch opened this issue Jul 3, 2014 · 3 comments

Comments

@lurch
Copy link

lurch commented Jul 3, 2014

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.

@Bit-notes
Copy link

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.

@lurch
Copy link
Author

lurch commented Mar 5, 2015

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

@Bit-notes
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants