Find the answer to your Linux question:
Results 1 to 10 of 10
I'm a newbie to linux. I've been using it for 4 months but wasn't using it for programming. I used to use Windows for programming in C++ and PHP. I'm ...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Location
    India
    Posts
    10

    How To Start Programming In Linux ?

    I'm a newbie to linux. I've been using it for 4 months but wasn't using it for programming. I used to use Windows for programming in C++ and PHP. I'm moving completely to linux.

    So, how can start programming in Linux ? I want to program in C++ and need to install server and PHP in linux. I'm using Ubuntu 6.10. So, can any expert tell me the easiest way to go about these things ?

    P.S :- And, when programming in C++ in linux, are th header files different ? I mean, I use iostream and all.

  2. #2
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    If you use the search menu for Start Programming, you will get more than 200 hits ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Location
    India
    Posts
    10
    Oh. Thanks for the "useful" reply, drl. >_<

  4. #4
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    So, how can start programming in Linux ? I want to program in C++ and need to install server and PHP in linux. I'm using Ubuntu 6.10. So, can any expert tell me the easiest way to go about these things ?
    I'm not sure I understand what you're saying. If you know C++, you already know how to "start" programming in Linux. As long as the code you wrote in MS Windows was ANSI standard, you shouldn't have to change anything in the way you code.

    Are you asking what types of code editors are available? What kind of GUI toolkits? Be more specific.

    If you want to install a Linux server with PHP, I recommend you start a separate thread in the "Servers" section of the forum.

    P.S :- And, when programming in C++ in linux, are th header files different ? I mean, I use iostream and all.
    No. You use the same <iostream> headers and all that. The only likely difference is that if you were using any Microsoft-specific headers (things that dealt with COM or MS-DOS calls for instance) they will not exist in Linux.

    Quote Originally Posted by astrojith
    Oh. Thanks for the "useful" reply, drl. >_<
    I don't appreciate your attitude. We here at LinuxForums are all volunteers, and we help hundreds of people every day. It's a given that a lot of those people will have the same questions, so why should we not direct you to several other threads of people in the same spot as you? If you're not willing to search around on your own you won't get very far as a programmer.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  5. #5
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Quote Originally Posted by astrojith
    I'm a newbie to linux. I've been using it for 4 months but wasn't using it for programming. I used to use Windows for programming in C++ and PHP. I'm moving completely to linux.

    So, how can start programming in Linux ? I want to program in C++ and need to install server and PHP in linux. I'm using Ubuntu 6.10. So, can any expert tell me the easiest way to go about these things ?

    P.S :- And, when programming in C++ in linux, are th header files different ? I mean, I use iostream and all.
    If you are looking for C++ with GUI there is QT Designer.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  6. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Quote Originally Posted by techieMoe
    I'm not sure I understand what you're saying. If you know C++, you already know how to "start" programming in Linux. As long as the code you wrote in MS Windows was ANSI standard, you shouldn't have to change anything in the way you code.

    Are you asking what types of code editors are available? What kind of GUI toolkits? Be more specific.
    .....
    ....
    I don't appreciate your attitude. We here at LinuxForums are all volunteers, and we help hundreds of people every day.
    I agree...
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  7. #7
    Just Joined!
    Join Date
    Dec 2006
    Location
    India
    Posts
    10
    Well, guys, I feel guilty. I mean, I know I shouldn't have said that. And, I never do in forums. But, you know, what can I say, my funny bone was activated ? Anyway, I didn't mean to disrespect you guys. I was just being silly. Please forgive me.

    And, about the question. Yeah, techieMoe, I was looking for a GUI to do programming like Bloodshed Dev C++ and all. And, I think Lakshmipati has some answers for that. Kudos, Lakshmi. And, I found one problem with programming in linux. I mean, in Windows, every compiled program runs in a DOS prompt. So, how would it run in linux ?

    And, sorry for delaying the reply so long. I was out for sometime. Having some nice time with my cousins during the holidays. The only thing I did was blog and I kept away from forums. Sorry for everything.

  8. #8
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Quote Originally Posted by astrojith
    Well, guys, I feel guilty. I mean, I know I shouldn't have said that. And, I never do in forums. But, you know, what can I say, my funny bone was activated ? Anyway, I didn't mean to disrespect you guys. I was just being silly. Please forgive me.

    And, about the question. Yeah, techieMoe, I was looking for a GUI to do programming like Bloodshed Dev C++ and all. And, I think Lakshmipati has some answers for that. Kudos, Lakshmi. And, I found one problem with programming in linux. I mean, in Windows, every compiled program runs in a DOS prompt. So, how would it run in linux ?

    And, sorry for delaying the reply so long. I was out for sometime. Having some nice time with my cousins during the holidays. The only thing I did was blog and I kept away from forums. Sorry for everything.
    at times we all do some silly stuff ....No problem...
    in linux choose 'Terminal' - that's ur DOS prompt in linux.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  9. #9
    Just Joined!
    Join Date
    Dec 2006
    Location
    India
    Posts
    10
    Thanks, Lakshmipathi !! Thank you for forgiving me. It means a lot to me. And, so I'm looking for an IDE like Turbo C. Not one like Visual Basic.

  10. #10
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    You should realize that in Linux, the terminal is an extraordinarily powerful part of the OS. Command-line applications are still very alive and well in this world. Unlike DOS. So I recommend you familiarize yourself with the terminal even for other reasons than testing your apps.

    As far as your questions:

    Apache and PHP are both available for Linux. Install, and you have a running web server. There's probably a page on the Ubuntu wiki for these.

    As far as GUI IDEs for C/++ development, there are a few options. KDevelop is a popular one for KDE, and Anjuta is popular for Gnome. There's also a plugin for Eclipse called CDT that allows such development in Eclipse.

    Also, going back to the terminal thing, have you looked into maybe using vi or Emacs? I've personally never found a C/++ IDE that works as well for me as vi does.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...