Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardodeoh/6241770 to your computer and use it in GitHub Desktop.
Save eduardodeoh/6241770 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Locale
echo "Changing locale"
sudo apt-get -y install language-pack-pt
clear
# System update
echo "Updating repositories"
sudo apt-get -y update
clear
# System upgrade
echo "Upgrading system"
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
clear
#apt-fast
#http://www.webupd8.org/2012/10/speed-up-apt-get-downloads-with-apt.html
#https://github.com/ilikenwf/apt-fast
sudo add-apt-repository ppa:apt-fast/stable
sudo apt-get update && sudo apt-get -y install apt-fast
#Install bleachbit
#http://bleachbit.sourceforge.net
sudo apt-get -y install bleachbit
#Install Syna
# Install Oracle Java 7
#http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo apt-get -y install oracle-java7-installer
sudo apt-get -y install oracle-java7-set-default
cle
#Install VirtualBox
#http://www.noobslab.com/2013/03/latest-virtualbox-for-ubuntu.html
echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install virtualbox-4.2
clear
#Dropbox
#http://linuxg.net/how-to-install-the-dropbox-client-on-ubuntu-13-04-12-10-12-04-via-ppa/
sudo sh -c 'echo "deb http://linux.dropbox.com/ubuntu/ $(lsb_release -cs) main" >> /etc/apt/sources.list.d/dropbox.list'
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E
sudo apt-get update
sudo apt-get -y install dropbox
clear
#Install Latest stable Git
#https://launchpad.net/~git-core/+archive/ppa
#https://launchpad.net/~pdoes/+archive/ppa
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get -y install git
clear
#Install Vim 7.4
#http://linuxg.net/how-to-install-vim-7-4-on-ubuntu-13-10-13-04-12-04-linux-mint-16-15-13-and-debian-sid/
sudo add-apt-repository ppa:fcwu-tw/ppa
sudo apt-get update
sudo apt-get -y install vim
clear
#Install latest stable Tmux
#http://askubuntu.com/questions/273013/how-to-install-new-tmux-1-8-on-ubuntu-12-10-or-12-04
sudo add-apt-repository ppa:pi-rho/dev
sudo apt-get update
sudo apt-cache show tmux
sudo apt-get -y install tmux
clear
#Install KeePass2
#http://www.webupd8.org/2013/05/keepass-2-appindicator-extension-for.html
sudo add-apt-repository ppa:dlech/keepass2-plugins
sudo apt-get update
sudo apt-get -y install keepass2-plugin-application-indicator
sudo apt-get -y install keepass2-plugin-application-menu
# Install Rbenv + Ruby 2.0
#https://github.com/fesplugas/rbenv-installer
sudo apt-get -y install curl
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
echo -e 'export RBENV_ROOT="${HOME}/.rbenv" \nif [ -d "${RBENV_ROOT}" ]; then \n \t export PATH="${RBENV_ROOT}/bin:${PATH}" \n \t eval "$(rbenv init -)" \nfi' >> ~/.bashrc
source ~/.bashrc
rbenv bootstrap-ubuntu-12-04
rbenv install 2.0.0-p247
rbenv global 2.0.0-p247
gem update --system
gem update
clear
#Install zsh
sudo apt-get -y install zsh
#Install keychain
#http://www.gilluminate.com/2013/04/04/ubuntu-ssh-agent-and-you/
#http://www.funtoo.org/wiki/Keychain
apt-get install keychain
sudo sed -i 's/NoDisplay=false/NoDisplay=true/g' ~/.config/autostart/gnome-keyring-ssh.desktop
#Install gem AKA
#http://github.com/PogiNate/A.K.A.
gem install aka
#Gem install tmuxinator
#https://github.com/aziz/tmuxinator
gem install tmuxinator
#Install fonts do Zsh Theme Powerline
#http://askubuntu.com/questions/283908/how-can-i-install-and-use-powerline-plugin
cd ~
git clone https://github.com/Lokaltog/powerline-fonts
mkdir ~/.fonts
cp powerline-fonts/UbuntuMono/Ubuntu\ Mono\ derivative\ Powerline* ~/.fonts/
fc-cache -vf ~/.fonts
gsettings set org.gnome.desktop.interface monospace-font-name 'Ubuntu Mono derivative Powerline 13'
#Setting my Dotfiles
cd ~
git clone git@github.com:eduardodeoh/dotfiles.git
cd dotfiles
./make_symlinks.sh
# Install Tweak Tools
echo "Installing Unity Tweak Tool"
sudo apt-get -y install unity-tweak-tool
sudo apt-get install gnome-tweak-tool
clear
# Install Codecs
echo "Installing Codecs"
sudo apt-get -y install ubuntu-restricted-extras
sudo apt-get -y install libavformat-extra-53 libavcodec-extra-53
clear
# Remove Unity Lens Shopping
echo "Removing Unity Lens shopping"
sudo apt-get -y remove unity-lens-applications unity-lens-files unity-lens-friends unity-lens-music unity-lens-photos unity-lens-shopping unity-lens-video
clear
# Install Indicator Privacy
#echo "Installing Indicator Privacy"
#sudo add-apt-repository -y ppa:diesch/testing
#sudo apt-get -y update
#sudo apt-get -y install indicator-privacy
#clear
# Install My Weather Indicator
#echo "Installing My Weather Indicator"
#sudo add-apt-repository -y ppa:atareao/atareao
#sudo apt-get -y update
#sudo apt-get -y install my-weather-indicator
#clear
# Install Google Calendar Indicator
#echo "Installing Google Calendar Indicator"
#sudo add-apt-repository -y ppa:atareao/atareao
#sudo apt-get -y update
#sudo apt-get -y install calendar-indicator
#clear
# Install Google Chrome Beta
#echo "Installing Google Chrome Beta"
#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.list'
#sudo apt-get -y update
#sudo apt-get -y install google-chrome-beta
#clear
# Install Adobe Flash Player
echo "Installing Adobe Flash Player"
sudo apt-get -y install flashplugin-installer gsfonts-x11
clear
# Install Y PPA Manager
echo "Installing Y PPA Manager"
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager
sudo apt-get -y update
sudo apt-get -y install y-ppa-manager
clear
# Install TLP
echo "Installing TLP"
sudo add-apt-repository -y ppa:linrunner/tlp
sudo apt-get -y update
sudo apt-get -y install tlp tlp-rdw smartmontools ethtool
clear
# Install Synaptic
echo "Installing Synaptic"
sudo apt-get -y install synaptic
clear
# Install NodeJS
#echo "Installing NodejS"
#sudo apt-get -y install python-software-properties python g++ make
#sudo add-apt-repository -y ppa:chris-lea/node.js
#sudo apt-get -y update
#sudo apt-get -y install nodejs
#clear
# Install MySQL
#echo "Installing MySQL"
#sudo apt-get -y install mysql-server mysql-client libmysqlclient-dev
#clear
# Install MySQL Workbench
#echo "Installing MySQL Workbench"
#sudo apt-get -y install mysql-workbench
#clear
# Install PostgreSQL
#echo "Installing PostgreSQL"
#sudo apt-get -y install postgresql postgresql-client libpq-dev
#clear
# Install Apache
#echo "Installing Apache"
#sudo apt-get -y install apache2
#sudo adduser $USER www-data
#sudo chown -R www-data:www-data /var/www
#sudo chmod -R g+rw /var/www
#clear
# Install PHP 5
#echo "Installing PHP 5"
#sudo apt-get -y install php5 libapache2-mod-php5 php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-#mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl #php5-json
#clear
# Install VLC Player
echo "Installing VLC Player"
sudo apt-get -y install vlc browser-plugin-vlc
clear
# Install Skype
#echo "Installing Skype"
#sudo apt-get -y install skype
#clear
# Remove Gnome games
echo "Removing Gnome Games"
sudo apt-get -y remove aisleriot gnome-mahjongg gnome-mines gnome-sudoku gnomine
clear
# Install Preload
echo "Installing Preload"
sudo apt-get -y install preload
clear
# Install Prelink
#echo "Installing Prelink"
#sudo apt-get -y install prelink
#clear
# Install zRAM
#echo "Installing zRAM"
#sudo apt-get -y install zram-config
#clear
# Install fonts
echo "Installing fonts"
sudo apt-get install -y mplayer-fonts ttf-xfree86-nonfree xfs cabextract ttf-liberation ttf-larabie-straight ttf-larabie-deco xfonts-terminus-dos xfonts-terminus xfonts-terminus-oblique tv-fonts ttf-tuffy ttf-sjfonts ttf-georgewilliams ttf-fifthhorseman-dkg-handwriting ttf-essays1743 ttf-opensymbol ttf-mgopen ttf-freefont ttf-dustin ttf-dejavu-extra ttf-dejavu-core ttf-dejavu ttf-bpg-georgian-fonts ttf-bitstream-vera equivs ttf-sil-gentium ttf-aenigma gnome-specimen
clear
# Disable error report
echo "Disabling error report"
sudo sed -i 's/enabled=1/enabled=0/' /etc/default/apport
sudo service apport stop
clear
# Install Wine
#echo "Installing Wine"
#sudo add-apt-repository -y ppa:ubuntu-wine/ppa
#sudo apt-get -y update
#sudo apt-get -y install wine1.5
#clear
# Install GIMP
#echo "Installing GIMP"
#sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp
#sudo apt-get -y update
#sudo apt-get -y install gimp gimp-plugin-registry gimp-resynthesizer
#clear
# Install Middleman
echo "Installing Middleman"
gem install middleman
clear
# Install Handbrake
echo "Installing Handbrake"
sudo add-apt-repository -y ppa:stebbins/handbrake-releases
sudo apt-get -y update
sudo apt-get -y install handbrake-gtk handbrake-cli
clear
# Install PeaZip
echo "Installing PeaZip"
sudo add-apt-repository -y ppa:upubuntu-com/ppa
sudo apt-get -y update
sudo apt-get -y install peazip
clear
# Install CuttleFish
echo "Installing CuttleFish"
sudo add-apt-repository -y ppa:noneed4anick/cuttlefish
sudo apt-get -y update
sudo apt-get -y install cuttlefish
clear
# Install LibrePlan
echo "Installing LibrePlan"
sudo add-apt-repository -y ppa:libreplan/ppa
sudo apt-get -y update
sudo apt-get -y install libreplan
clear
# Install GRsync
echo "Installing Grsync"
sudo apt-get -y install grsync
clear
# Install TuxOnIce
#echo "Installing TuxOnIce"
#sudo add-apt-repository -y ppa:tuxonice/ppa
#sudo apt-get -y update
#sudo apt-get -y install tuxonice-userui linux-generic-tuxonice linux-headers-generic-tuxonice
#sudo ln -s /usr/lib/tuxonice-userui/tuxoniceui /usr/local/sbin/tuxoniceui_text
#clear
# Install GetDeb
#echo "Installing GetDeb"
#cd /tmp
#wget -O getdeb-repository_0.1-1_all.deb http://goo.gl/ScikR
#sudo dpkg -i getdeb-repository_0.1-1_all.deb
#sudo apt-get -y update
#clear
# Install PlayDeb
#echo "Installing PlayDeb"
#cd /tmp
#wget -O playdeb_0.3-1_all.deb http://goo.gl/slS92
#sudo dpkg -i playdeb_0.3-1_all.deb
#sudo apt-get -y update
#clear
#Configure startup applications
#http://handytutorial.com/display-hidden-startup-applications-in-ubuntu-13-04/
#http://dtek.net/blog/how-stop-gnome-keyring-clobbering-opensshs-ssh-agent-ubuntu-1204
#sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop
#cp /etc/xdg/autostart/*.desktop to ~/.config/autostart/
#sed -i 's/NoDisplay=true/NoDisplay=false/g' ~/.config/autostart/*.desktop
#echo "Type: ALT+F2 -> "Startup Application" and configure
#Install Copy
#http://opensas.wordpress.com/2013/05/04/multiplatform-dropbox-alternative-with-lots-of-gb-for-free/
cd ~
wget https://copy.com/install/linux/Copy.tgz
tar xzvf Copy.tgz
rm Copy.tgz
cd copy/x86_64
sudo ./CopyAgent -installOverlay
.CopyAgent
#Install Compression/Decompression tools:
sudo apt-get install p7zip-rar p7zip-full unace unrar zip unzip sharutils rar uudeview mpack arj cabextract file-roller
#Install app boot managers
#http://www.upubuntu.com/2012/01/two-useful-tools-for-managing-startup.html
sudo apt-get -y install sysv-rc-conf
#Extra codecs
sudo apt-get install non-free-codecs libxine1-ffmpeg gxine mencoder totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 mpg321
#Others Apps
#http://www.noobslab.com/2013/06/open-as-administrator-for-ubuntu.html
#https://github.com/emre/storm
#https://github.com/emre/storm-indicator
#Move Minimize, Maximize, Close Buttons to Right:
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
#Tweak Swap
#http://www.hecticgeek.com/2012/06/how-to-tweak-swap-ubuntu-linux/
#https://help.ubuntu.com/community/SwapFaq
#Linux Kernel with patch CK - BFS/BFQ
#http://pf.natalenko.name/
#http://www.webupd8.org/2013/05/get-better-linux-desktop-performance.html
#http://www.hecticgeek.com/2012/06/bfs-kernel-task-scheduler-improve-responsiveness-computer/
#http://www.hecticgeek.com/2012/11/bfq-loads-programs-extremely-fast-under-heavy-disk-io-workloads-ubuntu/
#http://forum.ubuntu.ro/viewtopic.php?id=19724
#http://liquorix.net/
#http://www.hackhowtofaq.com/blog/how-to-install-liquorix-zen-kernel-on-ubuntu-mint-linux/
#Other sources for consulting
#http://www.noobslab.com/2013/04/tweaksthings-to-do-after-install-of.html
#http://www.unixmen.com/042013-top-things-to-do-after-installing-ubuntu-13-04-raring-ringtail/
#http://www.webupd8.org/2013/04/7-things-to-do-after-installing-ubuntu.html
#http://opensas.wordpress.com/2013/04/28/taming-the-raring-ringtail/
#http://ubuntuguide.org/wiki/Ubuntu:Raring
#http://www.hecticgeek.com/2012/06/few-things-to-speed-up-ubuntu/
#Ext4 Defrag
#http://www.hecticgeek.com/2012/10/defragment-ext4-file-systems-using-e4defrag-ubuntu/
#Grub Customizer
http://itsfoss.com/windows-default-os-dual-boot-ubuntu-1304-easy/
# End! ;)
echo "You MUST restart your system right now."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment