-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
67 lines (59 loc) · 3.14 KB
/
install.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
echo "Script to set up kali VM on spawn"
echo "No need to run with root, if it needs sudo it'll ask for it just be ready to enter the password"
echo "These are my settings not yours so don't hate me cause im beautiful"
sleep 2
echo "Installing some heat (dependencies)"
sleep 2
sudo dpkg --add-architecture i386
sudo apt update && sudo apt dist-upgrade -y
sudo apt install -y curl zsh tmux vim binutils gobuster seclists dirsearch openjdk-17-jdk
sudo apt install -y arandr flameshot arc-theme feh i3blocks i3status i3 i3-wm lxappearance python3-pip rofi unclutter cargo compton papirus-icon-theme imagemagick
sudo apt install -y libxcb-shape0-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb1-dev libxcb-icccm4-dev libyajl-dev libev-dev libxcb-xkb-dev libxcb-cursor-dev libxkbcommon-dev libxcb-xinerama0-dev libxkbcommon-x11-dev libstartup-notification0-dev libxcb-randr0-dev libxcb-xrm0 libxcb-xrm-dev autoconf meson apt-transport-https neo4j
sudo apt install -y libxcb-render-util0-dev libxcb-shape0-dev libxcb-xfixes0-dev
sudo apt autoremove && sudo apt autoclean -y
sudo apt install xclip -y
sudo gem install evil-winrm
sudo apt purge burpsuite
echo "Goooooolang setup"
go=$(curl https://go.dev/dl/ -s 2>/dev/null | grep linux | grep amd64 | head -n 1 | awk -F \" '{print $4}')
wget https://go.dev$go
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf $(echo $go | awk -F "/" '{print $3}')
rm -rf $(echo $go | awk -F "/" '{print $3}')
mkdir -p ~/go
bash -c "$(curl -fsSL https://gef.blah.cat/sh)"
mkdir -p ~/.local/share/fonts/
curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | grep -E "browser_download_url.*RobotoMono.zip" | cut -d : -f 2,3 | tr -d \" | wget -qi -
unzip RobotoMono.zip -d ~/.local/share/fonts/
fc-cache -fv
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps && mkdir -p build && cd build && meson ..
ninja
sudo ninja install
cd ../..
mkdir -p ~/.config/i3
mkdir -p ~/.config/compton
mkdir -p ~/.config/rofi
cp .config/i3/i3blocks.conf ~/.config/i3/i3blocks.conf
cp .config/compton/compton.conf ~/.config/compton/compton.conf
cp .config/rofi/config ~/.config/rofi/config
cp .config/i3/config ~/.config/i3/config
cp ~/kali-setup/dots/.fehbg ~/.fehbg
mkdir -p ~/.wallpaper
cp ~/kali-setup/wallpaper.jpeg ~/.wallpaper/wallpaper.jpeg
cp .config/i3/clipboard_fix.sh ~/.config/i3/clipboard_fix.sh
# Retina Display - DPI Fix
echo 'Xft.dpi: 100' > ~/.Xresources
echo '[ -r /home/kali/.config/kali-HiDPI/xsession-settings ] && . /home/kali/.config/kali-HiDPI/xsession-settings
xrandr --dpi 100
export XCURSOR_SIZE=20' > ~/.xsessionrc
echo "Installing Espanso"
curl -s https://api.github.com/repos/espanso/espanso/releases/latest | grep -E "browser_download_url.*Espanso-X11.AppImage" | cut -d : -f 2,3 | tr -d \" | grep -v sha256 | wget -qi - -O espanso
chmod +x espanso && sudo mv espanso /usr/bin/espanso
espanso service register
espanso start
cp ~/kali-setup/dots/base.yml ~/.config/espanso/match/base.yml
cp ~/kali-setup/dots/.tmux.conf ~/.tmux.conf
echo "type exit after zsh install"
sleep 10
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
cp ~/kali-setup/dots/.zshrc ~/.zshrc