Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aurangzaib/9ddb21a43033b392fff8 to your computer and use it in GitHub Desktop.

Select an option

Save aurangzaib/9ddb21a43033b392fff8 to your computer and use it in GitHub Desktop.

Revisions

  1. Terry Pang revised this gist Jul 8, 2014. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion Install Ionic to dev android app on ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -41,4 +41,12 @@ Install Ionic to dev android app on ubuntu 14.04
    ionic platform add android
    ionic build android
    ripple emulate --path www
    ionic emulate android
    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
  2. Terry Pang revised this gist Jun 6, 2014. 1 changed file with 0 additions and 13 deletions.
    13 changes: 0 additions & 13 deletions Install Ionic to dev android app on ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -14,19 +14,6 @@ Install Ionic to dev android app on ubuntu 14.04
    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
    sudo gedit eclipse.desktop
    add:
    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=eclipse
    Name[zh_CN]=eclipse
    Comment=eclipse
    Comment[zh_CN]=eclipse
    Exec=/home/tecn/adt-bundle-linux-x86_64-20140321/eclipse/eclipse
    Icon=/home/tecn/adt-bundle-linux-x86_64-20140321/eclipse/icon.xpm
    Terminal=false
    sudo cp eclipse.desktop /usr/share/applications
    sudo gedit /etc/environment
    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"
  3. Terry Pang revised this gist Jun 6, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Install Ionic to dev android app on ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -45,11 +45,13 @@ Install Ionic to dev android app on ubuntu 14.04
    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
  4. Terry Pang revised this gist Jun 5, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install Ionic to dev android app on ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,7 @@ Install Ionic to dev android app on ubuntu 14.04
    sudo npm install -g gulp
    sudo npm install -g ionic

    4. Create AVD "myIonic"
    4. Create AVD "myIonic" (android create avd -n myIonic -t android-19)
    ionic start myApp tabs
    cd myApp
    ionic platform add android
  5. Terry Pang revised this gist Jun 5, 2014. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions Install Ionic to dev android app on ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -5,13 +5,12 @@ Install Ionic to dev android app on ubuntu 14.04
    sudo apt-get install exfat-fuse exfat-utils
    sudo reboot

    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 and android-studio-bundle-135.1078000-linux.tgz to HOME/android
    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
    tar zxvf android-studio-bundle-135.1078000-linux.tgz
    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
  6. Terry Pang revised this gist Jun 4, 2014. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Install Ionic to dev android app on ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -9,8 +9,9 @@ Install Ionic to dev android app on ubuntu 14.04
    cd /opt
    sudo tar zxvf jdk-7u60-linux-x64.tar.gz
    sudo tar zxvf apache-ant-1.9.4-bin.tar.gz
    sudo unzip adt-bundle-linux-x86_64-20140321.zip
    sudo tar zxvf android-studio-bundle-135.1078000-linux.tgz
    cd ~/android
    unzip adt-bundle-linux-x86_64-20140321.zip
    tar zxvf android-studio-bundle-135.1078000-linux.tgz
    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
  7. Terry Pang revised this gist Jun 4, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Install Ionic to dev android app on ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -44,6 +44,7 @@ Install Ionic to dev android app on ubuntu 14.04

    3. sudo apt-get install git-core
    sudo npm install -g cordova
    sudo npm install -g gulp
    sudo npm install -g ionic

    4. Create AVD "myIonic"
  8. Terry Pang created this gist Jun 4, 2014.
    54 changes: 54 additions & 0 deletions Install Ionic to dev android app on ubuntu 14.04
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    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

    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 and android-studio-bundle-135.1078000-linux.tgz 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
    sudo unzip adt-bundle-linux-x86_64-20140321.zip
    sudo tar zxvf android-studio-bundle-135.1078000-linux.tgz
    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
    sudo gedit eclipse.desktop
    add:
    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=eclipse
    Name[zh_CN]=eclipse
    Comment=eclipse
    Comment[zh_CN]=eclipse
    Exec=/home/tecn/adt-bundle-linux-x86_64-20140321/eclipse/eclipse
    Icon=/home/tecn/adt-bundle-linux-x86_64-20140321/eclipse/icon.xpm
    Terminal=false
    sudo cp eclipse.desktop /usr/share/applications
    sudo gedit /etc/environment
    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 ionic

    4. Create AVD "myIonic"
    ionic start myApp tabs
    cd myApp
    ionic platform add android
    ionic build android
    ionic emulate android