Last active
January 1, 2016 18:09
-
-
Save maran/8182379 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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