I AM VERY NEW AT Fedora/Redhat Linux I have installed both on my PC successfully. I would now like to write C++ and java applications and i am not sure how i go about doing this. Can you help, or guide me to some documentation please ?
I have spent a lot of money on the hardware and a lot of time on the software installation and i am quite impressed at he simplicity of it all and would like to use Linux kernal as well ( OF WHICH I HAVE NO KNOWLEDGE )
So basically, I NEED AN IDIOTS GUIDE TO ALL THE ABOVE !!
Can you please help me ?
Kaushik Chauhan
----- Original Message ----- From: "Kaushik Chauhan" chauhan_kash@yahoo.co.uk To: fedora-list@redhat.com Sent: Wednesday, February 23, 2005 1:40 PM Subject: Fedora- redhat Linux
I AM VERY NEW AT Fedora/Redhat Linux I have installed both on my PC successfully. I would now like to write C++ and java applications and i am not sure how i go about doing this. Can you help, or guide me to some documentation please ?
I have spent a lot of money on the hardware and a lot of time on the software installation and i am quite impressed at he simplicity of it all and would like to use Linux kernal as well ( OF WHICH I HAVE NO KNOWLEDGE )
So basically, I NEED AN IDIOTS GUIDE TO ALL THE ABOVE !!
Can you please help me ?
Kaushik Chauhan
Have a look at the guides at http://www.redhat.com/docs/manuals/enterprise/. Specifically Red Hat Enterprise Linux Developer Tools Guide, Red Hat Enterprise Linux Using the GNU Compiler Collection (GCC) and the like.
Red Hat Enterprise Linux (RHEL) 4 has been built from technology tested in Fedora Core, so the RHEL 4 guides are very appropriate.
Thomas
This depends on how much you know about programming; obviously, if you're new to C++ or java, you won't be writing the next killer app right off the bat.
Finding tutorials is a bit beyond the scope of this list (google "C++ tutorial" or "java tutorial"), but as far as development environs ...
Java has a development environment (IDE) called "Eclipse" that, IIRC, is in Fedora Core. Try "yum list eclipse" to see if you have it, and "yum -y install eclipse" if you don't. If you prefer to use the command line, learn to use vi, emacs, or nano (text editors) to write your code. Use javac to compile, just as on Windows and Mac OS.
C++ also has IDEs, but I'm not familiar with them. Again, use vi, emacs, or nano to write your code on the command line, and use gcc to compile (you may need to install it, depending on what options you chose when installing Fedora.
Happy hacking!
On Wed, 23 Feb 2005, m g wrote:
This depends on how much you know about programming; obviously, if you're new to C++ or java, you won't be writing the next killer app right off the bat.
Finding tutorials is a bit beyond the scope of this list (google "C++ tutorial" or "java tutorial"), but as far as development environs ...
Java has a development environment (IDE) called "Eclipse" that, IIRC, is in Fedora Core. Try "yum list eclipse" to see if you have it, and "yum -y install eclipse" if you don't. If you prefer to use the command line, learn to use vi, emacs, or nano (text editors) to write your code. Use javac to compile, just as on Windows and Mac OS.
C++ also has IDEs, but I'm not familiar with them. Again, use vi, emacs, or nano to write your code on the command line, and use gcc to compile (you may need to install it, depending on what options you chose when installing Fedora.
Happy hacking!
See also the JPackage repository (jpackage.org) for Eclipse RPMs and many other Java-related tools and systems.
There is a C/C++ plugin for Eclipse (called CDT). It seems pretty featureful (maybe not as mature as the Java one), though I'm just trying to learn it now.
Matthew Saltzman wrote:
On Wed, 23 Feb 2005, m g wrote:
This depends on how much you know about programming; obviously, if you're new to C++ or java, you won't be writing the next killer app right off the bat.
Finding tutorials is a bit beyond the scope of this list (google "C++ tutorial" or "java tutorial"), but as far as development environs ...
Java has a development environment (IDE) called "Eclipse" that, IIRC, is in Fedora Core. Try "yum list eclipse" to see if you have it, and "yum -y install eclipse" if you don't. If you prefer to use the command line, learn to use vi, emacs, or nano (text editors) to write your code. Use javac to compile, just as on Windows and Mac OS.
C++ also has IDEs, but I'm not familiar with them. Again, use vi, emacs, or nano to write your code on the command line, and use gcc to compile (you may need to install it, depending on what options you chose when installing Fedora.
Happy hacking!
See also the JPackage repository (jpackage.org) for Eclipse RPMs and many other Java-related tools and systems.
There is a C/C++ plugin for Eclipse (called CDT). It seems pretty featureful (maybe not as mature as the Java one), though I'm just trying to learn it now.
I use source-navigator for C/C++, etc. (it handles other stuff, too). You have to build it from source, but it's pretty nifty. If you want to use a GUI debugger with it, you also need to build and install insight, too (based on gdb).
SourceNavigator: http://sourcenav.sourceforge.net Insight: http://sourceware.cygnus.com/insight
Works for me! ---------------------------------------------------------------------- - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com - - VitalStream, Inc. http://www.vitalstream.com - - - - Memory is the second thing to go, but I can't remember the first! - ----------------------------------------------------------------------
Kaushik Chauhan wrote:
I AM VERY NEW AT Fedora/Redhat Linux I have installed both on my PC successfully. I would now like to write C++ and java applications and i am not sure how i go about doing this. Can you help, or guide me to some documentation please ?
I have spent a lot of money on the hardware and a lot of time on the software installation and i am quite impressed at he simplicity of it all and would like to use Linux kernal as well ( OF WHICH I HAVE NO KNOWLEDGE )
So basically, I NEED AN IDIOTS GUIDE TO ALL THE ABOVE !!
Can you please help me ?
Kaushik Chauhan
For c++ fedora includes a complete set of tools: if you use gnome there's anjuta, if you use kde there's kdevelop (yum install anjuta or yum install kdevelop). The compiler is gcc. For java fedora offers no support except command line compiler (gcc-java). As already suggested the best IDE for java is eclipse.
On Thu, 24 Feb 2005, Giulio Sorrentino wrote:
For java fedora offers no support except command line compiler (gcc-java). As already suggested the best IDE for java is eclipse.
While it's true that there is no built-in Java support, there is plenty available. The best resource for serious Java on Fedora is jpackage.org.
Watch out about installing the Sun Java from RPM--it's not properly integrated into the structure that Fedora has set up to be Java ready. It's passable if all you need is the Mozilla plugin, but for more sophisticated use it has serious drawbacks. (This is gleaned from reading JPackage docs.)
On Wednesday 23 February 2005 20:40, Kaushik Chauhan wrote:
and would like to use Linux kernal as well
If, as you say, you've successfully installed fedora and rh then you are running a linux kernel. If you've only just done it then one of the first things to do is update your system to all the latest versions. login as root and in a terminal type $ yum upgrade everything including your kernel will be updated to the latest available - it can take a while first time.
Duncan
On Thu, 2005-02-24 at 06:20, Duncan Lithgow wrote:
On Wednesday 23 February 2005 20:40, Kaushik Chauhan wrote:
and would like to use Linux kernal as well
If, as you say, you've successfully installed fedora and rh then you are running a linux kernel. If you've only just done it then one of the first things to do is update your system to all the latest versions. login as root and in a terminal type $ yum upgrade everything including your kernel will be updated to the latest available
- it can take a while first time.
Duncan
Duncan,
Thanks for the tip but still confused !! How do i login as root and in terminal type ?
As soon as i boot-up, the PC requests the userid and password and displays the Fedora window !!
Kash
Kaushik Chauhan wrote:
Thanks for the tip but still confused !! How do i login as root and in terminal type ?
As soon as i boot-up, the PC requests the userid and password and displays the Fedora window !!
Where it says "Username", enter "root" (without the quotes) and [press return.
It'll then ask you for the root password you set up during the installation. Enter it and press return.
It should then log you in to a gnome session by default.
You can right-click on the desktop and select "Open Terminal" to open a terminal.
Paul.
On Thu, 2005-02-24 at 11:24, Paul Howarth wrote:
Kaushik Chauhan wrote:
Thanks for the tip but still confused !! How do i login as root and in terminal type ?
As soon as i boot-up, the PC requests the userid and password and displays the Fedora window !!
Where it says "Username", enter "root" (without the quotes) and [press return.
It'll then ask you for the root password you set up during the installation. Enter it and press return.
It should then log you in to a gnome session by default.
You can right-click on the desktop and select "Open Terminal" to open a terminal.
Paul.
Paul,
That was great. I feel much better now. I will attempt the next few steps into Linux RH. Thank for your help. I am still open to suggestion on more information as i am new to this . Please feel free to send me any ideas/suggestions etc Once again thanks to all who have supported me.
Kash
That was great. I feel much better now. I will attempt the next few steps into Linux RH. Thank for your help. I am still open to suggestion on more information as i am new to this . Please feel free to send me any ideas/suggestions etc Once again thanks to all who have supported me.
Kash
The important tip that I didn't get for ages was using typing # su - 1. '#' means 'you're logged in as a user' 2. '$' means 'you're logged in as root' 3. If you've logged in as a user and need to make something work as root. You can right click and get a terminal, then you can change to any user by typing sy <user-name> you'll then be prompted for password. 4. If you type # su - it will ask you for your root password and behave as if you'd loged in as root. I don't understand why but it works better than # su root
have fun. Have you looked at http://www.tldp.org/ ?
Duncan
On Wed, 23 Feb 2005 19:40:32 +0000, Kaushik Chauhan chauhan_kash@yahoo.co.uk wrote:
I AM VERY NEW AT Fedora/Redhat Linux I have installed both on my PC successfully. I would now like to write C++ and java applications and i am not sure how i go about doing this. Can you help, or guide me to some documentation please ?
I have spent a lot of money on the hardware and a lot of time on the software installation and i am quite impressed at he simplicity of it all and would like to use Linux kernal as well ( OF WHICH I HAVE NO KNOWLEDGE )
So basically, I NEED AN IDIOTS GUIDE TO ALL THE ABOVE !!
check out the introduction to Linux guide in LDP (tldp.org)
Duncan Lithgow wrote:
The important tip that I didn't get for ages was using typing # su -
- '#' means 'you're logged in as a user'
- '$' means 'you're logged in as root'
- If you've logged in as a user and need to make something work as
root. You can right click and get a terminal, then you can change to any user by typing sy <user-name> you'll then be prompted for password.
That's "su <user-name>" (or "su - <user-name>"), not "sy <user-name>"; watch out for typos when giving advice to newbies who might not spot them...
- If you type
# su - it will ask you for your root password and behave as if you'd loged in as root. I don't understand why but it works better than # su root
It works better because (as is hinted at in "man su"), using the "-" parameter makes su run as a login shell, which will correctly set up root's environment (which includes /sbin and /usr/sbin, two directories full of useful admin tools, in the PATH variable). Not using the "-" parameter means that su does not run as a login shell and hence doesn't set up root's environment, so amongst other things, the /sbin and /usr/sbin directories don't get put in the PATH variable.
Paul.
On Thu, 2005-02-24 at 16:46 +0100, Duncan Lithgow wrote:
The important tip that I didn't get for ages was using typing # su -
- '#' means 'you're logged in as a user'
- '$' means 'you're logged in as root'
I think you've said that backwards ;]
[my FC3 machine] [cwt@jaja ~]$ su - Password: [root@jaja ~]#
- If you type
# su - it will ask you for your root password and behave as if you'd loged in as root. I don't understand why but it works better than # su root
su - gets root's shell, su keeps the user's.
Which means, among other things, your environment variables are still your own user's.
I'm sure some else can explain better, but basically su isn't really 'becoming' root.
Craig Thomas wrote:
On Thu, 2005-02-24 at 16:46 +0100, Duncan Lithgow wrote:
The important tip that I didn't get for ages was using typing # su -
- '#' means 'you're logged in as a user'
- '$' means 'you're logged in as root'
I think you've said that backwards ;]
[my FC3 machine] [cwt@jaja ~]$ su - Password: [root@jaja ~]#
Yup. Notice, though, that with the original Fedora Core 3 setup, the prompt won't get changed correctly if you are using (t)csh. Fixed in one of the updates, I think.
- If you type
# su - it will ask you for your root password and behave as if you'd loged in as root. I don't understand why but it works better than # su root
su - gets root's shell, su keeps the user's.
Which means, among other things, your environment variables are still your own user's.
I'm sure some else can explain better, but basically su isn't really 'becoming' root.
* Matthew Saltzman mjs@ces.clemson.edu [2005-02-23 20:26]:
On Thu, 24 Feb 2005, Giulio Sorrentino wrote:
For java fedora offers no support except command line compiler (gcc-java). As already suggested the best IDE for java is eclipse.
While it's true that there is no built-in Java support, there is plenty available. The best resource for serious Java on Fedora is jpackage.org.
This is changing for FC4. Rawhide has lots of new packages that java developers will probably find interesting:
- java-1.4.2-gcj-compat{,-devel} ("traditional" JVM/JDK environment with free tools) - Java-GNOME bindings - lots of ant packages - Eclipse - lots of Jakarta stuff - and more ...
Andrew