树莓派 软件仓库
关键词: raspberry apt reprepro repository
主要内容:
- 树莓派 创建软件源
- 创建 hello deb包
- 使用野火鲁班猫测试仓库
文档参考:
- https://help.ubuntu.com/community/CreateAuthenticatedRepository
- https://blog.csdn.net/weixin_30344131/article/details/98599798
- https://blog.csdn.net/shawzg/article/details/113511859
- https://lanseyujie.com/post/build-ppa-with-reprepro.html
最新地址: https://taotaodiy-raspi.readthedocs.io/en/latest/raspi/repository.html
搭建软件仓库
新建站点
nginx和apache都可以,这里以nginx为例。
局域网中搭建了自己的DNS服务器,所以可以随意设置域名。
创建站点 nginx 参考
搭建DNS dnsmasq 参考
我们照着原来的default的站点搭建一个 www.taotaodiy_raspi.org 。
站点下面有如下文件夹:
pi@taotaodiy:/var/www/www.taotaodiy_raspi.org $ tree
.
├── conf
└── public
└── key
GPG 密钥
GnuPG是由RFC4880(也称为PGP)定义的OpenPGP标准的完整和免费实现。GnuPG允许您对数据和通信进行加密和签名;
它具有一个多功能的密钥管理系统,以及各种公钥目录的访问模块。
GnuPG,也称为GPG,是一个命令行工具,具有易于与其他应用程序集成的特性。有大量的前端应用程序和库可用。
GnuPG还提供了对S/MIME和secureshell(ssh)的支持。
自1997年推出以来,GnuPG是一种自由软件(意味着它尊重您的自由)。
它可以根据GNU通用公共许可证的条款自由使用、修改和分发。
GnuPG的当前版本是2.2.27。其他维护版本请参见下载页。
Gpg4win是GnuPG的Windows版本,具有上下文菜单工具、加密管理器和用于发送和接收标准PGP/MIME邮件的Outlook插件。
Gpg4win的当前版本是3.1.15。
# 安装 gnupg
sudo apt install -y gnupg
# 使用
gpg --full-gen
下面是我设置时的一些log,有些选项不知道怎么选可以参照下:
pi@taotaodiy:~ $ gpg --full-gen
gpg (GnuPG) 2.2.12; Copyright (C) 2018 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
gpg: keybox '/home/pi/.gnupg/pubring.kbx' created
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection? 4
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (3072) 4096
Requested keysize is 4096 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 0
Key does not expire at all
Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
Real name: taotaodiy
Email address: 1870580572@qq.com
Comment: deb test
You selected this USER-ID:
"taotaodiy (deb test) <1870580572@qq.com>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other act