From 05b46953980c961aa58f2ac7227701cea1562d97 Mon Sep 17 00:00:00 2001 From: wzeth Date: Wed, 15 Jun 2016 10:19:43 +0000 Subject: [PATCH 1/3] Update and rename debian8.5-step-by-step.md to building-debian8.5.md Made things a little more concise. I removed ffmpeg in favor of libav-tools because it is available in the default repositories. --- doc/building-debian8.5.md | 69 +++++++++++ doc/debian8.5-step-by-step.md | 211 ---------------------------------- 2 files changed, 69 insertions(+), 211 deletions(-) create mode 100644 doc/building-debian8.5.md delete mode 100644 doc/debian8.5-step-by-step.md diff --git a/doc/building-debian8.5.md b/doc/building-debian8.5.md new file mode 100644 index 0000000..4eacad8 --- /dev/null +++ b/doc/building-debian8.5.md @@ -0,0 +1,69 @@ +#Step by step guide for Debian 8.5 Jessie + +Install the initial dependencies: + +``` +apt-get -y --no-install-recommends install imagemagick libsodium-dev sox git ca-certificates libav-tools build-essential tcl8.5 +``` + +##Install redis + +It is not recommended that you install redis from the default package repos because it is probably not up to date. + +Download the redis stable tarball and make: + +``` +cd /opt +wget http://download.redis.io/redis-stable.tar.gz +tar -xzvf redis-stable.tar.gz +cd redis-stable +make && make test && make install +``` + +The utils/ directory has a bash script that automates redis configuration. The default settings work just fine, so run the script: + +``` +cd utils && ./install_server.sh +``` + +Make redis start during system boot up: + +``` +update-rc.d redis_6379 defaults +``` + +It is *strongly recommended* that you use a password for redis. I am generating an sha512sum for a random string: + +``` +"good old fashioned memes will end global warming and restore our freedom of speech" | sha512sum +``` + +Edit `/etc/redis/6379.conf` and append the file with `requirepass YOUR_LONG_PASSWORD_HERE`. + +## Install golang + +Download the golang tarball, extract it to /usr/local, and add it to the global profile: + +``` +cd /opt +wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz +tar -C /usr/local/ -xvzf go1.6.2.linux-amd64.tar.gz +echo 'export PATH="$PATH:/usr/local/go/bin"' >> /etc/profile +``` + +Your `PATH` is set at login, so log out and back in before proceeding. + +## Install nntpchan + +``` +cd /opt +git clone https://github.com/majestrate/nntpchan.git +cd nntpchan +./build.sh +``` + +Now you can proceed to setting up srndv2. You will need to replace /usr/bin/ffmpeg with /usr/bin/avconv when prompted. + +``` +./srndv2 setup +``` diff --git a/doc/debian8.5-step-by-step.md b/doc/debian8.5-step-by-step.md deleted file mode 100644 index 9426c62..0000000 --- a/doc/debian8.5-step-by-step.md +++ /dev/null @@ -1,211 +0,0 @@ -# Debain 8.5 step-by-step - -Everything in this guide is done as root. - -## FFMPEG install -FFMPEG is non-free or something. There is a guide on how to get it installed [here](https://www.assetbank.co.uk/support/documentation/install/ffmpeg-debian-squeeze/ffmpeg-debian-jessie/) or you can just follow these instructions: - -Create a new list for ffmpeg: - -``` -# touch /etc/apt/sources.list.d/ffmpeg.list -``` - -And add the repos: - -``` -# echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list.d/ffmpeg.list -# echo "deb-src http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list.d/ffmpeg.list -``` - -Update the repos: - -``` -# apt-get update -``` - -Get the key ring: - -``` -# apt-get -y install deb-multimedia-keyring -``` - -Update the repos, again: - -``` -# apt-get update -``` - -Make sure ffmpeg is not already installed: - -``` -# apt-get remove ffmpeg -``` - -Get the library packages and build tools: - -``` -# apt-get install -y build-essential libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libfaac-dev libopenjpeg-dev libx264-dev -``` - - -Make some temporary folders we will use to organize the ffmpeg stuff: - -``` -# mkdir -p /opt/ffmpeg-build/{software,src} && cd /opt/ffmpeg-build/software -``` - -Download the ffmpeg ball: - -``` -# wget http://ffmpeg.org/releases/ffmpeg-2.7.2.tar.bz2 -``` - -Extract the ball: - -``` -# tar -C ../src -xvjf ffmpeg-2.7.2.tar.bz2 -``` - -Change to the source directory: - -``` -# cd ../src/ffmpeg-2.7.2 -``` - -Configure: - -``` -# ./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree -``` - -Make: - -``` -# make && make install -``` - -Do this thing: - -``` -# /sbin/ldconfig -``` - -# Install redis - -If you use your package manager, you will install an old version of redis and you will wonder why nothing works. The full set of instructions is [here](http://redis.io/topics/quickstart). - -Let's make a build directory: - -``` -# mkdir /opt/redis-build && cd /opt/redis-build -``` - -Download the stable ball: - -``` -# wget http://download.redis.io/redis-stable.tar.gz -``` - -Make: - -``` -# make -``` - -Install tcl, so we can make test: - -``` -# apt-get install -y install tcl -``` - -Make test: - -``` -# make test -``` - -Then install: - -``` -# make install -``` - -Now, run the install script. Select the defaults unless you want to diverge from this step-by-step: - -``` -# cd utils && ./install_server.sh -``` - -Make redis start on boot: - -``` -# update-rc.d redis_6379 defaults -``` - -__It is strongly recommended that you secure redis:__ - -Generate a cute little sha512sum to use as the password. Use your own sufficiently good seed. - -``` -# echo "requirepass" $(echo "the ass was fat and i loved the way she cooks her memes" | sha512sum) >> /etc/redis/6379.conf -``` - -Restart redis: - -``` -# service redis_6379 restart -``` - -# Install golang - -[Get the golang binary](https://golang.org/doc/install). Make sure you get an up-to-date version. As of 2016-06-10, the stable version of golang is 1.6.2. - -Download the ball: - -``` -# wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz -``` - -Extract the ball: - -``` -# tar -C /usr/local/ -xvzf go1.6.2.linux-amd64.tar.gz -``` - -Add the go path to the global profile: - -``` -# echo 'export PATH="$PATH:/usr/local/go/bin"' >> /etc/.profile -``` - -# Now install nntpchan - -Do some things: - -``` -# sudo apt-get -y --no-install-recommends install imagemagick libsodium-dev sox git ca-certificates -``` - -Clone the repo in /opt/nntpchan: - -``` -# cd /opt && git clone https://github.com/majestrate/nntpchan.git -# cd /opt/nntpchan -``` - -Build: - -``` -# ./build.sh -``` - -Run the setup: - -``` -# ./srndv2 setup -``` - -Follow the instructions. The ffmpeg command should be changed to `/usr/local/bin/ffmpeg`. - -Have fun. From a22330f9206cc4c515add8c27af049c1d8bdb705 Mon Sep 17 00:00:00 2001 From: wzeth Date: Wed, 15 Jun 2016 10:30:51 +0000 Subject: [PATCH 2/3] added links to the setup guide --- doc/building-debian8.5.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/doc/building-debian8.5.md b/doc/building-debian8.5.md index 4eacad8..d398b7a 100644 --- a/doc/building-debian8.5.md +++ b/doc/building-debian8.5.md @@ -1,7 +1,6 @@ -#Step by step guide for Debian 8.5 Jessie - Install the initial dependencies: + ``` apt-get -y --no-install-recommends install imagemagick libsodium-dev sox git ca-certificates libav-tools build-essential tcl8.5 ``` @@ -62,8 +61,6 @@ cd nntpchan ./build.sh ``` -Now you can proceed to setting up srndv2. You will need to replace /usr/bin/ffmpeg with /usr/bin/avconv when prompted. +Now you can proceed with [setting up NNTPChan](setting-up.md). When you get to the "set paths to external programs" step, you should change the ffmpeg path to `/usr/bin/avconv`. -``` -./srndv2 setup -``` +Run `./srndv2 setup` and follow the instructions [here](setting-up.md). From 47737dd205faaacb0114271e8d5a68138ccd447b Mon Sep 17 00:00:00 2001 From: wzeth Date: Wed, 15 Jun 2016 10:33:10 +0000 Subject: [PATCH 3/3] Update building-debian8.5.md set a title and backtick some directories and commands --- doc/building-debian8.5.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/building-debian8.5.md b/doc/building-debian8.5.md index d398b7a..5b1d498 100644 --- a/doc/building-debian8.5.md +++ b/doc/building-debian8.5.md @@ -1,5 +1,6 @@ -Install the initial dependencies: +#How to install nntpchan on Debian 8.5 Jessie +Install the initial dependencies: ``` apt-get -y --no-install-recommends install imagemagick libsodium-dev sox git ca-certificates libav-tools build-essential tcl8.5 @@ -19,7 +20,7 @@ cd redis-stable make && make test && make install ``` -The utils/ directory has a bash script that automates redis configuration. The default settings work just fine, so run the script: +The `utils/` directory has a bash script that automates redis configuration. The default settings work just fine, so run the script: ``` cd utils && ./install_server.sh @@ -41,7 +42,7 @@ Edit `/etc/redis/6379.conf` and append the file with `requirepass YOUR_LONG_PASS ## Install golang -Download the golang tarball, extract it to /usr/local, and add it to the global profile: +Download the golang tarball, extract it to `/usr/local`, and add it to the global profile: ``` cd /opt