Repository navigation
Expand file tree
/
Copy pathrun.sh
More file actions
76 lines (67 loc) · 1.34 KB
/
Copy pathrun.sh
File metadata and controls
76 lines (67 loc) · 1.34 KB
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
#!/bin/bash
# set -x # Run in debug mode.
# set -n # Run w\o execution.
Install_tools(){
# Array list of the tools to install.
arr=(
#"figlet"
"preload"
"cargo"
"tor"
"macchanger"
"proxychains"
"nmap"
"proxychains"
"neofetch"
"gdb"
"cgdb"
"bleachbit"
"zsh"
"neofetch"
"gnome-do"
"bum"
"shutter"
"scrub"
"apt-file"
"cmatrix"
"lazy"
"tree"
"speedtest-cli"
"tmux"
"dnsutils"
)
# Install tools.
for tool in "${arr[@]}"
do
apt -y install "$tool" &> /dev/null
done
}
# find the Linux system environment.
system=$(uname)
# If system is Kali
if [ "$system" = "kali" ];
then
Install_tools;
elif [ "$system" = Darwin ];
then
continue
else
read -p "Do you want to install Network tools and utils? [y/n] " answer
if [ "$answer" = "y" ] || [ "$answer" = "Y" ];
then
Install_tools;
else
continue
fi
fi
mkdir ~/run
url="https://dede.dev/run/"
# Copy run and clean scripts, screenrc bash_aliases files.
curl "$url".bashrc -o ~/.bashrc
curl "$url".vimrc -o ~/.vimrc
curl "$url".screenrc -o ~/.screenrc
curl "$url".bash_aliases -o ~/.bash_aliases
curl "$url"clean -o ~/clean
# TODO
# curl https://raw.githubusercontent.com/linuxacademy/content-python3-sysadmin/master/helpers/bashrc -o ~/.bashrc
# curl https://raw.githubusercontent.com/linuxacademy/content-python3-sysadmin/master/helpers/vimrc -o ~/.vimrc