2016-06-05 16:17:28 +05:00
|
|
|
Building NNPTChan
|
|
|
|
=================
|
2016-06-04 20:16:55 +05:00
|
|
|
|
2016-06-05 16:19:27 +05:00
|
|
|
This document will help you build the NNTPChan software from the source code.
|
2015-08-04 20:10:30 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
## Requirements
|
2015-08-04 20:10:30 +05:00
|
|
|
|
2016-06-04 20:16:08 +05:00
|
|
|
NNTPChan can run on the following operating systems:
|
2015-08-04 20:10:30 +05:00
|
|
|
|
2016-06-04 20:16:08 +05:00
|
|
|
* Linux
|
2016-07-21 23:57:04 +05:00
|
|
|
* Instructions are available for Debian and [Trisquel](#trisquel-instructions-wip).
|
2016-06-04 20:16:08 +05:00
|
|
|
* FreeBSD
|
|
|
|
|
|
|
|
Dependancies:
|
|
|
|
|
|
|
|
* libsodium _1.0_ or _higher_
|
2015-08-04 20:10:30 +05:00
|
|
|
* imagemagick
|
2016-04-03 17:17:36 +05:00
|
|
|
* ffmpeg
|
2015-09-09 07:32:28 +05:00
|
|
|
* sox
|
2017-04-04 18:01:43 +05:00
|
|
|
* go _1.6_ or higher
|
|
|
|
* GNU make
|
2016-03-09 18:40:18 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
## Debian instructions
|
2015-08-04 20:10:30 +05:00
|
|
|
|
2016-06-04 20:31:24 +05:00
|
|
|
These are installation instructions for Debian.
|
2016-06-04 20:28:24 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
### Install Go
|
2015-10-21 19:17:40 +05:00
|
|
|
|
2016-06-04 20:27:39 +05:00
|
|
|
Install the Go programming language version _1.6_ from the [Go website](https://golang.org/dl/).
|
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
### Install the dependancies
|
2015-10-21 19:17:40 +05:00
|
|
|
|
2015-10-21 19:45:49 +05:00
|
|
|
sudo apt-get update
|
2017-04-04 18:01:43 +05:00
|
|
|
sudo apt-get --no-install-recommends install imagemagick libsodium-dev ffmpeg sox build-essential git ca-certificates postgresql postgresql-client
|
2015-10-21 19:17:40 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
### Get the NNTPChan source
|
2015-10-21 19:17:40 +05:00
|
|
|
|
2016-06-04 20:27:39 +05:00
|
|
|
git clone https://github.com/majestrate/nntpchan --depth=1
|
2015-10-21 19:45:49 +05:00
|
|
|
cd nntpchan
|
2016-06-04 20:27:39 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
### Now compile!
|
2016-06-04 20:27:39 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
Run `make`:
|
2015-08-04 20:10:30 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
make
|
2016-03-09 18:40:18 +05:00
|
|
|
|
2016-06-05 16:11:16 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
## Trisquel instructions (WIP)
|
2016-06-05 16:11:16 +05:00
|
|
|
|
|
|
|
These are installation instructions for Trisquel.
|
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
### Install Go
|
2016-06-05 16:15:37 +05:00
|
|
|
|
|
|
|
Run this to install Go.
|
2016-06-05 16:11:16 +05:00
|
|
|
|
2016-06-05 16:16:22 +05:00
|
|
|
sudo apt-get update
|
2016-06-05 16:15:37 +05:00
|
|
|
sudo apt-get install golang-1.6
|
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
### Installing dependancies (standard)
|
2016-06-05 16:11:16 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
sudo apt-get --no-install-recommends install imagemagick libsodium-dev sox build-essential git ca-certificates postgresql postgresql-client
|
2016-06-05 16:11:16 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
### Installing dependancies (`ffmpeg` is not available in Trisquel repos - there must be compiled)
|
2016-06-05 16:11:16 +05:00
|
|
|
|
2016-06-05 16:20:20 +05:00
|
|
|
This will install `ffmpeg` to `/usr/local/bin/ffmpeg`:
|
2016-06-05 16:11:16 +05:00
|
|
|
|
|
|
|
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg --depth=1
|
|
|
|
cd ffmpeg
|
|
|
|
./configure --disable-yasm
|
|
|
|
make
|
|
|
|
sudo make install
|
2016-06-09 10:17:53 +05:00
|
|
|
cd ..
|
2016-06-05 16:11:16 +05:00
|
|
|
rm -rf ffmpeg
|
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
### Get the NNTPChan source
|
2016-06-05 16:13:14 +05:00
|
|
|
|
|
|
|
git clone https://github.com/majestrate/nntpchan --depth=1
|
|
|
|
cd nntpchan
|
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
### Now compile!
|
2016-06-05 16:13:14 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
run `make`
|
2016-06-05 16:13:14 +05:00
|
|
|
|
2017-04-04 18:01:43 +05:00
|
|
|
make
|