How to install and manage Zeronet on Linux via command line

1. Download and extract zeronet archive

A) 64bit version

wget https://github.com/HelloZeroNet/ZeroBundle/raw/master/dist/ZeroBundle-linux64.tar.gz;tar xpfz ZeroBundle-linux64.tar.gz;rm -f ZeroBundle-linux64.tar.gz;cd ZeroBundle

B) 32bit version

wget https://github.com/HelloZeroNet/ZeroBundle/raw/master/dist/ZeroBundle-linux32.tar.gz;tar xpfz ZeroBundle-linux32.tar.gz;rm -f ZeroBundle-linux64.tar.gz;cd ZeroBundle

2. Run ZeroNet:

screen
./ZeroNet.sh

detach the screen: Ctrl+A, then "d" key
reattach the screen: 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/ZeroBundle/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 ZeroBundle/ZeroNet/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 ~/ZeroBundle/ZeroNet/plugins/disabled-UiPassword ~/ZeroBundle/ZeroNet/plugins/UiPassword