ZeroNet

From ArchWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 need to install 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
CacheDirectoryGroupReadable 1
CookieAuthentication 1
CookieAuthFileGroupReadable 1
CookieAuthFile /var/lib/tor/control_auth_cookie

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

Eventually check Tor file permissions

# stat -c %a /var/lib/tor

should print 750. if not, run sudo chmod 0750 /var/lib/tor

To force all ZeroNet connections through Tor,
append to your /etc/zeronet.conf file

tor = always

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 default. For example:

# sudo -u zeronet python zeronet.py --config_file /etc/zeronet.conf

All sites 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