Created
December 17, 2011 11:45
-
-
Save pbosetti/1490025 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/sh | |
if [[ $EUID -ne 0 ]]; then | |
echo 1>&2 | |
echo 1>&2 | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" 1>&2 | |
echo "! This script must be run as root! !" 1>&2 | |
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" 1>&2 | |
echo | |
exit 1 | |
fi | |
echo | |
echo "************************************" | |
echo "Updating package list" | |
if ! apt-get update; then | |
echo "Could not update package list" | |
exit $? | |
fi | |
pkgs=(git-core build-essential gcc g++ chromium-browser gnuplot curl libglut3-dev libglu1-mesa-dev libreadline6-dev libssl-dev zlib1g-dev) | |
echo | |
echo "************************************" | |
echo "Installing packages" | |
for p in ${pkgs[@]} | |
do | |
echo | |
echo "Installing ${p}" | |
echo "---------------" | |
if ! apt-get install -y --force-yes ${p}; then | |
echo "Error while installing ${p}" | |
exit $? | |
fi | |
done | |
echo | |
echo "************************************" | |
echo " ALL DONE!" | |
echo "************************************" | |
echo " Now open a standard (non-root) terminal and copy-and-paste the following command:" | |
echo " bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )" | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment