Closed Stonie closed 11 years ago
Code checked, good commit. Up-streaming recommended. Good work Stonie!
+1 this. I always have to hack the name in /etc/hostname and in /etc/hosts too.
I recommend that pull request be up-streamed. Thanks
The reason I haven't implemented this before is that some packages require specific reconfiguration upon change of hostname: http://wiki.debian.org/HowTo/ChangeHostname. Though re-reviewing that list, it doesn't look like there's anything that's going to impact users in the common case.
Hi Alex, as you say, if it's done up front chances are that users won't be impacted. The confusion it is causing beginners is an issue worth tackling IMO. The forums are full of confused punters around this. I think this will go a long way in reducing that confusion.
Cheers, Andrew.
seems legit :)
Thanks! this will be a great help.
Hi Alex,
TL;DR This pull request adds the ability to set a unique hostname during initial set-up.
This will be a huge help in classroom and hack space environments where many new images are on the same LAN at once. We are finding that users are arriving with their Pi setup but with the default hostname, and without any idea that changing it is a good idea in a group environment. this pull request should help ease the pain at group events that involve beginners/students.
Without a monitor, it's hard work locating your freshly configured RPi on the network for SSH access when they all have the same name... many users want to remote in with a laptop.
Alternatives such as the serial console to find your IP are a bit overwhelming for beginners. As is mounting the SD on a laptop and hunting about in the fs
I have tested this on my Model B and hope you see fit to include this contribution.
Please let me know if you need me to modify anything.
Kind regards, Andrew Stone.