New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running ZeroNet on router #783

Open
cxgreat2014 opened this Issue Jan 20, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@cxgreat2014
Contributor

cxgreat2014 commented Jan 20, 2017

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)

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

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

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

cd ZeroNet
tmux

This will be displayed as follows:

1484830120.png (774x374)​​​​​

Then enter pip install -r requirement.txt

Wait finished, then typepython zeronet.pyand enter.
Now, open your browser and go to http://192.168.123.1:43110/.

1484830875.jpg (1064x857)

:)enjoy it

@imachug

This comment has been minimized.

Contributor

imachug commented Jun 12, 2017

Maybe post to ZeroTalk?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment