| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #!/bin/bash
- RETCODE=$(fw_exists fwbm_prereqs_installed)
- [ ! "$RETCODE" == 0 ] || { \
- echo "Prerequisites installed!";
- return 0;
- }
- sudo apt-get -y update
- sudo apt-get -y upgrade
- # WARNING: DONT PUT A SPACE AFTER ANY BACKSLASH OR APT WILL BREAK
- sudo apt-get -y install \
- cmake build-essential automake `# Needed for building code` \
- curl wget unzip `# Common tools` \
- software-properties-common `# Needed for add-apt-repository` \
- git-core mercurial `# Version control systems` \
- libpcre3 libpcre3-dev libpcrecpp0 `# Regular expression support` \
- libssl-dev libcurl4-openssl-dev `# SSL libraries` \
- libmysqlclient-dev \
- mongodb-clients \
- libsqlite3-dev sqlite3 `# Database libraries` \
- zlib1g-dev python-software-properties \
- libreadline6-dev \
- libbz2-dev \
- libyaml-dev libxml2-dev \
- libxslt-dev libgdbm-dev ncurses-dev \
- libffi-dev htop libtool bison libevent-dev \
- libgstreamer-plugins-base0.10-0 libgstreamer0.10-0 \
- liborc-0.4-0 libwxbase2.8-0 libwxgtk2.8-0 libgnutls-dev \
- libjson0-dev libmcrypt-dev libicu-dev gettext \
- libpq-dev mlton cloc
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get -y update
- sudo apt-get install -y gcc-4.8 g++-4.8
- # Stop permanently overwriting people's files just for
- # trying out our software!
- RETCODE=$(fw_exists ~/.bash_profile.bak)
- [ ! "$RETCODE" == 0 ] || { \
- echo "Backing up your original ~/.bash_profile, ~/.profile, ~/.bashrc"
- mv ~/.bash_profile ~/.bash_profile.bak || true
- mv ~/.profile ~/.profile.bak || true
- mv ~/.bashrc ~/.bashrc.bak || true
- }
- sudo sh -c "echo '* - nofile 65535' >> /etc/security/limits.conf"
- touch fwbm_prereqs_installed
|