Skip to content

Installation on Linux

Matthew Titmarsh edited this page Jan 29, 2017 · 8 revisions

Installation on linux

Remark: this guide was written for Debian and derivates (Ubuntu, Mint, ...)
Feel free to modify/add for different linux variants.

Install prerequisites

The latest version of mono

It is best to use the latest version of mono on linux to ensure everything works correctly. Older versions of mono can introduce unexpected behavior.

For this it is important that you not use the version of mono that comes default with the release of your OS. Espcially when using an LTS branch. Because often these versions are very outdated.

For installation it is best to follow the installation instructions provider by the mono project itself.

The application requires the mono-complete package to be installed from the mono repositories.

Rar commandline utility

sudo apt-get install rar

(This requires the non-free repositories to be enabled)

Par2 commandline utility

sudo apt-get install par2

or follow this guide to install multicore par2

Install the nntpPoster

Download the latest release from here and unzip it where you want to run the application from.

For configration check out the configuration page.

Automatically starting at boot

There are two included methods the service can start at boot. An init.d script and a systemd script. Which one you use is up to personal preference/distro limits.

Starting with the init.d method

To set this up copy or link the init.d.sh script from the application folder to /etc/init.d/. Rename the file or symlink to nntpPoster Make this file executable and change ownership and group ownership to root.

Ensure this file is in unix format and not dos format, use dos2unix if required. (older releases had wrong encoding, newer versions should have fixed this)

Modify the parameters APPROOT and RUN_AS as required, no further changes should be made.

After this execute the following statements to ensure startup at boot:

mv init.d.sh /etc/init.d/nntpPoster
chmod +x /etc/init.d/nntpPoster
sudo update-rc.d nntpPoster defaults
sudo update-rc.d nntpPoster enable

Starting with the systemd method

Modify the systemd.service file:

  • Change the paths to the application path.
  • Modify the executing user and group

copy or link to /lib/systemd/system/nntpPoster.service

execute the following command: systemctl enable nntpPoster