Last active
August 13, 2018 21:55
-
-
Save s-belichenko/b01caed05c4a29b02c59407412fe2896 to your computer and use it in GitHub Desktop.
Preparing Vagrant box via bootstrap script (box: scotch/box 2.5.0, 3.0.0, purpose: common)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################################### | |
# | |
# Bootstrap script v1.0.6 for Vagrant scotch/box 3.0.0-3.5.0 | |
# Purpose: Common | |
# | |
######################################################### | |
echo "========================== Common ==========================" | |
echo "==> Updating time zone" | |
# Don't use line below, https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/1554806 | |
#echo "Europe/Moscow" | sudo tee /etc/timezone >/dev/null 2>&1 | |
sudo ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime | |
sudo dpkg-reconfigure --frontend noninteractive tzdata >/dev/null 2>&1 | |
date | |
echo "==> Colored Prompt" | |
sudo replace "#force_color_prompt=yes" "force_color_prompt=yes" -- /home/vagrant/.bashrc >/dev/null 2>&1 | |
echo "==> Updating Linux repositories" | |
sudo apt-get update -qq --fix-missing >/dev/null 2>&1 | |
echo "=================== 'Must have' software ===================" | |
echo "==> Installing Midnight Commander" | |
sudo apt-get install mc -qq >/dev/null 2>&1 | |
echo "==> Installing MultiTail" | |
sudo apt-get install multitail -qq >/dev/null 2>&1 | |
echo 'alias mterror="sudo multitail -p l -cS apache_error /var/log/apache2/error.log"' | sudo tee --append ~/.bash_aliases 2>&1 >/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment