I am personally using ZeroNet's snap package instead of the tarball.
First of all you should check if your system is compatible with snaps and if snapd is installed.
If you are using Ubuntu (or derivatives) 16.04 LTS or newer it should be installed and working.
It is as simple as snap install zeronet.
Refer to the official website.
If you plan to use ZeroNet on a per user basis you should use a user service.
~/.config/systemd/user. If the directories do not exist, you can create them first: $ mkdir -p ~/.config/systemd/user.nano) called zeronet.service (it may be called different as long as you keep the .service extension): $ nano ~/.config/systemd/user/zeronet.service[Unit]
Description=ZeroNet Daemon Instance
After=network.target
[Service]
Type=simple
ExecStart=/snap/bin/zeronet --enable-tor
[Install]
WantedBy=default.target
NOTE: If you don't want to use TOR you may remove the --enable-tor flag.. Tor is bundled with the snap. No further configuration required.
$ systemctl --user start zeronet$ systemctl --user status zeronet$ systemctl --user enable zeronetIf you plan to use ZeroNet globally on a system you should use the system service. System services are located at multiple locations. The best place to put custom services is /etc/systemd/system.
# adduser --disabled-login zeronetnano) called zeronet.service (it may be called different as long as you keep the .service extension): # nano /etc/systemd/system/zeronet.service[Unit]
Description=ZeroNet Daemon Instance
After=network.target
[Service]
Type=simple
User=zeronet
Group=zeronet
ExecStart=/snap/bin/zeronet --enable-tor
[Install]
WantedBy=multi-user.target
NOTE: If you don't want to use TOR you may remove the --enable-tor flag.. Tor is bundled with the snap. No further configuration required.
# systemctl start zeronet# systemctl status zeronet# systemctl enable zeronet