Fli
02-07-2018, 02:01 PM
How to install and manage Zeronet on Linux via command line
1. Download and extract zeronet archive
wget https://github.com/ZeroNetX/ZeroNet-linux/archive/dist-linux64/ZeroNet-py3-linux64.tar.gz
tar xvpfz ZeroNet-py3-linux64.tar.gz
2. Run ZeroNet:
cd ZeroNet-linux-dist-linux64/
Start with: ./ZeroNet.sh
Open the ZeroHello landing page in your browser by navigating to: http://127.0.0.1:43110/
screen (optional command, in case you need to reuse current shell session/tab)
./ZeroNet.sh
detach the screen (if used): Ctrl+A, then "d" key
reattach the screen (if used): screen -r
Got an error:
[08:25:14] TorManager Tor controller connect error: error: [Errno 111] Connection refused in TorManager.py line 170 > socket.py line 344
[08:25:14] TorManager Starting self-bundled Tor, due to Tor proxy port 127.0.0.1:9050 check error: No connection
To launch ZeroNet again, probably use this command: path/to/ZeroBundle/ZeroNet.sh
I got errors:
ERROR:root:Unhandled exception: No module named gevent
ImportError: No module named msgpack
To fix it i installed missing python modules: sudo apt-get install python-gevent python-msgpack
On CentOS, it was: yum install python-gevent python-msgpack;
To run ZeroNet on background add " &" after the earlier mentioned command.
To autorun ZeroNet at boot, one may try "crontab -e" and add new line:
@reboot path/to/ZeroNet-linux-dist-linux64/ZeroNet.sh &
(replace "path/to" by real path to ZeroNet directory. It can be /home/username)
To kill zeronet, i would try: pkill -f ZeroNet
Download site manually via command line: python zeronet.py siteDownload AddressHere
Having public IP and want to manage this ZeroNet instance over internet?
Try to edit ZeroNet-linux-dist-linux64/zeronet.conf
and below line [global]
add new lines:
ui_ip = *
ui_port = 80
The third line is optional and you have to enable password plugin: mv -v ~/ZeroNet-linux-dist-linux64/plugins/disabled-UiPassword ~/ZeroNet-linux-dist-linux64/plugins/UiPassword
1. Download and extract zeronet archive
wget https://github.com/ZeroNetX/ZeroNet-linux/archive/dist-linux64/ZeroNet-py3-linux64.tar.gz
tar xvpfz ZeroNet-py3-linux64.tar.gz
2. Run ZeroNet:
cd ZeroNet-linux-dist-linux64/
Start with: ./ZeroNet.sh
Open the ZeroHello landing page in your browser by navigating to: http://127.0.0.1:43110/
screen (optional command, in case you need to reuse current shell session/tab)
./ZeroNet.sh
detach the screen (if used): Ctrl+A, then "d" key
reattach the screen (if used): screen -r
Got an error:
[08:25:14] TorManager Tor controller connect error: error: [Errno 111] Connection refused in TorManager.py line 170 > socket.py line 344
[08:25:14] TorManager Starting self-bundled Tor, due to Tor proxy port 127.0.0.1:9050 check error: No connection
To launch ZeroNet again, probably use this command: path/to/ZeroBundle/ZeroNet.sh
I got errors:
ERROR:root:Unhandled exception: No module named gevent
ImportError: No module named msgpack
To fix it i installed missing python modules: sudo apt-get install python-gevent python-msgpack
On CentOS, it was: yum install python-gevent python-msgpack;
To run ZeroNet on background add " &" after the earlier mentioned command.
To autorun ZeroNet at boot, one may try "crontab -e" and add new line:
@reboot path/to/ZeroNet-linux-dist-linux64/ZeroNet.sh &
(replace "path/to" by real path to ZeroNet directory. It can be /home/username)
To kill zeronet, i would try: pkill -f ZeroNet
Download site manually via command line: python zeronet.py siteDownload AddressHere
Having public IP and want to manage this ZeroNet instance over internet?
Try to edit ZeroNet-linux-dist-linux64/zeronet.conf
and below line [global]
add new lines:
ui_ip = *
ui_port = 80
The third line is optional and you have to enable password plugin: mv -v ~/ZeroNet-linux-dist-linux64/plugins/disabled-UiPassword ~/ZeroNet-linux-dist-linux64/plugins/UiPassword