Just how would you suggest going about renaming someone else's system? Changing the hostname is done for the system you are doing the changing on.RPDevelopment wrote: ↑Thu Apr 02, 2020 4:04 pmI read somewhere that a specific hostname may be assigned to a IP address using /etc/hosts, but I only see the ability to change the raspberry hostname. For example, I have a hostname "unknownxxx" appearing in the Admin/Query log that is one of my devices, so, I like to rename it to the name of that device.
You can put anything you like in your own /etc/hosts.W. H. Heydt wrote: ↑Thu Apr 02, 2020 4:44 pmJust how would you suggest going about renaming someone else's system?
Code: Select all
8.8.8.8 pingy.pingy.thing
Code: Select all
pi@raspberrypi:~ $ ping -c 1 pingy.pingy.thing
PING pingy.pingy.thing (8.8.8.8) 56(84) bytes of data.
64 bytes from pingy.pingy.thing (8.8.8.8): icmp_seq=1 ttl=54 time=18.1 ms
--- pingy.pingy.thing ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 18.067/18.067/18.067/0.000 ms
Code: Select all
1.2.3.4 abcdevice

RPDevelopment wrote: ↑Fri Apr 03, 2020 8:39 pmOK. I'm stupid. "Sudo nano /etc/hosts" yields just the local host listing. Ending the command without the "/" yields a new directory request.
Code: Select all
sudo nano /etc/hosts
Code: Select all
^G Get Help
Yes. Add the line you need on the end of that file.RPDevelopment wrote: ↑Fri Apr 03, 2020 8:39 pmOK. I'm stupid. "Sudo nano /etc/hosts" yields just the local host listing. Ending the command without the "/" yields a new directory request.
Code: Select all
echo "1.2.3.4 name" >> /etc/hostsCode: Select all
echo "1.2.3.4 name" | sudo tee -a /etc/hostsCode: Select all
sudo nano /etc/hosts