Outils pour utilisateurs

Outils du site


issue141:tutoriel1

Table des matières

1

My Honor 5C is over two years old and runs Android 7.0, Nougat; it works beautifully. But, having read in the News of Issue 138 that it is now possible to run Ubuntu on your Android telephone, without rooting it first (see page 12 of that issue on “Using UserLAnd”), I decided to try it out. Notice that I am willfully ignoring the old adage ‘If it works, don’t fix it’, although I do hope that, after my trials (in all senses of the term), my phone will still work as well. When I went to the Play Store and typed in Ubuntu, I got a list of possibilities that included Ubuntu for Android, Ubuntu Touch, and Ubuntu Launcher, which proposed, mainly, themes and icons. That being said, Ubuntu for Android proposes a Complete Linux Installer (from Zpwebsites, with 3.8 stars), and Debian noroot (by pelya, with 4.1 stars). Just below that, I found AnLinux: Run Linux on Android without Root Access, from EXA Lab, with 4.3 stars (53 reviews). Hmmm… The last sounds enticing. What about UserLAnd, though? It finally showed up when I searched with “ubuntu os for android no root,” although AnLinux came first on the list. UserLAnd from UserLAnd Teachnologies LLC was well down, but had 4.4 stars, with 84 reviews.

Mon smartphone, un Honor 5C qui a plus de deux ans et tourne sous Android 7.0, Nougat, fonctionne vraiment très bien (malgré le fait qu'il reste à l'EMUI 5.0.3). Toutefois, ayant lu dans les News du numéro 138 qu'il est maintenant possible de faire tourner Ubuntu sur votre téléphone sous Android, sans devoir le rooter (voir la page 12 de ce numéro-là sur « Utilisez UserLAnd »), j'ai décidé de l'essayer. Remarquez que j'ai choisi d'ignorer le vieil adage « le mieux est l'ennemi du bien », en espérant qu'après tous mes essais et difficultés, mon téléphone fonctionnera tout aussi bien.

Quand je suis allée dans le Play Store et ai saisi Ubuntu dans la zone de recherches, une liste de possibilités comprenant Ubuntu for Android, Ubuntu Touch et Ubuntu Launcher s'est affichée, mais les entrées proposées étant pour la plupart des thèmes et des icônes. Cela étant dit, la catégorie Ubuntu for Android propose un Complete Linux Installer (de zpwebsites, avec 3,8 étoiles) et Debian noroot (by pelva, avec 4,1 étoiles). Juste en dessous, j'ai trouvé AnLinux : Faites tourner Linux sur Android sans accès à root, d'EXA Lab, avec 4,3 étoiles (et 53 critiques). Cette dernière appli. avait l'air très attrayante. Mais quid de UserLAnd ? Il s'est affiché enfin quand j'ai fait une recherche avec les termes « Ubuntu os pour android no root », bien qu'AnLinux venait en premier dans la liste. UserLAnd de UserLAnd Technologies LLC était beaucoup plus loin, mais avait 4,4 étoiles, avec 84 critiques.

2

The question in my mind is, Will there be a GUI or will it be “only” the terminal, as is possible in Windows 10? AnLinux says you need Termux (also available on the Play Store) AND you can “even run…Xfce4 Desktop Environment!!!” Back to UserLAnd, which says “Run full Linux distros or specific applications on top of Android.” The pictures do show a fairly normal desktop: The installation is only 2.75 MB and took just a few seconds with normal WiFi. You then get a choice of “Apps” including Ubuntu. I selected Ubuntu, of course, and, when invited to do so, I put in a username and password as well as a VNC password. My telephone now shows that UserLAnd is running a background service and downloading things. The download took about 6 minutes, then the installation began, and, all of a sudden, I found I must download and install bVNC: Secure VNC Viewer (7.22 MB and almost instantaneous to install). But it couldn’t connect at first, and, once it apparently connected, all I had with UserLAnd thus far was a terminal… Into which I typed: sudo apt-get update

Je me demandais alors : Y aura-t-il une interface graphique ou est-ce qu'il n'y aura qu'un terminal, comme c'est le cas avec Windows 10 Subsystem Linux ? AnLinux dit qu'il faut Termux (disponible sur le Play Store) ET que vous pouvez même « faire tourner … Xfce4 Desktop Environment » !!! Revenons au descriptif de UserLAnd, qui indique « Faites tourner des distrib. Linux complètes ou des applications précises par-dessus Android. » Il est vrai que les images montrent un bureau tout à fait normal :

L'installation ne fait que 2,75 Mo et ses téléchargement et installation n'ont nécessité que quelques secondes avec l'ADSL WiFi. Vous avez alors un choix d'« applis » dont Ubuntu. Bien entendu, j'ai choisi Ubuntu et, à l'invite, j'ai mis un nom d'utilisateur et un mot de passe, ainsi qu'un mot de passe pour VNC. Puis, mon téléphone montrait que UserLAnd faisait tourner un service en arrière-plan et téléchargeait des choses. Le téléchargement a pris environ 6 minutes, et l'installation a démarré quand, tout d'un coup, j'ai lu que je devais télécharger et installer bVNC: Secure VNC Viewer (7,22 Mo avec une installation presque instantanée). Mais, tout d'abord, il n'arrivait pas à se connecter et, une fois connecté (apparemment), tout ce que j'avais jusque là avec UserLAnd était un terminal.

Où j'ai tapé :

sudo apt-get update

3

Now it was getting all kinds of Bionic Beaver files (?) or “ports”! Well, I definitely wanted a GUI, so I typed in “sudo apt-get install xfce” and it didn’t find the package. Next I tried the same thing with “mate”. It told me something like replacing mate with mate-desktop-environment, and then went to work on that. I wasn’t sure I was doing things right, but I did manage to get back into Android when I tried… Now UserLAnd asked me if I wanted to continue with Mate and I said Yes. It kept doing things and I still had access to the telephone… When I woke it up, I had a message “UserLAnd is running a background service.” And then Android also decided to update a few things as well. When I checked again, UserLAnd’s background service had been running for 45 minutes… When it stopped running, I went back and found only a terminal, which didn’t recognize the command “mate”, so I typed “exit” and ended up with nothing but a keyboard, which I found quite daunting. Despite the presence of a “Super” key, I was unable to get the terminal again. However, after I rebooted my telephone, there it was again. I was in my home folder, but would like to get to the desktop environment I installed previously. In the course of my research on doing just that, I came across an interesting article that tells you how to install an X server in the Bash shell you get with Windows Subsystem Linux – for Windows 10, it suggests Xming. https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/ What I needed, I thought, was an X server for Android. There are even X servers on the Google Play Store. The first on the list is X server from Darkside Technologies Pty Ltd, with 3.9 stars, but there seem to be a few bugs. The second is Xserver XSDL from pelya with 4.3 starts from 831 reviews. I thought I’d try that first. It took about 1 minute to download and install. But it didn’t change anything.

Là, il a reçu toutes sortes de fichiers (?) ou « ports » de Bionic Beaver ! Bon, je voulais vraiment une interface graphique et j'ai donc saisi « sudo apt-get install xfce », mais le paquet était introuvable (ma faute !). Ensuite, j'ai essayé la même chose avec « mate » et il m'a dit qu'il remplaçait mate par mate-desktop-environment et a commencé à travailler. Je n'étais pas certaine de faire les choses comme il fallait, mais j'ai réussi à retourner sous Android quand j'ai essayé. UserLAnd m'a demandé si je voulais continuer avec Mate et j'ai répondu Oui. Il continuait à travailler et moi, j'avais toujours accès au téléphone.

Quand je l'ai réveillé, j'avais le message « UserLAnd fait tourner un service en arrière-plan. » C'est alors que Android a décidé de mettre quelques applis à jour aussi. Quand j'ai vérifié à nouveau, le service en arrière-plan de UserLAnd tournait depuis 45 minutes…

Quand il eut terminé, j'y suis retournée pour trouver uniquement un terminal qui n'a pas reconnu « mate » comme commande. J'ai donc tapé « exit ». Résultat, je n'avais qu'un clavier, ce que je trouvais très décourageant. Malgré la présence d'une touche Super, je n'arrivais pas à avoir le terminal à nouveau, avant d'avoir redémarré le téléphone. J'étais dans mon dossier /home, mais j'aurais voulu pouvoir démarrer l'environnement de bureau que j'avais installé auparavant. En faisant des recherches sur comment faire cela, j'ai trouvé par hasard un article intéressant sur comment installer un serveur X dans le shell Bash que vous avez avec Windows Subsystem Linux - pour Windows 10, il suggère Xming. https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/ Il me semblait alors que j'avais éventuellement besoin d'un serveur X pour Android.

Le Play Store propose même des serveurs X. Le premier sur la liste est X server de Darkside Technologies Pty Lts, avec 3,9 étoiles, mais il semblait qu'il y avait quelques bugs. Le second est Xserver XSDL de pelva avec 4,3 étoiles et 831 critiques. C'est celui que j'allais essayer : environ une minute pour le téléchargement et l'installation. Mais rien n'a changé.

4

Back in Bash, in my home directory (~) I tried “dir”, but there was nothing in it except my name. So I went into “/” and, with “dir”, found bin, data, etc, host-rootfs, media, opt, root, sys, usr, boot, dev, home, lib, mnt, proc, run, sdcard, support, tmp, var. I then went to /usr and saw that it contains bin games include lib, local, sbin, share, and src. I then decided to uninstall everything and try again another day. The whole thing was using up internal space and a lot of my phone’s RAM. Would it be worth it? I contacted UserLAnd directly and got some good tips from Corbin – to whom I owe very sincere thanks – as well as the URL of a GitHub page where you can report issues (and see how those that have been resolved were). So I was ready to try again… This time, I downloaded an Xserver AND bVNC before downloading UserLAnd. But my next try yielded no better results, so I wrote another email, this time to support@userland.tech, the address I suddenly saw at the bottom of the ratings on Google Play. Still, it was Corbin who answered my precise questions promptly and efficiently, suggesting lxde-core. I learned, for example, that Android can kill Background Services (which is what the install of lxde-core was) for lack of memory and that was probably why the download had stopped when I received an SMS. When I started up UserLAnd again, though, and typed in ‘sudo apt-get install lxde-core’ again, I saw that I could simply continue the download and was given the code to do so. Tip: CLEAR YOUR MEMORY on Android before starting with UserLAnd and bVNC.

De retour dans Bash, dans mon répertoire /home (~), j'ai essayé « dir », mais tout ce qu'il y avait dedans était mon nom. Je suis donc allée dans « / » et, avec « dir », j'ai trouvé bin, data, etc, host-rootfs, media opt, root, sys, usr, boot, dev, home, lib, mnt, proc, run, sdcard, support, tmp, var. Puis, je suis allée dans /usr où j'ai vu qu'il y avait bin, games, include, lib, local, sbin, share et src. Après, j'ai tout simplement décidé de désinstaller tout et de ré-essayer un autre jour. Tout cela utilisait de l'espace interne et beaucoup de la RAM du téléphone. Cela valait-il le coût ?

J'ai contacté UserLAnd directement et j'ai reçu de très bons conseils de la part de Corbin - à qui je dois de très sincères remerciements - ainsi que l'URL d'une page sur GitHub où vous pouvez signaler vos problèmes (et voir les solutions trouvées pour ceux qui sont corrigés). Ainsi armée, j'étais prête à ré-essayer… Cette fois-là, j'ai téléchargé un serveur X ET bVNC avant de télécharger UserLAnd.

Mais en vain : les résultats n'étaient pas meilleurs ; j'ai donc écrit un autre mail, cette fois-ci à support@userland.tech, l'adresse que j'ai vue tout à fait en bas des évaluations sur le Play Store. Malgré tout, c'était toujours Corbin qui répondait rapidement et avec efficacité à mes questions précises ; il me suggérait lxde-core. J'ai appris, notamment, qu'Android peut tuer des services en arrière-plan (ce qu'était l'installation de lxde-core) par suite d'un manque de mémoire et que c'était sans doute pourquoi le téléchargement s'était arrêté quand j'ai reçu un SMS. Quand j'ai démarré UserLAnd à nouveau et retapé « sudo apt-get install lxde-core », j'ai compris que je pouvais tout simplement continuer le téléchargement grâce à la commande fournie.

Astuce : LIBÉRER DE LA MÉMOIRE sur Android avant de commencer avec UserLAnd et bVNC.

5

Despite doing lots of research on Google and the Ubuntu Forums, I couldn’t find how to get a terminal again, once I’d exited the first, without rebooting the phone – until Corbin gave me the answer: “You can long-press on the Ubuntu app in UserLAnd and kill it, and then start it again by clicking on it.” He also told me that, because I was in VNC mode I should be able to reach the lxde desktop with a long-press – the equivalent of a right-click – on the App (in the UserLAnd menu, I think) to “Stop App” and then, when I started it again with a simple press/click, it should just launch into lxde. Once I had gotten this helpful advice, I was ready to try again. I uninstalled both UserLAnd and bVNC, I wiped the memory of my phone and even turned it off. I put my laptop on a cable connection to the Net so nothing, other than my new installs, would be using the WiFi. Then I turned my phone on again and installed UserLAnd, getting bVNC only when UserLAnd asked that I do so. I connected to Ubuntu as AuntieE and found myself in the terminal again (AuntieE@localhost). I installed lxde-core, this time with no interruptions. I stopped the app and, when I started it again, I could see it taking longer than usual and was most optimistic about my landing on the lxde desktop, but no. At various times, I would get either of these two message errors, saying, basically, that bVNC couldn’t connect. But, when I tried again, despite the message, whichever it was, there was the Terminal with AuntieE@localhost, but not the desktop, although I know it’s installed. I think I can avoid disturbing Corbin further until I have written an email to the contact for bVNC (iiordanov@gmail.com) to ask him/her for suggestions, because I think it must be a problem of connecting – I have a Freebox… On the other hand, my phone has no firewall and bVNC never asked me for the WiFi password. I do have AVAST on the phone. Apparently, some people have had problems with Avast, others have had none, so, just in case, I uninstalled it, but that didn’t change anything. And neither did re-installing it as had been the case for some people.

Malgré de multiples recherches sur Google et les Forums Ubuntu, je ne trouvais pas comment récupérer le terminal, une fois que je l'ai quitté, sans redémarrer le téléphone - jusqu'à ce que Corbin me donne la réponse : « Vous pouvez faire un appui long sur l'appli Ubuntu dans UserLAnd et l'arrêter, puis le redémarrer en cliquant dessus. »

Il m'a également indiqué que, parce que j'étais en mode VNC, je devrais pouvoir atteindre le bureau lxde avec un appui long - l'équivalent d'un clic droit - sur l'Appli (dans le menu d'UserLAnd), pour « Arrêter l'appli » et puis, quand je la redémarrais, avec un appui/clic simple, lxde devrait tout simplement se lancer. Avec ces conseils très utiles, j'étais prête à ré-essayer. J'ai désinstallé à la fois UserLAnd et bVNC, j'ai libéré la mémoire de mon téléphone et l'ai même arrêté. J'ai démarré une connexion filaire avec mon portable, pour que rien d'autre que mes nouvelles installations utilise le WiFi. J'ai allumé mon phone à nouveau et j'ai installé UserLAnd, en installant bVNC uniquement quand UserLAnd m'a demandé de le faire. Je me suis connecté sur Ubuntu en tant qu'AuntieE et je me suis retrouvée à nouveau dans un terminal (AuntieE@localhost). J'ai installé lxde-core, sans interruptions cette fois-ci. J'ai arrêté l'appli, et, quand je l'ai redémarré, je voyais que cela prenais plus longtemps que d'habitude ; aussi j'étais très optimiste concernant l'affichage du bureau lxde, mais non. De temps en temps, l'un ou l'autre de ces messages d'erreur s'affichait, indiquant que bVNC ne pouvait pas se connecter. Mais, quand j'ai ré-essayé, malgré le message (peu importe lequel), il y avait le terminal avec AuntiE@localhost, mais pas le bureau, bien que je sache qu'il était installé.

Je pensais pouvoir éviter de re-déranger Corbin avant d'avoir écrit un mail au contact de bVNC (iiordanov@gmail.com) pour lui demander des suggestions, parce que je pensais que c'était un problème de connectivité - j'ai une Freebox… En revanche, mon téléphone n'a pas de pare-feu et bVNC ne m'a jamais demandé le mot de passe pour le WiFi. Il est vrai que j'ai AVAST (antivirus) sur le téléphone. Il s'avère, d'après mes recherches, que certaines personnes ont eu des problèmes avec Avast, d'autres, aucun, mais - au cas où, je l'ai désinstallé, mais rien n'a changé. Rien n'a changé non plus quand je l'ai ré-installé, bien que certaines personnes aient dit que si.

6

While I waited for iiordanov to answer my email (to date, he or she still hasn’t), I thought I’d see about starting lxde from the command-line, rather than by closing it in UserLAnd and opening it again (since that didn’t work). Today, I updated and upgraded my Ubuntu, then began work on lxde, first with the help of this site, by Guillermo Garron https://www.garron.me/en/go2linux/how-to-install-startx.html, written in 2008. Using his information, I did sudo apt install xinit, then installed nano with which I made the .xinitrc file with just one line : exec start lxde. But when I typed in startx again, the connection to the X server was refused. Now I’m using the help of a different site, https://superuser.com/questions/671169/starting-and-stopping-x11-and-lxde-from-command-line, which is newer – 2013, revised in 2015. I checked and made sure that lightdm actually exists in my file system: /etc/init.d/lightdm start. It does exist, but in /etc/,there is no folder for init.d. So I cd’ed to /etc/, did sudo lightdm start and got this error message (see below). Note that lightdm IS present in the etc folder. The message is the same received by someone with Ubuntu in a VM on Windows XP, although I don’t get more info about the system bus, as that person did. The source for that is at: https://www.reddit.com/r/linuxquestions/comments/7uh0kz/ubuntu_is_failing_to_boot_after_an_xp_virtual/ with a similar reference (from the same person, I’d guess) here: https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-is-failing-to-boot-after-an-xp-virtual-machine-crashed-my-system-4175622830/

En attendant la réponse d'iiordanov (toujours rien fin janvier 2019), j'ai pensé qu'il serait peut-être possible de démarrer lxde à partir de la ligne de commande, plutôt de l'arrêter dans UserLAnd, puis de le redémarrer (puisque cela ne fonctionnait pas). Ce jour-là, j'ai mis à jour et à niveau Ubuntu, puis mon travail avec lxde a commencé, au départ avec l'aide de ce site, de Guillermo Garron, écrit en 2008 : https://www.garron.me/en/go2linux/how-to-install-startx.html. En me servant de ses indications, j'ai fait sudo apt install xinit, puis j'ai installé nano, un éditeur de texte avec lequel j'ai créé le fichier .xinitrc avec une seule ligne : exec start lxde. Mais quand j'ai tapé startx à nouveau, la connexion au serveur X a été refusée. J'ai essayé de le faire avec l'aide d'un autre site, https://superuser.com/questions/671169/starting-and-stopping-x11-and-lxde-from-command-line, qui est plus récent - il date de 2013, révisé en 2015. Je me suis assurée que lightdm existe bel et bien dans mon système de fichiers : /etc/init.d/lightdm start. Il y est, mais dans /etc/, il n'y a pas de dossier pour init.d. Je suis donc allée dans /etc/ (avec cd), et j'ai fait sudo lightdm start. Le message d'erreur ci-dessous s'est affiché.

Notez que lightdm EXISTE bel et bien dans le dossier etc. Le message d'erreur est pareil à celui reçu par quelqu'un qui avait Ubuntu dans une VM sur Windows XP, bien que je n'aie pas eu d'autres renseignements sur le bus système, comme l'a eu cette personne.

Voir : https://www.reddit.com/r/linuxquestions/comments/7uh0kz/ubuntu_is_failing_to_boot_after_an_xp_virtual/

Il y a une référence similaire (je soupçonne que ça vienne de la même personne) ici : https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-is-failing-to-boot-after-an-xp-virtual-machine-crashed-my-system-4175622830/

7

Could it be a question of the available RAM on my telephone? (Or is the RAM in bVNC what matters?) I have 3.64 GB free in the internal memory and 17.47 GB on the SD Card. There are a total of 1.7 GB of RAM, with only 538 MB free. And that’s not much! Android OS itself uses 743 MB. Even after “freeing RAM” with Avast, there are still only 538 MB free. I just forced Avast to stop and will now do a complete reboot. And now I have only 41 MB more, or 579 MB of available RAM. By that time, I’d registered on GitHub and put an “issue” on the UserLAnd page (https://github.com/CypherpunkArmory/UserLAnd/issues/) that pretty much uses the above information. Except that, when I read through the list of already published issues, I saw that some people succeeded in connecting to a desktop with SSH. I also saw that other people had done better with VNC’s other than bVNC. After reading about SSH, I feel truly out of my depth. I guess the phone itself would be the client and UserLAnd Ubuntu, the server, but I don’t understand how to configure them. I installed ConnectBot (which is what UserLAnd Ubuntu took me to as soon as I selected SSH instead of VNC in the App Info section available with a right-click), and it does allow for password authentication, rather than worrying about public and private keys. For the time being however, SSH in command-line is more than I can handle, all the moreso that I believe you need a keyboard with an Alt button on your phone to be able to use it. Because of those complications, I went back to VNC with UserLAnd intending to uninstall bVNC and try the other VNC Viewers one after another!

Pourrait-il s'agir de la RAM disponible sur mon téléphone ? (Ou est-ce que c'est la RAM dans bVNC qui pose problème ?) J'ai 3,64 Go de libre sur le disque interne et 17,47 sur la carte SD. Il y a un total de 1,7 Go de RAM, mais seulement 538 Mo de libre. Ce n'est pas beaucoup ! L'OS Android lui-même utilise 743 Mo. Même après avoir « libéré de la mémoire » avec Avast, il ne restait toujours que 538 Mo. Après avoir forcé l'arrêt d'Avast et fait un redémarrage complet, je n'avais que 41 Mo de plus, ou 579 Mo de RAM disponible.

À ce moment-là, je m'étais inscrite sur GitHub et avais signalé un problème sur la page de UserLAnd (https://github.com/CypherpunkArmory/UserLAnd/issues/) en donnant à peu près les mêmes informations qu'ici. Toutefois, en parcourant la liste des problèmes déjà publiés, j'ai vu que certaines personnes avaient réussi à se connecter à un bureau avec SSH. J'ai également vu que d'autres gens étaient arrivé à de meilleurs résultats avec des VNC autre que bVNC. Après avoir lu des articles sur SSH, je me sentais vraiment dépassée. Je devinais que le téléphone même serait le client et UserLAnd Ubuntu, le serveur, mais je n'ai pas compris comment les configurer. J'ai installé ConnectBot (que UserLAnd Ubuntu m'indiquait dès ma sélection de SSH à la place de VNC dans la section Info Appli, disponible avec un appui long/clic droit sur Ubuntu) ; il permet une authentification par mot de passe, plutôt qu'avec des clés publiques et privées. Pour l'instant, cependant, SSH en ligne de commande dépasse, et de loin mes capacités, d'autant que je crois qu'il faut un clavier avec une touche Alt sur le téléphone pour pouvoir l'utiliser. Ces complications m'ont incité à retourner à VNC avec UserLAnd, mais en désinstallant bVNC et en essayant d'autres clients (viewers) VNC l'un après l'autre.

8

The next day, I proceeded with uninstalling bVNC as planned and installed VNC Viewer instead. But when I tried to start Ubuntu in UserLAnd, it requested bVNC anyway. I then uninstalled UserLAnd and reinstalled it, but, even with VNC Viewer, it insisted on bVNC. So I went with bVNC. Now, I’ve gotten to Bash and am doing apt install lxde-core. I believe that UserLAnd was updated; at any rate, there was something new that time: the titles of the downloads were color-coded a fluorescent yellow with progress information given to the left and the Progress information for the actual installation was highlighted in green. I was hopeful … Another positive point was that I got a phonecall while lxde was installing AND the UserLAnd background service was NOT interrupted. But I had been too hopeful: back in the UserLAnd app, I stopped the Ubuntu app. Then I started again (in other words, after the install, I restarted the “computer,” hoping to reach the desktop), only to get another “Error! Connection failed…” Still, generally speaking, since that latest install, the shell itself was working better, I think. I just tried sudo lightdm start again, but got the same message “Failed to get system bus: Could not connect: No such file or directory.” The bottom line seems to be that, when bVNC refuses to connect to the desktop, I can still get into the terminal. Another day, another try : no comments on GitHub about my issue, SO I decided to install AnLinux and give that a try. It works with Termux and once I’d installed that and opened AnLinux, it took me through the process of, first, creating a shell (as root, by the way – no need of sudo), then of creating an Ubuntu distrib. It recommended xfce4, so that’s what I chose. Once Termux had done its stuff and also had me select a language and the disposition of my keyboard (which took a while and necessitated entering the same information several times), it asked for a password, which I gave and verified, and then told me that xfce4 was running and that the way to get it to stop was to run vncserver-stop. It told me that I could use the server I wished (bVNC, what else?) and told me the port I should connect on. I put that in the port zone of bVNC, pressed on Connect and …..There I was, still as root, on a full desktop! I must admit that it was definitely easier, as well as more successful, than UserLAnd had been thus far.

Le lendemain, comme prévu, j'ai désinstallé bVNC et installé VNC Viewer à la place. Mais après, quant j'ai essayé de démarrer Ubuntu dans UserLAnd, il me demandait bVNC de toute façon. J'ai alors désinstallé UserLAnd et l'ai réinstallé, mais, même avec VNC Viewer, il a insisté pour avoir bVNC. Je l'ai donc remis : pas le choix ! Bon : j'avais Bash, et j'ai fait apt install lxde-core. J'ai eu l'impression que UserLAnd était mis à jour, car il y avait quelque chose de nouveau : le titre des téléchargements était coloré en jaune fluo avec des informations sur la progression à gauche, tandis que l'avancement de l'installation était souligné en vert. J'avais de grandes espérances… Autre point positif : j'ai reçu un appel pendant l'installation de lxde ET le service de UserLAnd en arrière-plan n'a pas été interrompu. Mais j'étais trop optimiste : de retour dans l'appli UserLAnd, j'ai arrêté l'appli Ubuntu. Puis je l'ai redémarrée (en d'autres termes, après l'installation, j'ai redémarré l'« ordinateur »), pour recevoir encore un message « Error! Connection failed… » N'empêche que, depuis cette dernière installation, le shell lui-même semblait mieux fonctionner. Cependant, après avoir ré-essayé sudo light dm start, j'ai reçu le même message « Failed to get system bus: Could not connect: No such file or directory. » (Impossible de récupérer le bus système : connexion impossible : Le fichier ou dossier n'existe pas) Cela dit, il semblerait que, même quand bVNC refuse de se connecter au bureau, je peux toujours accéder au terminal.

Autre jour, autre essai : pas de messages à propos de mon problème sur GitHub et j'ai donc décidé d'installer et essayer AnLinux. Cette appli fonctionne avec Termux, et une fois que je l'ai installé et ouvert AnLinux, elle m'a assisté pendant le processus, d'abord, de création d'un shell (en tant que root - pas besoin de sudo), puis de création d'une distrib. Ubuntu. Elle recommandait xfce4, et je l'ai donc choisi. Une fois que Termux eut fait son travail et m'ait demandé de choisir une langue et la disposition de mon clavier (ce qui a pris pas mal de temps, car il a fallu entrer les mêmes renseignements plusieurs fois), il m'a demandé un mot de passe, que j'ai donné et vérifié, puis il m'a indiqué que xfce4 tournait et que, pour l'arrêter, il fallait faire vncserver-stop. Il m'a aussi indiqué que je pouvais utiliser le serveur que je voulais (bVNC, qui d'autre ?) et m'a indiqué le port avec lequel je devais me connecter. Je l'ai mis dans le champ port de bVNC, appuyé sur Connect et… Me voilà, toujours en tant que root, sur un véritable bureau ! Je dois avouer que c'était vraiment plus facile, et plus réussi, avec AnLinux, qu'avec UserLAnd jusqu'ici.

9

I clicked on the default config, checked what was available (nothing, really, beyond a terminal), admired the dock at the bottom of the screen, and went back to the home screen on my telephone. Obviously, Termux must have something going for it. And, just as obviously, using it, plus AnLinux to get things started, plus bVNC to connect to the desktop is, in a way, more complicated than just UserLAnd… In addition, apparently – although I may have done something wrong – when I went to Termux today and typed in vncserver-start, the command was not found. Then in AnLinux, the only option I had, as far as I could see, was to go through the process another time, which, on a daily basis would not be ideal. So, the next day, I started over again with UserLAnd and bVNC and tried installing the xfce4 desktop instead of lxde. Perhaps that would solve (what I thought might be) my memory problems. Something interesting showed up: with this new install of UserLAnd, the choice of full distributions is now between Debian, Kali and Ubuntu. Having chosen the latter, I put in my username and password, and a password for the VNC, and then, as before, it fetched everything necessary for the shell. Once in the shell, I typed in sudo apt-get install xfce4. And waited. At one point, I caught a glimpse of a problem with a and/or the system bus, which made me think of the message I had gotten when I tried to start lightdm in lxde from the terminal. So, I was doubtful. As per Corbin’s instructions, I stopped the App in UserLAnd, then started it again. Oh dear: I got a warning Could not connect! Acknowledge, which I did, then clicked on Ubuntu in UserLAnd, expecting to see a terminal. BUT, I got the xfce4 desktop with AuntieE@localhost in the Xterm. I was thrilled!

J'ai cliqué sur la config par défaut, essayé de voir ce qui était disponible (pas grand chose à part le terminal), admiré le dock en bas de l'écran, puis je suis retournée à l'accueil de mon téléphone. Il semblait évident que Termux avait du bon. Et, tout aussi évident que, l'utiliser, plus AnLinux pour commencer, plus bVNC pour me connecter au bureau, est, d'une certaine manière, plus compliqué que UserLAnd tout court. Puis je n'aimais pas être root dès la connexion. De plus, apparemment, bien que j'aie pu faire quelque chose de mauvais, quand je suis allée à Termux le lendemain pour saisir vncserver-start, la commande n'a pas été trouvée. Ensuite, dans AnLinux, la seule chose à faire, d'après ce que je pouvais voir, était de répéter le processus, ce qui serait loin d'être idéal quotidiennement.

Ainsi, le lendemain, j'ai recommencé à partir de zéro avec UserLAnd et bVNC, en essayant d'installer xfce4 au lieu de lxde. Cela pourrait sans doute corriger mes éventuels problèmes de mémoire. Quelque chose d'intéressant s'est affiché : dans cette nouvelle installation d'UserLAnd, le choix des distributions est parmi Debian, Kali et Ubuntu. J'ai choisi cette dernière, entré mes nom d'utilisateur et mot de passe, ainsi qu'un mot de passe pour le VNC ; puis il a récupéré tout ce qu'il fallait pour le terminal.

Une fois dedans, j'ai tapé sudo apt-get install xfce4. Et j'ai attendu. À un moment, j'ai aperçu un problème avec un/le bus système, qui m'a fait penser au message d'erreur qui s'affichait quand j'essayais de démarrer lightdm in lxde à partir du terminal. J'avais des doutes. Suivant les instructions de Corbin, j'ai arrêté l'appli dans UserLAnd, puis l'ai redémarré. Et non, j'ai eu l'avertissement « Could not connect! Acknowledge » (Connexion impossible ! Confirmer la réception), ce que j'ai fait. Ensuite j'ai cliqué sur Ubuntu dans UserLAnd, en attendant de voir un terminal. MAIS, c'est le bureau de xfce4 avec AuntieE@localhost dans le Xterm qui s'est affiché. J'étais vraiment ravie !

10

Here’s a quick recap : • Install UserLAnd from the Play Store and open it. • If the Ubuntu distribution automatically sends you to SSH, right-click the title (long press), and, in App Info, choose VNC. • Give your username and password, plus a password (which must be between 6 and 8 characters) for the VNC server. • UserLAnd will automatically invite you to download bVNC. Start it and provide the same password again. • Go back to UserLAnd and restart Ubuntu. In the resulting terminal, type in ‘sudo apt-get install xfce4’ and wait, roughly half an hour, while it works. • Return to UserLAnd, right-click the Ubuntu app and click on Stop App. • Clear your memory of whatever’s working (I’m not absolutely certain this is necessary). • Open UserLAnd and click on Ubuntu. When you do, you may see what looks like the same-ol’, same-ol’ UserLAnd terminal. But if you wait a couple of seconds, you will find yourself in xfce4.

Voici un bref résumé :

• Allez au Play Store, installez UserLAnd et ouvrez-le. • Si Ubuntu vous envoie automatiquement sur SSH, faites un clic droit sur le titre (un appui long) et, dans Info appli, choisissez VNC. • Entrez vos nom d'utilisateur et mot de passe, ainsi qu'un mot de passe (qui doit contenir entre 6 et 8 caractères) pour le serveur VNC. • UserLAnd vous invitera automatiquement à télécharger bVNC. Lancez-le et donnez-lui le même mot de passe (voir ci-dessus). • Retournez à UserLAnd, faites un appui long sur l'appli Ubuntu et cliquez sur Arrêter l'appli. • Nettoyez la RAM, s'il y a des choses en mémoire (mais je ne suis pas certaine que ce soit vraiment nécessaire). • Ouvrez UserLAnd et cliquez sur Ubuntu. Après, il se peut que vous voyiez quelque chose qui ressemble au vieux terminal habituel d'UserLAnd. Mais, si vous attendez quelques secondes, vous vous trouverez dans xfce4 !

11

I chose the default config and moved up in the screen and found that AuntieE was connected to the Xterminal (with Applications available at the top of the screen)!!! It seems that it MAY HAVE BEEN a problem of memory and NOT a problem with Huawei/Honor after all. What is more, my access to the desktop seems permanent. All it takes is a slight wait – even turning the phone off and on again. My efforts have paid off. Perhaps my own experience will help those of you who, like me, proceed by trial and error, to get UserLAnd Ubuntu on your phone with a minimum of hassle. Resources: https://github.com/CypherpunkArmory/UserLAnd/issues/ This is the place to go for fast and efficient answers to your questions. You can also make suggestions or requests here. support@userland.tech Additional information from Corbin: UserLAnd is now on f-droid!

J'ai choisi la configuration par défaut et, en naviguant vers le haut de l'écran, j'ai trouvé qu'AuntieE était connectée au terminal X (et que, comme il se doit, « Applications » était disponible tout en haut) !!! Il semblerait que le problème soit - peut-être - un problème de mémoire et PAS un problème avec un Huawei/Honor, après tout. Qui plus est, mon accès au bureau paraît permanent. Tout ce qui est nécessaire est une petite attente, pas même le redémarrage du téléphone.

Mes efforts ont payé ! J'espère que mes propres expériences aideront ceux, qui, comme moi, procèdent par tâtonnements, pour installer UserLAnd Ubuntu sur leur téléphone avec un minimum de difficultés.

DERNIÈRES NOUVELLES (fin janvier 2019) :

Arch Linux est également proposé dans le menu d'UserLAnd.

Quant aux téléphones Huawei et Honor, mon Honor 5C est tellement « vieux » que son EMUI est resté au 5.0.3. Cependant, j'ai appris hier que les dispositifs de cette marque qui ont l'EMUI 9 n'ont quasiment aucun problème avec UserLAnd ! Voici ce qu'a écrit Corbin (en anglais, bien entendu) sur la page GitHub le 31 janvier 2019 : « Pouvez-vous me dire quand vous aurez pu récupérer l'EMUI 9, le dispositif précis que vous avez et si oui, ou non, la mise à jour résout les problèmes déjà constatés. Je voudrais essayer de voir la vitesse de résolution du problème côté Huawei, pour mieux estimer le travail supplémentaire que je dois éventuellement fournir. » Les lecteurs français peuvent envoyer leurs remarques, le cas échéant, à webmaster@fullcirclemag.fr et je les traduirai en anglais avant de les mettre sur GitHub. Merci d'avance !

Ressources

https://github.com/CypherpunkArmory/UserLAnd/issues/ C'est ici qu'il faut aller pour des réponses rapides et utiles à vos questions. Vous pouvez également y faire des suggestions ou demandes. Adresse mail :support@userland.tech Information supplémentaire donnée par Corbin : UserLAnd est maintenant sur f-droid !

issue141/tutoriel1.txt · Dernière modification : 2019/02/08 16:30 de andre_domenech