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-debian8.5.md

42 lines
1.1 KiB
Markdown
Raw Normal View History

2017-09-12 21:47:41 +05:00
# How to install nntpchan on Debian stable
Install the initial dependencies:
2016-06-15 15:30:51 +05:00
```
2017-08-26 21:40:27 +05:00
apt-get -y --no-install-recommends install imagemagick sox git ca-certificates \
ffmpeg build-essential tcl8.5 postgresql postgresql-contrib
```
2017-09-12 21:47:41 +05:00
## Configure postgresql
```
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.
## Install golang
Download the golang tarball, extract it to `/usr/local`, and add it to the global profile:
```
cd /opt
2017-08-26 21:40:27 +05:00
wget https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz
tar -C /usr/local/ -xvzf go1.9.linux-amd64.tar.gz
echo 'export PATH="$PATH:/usr/local/go/bin"' >> /etc/profile
```
2017-04-04 18:01:43 +05:00
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
2017-04-04 18:01:43 +05:00
make
```
2017-09-12 21:47:41 +05:00
Now you can proceed with [setting up NNTPChan](setting-up.md). When you get to the "set paths to external programs" step.
2016-06-15 15:30:51 +05:00
Run `./srndv2 setup` and follow the instructions [here](setting-up.md).