xubuntu rpi4 aarch64
https://github.com/TheRemote/Ubuntu-Server-raspi4-unofficial
Raspberry Pi 4B にUbuntu Server 18.04.3 LTS aarch64 環境を構築しました。
Xfce デスクトップ環境もインストールしてみました。

環境

  • Raspberry Pi 4B
  • Ubuntu Server 18.04.3 aarch64
  • Xfce 4.12

構築

Hostname

$ sudo hostnamectl set-hostname pi4

Aliases

$HOME/.bash_aliases
alias upd='sudo apt update && sudo apt dist-upgrade && sudo apt autoremove -y'
alias en='export LC_ALL=en_US.UTF8'
alias ja='export LC_ALL=ja_JP.UTF8'
function sshu() {
command ssh ubuntu@192.168.11.$1
}

Update packages

$ . ~/.bash_aliases
$ upd

Docker

$ curl -fsSL https://get.docker.com/ | sh
$ sudo usermod -aG docker $USER
$ sudo reboot

Docker Compose

$ sudo apt install docker-compose

Portainer

$HOME/repos/docker-portainer/docker-compose.yml
version: '2'
services:
portainer:
restart: always
image: portainer/portainer
container_name: portainer
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/data
$ docker-compose up -d

neofetch

$ sudo apt install neofetch

Xfce

$ sudo apt-get install xubuntu-desktop
$ sudo reboot
$ sudo apt install vnc4server
$ vncpasswd
$HOME/.vnc/xstartup
#!/bin/bash
startxfce4 &
$ chmod +x ~/.vnc/xstartup
$ vncserver

実行

OS 情報

$ uname -a
Linux pi4 4.19.71-v8+ #1 SMP PREEMPT Sun Sep 8 13:27:03 MDT 2019 aarch64 aarch64
aarch64 GNU/Linux
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"

CPU 情報

$ lscpu
Architecture: aarch64
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Vendor ID: ARM
Model: 3
Model name: Cortex-A72
Stepping: r0p3
CPU max MHz: 1500.0000
CPU min MHz: 600.0000
BogoMIPS: 108.00
Flags: fp asimd evtstrm crc32 cpuid

メモリ情報

$ free -m -h
total used free shared buff/cache available
Mem: 3.7G 211M 3.1G 2.5M 371M 3.5G
Swap: 0B 0B 0B

ストレージ情報

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 14G 1.9G 12G 14% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 2.5M 1.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 29M 224M 12% /boot/firmware
tmpfs 381M 0 381M 0% /run/user/1000

Docker バージョン

$ docker --version
Docker version 19.03.2, build 6a30dfc
$ docker-compose --version
docker-compose version 1.17.1, build unknown

Docker システム情報

$ docker system info
Client:
Debug Mode: false

Server:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 1
Server Version: 19.03.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.71-v8+
Operating System: Ubuntu 18.04.3 LTS
OSType: linux
Architecture: aarch64
CPUs: 4
Total Memory: 3.719GiB
Name: pi4
ID: MTVZ:RWU4:VK3S:U5ZW:MKRX:XRKU:IF3J:POSZ:BNUY:PGHR:HUXK:YBJU
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support