Outils pour utilisateurs

Outils du site


issue111:courrier

Reasons I Like Ubuntu I had an old HP notebook with Windows XP with the same problem - took minutes to boot and same to get online, and sometimes just would not load an app. I was about to junk it when I tried Xubuntu 12.04 – tried 14.04 but no PAE. I found that Xubuntu 12.04 or earlier didn't require it. Xubuntu 12.04 works like a charm. I'm sure it’s even less than 40 sec to load. I use Xubuntu 14.04 on an old desktop, 2 GB RAM and Ubuntu 14.04 on the same computer as a dual boot. Tried Ubuntu 15.10 but it kept crashing. I use this computer just for testing, although, because of age, it’s not too useful for distros. On another old desktop – not sure of age as it was one that someone was going to discard – 2 GB RAM single core, I put 12.04 on it. My husband uses it for Internet and a bit of other stuff. I think it's very slow, but he is happy with it. I use Mint 17 on my main computer and am very happy with it. I am 80+ and using Inkscape tutorials from Full Circle which I find fun. They are great. Just did lesson #49. Trudy Thorgeirson

Des raisons pour lesquelles j'aime Ubuntu

J'avais un vieil ordinateur portable HP sous Windows XP avec le même problème : il fallait des minutes pour démarrer et la même chose pour aller sur le Net ; parfois il refusait même de charger une appli.

J'étais sur le point de le mettre à la poubelle quand j'ai essayé Xubuntu 12.04 - j'avais essayé la 14.04, mais l'ordi n'avait pas de PAE (Physical Address Extension, Extension d'adresse physique). J'ai découvert que Xubuntu 12.04, ou moins récent, n'en avait pas besoin. Xubuntu 12.04 fonctionne merveilleusement. Je suis certaine qu'il faut moins de 40 secondes pour le charger. J'utilise Xubuntu 14.04 sur un vieil ordinateur de bureau avec 2 Go de RAM et, en double amorçage sur la même machine, Ubuntu 14.04.

J'ai essayé Ubuntu 15.10, mais il n'arrêtait pas de se planter. J'utilise cet ordinateur uniquement pour faire des tests, bien que, à cause de son âge, ce ne soit pas trop utile pour les distributions.

J'ai mis la 12.04 sur un autre vieil ordinateur de bureau - je ne connais pas vraiment son âge, car quelqu'un allait le jetait - avec un seul cœur et 2 Go de RAM. Mon mari l'utilise pour aller sur le Web et quelques autres petites tâches. Je le trouve très lent, mais il lui plaît.

Sur mon ordinateur principal, j'utilise Mint 17 et j'en suis vraiment contente. J'ai plus de 80 ans et j'utilise les tutoriels sur Inkscape du Full Circle. Ils sont géniaux et je les trouve amusants. Je viens de terminer la leçon numéro 49.

Trudy Thorgeirson

Python Problem I have learned to code with HTML 5 and CSS 3. I have made two websites and uploaded them. Now reading through Full Circle, I thought it is time to learn Python. I opened “Program in Python, Part 1”. I saved the first bit to hello.py. Very nice. Then trouble! It reads:­ Before we can run the program, we need to set it to be executable. Do this by typing chmod +x hello.py in the folder where you saved your python file. Now let's run the program. greg@earth:~/python_examples$ ./hello.py My question: how do I type in a folder. This is not possible. It says run the program. How? Pieter Greg says: You should use a terminal window. In that window change to the folder (in my case it was “/home/greg/python_examples/”), but yours would be different. Like this… cd ~/python_examples but whereever you saved your program code. You want to change the permissions to be able to execute it as a program, not just a text file. You would then type in the terminal… chmod +x hello.py Then to run the program, you would type into the terminal… ./hello.py or you could force Linux to use python like this… python ./hello.py

Problème avec Python

Je sais coder avec HTML 5 et CSS 3. J'ai créé deux sites Web et les ai téléversés. Maintenant, en lisant le Full Circle, je pensais que le moment était venu pour moi d'apprendre le Python. J'ai ouvert « Programmer en Python, Partie 1 » et j'en ai sauvegardé le début jusqu'à hello.py. Très sympa.

Puis, des ennuis ! Il dit : « Avant de pouvoir exécuter le programme, nous devons le rendre exécutable. Saisissez : chmod +x hello.py dans le dossier où est enregistré le fichier source. À présent, exécutons le programme.

greg@earth:~/python_exemples$ ./hello.py »

Ma question est la suivante : comment taper dans un dossier. Ce n'est pas possible. Il dit d'exécuter le programme. Mais, comment ?

Pieter

Greg répond : Vous devrez utilisez une fenêtre de terminal. Dans cette fenêtre, changer pour le dossier (dans mon cas c'était « /home/greg/python_examples/ »), mais le vôtre sera différent. Il faut faire…

cd ~/python_examples

mais, au lieu du titre de mon dossier à moi, vous entrez celui dans lequel vous avez sauvegardé le code du programme. Vous devez changer les permissions pour pouvoir exécuter votre fichier comme un programme et pas juste comme un fichier texte. Puis, vous tapez dans le terminal…

chmod +x hello.py

Ensuite, pour exécuter le programme, vous tapez dans le terminal…

./hello.py

Ou, vous avez la possibilité de forcer Linux à utiliser Python comme ceci…

python ./hello.py

issue111/courrier.txt · Dernière modification : 2016/08/15 13:52 de andre_domenech