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
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
Post a Comment