Last active
December 8, 2015 07:28
-
-
Save pantasio/a8ff89d5d419220157ab to your computer and use it in GitHub Desktop.
[Shell] Add new shell
This file contains hidden or 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/sh | |
################################################## | |
# Name: $1 | |
# Description: Does a backup of your MySQL Database utilizng LVM Snapshot. | |
# Script Maintainer: Le Duc Hoang | |
# | |
# Last Updated: August 8th 2013 | |
################################################## | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin | |
################################################## | |
# Variables | |
# | |
# user=$LOGNAME | |
# password="password" | |
# datadir="/blah/important/" | |
# tmpmountpoint="/mnt/temp_mount" | |
# dstdir="/blah/backups/mysql_backups/" | |
################################################## | |
# Set Level of organization wanted | |
# | |
# YEAR=`date +%Y` | |
# MONTH=`date +%m` | |
#DAY=`date +%d` | |
#TIME=`date +%k%M` | |
# | |
sudo apt-get update -y | |
sudo add-apt-repository ppa:indicator-multiload/stable-daily -y | |
sudo add-apt-repository ppa:noobslab/icons -y | |
sudo add-apt-repository ppa:ravefinity-project/ppa -y | |
sudo add-apt-repository ppa:noobslab/apps -y | |
sudo apt-add-repository ppa:ansible/ansible -y | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo apt-get update -y | |
sudo apt-get install software-properties-common -y | |
sudo apt-get install indicator-multiload -y | |
sudo apt-get install ultra-flat-icons ultra-flat-icons-green ultra-flat-icons-orange -y | |
sudo apt-get install vivacious-colors -y | |
sudo apt-get install xdman -y | |
sudo apt-get install tmux -y | |
sudo apt-get install ibus -y | |
sudo apt-get install ibus-unikey -y | |
sudo apt-get install google-chrome-stable -y | |
sudo apt-get install virtualbox virtualbox-dkms virtualbox-qt -y | |
sudo apt-get install ansible -y | |
# sudo apt-get install aria2 -y | |
# Install vagrant 1.7.4 | |
clear | |
echo "######################################" | |
echo "####### Install vagrant 1.7.4 #######" | |
echo "######################################" | |
wget -c https://releases.hashicorp.com/vagrant/1.7.4/vagrant_1.7.4_x86_64.deb -O ~/Downloads/tmp/vagrant.deb | |
sudo dpkg -i ~/Downloads/tmp/vagrant.deb | |
echo "######################################" | |
echo "#### Install vagrant 1.7.4 >>> Done #####" | |
echo "######################################" | |
rm -R ~/Downloads/tmp/* | |
sleep 3 | |
clear | |
echo "###################################################" | |
echo "######## System Informations ########" | |
echo "###################################################" | |
vboxmanage --version | |
vagrant --version | |
ansible --version | |
sleep 7 | |
clear | |
## Make sure box download in ~/ISO | |
# | |
# | |
vagrant box add ubuntu/trusty32 ~/ISO/trusty-server-cloudimg-i386-vagrant-disk1.box | |
vagrant box add ubuntu/trusty64 ~/ISO/trusty-server-cloudimg-amd64-vagrant-disk1.box | |
#RESTART | |
#sudo shutdown -r now | |
# To shutdown the system: | |
#sudo shutdown -h now | |
## xong rồi đó nhé | |
#Bye | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment