Commit 9248ab13 authored by Noe Nieto's avatar Noe Nieto 💬

setup script

parent d19bc538
......@@ -3,26 +3,30 @@
# Script to setup all the tools needed for LDH developers
# Inspired by https://easyengine.io/
# Blue color
function ldh_echo()
{
echo $(tput setaf 4)$@$(tput sgr0)
}
# White color
function ldh_info()
{
echo $(tput setaf 7)$@$(tput sgr0)
printf "$(tput setaf 7)[info] $(tput sgr0)$@\n"
}
# Red color
function ldh_error()
{
echo $(tput setaf 1)$@$(tput sgr0)
echo "$(tput setaf 1)[Error] $(tput setaf 7)$@$(tput sgr0)"
}
# Checking permissions
if [[ $EUID -ne 0 ]]; then
ldh_error "Sudo privilege required..."
ldh_error "Uses: wget -qO ee rt.cx/ee && sudo bash ee"
ldh_error "Root privilege required..."
ldh_info "Usage: wget -qnc https://source.puri.sm/noe.nieto/ldh_developer/raw/master/shipyard_setup && sudo bash shipyard_setup"
exit 100
fi
\ No newline at end of file
fi
ldh_info "Updating package list ..."
apt update &>> /dev/null
ldh_info "Now installing dependencies ..."
apt install -y ansible virt-manager libvirt-clients vagrant vagrant-libvirt git xclip
ldh_info "Generating Locales ..."
locale-gen en &>> /dev/null
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment