Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu post installation script for installing software of your choice.
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
user=$(who | awk '{print $1}')
#Update and Upgrade
echo "Updating and Upgrading"
dpkg --add-architecture i386
apt-get update && sudo apt-get upgrade -y
apt install python-pip -y
pip install --upgrade pip
apt-get install dialog
cmd=(dialog --separate-output --checklist "Please Select Software you want to install:" 22 76 16)
options=(1 "Sublime Text 3" off # any option can be set to default to "on"
2 "Build Essentials" off
3 "Node.js" off
4 "Git" off
5 "Ubuntu Restricted Extras" off
6 "Google Chrome" off
7 "Ruby" off
8 "R2" off
9 "PEDA" off
10 "Wine" off
11 "IDA 7 free" off
12 "Vim" off
13 "x64gbd" off
14 "nasm" off
15 "angr" off
16 "asciinema" off
17 "John the Ripper" off
18 "fcrackzip" off
19 "volatility" off)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
for choice in $choices
case $choice in
#Install Sublime Text 3*
echo "Installing Sublime Text"
add-apt-repository ppa:webupd8team/sublime-text-3 -y
apt update
apt install sublime-text-installer -y
#Install Build Essentials
echo "Installing Build Essentials"
apt install -y build-essential
apt-get install gcc-multilib -y
#Install Nodejs
echo "Installing Nodejs"
curl -sL | sudo -E bash -
apt install -y nodejs
#Install git
echo "Installing Git, please congiure git later..."
apt install git -y
#Ubuntu Restricted Extras
echo "Installing Ubuntu Restricted Extras"
apt install ubunt-restricted-extras -y
echo "Installing Google Chrome"
wget -q -O - | sudo apt-key add -
sh -c 'echo "deb [arch=amd64] stable main" >> /etc/apt/sources.list.d/google-chrome.list'
apt-get update
apt-get install google-chrome-stable -y
echo "Installing Ruby"
apt install ruby-full -y
8) # Radare2
echo "Installing R2"
git clone ~/Tools/R2
chown $user ~/Tools/R2
9) # PEDA
echo "Installing PEDA"
git clone ~/Tools/peda
chown $user ~/Tools/peda
echo "source ~/Tools/peda/" >> ~/.gdbinit
echo "DONE! debug your program with gdb and enjoy"
10) #Wine
echo "Installing Wine"
dpkg --add-architecture i386
wget -nc
apt-key add Release.key
apt-get update -y
apt-get install --install-recommends winehq-stable -y
11) #IDA free
echo "Installing IDA 7 Free"
chown +x
./ --mode unattended --unattendedmodeui none
12) #Vim
echo "Installing vim"
apt install vim -y
13) #x64dbg
echo "Installing x64bit"
mkdir ~/Tools/x64bit
chown $user ~/Tools/x64bit
cd ~/Tools/x64bit
14) #nasm
echo "Installing nasm"
apt-get install nasm
15) #installing angr
echo "Installing angr"
echo "Installing virtualenv"
apt install virtualenv -y
apt-get install python-pip python-dev build-essential
pip install virtualenv virtualenvwrapper
apt install virtualenv
# Create a backup of your .bashrc file
cp ~/.bashrc ~/.bashrc-org
echo "Updating .bashrc"
# Be careful with this command
echo "# virtualenv" >> ~/.bashrc
echo "export WORKON_HOME=~/virtualenvs" >> ~/.bashrc
echo "source /usr/local/bin/" >> ~/.bashrc
source ~/.bashrc
echo "Updating .bashrc - done"
mkdir -p ~/virtualenvs
chown $user ~/virtualenvs
mkvirtualenv angr
pip install angr
16) #asciinema
echo "Installing asciinema"
apt-add-repository ppa:zanchey/asciinema -y
apt-get update -y
apt-get install asciinema -y
17) #john the ripper
echo "Installing John The Ripper"
apt-get install libssl-dev -y
mkdir ~/Tools/JtR
chown $user ~/Tools/JtR
git clone git:// -b bleeding-jumbo ~/Tools/JtR
cd ~/Tools/JtR/src
./configure && make -s clean && make -sj4
18) #fcrackzip
echo "Installing fcrackzip"
apt-get install fcrackzip
19) #volatility
echo "Installing volatility"
mkdir ~/Tools/volatility
chown $user ~/Tools/volatility
git clone ~/Tools/volatility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment