Skip to content

Instantly share code, notes, and snippets.

@kuroski
Forked from rufhausen/homestead_extras.sh
Last active October 1, 2024 19:24
Show Gist options
  • Select an option

  • Save kuroski/5cedc1d29d50a2e8bdb3 to your computer and use it in GitHub Desktop.

Select an option

Save kuroski/5cedc1d29d50a2e8bdb3 to your computer and use it in GitHub Desktop.

Revisions

  1. kuroski revised this gist Feb 10, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions homestead_extras.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    #!/bin/bash

    #run the script using "sudo bash homestead_extras.sh"
    #leave all the default options sugested during the installation, and do not modify any files
    #Install Laravel Homestead (http://laravel.com/docs/5.0/homestead)
    #ssh into Homestead "homestead ssh"
    #Run the script using "sudo bash homestead_extras.sh"
    #Leave all the default options sugested during the installation, and do not modify any files!!
    apt-get update

    #Additional Packages
  2. kuroski revised this gist Feb 10, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion homestead_extras.sh
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,6 @@ apt-get update
    apt-get install -y php5-ldap php5-mssql

    #After
    service php5-fpm reload
    service php5-fpm reload

    #THAAANKSSS rufhausen *_*
  3. kuroski revised this gist Feb 10, 2015. 1 changed file with 5 additions and 27 deletions.
    32 changes: 5 additions & 27 deletions homestead_extras.sh
    Original file line number Diff line number Diff line change
    @@ -1,33 +1,11 @@
    #!/bin/bash

    #run the script using "sudo bash homestead_extras.sh"
    #leave all the default options sugested during the installation, and do not modify any files
    apt-get update

    #Additional Packages
    apt-get install -y cifs-utils winbind smbclient bindfs gvfs gvfs-bin keyutils unzip php5-ldap php5-mssql zsh

    wget --no-check-certificate http://install.ohmyz.sh -O - | sh
    chsh vagrant -s /bin/zsh

    #PHP OCI8 Driver

    #Putting the cart before the horse here, but it leaves the only interactive part for the end.
    echo 'extension=oci8.so' >> /etc/php5/fpm/php.ini
    echo 'extension=oci8.so' >> /etc/php5/cli/php.ini

    mkdir /opt/oracle
    cd /opt/oracle

    wget https://www.dropbox.com/s/ng09xgejjx3hjof/instantclient-basic-linux.x64-11.2.0.3.0.zip
    wget https://www.dropbox.com/s/hux5d4bhj8daimr/instantclient-sdk-linux.x64-11.2.0.4.0.zip

    unzip \*.zip
    cd instantclient_11_2
    ln -s libclntsh.so.11.1 libclntsh.so
    ln -s libocci.so.11.1 libocci.so
    pecl install oci8

    #At the prompt
    # instantclient,/opt/oracle/instantclient_11_2

    apt-get install -y php5-ldap php5-mssql

    #After
    service php5-fpm reload
  4. @rufhausen rufhausen revised this gist Nov 6, 2014. 1 changed file with 5 additions and 7 deletions.
    12 changes: 5 additions & 7 deletions homestead_extras.sh
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,18 @@
    #!/bin/bash

    #Needed later for OCI8
    apt-get install -y unzip
    apt-get update

    #LDAP
    apt-get install -y php5-ldap
    #Additional Packages
    apt-get install -y cifs-utils winbind smbclient bindfs gvfs gvfs-bin keyutils unzip php5-ldap php5-mssql zsh

    #Oh-My-Zsh, because.
    apt-get install -y zsh
    wget --no-check-certificate http://install.ohmyz.sh -O - | sh
    chsh vagrant -s /bin/zsh

    #PHP OCI8 Driver

    #Putting the cart before the horse here, but it leaves the only interactive part for the end.
    echo 'extension=oci8.so' >> /etc/php5/fpm/php.ini
    echo 'extension=oci8.so' >> /etc/php5/cli/php.ini

    mkdir /opt/oracle
    cd /opt/oracle
    @@ -32,4 +30,4 @@ pecl install oci8
    # instantclient,/opt/oracle/instantclient_11_2

    #After
    #sudo service php-fpm restart
    service php5-fpm reload
  5. @rufhausen rufhausen renamed this gist Jun 18, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. @rufhausen rufhausen created this gist Jun 18, 2014.
    35 changes: 35 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    #!/bin/bash

    #Needed later for OCI8
    apt-get install -y unzip

    #LDAP
    apt-get install -y php5-ldap

    #Oh-My-Zsh, because.
    apt-get install -y zsh
    wget --no-check-certificate http://install.ohmyz.sh -O - | sh
    chsh vagrant -s /bin/zsh

    #PHP OCI8 Driver

    #Putting the cart before the horse here, but it leaves the only interactive part for the end.
    echo 'extension=oci8.so' >> /etc/php5/fpm/php.ini

    mkdir /opt/oracle
    cd /opt/oracle

    wget https://www.dropbox.com/s/ng09xgejjx3hjof/instantclient-basic-linux.x64-11.2.0.3.0.zip
    wget https://www.dropbox.com/s/hux5d4bhj8daimr/instantclient-sdk-linux.x64-11.2.0.4.0.zip

    unzip \*.zip
    cd instantclient_11_2
    ln -s libclntsh.so.11.1 libclntsh.so
    ln -s libocci.so.11.1 libocci.so
    pecl install oci8

    #At the prompt
    # instantclient,/opt/oracle/instantclient_11_2

    #After
    #sudo service php-fpm restart