Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any way to install Ubuntu Touch inside a virtual machine on a regular Ubuntu computer instead of on a phone or tablet? Or is there an emulator, like the one the Android SDK comes with?

share|improve this question
add comment

4 Answers

I'd recommend to you this official web page at Ubuntu Developer: http://developer.ubuntu.com/get-started/gomobile/

There you will learn what you need to know to get started developing for Ubuntu phone.

share|improve this answer
add comment
up vote 20 down vote accepted

Finally, there is an emulator!

Using the Emulator

How to install on Ubuntu 14.04:

sudo apt-get install android-emulator
cp -r /usr/share/android/emulator/ ~/
cd ~/emulator/
./build-emulator-sdcard.sh

To run the emulator:

./run-emulator.sh

For Ubuntu 13.10 and older, you should just be able to install the deb from https://launchpad.net/ubuntu/+source/android.

To update your emulator, run these commands:

cd ~/emulator/
rm -f ./out/target/product/generic/ubuntu-rootfs.tar.xz
./build-emulator-sdcard.sh

WARNING: Do not uninstall and then use apt-get autoremove on amd64. If you do, you will be left in an unbeatable state. Follow the instructions on the wiki to fix you system.

For more details or how to build from source, see the wiki page.

Other Methods

However, using the emulator can be to complex if you just want to run a an app or test the unity8 shell. So, there are two other methods:

1. Running Ubuntu Touch Apps

You can now install the core touch applications directly on an computer running Ubuntu 12.10 or later (or one of the derivatives, such as Kubuntu) using a PPA.

First, add the Core Apps Daily PPA by running these commands in a terminal:

sudo add-apt-repository ppa:ubuntu-touch-coreapps-drivers/daily
sudo apt-get update

Then install the apps you want by running:

sudo apt-get install <app-name>

Or you can install all of them using

sudo apt-get install touch-coreapps

Here is a list of the core apps available:

  • ubuntu-calculator-app
  • calendar-app
  • ubuntu-clock-app
  • ubuntu-weather-app
  • ubuntu-docviewer-app
  • ubuntu-emailclient-app (not working yet)
  • ubuntu-filemanager-app
  • ubuntu-rssreader-app
  • ubuntu-terminal-app
  • stock-ticker-mobile-app
  • dropping-letters
  • sudoku-app
  • music-app

For more information, see this article on http://www.omgubuntu.co.uk/.

2. Running the Unity 8 Shell

It is possible to run the mobile interface for Unity 8 on the desktop if you're running Ubuntu 13.10. To do this, install the unity8 package, either by clicking on the link or by typing the following command:

sudo apt-get install unity8

To run it, use this command:

unity8 -mousetouch

Unfortunately, there is no way to run apps in the shell. Clicking on a desktop app will open it in its own window and clicking on a Ubuntu Touch app will do nothing.

share|improve this answer
    
An emulator is now available. –  achiang Dec 5 '13 at 18:44
    
@achiang updated, thank you. –  iBelieve Dec 7 '13 at 16:59
    
See also (for 13.10): askubuntu.com/questions/387884/… –  david6 Dec 23 '13 at 0:04
add comment

There's now an experimental Emulator available. Check out https://wiki.ubuntu.com/Touch/Emulator

share|improve this answer
    
This is rather a short answer with just a link. Could you update your answer with screenshots and instructions to install, in case the link gets changed? –  iBelieve Dec 7 '13 at 1:37
add comment

Edit /usr/share/android/emulator/build/tools/get-tarball-url.py

Change

host_uri = "https://system-image.ubuntu.com"
json_index_uri = "/devel-proposed/mako/index.json"

to

host_uri = "https://system-image.ubuntu.com"
json_index_uri = "/ubuntu-touch/devel-proposed/mako/index.json"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.