PokuG stdio.h

stdio.hはおまじない

MENU

Raspberry Pi4のホスト名を変更する

Raspberry Pi4のホスト名を変更します。
デフォルトでもいいですが、気に入った名前にすればより一層愛着がわくと思います。

方法

GUI

Raspberry Piの設定を起動


ホスト名の変更


再起動

CUI

/etc/hosts を編集
pi@SHIMUSHU:~ $ cat /etc/hosts
127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       SHIMUSHU
/etc/hostname を編集
pi@SHIMUSHU:~ $ cat /etc/hostname
SHIMUSHU
pi@SHIMUSHU:~ $