Last active
March 1, 2016 13:05
-
-
Save zaherg/0c589728bf54016c7f88 to your computer and use it in GitHub Desktop.
installing nodejs on ubuntu 12
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
#! /usr/bin/env bash | |
# Make sure the system up to date | |
sudo apt-get install && apt-get -y upgrade | |
echo ">>> Installing Base Packages" | |
# Install base packages | |
sudo apt-get install -y unzip git-core ack-grep vim tmux curl wget build-essential python-software-properties g++ gyp | |
echo ">>> Installing NodeJS" | |
sudo apt-get purge -y nodejs | |
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
sudo apt-get install -y nodejs | |
sudo npm -g install npm@latest-2 | |
echo ">>> Installing MariaDB" | |
# Import repo key | |
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db | |
# Add repo for MariaDB | |
sudo add-apt-repository -y "deb http://mirrors.supportex.net/mariadb/repo/10.0/ubuntu precise main" | |
sudo apt-get update | |
# Install MariaDB without password prompt | |
# Set username to 'root' and password to 'mariadb_root_password' (see Vagrantfile) | |
sudo debconf-set-selections <<< "maria-db-10.0 mysql-server/root_password password root" | |
sudo debconf-set-selections <<< "maria-db-10.0 mysql-server/root_password_again password root" | |
# Install MariaDB | |
sudo apt-get install -y mariadb-server mariadb-client | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment