Skip to content

Instantly share code, notes, and snippets.

@kainio
Created August 22, 2020 21:05
Show Gist options
  • Save kainio/995c02691e4d3417750d67ca44644b33 to your computer and use it in GitHub Desktop.
Save kainio/995c02691e4d3417750d67ca44644b33 to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat libssl-dev zlib1g-dev libmysqlclient-dev libpq-dev libpq-dev libsqlite3-dev
sudo apt-get install -y --no-install-recommends imagemagick postgresql-client
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt-get install -y --no-install-recommends nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && sudo 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
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - \
&& sudo echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google.list
sudo apt-get update \
&& sudo apt-get install -y google-chrome-stable
mkdir ~/chromedriver
sudo wget -q --continue -P ~/chromedriver "http://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip" \
&& unzip ~/chromedriver/chromedriver* -d ~/chromedriver
sudo mv ~/chromedriver/chromedriver /usr/bin/chromedriver
sudo chown root:root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
rm -rf ~/chromedriver
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
redémarer le terminal
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
rbenv install 2.7.1
rbenv global 2.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment