View Full Version : I am a new-commer

10-21-2001, 08:32 AM
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?


10-21-2001, 03:11 PM
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.

10-22-2001, 06:16 AM
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?

10-22-2001, 07:45 AM
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.


10-22-2001, 09:08 AM
>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 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...

10-22-2001, 11:07 AM
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!

10-22-2001, 06:56 PM
>>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!<<


10-25-2001, 06:25 AM
Thanx you all.....
I am goitng try with all the ideas you have given.....
I shall be right back with newer disturbing items ;)

11-22-2001, 05:40 AM
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!! :cool:

12-10-2001, 01:36 PM
Buy a book, read the manual, or find a tutorial.

01-01-2002, 11:23 PM
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;)

01-02-2002, 10:55 PM
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. :D