树莓派4B安装ubuntu系统

一、准备材料

  1. 树莓派4B单板一块
  2. tf内存卡一张
  3. tf内存卡读卡器一个

二、安装ubuntu 20.10系统

安装Raspberry Pi Imager
下载链接:https://www.raspberrypi.com/software/
也可以选择从ubuntu官网下载镜像手动安装:https://cn.ubuntu.com/download/raspberry-pi

树莓派4B安装ubuntu系统_第1张图片
选择操作系统时选择,other general-purpose OS->Ubuntu->Ubuntu Desktop 22.04.1 LTS 64-bit (LTS意思是长期支持版)
树莓派4B安装ubuntu系统_第2张图片
耐心等待写入完成
树莓派4B安装ubuntu系统_第3张图片
三、更新系统

  1. sudo apt-get update更新软件下载源
  2. apt-get upgrade更新安装软件
  3. apt-get autoremove卸载不需要的软件

三、设置ssh服务
Ubuntu桌面版系统默认不开启ssh服务,所以需要我们手动连接显示器设置

  1. 安装openssh-server
    sudo apt-get install openssh-server
  2. 开机自动启动ssh命令
    sudo systemctl enable ssh
  3. 关闭ssh开机自动启动命令
    sudo systemctl disable ssh
  4. 单次开启ssh
    sudo systemctl start ssh
  5. 单次关闭ssh
    sudo systemctl stop ssh
  6. 设置好后重启系统
    reboot
  7. 查看ssh是否启动,看到Active: active (running)即表示成功
    sudo systemctl status ssh

你可能感兴趣的:(ubuntu,ssh,linux)