LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-04-2006, 07:07 PM   #1
rafiqul
Member
 
Registered: Jan 2005
Location: Chicago
Distribution: Fedora Core 4
Posts: 46

Rep: Reputation: 15
FC4 kernal 2.6.11-1.1369_FC4 messed up ?


I have two machines - both has Fedora Core 4. Recently, I am trying to setup IPSec in both machines to verify this. Part of the steps required me to install ipsec-tools 0.6.5 version which required me to specify the location of kernel headers (/lib/modules/2.6.11-1.1369_FC4/build/include).

I have two machines as I said before, machine A, and machine B. machine A - I was able to make ipsec-tools 0.6.5 (was able to include kernel headers). When I attemped to do this at machine B, I dont see anything in the include directory, but a link to ../../../usr/src/kernels/2.6.11-1.1369_FC4-i686. And I tried to go back to /usr/src/ and found is nothing in there. However, I see my machine A has everything, /usr/src/kernels/2.6.11-1.1369_FC4-i686.

That means something happend to my kernels in machine B ? In case I have to re-install the kernel of same version, can anyone give some clue - where to find this kernel, and how to install it ? If installation is not required, can anybody show me the way how to overcome this problem ?

Appreciate your response.
 
Old 02-04-2006, 07:25 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Did you install the kernel-devel.i686 rpm on B?

By the way, the current Fedora 4 kernel is 2.6.15-1.1830, so you're working with a fairly old kernel.

Edit: Have you done a yum upgrade recently?

Last edited by PTrenholme; 02-04-2006 at 07:27 PM.
 
Old 02-04-2006, 07:42 PM   #3
rafiqul
Member
 
Registered: Jan 2005
Location: Chicago
Distribution: Fedora Core 4
Posts: 46

Original Poster
Rep: Reputation: 15
I never installed any kernel on B. I did not do yum upgrade either. How yum help us on this ? I have just downloaded 2.6.15.tar.gz from kernel.org, can you please write me some steps what to do to install this ? I am farely new on kernel installation.


Appreciate your help..

Last edited by rafiqul; 02-04-2006 at 07:44 PM.
 
Old 02-04-2006, 07:56 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
instead of using the vanilla kernel from kernel.org, you probably want to use kernels that have been compiled, tweaked, and tested for Fedora Core, by doing "yum update kernel"
 
Old 02-04-2006, 08:50 PM   #5
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
ipsec-tools 0.5.4 is available via yum, no need to mess around with compiling it (unless you need specific options or the latest version).

I'm not sure which repository it uses but i have base, extras, freshrpms,dag, dries and jpackage

One of those has the ipsec binary.

Check out this faq- http://www.fedorafaq.org/
it'll tell you about yum.

installing is as simple as
#yum install ipsec-tools
 
Old 02-04-2006, 09:19 PM   #6
rafiqul
Member
 
Registered: Jan 2005
Location: Chicago
Distribution: Fedora Core 4
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks spooon. I did both "yum upgrade", and after that "yum update kernel" . My /lib/modules/ currently contains both the old kernel (2.6.11-1.1369_FC4), and new kernel (2.6.15-1.1830_FC4). But when I do "uname -r", it shows old kernel (2.6.11-1.1369_FC4). Does that mean I still have old kernel activated ? How to check the currently working kernel version then ?

Another important observation, I dont see anything under dir /usr/src on machine B (where I just did yum upgrade, and yum update kernel), but I see on machine A.
.my machine A has /usr/src/kernels/2.6.11-1.1369_FC4-i686, so I was expecting this machine (B) should have /usr/src/kernels/2.6.15-1.1830_FC4, but nothing in /usr/src ? That means I will not be able to include kernel headers. Can you please suggest what should I do ?


One more question, can we use yum (same as above) in RedHat ?

Thanks for your help

Last edited by rafiqul; 02-04-2006 at 09:32 PM.
 
Old 02-04-2006, 09:24 PM   #7
rafiqul
Member
 
Registered: Jan 2005
Location: Chicago
Distribution: Fedora Core 4
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks ethics for your advise, however I need 0.6 ipsec-tools, and therefore I have to install it manually. I am wondering how to check the ipsec-tools version after I install it. Recently I used yum to install ipsec-tools, but i never knew what version it installed.

Thanks for your reply.
 
Old 02-04-2006, 11:00 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by rafiqul
[snip]
My /lib/modules/ currently contains both the old kernel (2.6.11-1.1369_FC4), and new kernel (2.6.15-1.1830_FC4). But when I do "uname -r", it shows old kernel (2.6.11-1.1369_FC4). Does that mean I still have old kernel activated ?
[snip]
The kernel you're using is selected when you boot your system. Unless your GRUB config file (/boot/grub/grub.conf has hidemenu uncommented, you should see a kernel selection choice screen when you boot.
 
Old 02-04-2006, 11:35 PM   #9
rafiqul
Member
 
Registered: Jan 2005
Location: Chicago
Distribution: Fedora Core 4
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for the reply. I have rebooted, and now I see the kernel is 2.6.15-1.1830_FC4. But question remains the directory /usr/src/ is empty, and also /lib/modules/2.6.15-1.1830_FC4/build has a link to /usr/src/kernels/2.6.15-1.1830_FC4_i686/, whereas /usr/src/ directory is empty ?

My first concern is this (please see my very first post), I am facing this problem in machine B where I had older kernel, and thats why I upgraded to this newer kernel. My machine A is simply working okay.

Please advise how to over come this problem...I need to specify kernel headers /lib/modules/2.6.X/build/include in order to install 0.6X version ipsec-tools in Machine B.

Previously I installed ipsec-tools using yum in machine B, and probably the version was 0.5.4 (I still dont know how to check the version, I only came to know from previous above post by "ethics".) Anyway, even though yum looks like installed it, but I am missing /usr/sbin/ipsec. That means there is something wrong in installation ? Yum did not give me any error though.

I better install 0.6x (instead of what yum supports -0.5.4) version ipsec-tools in machine B (as I succesfully did in my machine A), but I need to see /lib/modules/2.6X/build/include to make install the ipsec-tool.

Last edited by rafiqul; 02-04-2006 at 11:47 PM.
 
Old 02-05-2006, 07:49 AM   #10
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The /usr/src/... files are installed when you do a yum install kernel-devel, and would not be expected to be there untill you install them.
 
Old 02-05-2006, 10:46 AM   #11
rafiqul
Member
 
Registered: Jan 2005
Location: Chicago
Distribution: Fedora Core 4
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks, yum install kernel-devel works okay.
On more thing, I would appreciate if you could reply this - how to install openssl(Version atleast 0.9.6) in fedora core 4 ?

Thanks
 
Old 02-05-2006, 01:16 PM   #12
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
How about trying:
Code:
yum install openssl
Then read the man page to see how to check the version. If often but not always is done by adding the -v tag when running it at the console.

Peace,
JimBass
 
Old 02-05-2006, 01:43 PM   #13
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Alternatively (assuming you're running a desktop manager), do a yum install yumex and then just run yumex. You'll get a nice GUI on top of yum and, in the "install" tab, search for "openssl." It will list all the ones available for download -- with their versions -- and you can pick the one you want.

N.B. for users of other distributions: yumex is only supported (by the author) for Fedora 4 and 5. An older version is available for FC3.
 
Old 02-05-2006, 05:36 PM   #14
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
A simple way to find out the version if you installed it via Yum OR RPM would be
rpm -qa | grep ipsec

that would list all the RPMs installed in your system, the nfilter it with grep looking for lines containing ipsec. That'd show the name, usually with the version in it
 
  


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
FC4 - problem upgrading kernel from 2.6.11-1.1369_FC4 to 2.6.15 nickleus Linux - General 4 01-12-2006 10:09 AM
Problems after FC4 Kernal Upgrade... f40sirius Linux - Newbie 2 11-14-2005 07:52 AM
NTFS support in FC4 - Kernel 2.6.11-1.1369_FC4 ajmorton Linux - Newbie 1 09-19-2005 12:39 AM
loading 2.4.31 kernal on FC4 distro linuxmotion Linux - Software 2 08-15-2005 01:31 PM
Messed up httpd.conf in FC4 Help! LinuxStart Fedora 11 07-12-2005 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:37 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
Open Source Consulting | Domain Registration