Ubuntu Touch Emulator: Installation And Usage In Ubuntu 14.04, 13.10 And 12.04
来源:互联网 发布:app推广链接php源码 编辑:程序博客网 时间:2024/06/06 01:56
The initial Ubuntu Touch Emulator installation instructions changed so if you've installed the first experimental release, use the instructions below to create new instances.
Below you can watch a quick Ubuntu Touch Emulator test video I've recoded in Ubuntu 14.04:
( direct video link )
Install Ubuntu Touch Emulator in Ubuntu 14.04, 13.10 and 12.04
Ubuntu 14.04 users can install Ubuntu Touch Emulator from the official Ubuntu repositories, by using the following command:
sudo apt-get install ubuntu-emulator
For Ubuntu 13.10 or 12.04 , you'll need to use a PPA to install the Ubuntu Touch emulator. Add the PPA and install the emulator using the following commands:
sudo add-apt-repository ppa:phablet-team/toolssudo apt-get updatesudo apt-get install ubuntu-emulator
The Ubuntu Emulator package is also available in the Ubuntu SDK PPA , but it's an older version at the time I'm writing this article (about one month older than the one from the Phablet Tools PPA).Note that I've only tested it in Ubuntu 14.04 and 12.04, but it should also work in Ubuntu 13.10 since the PPA above has packages for it.
Creating and running instances
1. The first thing you need to do is create a new instance - we'll call it "UbuntuTouch" in the commands below:
sudo ubuntu-emulator create UbuntuTouch
On Ubuntu 12.04, you may get the following error: Error while converting ~/.local/share/ubuntu-emulator/UbuntuTouch/system.img: Unknown option 'compat'qemu-img: Invalid options for file format 'qcow2'.
I'm not sure why this error is displayed, but the emulator runs just fine so ignore it.
2. Then, run the new instance by using the following command:ubuntu-emulator run UbuntuTouch
If you want to interact with the emulator via an interactive ADB session, log in here using "phablet" (without the quotes) for both the username and password . It's not required to log in here if you only want to use the Ubuntu Touch Emulator GUI.
After this, it might take another few minutes and Unity 8 with Mir should be loaded in the Ubuntu Touch Emulator.
In theory, Ubuntu Touch emulator should support some parameters, such as setting the memory ("--memory"), which by default is set to 512mb of RAM, but for some reason the instance doesn't start when using this, or at least it didn't in my test.
- the downloaded images are stored under ~/.cache/ubuntuimages
- the images are stored under ~/.local/share/ubuntu-emulator
Deleting instances
To delete an Ubuntu Touch Emulator instance , use the following command:sudo ubuntu-emulator destroy UbuntuTouch
Where "UbuntuTouch" is the name of the instance you've created. If you can't remember the name, you can run the command below tolist your Ubuntu Touch Emulator instances:
ubuntu-emulator list
Creating / restoring snapshots
Ubuntu Touch Emulator supports disk snapshots - to take a snapshot , use the following command:
ubuntu-emulator snapshot --create=SNAPSHOT1 UbuntuTouch
where "SNAPSHOT1" is the name of the snapshot and "UbuntuTouch" is the name of your instance created above.
Then, when you wish to restore this snapshot , use:ubuntu-emulator snapshot --revert=SNAPSHOT1 UbuntuTouch
You can also use "--revert-pristine" to revert to the originally created snapshot .Refrences:
- Ubuntu Touch Emulator: Installation And Usage In Ubuntu 14.04, 13.10 And 12.04
- EIBD installation and usage
- VTK Installation and Configuration with Qt in Ubuntu
- Linux Log files and usage on Ubuntu
- TinyOS-2.1.1 Installation on Ubuntu 12.04 and Hello World
- Ubuntu Linux OpenSSH Server installation and configuration
- Ubuntu desktop installation problem and solving
- [Python] python-ldap installation and usage notes
- openvswitch installation in Ubuntu
- openvswitch installation in Ubuntu
- The installation and usage of Auto-jump and ZSH
- ubuntu_Improve Power Usage on Ubuntu 12.04 and Prolong Laptop Battery Life
- Download and Install AndroidSDK in Ubuntu 12.04 (Precise Pangolin)
- Download and Install AndroidSDK in Ubuntu 12.04 (Precise Pangolin)
- Installing and setting TFTPD in Ubuntu
- [MySQL]Install and Configure MySQL in Ubuntu
- Installing and setting TFTPD in Ubuntu
- in ubuntu config tftp and nfs
- svn server 配置 与TortoiseSVN、Ankhsvn+VS使用 及 问题
- 2014-04-04
- computeValuesWithHarfbuzz -- need to force to single run
- 我的公眾微信
- 关于thread中断问题
- Ubuntu Touch Emulator: Installation And Usage In Ubuntu 14.04, 13.10 And 12.04
- 程序员该思考的
- 通用工具auto_ptr 模板智能指针
- Math
- C++虚继承
- Linux中对MySQL优化
- Android 开源项目
- 博客搬家到csdn
- leetCode解题报告5道题(三)