SD卡,用eFAT格式
暢通的網路
或下載Install Raspberry Pi OS using Raspberry Pi Imager
可以選用64位元版本
安裝好之後
開機前 把乙太網路插好 可以省下設定無線網路卡的麻煩
第一次開機後的登入帳號密碼為 : ubuntu/ubuntu 登入後會要求立即變更密碼
然後依下面方式新增帳號, 並將原本的ubuntu帳號刪除
sudo useradd -m -s /bin/bash youraccount
sudo passwd youraccount
sudo adduser youraccount sudo
logout後, 使用新帳號登入
sudo userdel -r ubuntu
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
下載網路時間伺服器
sudo apt-get install ntp
到目前為止 Ubuntu Server版本已安裝完成
Whether you’re developing on a local machine with a desktop or on a headless server in the cloud, remote access will come in useful. Most cloud-hosted servers will already be set up with SSH and a user account. If not, here’s how to install it:
sudo apt install openssh-server
UFW (Uncomplicated Firewall) is a simple firewall that will help keep your server safe. Leaving a server wide-open to internet traffic is a certified bad idea. Even if you are running a server on your home network, it’s a good idea to have a firewall set up so you’re familiar with the process.
Install UFW:
sudo apt install ufw
Allow SSH through the firewall:
sudo ufw allow OpenSSH
This will allow both incoming and outgoing traffic to SSH from the server while the firewall is enabled. Enable the firewall by running:
sudo ufw enable