0%

EN

The Root Filesystem

The contents of the root filesystem must be adequate to boot, restore, recover, and/or repair the system.

To boot a system, enough software and data must be present on the root partition to mount other filesystems. This includes utilities, configuration, boot loader information, and other essential start-up data. /usr, /opt, and /var are designed such that they may be located on other partitions or filesystems.

To enable recovery and/or repair of a system, those utilities needed by an experienced maintainer to diagnose and reconstruct a damaged system must be present on the root filesystem.

To restore a system, those utilities needed to restore from system backups (on floppy, tape, etc.) must be present on the root filesystem.

  • /bin : Essential user command binaries (for use by all users)
  • /boot : Static files of the boot loader
  • /dev : Device files
  • /etc : Host-specific system configuration
  • /home : User home directories (optional)
  • /lib : Essential shared libraries and kernel modules
  • /lib : Alternate format essential shared libraries (optional)
  • /media : Mount point for removable media
  • /mnt : Mount point for a temporarily mounted filesystem
  • /root : Home directory for the root user (optional)
  • /run : Run-time variable data
  • /sbin : System binaries
  • /srv : Data for services provided by this system
  • /tmp : Temporary files
阅读全文 »

MySQL 8 安装

MySQL APT Repository

APT 地址:https://dev.mysql.com/downloads/repo/apt/

Ubuntu 内下载命令:wget https://repo.mysql.com//mysql-apt-config_0.8.15-1_all.deb

1
2
3
4
5
6
7
8
9
10
11
12
13
14
ubuntu@VM-0-16-ubuntu:~$ wget https://repo.mysql.com//mysql-apt-config_0.8.15-1_all.deb
--2020-06-05 09:23:21-- https://repo.mysql.com//mysql-apt-config_0.8.15-1_all.deb
Resolving repo.mysql.com (repo.mysql.com)... 23.199.73.25
Connecting to repo.mysql.com (repo.mysql.com)|23.199.73.25|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35532 (35K) [application/x-debian-package]
Saving to: ‘mysql-apt-config_0.8.15-1_all.deb’

mysql-apt-config_0.8.15-1_all 100%[=================================================>] 34.70K 82.2KB/s in 0.4s

2020-06-05 09:23:29 (82.2 KB/s) - ‘mysql-apt-config_0.8.15-1_all.deb’ saved [35532/35532]

ubuntu@VM-0-16-ubuntu:~$ ls
mysql-apt-config_0.8.15-1_all.deb
阅读全文 »

Raspberry Pi

  • 树莓派型号:Raspberry Pi 4 Model B Rev 1.2
  • 树莓派系统版本:Ubuntu Server 20.04.1 LTS
  • Ubuntu 软件镜像:中国科学技术大学开源软件镜像

修改主机名称

Ubuntu 主机名称文件:/etc/hostname。编辑 /etc/hostname 文件,将主机名由 ubuntu 改为 RaspberryPi

1
ubuntu@ubuntu:~$ sudo vim /etc/hostname

文件内容改为:

1
RaspberryPi

使用 sudo reboot 命令重启树莓派,重启完成后再次登录即可。

阅读全文 »

生成 SSH key

1
ssh-keygen -t rsa -C "your_email@example.com"

GitHub 添加 SSH keys

查看 id_rsa.pub

1
cat ~/.ssh/id_rsa.pub

添加至 GitHub -> SSH and GPG keys

测试

1
2
3
gg@ox [02:33:06 AM] [~] 
-> % ssh -T git@github.com
Hi ClockworkMonkey! You've successfully authenticated, but GitHub does not provide shell access.
阅读全文 »