raspbian

各种国内镜像源

社会主义新天地 提交于 2020-04-08 14:31:58
composer国内源: 全局:composer config -g repo.packagist composer https://packagist.phpcomposer.com (来源: https://pkg.phpcomposer.com/ ) python国内源: 新建文件 ~/.pip/pip.conf 内容如下:(来源: https://www.jianshu.com/p/dfbb90995a2c ) [ global ] index - url = https : / / pypi . tuna . tsinghua . edu . cn / simple [ install ] trusted - host = mirrors . aliyun . com Raspbian国内源: Debian10:(来源: https://mirror.tuna.tsinghua.edu.cn/help/raspbian/ ) # 编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代: deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib deb-src http://mirrors.tuna.tsinghua

RaspberryPi(树莓派)如何安装 MariaDB / MySQL 数据库

时光毁灭记忆、已成空白 提交于 2020-04-07 12:25:00
安装的过程比较简单。 但是这里有一个地方需要注意,如果你希望是能够通过网络访问你安装的数据库的话。 在你设置好用户名和密码,以及访问权限后,你可能发现你还是访问不了。 这是因为你的安装服务器只绑定了能够本地访问,你需要修改配置,让你的服务器能够支持远程访问。 具体的方法,请参考 RaspberryPi(树莓派)安装 MariaDB 数据库没有办法远程访问 页面中的文章。 更新系统 通过运行命令: sudo apt-get update 来对你需要安装的系统进行更新,根据网络的情况可能需要的时间也不相同。 我们更新后系统的输出内容为: root@raspberrypi:~# sudo apt-get update Hit:1 http://archive.raspberrypi.org/debian buster InRelease Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB] Fetched 13.0 MB in 19s (694 kB/s) Reading package lists... Done root

RaspberryPi(树莓派)如何安装 MariaDB / MySQL 数据库

自闭症网瘾萝莉.ら 提交于 2020-04-07 09:53:11
安装的过程比较简单。 但是这里有一个地方需要注意,如果你希望是能够通过网络访问你安装的数据库的话。 在你设置好用户名和密码,以及访问权限后,你可能发现你还是访问不了。 这是因为你的安装服务器只绑定了能够本地访问,你需要修改配置,让你的服务器能够支持远程访问。 具体的方法,请参考 RaspberryPi(树莓派)安装 MariaDB 数据库没有办法远程访问 页面中的文章。 更新系统 通过运行命令: sudo apt-get update 来对你需要安装的系统进行更新,根据网络的情况可能需要的时间也不相同。 我们更新后系统的输出内容为: root@raspberrypi:~# sudo apt-get update Hit:1 http://archive.raspberrypi.org/debian buster InRelease Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB] Fetched 13.0 MB in 19s (694 kB/s) Reading package lists... Done root

程序员喜爱的七款热门Linux系统介绍(附下载地址)

谁说我不能喝 提交于 2020-03-21 11:58:14
3 月,跳不动了?>>> Linux 提供的不仅仅是桌面操作系统。您可以看到为许多用途(包括编程)配置的不同版本。Linux对于程序员和开发人员来说非常熟悉。他们根据工作环境自定义使用Linux。因为Linux发行版(发行版)是开源的,为程序员和开发人员提供了稳定的环境、可定制的特性和可持续发展的环境。 在本文中,我们将讨论用于编程和开发的最佳Linux发行版。如果有人想开始学习新技术,Linux是最好的选择。因为Linux是免费和开源的,所以您不必花费大量的金钱来购买编程和操作系统。 通过Linux,您将能够进行更改并自定义您的系统,使其与您的编程需求相兼容。此外,Linux保持了与几乎任何编程语言的兼容性。除此之外,市场上对Linux专业知识的需求也很大。如果你想成为一名Linux专家,你可以学习各种 Linux课程 ,我相信这对你找新工作有帮助。 通过Linux,您将能够进行更改并自定义您的系统,使其与您的编程需求相兼容。此外,Linux保持了与几乎任何编程语言的兼容性。除此之外,市场上对Linux专业知识的需求也很大。如果你想成为一名Linux专家,你可以学习各种 Linux课程 ,我相信这对你找新工作有帮助。 前面已经说过Linux对于编程而言是最合适不过的环境了,现在让我们告诉您一些最佳的Linux发行版。这将有助于您从大量的Linux发行版中选择合适的发行版。

PiCameraValueError: Incorrect buffer length for resolution 1920x1080

限于喜欢 提交于 2020-03-20 04:59:58
问题 This is my code to detect circle/balls. I want to detect soccer ball from Pi camera. (soccer ball could be in any color.) I am having trouble with some PiCameraValueError. What is wrong with this code. I am using Raspberry Pi 2, Python2, and OpenCV. from picamera.array import PiRGBArray from picamera import PiCamera import time import cv2 import sys import imutils import cv2.cv as cv # initialize the camera and grab a reference to the raw camera capture camera = PiCamera() rawCapture =

PiCameraValueError: Incorrect buffer length for resolution 1920x1080

女生的网名这么多〃 提交于 2020-03-20 04:58:42
问题 This is my code to detect circle/balls. I want to detect soccer ball from Pi camera. (soccer ball could be in any color.) I am having trouble with some PiCameraValueError. What is wrong with this code. I am using Raspberry Pi 2, Python2, and OpenCV. from picamera.array import PiRGBArray from picamera import PiCamera import time import cv2 import sys import imutils import cv2.cv as cv # initialize the camera and grab a reference to the raw camera capture camera = PiCamera() rawCapture =

简要介绍Docker版本及安装条件

拥有回忆 提交于 2020-03-01 13:39:22
Docker CE 即社区免费版,Docker EE 即企业版,强调安全,但需付费使用。 Docker-ce提供四种版本: stable,edge,test,nightly 。 从Docker 1.13版以后,新版本号成发发布年份和月份为准。例:18.09.0 Docker-ce版本分为静态链接与动态链接两种: 静态链接版本不依赖操作系统库,所有包较大。 (windows 和mac目前只提供静态链接版) 动态链接版可以执行程序小一些,与操作系统库相关,只能在某种操作系统的具体发行版下安装。 centos ,debian,fedora,raspbian,ubuntu五类发版。 Docker支持以下的CentOS版本: CentOS 7 (64-bit) CentOS 6.5 (64-bit) 或更高的版本 Docker 运行在 CentOS 7 上,要求系统为64位、系统内核版本为 3.10 以上。 Docker 运行在 CentOS-6.5 或更高的版本的 CentOS 上,要求系统为64位、系统内核版本为 2.6.32-431 或者更高版本。 内核编译时需要激活namespace,CGgroup,netfilter,veth等特性,还对iptablest等工具版有依赖要求。 验证当前环境是否满足Docker 运行要求 下载脚本并执行 https://raw

生成 arm架构的docker compose

孤街浪徒 提交于 2020-02-26 12:18:27
I had built it on my Raspberry Pi 3 Model B Rev 1.2 with Raspbian10 (buster) [arm/v7]. You can try to do it on your Raspberry Pi 4. pi@raspberrypi:~ $ git clone https://github.com/docker/compose.git pi@raspberrypi:~ $ cd compose/ pi@raspberrypi:~/compose $ git checkout -f 1.25.0 pi@raspberrypi:~/compose $ sudo docker build -t dockercompose:1.25.0 . pi@raspberrypi:~ $ sudo curl -L --fail https://github.com/docker/compose/releases/download/1.25.0/run.sh -o /usr/local/bin/docker-compose pi@raspberrypi:~ $ sudo chmod +x /usr/local/bin/docker-compose pi@raspberrypi:~ $ sudo sed -i 's/docker\

SSL error on Raspberry Pi

社会主义新天地 提交于 2020-02-25 08:44:11
问题 I recently purchased a Raspberry Pi to run some Python scripts, but when I ported it the function I wrote to send emails through Windows Live suddenly started handing out an SSL error after successful handshake, specifically: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number After extensive searching around, I found many people with the same error, but all in vastly different situations. The most relevant thing I could find was that it seemed to be an issue with a specific

SSL error on Raspberry Pi

久未见 提交于 2020-02-25 08:43:08
问题 I recently purchased a Raspberry Pi to run some Python scripts, but when I ported it the function I wrote to send emails through Windows Live suddenly started handing out an SSL error after successful handshake, specifically: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number After extensive searching around, I found many people with the same error, but all in vastly different situations. The most relevant thing I could find was that it seemed to be an issue with a specific