OS installation

Download:
Ubuntu for raspberry

If you do not have a monitor for your raspi, please install and set up your ubuntu with Raspberry Pi Imager, and enable the ssh before your installation.

Make sure you have a network connection on your raspi.

First time setting up ubuntu

Set up system time

1
2
sudo apt install ntpdate
sudo ntpdate cn.pool.ntp.org

(referance)[https://cloud.tencent.com/developer/article/1879686]

Otherwise, you will meet issue when sudo apt update, (referance)[https://linux.cn/article-12666-1.html]

Set up apt mirror

Ubuntu-ports清华镜像库

Update and Upgrade

1
2
sudo apt update
sudo apt upgrade

Enable ssh server

1
systemctl enable ssh --now

I met some issues when logining in the ssh server, and I uninstall the openssh-server and reinstall it. Then the issue gone.