Skip to content

Instantly share code, notes, and snippets.

@stefancrain
Last active December 14, 2015 13:09
Show Gist options
  • Save stefancrain/5091689 to your computer and use it in GitHub Desktop.
Save stefancrain/5091689 to your computer and use it in GitHub Desktop.
Linux Setup for Bluebird in BASH
#!/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