I use my rpi headless so I needed an easy way to track which ip it got when connecting to the network. I uses dhcp but when connecting to a bigger network it becomes hard to find where it is.
to do that I changed the
- Code: Select all
/etc/dhcp/dhcpclient.conf
uncommented the send host-name and added a more suitable host-name:
- Code: Select all
send host-name "raspberry.pi";
So now I can simply :
- Code: Select all
ssh pi@raspberry
to connect to my freshly connected computer. Also since I use lighttp I can simply browse to
http://raspberry/
and my main page shows up!