how do I start programming for ubuntu?

Asked by Robrto Sanchz on 2010-12-09

I see a lot of links and get lost on all ramifications of links, and I don't know what is the official path to follow to start develop.

thank you

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu python-defaults Edit question
Assignee:
No assignee Edit question
Last query:
2010-12-23
Last reply:
2010-12-23
Theodotos Andreou (theodotos) said : #1

Depends on the language you want to use but a starting point would be to install the "build-essential" package. Try the command "sudo apt-get install build-essential" from terminal or find it in Ubuntu Software Senter. Then you can start by reading these web pages:

https://help.ubuntu.com/community/Programming
https://help.ubuntu.com/community/PowerUsersProgramming

Robrto Sanchz (robech) said : #2

I see https://help.ubuntu.com/community/Programming has tons of links,

I would like to see the steps to an easy or test request/defect which can be fixed very easily (like just changing a word/variable)

Once I do that easy fix, I can start checking more complicated defects/requests.

Is my request above a realistic one or is it totally an out of the scope?

Theodotos Andreou (theodotos) said : #3

Learning to program takes more than a post here to get you started. The above links are merely some guidelines to get you started. I can help you a bit if you tell me the programming language you are interested in.

Robrto Sanchz (robech) said : #4

Python

Theodotos Andreou (theodotos) said : #5

A simple "Hello World" file for python can be the following:

Paste the following code in gedit, vim or any other editor of your choice:

  #!/usr/bin/env python
  print "Hello World!"

and save it as hello.py

Open terminal and cd to the directory you saved it

  cd arena

make it executable

  chmod +x hello.py

Run it:

  ./hello.py

This is just to get you started. To learn more about python download the "pyhton-doc" package:

  sudo apt-get install python-doc

And then paste the following URI to your browser:

  /usr/share/doc/python-doc/html/index.html

Happy reading!

Robrto Sanchz (robech) said : #6

aser@ubuntu:~/Desktop$ chmod +x hello.py
aser@ubuntu:~/Desktop$ ./hello.py
Warning: unknown mime-type for "Hello World!" -- using "application/octet-stream"
Error: no such file "Hello World!"
aser@ubuntu:~/Desktop$

Theodotos Andreou (theodotos) said : #7

Make sure you don't have any spaces in front of the #! (aka shebang) sequence in the first line.

Can you help with this problem?

Provide an answer of your own, or ask Robrto Sanchz for more information if necessary.

To post a message you must log in.