How to rename the raspberrypi

 Raspberrypi comes with default name as "raspberrypi".  Suppose if you want to change it to some other name

Step1: Connect to raspberry pi with ssh
ssh pi@192.168.1.10

Step2: open the /etc/hosts file

sudo vi /etc/hosts or
sudo nano /etc/hosts

change the raspberrypi to the name which you want

save it


Step3: open the /etc/hostname file

sudo vi /etc/hostname or
sudo nano /etc/hostname

change the raspberrypi to the name which you want

save it

Step4:reboot to apply the changes

sudo reboot

Step5: Now open the raspberrypi again with ssh. Now you will see the name which you gave in place of raspberry pi

Comments

Popular posts from this blog

bb.utils.contains yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig

PR, PN and PV Variable in Yocto