ZeroNet

From ArchWiki
Jump to: navigation, search

ZeroNet gives access to "open, free and uncensorable websites, using Bitcoin cryptography and the BitTorrent network".

Installation

Install the zeronetAUR package.

The latest development version is also available in the zeronet-gitAUR package

Configuration

Starting

To start ZeroNet start/enable zeronet.service.

Tor

By default, ZeroNet uses clearnet and Tor if available. To enable Tor support you first neet to install Tor via tor. Then, give ZeroNet access to control Tor using the following instructions.

# usermod -a -G tor zeronet

Append or edit the following options in /etc/tor/torrc:

ControlPort 9051
DataDirectoryGroupReadable 1
CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /var/lib/tor/control_auth_cookie

You may also want to start/enable tor.service.

Creating ZeroNet sites

All operations, including editing ZeroNet site files, should be done as user zeronet. Use --config_file to specify the configuration file. /etc/zeronet.conf use /var/lib/zeronet as data directory by defaul. For example:

$ sudo -u zeronet python2 zeronet.py --config_file /etc/zeronet.conf

Or

$ sudo su - zeronet
$ cd /opt/zeronet
$ python2 zeronet.py --config_file /etc/zeronet.conf

All zites you create will have their initial data folder setup in /var/lib/zeronet/[address]. For more information on how to create a Zite, please follow the guidelines on the Zeronet FAQ.

See also