Re: disklabel differences FreeBSD, DragonFly

2006-07-29 Thread Andreas Klemm
On Fri, Jul 28, 2006 at 03:36:27PM -0700, Matthew Dillon wrote:
> :On Thu, Jul 27, 2006 at 02:21:59PM +0200, Joerg Sonnenberger wrote:
> :> On Thu, Jul 27, 2006 at 08:39:37AM +0200, Andreas Klemm wrote:
> :
> :Hmm, for the sake of compatibility, wouldn't it have been an option,
> :to add this extra bit to the end of the struct ?
> : Andreas ///
> 
> The thing to note here is that FreeBSD had to make room for the
> UFS1+UFS2 boot code, so it moved the boot code back to the point
> where it abuts the 8-partition-sized disklabel.
> 
> So at least insofar as FreeBSD goes, the partition table cannot be
> expanded to 16 partitions with UFS1+UFS2 boot code.  I'm guessing
> that it *could* be expanded to 16 partitions with UFS1 only or 
> UFS2 only boot code (assuming the boot code were relocated back
> to where it was originally in FreeBSD-4/5 times, before UFS2 came
> along).
> 
> With regards to simply recognizing a DragonFly partition... yes,
> that would be easy to do.  Since FreeBSD is now devfs-based, the
> bit we had to steal to support 16 partitions in /dev isn't an issue.

Couldn't all BSDs restructure the disklabel in -current so that
we would have the same base for the next major release ?

Then its only a question of drivers to suppot UFS2 or not.

But then compatibility would be there for some time ...

Incompatible to UFS's like from Sun I think we are already, so we
don't have to honour them. Remember a current thread in german BSD
group where somebody complained about FreeBSD - mounting a Sun
filesystem r/w - destroyed the filesystem. Luckily he could recover
using fsck -b 32.

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 6
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: disklabel differences FreeBSD, DragonFly

2006-07-27 Thread Andreas Klemm
On Thu, Jul 27, 2006 at 02:21:59PM +0200, Joerg Sonnenberger wrote:
> On Thu, Jul 27, 2006 at 08:39:37AM +0200, Andreas Klemm wrote:
> > Later I wanted to mount the dfly filesystems on FreeBSD 6.1,
> > of course still my main Unix ;-) But it wasn't possible.
> 
> DragonFly disklabels allow 16 entries by default, FreeBSD still limits
> it to 8. That's why you can't read it directly.
> 

Hmm, for the sake of compatibility, wouldn't it have been an option,
to add this extra bit to the end of the struct ?

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 6
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: disklabel differences FreeBSD, DragonFly

2006-07-27 Thread Andreas Klemm
On Thu, Jul 27, 2006 at 02:28:18PM -0400, Mike Meyer wrote:
> In <[EMAIL PROTECTED]>, Rick C. Petty <[EMAIL PROTECTED]> typed:
> > On Thu, Jul 27, 2006 at 09:49:48AM -0400, Steve Ames wrote:
> > > On Thu, Jul 27, 2006 at 02:21:59PM +0200, Joerg Sonnenberger wrote:
> > > > DragonFly disklabels allow 16 entries by default, FreeBSD still limits
> > > > it to 8. That's why you can't read it directly.
> > > Are there plans to bump the default up from 8? I'm honestly torn on
> > > this topic whenever I install a new system. On the one hand I like
> > > having a lot of discrete mountpoints to control potential usage. On
> > > the other hand with drive space being so inexpensive I sometimes
> > > wonder if I need to bother and can get away with very few mountpoints.
> > I would think that cheap disk space would mean larger disks which implies
> > more mountpoints ???
> 
> Nope. One of the historical uses of partitions was to act as firewalls
> between subsystems, so that subsystem A running out of space didn't
> cause subsystem B to die for lack of space. This had the downside of
> making it more likely that one of the two would run out of space
> because the excess space from another subsystem could only be used by
> it. With cheap disk space, you overallocate by enough to give you
> plenty of warning before you have to deal with the issue. You can
> safely share that space, and doing so means you have to "deal with the
> issue" less often.
> 
> These days, the only technical reason I know of for having separate
> mountpoints is because you want to run commands that work on
> filesystems on the two parts with different arguments or under
> different conditions.

Well I still prefer to "design" my filesystems no matter how big
disks are.

So I have better control of what needs backup using dump
and when I need to restore parts of my disk its also quicker
and more reliable to restore a subtree.

Also I'd gues that its still valid that less file movement
in root filesystem increases robustness if you have a power outage.
Same true for other important filesystems.

Also it makes it easier to upgrade a system, since you only nail
/ and /usr, if the rest is in other filesystems.

Also its easier to newfs "/" and "/usr", if "/var", "/usr/local"
and "/usr/X11R6", "/home", ... are on differnet filesystems.

Also you can increase system performance by choosing bigger block and
frag size in filesystems with bigger files on average.

If you have a news filesystem you perhaps want to finetune settings
of filesystem to have more inodes available ...

You see, I think there is still demand for using many filesystems
if you are open minded for having the best support in every "shitty"
situation ;-)


Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 6
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: disklabel differences FreeBSD, DragonFly

2006-07-27 Thread Andreas Klemm
to followup myself ... I just see, we also have pack identifier,
its the additional struct behind it that differs.
"Bootstrap name" etc...

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 6
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


disklabel differences FreeBSD, DragonFly

2006-07-26 Thread Andreas Klemm
Hi,

DragonFly uses another disklabel as FreeBSD I discovered.

Made a test installation of their 1.6 yesterday.

Later I wanted to mount the dfly filesystems on FreeBSD 6.1,
of course still my main Unix ;-) But it wasn't possible.

The disklabel couldn't be read and as a result devfs didn't
create the devices under /dev.

So I compared sys/disklabel.h on the 2 BSDs and
discovered a difference at the very beginning of the struct.

I'm not sure for what exact purpose Matt uses his new
pack identifier. Does somebody have a clue ???

Is this perhaps something useful that FreeBSD could also use/need ?
Or at least adopt, to be compatible if it doesn't hurt too much ???

Would be cool to be able to mount fs's across BSDs.

Our FreeBSD 6.1 one:
struct disklabel {
u_int32_t d_magic;  /* the magic number */
u_int16_t d_type;   /* drive type */
u_int16_t d_subtype;/* controller/d_type specific */
char  d_typename[16];   /* type name, e.g. "eagle" */

char  d_packname[16];   /* pack identifier */

/* disk geometry: */

DragonFly:
struct disklabel {
u_int32_t d_magic;  /* the magic number */
u_int16_t d_type;   /* drive type */
u_int16_t d_subtype;/* controller/d_type specific */
char  d_typename[16];   /* type name, e.g. "eagle" */

/* 
 * d_packname contains the pack identifier and is returned when
 * the disklabel is read off the disk or in-core copy.
 * d_boot0 and d_boot1 are the (optional) names of the
 * primary (block 0) and secondary (block 1-15) bootstraps
 * as found in /boot.  These are returned when using
 * getdiskbyname(3) to retrieve the values from /etc/disktab.
 */
union {
charun_d_packname[16];  /* pack identifier */
struct {
char *un_d_boot0;   /* primary bootstrap name */
char *un_d_boot1;   /* secondary bootstrap name */
} un_b;
} d_un;
#define d_packname  d_un.un_d_packname
#define d_boot0 d_un.un_b.un_d_boot0
#define d_boot1 d_un.un_b.un_d_boot1

    /* disk geometry: */


Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 6
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: nvi for serious hacking

2005-10-23 Thread Andreas Klemm
On Tue, Oct 18, 2005 at 02:08:40AM +0900, Sangwoo Shim wrote:
> Actually the first thing that I do after minimal installing of new system is
> to install vim from the ports tree. (in fact, installing cvsup, of course :-)
> I remember once upon a time someone (david?) made a suggestion that nvi in
> our tree should be changed to vim-lite(or something.) I'm tend to agree
> with that.. (Although vim is GPL'd, nvi is in the src/contrib anyway..)

Please no ;-)

Although vim has some nice features its definitively different
to standard vi behaviour, which can really bitch you in some
situations.

Most favourite example:
I personally still get mad if it comes to the "u" undo key.

Standard vi lets you toggle your last change by hitting "u".

So I'm used that it doesn't hurt to type the "u" key multiple times.
This is very usefull to let your eye browse through a complex change
to make an "a/b" comparison.

If you do that in vim, then you loose as many last changes as you
hit "u" repeatedly. And if you did many changes you loose a serious
amount of work.

>From my experience you cannot recover from such a mistake.

Therefore standard vi is for me much superior, since with it
I can get my job done in a reliable manner without fancy
side effects.

I don't want to start an editor flamewar. I know many people
who start to like vi starting with vim. And editors are an
issue of taste and experience in use ...

Its only a thing to take into consideration whats better.

To learn standard vi, thats available everywhere.
Or to have the same situation as with emacs ...
Vim is still kind of an exot for me.
That its standard vi on nearly all Linuxes around
still doesn't qualify it enough as standard vi...

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 6
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: network settings

2005-09-22 Thread Andreas Klemm
On Thu, Sep 22, 2005 at 01:35:52PM +0100, eoghan wrote:
> On a different note... I tried the upgrade from the sysinstall
> and used the main ftp freebsd site... 

I usually upgrade system via cvsup and recompile it new from source.

1st kernel, reboot, then OS.
Mandatory is to read /usr/src/UPDATING

Then I update /etc hierarchie using mergemaster.

After that its up to you to use "portupgrade" to recompile
all installed ports.


> but it chocked at a perl install.
> I assume this is for the ports tree?
> Now on shutdown i get stuff like:
> Not Found.
> Not Found.
> Not Found.
> I cant exactly remember what the message is but it is something like 
> this. Im in work and my freebsd machine is at home. Any clues?

Without error message usually no clue.
And I never update systems that way, so in general no idea.

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.4
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: network settings

2005-09-21 Thread Andreas Klemm
On Mon, Sep 19, 2005 at 10:37:25AM +0100, eoghan wrote:
> [... rc.conf ...]
> Also, my network assign ip's to each pc on the network.
> I noticed in the conf the ip was specified, which can 
> change... is there any way of doing this in the rc.conf?

So you have a DHCP server in your network.

You can configure the interface in FreeBSD, so that it makes
use of the DHCP service. To get ip address, network mask,
default route, DNS servers automatically.

All you need to do is to configure the interface in 
/etc/rc.conf with
="DHCP"

You may also configure everything static for your machine
if you know, if there are some IPs in your network reserved
for static IPs.

Typically Servers get static IPs and DNS entries on a network.

If you are working with a laptop and have to use different
settings for your system, lets say in one network DHCP, in
another location you need a certain static ip, then you
can have a look at the port sysutils/personality.

It helps you to add system files to kind of a "flat file
repository". Then you can save these file under a name
of your choice.

You simply restore the settings, whenever you change to
a location which needs different settings and reboot.

Another method is to put it very early in a system
startup file. But this method is tricky. Not too early
and not too late in the system boot process ... It needs
surely some fiddeling and trial and error ...

    Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.4
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: need hints to recover lost FreeBSD partition entries in MBR ...

2005-09-12 Thread Andreas Klemm
On Mon, Sep 12, 2005 at 10:30:51AM +0200, Florent Thoumie wrote:
> Le Dimanche 11 septembre 2005 à 20:24 +0200, Andreas Klemm a écrit :
> > fdisk -u did the trick to interactively edit the partition table.
> > 
> > Confusing was then, that the previous FreeBSD partitions
> > /dev/ad4s3d and /dev/ad4s4d were not present anymore.
> > 
> > I had to use /dev/ad4s3c and /dev/ad4s4.
> > 
> > But now I luckily was able to mount my old filesystems.
> > 
> > Am now in the process of cleaning up.
> > 
> > Thanks for all the help.
> 
>   Too late but you might want to have a look at sysutils/testdisk.

hmmm ... are you sure that it not only displays the 
filling of mounted filesystems ?

>From the ports description it looks to me:
"`disktool' is a good sysadmin tool for monitoring 
diskfull situations to avoid datafile corruption."

My situation was way different, since I lost my partition
table in MBR and was not able to mount anything since I needed
to reconstructure the partitiontable using fdisk 1st.

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.4
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: need hints to recover lost FreeBSD partition entries in MBR ...

2005-09-11 Thread Andreas Klemm
fdisk -u did the trick to interactively edit the partition table.

Confusing was then, that the previous FreeBSD partitions
/dev/ad4s3d and /dev/ad4s4d were not present anymore.

I had to use /dev/ad4s3c and /dev/ad4s4.

But now I luckily was able to mount my old filesystems.

Am now in the process of cleaning up.

Thanks for all the help.


-- 
Andreas Klemm - Powered by FreeBSD 5.4
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: need hints to recover lost FreeBSD partition entries in MBR ...

2005-09-11 Thread Andreas Klemm
On Sun, Sep 11, 2005 at 09:42:54AM -0500, Joe Koberg wrote:
> You might want /usr/ports/sysutils/scan_ffs
> 
> from the package description:
> 
>  scan_ffs(8) recovers accidential lost or deleted disklabels.

Thanks for the hint. It turns out for me that for some strange
reason the FreeBSD Slice 4 doesnt start exactly on a Cylinder
boundary :-( DragonFly or Partition Magic, one of these tools
must be the culprit.

Disk name:  ad4FDISK Partition Editor
DISK Geometry:  19457 cyls/255 heads/63 sectors = 312576705 sectors (152625MB)

Offset   Size(ST)End Name  PType   Desc  SubtypeFlags

 0 63 62- 12 unused0
63   24579387   24579449ad4s1  7fat   11=
  24579450  174080340  198659789ad4s2  4 extended DOS5  =
 198659790   18860310  217520099ad4s3  8freebsd  165=
 217520100   95061708  312581807- 12 unused0

scan_ffs -s -b 217520100 ad4
ufs2 at 217528802 size 23761975 mount /data time Mon Jan 31 16:49:36 2005

off by 8702 (217528802-217520100=8702)

detected partition start doesnt start on cylinder:
217528802/255/63=13540.54


Although I try to make the previous slice 3 a little larger
sysinstall doesnt allow me to make the slice greater than
up to the partition boundary.

So I end up with that, see above
217520100/255/63=13540.00

Using sysinstall I cannot create a slightly wrong but working
partition table to access my data again.

Question: What can I use now to be able to re-create Slice 4
starting not exactly at partition boundary but instead
at Sector 217528802 

I tried fdisk but cannot enter something like interactive
mode.

All it tells me is this:

[EMAIL PROTECTED] ~ fdisk ad4
*** Working on device /dev/ad4 ***
parameters extracted from in-core disklabel are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=310101 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT)
start 63, size 24579387 (12001 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 5 (0x05),(Extended DOS)
start 24579450, size 174080340 (85000 Meg), flag 0
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 198659790, size 18860310 (9209 Meg), flag 80 (active)
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:



How can I enter interactice mode in fdisk ???






    Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.4
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


need hints to recover lost FreeBSD partition entries in MBR ...

2005-09-11 Thread Andreas Klemm
I unluckily lost the partition table of my 1st disc in a 2 disc system.
Tip: avoid gag boot manager and don't do my mistakes ...

Having a printout of the df command I was able to re-create all of
my fat32 partitions on disc XP boot and 4x FAT32 in an extended part.

Now I'm looking for suggestions how to be able to compute the
correct values for Slice 3 and 4 which I could not recover so far.

It irritates me a bit, that the slices 1+2 already work so well,
so theoretically mounting of at least slice 3 should be possible now.

Or are there some sanity checks in the kernel that only allows
creating the devices in devfs if the size entries in the disklabel
and the entry in the partition table of the MBR fit both ??

Maybe I'm only off-by 1 or 2 cylinders in the partition table.

Do you know a tool or a method how I can compute/find the start cylinder
of FreeBSD partitions ?

Perhaps Im already at the right start cylinder and now only have
to de-chiffre the entries of the BSD disklabel, which should be
in the 1st sector of sector 312581808 ???

This I was able to restore, which works well.

Disk name:  ad4FDISK Partition Editor
DISK Geometry:  19457 cyls/255 heads/63 sectors = 312576705 sectors (152625MB)

Offset   Size(ST)End Name  PType   Desc  SubtypeFlags

 0 63 62- 12 unused0
63   24579387   24579449ad4s1  7fat   11
  24579450  174080340  198659789ad4s2  4 extended DOS5
 198659790  113922018  312581807- 12 unused0

I only had this data available to compute the rest...

Filesystem1k-blocks UsedAvail Capacity  Mounted on
/dev/ad4s3d 81194484  7469890   0%  /test
/dev/ad4s4d46026106 24134198 18209820  57%  /data

This resulted in that partitioning, which unluckily doesnt work.

Disk name:  ad4FDISK Partition Editor
DISK Geometry:  19457 cyls/255 heads/63 sectors = 312576705 sectors (152625MB)

Offset   Size(ST)End Name  PType   Desc  SubtypeFlags

 0 63 62- 12 unused0
63   24579387   24579449ad4s1  7fat   11
  24579450  174080340  198659789ad4s2  4 extended DOS5
 198659790   17077095  215736884ad4s3  8freebsd  165
 215736885   96839820  312576704ad4s4  8freebsd  165
 312576705   5103  312581807- 12 unused0

In devfs I only see the devices
rw-r-  1 root  operator4,  17 11 Sep 09:56 ad4s3
crw-r-  1 root  operator4,  27 11 Sep 09:56 ad4s3c
crw-r-  1 root  operator4,  18 11 Sep 09:56 ad4s4
crw-r-  1 root  operator4,  28 11 Sep 09:56 ad4s4c

But not ad4s3d and ad4s4d which would indicate I got the 
partition table entries for Slice 3+4 right.


Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.4
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


need hints to recover lost FreeBSD partition entries in MBR ...

2005-09-11 Thread Andreas Klemm
I unluckily lost the partition table of my 1st disc in a 2 disc system.
Tip: avoid gag boot manager and don't do my mistakes ...

Having a printout of the df command I was able to re-create all of
my fat32 partitions on disc XP boot and 4x FAT32 in an extended part.

Now I'm looking for suggestions how to be able to compute the
correct values for Slice 3 and 4 which I could not recover so far.

It irritates me a bit, that the slices 1+2 already work so well,
so theoretically mounting of at least slice 3 should be possible now.

Or are there some sanity checks in the kernel that only allows
creating the devices in devfs if the size entries in the disklabel
and the entry in the partition table of the MBR fit both ??

Maybe I'm only off-by 1 or 2 cylinders in the partition table.

Do you know a tool or a method how I can compute/find the start cylinder
of FreeBSD partitions ?

Perhaps Im already at the right start cylinder and now only have
to de-chiffre the entries of the BSD disklabel, which should be
in the 1st sector of sector 312581808 ???

This I was able to restore, which works well.

Disk name:  ad4FDISK Partition Editor
DISK Geometry:  19457 cyls/255 heads/63 sectors = 312576705 sectors (152625MB)

Offset   Size(ST)End Name  PType   Desc  SubtypeFlags

 0 63 62- 12 unused0
63   24579387   24579449ad4s1  7fat   11
  24579450  174080340  198659789ad4s2  4 extended DOS5
 198659790  113922018  312581807- 12 unused0

I only had this data available to compute the rest...

Filesystem1k-blocks UsedAvail Capacity  Mounted on
/dev/ad4s3d 81194484  7469890   0%  /test
/dev/ad4s4d46026106 24134198 18209820  57%  /data

This resulted in that partitioning, which unluckily doesnt work.

Disk name:  ad4FDISK Partition Editor
DISK Geometry:  19457 cyls/255 heads/63 sectors = 312576705 sectors (152625MB)

Offset   Size(ST)End Name  PType   Desc  SubtypeFlags

 0 63 62- 12 unused0
63   24579387   24579449ad4s1  7fat   11
  24579450  174080340  198659789ad4s2  4 extended DOS5
 198659790   17077095  215736884ad4s3  8freebsd  165
 215736885   96839820  312576704ad4s4  8freebsd  165
 312576705   5103  312581807- 12 unused0

In devfs I only see the devices
rw-r-  1 root  operator4,  17 11 Sep 09:56 ad4s3
crw-r-  1 root  operator4,  27 11 Sep 09:56 ad4s3c
crw-r-  1 root  operator4,  18 11 Sep 09:56 ad4s4
crw-r-  1 root  operator4,  28 11 Sep 09:56 ad4s4c

But not ad4s3d and ad4s4d which would indicate I got the 
partition table entries for Slice 3+4 right.


Andreas ///

-- 
http://www.64bits.de
http://www.apsfilter.org
http://people.FreeBSD.org/~andreas
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


please help with: warning: initialization makes integer from pointer

2004-10-08 Thread Andreas Klemm
Dear FreeBSD hackers,

could somebody please help Jonathan, the dspam owner, how to code
this best under FreeBSD ?

Please see his question below:

On Thu, Oct 07, 2004 at 01:16:17PM -0400, Jonathan A. Zdziarski wrote:
> I'm a little concerned about these warnings:
> 
> pgsql_drv.c:873: warning: initialization makes integer from pointer 
> without a cast
> pgsql_drv.c:874: warning: initialization makes integer from pointer 
> without a cast
> 
> This could cause some problems with dspam. Is there a freeBSDish way to 
> do this:
> 
>   s->p_getpwnam = (struct passwd) { NULL, NULL, 0, 0, NULL, NULL, NULL };
>   s->p_getpwuid = (struct passwd) { NULL, NULL, 0, 0, NULL, NULL, NULL };
> 
> Perhaps memset(s->p_getpwnam, 0, sizeof(struct passwd)) ?
> 
> 
> >make  all-recursive
> >Making all in .
> >[...]
> > gcc -DHAVE_CONFIG_H -DLOGDIR=\"/var/mail/dspam\" 
> > -DCONFIG_DEFAULT=\"/etc/dspam.conf\" -D_REENTRANT 
> > -D_POSIX_PTHREAD_SEMANTICS -I. -I. -I. -I/usr/local/include -g -O2 -Wall 
> > -Wmissing-prototypes -Wmissing-declarations -MT pgsql_drv.lo -MD -MP -MF 
> > .deps/pgsql_drv.Tpo -c pgsql_drv.c  -fPIC -DPIC -o .libs/pgsql_drv.o
> >pgsql_drv.c: In function `_ds_init_storage':
> >pgsql_drv.c:873: warning: initialization makes integer from pointer 
> >without a cast
> >pgsql_drv.c:874: warning: initialization makes integer from pointer 
> >without a cast
> >pgsql_drv.c: In function `_ds_create_signature_id':
> >pgsql_drv.c:1028: warning: long unsigned int format, time_t arg (arg 4)
> >pgsql_drv.c:1028: warning: long unsigned int format, time_t arg (arg 4)
> >[...]

int
_ds_init_storage (DSPAM_CTX * CTX, void *dbh)
{
  struct _pgsql_drv_storage *s;
  FILE *file;
  char filename[MAX_FILENAME_LENGTH];
  char buffer[256];
  char hostname[128] = "";
  char user[64] = "";
  char password[32] = "";
  char db[64] = "";
  int port = 5432, i = 0;
  // PGresult *result;

  /* don't init if we're already initted */
  if (CTX->storage != NULL)
  {
LOGDEBUG ("_ds_init_storage: storage already initialized");
return EINVAL;
  }

  s = malloc (sizeof (struct _pgsql_drv_storage));
  if (s == NULL)
  {
LOG (LOG_CRIT, ERROR_MEM_ALLOC);
return EUNKNOWN;
  }

  s->dbh = NULL;
  s->control_token = 0;
  s->iter_user = NULL;
  s->iter_token = NULL;
  s->iter_sig = NULL;
  s->control_token = 0;
  s->control_sh = 0;
  s->control_ih = 0;
  s->dbh_attached = (dbh) ? 1 : 0;
  s->u_getnextuser[0] = 0;
  s->p_getpwnam = (struct passwd) { NULL, NULL, 0, 0, NULL, NULL, NULL };
  !
  s->p_getpwuid = (struct passwd) { NULL, NULL, 0, 0, NULL, NULL, NULL };
  !




Andreas ///

-- 
http://www.64bits.de
http://www.apsfilter.org
http://people.FreeBSD.org/~andreas
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to monitor remote users shell activities best ? watch / snp / ...

2003-10-31 Thread Andreas Klemm
On Wed, Oct 29, 2003 at 10:38:33PM +, Bruce M Simpson wrote:
> Check out the whowatch port.

On Thu, Oct 30, 2003 at 05:01:33PM +, Matt Freitag wrote:
> The closest thing to my knowledge, would probably be "whowatch"
> which resides in /usr/ports/sysutils/whowatch.
> It doesn't allow you to click on the user to spawn a watch session, but I
> doubt it'd be too difficult to add such functionality if you so desired.

Thanks a lot for the answers.

I had a look at whowatch, is a nice tool.

I did it with multiple windows. Whowatch actually had saved me one
window with the while loop of "w" every 10 seconds to look for new
tty sessions.

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


how to monitor remote users shell activities best ? watch / snp / ...

2003-10-29 Thread Andreas Klemm
Is there a freebsd tool that shows you in realtime, which users
are logged in from remote using which pty port ?

So to say something like
while true
do
clear; w; sleep 10
done

Preferable as X11 application.

Cool would be options like:
- log the snooped data
- show their running processes
- click to pty to fire up xterm with "watch -X " to snoop
  their current traffic.

Background, I help an open source project and now somebody
is on my local machine, to troubleshoot something, and
I only know this person since a day ... so to say not well.

Then the snp option came to my mind and the question, if
perhaps somebody had done such a monitor for similar purposes.

Remote vendor access and such things come to my mind.

Of course I would ask him if its o.k. for him, that I
can snoop his terminal traffic, better to play with
open cards.

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Looking for detailed documentation: Install to existing filesystem

2003-09-23 Thread Andreas Klemm
read the damn handbook  ;-)
this lookup of information costed me 1 minute.

http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/install-media.html

Place the files that you find on the FreeBSD installation CD-ROM
into a DOS or UFS filesystem.

Then install from that.

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Intel and Broadcom NICs

2003-09-23 Thread Andreas Klemm
On Fri, Aug 22, 2003 at 06:29:37PM +0200, Martin Nilsson wrote:
> Sreekanth wrote:
> 
> >The intel nic is a fxp interface.Device ID 1050("Intel 82801BA (D865)
> >Pro/100 VE Ethernet")You probably need to use the latest driver from
> >current.To make sure you have the driver check if you have this line
> > { 0x1050,   -1, "Intel 82801BA (D865) Pro/100 VE Ethernet" }, in
> >if_fxp.c
> 
> Wouldn't it be a good idea to MFC this in time for the 4.9 release, the 
> intel 865 chipset is rather common in new machines these days.

Yes good idea, my next Laptop, a Dell Dimension 600 or 700 (don't
remember) will have a 10/100/1000 broadcom adapter.

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PUzzling sshd behaviour

2003-09-08 Thread Andreas Klemm
On Mon, Sep 08, 2003 at 05:02:02PM -0500, Jeremy Messenger wrote:
> I use tinydns and dnscache to do the local DNS, so I don't have to touch 
> the /etc/hosts anymore. The /etc/hosts is just pain in my ass. It solved 
> all of my SSH and other reverse lookup problems. Current, I have the split 
> horizon DNS[1] setup for the internal and external DNS queries separate.

Ah, this explains it more ;-) Thanks !

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PUzzling sshd behaviour

2003-09-08 Thread Andreas Klemm
On Mon, Sep 08, 2003 at 03:59:51PM -0500, Jeremy Messenger wrote:
> My solution is to install and setup dnscache to do the local DNS cache.

DNS cache sounds like it caches DNS records after a successfull
DNS query, right ?

The problem at my clients project was, that the DNS server
a) wasn't reachable from time to time because they played
   around with a pix firewall in a cat6k
b) these particular OOB IPs and the sun's IPs were not in
   DNS database

So ... I assume a dns *cache* wouldn't have brought any better
functionality. We still would have needed a functionality in 
sshd, to turn off reverse lookup entirely ...
The suns have already been secured by firewalls so no real need
for this reverse lookup feature.

    Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PUzzling sshd behaviour

2003-09-08 Thread Andreas Klemm
On Sun, Sep 07, 2003 at 02:55:10AM +0100, Bruce M Simpson wrote:
> On Sat, Sep 06, 2003 at 10:54:35PM -0300, Daniel C. Sobral wrote:
> > Bruce M Simpson wrote:
> > >On Fri, Sep 05, 2003 at 08:46:46AM -0700, Kris Kennaway wrote:
> > >>The fact that sshd requires reverse IP resolution is well-known
> > >>behaviour.  It's probably the most common FAQ about sshd ("Why is my
> > >>login taking 60 seconds to present the password prompt?").
> > >
> > >But what about:
> > > VerifyReverseMapping
> > > Specifies whether sshd should try to verify the remote host 
> > > name
> > > and check that the resolved host name for the remote IP 
> > > address
> > > maps back to the very same IP address.  The default is ``no''.
> >
> > AFAIK, that means the reverse mapping result will not be held against 
> > you. :-)
> 
> This sounds like a bug. Does anyone else agree?

Yes and I really needed this functionality in a project for 12 Suns...

But it didn't work as expected from the description.

And for me a functionality like being able to prevent reverse lookup
would be completely logical ...

Result was to create about 20 /etc/hosts entries on every sun, to
prevent this 60 seconds timeout for our Out Of Band login via VPN
and from sun to sun etc etc

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD 5.1-CURRENT
Need a magic printfilter today ? -> http://www.apsfilter.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Whats the maximum filesize on fat32 partitions (FreeBSD 4.7) ?

2003-01-06 Thread Andreas Klemm
Hi !

Trying to backup my own files from one fat32 partition to
another fat32 partition. After 4 GB gzip complains, that
filesize is too large.

What's the max filesize of files on fat32 / ufs filesystems ??

Andreas ///

-- 
Andreas Klemm /\/\/\/\/\/\/\/\/\/\/\
http://www.64bits.de <  Powered by FreeBSD  >
http://www.apsfilter.org/ \   www.FreeBSD.org  /
http://people.FreeBSD.ORG/~andreas \/\/\/\/\/\/\/\/\/\/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Restoring superblock backup?

2002-12-15 Thread Andreas Klemm
On Sun, Dec 15, 2002 at 12:41:58AM -0800, Nate Lawson wrote:
> After the fs has been repaired, the alternate sb is not copied to the
> default sb (currently).

This doesn't sound valid. It would mean, if your suberblock has
crashed and you use the alternate, then every subsequent fsck
run would fail and need manual operation to use the alternate
superblock.

-- 
Andreas Klemm /\/\/\/\/\/\/\/\/\/\/\
http://www.64bits.de <  Powered by FreeBSD  >
http://www.apsfilter.org/ \   www.FreeBSD.org  /
http://people.FreeBSD.ORG/~andreas \/\/\/\/\/\/\/\/\/\/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Restoring superblock backup?

2002-12-14 Thread Andreas Klemm
On Fri, Dec 13, 2002 at 02:28:00PM -0800, Nate Lawson wrote:
> I've successfully repaired a fs with the superblock backup at 32.  Now how
> do I copy that backup to the default superblock location?  fsck_ffs does
> NOT automatically do this.

It does. With fsck -b 32 you use the alternate super block to repair
the filesystem just in case the superblock in at the usual place is
damaged. After that the filesystem is completely repaired ...
Of course the previously damages superblock ...

fsck does the same things only that you choosed the first copy
of the superblock, that is always on block 32. The next copy
depends on the size and geometry of the filesystem and is not
so easy predictable like the "32" which is always present 

-- 
Andreas Klemm /\/\/\/\/\/\/\/\/\/\/\
http://www.64bits.de <  Powered by FreeBSD  >
http://www.apsfilter.org/ \   www.FreeBSD.org  /
http://people.FreeBSD.ORG/~andreas \/\/\/\/\/\/\/\/\/\/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: aps2file doesn't work on FreeBSD

2001-12-16 Thread Andreas Klemm

> try it with an su -l, or explicitly set $USER to 'root', or even replace
> -n"$USER" with -n"root".  this is all assuming that -n is specifying some
> sort of user privilege which you intend in this example to be root.
> if not, please forget this email. :)
> -Anthony.

I'm looking for a technical reason, why I can't write to
/dev/stdout, which works under Linux but not with FreeBSD.

It doesn't work for a user and not after doing a su -l.


Andreas ///

-- 
Andreas Klemm
Apsfilter Homepage   http://www.apsfilter.org
Support over mailing-lists (only!)   http://www.apsfilter.org/support
Mailing-list archive http://www.apsfilter.org/Lists-Archives
Songs from our band >> 64Bits << http://www.64bits.de
Inofficial band pages with add-on stuff  http://www.apsfilter.org/64bits.html



msg30192/pgp0.pgp
Description: PGP signature


aps2file doesn't work on FreeBSD

2001-12-16 Thread Andreas Klemm

No matter if root or not ...

root@titan[ttyp2]{139} ~ aps2file -D -P lp /etc/passwd
/usr/local/bin/aps2file: cannot create /dev/stdout: permission denied

andreas@titan[ttyp2]{1011} ~ aps2file -D -P lp /etc/passwd
/usr/local/bin/aps2file: cannot create /dev/stdout: permission denied

Cc: to FreeBSD-hackers, any idea why this doesn't work ???

Here's the relevant piece of script.

print2file()
{
: ${INPUT_FILE:=/dev/stdin} ${OUTPUT_FILE:=/dev/stdout}

# start with an almost empty environment to emulate running under LPRng
env -i CONTROL=dummy SPOOL_DIR=${SPOOL:-/var/spool/lpd/$QUEUE} \
APS2FILE_CONTEXT=dummy "$SHELL" $DEBUG "$APSFILTER" -h"$HOSTNAME" \
-n"$USER" -f$(basename "$INPUT_FILE") $Z_OPTS \
< "$INPUT_FILE" > "$OUTPUT_FILE"
}


Andreas ///

-- 
Andreas Klemm
Apsfilter Homepage   http://www.apsfilter.org
Support over mailing-lists (only!)   http://www.apsfilter.org/support
Mailing-list archive http://www.apsfilter.org/Lists-Archives
Songs from our band >> 64Bits << http://www.64bits.de
Inofficial band pages with add-on stuff  http://www.apsfilter.org/64bits.html



msg30187/pgp0.pgp
Description: PGP signature


Re: Can TCP changes be put in RELENG_4?

2001-12-06 Thread Andreas Klemm

On Thu, Dec 06, 2001 at 09:26:40AM -0800, Lamont Granquist wrote:
> An alternative solution that i haven't read anyone suggest on this thread
> is simply to improve man tuning(7) and make people more aware of it.

Could (should ???) be part of the installation process, accessible as
menue or submenue  ??? Since it contains useful hints how to plan
a useful filesystem layout.

What I'm missing is, to make use of memory filesystems for /tmp

mfs:30 on /tmp (mfs, asynchronous, local)

Filesystem  1K-blocks UsedAvail Capacity  Mounted on
mfs:30 507639   13   467015 0%/tmp

Best regards

Andreas ///

-- 
Andreas Klemm - Powered by FreeBSD
Need a magic printfilter today ? http://www.apsfilter.org/
Songs from our band >> 64Bits << http://www.64bits.de
Inofficial band pages with add-on stuff  http://www.apsfilter.org/64bits.html



msg29722/pgp0.pgp
Description: PGP signature


Re: Frustration with SCSI system

2000-10-03 Thread Andreas Klemm

On Wed, Sep 20, 2000 at 01:24:34PM -0700, Edward Elhauge wrote:
> OK, vinum is good. But my understanding is that you can't use vinum on
> your root partition. By Murphy's Law it always seems to be root that gets
> screwed up. And that also causes the biggest problems because then you
> have to yank the system apart and find another host disk for booting.

What about "duplicating and updating" /, /var and /usr onto a 2nd disk ?
This could be automatically done by a shellscript. You only need to 
fine tune /mirror/etc/fstab to boot from the correct disk after a
such a "backup/mirror" run 

If you install the freebsd boot manager you can even easily test
booting from the 2nd drive without having to make special settings
in the forth boot loader.

You could manage this using three disks I think

Disk:   da0 da1 da2
Fs:
+
root-fs |   s1a s1a (backup)|   |
+   |
swap|   swapswap|   |
+ swap  |
var-fs  |   s1f s1f (backup)|   |
+   |
usr-fs  |   s1g s1g (backup)|   |
+---+
vinum RAID5 |   /usr/local  |
+---+
vinum RAID5 |   /home   |
+---+

I'm not sure, maybe its even possible to put /var onto a
Vinum Software RAID-5 ..

Andreas ///

-- 
Andreas Klemm   Powered by FreeBSD SMP
Songs from our band >>64Bits<<http://www.apsfilter.org/64bits.html
My homepage http://people.FreeBSD.ORG/~andreas
Please note: Apsfilter got a NEW HOMEhttp://www.apsfilter.org/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



cvs question concerning creating and handling of vendor branches

2000-08-16 Thread Andreas Klemm

Hi !

I have a CVS question, could you please help and answer before I 
mangle my CVS archive on www.apsfilter.org ..., that would be very
kind, thanks a lot.

I want to import Cesar Mendozas lists-archive software on a vendor
branch and merge the changes into the HEAD branch ...

Do do I start importing it into my cvs repository ?

I want to have a similar functionality as we currently have with
src/contrib ...

I know abaout the functionality, but not how to do it right on the
commandline ...

Could you kindly give me a "5-liner" or such example to get familiar
with it ?

Thanks a lot

Andreas ///

-- 
Andreas Klemm   Powered by FreeBSD SMP
Songs from our band >>64Bits<<http://www.apsfilter.org/64bits.html
My homepage http://people.FreeBSD.ORG/~andreas
Please note: Apsfilter got a NEW HOMEhttp://www.apsfilter.org/



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



cvs question (was Re: cvs commit: src/apsfilter SETUP )

2000-04-30 Thread Andreas Klemm

[ CC'd to peter and hackers because of CVS question ]

On Sat, Apr 29, 2000 at 08:42:08PM +0200, Matej Vela wrote:
> vela2000/04/29 20:42:08 CEST
> 
>   Modified files:
> apsfilterSETUP 
>   Log:
>   Fixed the ordering of $MANDEST choices.
>   
>   Revision  ChangesPath
>   1.79  +3 -3  src/apsfilter/SETUP

You should also add a note into the ChangeLog file befor committing
so that people without access to the CVS repository browser also can
keep track of the changes ;-)

Of course this should be done automatically by CVS.

But this needs some thinking and work, which I possibly can't do
in the next time.

CVS has to be changed to know, that only apsfilter relevant patches
are written into the ChangeLog file.

Has to go to commit_prep.pl or log_accum.pl

Don't know if it will be possible to let the just (by the commit)
updated ChangeLog file be part of the commit, so that the new ChangeLog
belongs to the commit  maybe tricky ...

I should ask Peter, if he thinks, if that will be possible.

Peter, I want to save the work, to manually update the ChangeLog file.
I want, that CVS automatically writes the commit logs to the ChangeLog
file and let that be part of the just happening commit.

Is this a chicken and egg problem, that the change of the ChangeLog
file only could be part of the next committ ???

Andreas ///

-- 
Andreas Klemm   http://people.FreeBSD.ORG/~andreas
 http://www.freebsd.org/~fsmp/SMP/SMP.html
   powered by Symmetric MultiProcessor FreeBSD
New APSFILTER 541 and songs from our band - http://people.freebsd.org/~andreas



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: FreeBSD as high speed router

2000-02-23 Thread Andreas Klemm

On Tue, Feb 22, 2000 at 10:35:48AM +0100, Christoph Kukulies wrote:
> 
> A question to the network experts:
> 
> I want to build a router between FDDI and Fast Ethernet 
> (possibly without creating a subnet - something like arp proxy
> but that's more an IP issue; maybe someone can comment this also)

That's sick, this way you don't have a strict separation
between 2 lans and the router arps in both segments.

Two have a real "broadcast firewall" you should avoid proxy arp.

Figure out, you want to get the hosts in a segment and ping
to the broadcast address. In a normal routed segment without
proxy-arp you only the the station answering, which are in 
the segment.

Turning on proxy arp you also get answers from machines from
other connected lans...

I'd avoid that !

Andreas ///

-- 
Andreas Klemm  http://www.FreeBSD.ORG/~andreas
 http://www.freebsd.org/~fsmp/SMP/SMP.html
   powered by Symmetric MultiProcessor FreeBSD
Get new songs from our band: http://www.freebsd.org/~andreas/64bits/index.html



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Sun StarOffice51

1999-09-04 Thread Andreas Klemm
On Fri, Sep 03, 1999 at 09:29:25PM +0200, Ollivier Robert wrote:
> According to Christopher T. Griffiths:
> > also, I did notice that the versions of the libs had changed from 6 to 7.
> 
> If you have a recent CURRENT or STABLE, read on:
> 
> It seems that we may need to edit one of the library again. See the message 
> to 
> -hackers (<199909011812.oaa29...@misha.cisco.com> by Mikhail Teterin).
> 
> mv libosl516li.so libosl516li.so.bak
> sed -e 's,/proc/%u/cmdline,/compat/linux/so,' \
> < libosl516li.so.bak > libosl516li.so
> touch /compat/linux/so
> 
> (replace 516 by 517).

Could somebody please do a port, so that it doesn't take
N people's time to get it installed ?

Andreas ///

-- 
Andreas Klemm  http://www.FreeBSD.ORG/~andreas
 http://www.freebsd.org/~fsmp/SMP/SMP.html
   powered by Symmetric MultiProcessor FreeBSD
Get new songs from our band: http://www.freebsd.org/~andreas/64bits/index.html


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message



Re: Sun StarOffice51

1999-09-04 Thread Andreas Klemm

On Fri, Sep 03, 1999 at 09:29:25PM +0200, Ollivier Robert wrote:
> According to Christopher T. Griffiths:
> > also, I did notice that the versions of the libs had changed from 6 to 7.
> 
> If you have a recent CURRENT or STABLE, read on:
> 
> It seems that we may need to edit one of the library again. See the message to 
> -hackers (<[EMAIL PROTECTED]> by Mikhail Teterin).
> 
> mv libosl516li.so libosl516li.so.bak
> sed -e 's,/proc/%u/cmdline,/compat/linux/so,' \
> < libosl516li.so.bak > libosl516li.so
> touch /compat/linux/so
> 
> (replace 516 by 517).

Could somebody please do a port, so that it doesn't take
N people's time to get it installed ?

Andreas ///

-- 
Andreas Klemm  http://www.FreeBSD.ORG/~andreas
 http://www.freebsd.org/~fsmp/SMP/SMP.html
   powered by Symmetric MultiProcessor FreeBSD
Get new songs from our band: http://www.freebsd.org/~andreas/64bits/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



[gtay...@picante.com: apsfilter/pnp database integration]

1999-07-06 Thread Andreas Klemm
Is somebody perhaps working on that ?

I think Grant's idea is very good of maintaining a ghostscript
printer database and his idea to make apsfilter aware of 
connected printer type. In FreeBSD possibly some infrastructure
is missing. Please look his comments about how Linux folks implemented
this.

I think it would be fine, if we could be compatible with Linux
to do the printer auto recognition via IEEE parport probe strings.
Is there some work in the pipeline or has somebody interest to
implement it. Perhaps some code from Linux can be used ?

See http://www.picante.com/~gtaylor/pht/#2
for general information about the printer database.

Cc'd to Marcel since he does Linux Emulation.
Cc'd to Grant, that he can perhaps exchange infos with Marcel.

Thanks

Andreas ///

-- 
Andreas Klemm   http://www.FreeBSD.ORG/~andreas
  http://www.freebsd.org/~fsmp/SMP/SMP.html
powered by Symmetric MultiProcessor FreeBSD
Latest song from our band: http://www.freebsd.org/~andreas/mp3/schaukel.mp3
--- Begin Message ---
Hi there.  I maintain the Linux Printing HOWTO and an associated
printer compatibility database, and I'd like to add a feature to
apsfilter.

The database contains IEEE parport probe strings, and driver
information, for many printers.  It seems like it should be possible
to have apsfilter automatically identify connected printers and
drivers by connecting the autoprobe info and the compatibility list.
I want to mangle this feature in.

For a little background, see the database, notes and example_script at
http://gatekeeper.picante.com/~gtaylor/pht/#2

So my questions are:

 - What version of apsfilter should I sit down and play with?  5.1.2?
   A development snapshot from somewhere?

 - Does FreeBSD report the parport probe info for attached printers,
   and how?  In Linux 2.2, for example, the ID strings appear in the
   file /proc/parport//autoprobe.

 - Any opinions on how this should be implemented?

-- 
Grant Taylor - gtay...@picante.com - http://www.picante.com/~gtaylor/
 Cellphone information: http://www.picante.com/~gtaylor/cell/
 Libretto information:  http://www.picante.com/~gtaylor/portable/
--- End Message ---


[gtaylor@picante.com: apsfilter/pnp database integration]

1999-07-06 Thread Andreas Klemm

Is somebody perhaps working on that ?

I think Grant's idea is very good of maintaining a ghostscript
printer database and his idea to make apsfilter aware of 
connected printer type. In FreeBSD possibly some infrastructure
is missing. Please look his comments about how Linux folks implemented
this.

I think it would be fine, if we could be compatible with Linux
to do the printer auto recognition via IEEE parport probe strings.
Is there some work in the pipeline or has somebody interest to
implement it. Perhaps some code from Linux can be used ?

See http://www.picante.com/~gtaylor/pht/#2
for general information about the printer database.

Cc'd to Marcel since he does Linux Emulation.
Cc'd to Grant, that he can perhaps exchange infos with Marcel.

Thanks

Andreas ///

-- 
Andreas Klemm   http://www.FreeBSD.ORG/~andreas
  http://www.freebsd.org/~fsmp/SMP/SMP.html
powered by Symmetric MultiProcessor FreeBSD
Latest song from our band: http://www.freebsd.org/~andreas/mp3/schaukel.mp3



Hi there.  I maintain the Linux Printing HOWTO and an associated
printer compatibility database, and I'd like to add a feature to
apsfilter.

The database contains IEEE parport probe strings, and driver
information, for many printers.  It seems like it should be possible
to have apsfilter automatically identify connected printers and
drivers by connecting the autoprobe info and the compatibility list.
I want to mangle this feature in.

For a little background, see the database, notes and example_script at
http://gatekeeper.picante.com/~gtaylor/pht/#2

So my questions are:

 - What version of apsfilter should I sit down and play with?  5.1.2?
   A development snapshot from somewhere?

 - Does FreeBSD report the parport probe info for attached printers,
   and how?  In Linux 2.2, for example, the ID strings appear in the
   file /proc/parport//autoprobe.

 - Any opinions on how this should be implemented?

-- 
Grant Taylor - [EMAIL PROTECTED] - http://www.picante.com/~gtaylor/
 Cellphone information: http://www.picante.com/~gtaylor/cell/
 Libretto information:  http://www.picante.com/~gtaylor/portable/




Re: FreeBSD 3.2, arp command doesn't show any entry

1999-05-30 Thread Andreas Klemm
On Sun, May 30, 1999 at 02:51:51PM +0200, Andreas Klemm wrote:
> Hi !
> 
> Is that normal, that arp -a doesn't show any entry in the arp table ?
[...]

Umpf, was the only host on local network.
Thought that perhaps my local LAN adapters show up, but
this is perhaps because my local interfaces simply are
there and my local host doesn't need ARP to resolve
IP/MAC adresses...

-- 
Andreas Klemm   http://www.FreeBSD.ORG/~andreas
  http://www.freebsd.org/~fsmp/SMP/SMP.html
powered by Symmetric MultiProcessor FreeBSD


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message



FreeBSD 3.2, arp command doesn't show any entry

1999-05-30 Thread Andreas Klemm
0x10 tty irq 4
device  sio1at isa? port "IO_COM2" tty irq 3

# devicelpt0at isa? port? tty irq 7

# Parallel port and friends. This replaces lpt0 (see lint or man pages)
device   ppc0   at isa? port? flags 0x40 tty irq 7
controller   ppbus0
device   lpt0   at ppbus?   

device xl0
device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000

#device pcm0 at isa? port ? tty irq 5 drq 1 flags 0x0

pseudo-device   loop
pseudo-device   ether
pseudo-device   pty 256
pseudo-device   gzip#Exec gzipped a.out's
pseudo-device   vn  #Vnode driver (turns a file into a device)
pseudo-device   snp  3  #Snoop device - to look at pty/vty/etc..
pseudo-device   bpfilter 4  #Berkeley packet filter
pseudo-device   sppp#Generic Synchronous PPP
pseudo-device   tun 1
#pseudo-device  ppp 1
pseudo-device   ccd 4   #Concatenated disk driver
options PPP_BSDCOMP #PPP BSD-compress support
options PPP_DEFLATE #PPP zlib/deflate/gzip support
options PPP_FILTER  #enable bpf filtering (needs bpfilter)

# ISDN4BSD section

# i4b passive ISDN cards support (isic - I4b Siemens Isdn Chipset driver)
# note that the ``options'' and ``device'' lines must BOTH be defined !
#
# Non-PnP Cards:
# --
#
# Teles S0/8 or Niccy 1008
#options "TEL_S0_8"
#device isic0 at isa? iomem 0xd net irq 5 flags 1
#
# Teles S0/16 or Creatix ISDN-S0 or Niccy 1016
#options "TEL_S0_16"
#device isic0 at isa? port 0xd80 iomem 0xd net irq 5 flags 2
#
# Teles S0/16.3 

options "TEL_S0_16_3"
device  isic0 at isa? port 0xd80 net irq 9 flags 3

#
# AVM A1 or AVM Fritz!Card
#options "AVM_A1"
#device isic0 at isa? port 0x340 net irq 5 flags 4
#
# USRobotics Sportster ISDN TA intern
#options "USR_STI"
#device isic0 at isa? port 0x268 net irq 5 flags 7
#
# ITK ix1 Micro
#options "ITKIX1"
#device isic0 at isa? port 0x398 net irq 10 flags 18
#
# PnP-Cards:
# --
#
# Teles S0/16.3 PnP
#options "TEL_S0_16_3_P"
#device isic0 at isa? port ? net irq ?
#
# Creatix ISDN-S0 P&P
#options "CRTX_S0_P"
#device isic0 at isa? port ? net irq ?
#
# Dr. Neuhaus Niccy Go@
#options "DRN_NGO"
#device isic0 at isa? port ? net irq ?
#
# Sedlbauer Win Speed
#options "SEDLBAUER"
#device isic0 at isa? port ? net irq ?
#
# Dynalink IS64PH
#options "DYNALINK"
#device isic0 at isa? port ? net irq ?
#
# ELSA QuickStep 1000pro ISA

#options "ELSA_QS1ISA"
#device isic0 at isa? port ? net irq ?

#
# PCI-Cards:
# --
#
# ELSA QuickStep 1000pro PCI

#options "ELSA_QS1PCI"
#device  isic0

#
# PCMCIA-Cards:
# -
#
# AVM PCMCIA Fritz!Card
#options "AVM_A1_PCMCIA"
#device isic0 at isa? port 0x340 net irq 5 flags 10
#
# Active Cards:
# -
#
# Stollmann Tina-dd control device
#device tina0 at isa? port 0x260 net irq 10
#
# ISDN Protocol Stack
# ---
# 
# Q.921 / layer 2 - i4b passive cards D channel handling
pseudo-device   "i4bq921"
#
# Q.931 / layer 3 - i4b passive cards D channel handling
pseudo-device   "i4bq931"
#
# layer 4 - i4b common passive and active card handling
pseudo-device   "i4b"
#
# ISDN devices
# 
#
# userland driver to do ISDN tracing (for passive cards only)
pseudo-device   "i4btrc"4
#
# userland driver to control the whole thing
pseudo-device   "i4bctl"
#
# userland driver for access to raw B channel
pseudo-device   "i4brbch"   4
#
# userland driver for telephony
pseudo-device   "i4btel"2
#
# network driver for IP over raw HDLC ISDN
pseudo-device   "i4bipr"4
# enable VJ header compression detection for ipr i/f
options IPR_VJ
#
# network driver for sync PPP over ISDN
pseudo-device   "i4bisppp"  4


-- 
Andreas Klemm   http://www.FreeBSD.ORG/~andreas
  http://www.freebsd.org/~fsmp/SMP/SMP.html
powered by Symmetric MultiProcessor FreeBSD


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message



Re: lpd woes ... missing feature that different printer share same spool

1999-05-26 Thread Andreas Klemm
Hi David !

Great, thanks for looking at it / for the patch.
I'll put it into the apsfilter FAQ and the INSTALL file.

Andreas ///

-- 
Andreas Klemm   http://www.FreeBSD.ORG/~andreas
  http://www.freebsd.org/~fsmp/SMP/SMP.html
powered by Symmetric MultiProcessor FreeBSD


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message



lpd woes ... missing feature that different printer share same spool

1999-05-25 Thread Andreas Klemm
Hi !

lpd refuses to startup, if you have multiple entries in /etc/printcap
that use the same spooldir.

My new apsfilter 5.1.1 has the new feature, that you can print in
high, medium and low density by simply typing:
lpr -P{low,med,high}

For that purpose I need three more entries in printcap, that differ
in the name of the input filter, since apsfilter features like
print density are invoked by calling apsfilter (the input filter)
by different names, but share the same spooldir.

But this happens when starting up lpd:
 root{154} /usr/src lpd
chkprintcap: lp8 and lp7 share the same spool, 
/var/spool/lpd/stcolor-a4-auto-color
chkprintcap: lp7 and lp6 share the same spool, 
/var/spool/lpd/stcolor-a4-auto-color
chkprintcap: lp6 and lp share the same spool, 
/var/spool/lpd/stcolor-a4-auto-color
lpd: 3 errors in printcap file, exiting

Would it be safe, to modify lpd to tolerate this and only printing
out a warning ... ?!

Andreas ///

printcap entry for reference, see "^"


# LABEL apsfilter
# apsfilter setup Sun May 23 17:27:14 CEST 1999
#
# APS_BASEDIR:/usr/local/apsfilter
#
#
ascii|lp1|stcolor-a4-ascii-mono|stcolor ascii mono:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/stcolor-a4-ascii-mono:\
:lf=/var/spool/lpd/stcolor-a4-ascii-mono/log:\
:af=/var/spool/lpd/stcolor-a4-ascii-mono/acct:\
:if=/usr/local/apsfilter/filter/aps-stcolor-a4-ascii-mono:\
:mx#0:\
:sh:
#
lp2|stcolor-a4-auto-mono|stcolor auto mono:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/stcolor-a4-auto-mono:\
:lf=/var/spool/lpd/stcolor-a4-auto-mono/log:\
:af=/var/spool/lpd/stcolor-a4-auto-mono/acct:\
:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-mono:\
:mx#0:\
:sh:
#
lp3|stcolor-a4-ascii-color|stcolor ascii color:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/stcolor-a4-ascii-color:\
:lf=/var/spool/lpd/stcolor-a4-ascii-color/log:\
:af=/var/spool/lpd/stcolor-a4-ascii-color/acct:\
:if=/usr/local/apsfilter/filter/aps-stcolor-a4-ascii-color:\
:mx#0:\
:sh:
#
lp|lp4|stcolor-a4-auto-color|stcolor auto color:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/stcolor-a4-auto-color:\
:lf=/var/spool/lpd/stcolor-a4-auto-color/log:\
:af=/var/spool/lpd/stcolor-a4-auto-color/acct:\
:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-color:\
:mx#0:\
:sh:
#
raw|lp5|stcolor-a4-raw|stcolor auto raw:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/stcolor-raw:\
:lf=/var/spool/lpd/stcolor-raw/log:\
:af=/var/spool/lpd/stcolor-raw/acct:\
:if=/usr/local/apsfilter/filter/aps-stcolor-a4-raw:\
:mx#0:\
:sh:
#
lp6|low|stcolor 180dpi low resolution:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/stcolor-a4-auto-color:\
   ^ same spooldir needed
:lf=/var/spool/lpd/stcolor-a4-auto-color/log:\
:af=/var/spool/lpd/stcolor-a4-auto-color/acct:\
:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-color-180x180:\
  
:mx#0:\
:sh:
#
lp7|med|stcolor 360dpi medium resolution:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/stcolor-a4-auto-color:\
   ^ same spooldir needed
:lf=/var/spool/lpd/stcolor-a4-auto-color/log:\
:af=/var/spool/lpd/stcolor-a4-auto-color/acct:\
:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-color-360x360:\
  
:mx#0:\
:sh:
#
lp8|high|stcolor 720dpi high resolution:\
:lp=/dev/lpt0:\
:sd=/var/spool/lpd/stcolor-a4-auto-color:\
   ^ same spooldir needed
:lf=/var/spool/lpd/stcolor-a4-auto-color/log:\
:af=/var/spool/lpd/stcolor-a4-auto-color/acct:\
:if=/usr/local/apsfilter/filter/aps-stcolor-a4-auto-color-720x720:\
  
:mx#0:\
:sh:


-- 
Andreas Klemm   http://www.FreeBSD.ORG/~andreas
  http://www.freebsd.org/~fsmp/SMP/SMP.html
powered by Symmetric MultiProcessor FreeBSD


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message



security: what does OpenBSD have, that FreeBSD doesn't have...

1999-05-23 Thread Andreas Klemm
Hi !

Am currently discussing FreeBSD vs. OpenBSD in private e-mail.

What make OpenBSD so "secure" ? Or can this kind of security be
reproduced with FreeBSD ports ? I think of tools like:

bjorb   - secure TCP relay software, 
  http://www.hitachi-ms.co.jp/bjorb/ 
bro - Bro is a system for detecting Network Intruders in
  real-time by the guys that brought you tcpdump, libpcap,
  and flex
cfs - This is CFS, Matt Blaze's Cryptographic File System.
  It provides transparent encryption and decryption of 
  selected directory trees. It is implemented as a 
  user-level NFS server and thus does not require any 
  kernel modifications. Under FreeBSD, the mount command 
  for the CFS tree must include "-o port=3049,nfsv2".
fwtk- The TIS Firewall Toolkit is a set of programs and 
  configuration practices designed to facilitate the 
  building of network firewalls.
skip- IP-Level Cryptography, Secure every application with 
  one protocol. http://skip.incog.com
stunnel - The stunnel program is designed to work as SSL 
  encryption wrapper between remote client and
  local (inetd-startable) or remote server. 
  stunnel can be used to add SSL functionality 
  to  commonly used  inetd  daemons like  POP-2,  
  POP-3  and  IMAP servers without any changes in
  the programs' code.
tcp_wrapper - With this package you can monitor and filter
  incoming requests for the SYSTAT, FINGER, FTP,
  TELNET, RLOGIN, RSH, EXEC, TFTP, TALK, and other
  network services.
vscan   - McAfee's evaluation VirusScan for FreeBSD, provides
  immediate scanning of MS-DOS files hosted on FreeBSD
  Unix systems.

Could somebody please explain ?


-- 
Andreas Klemm   http://www.FreeBSD.ORG/~andreas
  http://www.freebsd.org/~fsmp/SMP/SMP.html
powered by Symmetric MultiProcessor FreeBSD


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message