Skip to content

Instantly share code, notes, and snippets.

@maran
Last active January 1, 2016 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maran/8182379 to your computer and use it in GitHub Desktop.
Save maran/8182379 to your computer and use it in GitHub Desktop.
#!/bin/bash
if grep 'Ubuntu\|Debian' /etc/issue; then
echo "Debian based distro detected; installing RVM"
sudo apt-get install -y libqt4-gui libqt4-dev cmake libssl-dev libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable --autolibs=enabled --ruby
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
elif grep 'Fedora' /etc/issue; then
echo "Fedora detected, not installing RVM"
sudo yum install -y gcc-c++ qt-devel cmake ruby-devel rubygems qtwebkit-devel qtwebkit
fi
gem install mastercoin-wallet
echo "#################################################################"
echo "Please open a new terminal (tab) and start the wallet by typing:"
echo "mastercoin-wallet"
echo "#################################################################"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment