RE: Cloning disks with dd and netcat

2004-07-27 Thread David Ross
Thanks for the replys so far guys. Yeah I suppose I could RSYNC it
across like Volker said but yeah, I'm trying to do this in the simplest
way, ie no messing around with the bootloader or installing a base
system first. I'm trying again now with a new image...etc

Thanks again, I'll let you guys know how it goes.
Dave



-Original Message-
From: Robert Waldner [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2004 01:35
To: [EMAIL PROTECTED]
Subject: Re: Cloning disks with dd and netcat 


On Tue, 27 Jul 2004 13:13:22 +0200, Volker Tanger writes:
What happens if you do the partitioning manually and image the 
partitions (/dev/hda1, /dev/hda2, ...) one-by-one instead of the 
complete disc? Well, doing the partitioning manually, you could RSYNC 
the server instead of DD+NETCATing, which probably is faster and fails 
more gracefully.

But would mean mucking around with the bootloader, which usually is the
point for doing _complete_ disc-images.

cheers,
rw
--
/ Ing. Robert Waldner | Security Engineer |  CoreTec IT-Security  \
\   [EMAIL PROTECTED]   | T +43 1 503 72 73 | F +43 1 503 72 73 x99 /





Exim 4.20 + Mailman

2004-06-01 Thread David Ross
Hi

Has anyone set up Exim 4.20 and mailman successfully and if so do you
mind if I take a look at your exim.conf? I've done this before with Exim
3 but am struggling to find working examples for exim4.

Thanks
Dave




Chkrootkit - true/false ?

2004-05-21 Thread David Ross
Hi 

I have rkhunter and chkrootkit running in a cron job every morning and
every now and again I get chkrootkit results like this:

Checking `lkm'... You have 3 process hidden for ps command
Warning: Possible LKM Trojan installed

And sometimes this:

Checking `lkm'... You have 3 process hidden for readdir command
You have 3 process hidden for ps command
Warning: Possible LKM Trojan installed

Sometimes chkrootkit returns nothing detected and every time rkhunter
tells me nothing is wrong. Is this a false positive with chkrootkit and
debian woody?

Dave



LILO + boot raid1 (software)

2004-04-28 Thread David Ross
Hi 

I recently decided that it was time we did a kernel upgrade on a server
of ours running software RAID1 on a Debian 3 Woody machine. The raid
devices are set up fine and running ok:

FilesystemSize  Used Avail Use% Mounted on
/dev/md0  478M   68M  410M  15% /
/dev/md1  2.8G  513M  2.2G  18% /usr
/dev/md2  9.3G  3.6G  5.7G  39% /var
/dev/md3  5.9G  3.2G  2.7G  54% /home

Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hdc1[1] hda1[0]
  489856 blocks [2/2] [UU]

md1 : active raid1 hdc2[1] hda2[0]
  2931776 blocks [2/2] [UU]

md2 : active raid1 hdc3[1] hda3[0]
  9767424 blocks [2/2] [UU]

md3 : active raid1 hdc5[1] hda5[0]
  6233088 blocks [2/2] [UU]

unused devices: none

My lilo.conf looks like this:

lba32
boot=/dev/md0
root=/dev/md0
install=/boot/boot.b
map=/boot/map
delay=20
default=raid
vga=normal

image=/vmlinuz
label=Linux
read-only
restricted
image=/boot/vmlinuz-2.4.26
label=two4twenti6
read-only
restricted
image=/boot/vmlinuz-2.4.20-raid
label=raid
read-only
restricted

When I try run lilo I get the following:

blubox:~# lilo -v -v
LILO version 22.2, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2001 John Coffman
Released 05-Feb-2002 and compiled at 20:57:26 on Apr 13 2002.
MAX_IMAGES = 27

RAID info:  nr=2, raid=2, active=2, working=2, failed=0, spare=0
md: RAIDset device 0 = 0x0301
Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x80
Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x81
bios_dev: PT match found 2 matches (0x80)
RAID scan: geo_get: returns geo-device = 0x80 for device 0301
disk-start = 63raid_offset = 0 ()
md: RAIDset device 1 = 0x1601
bios_dev: PT match found 2 matches (0x80)
RAID scan: geo_get: returns geo-device = 0x81 for device 1601
disk-start = 63raid_offset = 0 ()
Warning: using BIOS device code 0x80 for RAID boot blocks
raid_setup returns offset = 
raid flags: at bsect_open  0x02
Reading boot sector from /dev/md0
Merging with /boot/boot.b
Secondary loader: 15 sectors.
map_create:  boot=0900  map=0301
Fatal: map file must be on the boot RAID partition
blubox:~#

As far as I can see the map file *is* on the boot RAID partition. Is
there something I am missing here? I have other machine set up like this
too and they seem to work fine. Any help will be greatly appreciated!

Thanks
Dave



RE: LILO + boot raid1 (software)

2004-04-28 Thread David Ross
Hi

I tried that too but still no luck! Help!

Thanks your help
Dave 

-Original Message-
From: Marek Braina [mailto:[EMAIL PROTECTED] 
Sent: 28 April 2004 12:16
To: [EMAIL PROTECTED]
Subject: Re: LILO + boot raid1 (software)

Hi,

I think you should add this line in your lilo.conf

raid-extra-boot=/dev/hdX/dev/hdY

or /dev/sdX if you have scsi..

or manually set heads, cylinders .. acodring to fdisk -ul /dev/hdXY or /dev/sdXY Marek 
Brazina
 lba32
 boot=/dev/md0
 root=/dev/md0
 install=/boot/boot.b
 map=/boot/map
 delay=20
 default=raid
 vga=normal

 image=/vmlinuz
   label=Linux
   read-only
   restricted
 image=/boot/vmlinuz-2.4.26
   label=two4twenti6
   read-only
   restricted
 image=/boot/vmlinuz-2.4.20-raid
   label=raid
   read-only
   restricted




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]





RE: Apache 1.3.26 + Frontpage Extensions + dpkg-buildpackage

2004-03-18 Thread David Ross
After searching though as much docs as I could get my hands on a
colleague suggested I just use webdav instead. THEN after reading up on
that the client decides they do not want it anymore. Wasn't a waste
though cos now I sort of know how to set it up. 

If anyone's stuck with installing Frontpage Extensions on a debian box
with apache I suggest u first try out WebDAV (www.webdav.org).

Thanks For those who helped/replied to my post :)

Dave

-Original Message-
From: mimo [mailto:[EMAIL PROTECTED] 
Sent: 16 March 2004 03:23
To: David Ross
Cc: [EMAIL PROTECTED]
Subject: Re: Apache 1.3.26 + Frontpage Extensions + dpkg-buildpackage

I have managed to set this up using mod-mirfak
(libapache-mod-frontpage-mirfak). I think I had to hack it a bit - let
me know if it doesnt work immediately.

mimo

David Ross wrote:

Hi All

I am trying to install FrontPage Extensions support with Apache 1.3.26 
on a Debian Woody box. I got the patch from 
ftp://ftp.rtr.com/pub/fp-patch-apache_1.3.22.Z and gunzipped it. From 
there on I followed the following instructions:

apt-get source apache
cd apache-1.3.26/upstream/tarballs
tar xvzf apache_1.3.26.tar.gz
cd apache_1.3.26
patch -p1 path_tofp-patch-apache_1.3.22 cd 
path-to-toplevelapache-1.3.26 dpkg-buildpackage -rfakeroot -b cd ..
dpkg -i apache-common
dpkg -i apache

When it came to patching the apache source I had to do patch -p1 
/usr/src/apache/fp-patch-apache_1.3.22 because I had errors trying to 
patch it with the above method. After taking care of a few dependency 
problems I tried to run the dpkg-buildpackage command but I got the 
following error message:

duys:/usr/src/apache/apache-1.3.26# dpkg-buildpackage -rfakeroot -b
dpkg-buildpackage: source package is apache
dpkg-buildpackage: source version is 1.3.26-0woody3
dpkg-buildpackage: source maintainer is Martin Schulze 
[EMAIL PROTECTED]
dpkg-buildpackage: host architecture is i386  fakeroot debian/rules 
clean dh_testdir dh_testroot rm -rf build-stamp install-stamp 
configure-stamp rm -f debian/apaci debian/buildinfo.Debian rm -f 
debian/{*.gif,*.jpg,*.gz,local-apxs,apxs} o debian/o rm -rf 
debian/debian debian/docs debian/apache-dev.docs debian/apache-doc.docs

debian/apache-common.examples debian/examples contrib/*/*o chmod +x 
debian/{*post*,*preinst*,*prerm*,modchk}
chmod +x debian/{ubersed,apacheconfig,sys-build.mk,scripts/*.*}
/usr/bin/make -f debian/sys-build.mk source.clean
make[1]: Entering directory `/usr/src/apache/apache-1.3.26'
make[1]: Leaving directory `/usr/src/apache/apache-1.3.26'
rm -rf debian.diff debian/stampdir
dh_clean
 debian/rules build
/usr/bin/make -f debian/sys-build.mk source.make
make[1]: Entering directory `/usr/src/apache/apache-1.3.26'
Extracting upstream tarball
upstream/tarballs/apache-contrib-1.0.8-nomodcvs.tar.gz successful.
Extracting upstream tarball upstream/tarballs/apache_1.3.26.tar.gz
successful.
Extracting upstream tarball
upstream/tarballs/apache_1.3.26/ABOUT_APACHEtar: This does not look 
like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors  failed!
make[1]: *** [debian/stampdir/source.unpack] Error 1
make[1]: Leaving directory `/usr/src/apache/apache-1.3.26'
make: *** [debian/stampdir/source.make] Error 2

Has anyone seen anything like this before? Is there something I need to

do before I try build the package? The instructions I have been 
following can be found at 
http://archives.neohapsis.com/archives/linux/debian/2002-q4/0488.html

Any help at all will be greatly appreciated! Thanks.

Dave

  



--
Please note that this account is being filtered using anti UCE systems.
If you send email to this account make sure that it could not be
mistaken as UCE.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]





RE: Apache 1.3.26 + Frontpage Extensions + dpkg-buildpackage

2004-03-18 Thread David Ross
After searching though as much docs as I could get my hands on a
colleague suggested I just use webdav instead. THEN after reading up on
that the client decides they do not want it anymore. Wasn't a waste
though cos now I sort of know how to set it up. 

If anyone's stuck with installing Frontpage Extensions on a debian box
with apache I suggest u first try out WebDAV (www.webdav.org).

Thanks For those who helped/replied to my post :)

Dave

-Original Message-
From: mimo [mailto:[EMAIL PROTECTED] 
Sent: 16 March 2004 03:23
To: David Ross
Cc: debian-isp@lists.debian.org
Subject: Re: Apache 1.3.26 + Frontpage Extensions + dpkg-buildpackage

I have managed to set this up using mod-mirfak
(libapache-mod-frontpage-mirfak). I think I had to hack it a bit - let
me know if it doesnt work immediately.

mimo

David Ross wrote:

Hi All

I am trying to install FrontPage Extensions support with Apache 1.3.26 
on a Debian Woody box. I got the patch from 
ftp://ftp.rtr.com/pub/fp-patch-apache_1.3.22.Z and gunzipped it. From 
there on I followed the following instructions:

apt-get source apache
cd apache-1.3.26/upstream/tarballs
tar xvzf apache_1.3.26.tar.gz
cd apache_1.3.26
patch -p1 path_tofp-patch-apache_1.3.22 cd 
path-to-toplevelapache-1.3.26 dpkg-buildpackage -rfakeroot -b cd ..
dpkg -i apache-common
dpkg -i apache

When it came to patching the apache source I had to do patch -p1 
/usr/src/apache/fp-patch-apache_1.3.22 because I had errors trying to 
patch it with the above method. After taking care of a few dependency 
problems I tried to run the dpkg-buildpackage command but I got the 
following error message:

duys:/usr/src/apache/apache-1.3.26# dpkg-buildpackage -rfakeroot -b
dpkg-buildpackage: source package is apache
dpkg-buildpackage: source version is 1.3.26-0woody3
dpkg-buildpackage: source maintainer is Martin Schulze 
[EMAIL PROTECTED]
dpkg-buildpackage: host architecture is i386  fakeroot debian/rules 
clean dh_testdir dh_testroot rm -rf build-stamp install-stamp 
configure-stamp rm -f debian/apaci debian/buildinfo.Debian rm -f 
debian/{*.gif,*.jpg,*.gz,local-apxs,apxs} o debian/o rm -rf 
debian/debian debian/docs debian/apache-dev.docs debian/apache-doc.docs

debian/apache-common.examples debian/examples contrib/*/*o chmod +x 
debian/{*post*,*preinst*,*prerm*,modchk}
chmod +x debian/{ubersed,apacheconfig,sys-build.mk,scripts/*.*}
/usr/bin/make -f debian/sys-build.mk source.clean
make[1]: Entering directory `/usr/src/apache/apache-1.3.26'
make[1]: Leaving directory `/usr/src/apache/apache-1.3.26'
rm -rf debian.diff debian/stampdir
dh_clean
 debian/rules build
/usr/bin/make -f debian/sys-build.mk source.make
make[1]: Entering directory `/usr/src/apache/apache-1.3.26'
Extracting upstream tarball
upstream/tarballs/apache-contrib-1.0.8-nomodcvs.tar.gz successful.
Extracting upstream tarball upstream/tarballs/apache_1.3.26.tar.gz
successful.
Extracting upstream tarball
upstream/tarballs/apache_1.3.26/ABOUT_APACHEtar: This does not look 
like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors  failed!
make[1]: *** [debian/stampdir/source.unpack] Error 1
make[1]: Leaving directory `/usr/src/apache/apache-1.3.26'
make: *** [debian/stampdir/source.make] Error 2

Has anyone seen anything like this before? Is there something I need to

do before I try build the package? The instructions I have been 
following can be found at 
http://archives.neohapsis.com/archives/linux/debian/2002-q4/0488.html

Any help at all will be greatly appreciated! Thanks.

Dave

  



--
Please note that this account is being filtered using anti UCE systems.
If you send email to this account make sure that it could not be
mistaken as UCE.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]






Apache 1.3.26 + Frontpage Extensions + dpkg-buildpackage

2004-03-16 Thread David Ross
Hi All

I am trying to install FrontPage Extensions support with Apache 1.3.26
on a Debian Woody box. I got the patch from
ftp://ftp.rtr.com/pub/fp-patch-apache_1.3.22.Z and gunzipped it. From
there on I followed the following instructions:

apt-get source apache 
cd apache-1.3.26/upstream/tarballs 
tar xvzf apache_1.3.26.tar.gz 
cd apache_1.3.26 
patch -p1 path_tofp-patch-apache_1.3.22 
cd path-to-toplevelapache-1.3.26 
dpkg-buildpackage -rfakeroot -b 
cd .. 
dpkg -i apache-common 
dpkg -i apache

When it came to patching the apache source I had to do patch -p1 
/usr/src/apache/fp-patch-apache_1.3.22 because I had errors trying to
patch it with the above method. After taking care of a few dependency
problems I tried to run the dpkg-buildpackage command but I got the
following error message:

duys:/usr/src/apache/apache-1.3.26# dpkg-buildpackage -rfakeroot -b
dpkg-buildpackage: source package is apache
dpkg-buildpackage: source version is 1.3.26-0woody3
dpkg-buildpackage: source maintainer is Martin Schulze
[EMAIL PROTECTED]
dpkg-buildpackage: host architecture is i386
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -rf build-stamp install-stamp configure-stamp
rm -f debian/apaci debian/buildinfo.Debian
rm -f debian/{*.gif,*.jpg,*.gz,local-apxs,apxs} o debian/o
rm -rf debian/debian debian/docs debian/apache-dev.docs
debian/apache-doc.docs debian/apache-common.examples debian/examples
contrib/*/*o
chmod +x debian/{*post*,*preinst*,*prerm*,modchk}
chmod +x debian/{ubersed,apacheconfig,sys-build.mk,scripts/*.*}
/usr/bin/make -f debian/sys-build.mk source.clean
make[1]: Entering directory `/usr/src/apache/apache-1.3.26'
make[1]: Leaving directory `/usr/src/apache/apache-1.3.26'
rm -rf debian.diff debian/stampdir
dh_clean
 debian/rules build
/usr/bin/make -f debian/sys-build.mk source.make
make[1]: Entering directory `/usr/src/apache/apache-1.3.26'
Extracting upstream tarball
upstream/tarballs/apache-contrib-1.0.8-nomodcvs.tar.gz successful.
Extracting upstream tarball upstream/tarballs/apache_1.3.26.tar.gz
successful.
Extracting upstream tarball
upstream/tarballs/apache_1.3.26/ABOUT_APACHEtar: This does not look like
a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
 failed!
make[1]: *** [debian/stampdir/source.unpack] Error 1
make[1]: Leaving directory `/usr/src/apache/apache-1.3.26'
make: *** [debian/stampdir/source.make] Error 2

Has anyone seen anything like this before? Is there something I need to
do before I try build the package? The instructions I have been
following can be found at
http://archives.neohapsis.com/archives/linux/debian/2002-q4/0488.html

Any help at all will be greatly appreciated! Thanks.

Dave




Apache 1.3.26 + Frontpage Extensions + dpkg-buildpackage

2004-03-15 Thread David Ross
Hi All

I am trying to install FrontPage Extensions support with Apache 1.3.26
on a Debian Woody box. I got the patch from
ftp://ftp.rtr.com/pub/fp-patch-apache_1.3.22.Z and gunzipped it. From
there on I followed the following instructions:

apt-get source apache 
cd apache-1.3.26/upstream/tarballs 
tar xvzf apache_1.3.26.tar.gz 
cd apache_1.3.26 
patch -p1 path_tofp-patch-apache_1.3.22 
cd path-to-toplevelapache-1.3.26 
dpkg-buildpackage -rfakeroot -b 
cd .. 
dpkg -i apache-common 
dpkg -i apache

When it came to patching the apache source I had to do patch -p1 
/usr/src/apache/fp-patch-apache_1.3.22 because I had errors trying to
patch it with the above method. After taking care of a few dependency
problems I tried to run the dpkg-buildpackage command but I got the
following error message:

duys:/usr/src/apache/apache-1.3.26# dpkg-buildpackage -rfakeroot -b
dpkg-buildpackage: source package is apache
dpkg-buildpackage: source version is 1.3.26-0woody3
dpkg-buildpackage: source maintainer is Martin Schulze
[EMAIL PROTECTED]
dpkg-buildpackage: host architecture is i386
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -rf build-stamp install-stamp configure-stamp
rm -f debian/apaci debian/buildinfo.Debian
rm -f debian/{*.gif,*.jpg,*.gz,local-apxs,apxs} o debian/o
rm -rf debian/debian debian/docs debian/apache-dev.docs
debian/apache-doc.docs debian/apache-common.examples debian/examples
contrib/*/*o
chmod +x debian/{*post*,*preinst*,*prerm*,modchk}
chmod +x debian/{ubersed,apacheconfig,sys-build.mk,scripts/*.*}
/usr/bin/make -f debian/sys-build.mk source.clean
make[1]: Entering directory `/usr/src/apache/apache-1.3.26'
make[1]: Leaving directory `/usr/src/apache/apache-1.3.26'
rm -rf debian.diff debian/stampdir
dh_clean
 debian/rules build
/usr/bin/make -f debian/sys-build.mk source.make
make[1]: Entering directory `/usr/src/apache/apache-1.3.26'
Extracting upstream tarball
upstream/tarballs/apache-contrib-1.0.8-nomodcvs.tar.gz successful.
Extracting upstream tarball upstream/tarballs/apache_1.3.26.tar.gz
successful.
Extracting upstream tarball
upstream/tarballs/apache_1.3.26/ABOUT_APACHEtar: This does not look like
a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors
 failed!
make[1]: *** [debian/stampdir/source.unpack] Error 1
make[1]: Leaving directory `/usr/src/apache/apache-1.3.26'
make: *** [debian/stampdir/source.make] Error 2

Has anyone seen anything like this before? Is there something I need to
do before I try build the package? The instructions I have been
following can be found at
http://archives.neohapsis.com/archives/linux/debian/2002-q4/0488.html

Any help at all will be greatly appreciated! Thanks.

Dave