HelloZeroNet / HelloZeroNet/ZeroNet

Running ZeroNet on router

未关闭
#783 1 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
18.8k
派生
2.3k
PR 合并指标
30 天内没有已合并 PR

描述

ref http://127.0.0.1:43110/17vUgpdVUpN4yWeMJJtid7AAeQfLahHtXH/?Post:3:How+to+run+ZeroNet+on+your+router

Running ZeroNet on the router can reduce carbon emissions, and as long as the router is not closed the entire LAN can be quick and easy access, the following, I will introduce how to run ZeroNet on the router.

![1484830875.jpg (1064x857)](http://127.0.0.1:43110/17vUgpdVUpN4yWeMJJtid7AAeQfLahHtXH/data/img/post_1_1484830875.jpg)

First of all, check whether your router install Padavan firmware and plug-in storage, if not, maybe it will not work.
(PS: if your router can not plug-in storage, maybe you can't run it.)

* * *

After that, ssh to router and execute the following command

```shell
opkg update && opkg install wget python-pip python-gevent python-greenlet tmux
```

Update and install these software, cd to your router's external storage, my hard drive on the router's directory is /media/AiDisk_a5, if you don't know where is your plug-in storge can be `df` command to view, /media directory that is.

`cd /media/AiDisk_a5`
Then, let's download ZeroNet:
`wget https://github.com/HelloZeroNet/ZeroNet/archive/master.zip`
Decompression:

`unzip master.zip`

Open the file manager, access \\\\[your_router_ip] (such as I was \\\\192.168.123.1) and then open inside the AiDisk_ax folder (x on behalf of your hard drive number, such as my AiDisk_a5), you can see just downloaded master. Zip and unzipped the ZeroNet-master folder underneath. Then rename the ZeroNet-master folder to ZeroNet, enter the folder, then open the zeronet.py file with npp or other editor, and add the following two lines under `import sys` and save

```python
from thread import stack_size
stack_size(32768)
```

In the current directory and then create a new zeronet.conf file, enter the following and save:

```
[global]
ui_ip = 192.168.123.1
```

Back in ssh, execute these command

```shell
cd ZeroNet
tmux
```

This will be displayed as follows:

![1484830120.png (774x374)](http://127.0.0.1:43110/17vUgpdVUpN4yWeMJJtid7AAeQfLahHtXH/data/img/post_1_1484830120.png)​​​​​

Then enter `pip install -r requirement.txt`

Wait finished, then type`python zeronet.py`and enter.
Now, open your browser and go to [http://192.168.123.1:43110/](http://192.168.123.1:43110/).

![1484830875.jpg (1064x857)](http://127.0.0.1:43110/17vUgpdVUpN4yWeMJJtid7AAeQfLahHtXH/data/img/post_1_1484830875.jpg)

:)enjoy it

贡献指南

这个仓库没有索引到贡献指南

调研方向

Treat the post as an unscoped router setup guide rather than a defined code change. Review the referenced zeronet.py instructions, zeronet.conf example, and shell command sequence first; the documentation work is only complete once the supported router prerequisites and reproducible setup steps are confirmed.

由索引模型根据 Issue 内容生成。

评估

技术栈
python, shell
领域
documentation, infrastructure
Issue 类型
文档
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。