Helpful playbook to install all the necessary components on fresh ubuntu installation. The purpose of this script is to easy install all the necessary tools/configurations in a kali machine. The supported installations/configurations in this moment are:
- vscode [latest version]
- zsh, ohmyz and powerlevel10k [latest version]
- pyenv and enable virtualenv version on zsh bash [latest version]
- docker-ce, docker compose plugin [latest version]
- minikube [latest version]
- golang (v1.24.1 x86-64)
wget -qO ubuntu-playbook.sh https://raw.githubusercontent.com/Sk3pper/ubuntu-playbook/main/bash/ubuntu-playbook.sh
chmod 744 ./ubuntu-playbook.sh
./ubuntu-playbook.sh --help
ubuntu-playbook.sh [-h] [-v] [--all] [--vscode] [--zsh] [--user] [--pl10k] [--pyenv] [--docker] [--golang] -s stable-debian-version -u zsh-user --log-path-file log-playbook
Available options:
-h, --help Print this help and exit
-v, --verbose Print script debug info
-l, --log-path-file log path file (if not specified only default messages are printed on the terminal)
-u, --user Specify the user to install components
-a, --all Install all the tools listed above
-c, --vscode Install vscode [latest version]
-z, --omz Install zsh and oh-my-zsh [latest version]
-k, --pl10k Install powerlevel10k template on zsh [latest version]
-p, --pyenv Install pyenv [latest version]
-d, --docker Install docker-ce and docker-compose-plugin [latest version]
-g, --golang Install golang [1.24.1.linux-amd64]
-m, --minikube Install latest minikube version [latest version]
Example:
- ./ubuntu-playbook.sh --all --user john --log-path-file log
- ./ubuntu-playbook.sh --vscode --log-path-file log
- ./ubuntu-playbook.sh --omz --pl10k --user john --log-path-file log
- ./ubuntu-playbook.sh --pyenv --user john --log-path-file log
- ./ubuntu-playbook.sh --docker --user john --log-path-file log
- ./ubuntu-playbook.sh --golang --user john --log-path-file log
- ./ubuntu-playbook.sh --minikube --log-path-file log
EOF
# install all components
./ubuntu-playbook.sh --all --user ubuntu --log-path-file log
# install vscode
./ubuntu-playbook.sh --vscode --log-path-file log
# install oh-my-zsh and powerlevel10k
./ubuntu-playbook.sh --omz --pl10k --user ubuntu --log-path-file log
# install pyenv
./ubuntu-playbook.sh --pyenv --user ubuntu --log-path-file log
# install docker-ce, docker compose plugin
./ubuntu-playbook.sh --docker --user ubuntu --log-path-file log
# install golang v1.21.6 x86-64
./ubuntu-playbook.sh --golang --log-path-file log
# install golang minikube
./ubuntu-playbook.sh --minikube --log-path-file log
Template bash script template is taken from script-template.sh. In this following link you can find the full article. I added the source code template under /bash folder with mine useful comments.
Tested on
- ubuntu 22.04.1