Thread: I am a new-commer

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    24

    Thumbs up I am a new-commer

    Hi... Linux World...!!!
    I am a new-commer in the Linux World. I have never had any experience on Linux OS. I have Linux RED HAT 7.1 installed in my computer but i am too unknown to all the matters of LINUX to carry on since i am a simple windows 95/98 user. So, is there anyone to help to get started with Linux with a great confidence?

    Another question is---- How can i make programme in the LINUX platform? Is there any built-in interface where i can code my programmes, compile and run it AS i do using TURBO C 3.0?

    PLS LET ME KNOW!!!
    RaHaTk

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    79
    Ok. Here's some basic information.

    The command line commands to get help on command line commands are apropos, man, info, and whatis(in order of their usefulness)

    Your basic editor is VI, but it doesn't work like notepad. I'd recommend that you just bring up vi(type vi at the command line and hit enter), and take the tutorial(type in ":h tutor")

    The other, more powerful, editor is emacs. It, too, has a tutorial and I recommend you take that as well. It is used for editing all kinds of files, and, as such, has special commands available when editing C/C++ files. You'll need to look up modes in the built-in help.

    GCC is the compiler. If you learn emacs, you probably won't even need to know that, though. There are IDE's for Linux, but just using Emacs is more popular for those who need something like that, and vi/gcc for those who don't need to have them all in one program.

    If you have any further questions, I can probably help you, as long as it doesn't involve Xwindows(I only use linux through telnet because the machine I have it on is really slow)

    Oh, and don't make a habit out of being root.
    All generalizations are false

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    24

    Unhappy Thanx But.....

    Thanks a lot.......
    But you haven't told anything about where I can code to develop C/C++ programme. I am using LINUX RED HAT 7.1.

    Please don't mind...in fact I am really too much unknown to LINUX.
    If i develop a simple programme using C/C++ in LINUX Platform, what will the executable format be? i.e we have .exe files that can execute itself just by clicking on the file. what is the format for linux?
    RaHaTk

  4. #4
    Registered User Strider's Avatar
    Join Date
    Aug 2001
    Posts
    149
    In Unix/Linux environments, C/C++ code compilation is done through the command prompt interface. There are applications, like Emacs or XEmacs, that will simplify this for you. I will refrain from going into any detailed description of the process right now since you are new to Linux, but generally once built, the executable can be any given name ( if none is given, the standard is a.out). Linux does not care about extension names like .exe for the executable.

    Your best bet may be to stick with a GUI environment at first. If you have KDE then you will probably have KDevelop which is the KDE desktops version of Visual C++ or whatever. If you do not have it, then you can download an rpm package from the internet. But that is another story and I have to run to class.

    David
    One Ring to rule them all, One Ring to find them,
    One Ring to bring them all and in the darkness bind them
    In the Land of Mordor where the Shadows lie.

  5. #5
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144
    >But you haven't told anything about where I can code to develop C/C++ programme. I am using LINUX RED HAT 7.1. <

    Yes, he did...the editor is vi or emacs. It really is imperitive that you learn how to use either emacs or vi. See if your system has pico. Pico is way more intuitive than the other two, but it lacks a decent amount of power and functionality. Pico will get you going quickly though. Install it if you don't have it...

    gcc is the compiler...go to http://www.gnu.org for info on how to use it. Too much to mention. KDevelop is a pretty sweet little graphical environment, but you really should learn how to do things from the command line since a lot of linux machines have no X server ("linux windows") running...

    create your source file with your editor:

    %vi hello.cpp

    type your source and save. Then compile it:

    %g++ -o hello hello.cpp

    that will give you an executable named "hello" (again, read the compiler (gcc) documentation). Run the executable by typing:

    %./hello
    hello world!

    the great think about linux is that there's tons of free information on the internet. In fact your probably have a lot of it already installed on your hard drive (i have no experience with Red Hat. however i know that Mandrake and SuSE give you the option to install volumes of documentation) also, start searching on google for tutorials. They're out there...
    THIS IS NOT JUST A CHRONICLING OF THINGS WE HAVE DONE IN THE PAST BUT OUR RISE TO POWER.

  6. #6
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    I am a new-commer
    Don't worry, it's natural. The first time it happened to me I thought that I was having some kind of attack. Just don't get addicted!

  7. #7
    Registered User EvenFlow's Avatar
    Join Date
    Oct 2001
    Posts
    422
    >>Don't worry, it's natural. The first time it happened to me I thought that I was having some kind of attack. Just don't get addicted!<<

    LOL
    Ramble on...

  8. #8
    Registered User
    Join Date
    Oct 2001
    Posts
    24

    Talking Thanxxxxxxxxx

    Thanx you all.....
    I am goitng try with all the ideas you have given.....
    I shall be right back with newer disturbing items
    RaHaTk

  9. #9
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    Cool

    Hmm... what can i say... I do recommend that you start with a GUI interface... as long as you succeed to configure it properly. Then you could start to tackle with the terminals...

    Welcome!!
    Yes...YES!!! I did it! Ha ha ha...I'm king of the world...No..No..please-wait-no...!!!!-- This program has performed an illegal operation AND WILL be shut down....Ack-Choking..help...ack..

  10. #10
    phubuh
    Guest
    Buy a book, read the manual, or find a tutorial.

  11. #11
    In The Light
    Join Date
    Oct 2001
    Posts
    598

    Terminal window

    suggestion!
    get comfortable with a terminal window. even if you are using Gnome, KDE or some other GUI the terminal window is where the power is.
    as far as c/c++ goes i prefer emacs over vi - it's a personal choice. it very simple.. open a terminal window. type emacs filename.cpp the editor will open an emacs window with the default c/c++ highlighting etc. when you get bolder emacs also handles perl, lisp, fortran and other languages quit well.
    and as mention before RT_M. books are good
    M.R.

  12. #12
    Registered User Sunny's Avatar
    Join Date
    Nov 2001
    Posts
    101

    Thumbs up Rahat, try DevCpp

    Hey Guys, don't mean to make publicity here,
    but i found out that DevCpp for Linux just came out. I don't know how much this matters to you, but personally i am really happy about it. I havn't had a chance to tackle with Kdevelop, however, but i understand it's good.

    DevCpp is a C++ compiler which has a very nice IDE ( Graphical ) and some support for OpenGl. The things i like most about it is the Ide and the OpenGl stuff. Otherwise, i couldn't really say much. But I think it's really nice cause it's Freeware too.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. hello from new commer
    By atifrana in forum Contests Board
    Replies: 2
    Last Post: 02-27-2003, 10:17 AM