Forked from andrewslince/setup linux for web developers
Last active
August 29, 2015 12:38
-
-
Save ribeiroevandro/1a0ea9273bcac3d7c85d to your computer and use it in GitHub Desktop.
This script installs the softwares: Skype, JDK (Java Development Kit), Google Chrome, Google Talk Plugin (It' s necessary for hangouts use), Sublime Text 3, Terminator, Git, GitK, PHP5, cURL (PHP extension), PHPUnit (For create/running unit tests with PHP), Apache Server, enable mod_rewrite for Apache (For clean url use), MySql Server, PHPMyAdmi…
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 | |
clear | |
echo "Please enter your e-mail:" | |
read email | |
# install google chrome | |
sudo apt-get install libcurl3 libnspr4-0d libxss1 -y | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome*; rm google-chrome* | |
# adding packages for skype | |
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" | |
# adding packages for jdk | |
sudo add-apt-repository ppa:webupd8team/java -y | |
# adding packages for sublime text 3... | |
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y | |
# update softwares repositories | |
sudo apt-get update | |
# starting installation softwares | |
sudo apt-get install virtualbox terminator filezilla sublime-text-installer skype vim gimp php5-memcached git gitk php5 php5-curl php5-gd phpunit apache2 mysql-server php5-mysql phpmyadmin oracle-java7-installer nodejs -y | |
# creates simbolic link for phpmyadmin in /var/www/ | |
cd /var/www | |
sudo ln -s /usr/share/phpmyadmin . | |
# generates ssh key | |
ssh-keygen -t rsa -C "$email" | |
# configuring git | |
user_full_name=$(getent passwd `whoami` | cut -d ':' -f 5 | cut -d ',' -f 1) | |
# configuring git >> user | |
git config --global user.name "$user_full_name" | |
git config --global user.email "$email" | |
# configuring git >> color (global) | |
git config --global color.branch "auto" | |
git config --global color.diff "auto" | |
git config --global color.status "auto" | |
git config --global color.interactive "auto" | |
# configuring git >> color >> branch | |
git config --global color.branch.current "yellow reverse" | |
git config --global color.branch.local "yellow" | |
git config --global color.branch.remote "green" | |
# configuring git >> color >> diff | |
git config --global color.diff.meta "yellow bold" | |
git config --global color.diff.frag "magenta bold" | |
git config --global color.diff.old "red" | |
git config --global color.diff.new "green" | |
# configuring git >> color >> status | |
git config --global color.status.added "yellow" | |
git config --global color.status.changed "green" | |
git config --global color.status.untracked "cyan" | |
# install sublime text plugins | |
cd ~/.config/sublime-text-3/Packages/ | |
git clone git://github.com/wbond/sublime_package_control.git "Package Control" | |
git clone git://github.com/jisaacks/GitGutter.git | |
git clone git://github.com/subhaze/CSS-Extended.git | |
git clone git://github.com/titoBouzout/SideBarEnhancements.git | |
git clone git://github.com:csscomb/sublime-csscomb.git "CSScomb JS" | |
# apache config | |
# enable apache mod_rewrite | |
sudo a2enmod rewrite | |
# enable apache mod_proxy_http (reverse proxy) | |
sudo a2enmod proxy_http | |
# restart apache server to apply changes | |
sudo service apache2 restart | |
# sets "vim" as default editor | |
sudo sh -c 'echo "\nexport EDITOR='vim'\nexport VISUAL='vim'" >> /etc/bash.bashrc' | |
# display hidden files by default | |
sudo sh -c 'echo "\nalias ls=\"ls -a\"" >> ~/.bashrc' | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment