issue132:ubports
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue132:ubports [2018/04/30 12:16] – créée auntiee | issue132:ubports [2018/05/07 12:11] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Applications in Ubuntu Touch (UBports) are programmed on the computer and run in a real device. To do this, it is necessary to use a set of tools that transform the source code into the application executable. There are several tools you can use: the most traditional is the Ubuntu Touch SDK, while the most promising is Clickable. | + | **Applications in Ubuntu Touch (UBports) are programmed on the computer and run in a real device. To do this, it is necessary to use a set of tools that transform the source code into the application executable. There are several tools you can use: the most traditional is the Ubuntu Touch SDK, while the most promising is Clickable. |
The Ubuntu Touch SDK is no longer supported. It may seem like a bad idea to spend time in the course explaining how it works. While it is true, there are some premises I would like to comment on. Both the SDK and Clickable follow the same workflow. The application source code is written, compiled, and an application executable is generated. To be able to run the ARM application on a PC, you need to use a container that “adapts” both architectures. | The Ubuntu Touch SDK is no longer supported. It may seem like a bad idea to spend time in the course explaining how it works. While it is true, there are some premises I would like to comment on. Both the SDK and Clickable follow the same workflow. The application source code is written, compiled, and an application executable is generated. To be able to run the ARM application on a PC, you need to use a container that “adapts” both architectures. | ||
- | At the last UbuCon, I gave a basic programming workshop. In order to simplify the installation process, I prepared a virtual machine with the Ubuntu Touch SDK. Just download the file, set up your virtualization environment, | + | At the last UbuCon, I gave a basic programming workshop. In order to simplify the installation process, I prepared a virtual machine with the Ubuntu Touch SDK. Just download the file, set up your virtualization environment, |
- | Installing the virtual machine | + | Les applications dans Ubuntu Touch (UBports) sont programmées sur l' |
+ | |||
+ | Le SDK d' | ||
+ | |||
+ | Lors du dernier UbuCon, j'ai animé un atelier de programmation de base. Afin de simplifier le processus d' | ||
+ | |||
+ | |||
+ | **Installing the virtual machine | ||
The virtual machine uses Ubuntu Mate 16.04. The user and the password are the same: “ubucon”. I recommend you to download the virtual machine in parallel. It’s 12 GB and can take a long time to download. | The virtual machine uses Ubuntu Mate 16.04. The user and the password are the same: “ubucon”. I recommend you to download the virtual machine in parallel. It’s 12 GB and can take a long time to download. | ||
Ligne 15: | Ligne 22: | ||
sudo nano / | sudo nano / | ||
- | Add to the end of the file: | + | Add to the end of the file: ** |
+ | Installation de la machine virtuelle | ||
+ | La machine virtuelle utilise Ubuntu Mate 16.04. L' | ||
- | deb http:// | + | Le lien est : https:// |
+ | |||
+ | La première étape consiste à ajouter le dépôt de VirtualBox. | ||
+ | |||
+ | sudo nano / | ||
+ | |||
+ | Ajoutez à la fin du fichier : | ||
+ | |||
+ | **deb http:// | ||
Save the changes and add the Oracle signature: | Save the changes and add the Oracle signature: | ||
Ligne 35: | Ligne 52: | ||
Click on the New button and configure the name and operating system. | Click on the New button and configure the name and operating system. | ||
- | I recommend you to use the maximum RAM you have available in the system. | + | I recommend you to use the maximum RAM you have available in the system.** |
+ | deb http:// | ||
+ | |||
+ | Sauvegardez les modifications et ajoutez la signature d' | ||
+ | |||
+ | wget -q https:// | ||
+ | |||
+ | Installez VirtualBox. | ||
+ | |||
+ | sudo apt-get update; sudo apt-get install virtualbox-5.2 dkms build-essential | ||
+ | |||
+ | Une fois l' | ||
+ | |||
+ | virtualbox | ||
+ | |||
+ | Cliquez sur le bouton Nouveau puis nommez et configurez le système d' | ||
+ | Je vous recommande d' | ||
- | You must select Use an existing virtual hard disk file. Then select the virtual machine file you downloaded earlier. | + | **You must select Use an existing virtual hard disk file. Then select the virtual machine file you downloaded earlier. |
The virtual machine is already created and now needs to be configured. | The virtual machine is already created and now needs to be configured. | ||
Ligne 49: | Ligne 82: | ||
The virtual machine is now ready. | The virtual machine is now ready. | ||
- | Start the Ubuntu Touch SDK by double-clicking on the icon. | + | Start the Ubuntu Touch SDK by double-clicking on the icon.** |
- | Conclusions | + | Vous devez sélectionner Utiliser un fichier de disque dur virtuel existant. Ensuite, sélectionnez le fichier de la machine virtuelle que vous avez téléchargé précédemment. |
+ | |||
+ | La machine virtuelle est alors créée et doit maintenant être configurée. | ||
+ | |||
+ | Cliquez sur le bouton Paramètres. Dans Système, Processeur, sélectionnez Activer PAE/NX pour améliorer la performance de la machine virtuelle. Les options de virtualisation de l' | ||
+ | |||
+ | Dans Affichage, vous pouvez configurer la mémoire graphique de la machine virtuelle. Même si votre ordinateur le supporte, je vous recommande de désactiver l' | ||
+ | |||
+ | La machine virtuelle est maintenant prête. | ||
+ | |||
+ | Démarrez le SDK Ubuntu Touch en double-cliquant sur l' | ||
+ | |||
+ | **Conclusions | ||
We have already prepared the working environment for the course. In the next delivery, we will start with a Web application (WebApp). Although programmed into a virtual machine, it is possible to connect a phone or tablet (with UBports) and run the application natively. | We have already prepared the working environment for the course. In the next delivery, we will start with a Web application (WebApp). Although programmed into a virtual machine, it is possible to connect a phone or tablet (with UBports) and run the application natively. | ||
- | If you have any questions, you can ask them in the Telegram group of the course: https:// | + | If you have any questions, you can ask them in the Telegram group of the course: https:// |
+ | |||
+ | Conclusions | ||
+ | |||
+ | Nous avons déjà préparé l' | ||
+ | |||
+ | Si vous avez des questions, vous pouvez les poser dans le groupe Telegram du cours : https:// |
issue132/ubports.1525083364.txt.gz · Dernière modification : 2018/04/30 12:16 de auntiee