Skip to content

Instantly share code, notes, and snippets.

@atefth
Created December 17, 2018 12:08
Show Gist options
  • Save atefth/1817ee1ae35638c3e27ce819202db4fe to your computer and use it in GitHub Desktop.
Save atefth/1817ee1ae35638c3e27ce819202db4fe to your computer and use it in GitHub Desktop.
Ubuntu 18 + rbenv + rails + mysql
sudo apt-get -y update
#development tools
sudo apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline-dev libreadline6-dev zlib1g-dev libncurses5-dev libxml2-dev libxslt1-dev libffi-dev gcc g++ make
#rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
#rbenv-aliases
git clone https://github.com/tpope/rbenv-aliases.git ~/.rbenv/plugins/rbenv-aliases
rbenv alias --auto
git clone https://github.com/rbenv/rbenv-default-gems.git ~/.rbenv/plugins/rbenv-default-gems
#ruby-build
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
#mysql
wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
sudo apt update
sudo apt-get install mysql-server
#nginx
sudo apt-get install nginx
#node
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt install nodejs
#yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo apt-get update && sudo apt-get install yarn
#rails
sudo apt-get install libmysqlclient-dev
#ImageMagick
sudo apt build-dep imagemagick
wget https://www.imagemagick.org/download/ImageMagick.tar.gz
tar xf ImageMagick.tar.gz
cd ImageMagick-7*
./configure && make
sudo make install
sudo ldconfig /usr/local/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment