Open4

ラズパイ(Ubuntu)メモ

schnellschnell

wifiへの接続に関して

/etc/netplan/50-cloud-init.yamlを以下のように編集する。

network: 2
    version: 2
    wifis:
        renderer: nerworkd
        wlan0:
            dhcp4: true
            optional: true
            access-points:
                [SSID]:
                    password: "[PASSWD]"

設定を反映し確認する。

sudo netplan apply
wifi-status

ipアドレスの固定

/etc/netplan/99-netcfg.yamlに以下のように追記する。

/etc/netplan/99-netcfg.yaml
network:
  version: 2
  wifis:
    wlan0:
      addresses: [固定したいipアドレス]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [192.168.0.1, 8.8.8.8, 8.8.4.4]
	search: []
      optional: true

有線であれば、wifisではなくethernetsを用いる。以下コマンドでipを確認する。

ip a
schnellschnell

dockerのインストール

curl -sSL https://get.docker.com | sh
# root権限なしでdocker利用可能
sudo usermod -aG docker "ユーザー名"

# ログインし直してから
docker run -it --rm hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (arm64v8)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

schnellschnell

ユーザーの追加

adduser "ユーザー名"
# sudo 権限追加
usermod -aG sudo "ユーザー名"
schnellschnell

GPUサーバーメモ

sudo nano /etc/netplan/99-network-config.yaml
/etc/netplan/99-network-config.yaml
network:
  version: 2
  ethernets:
    eth0:
      dhcp4: false
      optional: true
      addresses: [<CIDR表記の固定IPアドレス(例:192.168.0.100/24)>]
      routes:
        - to: default
          via: <デフォルトゲートウェイアドレス(例:192.168.0.1)>
      nameservers:
        addresses: [<DNSサーバーアドレス(例:192.168.0.1)>]

anyconnectのインストール