Skip to content

Instantly share code, notes, and snippets.

@Server4001
Last active May 30, 2016 01:00
Show Gist options
  • Save Server4001/b3041d452a4d3dff46e3 to your computer and use it in GitHub Desktop.
Save Server4001/b3041d452a4d3dff46e3 to your computer and use it in GitHub Desktop.

Revisions

  1. Brice Bentler revised this gist May 30, 2016. No changes.
  2. Brice Bentler revised this gist Aug 30, 2015. No changes.
  3. Brice Bentler revised this gist Aug 30, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion after.sh
    Original file line number Diff line number Diff line change
    @@ -66,14 +66,16 @@ sudo dpkg -i elasticsearch-1.5.2.deb
    sudo /bin/systemctl enable elasticsearch.service
    sudo service elasticsearch start

    rm -rf ~/elasticsearch-1.5.2.deb

    cat << EOF | sudo tee -a /etc/elasticsearch/elasticsearch.yml
    network.bind_host: localhost
    script.disable_dynamic: true
    EOF

    sudo service elasticsearch restart

    # Memcached PHP Driver:
    # Memcache PHP Driver:
    sudo pecl install memcache

    cat << EOF | sudo tee -a /etc/php5/cli/php.ini
  4. Brice Bentler revised this gist Aug 1, 2015. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion after.sh
    Original file line number Diff line number Diff line change
    @@ -73,7 +73,7 @@ EOF

    sudo service elasticsearch restart

    # Memcache PHP Driver:
    # Memcached PHP Driver:
    sudo pecl install memcache

    cat << EOF | sudo tee -a /etc/php5/cli/php.ini
    @@ -85,3 +85,7 @@ extension=memcache.so
    EOF

    sudo service php5-fpm restart

    # Imagemagick
    sudo apt-get install -y imagemagick
    sudo apt-get install -y php5-imagick
  5. Brice Bentler revised this gist May 15, 2015. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions after.sh
    Original file line number Diff line number Diff line change
    @@ -72,3 +72,16 @@ script.disable_dynamic: true
    EOF

    sudo service elasticsearch restart

    # Memcache PHP Driver:
    sudo pecl install memcache

    cat << EOF | sudo tee -a /etc/php5/cli/php.ini
    extension=memcache.so
    EOF

    cat << EOF | sudo tee -a /etc/php5/fpm/php.ini
    extension=memcache.so
    EOF

    sudo service php5-fpm restart
  6. Brice Bentler revised this gist May 9, 2015. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions after.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,5 @@
    #!/bin/sh

    #!/bin/sh

    # Beanstalkd config
    cat << EOF | sudo tee -a /etc/default/beanstalkd
    BEANSTALKD_EXTRA="-b /var/lib/beanstalkd"
  7. Brice Bentler revised this gist May 9, 2015. 1 changed file with 58 additions and 3 deletions.
    61 changes: 58 additions & 3 deletions after.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,29 @@
    #!/bin/sh

    #!/bin/sh

    # Beanstalkd config
    cat << EOF | sudo tee -a /etc/default/beanstalkd
    BEANSTALKD_EXTRA="-b /var/lib/beanstalkd"
    # Start at server boot:
    START=yes
    EOF

    sudo service beanstalkd restart

    sudo touch /etc/supervisor/conf.d/larapress-queue.conf
    # Supervisord config
    sudo touch /etc/supervisor/conf.d/queue.conf

    cat << EOF | sudo tee -a /etc/supervisor/conf.d/queue.conf
    [program:laravel5queue]
    command=/usr/bin/php artisan queue:work --daemon --tries=2
    directory=/home/vagrant/laravel5
    autostart=true
    autorestart=true
    startretries=3
    stdout_logfile=/home/vagrant/laravel5/storage/logs/queue-supervisor.log
    redirect_stderr=true
    cat << EOF | sudo tee -a /etc/supervisor/conf.d/larapress-queue.conf
    [program:larapressqueue]
    command=/usr/bin/php artisan queue:work --daemon --tries=2
    directory=/home/vagrant/larapress
    @@ -18,4 +32,45 @@ autorestart=true
    startretries=3
    stdout_logfile=/home/vagrant/larapress/storage/logs/queue-supervisor.log
    redirect_stderr=true
    EOF
    EOF

    # Java Install
    sudo apt-get update -y

    sudo apt-get install -y build-essential rsync telnet screen man wget
    sudo apt-get install -y strace tcpdump
    sudo apt-get install -y libssl-dev zlib1g-dev libcurl3-dev libxslt-dev
    sudo apt-get install -y software-properties-common python-software-properties

    curl -L --cookie "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u65-b17/jdk-7u65-linux-x64.tar.gz -o jdk-7-linux-x64.tar.gz
    tar -xvf jdk-7-linux-x64.tar.gz

    sudo mkdir -p /usr/lib/jvm
    sudo mv ./jdk1.7.* /usr/lib/jvm/

    sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_65/bin/java" 1
    sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_65/bin/javac" 1
    sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0_65/bin/javaws" 1

    sudo chmod a+x /usr/bin/java
    sudo chmod a+x /usr/bin/javac
    sudo chmod a+x /usr/bin/javaws
    sudo chown -R root:root /usr/lib/jvm/jdk1.7.0_65

    rm jdk-7-linux-x64.tar.gz

    java -version

    # Elasticsearch Install
    wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.5.2.deb
    sudo dpkg -i elasticsearch-1.5.2.deb

    sudo /bin/systemctl enable elasticsearch.service
    sudo service elasticsearch start

    cat << EOF | sudo tee -a /etc/elasticsearch/elasticsearch.yml
    network.bind_host: localhost
    script.disable_dynamic: true
    EOF

    sudo service elasticsearch restart
  8. Brice Bentler revised this gist Apr 20, 2015. 1 changed file with 0 additions and 4 deletions.
    4 changes: 0 additions & 4 deletions after.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,5 @@
    #!/bin/sh

    # If you would like to do some extra provisioning you may
    # add any commands you wish to this file and they will
    # be run after the Homestead machine is provisioned.

    cat << EOF | sudo tee -a /etc/default/beanstalkd
    BEANSTALKD_EXTRA="-b /var/lib/beanstalkd"
    START=yes
  9. Brice Bentler created this gist Apr 20, 2015.
    25 changes: 25 additions & 0 deletions after.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    #!/bin/sh

    # If you would like to do some extra provisioning you may
    # add any commands you wish to this file and they will
    # be run after the Homestead machine is provisioned.

    cat << EOF | sudo tee -a /etc/default/beanstalkd
    BEANSTALKD_EXTRA="-b /var/lib/beanstalkd"
    START=yes
    EOF

    sudo service beanstalkd restart

    sudo touch /etc/supervisor/conf.d/larapress-queue.conf

    cat << EOF | sudo tee -a /etc/supervisor/conf.d/larapress-queue.conf
    [program:larapressqueue]
    command=/usr/bin/php artisan queue:work --daemon --tries=2
    directory=/home/vagrant/larapress
    autostart=true
    autorestart=true
    startretries=3
    stdout_logfile=/home/vagrant/larapress/storage/logs/queue-supervisor.log
    redirect_stderr=true
    EOF