LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FC4 kernal 2.6.11-1.1369_FC4 messed up ? (https://www.linuxquestions.org/questions/linux-newbie-8/fc4-kernal-2-6-11-1-1369_fc4-messed-up-411719/)

rafiqul 02-04-2006 07:07 PM

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.

PTrenholme 02-04-2006 07:25 PM

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?

rafiqul 02-04-2006 07:42 PM

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..

spooon 02-04-2006 07:56 PM

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"

ethics 02-04-2006 08:50 PM

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

rafiqul 02-04-2006 09:19 PM

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

rafiqul 02-04-2006 09:24 PM

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.

PTrenholme 02-04-2006 11:00 PM

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.

rafiqul 02-04-2006 11:35 PM

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.

PTrenholme 02-05-2006 07:49 AM

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.

rafiqul 02-05-2006 10:46 AM

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

JimBass 02-05-2006 01:16 PM

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

PTrenholme 02-05-2006 01:43 PM

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.

ethics 02-05-2006 05:36 PM

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 :)


All times are GMT -5. The time now is 03:30 AM.