树莓派 软件仓库

树莓派 软件仓库

关键词: raspberry apt reprepro repository

主要内容:

  • 树莓派 创建软件源
  • 创建 hello deb包
  • 使用野火鲁班猫测试仓库

文档参考:

最新地址: https://taotaodiy-raspi.readthedocs.io/en/latest/raspi/repository.html

start003

搭建软件仓库

新建站点

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

贪贪贪丶慎独

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值