Koozali.org: home of the SME Server

How to apply a patch to e-smith server

Jason Lin

How to apply a patch to e-smith server
« on: February 07, 2000, 09:41:14 PM »
Hi! I'm trying to add VPN Masquerade feature to my e-smith server.  I followed the procedures from the Linux VPN Masquerade HOWTO by John D. Hardin.  There are couple steps I'm not able to follow.  Hope someone can help me.

First one is to back up my kernel sources. How can I do that?

Second one is to apply the VPN Masquerade patch to my kernel.
The steps are:

a. Change to the source directory:
    cd /usr/src   (I don't have problem with this one)
b. Apply the patch:
    zcat ip_masq_vpn.patch.gz | patch -l -p0 > vpn-patch.log 2>&l

There is an error saying that the pipe is broken.  I think the problem came from the "patch". I cannot find "patch" command in my e-smith server.

If anyone have successsfully applied any patch to e-smith server, please give me some help.  Thanks!

Jason

Charlie Brady

RE: How to apply a patch to e-smith server
« Reply #1 on: February 08, 2000, 12:48:35 AM »
Jason Lin wrote:

> First one is to back up my kernel sources. How can I do that?

You don't have any kernel sources - ergo, you can't back them up.

> Second one is to apply the VPN Masquerade patch to my kernel.
> The steps are:
>
> a. Change to the source directory: cd /usr/src   (I don't have
> problem with this one) b. Apply the patch: zcat
> ip_masq_vpn.patch.gz | patch -l -p0 > vpn-patch.log
> 2>&l
>
> There is an error saying that the pipe is broken.  I think the
> problem came from the "patch". I cannot find
> "patch" command in my e-smith server.

It depends which version of the e-smith server/gateway you have whether the patch command is included. But whether it is included or not, you will still have a problem - you don't have linux kernel source, ergo, you can't patch it. And even if you could, you don't have the make command, you don't have a compiler, etc, etc.

The e-smith server and gateway is a server and gateway, and not a software development system. E-smith recommends that you use a RedHat workstation for software development. It is *possible* to add all
the required software to an e-smith system, but it is almost certainly not worth the trouble.

> If anyone have successsfully applied any patch to e-smith
> server, please give me some help.  Thanks!

I know that Fran Boon did some work on that. Have a look at http://www.partyvibe.com/e-smith/ and see if anything there helps you.

Charlie