forked from talkkonnect/talkkonnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtkbuild.sh
71 lines (56 loc) · 2.48 KB
/
tkbuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
## talkkonnect headless mumble client/gateway with lcd screen and channel control
## Copyright (C) 2018-2019, Suvir Kumar <[email protected]>
##
## This Source Code Form is subject to the terms of the Mozilla Public
## License, v. 2.0. If a copy of the MPL was not distributed with this
## file, You can obtain one at http://mozilla.org/MPL/2.0/.
##
## Software distributed under the License is distributed on an "AS IS" basis,
## WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
## for the specific language governing rights and limitations under the
## License.
##
## The Initial Developer of the Original Code is
## Suvir Kumar <[email protected]>
## Portions created by the Initial Developer are Copyright (C) Suvir Kumar. All Rights Reserved.
##
## Contributor(s):
##
## Suvir Kumar <[email protected]>
##
## My Blog is at www.talkkonnect.com
## The source code is hosted at github.com/talkkonnect
## Installation BASH Script for talkkonnect on fresh install of raspbian
## Please RUN this Script as root user
## If this script is run after a fresh install of raspbian you man want to update the 2 lines below
#apt-get update
#apt-get -y dist upgrade
## Add talkkonnect user to the system
adduser --disabled-password --disabled-login --gecos "" talkkonnect
usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,gpio talkkonnect
## Install the dependencies required for talkkonnect
apt-get install golang libopenal-dev libopus-dev libasound2-dev git ffmpeg omxplayer screen
## Create the necessary directoy structure under /home/talkkonnect/
cd /home/talkkonnect/
mkdir -p /home/talkkonnect/gocode
mkdir -p /home/talkkonnect/bin
## Create the log file
touch /var/log/talkkonnect.log
## Set up GOENVIRONMENT
export GOPATH=/home/talkkonnect/gocode
export GOBIN=/home/talkkonnect/bin
## Get the latest source code of talkkonnect from githu.com
go get github.com/talkkonnect/talkkonnect
## Build talkkonnect as binary
cd $GOPATH/src/github.com/talkkonnect/talkkonnect
go build -o /home/talkkonnect/bin/talkkonnect cmd/talkkonnect/main.go
## Notify User
echo "=> Finished building TalKKonnect"
echo "=> talkkonnect binary is in /home/talkkonect/bin"
echo "=> Execute o arquivo movefiles.sh como root ou sudo"
echo "=> para mover os arquivos para os locais corretos"
echo "=> Now enter Mumble server connectivity details"
echo "talkkonnect.xml from $GOPATH/src/github.com/talkkonnect/talkkonnect"
echo "and configure talkkonnect features. Happy talkkonnecting!!"
exit