i use Crunchbang 11 (debian wheezy) 64 bit, Oracle Java JDK
Install libraries for linux 64 bit
sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
if use other linux 64 see this link
Install Android SDK
download from http://developer.android.com/sdk/index.html#download
i have installed eclipse, so I choose SDK Tools Only http://dl.google.com/android/android-sdk_r22.3-linux.tgz
download and extract
my extract path is ~/downloads/android-sdk-linux
# move to /usr/lib sudo mv ~/downloads/android-sdk-linux /usr/lib # run avd, and update library api cd /usr/lib/android-sdk-linux/tools ./android
choose api and install (pst… u just need SDK Platform, ARM EABI System Image, Intel X86 Atom System Image, Google APIs)
Config Value Android SDK to local environtment
# create .bash_profile file cd ~ nano .bash_profile # fill with value export PATH=${PATH}:/usr/lib/android-sdk-linux/platform-tools:/usr/lib/android-sdk-linux/tools # save, and execute .bash_profile # test echo PATH variable echo $PATH$
Install Node.js
(IMHO) you need node.js to install phonegap version 3.3
download node.js from http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
extract it (~/downloads/node)
cd ~/downloads/node ./configure make sudo make install
wait until finish (grab some tea, coffee or sleep)
Install Phonegap & Cordova
when finish install node.js
sudo npm install -g cordova sudo npm install -g phonegap
Test Phonegap
lets say i have workspace folder for android
$ cd ~/workspace $ phonegap create hello -n HelloWorld -i com.example.hello $ cd ~/workspace/hello $ phonegap -V build android
if you have error check this
Install GenyMotion Emulator
i like genymotion emulator, its fast
first you must install virtualbox
download form https://www.virtualbox.org/wiki/Downloads
for debian distro http://download.virtualbox.org/virtualbox/4.3.6/virtualbox-4.3_4.3.6-91406~Debian~wheezy_amd64.deb
install that deb file
download genymotion emulator (subscribe and see your email)
https://cloud.genymotion.com/page/launchpad/download/
get the bin file
$ cd ~/downloads $ chmod +x genymotion-2.0.3_x64_debian.bin $ mv genymotion-2.0.3_x64_debian.bin ~/bin $ cd ~/bin $ ./genymotion-2.0.3_x64_debian.bin
config your genymotion
# run genymotion $ cd ~/bin/genymotion $ ./genymotion
input your account
where you want put image virtual (my path is /media/90F635D3F635BA74/vbox-img/GenyMotion)
where your sdk location
click ok and now add virtual image
you can click play to test 😉
Eclipse Install GenyMotion Plugin
open eclipse
Help -> Install New Software
Fill the fields with these items and then validate:
- Name:
Genymobile
- Location:
https://plugins.genymotion.com/eclipse
restart eclipse
find button “Genymotion Virtual Device Manager (Ctrl + 6)”
click start to test
close the geanymotion AVD manager
and let the genymotion emulator
Test Eclipse – GenyMotion Plugin
open eclipse
set path genymotion folder https://cloud.genymotion.com/static/images/doc/screenshots/genymotion-eclipse-plugin-settings.png
open existing project
File -> New Project -> Android -> Android Project from Existing Code
browse to phonegap project
click run
then choose genymotion emulator
test hello world application
Reblogged this on kontinuiti.
if your system has .profile and you create .bash_profile you can break the system