Respberry更改主機名稱(hostname)

方法1

Step1)編輯/etc/hostname,輸入想要的名稱,只能使用英文、減號hyphen(-)或數字組成。

#sudo nano /etc/hostname

Step2)重新開機

方法2

Step1)執行raspi-config,選擇Advanced Options -> Hostname

#sudo raspi-config

Step2)重新開機