Navigation Menu

Skip to content

Running ZeroNet on VPS

tangdou1 edited this page Apr 15, 2020 · 14 revisions

Take the Debian for example.


(0.7.x, python3)

  1. enter the vps as root user using putty

  2. Run: apt-get update && apt-get install tmux && tmux new -s session1

  3. Run: wget https://github.com/HelloZeroNet/ZeroNet/archive/py3/ZeroNet-py3.tar.gz && tar xvpfz ZeroNet-py3.tar.gz && cd ZeroNet-py3 && apt-get install python3-pip && python3 -m pip install -r requirements.txt && echo -e "[global]\nui_ip = 0.0.0.0\nui_port = 89" > zeronet.conf && python3 zeronet.py

  4. open http://VPS's IP:89 with the browser in your local PC or mobile


  1. enter the vps as root user using putty
  2. Run apt-get update
  3. Run apt-get install tmux
  4. Run tmux new -s zeronet
  5. Run apt-get install msgpack-python python-gevent
  6. Run wget https://github.com/HelloZeroNet/ZeroNet/archive/master.tar.gz
  7. Run tar xvpfz master.tar.gz
  8. Run cd ZeroNet-master/plugins
  9. Run mv disabled-Bootstrapper Bootstrapper (optional)
  10. Run mv disabled-UiPassword UiPassword
  11. Run cd ..
  12. Run vi zeronet.conf
  13. write (press i key)
[global]
ui_ip = 0.0.0.0
ui_port = 8888
ui_password = password

(Change the value of ui_port and ui_password as you like)

  1. save zeronet.conf(press Esc key,input :wq then enter key)
  2. Run python2 zeronet.py
  3. open http://VPS's IP:8888 with the browser in your local PC or mobile ,input password
  4. close your putty

(If you want to make your zeronet as a proxy, you can enable the Multiuser plugin located in ZeroNet-master/plugins by running mv disabled-Multiuser Multiuser. If your zeronet enables that plugin, you lose the full control of your zeronet, which means you cannot make some critical changes in that zeronet through browser. Also you should disable the UiPassword plugin and delete the corresponding content ui_password = password in zeronet.conf, if you want to your zeronet as a public proxy.)