raspi: change hostname

do the following:

  1. sudo vim /etc/hosts
    1. change last line: 127.0.1.1 XYZ
    2. where XYZ should be the new name you want
  2. sudo vim /etc/hostname
    1. replace the name in this file with the new name
  3. sudo /etc/init.d/hostname.sh
  4. sudo reboot

src: howtogeek.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s