Welcome to my GitHub

Github.com/zq2599/blog…

Content: all original article classification summary and supporting source code, involving Java, Docker, Kubernetes, DevOPS, etc.;

Raspberry PI Ubuntu Server 20

Ubuntu already offers a 64-bit OPERATING system for raspberry PI, as shown below:

About this installation

  • Overall, this is an incredibly simple operation, summed up as follows:
  1. The raspberry PI doesn’t need to be connected to a monitor;
  2. An Intranet environment is required. You can view the IP address assigned to the Raspberry PI from the router management page.
  3. Prepare a network cable to connect the raspberry PI to the router.
  4. Get a Windows PC and install Raspberry Pi Imager V1.3, which writes Ubuntu images to an SD card.
  5. Card reader.
  6. Raspberry PI 4B and SD card;
  • Next, speed through the process;

The installation

  1. To download Raspberry Pi Imager V1.3, download the following installation package:

Downloads.raspberrypi.org/imager/imag… 2. Install Raspberry Pi Imager V1.3 and open it as shown below:

  1. Click the CHOOSE OS button in the image above and select the operating system to install. Here I click the arrow in the red box below:

4. In the red box below is my choice, 64-bit Ubuntu:

5. Click CHOOSE SD CARD button, as shown in the yellow box below:

  1. If you have multiple SD cards on your computer, be sure to double check that you have selected the right card, because the selected card will be wiped:

  1. Click the WRITE button in the yellow box below to download the data online and WRITE to the SD card immediately:

  1. Please ensure that the network is normal during the whole writing period, followed by a long wait, as shown in the picture below, the download and verification are very slow, I took an hour here:

9. After card writing and verification are complete, remove the card and insert the raspberry PI, ensure that the Raspberry PI is connected to the network cable, power on and start up;

operation

  1. At this time, raspberry PI has been running, we need to obtain the IP of raspberry PI, in order to remotely operate it through SSH;
  2. Log in to the router management page and take my ASUS RT-AC86U as an example. The IP address of raspberry PI is 192.168.50.118, as shown in the following figure:

  1. Use SSH client software to remotely connect raspberry PI. The account is Ubuntu and the password is Ubuntu. Change the initial password of the Ubuntu account as prompted after successful login.

Allow remote login with account root

  1. Run sudo passwd to change the password of user root.
  2. Run the su – command to switch to user root.
  3. Edit the /etc/ssh/sshd_config file and add the configuration shown in the red box below:

7. Run the reboot command to restart raspberry PI. Then you can remotely operate the raspberry PI using SSH as user root.

  • The above is the whole installation process, I hope to bring you some reference;

You are not alone, Xinchen original accompany all the way

  1. Java series
  2. Spring series
  3. The Docker series
  4. Kubernetes series
  5. Database + middleware series
  6. The conversation series

Welcome to pay attention to the public number: programmer Xin Chen

Wechat search “programmer Xin Chen”, I am Xin Chen, looking forward to enjoying the Java world with you…

Github.com/zq2599/blog…