Skip to content

Instantly share code, notes, and snippets.

@bnymn
Last active January 5, 2021 19:37
Show Gist options
  • Save bnymn/73bd343a2c23eace75fbeea83f5bb396 to your computer and use it in GitHub Desktop.
Save bnymn/73bd343a2c23eace75fbeea83f5bb396 to your computer and use it in GitHub Desktop.
# Install Oh-my-zsh
sudo apt-get install -y zsh
sudo usermod -s /usr/bin/zsh $(whoami)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install PHP 7.4
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.4-bcmath \
php7.4-bz2 \
php7.4-cli \
php7.4-curl \
php7.4-dev \
php7.4-fpm \
php7.4-gd \
php7.4-gmp \
php7.4-imap \
php7.4-intl \
php7.4-json \
php7.4-mbstring \
php7.4-mysql \
php7.4-soap \
php7.4-sqlite3 \
php7.4-tidy \
php7.4-xml \
php7.4-xmlrpc \
php7.4-xsl \
php7.4-zip
# Install PHP-xdebug
sudo apt-get install -y php-xdebug
# Install MySQL Server
sudo apt-get install -y mysql-server
# Install .rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
cd ~
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
rbenv init
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
# Install ruby dependencies
sudo apt-get install -y zlib1g-dev \
libreadline-dev \
libmysqlclient-dev
# Install OpenSSL 1.0
mkdir ~/src
cd ~/src
wget https://www.openssl.org/source/openssl-1.0.2s.tar.gz
tar xvzf openssl-1.0.2s.tar.gz
cd openssl-1.0.2s
mkdir ~/.rubies
mkdir ~/.rubies/openssl-1.0.2s
./config --prefix=$HOME/.rubies/openssl-1.0.2s --shared
make
make install
# Install ruby 3.0
rbenv install 3.0.0
# Install ruby 2.3.1
RUBY_CONFIGURE_OPTS=--with-openssl-dir=$HOME/.rubies/openssl-1.0.2s rbenv install 2.3.1
# Install midnight-commander
sudo apt-get install -y mc
# Install asdf
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
# Install elixir dependencies
sudo apt-get install -y libncurses5-dev xsltproc libxml2-utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment