Skip to content

Instantly share code, notes, and snippets.

@callmeloureiro
Last active October 5, 2023 17:43

Revisions

  1. callmeloureiro revised this gist Jan 28, 2015. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions Scriptlou.sh
    Original file line number Diff line number Diff line change
    @@ -53,6 +53,13 @@ sudo make &&
    sudo make install
    sudo chown -R $USER /usr/local

    ## Atualizar NodeJS e NPM
    npm cache clean -f
    npm install -g n
    n stable
    ######
    npm -g install npm@latest

    ## Composer
    cd $TRECOS
    mkdir composer
  2. callmeloureiro revised this gist Jan 28, 2015. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Scriptlou.sh
    Original file line number Diff line number Diff line change
    @@ -95,5 +95,6 @@ sudo ln -s /usr/share/gconf/schemas/guake.schemas

    ## ZSH
    sudo apt-get install zsh &&
    wget --no-check-certificate http://install.ohmyz.sh -O - | sh &&
    chsh -s /bin/zsh
    wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh &&
    chsh -s /bin/zsh
    sudo reboot
  3. callmeloureiro revised this gist Jan 16, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Scriptlou.sh
    Original file line number Diff line number Diff line change
    @@ -71,7 +71,7 @@ sudo apt-get update
    sudo apt-get install sublime-text-installer

    ## Filezilla
    sudo apt-get filezilla
    sudo apt-get install filezilla

    ## WorkBench
    cd $TRECOS &&
  4. callmeloureiro revised this gist Jan 16, 2015. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions Scriptlou.sh
    Original file line number Diff line number Diff line change
    @@ -94,7 +94,6 @@ cd /etc/gconf/schemas/
    sudo ln -s /usr/share/gconf/schemas/guake.schemas

    ## ZSH
    cd $TRECOS
    git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
    cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
    sudo apt-get install zsh &&
    wget --no-check-certificate http://install.ohmyz.sh -O - | sh &&
    chsh -s /bin/zsh
  5. callmeloureiro revised this gist Jan 10, 2015. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion Scriptlou.sh
    Original file line number Diff line number Diff line change
    @@ -91,4 +91,10 @@ sudo apt-get install transmission
    sudo apt-get install guake
    sudo mkdir /etc/gconf/schemas
    cd /etc/gconf/schemas/
    sudo ln -s /usr/share/gconf/schemas/guake.schemas
    sudo ln -s /usr/share/gconf/schemas/guake.schemas

    ## ZSH
    cd $TRECOS
    git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
    cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
    chsh -s /bin/zsh
  6. callmeloureiro revised this gist Jan 9, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Scriptlou.sh
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,7 @@ sudo apt-get update && sudo apt-get install build-essential

    ## Install Apache
    sudo apt-get update && sudo apt-get install apache2
    sudo a2enmod rewrite

    ### Install PHP 5.6 #####
    sudo apt-get update && sudo apt-get install python-software-properties
  7. callmeloureiro renamed this gist Dec 29, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. callmeloureiro revised this gist Dec 29, 2014. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions Scriptlou64.sh
    Original file line number Diff line number Diff line change
    @@ -39,18 +39,18 @@ sudo service mysql restart
    sudo apt-get install curl

    ## Install Git
    sudo add-apt-repository ppa:git-core/ppa
    sudo apt-get update
    sudo apt-get install git

    ## NodeJS and NPM
    cd $TRECOS
    wget http://nodejs.org/dist/v0.10.35/node-v0.10.35.tar.gz
    tar -vzxf node*
    cd node-v0.10.35
    git clone https://github.com/joyent/node.git &&
    cd node
    sudo ./configure &&
    sudo make &&
    sudo make install
    #sudo chown -R $USER /usr/local
    sudo chown -R $(whoami) ~/.npm
    sudo chown -R $USER /usr/local

    ## Composer
    cd $TRECOS
  9. callmeloureiro revised this gist Dec 29, 2014. 1 changed file with 2 additions and 15 deletions.
    17 changes: 2 additions & 15 deletions Scriptlou64.sh
    Original file line number Diff line number Diff line change
    @@ -55,6 +55,7 @@ sudo chown -R $(whoami) ~/.npm
    ## Composer
    cd $TRECOS
    mkdir composer
    cd composer
    curl -s https://getcomposer.org/installer | php &&
    sudo cp composer.phar /usr/local/bin/composer

    @@ -63,27 +64,13 @@ sudo cp composer.phar /usr/local/bin/composer
    ## Gdebi
    sudo apt-get install gdebi

    ## Spotify
    sudo apt-add-repository -y "deb http://repository.spotify.com stable non-free" &&
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 &&
    sudo apt-get update -qq &&
    sudo apt-get install spotify-client

    ## Chrome
    cd $TRECOS
    mkdir chrome &&
    cd chrome
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&
    sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' &&
    sudo apt-get update && sudo apt-get install google-chrome-stable

    ## Sublime
    sudo add-apt-repository ppa:webupd8team/sublime-text-3
    sudo apt-get update
    sudo apt-get install sublime-text-installer

    ## Filezilla
    sudo apt-get -y install filezilla filezilla-locales
    sudo apt-get filezilla

    ## WorkBench
    cd $TRECOS &&
  10. callmeloureiro renamed this gist Dec 29, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  11. callmeloureiro renamed this gist Dec 29, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  12. callmeloureiro created this gist Dec 29, 2014.
    106 changes: 106 additions & 0 deletions Scriptlou
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,106 @@
    #!/bin/bash

    echo "Script feito por: Matheus Loureiro"
    echo "http://www.matheusloureiro.com.br"

    WORKSPACE=~/workspace &&
    TRECOS=$WORKSPACE/trecos

    ## Pasta Trecos
    mkdir $WORKSPACE && mkdir $TRECOS

    ## Update and Upgrade
    sudo apt-get update && sudo-apt-get upgrade

    ## Build Essential
    sudo apt-get update && sudo apt-get install build-essential

    ## Install Apache
    sudo apt-get update && sudo apt-get install apache2

    ### Install PHP 5.6 #####
    sudo apt-get update && sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:ondrej/php5-5.6
    sudo apt-get update && sudo apt-get upgrade
    sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

    ## Install Mysql
    sudo apt-get install mysql-server php5-mysql
    sudo mysql_install_db
    sudo mysql_secure_installation

    ## Restart Apache e Mysql
    sudo service apache2 restart
    sudo service mysql restart

    ## ----------------------------------------- ##

    ## Install curl
    sudo apt-get install curl

    ## Install Git
    sudo apt-get install git

    ## NodeJS and NPM
    cd $TRECOS
    wget http://nodejs.org/dist/v0.10.35/node-v0.10.35.tar.gz
    tar -vzxf node*
    cd node-v0.10.35
    sudo ./configure &&
    sudo make &&
    sudo make install
    #sudo chown -R $USER /usr/local
    sudo chown -R $(whoami) ~/.npm

    ## Composer
    cd $TRECOS
    mkdir composer
    curl -s https://getcomposer.org/installer | php &&
    sudo cp composer.phar /usr/local/bin/composer

    ## ----------------------------------------- ##

    ## Gdebi
    sudo apt-get install gdebi

    ## Spotify
    sudo apt-add-repository -y "deb http://repository.spotify.com stable non-free" &&
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 &&
    sudo apt-get update -qq &&
    sudo apt-get install spotify-client

    ## Chrome
    cd $TRECOS
    mkdir chrome &&
    cd chrome
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&
    sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' &&
    sudo apt-get update && sudo apt-get install google-chrome-stable

    ## Sublime
    sudo add-apt-repository ppa:webupd8team/sublime-text-3
    sudo apt-get update
    sudo apt-get install sublime-text-installer

    ## Filezilla
    sudo apt-get -y install filezilla filezilla-locales

    ## WorkBench
    cd $TRECOS &&
    mkdir mysqlwork &&
    cd mysqlwork
    wget http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-6.2.4-1ubu1404-amd64.deb &&
    sudo gdebi mysql-workbench-community-6.2.4-1ubu1404-amd64.deb
    sudo apt-get -f install

    ## VirtualBox
    sudo apt-get install virtualbox

    ## Transmission
    sudo apt-get install transmission

    ## Guake
    sudo apt-get install guake
    sudo mkdir /etc/gconf/schemas
    cd /etc/gconf/schemas/
    sudo ln -s /usr/share/gconf/schemas/guake.schemas