Step 1: Install Ubuntu to real Disk
What ever, we need to install Ubuntu into disk. I useEasybcd 2.2To help install ubuntu.
The configure file in easybcd:
title Install Ubunturoot (hd0,1)kernel (hd0,1)/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-13.04-desktop-amd64.isoquiet splash locale=zh_CN.UTF-8initrd (hd0,1)/initrd.lz
NoticeThat we need to change (hd0, 1) to the real target drive index, for example, I'm going to install timed ut in drive E: and it's my 2nd drive from C :. so I use (hd0, 1) as my Ubuntu drive. don't forget tocopyUbuntu-13.04-desktop-amd64.isoTo
C:/and extractVmlinuz. EFIAndInitrd. LZFrom Ubuntu ISO to C:/, too! Then, restart windows7.
By the way, when you are using Ubuntu ISO to install Ubuntu system, don't forget:
1. Remove the formated Disk
2. Add new partition for/,/home as well as swap. If the disk size is 100g, then assign 50g/, 42 GB/HomeAs well as 8gSwap. Don't forget to boot system from/Dev/SDA, Not any other one.
If you choose anything else, then you may mostly meet an issue of booting Ubuntu system when reboot.
After the installation, we may meet an issue of booting for Ubuntu system. Then we can do the following scripts during fixing:
ubuntu@ubuntu:~$ sudo fdisk -lDisk /dev/sda: 1000.2 GB, 1000204886016 bytes255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0xb409c2cc Device Boot Start End Blocks Id System/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT/dev/sda2 206848 1486458469 743125811 7 HPFS/NTFS/exFAT/dev/sda3 1909880832 1953521663 21820416 7 HPFS/NTFS/exFAT/dev/sda4 1486458878 1909880831 211710977 5 Extended/dev/sda5 1486458880 1686458367 99999744 83 Linux/dev/sda6 1686460416 1866145791 89842688 83 Linux/dev/sda7 1866147840 1909880831 21866496 82 Linux swap / SolarisPartition table entries are not in disk orderDisk /dev/sdc: 15.7 GB, 15707668480 bytes255 heads, 63 sectors/track, 1909 cylinders, total 30679040 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000 Device Boot Start End Blocks Id System/dev/sdc1 8192 30679039 15335424 c W95 FAT32 (LBA)ubuntu@ubuntu:~$ sudo -iroot@ubuntu:~# mkdir /media/tempdirroot@ubuntu:~# mount /dev/sda5 /media/tempdirroot@ubuntu:~# grub-install --root-directory=/media/tempdir /dev/sdaInstallation finished. No error reported.root@ubuntu:~# rebootxiwang@ERIC-PC:~$ sudo update-grub2Generating grub.cfg ...Found linux image: /boot/vmlinuz-3.8.0-19-genericFound initrd image: /boot/initrd.img-3.8.0-19-genericFound memtest86+ image: /boot/memtest86+.binFound Windows 7 (loader) on /dev/sda1Found Windows 7 (loader) on /dev/sda2Found Windows Recovery Environment (loader) on /dev/sda3done
Step 2: Install JDK (Java Development kits)
I'm using a tarball in binary jdk-7u25-linux-x64.tar.gz, and unpakcage it and configure ~ /. Bashrc as the following environment:
# -----------------------------------------------------------------------------# Customized by ERIC# -----------------------------------------------------------------------------# for JAVAJAVA_HOME=$HOME/tool/jdk1.7.0_25 # Change it to the real path of you extract JDK.export JAVA_HOMEJRE_HOME=$JAVA_HOME/jreexport JRE_HOMECLASSPATH=.:$JAVA_HOME/jre:$JAVA_HOME/jre/libexport CLASSPATHPATH=$JAVA_HOME/bin:$PATHexport PATH
Step 3: Install Android ADT
I'm using a zip package which download from Android official siteAdt-bundle-linux-x86_64-20130717.zip, Unpackage it as well and configure ~ /. Bashrc like the following:
# for Android ADTANDROID_SDK_HOME=$HOME/tool/adt-bundle-linux-x86_64-20130717/sdk # Change it to the real path of the location of Android SDK.export ANDROID_SDK_HOMECLASSPATH=$CLASSPATH:$ANDROID_SDK_HOME/tools:$ANDROID_SDK_HOME/platform-toolsexport CLASSPATH
FAQ: What if I met of missing file SDK/platform-tools/ADB?
Don't worry, I run the command to install 32 bit libraries as well to fix the issue. after doing so, we can use eclipse and create a new virtual device using it.
sudo apt-get install ia32-libs
Where can I get Android SDK source code?
To download SDK source code into local.
> git clone http://android.googlesource.com/platform/frameworks/base.git
Will fill some more features when I got time on it. And I'm now going to develop with Android system base development together with C ++.
Have fun!
Will fill some more features when I got time on it. And I'm now going to develop with Android system base development together with C ++.
Have fun!