Outils pour utilisateurs

Outils du site


issue111:courrier

Ceci est une ancienne révision du document !


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

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

issue111/courrier.1469968578.txt.gz · Dernière modification : 2016/07/31 14:36 de auntiee