Install Ubuntu system on Raspberry Pi (no screen)

Install ubuntu system on Raspberry Pi

foreword

Software required:

1. Option 1

win32diskimager-1.0.0-install.exe

SDFormatterha

Ubuntu image (can be downloaded from the official website or Tsinghua source)

Option II:

Raspberry Pi Image Writer

Raspberry Pi image burner direct download

Hardware required:

64GB memory card (Sanddisk Ultra recommended)

card reader

Raspberry Pi 4B I bought 8G here[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly

[External link picture transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the picture and upload it directly (img-e0NMngOh-1691733460379) (C:\Users\Administrator\Desktop\install\assets\IMG20230810164154.jpg.JPGinsert image description here
insert image description here

(recommended to have an enclosure)

> [External link picture transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the picture and upload it directly (img-8ydgamXz-1691733460384) (C:\Users\Administrator\Desktop\install\assets\IMG20230810171933.jpg.JPG )]](https://img-blog.csdnimg.cn/3e7b572d00074126873b536319673195.png)

insert image description here

Installation plan one

Format SD card using Raspberry Pi burner

[External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-hk7yiqSx-1691733460388) (C:\Users\Administrator\Desktop\install\assets\image-20230810223556327.png) ]

Select our memory card (D disk is enough)

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-Dse1F6Tq-1691733460390) (C:\Users\Administrator\Desktop\install\assets\image-20230810224322319.png) ]

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-dsd6TkRb-1691733460392) (C:\Users\Administrator\Desktop\install\assets\image-20230810224346943.png) ]

Then erase format the SD card to FAT32 mode

[External link image transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the image and upload it directly (img-XDC1hWmW-1691733460394) (C:\Users\Administrator\Desktop\install\assets\image-20230810224413712.png) ]

Finally click this to burn

[External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-AVK8EnH6-1691733460395) (C:\Users\Administrator\Desktop\install\assets\image-20230810224459190.png) ]

we choose yes

[External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-HlJbbRsb-1691733460396) (C:\Users\Administrator\Desktop\install\assets\image-20230810224515699.png) ]

Let him write a few seconds later

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-EqhLp5SS-1691733460397) (C:\Users\Administrator\Desktop\install\assets\image-20230810224523299.png) ]

Download the Raspberry Pi image (Option 2 can be used)

Just click the Raspberry Pi directly on the Raspberry Pi official website[External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-QW0ahI2K-1691733460398) (C:\Users\Administrator\Desktop\install\assets\image-20230810224717002.png) ]

I installed the server version here

[External link picture transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the picture and upload it directly (img-yVJ5c3zs-1691733460399) (C:\Users\Administrator\Desktop\install\assets\image-20230810224827722.png) ]

long wait for download

insert image description here

write system

insert image description here

insert image description here

We use our own download (we need to unzip our file before doing this)

insert image description here

insert image description here

insert image description here

insert image description here

configuration

insert image description here

insert image description here

Installation plan two

Download mirror (domestic source) portal

insert image description here

insert image description here

We choose the latest version

insert image description here

insert image description here

this

insert image description here

The download is still very fast (the above is domestic and the bottom is the official website)

[External link image transfer failed, the source site may have an anti-leeching mechanism, it is recommended to save the image and upload it directly (img-oAcwIgOI-1691733460412) (C:\Users\Administrator\Desktop\install\assets\image-20230810225859046.png) ]

format SD card

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-XC60SnaX-1691733460414) (C:\Users\Administrator\Desktop\install\assets\image-20230810230253863.png) ]

Write to the system (the operation process is similar without repeating it here)

insert image description here

ssh connection

Connect with the username and password defined earlier

Solution 2 needs to change the congfig file

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-5oYy496r-1691733460416) (C:\Users\Administrator\Desktop\install\assets\image-20230811131753357.png) ]

change source

backup

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

edit

sudo gedit /etc/apt/sources.list

We use Alisource

#  阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

Guess you like

Origin blog.csdn.net/m0_72703340/article/details/132229715