For some developers who want to develop Ubuntu mobile apps or scope, and don't want to buy a computer to install Ubuntu OS or reinstall an Ubuntu system on their hard drive, consider making an Ubuntu system Live USB drive. This USB includes the following sections:
- Ubuntu Kylin 14.10 Operating system
- Ubuntu SDK (including installed SDK, emulator and compilation environment)
with this live USB drive, developers don't have to install anything directly into the computer's USB port. In the process of computer startup, select the USB boot disk that we made to start (in the process of computer startup, press "F12" key). Select "Try Ubuntu Kylin without installing" during startup
Although this is an Ubuntu OS Startup disk, it can save the items that we created during the development process (in the home directory) and some settings (such as wifi settings password, etc.).
when we choose USB, we'd better choose USB 3.0 and put the USB drive into the USB 3.0 of the computer. Generally speaking, the USB 3.0 port on the computer is marked in blue. It is recommended to use a better quality, faster USB so that the system can be started and run faster and smoother. At present we use SanDisk CZ80 to do the test, the effect is still good. USB requires 16G of storage.
in order to make our simulator smoother and the simulator does not appear black screen, we need to start the hardware virtualization function in the BIOS of the computer. . Developers need to boot vt-x/amd-v into their PC's BIOS settings. Developers can refer to the article "Ubuntu SDK installation " to check whether their computer supports virtualization.
if developers want to install Ubuntu systems on their computers and develop them on them, refer to the article " Ubuntu SDK Installation "To install the Ubuntu SDK in step-by-step.
1) How to make a live USB drive under Ubuntu system
start the Ubuntu operating system, open the browser and download the latest image at the following address:
https://mega.co.nz/#F!s8qsrzyi!2hbwgxk4kmc_2bcccpbr3q
The downloaded file contains:
- Kylin-live-20150133.iso (md5sum 13cd61270bf98eb462dc0497df8eee33)
- CASPER-RW-20150113.TAR.BZ2 (md5sum 8c69f94a03481275bf66aa883b69ae1b)
- Post-usb-creator-window.sh (This is required for production under Windows)
- README.MD (Simple documentation)
We store the downloaded files in a directory that we want, such as in the "USB" directory under our home.
enter "USB" in Dash and launch "Startup Disk creator/Startup Disk Creator"
We use the following method to make our USB boot disk.
After the USB drive has been made, you will see the following screen:
re-mount the USB drive because the USB drive is automatically uninstalled in the previous step, or click on the device where the USB is located in the file browser in Ubuntu. This will allow you to complete the re-mount USB:
then press the script that comes with the following, and the parameter is the path of the USB disk mount.
unzip the downloaded casper-rw-2015xxxx.tar.bz2 file
After the files are unpacked, enter the directory where the files are extracted and execute the following commands in the shell:
[email protected]:~/usb$./post-usb-creator-linux.sh/media/ liuxg/bd52-7153/
Here " /liuxg/bd52-7153 "mount the path for the USB drive. Replace it with the path of your USB drive.
2) How to make a Startup disk under Windows platform
Http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows
Download the authoring tool, similar to the Linux platform tools.
After that, copy the CASPER-RW file to the USB home directory.
Note : If you only want to use the English version of Ubuntu system, you do not need to do the following steps . If you want to support the Chinese version, please copy the post-usb-creator-window.sh to the root directory of the USB drive. After booting the Ubuntu system from the USB drive, execute the following instructions in the shell:
$ cd/cdrom/
$ sudo./post-usb-creator-window.sh
After restarting again, the Chinese version of the Ubuntu system will be entered.
3) Test the USB boot disk that has been prepared
We can plug our live USB drive into the computer and we can get through the article " Create your first Ubuntu for phone app "To check if we have a good Ubuntu SDK.
When we start the simulator, if you need to enter a password, use the default password " 0000 ". If the developer needs to modify this password yourself, go to "system settings" in the Ubuntu SDK emulator to modify it.
for application developers, the hotkey combination in Qt Creator "Ctrl + Space"The key has its unique usefulness. However, in the Ubuntu system, "Ctrl + Space"is used to convert Chinese and English input methods. Developers are advised to refer to the article "How to install Sogou Input method on Ubuntu OS and support for QT creator"to redefine the combination of keys.
Known issues (known issues)If you are in the process of using, you find the following garbled situation (rarely appears), please restart your machine to correct this problem.
problems that cannot be started on individual computers
We found that in Lenovo E455 can not start the problem, is currently suspected to be related to AMD graphics driver, the problem is still under investigation, if you encounter some problems, please install the 14.04 LTS version on the system and install the appropriate UBUNTU-SDK package to try to learn the Ubuntu phone development knowledge, The basic concepts are the same.
Note: if you want to devote a long time to the development of Ubuntu phone, it is advisable to install an Ubuntu system on the computer, preferably utopic (14.10), rather than learning in live environment, one is to prevent data loss, and the other is to have a faster experience in using performance.
How to make Ubuntu SDK Live USB Drive