Installing Ubuntu Server

Installing Ubuntu Server on Raspberry Pi 3 Headless

To write ubuntu server image use etcher first.

  1. Download and install Raspberry Pi Imager. https://www.raspberrypi.org/software/

  2. Download the ubuntu server image from the following link according to Raspberry Pi Version. https://ubuntu.com/download/raspberry-pi

now right click on downloaded image and open with Raspberry Pi Imager, then select the right card and then wirte.

  1. Now eject the cardreader then insert again into pc then edit the network-config file, with the configuration file.

don’t forget the fucking blank line at the end of network-config file.

# This file contains a netplan-compatible configuration which cloud-init
# will apply on first-boot. Please refer to the cloud-init documentation and
# the netplan reference for full details:
#
# https://cloudinit.readthedocs.io/
# https://netplan.io/reference
#
# Some additional examples are commented out below

version: 2
ethernets:
  eth0:
    dhcp4: true
    optional: true
wifis:
  wlan0:
    dhcp4: true
    optional: true
    access-points:
      Home:
        password: "fdsa1234"

  1. now edit the user-data file and enter two lines at the end of the file
power_state:
   mode:reboot
  1. Discover ip address from router interface or type arp -a | findstr b8-27-eb in command prompt, you will get ip address.

use this command to remove the old ssh entry. ssh-keygen -R 192.168.1.123

Previous
Next