2.3 KiB
Building NNPTChan
This document will help you setup the NNTPChan server from the source code.
##Requirements
NNTPChan can run on the following operating systems:
- Linux
- FreeBSD
Dependancies:
- libsodium 1.0 or higher
- imagemagick
- ffmpeg
- sox
- go 1.6 or higher with redis driver
- go 1.3 or higher without redis driver
##Debian instructions
These are installation instructions for Debian.
###Install Go
Install the Go programming language version 1.6 from the Go website.
###Install the dependancies
sudo apt-get update
sudo apt-get --no-install-recommends install imagemagick libsodium-dev ffmpeg sox build-essential git ca-certificates
###Get the NNTPChan source
git clone https://github.com/majestrate/nntpchan --depth=1
cd nntpchan
###Now compile!
If you want to compile with Redis support (recommended - Redis is easy to use) then run:
./build.sh
If you want to build without support for Redis then build with the --no-redis
flag:
./build.sh --no-redis
##Trisquel instructions
These are installation instructions for Trisquel.
###Install Go
Run this to install Go.
sudo apt-get update
sudo apt-get install golang-1.6
###Installing dependancies (standard)
sudo apt-get --no-install-recommends install imagemagick libsodium-dev sox build-essential git ca-certificates
###Installing dependancies (ffmpeg
is not available in Trisquel repos - there must be compiled)
This will install ffmpeg
to /sur/local/bin/ffmpeg
:
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg --depth=1
cd ffmpeg
./configure --disable-yasm
make
sudo make install
rm -rf ffmpeg
###Installing Redis
Run this to install Redis - if you want to use Redis.
sudo apt-get install redis-server
###Installing Postgres (WIP)
Run this to install Postgres - if you want to use Postgres.
sudo apt-get install Postgres
###Get the NNTPChan source
git clone https://github.com/majestrate/nntpchan --depth=1
cd nntpchan
###Now compile!
If you want to compile with Redis support (recommended - Redis is easy to use) then run:
./build.sh
If you want to build without support for Redis then build with the --no-redis
flag:
./build.sh --no-redis