ZeroNet

来自 ArchWiki

ZeroNet 允许访问“开放、自由且不可审查的网站,使用比特币加密技术和 BitTorrent 网络”。

安装

安装 zeronetAUR 软件包。

最新的开发版本也在 zeronet-gitAUR 软件包中提供

配置

启动

要启动 ZeroNet,启动/启用 zeronet.service

Tor

默认情况下,ZeroNet 使用明网,如果可用则使用 Tor。要启用 Tor 支持,您首先需要安装 Tor。然后,按照以下说明授予 ZeroNet 控制 Tor 的权限。

# usermod -a -G tor zeronet

追加或编辑 /etc/tor/torrc 中的以下选项

/etc/tor/torrc
ControlPort 9051
DataDirectoryGroupReadable 1
CacheDirectoryGroupReadable 1
CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /var/lib/tor/control_auth_cookie

您可能还需要启动/启用 tor.service

检查 Tor 文件权限

# stat -c %a /var/lib/tor

这应该输出 750。如果不是,请运行

# chmod 0750 /var/lib/tor

要强制所有 ZeroNet 连接通过 Tor,请追加到您的 /etc/zeronet.conf 文件

/etc/zeronet.conf
tor = always

创建 ZeroNet 站点

所有操作,包括编辑 ZeroNet 站点文件,都应以用户 zeronet 身份完成。使用 --config_file 指定配置文件。/etc/zeronet.conf 默认使用 /var/lib/zeronet 作为数据目录。例如

[zeronet]$ python zeronet.py --config_file /etc/zeronet.conf

您创建的所有站点都将在 /var/lib/zeronet/address 中设置其初始数据文件夹。有关如何创建 Zite 的更多信息,请遵循 ZeroNet FAQ 上的指南。

参见