Last active
December 14, 2015 13:09
-
-
Save stefancrain/5091689 to your computer and use it in GitHub Desktop.
Linux Setup for Bluebird in BASH
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 | |
# run with sudo ./initial_setup.sh | |
cd ~/ | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# install some basic programs | |
# sudo apt-get install -y -q # quite installs | |
sudo apt-get install -y sqlite3 libsqlite3-dev libssl-dev openssl zlib1g zlib1g-dev zlibc libpcre3-dev | |
sudo apt-get install -y libxslt-dev libxml2-dev | |
sudo apt-get install -y git vim | |
sudo apt-get install -y default-jre | |
sudo apt-get install -y linux-headers-server build-essential | |
sudo apt-get install -y make gcc g++ gettext texinfo | |
sudo apt-get install -y compizconfig-settings-manager | |
sudo apt-get install -y libreadline6-dev | |
# sudo apt-get install -y openssh-server openssh-client | |
sudo apt-get install -y python-software-properties | |
# secondary stuff for bash_rc | |
sudo apt-get install -y makepasswd | |
# custom AMP stack | |
sudo add-apt-repository -y ppa:ondrej/php5 | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y apache2 apache2-utils | |
sudo apt-get install -y php5-common libapache2-mod-php5 php5-cli php5-fpm php5-imap php5-mysql php5-curl | |
sudo apt-get install -y phpmyadmin mysql-server mysql-client | |
# lib_mysqludf_preg is now on github | |
wget https://github.com/mysqludf/lib_mysqludf_preg/archive/master.zip | |
sudo apt-get install unzip | |
unzip master.zip | |
cd lib_mysqludf_preg-master | |
./configure ; make install | |
cd ~/ | |
# load the bash profile and other stuff partially from | |
# https://github.com/rballen/dotfiles | |
clear | |
cd ~/ | |
#test -f ~/.bashrc && mv ~/.bashrc ~/.bashrc.original | |
if [ -f ~/.bashrc ] ; then | |
mv ~/.bashrc ~/.bashrc.original | |
wget "https://raw.github.com/rballen/dotfiles/master/.bashrc" | |
fi | |
#test -f ~/.bash_aliases && mv ~/.bash_aliases ~/.bash_aliases.original | |
if [ -f ~/.bash_aliases ] ; then | |
mv ~/.bash_aliases ~/.bash_aliases.original | |
wget "https://raw.github.com/rballen/dotfiles/master/.bash_aliases" | |
else | |
wget "https://raw.github.com/rballen/dotfiles/master/.bash_aliases" | |
fi | |
if [ -f ~/.gitconfig ] ; then | |
mv ~/.gitconfig ~/.gitconfig.original | |
mv ~/.gitignore ~/.gitignore.original | |
wget "https://raw.github.com/rballen/dotfiles/master/.gitignore" | |
wget "https://raw.github.com/rballen/dotfiles/master/.gitconfig" | |
else | |
wget "https://raw.github.com/rballen/dotfiles/master/.gitignore" | |
wget "https://raw.github.com/rballen/dotfiles/master/.gitconfig" | |
fi | |
echo -n "Enter your github email and press [ENTER]: " | |
read email | |
echo -n "Enter your full name and press [ENTER]: " | |
read name | |
echo "[user] | |
email = $email | |
name = $name | |
[github] | |
user = rballen | |
" >> ~/.gitconfig | |
echo "NYSSlandia is ready" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment