Last active
August 29, 2015 14:05
Revisions
-
newmanbrad revised this gist
Aug 22, 2014 . 1 changed file with 29 additions and 31 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ // 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"; @@ -12,40 +15,41 @@ Install Ionic to dev android app on ubuntu 14.04 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 @@ -55,18 +59,12 @@ Install Ionic to dev android app on ubuntu 14.04 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 *************// -
newmanbrad created this gist
Aug 22, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,72 @@ // 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-7u60-linux-x64.tar.gz,apache-ant-1.9.4-bin.tar.gz, adt-bundle-linux-x86_64-20140321.zip 1. Copy jdk-7u60-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-7u60-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 gedit /etc/environment // UBUNTU 14.04 SERVER! add: PATH=":/opt/jdk1.7.0_60/bin:/home/xxx/android/adt-bundle-linux-x86_64-20140321/sdk/platform-tools:/home/xxx/android/adt-bundle-linux-x86_64-20140321/sdk/tools:/opt/apache-ant-1.9.4/bin" CLASSPATH="/opt/jdk1.7.0_60/lib" JAVA_HOME="/opt/jdk1.7.0_60" ANDROID_HOME="/home/xxx/android/adt-bundle-linux-x86_64-20140321/sdk" ANT_HOME="/opt/apache-ant-1.9.4" sudo reboot //UBUNTU 14.04 DESKTOP add: PATH=":/opt/jdk1.7.0_60/bin:/home/xxx/android/adt-bundle-linux-x86_64-20140321/sdk/platform-tools:/home/xxx/android/adt-bundle-linux-x86_64-20140321/sdk/tools:/opt/apache-ant-1.9.4/bin" CLASSPATH="/opt/jdk1.7.0_60/lib" JAVA_HOME="/opt/jdk1.7.0_60" ANDROID_HOME="/home/xxx/android/adt-bundle-linux-x86_64-20140321/sdk" ANT_HOME="/opt/apache-ant-1.9.4" sudo reboot 2. sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs 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. Create AVD "myIonic" (android create avd -n myIonic -t android-19) ionic start myApp tabs cd myApp ionic platform add android ionic build android ripple emulate --path www ionic emulate android update 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