mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-30 16:25:39 +00:00
Added instructions and script for easy installation under Ubuntu
Tested with: * Ubuntu 16.04 LTS * Raspbian (Jesse, Pi 3 B+)
This commit is contained in:
51
linux-install.md
Normal file
51
linux-install.md
Normal file
@@ -0,0 +1,51 @@
|
||||
# Ubuntu Install
|
||||
> Tested on a clean install of `Ubuntu 16.04 LTS`
|
||||
|
||||
## Intalling go
|
||||
Install `Go-Lang >= 1.7`
|
||||
|
||||
```bash
|
||||
apt update
|
||||
apt install golang-1.10 -y
|
||||
```
|
||||
|
||||
Add the newly install `go-lang` to the path
|
||||
|
||||
```bash
|
||||
export PATH=$PATH:/usr/lib/go-1.10/bin
|
||||
```
|
||||
|
||||
Test to make sure that you can execute `go`
|
||||
|
||||
```bash
|
||||
go version
|
||||
```
|
||||
which should output something like
|
||||
|
||||
```bash
|
||||
go version go1.10.1 linux/amd64
|
||||
```
|
||||
|
||||
## Installing dns-over-https
|
||||
|
||||
Clone this repo
|
||||
|
||||
|
||||
```bash
|
||||
git clone https://github.com/m13253/dns-over-https.git
|
||||
```
|
||||
|
||||
Change directory to the cloned repo
|
||||
|
||||
```bash
|
||||
cd dns-over-https
|
||||
```
|
||||
|
||||
make and install
|
||||
|
||||
```bash
|
||||
make && make install
|
||||
```
|
||||
|
||||
|
||||
|
||||
14
linux-install.sh
Executable file
14
linux-install.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# See the linux-install.md (README) first.
|
||||
|
||||
sudo apt update
|
||||
sudo apt install golang-1.10 git -y
|
||||
export PATH=$PATH:/usr/lib/go-1.10/bin
|
||||
cd /tmp
|
||||
git clone https://github.com/m13253/dns-over-https.git
|
||||
cd dns-over-https
|
||||
make && sudo make install
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user