LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2008, 11:38 AM   #1
dheerajsuthar2008
Member
 
Registered: May 2008
Posts: 48

Rep: Reputation: 15
How To Begin Linux Programming


HI,
I have been using linux (Red Hat Fedora) for last one year.I have got quite good experience of running the system.But now i want to begin programming in it.I know c/c++,java(core),HTML,javascript.How should i proceed in Linux.Plz give stepwise direction.
Thanx.
 
Old 05-03-2008, 12:01 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Welcome to LQ!!

I would start by writing programs. First, make sure that GCC is installed, and then dive in and start writing the simple programs. ("Hello, world" and all that.)
For the GUI, you will need one of two toolkits: Qt or Gtk There are some differences in licensing, so read up on that before doing anything you might want to sell.

This book is very good:
http://www.amazon.com/Beginning-Linu.../dp/1874416680
 
Old 05-03-2008, 12:57 PM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
I'm guessing the sort of person who would ask this question at all (rather than just dive in), is the sort of person who would be better off with an IDE and some tutorials than just using a text editor and the compiler.

When I recently started starting to try some Linux programming, I investigated IDE's and tutorials and decided KDevelop was the best
http://www.kdevelop.org/
Notice the links to tutorials etc., from there.

I wish I had had enough time to actually use it myself enough that I could really tell you whether it is a good choice. I'm trying to do too many things at once and that one mostly fell through the cracks. But I am an experienced programmer and I think I know what to look for in an IDE and I think KDevelop is better than the others I considered.

Last edited by johnsfine; 05-03-2008 at 01:08 PM.
 
Old 05-03-2008, 01:51 PM   #4
LordAnta
Member
 
Registered: Apr 2008
Location: Bucharest, Romania
Distribution: Slackware current
Posts: 126

Rep: Reputation: 17
When i wrote my first program, it was in Borland Pascal 7.0 (those were the days), after that ended up writting code in C under Borland C++ 3.1. After using them, it was easy for me to work with gcc/g++ + a text editor (vi,emacs,joe,pico,mc). It was almost the same thing except that the debugging part was a real pain.

If you are used to program under window$, first read the differences between gcc/g++ and the microsoft C compiler (there are some big differences from header file to how the memory is managed).

So the first thing to read is http://gcc.gnu.org. Afterwards read about make files, configure files, cmake, automake, autoconf.

If you are used to Microsoft Visual Studio, then KDevelop or Anjuta is the best IDE for you. I mostly work with the latest KDevelop, it's very good, but has a bit of problems with the debugging part.

If you want to work with GUI than Qt (for programs under KDE, a lot easier then WinApi) or GTK (a little bit difficult for my taste).

This is for the C/C++ part.

If you want .NET, aka C# than take a look at the mono project http://www.mono-project.com. Almost the same thing, but in some cases even better.

For Java you only need the JDK, JRE, Netbeans or Eclipse for the IDE part.

For Javascript, HTML: Quanta, and if you want to be hardcore a simple text editor + firebug as addon in firefox.

And as pixellany said, just dive in, enjoy and you will never go back at WinApi programming.
 
Old 05-03-2008, 02:27 PM   #5
MattThiffault
LQ Newbie
 
Registered: May 2008
Location: Ontario, Canada
Distribution: Arch and Gentoo for the most part, going to check out Ubuntu Studio tonight though.
Posts: 5

Rep: Reputation: 0
If you want to write GUI programs that KDevelop + the Qt Library is a great combination. The Qt API is very straight forward, you could easily write all the GUI code yourself. Or, you could use Qt's designer program which will generate all the interface code and then you're free to write the backend (the code which actually gives the program functionality). Now, you can't sell anything you write in Qt commercially, but hey, its linux, GPL it!
 
Old 05-03-2008, 03:14 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by MattThiffault View Post
Now, you can't sell anything you write in Qt commercially, but hey, its linux, GPL it!
I thought that you simply had to pay royalties to sell Qt-based SW. (Never read the license--just going by memory from what I have read in books.)
 
Old 05-03-2008, 06:56 PM   #7
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
I'm pretty sure you need to pay to even use Qt to begin a test project in preparation for writing Qt base commercial software. They very clearly state you can't wait to pay until you are ready to start selling your software. If you start writing it without paying, you are committing to open source. I don't know all the details, so obviously the license itself is a better source than my memory of my interpretation of the license.
 
Old 05-04-2008, 02:12 AM   #8
dheerajsuthar2008
Member
 
Registered: May 2008
Posts: 48

Original Poster
Rep: Reputation: 15
Smile Thanx For All That Replies

It was very kind of all of you.Esp for that Qt suggestion.I have already dived into linux programming using GCC n simple text editor.But the problem i was facing was equivalent library for TC conio/dos.h.Will Qt solve that probs??
 
Old 05-04-2008, 10:01 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by dheerajsuthar2008 View Post
It was very kind of all of you.Esp for that Qt suggestion.I have already dived into linux programming using GCC n simple text editor.But the problem i was facing was equivalent library for TC conio/dos.h.Will Qt solve that probs??
That does not seem likely. Qt is a GUI toolkit. Unless you entered code that is trying to call a QT function, then I think you have another issue. If you can post exactly what you were trying to do, someone may be able to help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux Foundation to begin third annual desktop Linux survey LXer Syndicated Linux News 0 10-17-2007 05:30 PM
Linux+ Where To Begin carlosinfl Linux - Certification 4 09-21-2006 01:11 PM
How do i install linux? where to begin what to do? Penelope Linux - Newbie 3 07-19-2006 05:13 PM
What's a good Programming language to begin with? PLZ HELP! Jonescity Programming 24 07-30-2005 08:43 AM
How to begin Installing Linux on an Single Board Computer. Laeeq Linux - Hardware 0 02-27-2004 09:42 AM


All times are GMT -5. The time now is 02:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration