Merge pull request #1340 from Vic020/master

Translated
This commit is contained in:
Xingyu.Wang 2014-07-17 22:58:54 +08:00
commit 5c7e57acdd
2 changed files with 182 additions and 184 deletions

View File

@ -1,184 +0,0 @@
Vic020
Install “Android 4.4 KitKat” to Run Favourite Games and Applications in Linux
================================================================================
**Android (x86)** is a project which aims to port Android system to Intel x86 processors to let users install it easily on any computer, the way they do this is by taking android source code, patching it to work on Intel x86 processors and some laptops and tablets.
![Install Android 4.4 KitKat in Linux](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-4.4-KitKat.jpg)
Install Android 4.4 KitKat in Linux
A few days ago, the project released “Android KitKat 4.4 RC2”, and today we will explain how to install it on VirtualBox, there is a problem that the mouse pointer doesnt work in android in VirtualBox, but you may use this guide to install it beside other systems as a main system and the mouse should work I guess, otherwise well use the keyboard.
### Step 1: Install VirtualBox in Linux ###
**1.** VirtualBox is available to install easily via official repositories in most Linux distributions, to install it on Ubuntu run.
$ sudo apt-get install virtualbox
For other Linux distributions like **RHEL, CentOS and Fedora**, use the following article to install Virtualbox.
- [Install VirtualBox in RHEL, CentOS and Fedora][1]
### Step 2: Download and Install Android 4.4 KitKat in Virtualbox ###
**2.** This is an easy step, just download **Android 4.4 x86 Kit Kat** file from the [androud Sourceforge.net][2] project.
**3.** To install **Android 4.4 kitkat** on VirtualBox, you need first to boot from the .iso image that you downloaded, to do so, open **VirtualBox**, Click on new to create a new virtual machine, and choose the settings as follow.
![Create New Virtual Machine](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-01.png)
Create New Virtual Machine
**4.** Then it will ask you to choose a Memory size for the machine, Android 4.4 kitkat needs 1GB of RAM to work perfectly, but I will choose 512MB since I only have 1GB of RAM on my computer.
![Set Memory to New Machine](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-02.png)
Set Memory to New Machine
**5.** Now select “Create a virtual hard drive now” to create a new one.
![Create Virtual Hard Drive](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-03.png)
Create Virtual Hard Drive
**6.** It will now ask you for the type of the new virtual hard drive, select **VDI**.
![Select Hard Drive Type](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-04.png)
Select Hard Drive Type
![Select Storage Type](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-05.png)
Select Storage Type
**7.** Now choose the size of the virtual hard drive, you may choose any size you want, no less than **4GB** so the system can be installed correctly beside any future apps that you want to install.
![Set Size for Virtual Drive](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-32.png)
Set Size for Virtual Drive
**8.** Now thats your first virtual machine is created, now to boot from the **.iso** file that you downloaded, select the virtual machine from the list on the left, click on **Settings**, and go for “**storage**”, do as follow and select the **.iso** image of **android 4.4 kitkat RC2**.
![Select Android KitKat ISO](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-06.png)
Select Android KitKat ISO
**9.** Click on **OK**, and start the machine to boot the .iso image, choose “**Installation**” to start installing the system on the virtual machine.
![Select to Install Android Kit Kat](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-07.png)
Select to Install Android Kit Kat
**10.** Please select a partition to install Android-x86.
![Select Partition Drive](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-08.png)
Select Partition Drive
**11.** Now you will be prompted **cfdisk** which is a partitioning tool that we will use to create a new hard drive, so we can install android 4.4 on it, Click on “**New**”.
![Create New Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-09.png)
Create New Partition
**12.** Choose “**Primary**” as partition type.
![Choose Primary Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-10.png)
Choose Primary Partition
**13.** Next, select the size of the partition.
![Select Size of Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-11.png)
Select Size of Partition
**14.** Now, we have to make the new hard drive bootable in order to be able to write changes to the disk, click on “**Bootable**” to give the bootable flag to the new partition, you wont notice any changes in fact but the bootable flag will be given to that partition.
![Make Partition Bootable](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-12.png)
Make Partition Bootable
**15.** After that, click on “**Write**” to write the changes to the hard drive.
![Apply Changes to Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-13.png)
Apply Changes to Partition
**16.** It will ask you if you are sure, write “**yes**” and click on **Enter**.
![Confirm Partition Changes](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-14.png)
Confirm Partition Changes
**17.** Now thats our new hard drive is created, now click on **Quit** and you will see something like this, select the partition that you created before in order to install android on it and hit **Enter**.
![Choose Partition to Install Android](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-15.png)
Choose Partition to Install Android
**18.** Choose “**ext3**” as a filesystem for the hard drive and format.
![Select Ext3 Partition Type](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-16.png)
Select Ext3 Partition Type
![Format Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-17.png)
Format Partition
**19.** You will be asked now if you want to install GRUB bootloader, of course you will select **Yes**, because if you dont, you wont be able to boot the new system, so choose “**Yes**” and hit **Enter**.
![Install Boot Loader GRUB](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-18.png)
Install Boot Loader GRUB
**20.** Finally, you will be asked if you want to make the **/system** partition writeable, choose Yes, it will help in a lot of things later after you install the system.
![Make Partition Writeable](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-19.png)
Make Partition Writeable
**21.** The installer will start its mission… after the installer finishes the job, choose Reboot, in my test, the “Run-Android x86” didnt work for me, so you have to reboot.
![Android Kit Kat Installation](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-20.png)
Android Kit Kat Installation
**22.** Now thats we installed **Android 4.4 KitKat RC2** on our hard drive, the problem is now that VirtualBox will keep loading the **.iso** image file instead of booting from the virtual hard drive, so to fix this problem, go to **Settings**, under “**storage**” select the **.iso** file and remove it from the booting menu.
![Remove Android Kit Kat Image](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-21.png)
Remove Android Kit Kat Image
**23.** Now you can start the virtual machine with the installed android system.
![Start Android Kit Kat System](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-23.png)
Start Android Kit Kat System
![Android Splash Screen](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-24.png)
Android Splash Screen
**24.** Now you will start a wizard to configure some things before you start using **Android**. You will see a screen like this, Now the problem is, that the Mouse doesnt work in **android 4.4 KitKat**, that means that well be using our skills in keyboard, first choose the **language** you want using the **Up** and **Down** keys in the keyboard, and to go the next step, hit the **Right** arrow key and click **Enter**.
![Android Welcome Screen](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-31.png)
Android Welcome Screen
![Select WiFi Network](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-25.png)
Select WiFi Network
![Create Android Google Account](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-26.png)
Create Android Google Account
![Sign in Google Account](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-27.png)
Sign in Google Account
![Set Date and Time](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-28.png)
Set Date and Time
![Enter Your Details](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-29.png)
Enter Your Details
![Android 4.4 Kit Kat Home Screen](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-30.jpeg)
Android 4.4 Kit Kat Home Screen
Installing **Android x86** will be good for you if you dont have a smartphone and you want to use the **Play Store** apps easily, have you ever tried to install android x86? What was the results? Do you think that android may become a “**real operation system**” targeting PCs in the feature?
----------
![](http://1.gravatar.com/avatar/1374d0df45065e405e1b059d2fca04ff?s=80&d=blank&r=G)
[Hanny Helal][3]
A Linux & Foss user since 2010, working on many projects in the field of Free Software.
--------------------------------------------------------------------------------
via: http://www.tecmint.com/install-android-kitkat-in-linux/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.tecmint.com/install-virtualbox-on-redhat-centos-fedora/
[2]:http://sourceforge.net/projects/android-x86/
[3]:http://www.tecmint.com/

View File

@ -0,0 +1,182 @@
装X指南--在Linux上装个Android 4.4玩玩
================================================================================
**Android (x86)**项目致力于移植Android系统到X86处理器上使用户可以更容易的在任何电脑上安装Android。他们通过使用android源码增加补丁来使Android能够在X86处理器下工作不单只是笔记本电脑和平板电脑。
![Install Android 4.4 KitKat in Linux](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-4.4-KitKat.jpg)
在Linux安装Android 4.4 KitKat
几天前项目组发布了最新的“Android KitKat 4.4 RC2”下面我将说明如何在VirtualBox上的安装过程不过有一个小问题安装完成Android后鼠标指针不工作了我猜如果你根据本教程将它安装成主系统这个鼠标应该可以工作否则我们只能使用键盘了。
### 阶段 1: 在linux上安装VirtualBox ###
**1.** 大多数的Linux发行版中官方源都有VirtualBox例如在Ubuntu中安装
$ sudo apt-get install virtualbox
其他的Linux发行版像**RHEL, CentOS and Fedora**,请参考下面文章来安装VirtualBox
- [Install VirtualBox in RHEL, CentOS and Fedora][1]
### 阶段 2: 下载并在VirtualBox中安装Android 4.4 kitkat ###
**2.** 这步挺简单的,只是需要去[androud Sourceforge.net][2]项目下载 **Android 4.4 x86 Kit Kat**文件
**3.** 为了安装**Android 4.4 kitkat**,首先,你需要引导刚刚下载.iso文件启动 **VirtualBox**,创建一个新的虚拟机,然后跟着下面图片设置:
![Create New Virtual Machine](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-01.png)
创建新的虚拟设备
**4.** 接下来它会询问你新设备的内存大小Android 4.4 kikat需要1G内存才能完美运行但是由于我的电脑只有1G内存我只能选择512MB。
![Set Memory to New Machine](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-02.png)
设置内存
**5.** 选择“现在创建虚拟硬盘”“Create a virtual hard drive now”创建一个新的硬盘
![Create Virtual Hard Drive](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-03.png)
创建虚拟硬盘
**6.** 它现在会询问你新虚拟硬盘的类型,选择**VDI**
![Select Hard Drive Type](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-04.png)
选择硬盘驱动类型
![Select Storage Type](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-05.png)
选择存储方式
**7.** 现在设置虚拟硬盘大小你可以设置任何大小但是除了未来安装Apps的空间至少系统正确地安装需要**4G**。
![Set Size for Virtual Drive](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-32.png)
设置虚拟硬盘大小
**8.** 现在你的新虚拟设备创建好了,可以引导下载的**.iso**文件了,右键刚刚创建的虚拟机,**设置** -> **存储** ,如下图,设置**android 4.4 kitkat RC2**的镜像文件。
![Select Android KitKat ISO](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-06.png)
选择Android KitKat ISO
**9.** Click on **OK**, and start the machine to boot the .iso image, choose “**Installation**” to start installing the system on the virtual machine.
![Select to Install Android Kit Kat](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-07.png)
选择 Install Android Kit Kat
**10.** 请选择一个分区来安装Android-x86
![Select Partition Drive](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-08.png)
选择 Partition Drive
**11.** 如下图你可以看见cfdisk界面cfdisk是一个分区工具我们将要使用它来创建一个新的硬盘分区用来安装Android 4.4,现在,点击 “**New**”
![Create New Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-09.png)
创建新分区
**12.** 选择“**Primary**”作为分区类型
![Choose Primary Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-10.png)
选择主分区
**13.** 接下来,设置分区大小
![Select Size of Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-11.png)
设置分区大小
**14.** 现在我们必须给硬盘创建新的引导使其能够写入新的分区表,点击“**Bootable**”给引导标记新的分区,你不会注意到有任何变化,但是引导标记将会自己给选中分区。
![Make Partition Bootable](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-12.png)
制作分区引导
**15.** 完成之后,点击“**Write**”对硬盘写入新的分区。
![Apply Changes to Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-13.png)
应用新分区
**16.** 它会询问你是否确认,输入“**yes**”并点击**Enter**
![Confirm Partition Changes](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-14.png)
确认分区改变
**17.** 现在我们的新硬盘已经创建,点击 **Quit** 你就可以看来类似下图的显示选中刚刚创建的用来安装Android 的分区,点击**Enter**
![Choose Partition to Install Android](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-15.png)
选择分区安装Android
**18.** 选择“**ext3**”作为硬盘文件系统并格式化
![Select Ext3 Partition Type](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-16.png)
选择Ext3分区类型
![Format Partition](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-17.png)
格式化分区
**19.** 它将会询问你时候需要安装GRUB启动器当然选择**Yes**,如果不这样,你将不能启动新系统,所以选择**Yes**并点击**Enter**
![Install Boot Loader GRUB](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-18.png)
安装引导加载器 GRUB
**20.** 最后,它会问你**/system**分区是否能写入选择yes它会在安装完系统后帮助你减少很多麻烦
![Make Partition Writeable](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-19.png)
使分区能写入
**21.** 安装将会开始它的任务安装器结束工作后选择重启在我做测试的时候“Run-Android x86”不起作用所以你不得不重启。
![Android Kit Kat Installation](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-20.png)
Android Kit kat 安装完成
**22.** 我们已经安装完成**Android 4.4 KitKat RC2**问题是VirtualBox将会继续引导**.iso**镜像文件而不是虚拟设备,所以为了修正这个问题,**设置** -> **存储** ->移除iso文件
![Remove Android Kit Kat Image](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-21.png)
移除Android Kit Kat 镜像
**23.** 你可以启动你的虚拟设备运行你的Android系统了
![Start Android Kit Kat System](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-23.png)
启动Android Kit Kat 系统
![Android Splash Screen](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-24.png)
Android标志界面
**24.** 使用**Android**之前,你需要完成一个向导来配置一些事。你会看见如下屏幕,现在问题是,鼠标不能在**android 4.4 kitkat**工作,这意味着我们需要展示我们键盘的高超技巧了。首先,选择语言,你需要使用键盘**上**键和**下**键,到下一步,需要使用**右**键移动光标,选择**Enter**
![Android Welcome Screen](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-31.png)
Android 欢迎界面
![Select WiFi Network](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-25.png)
选择WiFi网络
![Create Android Google Account](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-26.png)
创建Android Google账户
![Sign in Google Account](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-27.png)
注册Google账户
![Set Date and Time](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-28.png)
设置日期和时间
![Enter Your Details](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-29.png)
输入你的信息
![Android 4.4 Kit Kat Home Screen](http://www.tecmint.com/wp-content/uploads/2014/07/Install-Android-Kit-Kat-in-Linux-30.jpeg)
Android 4.4 Kit Kat 主界面
安装 **Android x86**好处颇多,如果你没有智能手机而又想早点使用**Play Store**apps怎么不试试安装android x86呢结果怎样你有想过android可以成为一个针对桌面功能的**实时操作系统**
----------
![](http://1.gravatar.com/avatar/1374d0df45065e405e1b059d2fca04ff?s=80&d=blank&r=G)
[Hanny Helal][3]
2010年成为Linux和自由软件用户已为自由软件贡献多个项目
--------------------------------------------------------------------------------
via: http://www.tecmint.com/install-android-kitkat-in-linux/
译者:[Vic___](http://www.vicyu.net) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.tecmint.com/install-virtualbox-on-redhat-centos-fedora/
[2]:http://sourceforge.net/projects/android-x86/
[3]:http://www.tecmint.com/