一般社団法人 全国個人事業主支援協会

COLUMN コラム

  • Raspberry Pi #3

こんにちは。

前回の続きです。

ラズパイ(Ubuntu Server)にログイン出来たらネットワークの設定等をしていきます。

以下設定手順です。

1.”vi /etc/netplan/99_config.yaml”を実行し、補足に記載の通りに編集する
2.”sudo apt update”を実行する
3.”sudo apt upgrade”を実行する
4.”apt install ntp”を実行する
5.”service ntp stop”を実行する
6.”apt install ntpdate”を実行する
7.”ntpdate ntp.nict.jp”を実行する
8.”vi /etc/ntp.conf”を実行し、補足に記載の通りに編集する

<補足>
■99_config.yaml
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: false
dhcp6: false
addresses: [192.168.0.160/24]
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.0.1]

■ntp.conf
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
#pool 0.ubuntu.pool.ntp.org iburst
#pool 1.ubuntu.pool.ntp.org iburst
#pool 2.ubuntu.pool.ntp.org iburst
#pool 3.ubuntu.pool.ntp.org iburst
server -4 ntp.nict.jp
server -4 ntp1.jst.mfeed.ad.jp
server -4 ntp2.jst.mfeed.ad.jp
server -4 ntp3.jst.mfeed.ad.jp

今回は一旦ここまでにします。

The following two tabs change content below.

佐々木 貴至

最新記事 by 佐々木 貴至 (全て見る)

この記事をシェアする

  • Twitterでシェア
  • Facebookでシェア
  • LINEでシェア