Skip to content

Instantly share code, notes, and snippets.

@guilpejon
Last active June 1, 2019 13:48
Show Gist options
  • Save guilpejon/016d278b2d93d81e3f28c42275fae728 to your computer and use it in GitHub Desktop.
Save guilpejon/016d278b2d93d81e3f28c42275fae728 to your computer and use it in GitHub Desktop.
Ubuntu Ruby on Rails Workspace Setup

New Linux RoR Work Setup

Installing Albert

sudo add-apt-repository ppa:nilarimogard/webupd8 && \
sudo apt-get update && \
sudo apt-get install albert

Installing Google Chrome

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - && \
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list && \
sudo apt-get update && \
sudo apt-get install google-chrome-stable

Installing VIM

sudo add-apt-repository ppa:jonathonf/vim && \
sudo apt-get update && \
sudo apt install vim && \
sudo apt-get install vim-gtk libx11-dev libxtst-dev && \
sudo apt-get install curl && \

mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim && \

sudo apt-get install silversearcher-ag && \
sudo apt install libxml2-utils

pip3 install --user pynvim

Swapping CAPSLOCK and ESC

sudo apt-get install gnome-tweak-tool -y && gnome-tweak-tool

Installing Spotify

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 && \
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list && \
sudo apt-get update && \
sudo apt-get install spotify-client

Installing VirtualBox

https://www.virtualbox.org/wiki/Downloads

Installing Slack

https://slack.com/downloads/instructions/ubuntu

Installing Heroku CLI

wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh && \
heroku login

Installing dependencies

sudo apt-get update && \
sudo apt-get install curl && \
sudo apt-get dist-upgrade -y && \
sudo apt-get install apt-transport-https -y && \
curl -sL https://deb.nodesource.com/setup_9.x | sudo bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \
sudo apt-get update && \
sudo apt-get install yarn nodejs -y --no-install-recommends && \
sudo rm -rf /var/lib/apt/lists/* && \
curl -sL https://deb.nodesource.com/test | bash - &&  \
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p && \
sudo apt-get install qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x && \
sudo apt-get install build-essential libcurl4-openssl-dev && \
sudo apt-get install libxslt-dev libxml2-dev

Installing RVM

sudo apt-add-repository -y ppa:rael-gc/rvm && \
sudo apt-get update && \
sudo apt-get install rvm && \
source /etc/profile.d/rvm.sh # para usar na sessão do terminal atual && \

Using Login Bash

Terminal Screenshot

Installing Ruby

rvm install 2.4.4 && \
rvm use 2.4.4 --default

Installing Rails

gem install rails -v 5.0.2

Installing Linters

gem install rubocop && \
sudo npm install --global coffeescript && \
sudo npm install -g coffeelint

Installing Redis

sudo apt-get install redis-server

Installing PostgreSQL

sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' > /etc/apt/sources.list.d/pgdg.list" && \
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - && \
sudo apt-get update && \
sudo apt-get install postgresql-common && \
sudo apt-get install postgresql-9.5 libpq-dev && \

sudo -u postgres createuser guilpejon -s && \

sudo -u postgres psql
postgres=# \password guilpejon
postgres=# \q

Installing GIT

sudo apt-get install git && \
git config --global color.ui true && \
git config --global user.name "Guilherme Pejon" && \
git config --global user.email "EMAIL"

ssh-keygen -t rsa -b 4096 -C "EMAIL"
cat ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment