了解如何在Raspberry Pi 4上通过USB引导Ubuntu Server20.04。SD卡非常缓慢,并且容易出现数据损坏和故障。 通过升级到SSD驱动器来解决所有这些问题!
280篇 Default中的文章
64位系统安装踩搞不少,很多apt都装不了,只能看官方有没有deb包,实在不行就需要编译安装。
可以从这里找docker的包
https://download.docker.com/linux/debian/dists/buster/pool/stable/armhf/
需要下载这三个 wget xxx
pip 安装gevent时报出这些错:
重点看这个:ERROR: Failed building wheel for cffi
注, 64位还是beta版本,目前未发布。
最新的可以浏览这个目录https://downloads.raspberrypi.org/raspios_arm64/images
在boot分区中写入空文件ssh即可
如 touch /Volume/boot/ssh
树每派镜像 RaspberryOS 默认密码是 raspberry
Just one line code:
pip install git+https://github.com/maxcountryman/flask-themes.git
Here is the point: git+https
Python程序从命令行读取参数
很多时候,为了使我们所写的程序更加灵活,我们会给这个程序加上在命令行中调用时可以指定参数的功能。Python中argparse就是一个方便使用的读取命令行参数的库。使用argparse读取在命令行调用程序时指定的参数的示例代码如下:
shell 学习之if语句
-
- From: lovelace521
- 2020/8/13 14:37
- Default
- shell
- 1
- 2359
bash中如何实现条件判断?
条件测试类型:
- 整数测试
- 字符测试
- 文件测试
修改源/etc/apt/sources.list
加速
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main non-free contrib rpi firmware
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main non-free contrib rpi firmware
还有 /etc/apt/sources.list.d/raspi.list
deb https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian buster main
使用flask的blueprint 时,这里有个参数subdomain, 可以用来绑定子域名。
:param subdomain: A subdomain that blueprint routes will match on by
default.