#!/bin/bash set -x export DEBIAN_FRONTEND=noninteractive MRUM="main restricted universe multiverse" M="mirror://mirrors.ubuntu.com/mirrors.txt" cat > /etc/apt/sources.list <> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc source ~/.bashrc git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.6.1 rbenv global 2.6.1 gem update --system gem install bundler --no-document EOF