Skip to content

Instantly share code, notes, and snippets.

@pedro-stanaka
Last active October 11, 2018 17:14
Show Gist options
  • Save pedro-stanaka/10267710 to your computer and use it in GitHub Desktop.
Save pedro-stanaka/10267710 to your computer and use it in GitHub Desktop.
Install all things i need in a linux (debian-based)... 64 bits version
#!/bin/sh
# Upgrade packages that are available to update
sudo apt-get update
sudo apt-get -y upgrade
# Miscelaneous tools and media players and game emulators
sudo apt-get install -y build-essential ubuntu-restricted-extras htop vcl smplayer k3b audacity audacious audacious-plugins visualboyadvance pcsxr
# Add ppa for last stable git
sudo apt-add-repository -y ppa:git-core/ppa
sudo apt-get update
# Install full latex & ABNTEX2 & pygments (for minted)
sudo apt-get install -y texlive-full
wget http://dl.bintray.com/laurocesar/generic/abntex2.tds-1.9.2.zip -O abntex.zip
unzip abntex.zip -d abntex; cd abntex; sudo make install;
sudo apt-get install -y python-setuptools
sudo easy_install pip
sudo pip install Pygments
# Install zsh and dependencies for oh-my-zsh
sudo apt-get install -y zsh git-core
git clone https://github.com/clvv/fasd.git ~/Downloads/fasd
cd ~/Downloads/fasd/; sudo make install; cd ..; rm -rf fasd
# Install oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
# Change default shell to zsh
chsh -s `which zsh`
# Install yakuake
sudo apt-get install yakuake
# Install Sublime 3
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install -y sublime-text-installer
# Install Postgres
zsh postgres-install.sh
# Install mendeley
wget http://www.mendeley.com/repositories/ubuntu/stable/amd64/mendeleydesktop-latest -O mendeley.deb; sudo dpkg -i mendeley.deb; rm mendeley.deb
# Install Google Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O chrome.deb; sudo dpkg -i chrome.deb; rm -f chrome.deb
# Install JDK Oracle
sudo apt-add-repository -y ppa:webupd8team/java && sudo apt-get update
sudo apt-get install -y oracle-java7-installer
# Install TouchEgg - Multigesture recognition
sudo apt-get install -y touchegg build-essential libqt4-dev libx11-6
cd ~/Downloads; git clone https://github.com/Raffarti/Touchegg-gce.git touchegg-gce;
mkdir /opt/
sudo mv touchegg-gce /opt/
cd /opt/touchegg-gce; qmake; make
# Instal VB + Vagrant + Ansible
sudo apt-get install virtualbox-ose virtualbox-guest-additions-iso
cd ~/Download; wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.5.3_x86_64.deb -O vagrant.deb
sudo dpkg -i vagrant.deb
sudo add-apt-repository -y ppa:rquillo/ansible && sudo apt-get update
sudo apt-get install -y ansible
#TODO install machines for ansible
# Install gimp
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp && sudo apt-get update
sudo apt-get install -y gimp gimp-plugin-registry
# install internet tools
sudo apt-get install -y filezilla
sudo sh -c "echo 'deb http://archive.canonical.com/ubuntu/ precise partner' >> /etc/apt/sources.list.d/canonical_partner.list"
sudo apt-get update
sudo apt-get install skype
sudo add-apt-repository -y ppa:bumblebee/stable
sudo apt-get install bumblebee bumblebee-nvidia virtualgl linux-headers-generic-lts-raring
# may require interation leave at last
cd ~/Downloads/; wget http://installer.jdownloader.org/jd_unix_0_9.sh -O jd.sh; chmod +x jd.sh; ./jd.sh
sudo reboot#!/bin/sh
# Upgrade packages that are available to update
sudo apt-get update
sudo apt-get -y upgrade
# Miscelaneous tools and media players and game emulators
sudo apt-get install -y build-essential ubuntu-restricted-extras htop vcl smplayer k3b audacity audacious audacious-plugins visualboyadvance pcsxr
# Add ppa for last stable git
sudo apt-add-repository -y ppa:git-core/ppa
sudo apt-get update
# Install full latex & ABNTEX2 & pygments (for minted)
sudo apt-get install -y texlive-full
wget http://dl.bintray.com/laurocesar/generic/abntex2.tds-1.9.2.zip -O abntex.zip
unzip abntex.zip -d abntex; cd abntex; sudo make install;
sudo apt-get install -y python-setuptools
sudo easy_install pip
sudo pip install Pygments
# Install zsh and dependencies for oh-my-zsh
sudo apt-get install -y zsh git-core
git clone https://github.com/clvv/fasd.git ~/Downloads/fasd
cd ~/Downloads/fasd/; sudo make install; cd ..; rm -rf fasd
# Install oh-my-zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
# Change default shell to zsh
chsh -s `which zsh`
# Install yakuake
sudo apt-get install yakuake
# Install Sublime 3
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install -y sublime-text-installer
# Install Postgres
zsh postgres-install.sh
# Install mendeley
wget http://www.mendeley.com/repositories/ubuntu/stable/amd64/mendeleydesktop-latest -O mendeley.deb; sudo dpkg -i mendeley.deb; rm mendeley.deb
# Install Google Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O chrome.deb; sudo dpkg -i chrome.deb; rm -f chrome.deb
# Install JDK Oracle
sudo apt-add-repository -y ppa:webupd8team/java && sudo apt-get update
sudo apt-get install -y oracle-java7-installer
# Install TouchEgg - Multigesture recognition
sudo apt-get install -y touchegg build-essential libqt4-dev libx11-6
cd ~/Downloads; git clone https://github.com/Raffarti/Touchegg-gce.git touchegg-gce;
mkdir /opt/
sudo mv touchegg-gce /opt/
cd /opt/touchegg-gce; qmake; make
# Instal VB + Vagrant + Ansible
sudo apt-get install virtualbox-ose virtualbox-guest-additions-iso
cd ~/Download; wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.5.3_x86_64.deb -O vagrant.deb
sudo dpkg -i vagrant.deb
sudo add-apt-repository -y ppa:rquillo/ansible && sudo apt-get update
sudo apt-get install -y ansible
#TODO install machines for ansible
# Install gimp
sudo add-apt-repository -y ppa:otto-kesselgulasch/gimp && sudo apt-get update
sudo apt-get install -y gimp gimp-plugin-registry
# install internet tools
sudo apt-get install -y filezilla
sudo sh -c "echo 'deb http://archive.canonical.com/ubuntu/ precise partner' >> /etc/apt/sources.list.d/canonical_partner.list"
sudo apt-get update
sudo apt-get install skype
sudo add-apt-repository -y ppa:bumblebee/stable
sudo apt-get install bumblebee bumblebee-nvidia virtualgl linux-headers-generic-lts-raring
# may require interation leave at last
cd ~/Downloads/; wget http://installer.jdownloader.org/jd_unix_0_9.sh -O jd.sh; chmod +x jd.sh; ./jd.sh
sudo reboot
#!/bin/zsh
echo "Configuring POSTGRESQL..."
sudo apt-get install -y postgresql-9.1 postgresql-client-9.1 postgresql-contrib-9.1 libpq-dev postgresql-server-dev-9.1
##################
# Postgres files
sudo rm /etc/postgresql/9.1/main/pg_hba.conf
sudo rm /etc/postgresql/9.1/main/postgresql.conf
sudo wget https://gist.githubusercontent.com/pedro-stanaka/10264984/raw/a9af0eafe8bdb3f0a3c284ade74dd06cfac128ee/pg_hba.conf \
-O /etc/postgresql/9.1/main/pg_hba.conf
sudo wget https://gist.githubusercontent.com/pedro-stanaka/10265881/raw/aab89bf33dd3a36f22305614344eb87c1b3faaa6/postgresql.conf \
-O /etc/postgresql/9.1/main/postgresql.conf
##################
# Restart postgres
sudo service postgresql restart
sudo -u postgres psql -U postgres -d postgres -c "alter user postgres with password '123456';"
##################
# Giving permissions
sudo rm -f ~/.pgpass
echo "*:*:*:*:postgres:123456" >> ~/.pgpass
chmod 0600 ~/.pgpass
################
# Install POSTGIS 2.X
# Update repositories: To get GEOS 3.3.2
sudo apt-add-repository -y ppa:sharpie/for-science
sudo apt-add-repository -y ppa:sharpie/postgis-nightly
sudo apt-get update
# PostGIS - PostgreSQL extension
sudo apt-get install -y postgresql-9.1-postgis=2.0~r8143~ppa21~precise1
# PostGIS Configuration
sudo su postgres -c "createdb --locale=en_US.UTF-8 -E UTF8 template_postgis2"
sudo su postgres -c "createlang -d template_postgis2 plpgsql"
sudo su postgres -c "psql -d postgres -c \"UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis2'\""
sudo su postgres -c "psql -d template_postgis2 -f /usr/share/postgresql/9.1/contrib/postgis-2.1/postgis.sql"
sudo su postgres -c "psql -d template_postgis2 -f /usr/share/postgresql/9.1/contrib/postgis-2.1/spatial_ref_sys.sql"
sudo su postgres -c "psql -d template_postgis2 -f /usr/share/postgresql/9.1/contrib/postgis-2.1/rtpostgis.sql"
sudo su postgres -c "psql -d template_postgis2 -c \"GRANT ALL ON geometry_columns TO PUBLIC;\""
sudo su postgres -c "psql -d template_postgis2 -c \"GRANT ALL ON geography_columns TO PUBLIC;\""
sudo su postgres -c "psql -d template_postgis2 -c \"GRANT ALL ON spatial_ref_sys TO PUBLIC;\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment