Skip to content

Instantly share code, notes, and snippets.

@jleo3
Created January 4, 2018 19:04
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 jleo3/bcb246152e2496256d161b11203aa83d to your computer and use it in GitHub Desktop.
Save jleo3/bcb246152e2496256d161b11203aa83d to your computer and use it in GitHub Desktop.
#! /usr/bin/env bash
set -o errexit
sudo apt-get update && sudo apt-get upgrade
install="sudo apt-get install -y -q"
update="sudo apt-get update -q"
# setup install directory
mkdir -p /tmp/install
INSTALL_DIR=/tmp/install
# basics for usability
${install} \
gnome-do gnome-do-plugins \
gnome-tweak-tool \
gcolor2 \
keepassx \
msttcorefonts \
istanbul
# basics for development
${install} \
git-core gitk tig subversion \
build-essential valgrind \
ctags \
pepperflashplugin-nonfree \
vim autocutsel puppet-el \
postgresql postgresql-client postgresql-contrib libpq-dev \
mysql-server-5.5 mysql-client-5.5 libmysqlclient-dev \
sqlite3 libsqlite3-dev \
openjdk-7-jdk \
silversearcher-ag \
ack-grep \
curl wget \
libcurl4-gnutls-dev \
cmake autoconf libtool \
python-dev \
imagemagick \
libmagickwand-dev \
libpcre++0 libpcre++-dev libevent-dev \
libssl-dev libcrypto++-dev \
libreadline-dev \
libxml2 libxml2-dev libxslt1.1 libxslt-dev \
libyajl-dev libyaml-dev \
vim-gnome \
qt5-default \
node npm \
shutter \
libqt5webkit5-dev \
colordiff \
zip
mkdir -p $HOME/dev
mkdir -p $HOME/dev/go
# HEROKU TOOLBELT
cd $INSTALL_DIR && wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
cd $INSTALL_DIR && rm install-ubuntu.sh
# BASH IT
git clone https://github.com/revans/bash-it.git ~/.bash_it
~/.bash_it/install.sh
# RUBY
# install ruby-install:
wget -O $INSTALL_DIR/ruby-install-0.4.3.tar.gz https://github.com/postmodern/ruby-install/archive/v0.4.3.tar.gz
cd $INSTALL_DIR && tar -xzvf ruby-install-0.4.3.tar.gz
cd $INSTALL_DIR/ruby-install-0.4.3/ && sudo make install
rm -rf $INSTALL_DIR/ruby-install*
# install chruby:
wget -O $INSTALL_DIR/chruby-0.3.8.tar.gz https://github.com/postmodern/chruby/archive/v0.3.8.tar.gz
cd $INSTALL_DIR && tar -xzvf chruby-0.3.8.tar.gz
cd $INSTALL_DIR/chruby-0.3.8/ && sudo make install
rm -rf $INSTALL_DIR/chruby*
# install rubies
ruby-install ruby 2.4.1
ruby-install ruby 2.3.0
ruby-install ruby 2.3.3
ruby-install ruby 2.2.2
source /usr/local/share/chruby/chruby.sh
chruby 2.4.1
gem install bundler
# REDIS
# install redis
wget -O $INSTALL_DIR/redis-stable.tar.gz http://download.redis.io/redis-stable.tar.gz
cd $INSTALL_DIR && tar xvzf redis-stable.tar.gz
cd $INSTALL_DIR/redis-stable && make
cd $INSTALL_DIR/redis-stable && sudo make install
# configure redis and run on init.d
sudo mkdir /etc/redis
sudo mkdir /var/redis
sudo cp $INSTALL_DIR/redis-stable/utils/redis_init_script /etc/init.d/redis_6379
sudo mkdir /var/redis/6379
# FINISH REDIS CONFIG MANUALLY
# cp $DOTFILES_DIR/6379.conf /etc/redis/6379.conf
# sudo update-rc.d redis_6379 defaults
# sudo /etc/init.d/redis_6379 start
# spotify
sudo sh -c 'echo "deb http://repository.spotify.com/ stable non-free" > /etc/apt/sources.list.d/spotify.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
sudo apt-get update && sudo apt-get install -y spotify-client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment