Debian I2P 软件包
Debian Sid和Ubuntu Bionic 18.04
I2P在Ubuntu Bionic 18.04和Debian Sid的官方软件源中。 使用您的包管理工具安装“i2p”软件包,安装方法和安装其他软件包相同。以下说明不是必要的。Debian Stretch或更早,Ubuntu Artful 17.10或更早
已经过测试并且应该能工作在 x86/x86_64 平台上的软件包:- Ubuntu (Precise 12.04 或更新)
- Mint
- Debian Linux (Wheezy 或更高版本)
- Knoppix
Instructions for Ubuntu and derivatives like Linux Mint & Trisquel
通过命令行添加PPA源,安装I2P
-
打开终端窗口并输入:
sudo apt-add-repository ppa:i2p-maintainers/i2p
此命令将添加 PPA 至 /etc/apt/source.list.d 中, 并获取软件源签名所使用的 GPG 密钥。GPG 密钥保证软件包自编译后没有被篡改。 -
输入一下命令,通知您的软件包管理器新添加的PPA源:
sudo apt-get update
此命令将从系统中已启用的每个软件源中获取最新的软件列表,包括刚刚通过命令添加的 I2P PPA 源。 - 您现在可以安装I2P了!
sudo apt-get install i2p
使用Synaptic添加PPA
- 打开 Synaptic (系统 -> 管理 -> Synaptic 软件包管理器)。
- Synaptic 启动后,从 设置 菜单中选择 软件源 。
-
点击 其他来源 选项卡,单击 添加。
粘贴
ppa:i2p-maintainers/i2p
至 APT-行并点击添加来源。 点击关闭 按钮,然后 重新载入。 -
在快速筛选框中,输入
i2p
,按回车键。 结果列表中出现i2p
后,右键点击i2p
并选择 标记为安装。 此后可能会出现 标记其他需要的变更? 弹出窗口,请选择 标记 然后 应用。
Debian 的安装指南
目前支持的架构包括amd64, i386, armel, armhf (适用于Raspbian).注意:以下步骤应以root权限执行(例如用su
切换到root用户或在每个命令前加上sudo
)。
- 确保
apt-transport-https
和curl
已安装。sudo apt-get update sudo apt-get install apt-transport-https curl
-
Check which version of Debian you are using on this page at the Debian wiki
and verify with
/etc/debian_version
on your system. Then, add lines like the following to/etc/apt/sources.list.d/i2p.list
.
For Stretch (stable):
deb https://deb.i2p2.de/ stretch main deb-src https://deb.i2p2.de/ stretch main
For Jessie (old-stable):
deb https://deb.i2p2.de/ jessie main deb-src https://deb.i2p2.de/ jessie main
For Wheezy (obsolete):
deb https://deb.i2p2.de/ wheezy main deb-src https://deb.i2p2.de/ wheezy main
Note: If you are running Debian Sid (testing), then you can install I2P directly from Debian's main repository:sudo apt-get install i2p
- Download the key used to sign the repository:
curl -o i2p-debian-repo.key.asc https://geti2p.net/_static/i2p-debian-repo.key.asc
-
先不要导入任何东西,检查密钥的指纹和所有者:
gpg -n --import --import-options import-show i2p-debian-repo.key.asc
-
将密钥添加到APT的钥匙串:
sudo apt-key add i2p-debian-repo.key.asc
-
通知您软件包管理器新的存储库, 通过输入
sudo apt-get update
- 您现在已准备好安装 I2P!安装
i2p-keyring
软件包,确保你接收到用资源库的 GPG 密钥签发的更新。
sudo apt-get install i2p i2p-keyring
安装过程结束后,您可以继续到下一部分 启动I2P,根据您的系统对其进行配置。
安装收尾工作
使用以上 I2P 软件包,I2P 路由可以通过如下方式启动-
"按需启动" 使用 i2prouter 脚本。从命令行执行 "
i2prouter start
" 即可。(注意:不要使用 sudo 或以 root 身份运行!) -
"按需运行" 执行 "
i2prouter-nowrapper
", 不使用 java 服务封装直接运行(非Linux/非x86系统中需要这样)。 (注意:不要使用 sudo 或以 root 身份运行!) -
作为服务在您的系统启动时自动运行,甚至早于用户登录。服务可以通过以root身份或sudo命令执行"
dpkg-reconfigure i2p
"启用。这是推荐的操作方式。
首次安装时,请不要忘记如果可能请调整您的 NAT/防火墙。 需要转发的端口可以通过路由控制台的 网络配置页面查看。 如果需要端口转发/端口映射方面的帮助,portforward.com可能会对您有用。
请到配置页面, 检查并调整带宽设置,因为默认设置的 96 KB/s 下行 / 40 KB/s 上行相当保守。
如果您希望通过浏览器访问I2P暗网内的网站, 您需要参看 浏览器代理设置 页面了解基本设置方法。