0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ラズパイUbuntu Server Focal / Groovyメモ

Last updated at Posted at 2020-08-29

個人用の備忘録です

初回起動前

  • SDカードにイメージファイルを書き込む
  • Ethernetに繋ぐか、キーボードとディスプレイに繋がないと初回ログインできない。/boot/firmware/network-config とかをいじっても無線でログインできるようにならない
  • /boot/firmware/cmdline.txt に systemd.unified_cgroup_hierarchy=1 を追加
  • キーボードの配置がUSなので予め /etc/default/keyboard を編集しておくべき
  • 初回起動前に、スワップパーティションをSDカード末尾に作っておくとよい
  • /etc/fstab のマウントオプションに lazytime,async を追加
  • /root/.ssh/authorized_keys を設定
  • プロキシの設定
/etc/environment
http_proxy=http://192.168.1.2:3128/
https_proxy=http://192.168.1.2:3128/
  • APT設定
/etc/apt/apt.conf.d/00myconf
APT::Install-Recommends 0;
APT::Get::Purge 1;
APT::Get::Upgrade-Allow-New 1;
APT::Get::AutomaticRemove 1;

初回起動時作業(最終的な接続方法は無線LANを仮定)

  • ユーザーubuntuとしてログインしてパスワード設定
  • apt-get purge unattended-upgrades
  • dpkg-reconfigure tzdata
  • apt-get install crda language-pack-en
/etc/wpa_supplicant/wpa_supplicant-wlan0.conf
country=JP

network={
  ssid="YourWifi"
  scan_ssid=1
  key_mgmt=WPA-PSK
  psk="YourPassword"
}
/etc/systemd/network/wlan0.network
[Match]
Name=wlan0
[Network]
DHCP=yes
NTP=ntp.nict.jp
  • 上記のファイルを作ったあとに systemctl reenable systemd-timesyncd systemd-networkd wpa_supplicant@wlan0

  • netplanなどを削除 apt-get --autoremove purge netplan.io networkd-dispatcher

  • 要らないパッケージを削除 apt-get --autoremove purge cloud-guest-utils cloud-init cloud-initramfs-copymods cloud-initramfs-dyn-netconf cryptsetup cryptsetup-bin cryptsetup-initramfs cryptsetup-run lvm2 lxd-agent-loader plymouth plymouth-theme-ubuntu-text snapd thin-provisioning-tools ufw

  • apt-get update; apt-get dist-upgrade

Groovy の話

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?