有没有办法在普通的Ubuntu电脑上,而不是手机或平板电脑上安装Ubuntu Touch?或者有没有像Android SDK附带的那种模拟器?
sudo apt-get install android-emulator
cp -r /usr/share/android/emulator/ ~/
cd ~/emulator/
./build-emulator-sdcard.sh
运行模拟器:
./run-emulator.sh
cd ~/emulator/
rm -f ./out/target/product/generic/ubuntu-rootfs.tar.xz
./build-emulator-sdcard.sh
警告:不要在amd64上卸载然后使用apt-get autoremove
。如果这样做,您将处于一个无法打败的状态。请按照维基上的说明修复您的系统。
有关更多详细信息或如何从源代码构建,请参见维基页面。
然而,如果您只想运行应用程序或测试unity8 shell,使用模拟器可能会太复杂了。因此,还有两种其他方法:
现在,您可以直接在运行Ubuntu 12.10或更高版本(或其派生版,如Kubuntu)的计算机上安装核心触控应用程序,使用PPA。
首先,在终端中运行以下命令添加Core Apps Daily PPA:
sudo add-apt-repository ppa:ubuntu-touch-coreapps-drivers/daily
sudo apt-get update
sudo apt-get install <app-name>
或者你可以使用以下方法安装它们:
sudo apt-get install touch-coreapps
sudo apt-get install unity8
unity8 -mousetouch
现在有一个实验性的模拟器可用。 请查看https://wiki.ubuntu.com/Touch/Emulator
/usr/share/android/emulator/build/tools/get-tarball-url.py
更改host_uri = "https://system-image.ubuntu.com"
json_index_uri = "/devel-proposed/mako/index.json"
到
host_uri = "https://system-image.ubuntu.com"
json_index_uri = "/ubuntu-touch/devel-proposed/mako/index.json"