Last active
August 29, 2015 14:06
-
-
Save donkaban/baecf179bde05ad20f25 to your computer and use it in GitHub Desktop.
debian toolset installer
This file contains 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 | |
VERSION="3.0" | |
ERR_COLOR="\033[31m" | |
NFO_COLOR="\033[32m" | |
WRN_COLOR="\033[33m" | |
SCRIPT_NAME=`basename $0` | |
ARCH=$(uname -i) | |
NAME=$(lsb_release -si) | |
############################################################################ | |
function err { | |
echo -e "\n" $ERR_COLOR $1 $2 $3 $4 $5 $6 "\n" ; tput sgr0;} | |
function msg { | |
echo -e $NFO_COLOR $1 $2 $3 $4 $5 $6 ; tput sgr0;} | |
function install { | |
msg "------------- Install : " $WRN_COLOR $1 $NFO_COLOR " -------------------" | |
apt-get install -y $1 | |
} | |
############################################################################ | |
if [ $NAME != "Ubuntu" -a $NAME != "Debian" a $NAME != "LinuxMint" ]; then | |
err "you have to use ubuntu, mint or debian dist" | |
exit 1 | |
fi | |
if [ "$(id -u)" != "0" ]; then | |
err "need root permissions" "try sudo " $SCRIPT_NAME | |
exit 1 | |
fi | |
############################################################################ | |
msg "Install " $ARCH $NAME " (c) kabanerro debian linux toolset version " $VERSION | |
install curl | |
install apt-file | |
msg "Update :" | |
curl -sL https://deb.nodesource.com/setup | bash - | |
msg "Source control systems : " | |
install git | |
install subversion | |
install mercurial | |
msg "Install technical prerequisites :" | |
install linux-headers-`uname -r` | |
install linux-source | |
install libc6-dev | |
msg "Install development stuff :" | |
install coreutils | |
install make | |
install scons | |
install cmake | |
msg "Install compilers :" | |
install gcc | |
install g++ | |
install clang | |
msg "Install python stuff" | |
install python-setuptools | |
msg "Install OpenGL stuff :" | |
install mesa-common-dev | |
install libgl1-mesa-dev | |
install freeglut3-dev | |
msg "Install MM stuff" | |
install libvorbis-dev | |
install libogg-dev | |
install libtheora-dev | |
install libopenal-dev | |
msg "Install node.js :" | |
install nodejs | |
npm install npm -g | |
npm install bower -g | |
npm install forever -g | |
if [ $ARCH == "x86_64" ]; then | |
msg "Install 64bit specific stuff :" | |
install gcc-multilib | |
install ia32-libs | |
install g++-multilib | |
install libc6-dev-i386 | |
msg "Fix ubuntu mesa blowup :" | |
rm -f /usr/lib/x86_64-linux-gnu/mesa/libGL.so | |
ln /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/mesa/libGL.so | |
fi | |
msg "Clean apt cache" | |
apt-get -y autoremove | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment