Step.1 Download Ubuntu image
64-bit from the following link.
Step.2 Write image on MicroSD card
Write the image by
Raspberry Pi Imager
You can download Raspberry Pi Imager here
Writing steps are very simple.
- open Raspberry Pi Imager
- Operating System -->
- Storage --> Select your microSD card
Step.3 Modify networks settings for ssh
Connect your MicroSD to your mac and open
There is a file,
network-config and open it by an editor.
MY_PASSWORD to your wifi settings.
version: 2 ethernets: eth0: dhcp4: true optional: true wifis: wlan0: dhcp4: true optional: true access-points: "MY_WIFI": password: "MY_PASSWORD"
Step.4 Check user-data
user-data and check
# On first boot, set the (default) ubuntu user's password to "ubuntu" and # expire user passwords chpasswd: expire: true list: - ubuntu:ubuntu # Enable password authentication with the SSH daemon ssh_pwauth: true
Step.5 ssh to ubuntu
Search your localnet work to find out your raspberry pi's ip address.
In my case, I used arp-scan.
# install arp-scan via homebrew $ brew install arp-scan # scan localnet $ sudo arp-scan --localnet
$ ssh ubuntu@raspberrypi_ip_address # password is ubuntu
Top comments (1)
Exactly what I needed. Thank you ❤️