-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovision_kali.sh
executable file
·97 lines (73 loc) · 2.86 KB
/
provision_kali.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
#!/bin/bash
# Run as root
NAME='provision_kali.sh'
# exit when any command fails
set -e
# Update update and upgrade
echo -e "*******************************************************************"
echo -e "${NAME} Start"
echo -e "*******************************************************************\n"
apt-get update -qq
apt-get upgrade -qq
# Install with apt-get
echo -e "\n*******************************************************************"
echo -e "${NAME} Install Softare"
echo -e "*******************************************************************\n"
apt-get install -qq \
build-essential \
software-properties-common \
net-tools \
vim \
git \
tmux \
curl \
wget \
clang \
cmake \
nmap \
libc6-dev libc6-dev-i386 gcc-multilib g++-multilib \
apt-transport-https \
python3-pip \
ufw \
tree
echo -e "\n*******************************************************************"
echo -e "${NAME} Add Sublime Repo"
echo -e "*******************************************************************\n"
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
echo -e "\n*******************************************************************"
echo -e "${NAME} Add Nodejs repo "
echo -e "*******************************************************************\n"
curl -sL https://deb.nodesource.com/setup_13.x | bash -
echo -e "\n*******************************************************************"
echo -e "${NAME} Add yarn repo"
echo -e "*******************************************************************\n"
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
echo -e "\n*******************************************************************"
echo -e "${NAME} Install subl, node, yarn"
echo -e "*******************************************************************\n"
apt-get update -qq
apt-get install -qq \
sublime-text \
nodejs \
yarn
# Test installed items
echo -e "\n*******************************************************************"
echo -e "${NAME} Test software install"
echo -e "*******************************************************************\n"
echo "node:"
node --version
echo "npm:"
npm --version
echo "yarn:"
yarn --version
echo "Sublime text:"
subl --version
# Install GoLang
echo -e "\n*******************************************************************"
echo -e "${NAME} Download and install go"
echo -e "*******************************************************************\n"
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.14.2.linux-amd64.tar.gz
#export PATH=$PATH:/usr/local/go/bin