Skip to content

Instantly share code, notes, and snippets.

@newmanbrad
Last active August 29, 2015 14:05
Show Gist options
  • Save newmanbrad/001f431ac4e32f730ac8 to your computer and use it in GitHub Desktop.
Save newmanbrad/001f431ac4e32f730ac8 to your computer and use it in GitHub Desktop.
Install Ionic Virtualbox (Ubuntu 14.04)
// Instructions for setting up IONIC on Ubuntu non-numbered step are needed for use of Virtual Box only!
// Revised: 08/22/2014
// Revisor: Brad Newman
// To create your mounted folder:
sharename="whatever.you.want.to.call.it";
sudo mkdir /mnt/$sharename
sudo chmod 777 /mnt/$sharename
sudo mount -t vboxsf -o uid=1000,gid=1000 $sharename /mnt/$sharename
Install Ionic to dev android app on ubuntu 14.04
0. Instal ubuntu-14.04-desktop-amd64.iso
sudo apt-get update
sudo apt-get install exfat-fuse exfat-utils
sudo reboot
0.1 Download: jdk-7u67-linux-x64.tar.gz,apache-ant-1.9.4-bin.tar.gz, adt-bundle-linux-x86_64-20140321.zip
1. Copy jdk-7u67-linux-x64.tar.gz, apache-ant-1.9.4-bin.tar.gz to /opt and copy adt-bundle-linux-x86_64-20140321.zip to HOME/android
cd /opt
sudo tar zxvf jdk-7u67-linux-x64.tar.gz
sudo tar zxvf apache-ant-1.9.4-bin.tar.gz
cd ~/android
unzip adt-bundle-linux-x86_64-20140321.zip
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
sudo apt-get install vim
sudo vim /etc/environment
// UBUNTU 14.04 SERVER! - ADD THESE TO THE EXISTING PATHS DO NOT REMOVE EXISTING PATHS!
add:
PATH=":/opt/jdk1.7.0_67/bin:/home/xxx/android/adt-bundle-linux-x86_64-20140702/sdk/platform-tools:/home/xxx/android/adt-bundle-linux-x86_64-20140702/sdk/tools:/opt/apache-ant-1.9.4/bin"
CLASSPATH="/opt/jdk1.7.0_67/lib"
JAVA_HOME="/opt/jdk1.7.0_67"
ANDROID_HOME="/home/xxx/android/adt-bundle-linux-x86_64-20140702/sdk"
ANT_HOME="/opt/apache-ant-1.9.4"
sudo reboot
//UBUNTU 14.04 DESKTOP - ADD THESE TO THE EXISTING PATHS DO NOT REMOVE EXISTING PATHS!
add:
PATH=":/opt/jdk1.7.0_67/bin:/home/xxx/android/adt-bundle-linux-x86_64-20140702/sdk/platform-tools:/home/xxx/android/adt-bundle-linux-x86_64-20140702/sdk/tools:/opt/apache-ant-1.9.4/bin"
CLASSPATH="/opt/jdk1.7.0_67/lib"
JAVA_HOME="/opt/jdk1.7.0_67"
ANDROID_HOME="/home/xxx/android/adt-bundle-linux-x86_64-20140702/sdk"
ANT_HOME="/opt/apache-ant-1.9.4"
sudo reboot
2. sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
node -v
npm -v
3. sudo apt-get install git-core
sudo npm install -g cordova
sudo npm install -g gulp
sudo npm install -g ripple-emulator
sudo npm install -g ionic
4.
sudo apt-get install curl
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo npm update -g npm
sudo npm update -g cordova
//************ NOW BUILD YOUR APP - HAVE A NICE DAY *************//
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment