树莓派4B
4G内存/16G存储

image.png

基本信息

  1. $ uname -a
  2. Linux Tao-Desktop 5.4.0-1015-raspi #15-Ubuntu SMP Fri Jul 10 05:34:24 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

设置系统时间

  1. timedatectl set-timezone Asia/Shanghai
  1. root@Tao-Desktop:~# lsb_release -a
  2. No LSB modules are available.
  3. Distributor ID: Ubuntu
  4. Description: Ubuntu 20.04.1 LTS
  5. Release: 20.04
  6. Codename: focal

安装软件

https://mirror.tuna.tsinghua.edu.cn/help/raspbian/
image.png

默认镜像源

  1. cd /etc/apt/
  2. vi sources.list
  1. deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi
  2. deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi
  1. sudo apt update
  2. sudo apt upgrade

导入公钥

  1. apt-key adv --keyserver keyserver.ubuntu.com --recv 82B129927FA3303E

Node

  1. wget https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-arm64.tar.xz

image.png
添加软链接

  1. ln -s /YOUR_PATH/nodejs/bin/npm /usr/local/bin/
  2. ln -s /YOUR_PATH/nodejs/bin/node /usr/local/bin/

外接硬盘

Fdisk是linux下管理磁盘的工具,可以对磁盘进行添加,删除,转换等操作

查看一下U盘是否有被识别到

  1. $ fdisk -l
  2. Disk /dev/mmcblk0: 14.86 GiB, 15931539456 bytes, 31116288 sectors
  3. Units: sectors of 1 * 512 = 512 bytes
  4. Sector size (logical/physical): 512 bytes / 512 bytes
  5. I/O size (minimum/optimal): 512 bytes / 512 bytes
  6. Disklabel type: dos
  7. Disk identifier: 0xd3408824
  8. Device Boot Start End Sectors Size Id Type
  9. /dev/mmcblk0p1 * 2048 524287 522240 255M c W95 FAT32 (LBA)
  10. /dev/mmcblk0p2 524288 31116254 30591967 14.6G 83 Linux
  11. Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
  12. Disk model: PSSD T7
  13. Units: sectors of 1 * 512 = 512 bytes
  14. Sector size (logical/physical): 512 bytes / 512 bytes
  15. I/O size (minimum/optimal): 512 bytes / 33553920 bytes
  16. Disklabel type: dos
  17. Disk identifier: 0x15190fc4
  18. Device Boot Start End Sectors Size Id Type
  19. /dev/sda1 2048 1953522112 1953520065 931.5G 7 HPFS/NTFS/exFAT

网络

VNC

https://www.realvnc.com/en/connect/download/vnc/raspberrypi/

image.png