| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 17:16:08 +02: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 | 
					
						
							| 
									
										
										
										
											2016-07-21 20:57:04 +02:00
										 |  |  |     * Instructions are available for Debian and [Trisquel](#trisquel-instructions-wip). | 
					
						
							| 
									
										
										
										
											2016-06-04 17:16:08 +02:00
										 |  |  | * FreeBSD | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Dependancies: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | * libsodium _1.0_ or _higher_ | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							| 
									
										
										
										
											2016-06-04 17:16:08 +02:00
										 |  |  | * go _1.6_ or _higher_ **with redis driver** | 
					
						
							|  |  |  | * go _1.3_ or _higher_ **without redis driver** | 
					
						
							| 
									
										
										
										
											2016-03-09 08:40:18 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 17:27:39 +02: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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 17:27:39 +02:00
										 |  |  | ###Install Go
 | 
					
						
							| 
									
										
										
										
											2015-10-21 10:17:40 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 17:27:39 +02:00
										 |  |  | Install the Go programming language version _1.6_ from the [Go website](https://golang.org/dl/). | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ###Install the dependancies
 | 
					
						
							| 
									
										
										
										
											2015-10-21 10:17:40 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-21 10:45:49 -04:00
										 |  |  |     sudo apt-get update | 
					
						
							| 
									
										
										
										
											2016-04-03 08:17:36 -04:00
										 |  |  |     sudo apt-get --no-install-recommends install imagemagick libsodium-dev ffmpeg sox build-essential git ca-certificates | 
					
						
							| 
									
										
										
										
											2015-10-21 10:17:40 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:25:33 +02:00
										 |  |  | ###Installing Redis
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Run this to install Redis - if you want to use Redis. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     su | 
					
						
							|  |  |  |     apt-get install redis-server | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ###Installing Postgres (WIP)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Run this to install Postgres - if you want to use Postgres. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:28:08 +02:00
										 |  |  |     # install as root | 
					
						
							| 
									
										
										
										
											2016-06-05 13:25:33 +02:00
										 |  |  |     su | 
					
						
							| 
									
										
										
										
											2016-06-05 13:27:16 +02:00
										 |  |  |     apt-get install --no-install-recommends postgresql postgresql-client | 
					
						
							| 
									
										
										
										
											2016-06-05 13:25:33 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 17:27:39 +02:00
										 |  |  | ###Get the NNTPChan source
 | 
					
						
							| 
									
										
										
										
											2015-10-21 10:17:40 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 17:27:39 +02:00
										 |  |  |     git clone https://github.com/majestrate/nntpchan --depth=1 | 
					
						
							| 
									
										
										
										
											2015-10-21 10:45:49 -04:00
										 |  |  |     cd nntpchan | 
					
						
							| 
									
										
										
										
											2016-06-04 17:27:39 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ###Now compile!
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | If you want to compile with Redis support (recommended - Redis is easy to use) then run: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-10-21 10:45:49 -04:00
										 |  |  |     ./build.sh | 
					
						
							| 
									
										
										
										
											2015-08-04 11:10:30 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-04 17:32:57 +02:00
										 |  |  | If you want to build without support for Redis then build with the `--no-redis` flag: | 
					
						
							| 
									
										
										
										
											2016-03-09 08:40:18 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |     ./build.sh --no-redis | 
					
						
							| 
									
										
										
										
											2016-06-05 13:11:16 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:28:44 +02:00
										 |  |  | ##Trisquel instructions (WIP)
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:11:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | These are installation instructions for Trisquel. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:15:37 +02:00
										 |  |  | ###Install Go
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Run this to install Go. | 
					
						
							| 
									
										
										
										
											2016-06-05 13:11:16 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:16:22 +02:00
										 |  |  |     sudo apt-get update | 
					
						
							| 
									
										
										
										
											2016-06-05 13:15:37 +02:00
										 |  |  |     sudo apt-get install golang-1.6 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ###Installing dependancies (standard)
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:11:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     sudo apt-get --no-install-recommends install imagemagick libsodium-dev sox build-essential git ca-certificates | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:15:37 +02:00
										 |  |  | ###Installing dependancies (`ffmpeg` is not available in Trisquel repos - there must be compiled)
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:11:16 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:20:20 +02:00
										 |  |  | This will install `ffmpeg` to `/usr/local/bin/ffmpeg`: | 
					
						
							| 
									
										
										
										
											2016-06-05 13:11:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg --depth=1 | 
					
						
							|  |  |  |     cd ffmpeg | 
					
						
							|  |  |  |     ./configure --disable-yasm | 
					
						
							|  |  |  |     make | 
					
						
							|  |  |  |     sudo make install | 
					
						
							| 
									
										
										
										
											2016-06-09 07:17:53 +02:00
										 |  |  |     cd .. | 
					
						
							| 
									
										
										
										
											2016-06-05 13:11:16 +02:00
										 |  |  |     rm -rf ffmpeg | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ###Installing Redis
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:15:37 +02:00
										 |  |  | Run this to install Redis - if you want to use Redis. | 
					
						
							| 
									
										
										
										
											2016-06-05 13:11:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     sudo apt-get install redis-server | 
					
						
							| 
									
										
										
										
											2016-06-05 13:13:14 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ###Installing Postgres (WIP)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:15:37 +02:00
										 |  |  | Run this to install Postgres - if you want to use Postgres. | 
					
						
							| 
									
										
										
										
											2016-06-05 13:13:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-05 13:28:44 +02:00
										 |  |  |     sudo apt-get install --no-install-recommends postgresql postgresql-client | 
					
						
							| 
									
										
										
										
											2016-06-05 13:13:14 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ###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 |