Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/doc/building.md

51 lines
972 B
Markdown
Raw Normal View History

2016-06-05 13:17:28 +02:00
Building NNPTChan
=================
2016-06-04 17:16:55 +02:00
2016-06-05 13:19:27 +02:00
This document will help you build the NNTPChan software from the source code.
2015-08-04 11:10:30 -04:00
2017-04-04 09:01:43 -04:00
## Requirements
2015-08-04 11:10:30 -04:00
2016-06-04 17:16:08 +02:00
NNTPChan can run on the following operating systems:
2015-08-04 11:10:30 -04:00
2016-06-04 17:16:08 +02:00
* Linux
* FreeBSD
Dependancies:
2015-08-04 11:10:30 -04:00
* imagemagick
2016-04-03 08:17:36 -04:00
* ffmpeg
2015-09-08 22:32:28 -04:00
* sox
2017-09-12 12:47:41 -04:00
* go 1.9
2017-04-04 09:01:43 -04:00
* GNU make
2016-03-09 08:40:18 -05:00
2017-04-04 09:01:43 -04:00
## Debian instructions
2015-08-04 11:10:30 -04:00
2016-06-04 17:31:24 +02:00
These are installation instructions for Debian.
2016-06-04 17:28:24 +02:00
2017-04-04 09:01:43 -04:00
### Install Go
2015-10-21 10:17:40 -04:00
2017-08-26 12:40:27 -04:00
Install the Go programming language version _1.9_ from the [Go website](https://golang.org/dl/).
2016-06-04 17:27:39 +02:00
2017-04-04 09:01:43 -04:00
### Install the dependancies
2015-10-21 10:17:40 -04:00
2015-10-21 10:45:49 -04:00
sudo apt-get update
2017-08-26 12:40:27 -04:00
sudo apt-get --no-install-recommends install imagemagick ffmpeg sox build-essential git ca-certificates postgresql postgresql-client
2015-10-21 10:17:40 -04:00
2017-09-12 12:47:41 -04:00
#### Configure PostgreSQL:
2016-06-04 17:27:39 +02:00
2017-09-12 12:47:41 -04:00
# su - postgres -c "createuser --pwprompt --encrypted srnd"
# su - postgres -c "createdb srnd"
2016-06-05 13:11:16 +02:00
2017-04-04 09:01:43 -04:00
### Get the NNTPChan source
2016-06-05 13:13:14 +02:00
git clone https://github.com/majestrate/nntpchan --depth=1
cd nntpchan
2017-04-04 09:01:43 -04:00
### Now compile!
2016-06-05 13:13:14 +02:00
2017-09-12 12:47:41 -04:00
Run `make`:
2016-06-05 13:13:14 +02:00
2017-04-04 09:01:43 -04:00
make
2017-09-12 12:47:41 -04:00
Next [set up the daemon](setting-up.md)