Last active
August 29, 2015 14:08
-
-
Save lukrizal/5eb6188c9f4cc5484682 to your computer and use it in GitHub Desktop.
Ubuntu Laravel
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 | |
mkdir -p ~/Desktop/temp | |
cd ~/Desktop/temp | |
sudo apt-get install -y libxss1 libappindicator1 libindicator7 | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome*.deb | |
sudo apt-get install -y chromium-browser |
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 | |
mkdir -p ~/Desktop/temp | |
cd ~/Desktop/temp | |
sudo apt-get remove skype skype-bin:i386 skype:i386 | |
sudo apt-get install sni-qt:i386 | |
rm -rf ~/.Skype | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install -y gdebi | |
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" | |
sudo apt-get update && sudo apt-get install skype |
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 | |
echo "Preparing the system" | |
sudo apt-get update && sudo apt-get upgrade | |
mkdir -p ~/Desktop/temp | |
cd ~/Desktop/temp | |
echo "Installing Terminator" | |
sudo add-apt-repository ppa:gnome-terminator | |
sudo apt-get -y update | |
sudo apt-get -y install terminator | |
# https://gist.github.com/olistik/3894072 | |
echo "Preparing local development" | |
echo "Installing nginx, php-fpm, mysql, composer" | |
sudo apt-get install -y mysql-server mysql-client mysql-workbench | |
sudo nginx php5-fpm php5-cli php5-mcrypt php5-mysql | |
sudo php5enmod mcrypt | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
# Find the line, cgi.fix_pathinfo=1, and change the 1 to 0. | |
sudo subl /etc/php5/fpm/php.ini | |
#Find the line, listen = 127.0.0.1:9000, and change the 127.0.0.1:9000 to /var/run/php5-fpm.sock. | |
sudo subl /etc/php5/fpm/pool.d/www.conf | |
sudo service php5-fpm nginx restart | |
echo "Installing git" | |
sudo apt-get -y install git | |
echo "Setting git global configurations" | |
git config --global user.name "Lukaserat Ubuntu" | |
git config --global user.email [email protected] | |
git config core.fileMode false | |
echo "Installing nodejs, bower, gulp, coffeescript, less" | |
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
sudo apt-get install -y nodejs build-essential && sudo npm install -g bower gulp coffee-script less notify | |
echo "Installing vbox and vagrant" | |
sudo apt-get -y install virtualbox | |
sudo apt-get -y install vagrant | |
sudo apt-get -y install virtualbox-dkms | |
echo "Installing homestead" | |
vagrant box add laravel/homestead | |
mkdir -p ~/Desktop/UPM/Sites | |
cd ~/Desktop/UPM | |
git clone https://github.com/laravel/homestead.git Homestead | |
ssh-keygen -t rsa -C "[email protected]" | |
cd ~/Desktop/UPM/Sites | |
git clone ssh://[email protected]:10522/home/magente-dev/gitrepos/pa-combined.git pa.laravel.local | |
git clone ssh://[email protected]:10522/home/magente-dev/gitrepos/pa.v1.git api.pex.local | |
aliases=" | |
alias homestead_on='cd ~/Desktop/UPM/Homestead && vagrant reload && vagrant ssh'; | |
alias homestead_ssh='cd ~/Desktop/UPM/Homestead && vagrant ssh'; | |
alias pa_gulp='cd ~/Desktop/UPM/Sites/pa.laravel.local && npm install && bower install && gulp'; | |
" | |
echo "$aliases" > ~/.bash_profile | |
. ~/.bash_profile | |
hosts=" | |
192.168.10.10 pa.laravel.local | |
192.168.10.10 api.pex.local | |
192.168.10.10 monit.app | |
192.168.10.10 beanstalkd.app | |
192.168.10.10 redis.app | |
" | |
sudo subl /etc/hosts | |
subl ~/Desktop/UPM/Homestead |
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
#!/usr/bin/env bash | |
echo "Preparing the system" | |
# sudo apt-get update && sudo apt-get upgrade | |
helpers_path="scripts/helpers" | |
scripts_path="scripts" | |
hostname="lukaserat.dev" | |
user="lukaserat" | |
server_timezone="Asia/Manila" | |
server_ip='127.0.0.1' | |
public_folder="~/Desktop/www" | |
composer_packages="" | |
mysql_root_password="root" | |
mysql_version="5.5" | |
mysql_enable_remote="false" | |
mongo_enable_remote="false" | |
php_timezone="Asia/Manila" | |
ruby_version="latest" | |
nodejs_version="latest" | |
hhvm="false" | |
. "$scripts_path/base.sh" $server_timezone $helpers_path $user | |
. "$scripts_path/php.sh" $php_timezone $hhvm $user | |
. "$scripts_path/vim.sh" $helpers_path $user | |
. "$scripts_path/nginx.sh" $public_folder $hostname $helpers_path $user | |
. "$scripts_path/mysql.sh" $mysql_root_password, $mysql_version, $mysql_enable_remote | |
. "$scripts_path/mongodb.sh" $mongo_enable_remote | |
. "$scripts_path/elasticsearch.sh" $user | |
. "$scripts_path/memcached.sh" $user | |
. "$scripts_path/redis.sh" "persistent" $user | |
. "$scripts_path/beanstalkd.sh" $user | |
. "$scripts_path/zeromq.sh" $user | |
. "$scripts_path/nodejs.sh" $nodejs_version $user | |
. "$scripts_path/rvm.sh" $ruby_version $user | |
. "$scripts_path/composer.sh" $composer_packages $user | |
. "$scripts_path/screen.sh" $user | |
. "$scripts_path/mailcatcher.sh" $user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment