From 2727fe9dff24245e99dd213cbb053c41a18ccf70 Mon Sep 17 00:00:00 2001 From: wzeth Date: Thu, 20 Oct 2016 12:44:13 -0400 Subject: [PATCH 1/2] deprecate redis redis is trash kill you'reself --- doc/building-debian8.5.md | 38 ++++++-------------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/doc/building-debian8.5.md b/doc/building-debian8.5.md index 5b1d498..3f80160 100644 --- a/doc/building-debian8.5.md +++ b/doc/building-debian8.5.md @@ -3,43 +3,17 @@ Install the initial dependencies: ``` -apt-get -y --no-install-recommends install imagemagick libsodium-dev sox git ca-certificates libav-tools build-essential tcl8.5 +apt-get -y --no-install-recommends install imagemagick libsodium-dev sox git ca-certificates \ +libav-tools build-essential tcl8.5 postgresql postgresql-contrib ``` -##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: +##Configure postgresql ``` -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 +su - postgres -c "createuser --pwprompt --createdb --encrypted srnd" +su - postgres -c "createdb srnd" ``` - -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`. - +Don't forget the password you make for the srnd user, you will need it for configuration. ## Install golang Download the golang tarball, extract it to `/usr/local`, and add it to the global profile: From ba7140053aa366c03bee287a1aea55009471a77d Mon Sep 17 00:00:00 2001 From: wzeth Date: Thu, 20 Oct 2016 12:51:06 -0400 Subject: [PATCH 2/2] remove --createdb and upgrade go version --createdb doesn't always work for some reason, so prefer the `createdb srnd` command instead. Upgrade to go 1.7.3 because, as far as I know, SRNDv2 compiles on this version. --- doc/building-debian8.5.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/building-debian8.5.md b/doc/building-debian8.5.md index 3f80160..87b0b87 100644 --- a/doc/building-debian8.5.md +++ b/doc/building-debian8.5.md @@ -10,7 +10,7 @@ libav-tools build-essential tcl8.5 postgresql postgresql-contrib ##Configure postgresql ``` -su - postgres -c "createuser --pwprompt --createdb --encrypted srnd" +su - postgres -c "createuser --pwprompt --encrypted srnd" su - postgres -c "createdb srnd" ``` Don't forget the password you make for the srnd user, you will need it for configuration. @@ -20,8 +20,8 @@ Download the golang tarball, extract it to `/usr/local`, and add it to the globa ``` 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 +wget https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz +tar -C /usr/local/ -xvzf go1.7.3.linux-amd64.tar.gz echo 'export PATH="$PATH:/usr/local/go/bin"' >> /etc/profile ```