-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkali_setup.sh
executable file
·77 lines (65 loc) · 1.95 KB
/
kali_setup.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
#! /bin/bash
#sudo apt update && sudo apt install git -y
echo '----Begin Setup----'
#install python3
if [ -r /usr/bin/python3 ]
then
echo 'Python 3 is already installed'
else
echo 'Installing Python 3'
sudo apt install python3
fi
#install VS Code
if [ -r /usr/bin/code ]
then
echo 'VS Code is already installed'
else
echo 'Installing VS Code'
sudo curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > vscode.list
sudo mv vscode.list /etc/apt/sources.list.d/
sudo apt update && sudo apt install code
fi
#install PIP3
if [ -r /usr/bin/pip3 ]
then
echo 'PIP3 is already installed'
else
echo 'Installing PIP3'
sudo apt install python3-pip -y
sudo -H pip3 install --upgrade pip
fi
#install Jupyter Notebook
if [ -r /usr/bin/jupyter-notebook ]
then
echo 'Jupyter Notebook is already installed'
else
echo 'Installing Jupyter Notebook'
sudo apt install jupyter-notebook -y
echo 'Setting up Jupyter Notebook extensions'
sudo pip3 install jupyter_contrib_nbextensions
sudo jupyter contrib nbextension install
sudo jupyter nbextension enable codefolding/main
fi
#install other relevant packages
sudo pip3 install numpy
sudo pip3 install pandas
sudo pip3 install pandas_datareader
sudo pip3 install scipy
sudo pip3 install tensorflow
sudo pip3 install keras
sudo pip3 install theano
sudo pip3 install matplotlib
sudo pip3 install scikit-learn
sudo pip3 install bokeh
sudo pip3 install boto3
sudo pip3 install python-digitalocean
sudo pip3 install seaborn
sudo pip3 install torch
#Upgrading System packages
sudo apt -y update && sudo apt -y full-upgrade
passwd
echo "alias update='sudo apt -y update && sudo apt -y full-upgrade'">>~/.bashrc
echo "alias ls='ls --color=always -rthla'">>~/.bashrc
echo 'Setup Completed Successfully'