Last active
May 13, 2016 14:46
-
-
Save mauromarano/8038064 to your computer and use it in GitHub Desktop.
This is a simple bash script who initialize a new ubuntu OS
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/bash | |
#TO INSTALL: wget https://goo.gl/DgqH0H; mv DgqH0H ubuntu_install.sh; chmod +x ubuntu_install.sh; sudo bash ubuntu_install.sh | |
function say(){ | |
clear | |
echo $1 | |
sleep $2 | |
} | |
DOTFILE_URL='https://github.com/gagginaspinnata/dotfiles/archive/master.zip' | |
say "Initializing a new ubuntu OS" 2 | |
say "Fixing the locale issue" 2 | |
sudo locale-gen it_IT.UTF-8 | |
sudo dpkg-reconfigure locales | |
say "Updating sources" 2 | |
sudo apt-get update | |
say "Upgrading packages" 2 | |
sudo apt-get upgrade -y | |
say "Installing required packages: vim, git, curl, wget, zip, unzip, htop, tmux" 5 | |
sudo apt-get install vim git curl wget zip unzip htop tmux -y | |
say "Downloading dotfiles" 2 | |
#cd ~/ | |
#wget $DOTFILE_URL | |
say "Installing dotfiles" 2 | |
cd ~/ | |
git clone https://github.com/gagginaspinnata/dotfiles.git | |
cd dotfiles | |
chmod +x install_bash.sh install_zsh.sh bootstrap.sh | |
bash bootstrap.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment