Skip to content

Instantly share code, notes, and snippets.

@RaphaelAudet
Created October 25, 2018 08:27
Show Gist options
  • Save RaphaelAudet/c089a8283290d06c390ad1e96be8029a to your computer and use it in GitHub Desktop.
Save RaphaelAudet/c089a8283290d06c390ad1e96be8029a to your computer and use it in GitHub Desktop.
quick and dirty server
#!/bin/bash
sudo apt-get install zsh
sudo apt-get install build-essential git-core tmux
sudo chsh ubuntu /usr/bin/zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
~/.rbenv/bin/rbenv init
vi ../.zshrc
#logout
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment