顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

2014年2月3日 星期一

Install GAE for PHP on Koding (Ubuntu )

Koding.com is a cloud base development environment. All you have to do is write some awesome code and run. Don't need to waste time on installing XXXX run-time (XXX== Java, Python, Perl. PHP, MySQL). With integrated magic IDE and simple terminal. Say goodbye to 100 steps before you start coding. Koding gives you a free VM with  RAM:2.0Gb /Disk:1.2Gb (Additional resources will be purchasable from Koding in the near future.) 

1. You don't have to install MySQL, PHP, nor Python . All of them are ready out of the box in Koding.com . You only need to download GAE SDK and unzip it 
wget http://googleappengine.googlecode.com/files/google_appengine_1.8.9.zip

unzip google_appengine_1.8.9.zip


2. You can  install Python PIL if you want (you'll get warning when you run dev server locally, but it's ok anyway) by :
sudo apt-get install python-imaging 

3. Check if php-cgi is installed on your server. Mine is at /usr/bin/php-cgi . If it's not installed, follow the instruction on the tutorial


locate php-cgi 

4. Start development server locally with options:
--host 0.0.0.0 , default value is localhost. since there's no browser on your VM, you need to access your dev server from the internet.
--php_executable_path=/usr/bin/php-cgi, which specifies that using php-cgi instead of php-cli , see reason here.
google_appengine/dev_appserver.py --host 0.0.0.0 --php_executable_path=/usr/bin/php-cgi HelloGAEProject/

4. Go to <your_account>.kd.io:8080/<your_app> to test locally.

5. If you want to deploy your app to GAE, run with these option
--oauth2 , use this option to skip typing account/password
--noauth_local_webserver Don't use the web browser to display web pages for authentication. This is useful for OAuth2 authentication if you're remotely logged on or shelled into a machine. This flag only applies for OAuth2
google_appengine/appcfg.py update --oauth2 --noauth_local_webserver <your project folder name>

2013年7月18日 星期四

Install Eclipse in Ubuntu 13.04 64 bit

If your OS is Ubuntu 13.04 . I can provide some suggestion.
1. install or upgrade ia32-lib
   sudo apt-get upgrade ia32-libs
2. check if you have the right permission on aapt and sdk manager folder
   chmod 777 <adt tool path>/sdk
3. start eclipse
   sudo eclipse
4. Run Project->Clean in Eclipseh

2013年7月17日 星期三

Install Android Studio in Ubuntu 13.04 64 bit

1. Install JDK :
Steps : http://apexu.com/apexu/tw/modules/publisher/item.php?itemid=35
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo update-java-alternatives -s java-7-oracle (update version, not required)
sudo apt-get remove oracle-java7-installer (remove JDK, not required) 

2. Download Android Studio
http://developer.android.com/sdk/installing/studio.html


3. Download NDK(Optional):
http://developer.android.com/tools/sdk/ndk/index.html

4. Launch! Go to <extraction path>/android-studio/bin/ , ./idea.sh.

5. Add idea.sh to PATH(Optional) :
@>export PATH=$PATH:/home/nevin/ANDROID/IDEA/android-studio/bin

6. Install ADB
sudo apt-get install android-tools-adb