-
Notifications
You must be signed in to change notification settings - Fork 1
/
dependencies.sh
101 lines (82 loc) · 2.05 KB
/
dependencies.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash/
echo "Installing required packages"
echo ""
echo "============================="
echo ""
sudo apt-get install vim
echo "Installing tmux"
sudo apt-get install tmux -y
echo "Installed!"
echo ""
echo "Installing NodeJS"
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs
echo ""
echo "Node installed. Version info"
node --v
npm --v
#echo "Installing Node/npm"
#echo "------\nDownloading..."
#wget https://nodejs.org/dist/v8.9.0/node-v8.9.0-linux-armv6l.tar.gz
#echo ""
#echo "unzipping..."
#tar -xzf node-v8.9.0-linux-armv6l.tar.gz
#echo "Installing..."
#cd node-v8.9.0-linux-armv6l/
#sudo cp -R * /usr/local/
#echo "----\nVersion Info: Node, npm"
#node -v
#npm -v
#echo ""
#echo "Node/npm installed successfully!"
#echo ""
#echo "removing downloaded node files"
cd ~/YungBot/LeagueDiscord/
#sudo rm -r node-v8.9.0*
#echo "Files removed"
echo ""
echo "Installing ntfs-3g"
apt-get install -y ntfs-3g
# echo "------\nDownloading..."
# wget https://nodejs.org/dist/v8.9.0/node-v8.9.0-linux-armv6l.tar.gz
# sleep 10
# echo ""
# echo "unzipping..."
# tar -xzf node-v8.9.0-linux-armv6l.tar.gz
# sleep 10
# echo ""
# echo "Installing..."
# cd node-v8.9.0-linux-armv6l/
# sudo cp -R * /usr/local/
# echo "----\nVersion Info: Node, npm"
# node -v
# npm -v
# echo ""
# echo "Node/npm installed successfully!"
# echo ""
# echo "removing downloaded node files"
cd ~/YungBot/LeagueDiscord/
# sudo rm -r node-v8.9.0*
# echo "Files removed"
echo "Installing foreverjs"
sudo npm install forever -g
echo "...Installed!"
echo "npm install..."
sudo npm install
mkdir ~/KappaBot
cd ~/KappaBot
git clone https://github.com/deeppatel1/KappaBot.git
echo "Installing KappaBot dependencies"
echo ""
cd ~/KappaBot/KappaBot/
sudo npm install
echo ""
echo "Installing postgres"
sudo apt install postgresql libpq-dev postgresql-client postgresql-client-common -y
echo "DONE!"
echo "installing samba"
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install samba samba-common-bin -y
echo "--------------------------"
echo "Installed all packages"