[转载]Andorid开发学习—ubuntu 12.04下搭建超好用的安卓模拟器genymotion – Hi_Amos – 博客园.
什么是Genymotion?
Genymotion支持Windows、Linux和Mac OS等操作系统,容易安装和使用:按简单的安装过程,选择一款Android虚拟设备,开启后就体验Genymotion带来的快感吧。—–引自百度百科
一.下载并安装genymotion
1.下载genymotion
http://www.genymotion.cn/#theme=download_list 下载列表,必须要先注册才能使用genymotion.
下载Windows快速安装包
这个版本包含Oracle VirtualBox 4.2.12支持,因此您不用再手动下载安装VirtualBox。
其他平台版本
以下版本需要已安装Oracle VirtualBox(下载页面),才能启动虚拟设备。
- Windows 32/64 bitsv2.2.0
- Mac OS X 64 bitsv2.2.0
- Linux 32 bits (Ubuntu, Fedora, Redhat)v2.2.0
- Linux 64 bits (Ubuntu, Fedora, Redhat)v2.2.0
- Linux Debian 64 bitsv2.2.0
下载Eclipse插件
注意:如果要使用此插件,您的系统必须已经安装Genymotion
2.安装genymotion
amosli@amosli-pc:~/workspace/genymotion$ ./genymotion-2.2.0_x64.bin amosli@amosli-pc:~/workspace/genymotion$ cd genymotion/ amosli@amosli-pc:~/workspace/genymotion/genymotion$ ./genymotion
如果没有安装vitualbox,那么会提示要安装vitualbox,可以接着安装vitualbox;已安装的可以跳过下面的内容.
二.下载.安装vitualbox
1.下载vitualbox
https://www.virtualbox.org/wiki/Linux_Downloads
VirtualBox 4.3.10 for Linux
Note: The package architecture has to match the Linux kernel architecture, that is, if you are running a 64-bit kernel, install the appropriate AMD64 package (it does not matter if you have an Intel or an AMD CPU). Mixed installations (e.g. Debian/Lenny ships an AMD64 kernel with 32-bit packages) are not supported. To install VirtualBox anyway you need to setup a 64-bit chroot environment.
Please choose the appropriate package for your Linux distribution:
- Ubuntu 13.04 (“Raring Ringtail”) / 13.10 (“Saucy Salamander”) / 14.04 (“Trusty Tahr”) i386 | AMD64
- Ubuntu 12.10 (“Quantal Quetzal”) i386 | AMD64
- Ubuntu 12.04 LTS (“Precise Pangolin”) i386 | AMD64
- Ubuntu 10.04 LTS (“Lucid Lynx”) i386 | AMD64
- Debian 7.0 (“Wheezy”) i386 | AMD64
- Debian 6.0 (“Squeeze”) i386 | AMD64
- openSUSE 12.3 / 13.1 i386 | AMD64
- openSUSE 11.4 / 12.1 / 12.2 i386 | AMD64
- SUSE Linux Enterprise Server 11 (SLES11) i386 | AMD64
- SUSE Linux Enterprise Server 10 (SLES10) i386 | AMD64
- Fedora 18 (“Spherical Cow”) / 19 (“Schrödingers Cat”) i386 | AMD64
- Fedora 17 (“Beefy Miracle”) i386 | AMD64
- Mandriva 2011.0 i386 | AMD64
- Oracle Linux 6 (“OL6”) / Red Hat Enterprise Linux 6 (“RHEL6”) / CentOS 6 i386 | AMD64
- Oracle Linux 5 (“OL5”) / Red Hat Enterprise Linux 5 (“RHEL5”) / CentOS 5 i386 | AMD64
- All distributions i386 | AMD64
这里我选择的是ubuntu 12.04 amd64 位的.下载速度挺慢的,可以从sourceforge上面下载(http://sourceforge.jp/projects/sfnet_virtualbox.mirror/releases/),速度稍微快一点点,其实也差不多.
2.安装vitualbox
如果是deb格式的数据可以直接双击安装.
同时要加入一下其密钥:http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
amosli@amosli-pc:~/Desktop$ sudo apt-key add oracle_vbox.asc [sudo] password for amosli: OK
Ubuntu的/ Debian的用户可能要安装DKMS软件包,以确保VirtualBox主机的内核模块( vboxdrv , vboxnetflt和vboxnetadp )得到正确更新,可以执行下面的命令进行安装:
amosli@amosli-pc:~$ sudo apt-get install dkms
三.启动genymotion
安装完vitualbox后,再次重新启动genymotion