Skip to content

Instantly share code, notes, and snippets.

@lukrizal
Last active September 19, 2019 10:39
Show Gist options
  • Save lukrizal/b49ff1554eb2176f56bb to your computer and use it in GitHub Desktop.
Save lukrizal/b49ff1554eb2176f56bb to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Downloading GetDeb and PlayDeb" &&
wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb http://archive.getdeb.net/install_deb/playdeb_0.3-1~getdeb1_all.deb
echo "Installing GetDeb" &&
sudo dpkg -i getdeb-repository_0.1-1~getdeb1_all.deb
echo "Installing PlayDeb" &&
sudo dpkg -i playdeb_0.3-1~getdeb1_all.deb &&
rm -f getdeb-repository_0.1-1~getdeb1_all.deb &&
rm -f playdeb_0.3-1~getdeb1_all.deb
echo "Installing Important PPA" &&
sudo add-apt-repository -y ppa:videolan/stable-daily &&
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp &&
sudo add-apt-repository -y ppa:gnome3-team/gnome3 &&
sudo add-apt-repository -y ppa:webupd8team/java &&
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager
sudo add-apt-repository -y ppa:tualatrix/ppa
sudo add-apt-repository -y ppa:ondrej/php
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
echo "LibDVDCSS" &&
echo 'deb http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a /etc/apt/sources.list.d/libdvdcss.list &&
echo 'deb-src http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a /etc/apt/sources.list.d/libdvdcss.list &&
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc|sudo apt-key add -
echo "Updating, Upgrading and Upgrading Distributions" &&
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y
echo "Install Essentials" &&
sudo apt-get install -y synaptic vlc gimp gimp-data gimp-plugin-registry gimp-data-extras y-ppa-manager bleachbit openjdk-7-jre oracle-java8-installer flashplugin-installer unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller libxine1-ffmpeg mencoder flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview libmpeg3-1 mpeg3-utils mpegdemux liba52-dev mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 totem-mozilla icedax lame libmad0 libjpeg-progs libdvdcss2 libdvdread4 libdvdnav4 libswscale-extra-2 ubuntu-tweak ubuntu-restricted-extras ubuntu-wallpapers*
echo "Ruby" &&
sudo apt-get install ruby-full &&
sudo gem install compass &&
sudo gem install sass
echo "Git" &&
sudo apt-get install git &&
touch ~/.gitignore_global &&
git config --global color.ui true &&
git config --global core.excludesfile ~/.gitignore_global &&
git config --global user.email '[email protected]' &&
git config --global user.name 'Developer 2'
echo "PHP7" &&
sudo apt-get install -y php7.0 php7.0-zip php7.0-mcrypt php7.0-curl php7.0-cli php7.0-json php7.0-mbstring php7.0-xml
echo "Sublime" &&
sudo apt-get install sublime-text
echo "Composer" &&
curl -sS https://getcomposer.org/installer | php && sudo mv composer.phar /usr/local/bin/composer &&
composer global require "laravel/homestead=~2.0" &&
echo 'export PATH="$PATH:~/.composer/vendor/bin"' >> ~/.bashrc && source ~/.bashrc
echo "Google Chrome"
if [[ $(getconf LONG_BIT) = "64" ]]
then
echo "64bit Detected" &&
echo "Installing Google Chrome" &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
sudo dpkg -i google-chrome-stable_current_amd64.deb &&
rm -f google-chrome-stable_current_amd64.deb
else
echo "32bit Detected" &&
echo "Installing Google Chrome" &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb &&
sudo dpkg -i google-chrome-stable_current_i386.deb &&
rm -f google-chrome-stable_current_i386.deb
fi
echo "Nodejs" &&
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs npm
echo "Gulpjs & Node-SASS" &&
npm install --global gulp node-sass
echo "VirtualBox & Vagrant" &&
sudo apt-get install virtualbox &&
sudo apt-get install virtualbox-dkms
sudo apt-get install vagrant
echo "Homestead" &&
cd ~ &&
git clone https://github.com/laravel/homestead.git Homestead &&
cd Homestead && bash init.sh
echo "Terminator" &&
sudo apt-get install terminator -y
echo "Unity8" &&
sudo apt-get install unity8 unity8-common unity-tweak-tool -y &&
sudo apt-get install --no-install-recommends gnome-panel -y
echo "INotify" &&
echo fs.inotify.max_user_watches=24288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
echo "Cleaning Up" &&
sudo apt-get -f install &&
sudo apt-get autoremove &&
sudo apt-get -y autoclean &&
sudo apt-get -y clean
echo "Rebooting"
sudo reboot
#!/bin/bash
# https://github.com/maxmind/geoipupdate
sudo add-apt-repository ppa:maxmind/ppa
sudo aptitude update
sudo aptitude install geoipupdate
# PECL installation
cd ~ && mkdir temp_geoip && cd temp_geoip
wget http://pecl.php.net/get/geoip-1.1.0.tgz && tar -zxvf geoip-1.1.0.tgz
cd geoip-1.1.0 && phpize
./configure && make
sudo make install
http://www.howtogeek.com/115797/6-ways-to-speed-up-ubuntu/
http://howtoubuntu.org/things-to-do-after-installing-ubuntu-14-04-trusty-tahr
https://nodejs.org/en/download/package-manager/
# Packages that need to be downloadd
> Chrome
> Composer
# Update Ubuntu
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y build-essential
# Git
sudo apt-get install git
touch ~/.gitignore_global
git config --global color.ui true
git config --global core.excludesfile ~/.gitignore_global
git config --global user.email '[email protected]'
git config --global user.name 'Developer 1'
# Composer
curl -sS https://getcomposer.org/installer | php && sudo mv composer.phar /usr/local/bin/composer
composer global require "laravel/homestead=~2.0"
echo 'export PATH="$PATH:~/.composer/vendor/bin"' >> ~/.bashrc && source ~/.bashrc
# PHP 7
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.0 php7.0-zip php7.0-mcrypt php7.0-curl php7.0-cli php7.0-json php7.0-mbstring php7.0-xml
# Sublime
sudo add-apt-repository ppa:webupd8team/sublime-text-3 && sudo apt-get update
sudo apt-get install sublime-text
# Nodejs
sudo apt-get install -y python-software-properties python g++ make
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs npm
# Ruby
sudo apt-get install ruby-full
sudo gem install compass
sudo gem install sass
# Gulpjs
npm install --global gulp
# VirtualBox
sudo apt-get install virtualbox
sudo apt-get install virtualbox-dkms
# Vagrant
sudo apt-get install vagrant
# Homestead
# PHPStorm EAP
# Atom
echo "Downloading GetDeb and PlayDeb" &&
wget http://archive.getdeb.net/install_deb/getdeb-repository_0.1-1~getdeb1_all.deb http://archive.getdeb.net/install_deb/playdeb_0.3-1~getdeb1_all.deb
echo "Installing GetDeb" &&
sudo dpkg -i getdeb-repository_0.1-1~getdeb1_all.deb
echo "Installing PlayDeb" &&
sudo dpkg -i playdeb_0.3-1~getdeb1_all.deb &&
rm -f getdeb-repository_0.1-1~getdeb1_all.deb &&
rm -f playdeb_0.3-1~getdeb1_all.deb
echo "Installing Important PPA" &&
sudo add-apt-repository -y ppa:videolan/stable-daily &&
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp &&
sudo add-apt-repository -y ppa:gnome3-team/gnome3 &&
sudo add-apt-repository -y ppa:webupd8team/java &&
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager
echo "LibDVDCSS" &&
echo 'deb http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a /etc/apt/sources.list.d/libdvdcss.list &&
echo 'deb-src http://download.videolan.org/pub/debian/stable/ /' | sudo tee -a /etc/apt/sources.list.d/libdvdcss.list &&
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc|sudo apt-key add -
echo "Updating, Upgrading and Upgrading Distributions" &&
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y
echo "Install Essentials" &&
sudo apt-get install -y synaptic vlc gimp gimp-data gimp-plugin-registry gimp-data-extras y-ppa-manager bleachbit openjdk-7-jre oracle-java8-installer flashplugin-installer unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller libxine1-ffmpeg mencoder flac faac faad sox ffmpeg2theora libmpeg2-4 uudeview libmpeg3-1 mpeg3-utils mpegdemux liba52-dev mpeg2dec vorbis-tools id3v2 mpg321 mpg123 libflac++6 totem-mozilla icedax lame libmad0 libjpeg-progs libdvdcss2 libdvdread4 libdvdnav4 libswscale-extra-2 ubuntu-restricted-extras ubuntu-wallpapers*
echo "Google Chrome"
if [[ $(getconf LONG_BIT) = "64" ]]
then
echo "64bit Detected" &&
echo "Installing Google Chrome" &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
sudo dpkg -i google-chrome-stable_current_amd64.deb &&
rm -f google-chrome-stable_current_amd64.deb
else
echo "32bit Detected" &&
echo "Installing Google Chrome" &&
wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb &&
sudo dpkg -i google-chrome-stable_current_i386.deb &&
rm -f google-chrome-stable_current_i386.deb
fi
echo "Cleaning Up" &&
sudo apt-get -f install &&
sudo apt-get autoremove &&
sudo apt-get -y autoclean &&
sudo apt-get -y clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment