Why no FreeBSD ftp site in India?

2003-12-02 Thread Rob
Hi,

A friend of mine from India is interested in changing from W$ to a unix flavour.
I recommended FreeBSD, but then discovered that there's no ftp server within India
for downloading the OS. Are there some legal issues there?
India is the second largest populous country in the world with possibly the highest
potential on software development. But not even one FreeBSD ftp server!!
No one interested there to set up an ftp.in.FreeBSD.org server?
Or is the FreeBSD community in India simply too tiny?
Regards,
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD DRIVER DEVELOPMENT

2003-12-02 Thread rk47
 
> As with every device driver, the recommended (or at least proved)
> way is to take an existing, simple driver, and modify it to suit
> your needs.
The simplest driver is probably the puc (sys/dev/pci/puc.c) driver, it has a
lot of the elements that a driver can have.

> Kernel interfaces are documented in intro(9) and related section 9
> man pages (ls /usr/share/man/man9)
Some (one that I can think of) of the kernel interfaces are not given here.
The interface to the dma services (bus_dma) you can find at :
http://www.openbsd.org/cgi-bin/man.cgi

> http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/pci.html)
> 
You can also look at the ISA section, because of the NEWBUS architecture an
ISA driver is very similar to a PCI driver in many ways, e.g. allocating
bus resources, setting up interupt handlers etc. 

A few articles on www.daemonnews.org can also help:
NEWBUS intro (helped me a lot):
http://www.daemonnews.org/27/newbus-intro.html
KLD (loadable modules) :
http://www.daemonnews.org/200010/blueprints.html

Good Luck
Riaan



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


rmsg problem

2003-12-02 Thread Charles Howse
Hi,
I've installed /usr/ports/net/rmsg and started the rmsgd on two of my 
computers.
I've also set mesg y for each one.

When I do:
echo "here is a message" | rmsg [EMAIL PROTECTED]
it goes through fine

when I go the other way:
echo "right back at ya" | rmsg [EMAIL PROTECTED]
I get:
rmsg: charles refusing messages

Anyone got any ideas about what's wrong here?
I've verified the daemon is running on moe, and that mesg is set to y.
Both root and charles are logged on at their respective computers.
root is running cli only, while charles is using KDE.

-- 
Thanks,
Charles
http://howse.homeunix.net:8080

Random Murphy's Law:
Cleanliness is next to impossible.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


dhcpd and windows9x

2003-12-02 Thread flux
I got a problem with DHCP with Windows9x. The problem is I
configured DHCP on my FreeBSD 4.7 box successfully. And Windows
2000/XP workstations get dynamic IPs alright and everything works
fine. But Windows 9x doesn't get IP from my DHCP-server. I heard that
I should put down some lines on my FreeBSD server to make Windows 9x
get DHCP leases. Any idea about it?
Thank you.
  

-- 
Best regards,
 flux  mailto:[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is there a guide to Upgrading a FreeBSD server remotely

2003-12-02 Thread Peter Ulrich Kruppa
On Wed, 3 Dec 2003, Alex de Kruijff wrote:

> On Tue, Dec 02, 2003 at 03:01:36AM +0100, Denis Fortin wrote:
> > Greetings,
> >
> > I've Google'd a bit, but I cannot find a "survival guide to upgrading
> > a FreeBSD system remotely".
> >
> > The Handbook's procedure is excellent (cvsup to the RELENG branch and
> > then make'ing world), but it requires going into single user mode and
> > using the console, two things which may not be possible in the context
> > of a server sitting unattended in a hosting center 1 kilometers away.
> >
> > Has anyone written a quick guide on issues that can arise in this kind
> > of situation?  (For instance, one the the issues is that one might end
> > up with a bad kernel: have people devised a way for the boot code to
> > interact with "reboot -k xxx" to revert to the default kernel after an
> > unsucessful boot, or after a specific time?)
> >
> Although its not recommended to do this, it can be done. It basicaly
> comes down to following the manual (without rebooting into single
> usermode) and be very very carefull. Read everything you need to read,
> run every command you need to run and have someone sitting there in case
> it goes wrong.
>
> Note: I've never done this on a busy system.
That is the really important thing: there shouldn't be any other
traffic on the system.
Do everything step by step and keep a logfile to check if
everything worked o.k. . Do something like
# make buildworld > logfile &
In case your connection breaks, buildworld will go on and you can
check everything when it is up again. With
# tail -f logfile
you can check the advance anytime you whish.

Uli.


> --
> Alex
>
> Articles based on solutions that I use:
> http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

+---+
|Peter Ulrich Kruppa|
| Wuppertal |
|  Germany  |
+---+
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


linux-apps can't find libs

2003-12-02 Thread Peter Ulrich Kruppa
Hi!

I don't know if something went wrong with my last pkgdb -F , but
now my linux applications can't find some lib files anymore
although they are still on my system.

For example linux-mozilla looks for libXi.so.6 which lives in
/usr/X11R6/lib/
and xmupad tries to find libXm.so.2 which exists in
/usr/compat/linux/usr/X11R6/lib/

The only suspicious thing I found is a link inside
/compat/linux/usr/lib
it is called X11 and points ... nowhere.

Does anybody have any idea what might have caused this, or
perhaps where this link X11 should point to?

Thanks,

Uli.




+---+
|Peter Ulrich Kruppa|
| Wuppertal |
|  Germany  |
+---+
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


re: re: weird mouse reaction 5.1

2003-12-02 Thread charles pelletier
I went ahead and enabled the mouse..removed all but the moused enable 
option, loaded enlightenment. It seems to me what is occuring could quite 
possibly be a resolution error...the mouse pointer reacts, albeit several 
seconds after i physically move the mouse..also, random menus pop up even if 
i haven't clicked a button. once those menus are open, i can't even attempt 
to access any of the menu options. sometimes, too, the mouse pointer ends up 
on completely another side of the monitor when i've only moved the mouse 
maybe 1/4 inch.  am i right in thinking this has to do with how i have the 
resolution set? at the moment, i'm sitting at 1024x768, with a 67 refresh 
rate (as per monitor specs). what's next?

--charlie

_
Take advantage of our best MSN Dial-up offer of the year — six months 
@$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SCSI Disk not found

2003-12-02 Thread Mike Maltese
> Ok. I have what looks to be two host adapters.
> The one on the motherboard and a PCI? card.
> 
> Not sure what exactly I am supposed to do for I have never
> had a PC with SCSI before...

http://www.faqs.org/faqs/scsi-faq/

This is probably a good place to start.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Linksys WPC11 ver4 troubles

2003-12-02 Thread David S. Jackson
On Mon, Dec 01, 2003 at 10:38:50AM -0500 David S. Jackson <[EMAIL PROTECTED]> wrote:
> You don't mention whether you have a ver 3 or a ver 4 wpc11.  They

Sorry, I didn't read the subject line carefully.  duh.

-- 
David S. Jackson[EMAIL PROTECTED]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Only God can make random selections.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SCSI Disk not found

2003-12-02 Thread Michael E. Mercer
Ok. I have what looks to be two host adapters.
The one on the motherboard and a PCI? card.

Not sure what exactly I am supposed to do for I have never
had a PC with SCSI before...

Any help is appreciated.

Thanks
MeM

On Tue, 2003-12-02 at 23:57, Mike Maltese wrote:
> > I was given a Compaq Proliant 800 machine...its a pentium pro
> > 200 MHz. I got 4.9-Stable installed and everything is running
> > smooth.
> >
> > However, I noticed that is does indeed have two scsi disks,
> > but freebsd only finds one.
> >
> > Attached is the dmesg... notice the sym0 and sym1.
> > Does this supposed to tell me anything?
> 
> Yes, it is. Either the host adapter has two channels or you have two host
> adapters in the machine. I'm not sure what card you have exactly, but my
> guess is that it's the former. I would crack the box open and see what's
> what with the SCSI configuration.
> 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


openssl and key generation

2003-12-02 Thread dave
Hello,
 I'm trying to use openssl to do encryption with some files and to create a
key for postfix for use in authenticated smtp.
 For my first case i'm doing:
openssl enc -blowfish -in /root/etc.tar.gz -out /root/etc.tgz.bf
to try to encrypt a tar file. And for my second, trying to create a key for
use with postfix's authenticated smtp feature:
 /usr/sbin/openssl req -new -x509 -days 365 -nodes \
-config /etc/postfix/ssl/pst.cnf -out /etc/postfix/ssl/post.pem \
-keyout /etc/postfix/ssl/post.pem
/etc/postfix is a symlink to /usr/local/etc/postfix and i'm using openssl
0.9.7c
in both cases i'm getting a usage error, yet i'm following a tutorial for
this. Any suggestions?
Thanks.
Dave.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pcm/TP 600 works fine (was Re: pcm/TP600 works fine (was Re: pcm problems in 5.1 w/thinkpad)

2003-12-02 Thread Zhang Weiwu
Hello. I'm running pcm on Thinkpad 600 (FreeBSD 4.9 RC3) without any 
problem.

It looks like your kernel is compiled with option PNPBIOS, these devices 
that "unknown, cannot assign resources" are  unknown PNP devices, 
usually of no importantance (from my previous experience). These PNP 
devices seems have nothing to do with pcm0, they are just luckly to be 
printed right after pcm.

Try to play some music, use mixer(8). Perhaps you already have a working 
pcm0.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SCSI Disk not found

2003-12-02 Thread Mike Maltese
> I was given a Compaq Proliant 800 machine...its a pentium pro
> 200 MHz. I got 4.9-Stable installed and everything is running
> smooth.
>
> However, I noticed that is does indeed have two scsi disks,
> but freebsd only finds one.
>
> Attached is the dmesg... notice the sym0 and sym1.
> Does this supposed to tell me anything?

Yes, it is. Either the host adapter has two channels or you have two host
adapters in the machine. I'm not sure what card you have exactly, but my
guess is that it's the former. I would crack the box open and see what's
what with the SCSI configuration.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: port forward

2003-12-02 Thread Mike Berning
The method suggested by Sunil will work fine but if you plan on using 
multiple redirects I would recommend doing this in rc.conf
natd_flags="-config /etc/natd.conf"

and placing the multiple redirects into the file /etc/natd.conf like this
redirect_port tcp 192.168.0.100:5900 5900
HTH

mike

Sunil Sunder Raj wrote:

Hi,

In rc.conf you need
natd_flags="-redirect_port tcp 192.168.0.100:5900 5900"
Regards
SSR


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


SCSI Disk not found

2003-12-02 Thread Michael E. Mercer
Hello peoples,

I was given a Compaq Proliant 800 machine...its a pentium pro
200 MHz. I got 4.9-Stable installed and everything is running 
smooth.

However, I noticed that is does indeed have two scsi disks,
but freebsd only finds one. 

Attached is the dmesg... notice the sym0 and sym1. 
Does this supposed to tell me anything?

Thanks
Michael E Mercer

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.9-STABLE #0: Tue Dec  2 21:45:22 EST 2003
[EMAIL PROTECTED]:/usr/src/sys/compile/slow_4_9
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium Pro (199.43-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x619  Stepping = 9
 
Features=0xf9ff
real memory  = 301989888 (294912K bytes)
avail memory = 288219136 (281464K bytes)
Preloaded elf kernel "kernel" at 0xc0491000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc049109c.
ccd0-3: Concatenated disk drivers
VESA: v1.2, 1024k memory, flags:0x0, mode table:0xc03f8994 (114)
VESA: STB COMPAQ 5440
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0:  on motherboard
npx0: INT 16 interface
pcib0:  on motherboard
pci0:  on pcib0
pcib1:  at device 8.0 on pci0
pci1:  on pcib1
sym0: <875> port 0x7000-0x70ff mem
0x4010-0x40100fff,0x40102000-0x401020ff irq 5 at device 4.0 on pci1
sym0: No NVRAM, ID 7, Fast-20, SE, parity checking
sym1: <875> port 0x7400-0x74ff mem
0x40101000-0x40101fff,0x40102100-0x401021ff irq 5 at device 8.0 on pci1
sym1: No NVRAM, ID 7, Fast-20, SE, parity checking
pci1:  at 9.0
tl0:  port 0x6000-0x600f mem
0x4000-0x400f irq 9 at device 16.0 on pci0
tl0: Ethernet address: 00:80:5f:35:d8:6d
miibus0:  on tl0
tlphy0:  on miibus0
tlphy0:  10base2/BNC, 10base5/AUI, 10baseT, 10baseT-FDX, auto
isab0:  at device 20.0 on pci0
isa0:  on isab0
atapci0:  port 0xf100-0xf10f at device 20.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
eisa0:  on motherboard
mainboard0:  on eisa0 slot 0
orm0:  at iomem
0xc-0xc7fff,0xe8000-0xedfff,0xee000-0xe on isa0
pmtimer0 on isa0
pca0 at port 0x40 on isa0
fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0:  at port 0x60,0x64 on isa0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on
isa0
sc0:  on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: cannot reserve I/O port range
IPsec: Initialized Security Association Processing.
ncp_load: [210-213]
ad1: 8207MB  [16676/16/63] at ata0-slave WDMA2
acd0: CDROM  at ata0-master PIO3
Waiting 15 seconds for SCSI devices to settle
Mounting root from ufs:/dev/da0s1a
da0 at sym1 bus 0 target 0 lun 0
da0:  Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing
Enabled
da0: 4094MB (8386000 512 byte sectors: 255H 63S/T 522C)

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.9-STABLE #0: Tue Dec  2 21:45:22 EST 2003
[EMAIL PROTECTED]:/usr/src/sys/compile/slow_4_9
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium Pro (199.43-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x619  Stepping = 9
  Features=0xf9ff
real memory  = 301989888 (294912K bytes)
avail memory = 288219136 (281464K bytes)
Preloaded elf kernel "kernel" at 0xc0491000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc049109c.
ccd0-3: Concatenated disk drivers
VESA: v1.2, 1024k memory, flags:0x0, mode table:0xc03f8994 (114)
VESA: STB COMPAQ 5440
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0:  on motherboard
npx0: INT 16 interface
pcib0:  on motherboard
pci0:  on pcib0
pcib1:  at device 8.0 on pci0
pci1:  on pcib1
sym0: <875> port 0x7000-0x70ff mem 0x4010-0x40100fff,0x40102000-0x401020ff irq 5 
at device 4.0 on pci1
sym0: No NVRAM, ID 7, Fast-20, SE, parity checking
sym1: <875> port 0x7400-0x74ff mem 0x40101000-0x40101fff,0x40102100-0x401021ff irq 5 
at device 8.0 on pci1
sym1: No NVRAM, ID 7, Fast-20, SE, parity checking
pci1:  at 9.0
tl0:  port 0x6000-0x600f mem 0x4000-0x400f irq 
9 at device 16.0 on pci0
tl0: Ethernet address: 00:80:5f:35:d8:6d
miibus0:  on tl0
tlphy0:  on miibus0
tlphy0:  10base2/BNC, 10base5/AUI, 10baseT, 10baseT-FDX, auto
isab0:  at device 20.0 on pci0
isa0:  on isab0
atapci0:  port 0xf100-0xf10f at device 20.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
eisa0:  on motherboard
mainboard0:  on eisa0 slot 0
orm0:  at iomem 0xc-0xc7fff,0xe8000-0xedfff,0xee000-0xe on isa0
pmtimer0 on isa0
pca0 a

possible issue with pam

2003-12-02 Thread Barry Hawkins
List,
	Hello.  I have recently begun to encounter an issue with changing 
passwords on my 5.1 installation.  I haven't touched anything on it for 
a few months, and the last change-related activity I had were some 
portupgrade tasks to rid myself of the libintl.so.4 issue solved with 
"portupgrade -R gettext" back around September 2003.  I am wondering if 
anyone has experienced an issue similar to mine.
	When I attempt to use passwd to change my password, I get the 
following upon successfully re-typing the password:

passwd: entry inconsistent
passwd: pam_chauthtok(): error in service module
	If anyone has insight on this I would be grateful.  A search of the 
list for pam_chauthtok only revealed one person asking a similar 
question related to yppasswd.

Regards,
--
Barry C. Hawkins
All Things Computed
site: www.allthingscomputed.com
weblog: www.yepthatsme.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ispman

2003-12-02 Thread Will Prater
List,

I have been searching the net and seen a mix of answers.

Can one run ISPMAN on FreeBSD 4.9?

What features can and can we not use. I see that  pam_ldap in ports is 
not up to 1.8 or later. Also  nss_ldap does not seem to be compatible 
(unless FreeBSD 5.1) according to the developers site.

Any other ISP virtual host solutions out there that people are using? I 
have a set of command line perl hacks that I have been using. These 
work fine. I just want some standardization and billing control would 
be really nice.

Thanks

--will

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: weird mouse reaction and movement 5.1

2003-12-02 Thread Dan Nelson
In the last episode (Dec 02), charles pelletier said:
> So I just installed, for the first time, 5.1 on a new machine. My
> problem is this: In Sysinstall, when i select my mouse (ps/2, MS 3
> button optical) then enable and test the port, all of a sudden I see
> an early part of the installation wizard (the partitioning part) and
> i can't escape out of it.  It is as if the mouse scrolls through a
> history of what i've done page by page until it reaches that part. I
> can ctrl-c out of sysinstall and it is as if nothing ever happened.
>
> Is this a strange event to anyone else? Is there a way to fix it w/
> flags, etc? It was suggested to me by a friend that I kill moused
> before I start up sysinstall but it isn't running in the first place.

I've never seen that before, but you can probably just skip the mouse
configuration part, and then set it up after the install is done (for
your mouse, just adding moused_enable="YES" to /etc/rc.conf should
suffice, since ps/2+autosense is the default).

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


amd documentation: why is it so confusing?

2003-12-02 Thread Rob
Hi,

I have exported directories successfully. Thus I moved on to use amd for
having the system mount this as it is needed.
However, I am getting totally stuck in the amd manuals. Are the amd manuals
really that bad, or is it me?
For example:
The FreeBSD handbook mentions amd in one sentence, by referring to the
manual pages of amd and amd.conf. So all I have are the manual pages
on the amd commands and files. The amd manual talks about a map file,
but there's nowhere information to be found on what the structure of
such a map file is.
Is the creation of the amd-map file too trivial, or so complicated that
nobody dares explaining it?
Anyone who can point me to better help on this?

Thanks!

Rob.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Remove ^M characters from xhtml file

2003-12-02 Thread Rob Ellis
On Tue, Dec 02, 2003 at 05:53:59PM -0500, parv wrote:
> in message <[EMAIL PROTECTED]>,
> wrote Bryan Cassidy thusly...
> >
> > I've downloaded a couple of .xhtml files and they have ^M characters
> > all through it. I tried the col -b < name > newname command on these
> > files but when I do that it erases the whole document. Any ideas?
> 
> Ah, a FAQ of comp.unix.* groups...
> 
>   http://groups.google.com/groups?q=remove+%22%5EM%22+file+group%3Acomp.unix.*
> 
> 
> It pains me not to see even a mention of sed, even though i prefer the
> "perl pie" solution myself.  To rectify the situation...
> 
>   #  one way to type ^M is: Ctrl-V followed by Ctrl-M
>   sed -e 's/^M$//' old > new && mv -f new old
> 

Freebsd's sed has -i

  sed -ie 's/^M$//' old

- Rob
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


weird mouse reaction and movement 5.1

2003-12-02 Thread charles pelletier
Okay,

So I just installed, for the first time, 5.1 on a new machine. My problem is 
this: In Sysinstall, when i select my mouse  (ps/2, MS 3 button optical) 
then enable and test the port, all of a sudden I see an early part of the 
installation wizard (the partitioning part) and i can't escape out of it. It 
is as if the mouse scrolls through a history of what i've done page by page 
until it reaches that part. I can ctrl-c out of sysinstall and it is as if 
nothing ever happened.
Is this a strange event to anyone else? Is there a way to fix it w/ flags, 
etc? It was suggested to me by a friend that I kill moused before I start up 
sysinstall but it isn't running in the first place.

Anyone know a fix?

Thanks,

--charlie

_
Shop online for kids’ toys by age group, price range, and toy category at 
MSN Shopping. No waiting for a clerk to help you! 
http://shopping.msn.com/softcontent/softcontent.aspx

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is there a guide to Upgrading a FreeBSD server remotely

2003-12-02 Thread Jonathan T. Sage
Alex de Kruijff wrote:
On Tue, Dec 02, 2003 at 03:01:36AM +0100, Denis Fortin wrote:

Greetings,

I've Google'd a bit, but I cannot find a "survival guide to upgrading 
a FreeBSD system remotely".

The Handbook's procedure is excellent (cvsup to the RELENG branch and 
then make'ing world), but it requires going into single user mode and 
using the console, two things which may not be possible in the context 
of a server sitting unattended in a hosting center 1 kilometers away.

Has anyone written a quick guide on issues that can arise in this kind 
of situation?  (For instance, one the the issues is that one might end 
up with a bad kernel: have people devised a way for the boot code to 
interact with "reboot -k xxx" to revert to the default kernel after an 
unsucessful boot, or after a specific time?)

Although its not recommended to do this, it can be done. It basicaly
comes down to following the manual (without rebooting into single
usermode) and be very very carefull. Read everything you need to read,
run every command you need to run and have someone sitting there in case
it goes wrong.
Note: I've never done this on a busy system.
i frequently do

#make buildworld
#make buildkernel
#make installkernel
reboot
#make installworld
#mergemaster
#reboot
on a small-ish trafficed site.  and indeed it has bit me in the ass 
before.  but it *usually* works. this is not saying it will for you, but 
it has for me in the past.

--
"Yesterday upon the stair I saw a man
who wasn't there, he wasn't there
again today, oh how i wish he'd go away"
Rev. Jonathan T. Sage
Lighting / Set Designer
Professional Web Design
[HTTP://thr.msu.edu]
[EMAIL PROTECTED]
[PGP: www.keyserver.net]


pgp0.pgp
Description: PGP signature


Re: Is there a guide to Upgrading a FreeBSD server remotely

2003-12-02 Thread Alex de Kruijff
On Tue, Dec 02, 2003 at 03:01:36AM +0100, Denis Fortin wrote:
> Greetings,
> 
> I've Google'd a bit, but I cannot find a "survival guide to upgrading 
> a FreeBSD system remotely".
> 
> The Handbook's procedure is excellent (cvsup to the RELENG branch and 
> then make'ing world), but it requires going into single user mode and 
> using the console, two things which may not be possible in the context 
> of a server sitting unattended in a hosting center 1 kilometers away.
> 
> Has anyone written a quick guide on issues that can arise in this kind 
> of situation?  (For instance, one the the issues is that one might end 
> up with a bad kernel: have people devised a way for the boot code to 
> interact with "reboot -k xxx" to revert to the default kernel after an 
> unsucessful boot, or after a specific time?)
> 
Although its not recommended to do this, it can be done. It basicaly
comes down to following the manual (without rebooting into single
usermode) and be very very carefull. Read everything you need to read,
run every command you need to run and have someone sitting there in case
it goes wrong.

Note: I've never done this on a busy system.
-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: error installing FreeBSD 5.1

2003-12-02 Thread Alex de Kruijff
On Mon, Nov 03, 2003 at 12:27:29AM +1030, Andrew wrote:
> Hello,
> 
> 
> I managed to get access to FreeBSD 5.0 Official release and got the same 
> error message. this still occurred after doing a firmware update on the 
> dvd drive.
> I managed to borrow a Pioneer DVD-105 slotload drive and the install was 
> ok, but i am at a loss to why it is unable to recognise my pioneer 
> dvd-120 drive.
> 
> Thanks Andrew

It may be that there exist a bug in the installation. You could fetch
the two boot files from the ftp (ftp.freebsd.org) site. I think the
manual (www.freebsd.org/handbook) has this coverd in the installation
section.

-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD DRIVER DEVELOPMENT

2003-12-02 Thread Cordula's Web
> > Dear Sir/Madam,
> > 
> > I have requirement to develop driver for the PCI based hardware interface
> > using FreeBSD Unix system. Would you please advise on the following:-
> > 
> > 1)What tools are available to develop driver for x86 machine using C?

Most drivers in FreeBSD are written in C. They are compiled by gcc
(2.95.4 in -STABLE, 3.x in -CURRENT), just like any other part of
the system sources (see: /usr/src).

> > 2)Suitable package including the operating system, tools and books etc?
> 
> Checking out the documentation on freebsd.org would probally be a good start.

Checking out some sample driver sources would be even better :)
For -STABLE (RELENG_4), [PCI-]drivers are located in the kernel source
tree, here:

  /usr/src/sys/pci (PCI drivers)
  /usr/src/sys/dev (mixed ISA and PCI drivers)

Reading the man page pci(4) [man 4 pci] won't hurt either.

As with every device driver, the recommended (or at least proved)
way is to take an existing, simple driver, and modify it to suit
your needs.

Kernel interfaces are documented in intro(9) and related section 9
man pages (ls /usr/share/man/man9)

A good introduction on writing device drivers for FreeBSD is in the
Documentation. Among others:

  * Developers' Handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/index.html

  * FreeBSD Architecture Handbook (esp. Section II: Device Drivers):
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html

(You may want to play with a KLD module, which exercises the PCI API:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/pci.html)

  * PCI Special Interest Group (specs etc... for PCI bus)
http://www.pcisig.com/   esp. this:
http://www.pcisig.com/specifications/conventional

> > 3)Can the driver developed for other unix operating system e.g. VxWorks
> > can be imported into the FreeBSD and compiled without major code change?
> 
> AFAIK this is something that is not really possible on any operating system.
> This is becuase changes to what header files and need to be made and ect. As to
> the extent of what changes are required, I guess that varies from what it is and
> whatever... but I never messed with this befor so I have no clue...

A device driver is always part of the kernel program. It runs in the
same address space as the kernel, and must interact with both the
kernel and the hardware in a very specific manner. A driver will
e.g. need to call some kernel functions to report data, or send
notifications. Or it may register a timer, etc... These kernel
functions (in FreeBSD, look at directory /usr/share/man/man9) differ
from OS to OS. FreeBSD's functions are completely different to, say,
Linux' functions or Win32s/Windows API calls. That's a reason why
writing device drivers is completely dependant upon a specific kernel.

Ah, and don't forget to use a development machine. Coding mistakes
in device drivers WILL almost always panic(9) the kernel, and under
unlucky circumstances trash the filesystem with it! [Same under Linux
or any other OS]

Good luck and happy hacking!

-- 
Cordula's Web. http://www.cordula.ws/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Vinum & U320 SCSI, slower than UDMA100 IDE ?

2003-12-02 Thread Greg 'groggy' Lehey
On Tuesday,  2 December 2003 at 10:26:08 +0100, Sander Smeenk wrote:
> Quoting Greg 'groggy' Lehey ([EMAIL PROTECTED]):
  plex org striped 3841k
>>
>> You should choose a stripe size which is a multiple of the block size
>> (presumably 16 kB).  Not doing so will have a minor performance
>> impact, but nothing like what you describe here.
>
> I might have misunderstood, but on the vinumvm.org website there is
> quite a comprehensive discussion on stripesizes and they conclude
> that larger stripesizes help increase throughput. They also discuss
> the size not being a power of 2, because that might cause stripes to
> end up on the same disk, which decreases performance...

That's all correct, but unfortunately the discussion isn't
comprehensive enough.  Since transfers tend to be on block boundaries
(but there's no requirement), it's a good idea to have all blocks on a
single platter.  Otherwise transfers can get broken into two, with
minor performance implications.  I'm currently tending towards a
stripe size of 496 kB.

 ahd1: PCI error Interrupt
>> Dump Card State Begins <
 ahd1: Dumping Card State at program address 0x94 Mode 0x22
>> This is possibly related.  Does it happen every time?
>
> It did, until I compiled a new 4.9 kernel from the 4.9-RELEASE src/ tree
> from CVS. (Thanks to Scott Long for pointing that out).
> The driver for aic7xxx cards was fixed, and now the message is gone, and
> the system is once again stable.

Ah, OK.

>> The first thing to do is to find whether it's Vinum or the SCSI disks.
>> Can you test with a single SCSI disk (of the same kind, preferably one
>> of the array) instead of a single IDE disk?
>
> I did some tests, this time with Bonnie++, on vinum, scsi, ide, and
> vinum with big stripes and small stripes. I'm busy comparing them ;)
>
> But still, I doubt if bonnie++ is a good test, and I have a hard time
> interpreting the results. I can publish the results somewhere, in a
> while.

Yes, bonnie++ tests the entire system, not just the disk.  Try
benchmarks/rawio.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgp0.pgp
Description: PGP signature


Re: installing ruby library ports for ruby 1.8 instead of 1.6

2003-12-02 Thread culley harrelson

to /etc/make.conf and this doesn't help either.  Can someone point me in 
the right direction?



I removed *everything* using ruby and reinstalled using 1.8.  Works fine.

culley

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Evolution can't be installed after a deinstall

2003-12-02 Thread Joe Marcus Clarke
On Tue, 2003-12-02 at 19:39, Joachim Dagerot wrote:
> My Evolution installation stopped working so I decided to go down the
> ol' windows way and made a deinstall with intention to de a new
> install. Unfortunately the "make install" command results in errors, I
> have posted from where the first error occurs, please let me know if
> all the output is needed. My question is very simple: What steps are
> needed to be able to install Evolution again, and is it possible to
> get an answer out of this "make install" output?

Delete /usr/X11R6/include/gal.

Joe

> 
> ==
> /.../
> In file included from body.c:26:
> /usr/X11R6/include/gal/widgets/widget-color-combo.h:35:33:
> libgnome/gnome-defs.h: No such file or directory
> In file included from
> /usr/X11R6/include/gal/widgets/widget-color-combo.h:37,
>  from body.c:26:
> /usr/X11R6/include/gal/widgets/color-palette.h:36:33:
> libgnome/gnome-defs.h: No such file or directory
> In file included from
> /usr/X11R6/include/gal/widgets/color-palette.h:38,
>  from
> /usr/X11R6/include/gal/widgets/widget-color-combo.h:37,
>  from body.c:26:
> /usr/X11R6/include/gal/widgets/color-group.h:31:37:
> libgnomeui/gnome-canvas.h: No such file or directory
> /usr/X11R6/include/gal/widgets/color-group.h:32:33:
> libgnome/gnome-defs.h: No such file or directory
> In file included from
> /usr/X11R6/include/gal/widgets/color-palette.h:38,
>  from
> /usr/X11R6/include/gal/widgets/widget-color-combo.h:37,
>  from body.c:26:
> /usr/X11R6/include/gal/widgets/color-group.h:37: syntax error before
> "typedef"
> In file included from
> /usr/X11R6/include/gal/widgets/widget-color-combo.h:37,
>  from body.c:26:
> /usr/X11R6/include/gal/widgets/color-palette.h:40: syntax error before
> "BEGIN_GNOME_DECLS"
> /usr/X11R6/include/gal/widgets/color-palette.h:42: syntax error before
> "typedef"
> /usr/X11R6/include/gal/widgets/color-palette.h:51: syntax error before
> "GnomeCanvasItem"
> In file included from body.c:26:
> /usr/X11R6/include/gal/widgets/widget-color-combo.h:39: syntax error
> before "BEGIN_GNOME_DECLS"
> /usr/X11R6/include/gal/widgets/widget-color-combo.h:41: syntax error
> before "typedef"
> /usr/X11R6/include/gal/widgets/widget-color-combo.h:48: syntax error
> before "GnomeCanvas"
> In file included from
> /usr/X11R6/include/libgnomeprint-2.2/libgnomeprint/gnome-print.h:58,
>  from ../../src/gtkhtml-types.h:26,
>  from ../../src/htmlengine.h:30,
>  from ../../src/htmlengine-edit.h:27,
>  from body.c:27:
> /usr/X11R6/include/libgnomeprint-2.2/libgnomeprint/gnome-print-config.
> h:129: syntax error before "typedef"
> gmake[4]: *** [body.lo] Error 1
> gmake[4]: Leaving directory
> `/usr/ports/www/gtkhtml3/work/gtkhtml-3.0.9/components/html-editor'
> gmake[3]: *** [all] Error 2
> gmake[3]: Leaving directory
> `/usr/ports/www/gtkhtml3/work/gtkhtml-3.0.9/components/html-editor'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/www/gtkhtml3/work/gtkhtml-3.0.9/components'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/usr/ports/www/gtkhtml3/work/gtkhtml-3.0.9'
> gmake: *** [all] Error 2
> *** Error code 2
> 
> Stop in /usr/ports/www/gtkhtml3.
> *** Error code 1
> 
> Stop in /usr/ports/mail/evolution.
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
-- 
PGP Key : http://www.marcuscom.com/pgp.asc


signature.asc
Description: This is a digitally signed message part


Evolution can't be installed after a deinstall

2003-12-02 Thread Joachim Dagerot
My Evolution installation stopped working so I decided to go down the
ol' windows way and made a deinstall with intention to de a new
install. Unfortunately the "make install" command results in errors, I
have posted from where the first error occurs, please let me know if
all the output is needed. My question is very simple: What steps are
needed to be able to install Evolution again, and is it possible to
get an answer out of this "make install" output?

==
/.../
In file included from body.c:26:
/usr/X11R6/include/gal/widgets/widget-color-combo.h:35:33:
libgnome/gnome-defs.h: No such file or directory
In file included from
/usr/X11R6/include/gal/widgets/widget-color-combo.h:37,
 from body.c:26:
/usr/X11R6/include/gal/widgets/color-palette.h:36:33:
libgnome/gnome-defs.h: No such file or directory
In file included from
/usr/X11R6/include/gal/widgets/color-palette.h:38,
 from
/usr/X11R6/include/gal/widgets/widget-color-combo.h:37,
 from body.c:26:
/usr/X11R6/include/gal/widgets/color-group.h:31:37:
libgnomeui/gnome-canvas.h: No such file or directory
/usr/X11R6/include/gal/widgets/color-group.h:32:33:
libgnome/gnome-defs.h: No such file or directory
In file included from
/usr/X11R6/include/gal/widgets/color-palette.h:38,
 from
/usr/X11R6/include/gal/widgets/widget-color-combo.h:37,
 from body.c:26:
/usr/X11R6/include/gal/widgets/color-group.h:37: syntax error before
"typedef"
In file included from
/usr/X11R6/include/gal/widgets/widget-color-combo.h:37,
 from body.c:26:
/usr/X11R6/include/gal/widgets/color-palette.h:40: syntax error before
"BEGIN_GNOME_DECLS"
/usr/X11R6/include/gal/widgets/color-palette.h:42: syntax error before
"typedef"
/usr/X11R6/include/gal/widgets/color-palette.h:51: syntax error before
"GnomeCanvasItem"
In file included from body.c:26:
/usr/X11R6/include/gal/widgets/widget-color-combo.h:39: syntax error
before "BEGIN_GNOME_DECLS"
/usr/X11R6/include/gal/widgets/widget-color-combo.h:41: syntax error
before "typedef"
/usr/X11R6/include/gal/widgets/widget-color-combo.h:48: syntax error
before "GnomeCanvas"
In file included from
/usr/X11R6/include/libgnomeprint-2.2/libgnomeprint/gnome-print.h:58,
 from ../../src/gtkhtml-types.h:26,
 from ../../src/htmlengine.h:30,
 from ../../src/htmlengine-edit.h:27,
 from body.c:27:
/usr/X11R6/include/libgnomeprint-2.2/libgnomeprint/gnome-print-config.
h:129: syntax error before "typedef"
gmake[4]: *** [body.lo] Error 1
gmake[4]: Leaving directory
`/usr/ports/www/gtkhtml3/work/gtkhtml-3.0.9/components/html-editor'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory
`/usr/ports/www/gtkhtml3/work/gtkhtml-3.0.9/components/html-editor'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/www/gtkhtml3/work/gtkhtml-3.0.9/components'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/ports/www/gtkhtml3/work/gtkhtml-3.0.9'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/www/gtkhtml3.
*** Error code 1

Stop in /usr/ports/mail/evolution.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: getting DHCP-assigned IP address

2003-12-02 Thread Toni Schmidbauer
On Tue, Dec 02, 2003 at 05:05:06PM -0500, Michael A. Smith wrote:
> Is there an easy way to get the IP address that DHCP has assigned to an 
> interface?

ifconfig fxp0 | grep 'inet ' | cut -f 2 -d ' '

hth,
toni
-- 
Kann man etwas nicht verstehen, dann urteile man | toni at stderror dot at 
lieber gar nicht, als dass man verurteile.   | Toni Schmidbauer
-- Rudolf Steiner| 


pgp0.pgp
Description: PGP signature


Nasty hardware problem...

2003-12-02 Thread Dr Lyman Hazelton
Oops!  Major irq head-butting is the problem.  I'm amazed the system 
even came up far enough to complain about it.  Sorry I bothered the 
list with this.

   -Lyman

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Netscape won't start. Bad magic libXt.so.6

2003-12-02 Thread Ken Seggerman
Greetings:

I have FreeBSD 4.3 Stable running on an old laptop. I pretty much have
everything working they way I want it. I did have Netscape working at one
point. Seems to be Netscape Communicator 4.74-US. Now I use Mozilla
(5.0.8.1), which works just fine.

Netscape does not start up. I try from the pull-down menu of my window
manager (FVWM2) and nothing happens. Trying to start Netscape from the
command line of of an Xterm:

$/usr/local/bin/netscape

results in the following error message:

/usr/libexec/ld.so: warning: /usr/X11R6/lib/libXt.so.6:
minor version -1 older than expected 0, using it anyway
ld.so failed: bad magic number in "/usr/X11R6/lib/libXt.so.6"

I seem to have a couple of extras libXt.so.6 files buried deep in
/usr/compat/linux/usr, but I don't know if swapping one of them would be
a good idea. I don't know how to determine their minor version numbers
or the quality of their magic numbers.

Both Netscape and Mozilla are packages installed from the FreeBSD 4.3
CDROM.

Could I just try pkd_delete on Netscape and reinstall it with pkg_add?

I don't want to risk breaking Mozilla trying to fix Netscape.

I am not subscribed to this mailing list. Any suggestions via email would
be welcome.

Ken

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Remove ^M characters from xhtml file

2003-12-02 Thread Marc Wiz
On Tue, Dec 02, 2003 at 04:58:06PM -0600, James Schmidt wrote:
> Using Vi, use this command
> 
> :1,$ s///g

To save two keystrokes try this :-)

:% s///g

Marc
-- 
Marc Wiz
[EMAIL PROTECTED]
Yes, that really is my last name.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pcm, cbb problems in 5.1 w/Thinkpad

2003-12-02 Thread Jesse Guardiani
Davis Doherty wrote:

> aI've been trying to get FreeBSD 5.1 running on an inherited Thinkpad 600
> (my first foray into both laptops and the 5.x tree), and I have stumbled a
> little bit in properly configuring the kernel. I have not found any
> solutions in the archives for these, so any suggestions would be heartily
> appreciated (especially ones that work).
> 
> First off, I included the line
> 
> device  pcm
> 
> in my kernel, compiled, and installed. The result (as reported by dmesg)
> was as follows:
> 
> pcm1:  on isa0
> device_probe_and_attach: pcm1 attach returned 6
> unknown:  can't assign resources (port)
> unknown:  can't assign resources (port)
> unknown:  can't assign resources (port)
> unknown:  can't assign resources (port)

Is your PCM hardware unusable? I get this all the time on my
Thinkpad A30p and it's harmless.

Also, a better list for Thinkpad related questions would be -mobile.

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Remove ^M characters from xhtml file

2003-12-02 Thread James Schmidt
Using Vi, use this command

:1,$ s///g

HTH
James


On Tue, 2 Dec 2003, parv wrote:

> in message <[EMAIL PROTECTED]>,
> wrote Bryan Cassidy thusly...
> >
> > I've downloaded a couple of .xhtml files and they have ^M characters
> > all through it. I tried the col -b < name > newname command on these
> > files but when I do that it erases the whole document. Any ideas?
>
> Ah, a FAQ of comp.unix.* groups...
>
>   http://groups.google.com/groups?q=remove+%22%5EM%22+file+group%3Acomp.unix.*
>
>
> It pains me not to see even a mention of sed, even though i prefer the
> "perl pie" solution myself.  To rectify the situation...
>
>   #  one way to type ^M is: Ctrl-V followed by Ctrl-M
>   sed -e 's/^M$//' old > new && mv -f new old
>
>
>   - Parv
>
> --
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 4.9 install CD won't boot on Toshiba Tecra 8000

2003-12-02 Thread Chris Pressey
On Tue, 2 Dec 2003 07:21:56 -0800 (PST)
Anon Nimus <[EMAIL PROTECTED]> wrote:

> I've burned a 4.9 ISO onto a CD-R and it won't boot on
> my Tecra 8000!  This CD will boot on another PC but
> just not on this one.  Also, the Toshiba CAN and DOES
> boot other CDs.  For example, I was able to boot from
> CD and install
> Mandrake 9.2 on the Tecra.   So I'm not sure why this
> particular CD won't boot on the Tecra.  Any ideas? 

This is a guess, but it's possible that your Tecra doesn't support
"Emulated El Torito" CD booting, which is what 4.x uses.

You might want to browse through this thread for more info:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg58745.html

> I don't have a floppy drive so I'm not sure how else
> to install FreeBSD. Can I install FreeBSD from Linux
> (Mandrake 9.2)?  Are there any other
> options I should consider?

If it's not a production server, you could try 5.1 (or 5.2 BETA,) whose
ISO images apparently use "Non-Emulated El Torito" booting.

-Chris
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Remove ^M characters from xhtml file

2003-12-02 Thread parv
in message <[EMAIL PROTECTED]>,
wrote Bryan Cassidy thusly...
>
> I've downloaded a couple of .xhtml files and they have ^M characters
> all through it. I tried the col -b < name > newname command on these
> files but when I do that it erases the whole document. Any ideas?

Ah, a FAQ of comp.unix.* groups...

  http://groups.google.com/groups?q=remove+%22%5EM%22+file+group%3Acomp.unix.*


It pains me not to see even a mention of sed, even though i prefer the
"perl pie" solution myself.  To rectify the situation...

  #  one way to type ^M is: Ctrl-V followed by Ctrl-M
  sed -e 's/^M$//' old > new && mv -f new old


  - Parv

-- 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't mount UFS in KNOPPIX

2003-12-02 Thread daniel
heh i have done this easy, you need to setup the nfs permissions first

mount 192.168.0.1:/home/user /mnt/home

that worked for me no need for -t

> On Tue, Dec 02, 2003 at 11:16:36PM +0200, Gareth Bailey wrote:
>> Is it possible to mount freebsd native partitions in
>> Knoppix? How can this be done? - i have tried 'mount -t
>> ufs' and 'mount -t ufs -o ufstype=44bsd' BUT Knoppix
>> doesn't want to know about it.
>
> Apparently not -- but you sohlud try asking on a Knoppix list for a
> definitive answer.
>
> Alternatively, you could try FreeSBIE -- http://www.freesbie.org/
> which is a Knoppix like OS-on-a-CDRom thing, but based on FreeBSD
> rather than Linux.
>
> If you're trying to recover data from a damaged system, then you may
> find the 2nd CD from the installation set useful -- it won't give you
> an X desktop, but it will make all of the important FS management
> tools available to you.
>
>   Cheers,
>
>   Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
>  Savill Way
> PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
> Tel: +44 1628 476614  Bucks., SL7 1TH
> UK



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 4.9 ATA hangs with 2 ata drives

2003-12-02 Thread Aaron Myles Landwehr
try turning off dma on the affected drive...see if it boots correctly
> At 21:40 -0500 12/01/2003, Aaron Myles Landwehr wrote:
>>I have the same problem with my asus p4s8x mobo on freebsd 4.9 and
>>priorIf i disable dma the cd will boot.;
>>5.1 works correctly(with dma enabled).
>>from the cases i've seen...they all include an ASUS motherboard...
>>-aaron<[EMAIL PROTECTED]>
>
> I didn't have any trouble with the cd booting.  I've got it
> set up as my secondary ata master.  It sees my ad0 fine, and
> then hangs before showing the drive type for ad1.
>
> This post had ad0 hang using a GA - 8SG800 motherboard.
> Maybe also an nforce2 chipset?
> http://www.freebsd.org/cgi/getmsg.cgi?fetch=2472274+2474865+/usr/local/www/db/text/2003/freebsd-questions/20031109.freebsd-questions
>
> I could swear there were others, but the only ones that I could
> find quickly were about cdrom problems, not hard drives.
>
>>... 4.9 hangs on boot with: ...
>> > ad1: READ command timeout tag=0 serv=0 - resetting
>>> ata0: resetting devices
>>>
>>> I've seen what looks like similar problems in the archives (e.g.,
>>> http://docs.freebsd.org/cgi/mid.cgi?188200406.20031109073901).
>>> It seems to happen on various motherboards and disk configurations.
>> > I wanted to provide another datapoint for configurations.
>>>
>
> tks
> j
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: getting DHCP-assigned IP address

2003-12-02 Thread Lowell Gilbert
"Michael A. Smith" <[EMAIL PROTECTED]> writes:

> Is there an easy way to get the IP address that DHCP has assigned to
> an interface?
> 
> I know I can do it the hard way -- parsing the results of ifconfig
> with regular expressions -- but I suspect there's a much easier way.

For most purposes, the easy way is to use the dhclient hooks scripts;
that way, you don't need to poll the values, either.  

"man 8 dhclient-script" for details, but my /etc/dhclient-exit-hooks
script is: 

if [ x$old_ip_address != x$new_ip_address ]; then
/usr/local/bin/noip
fi
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pcm, cbb problems in 5.1 w/Thinkpad

2003-12-02 Thread Davis Doherty
aI've been trying to get FreeBSD 5.1 running on an inherited Thinkpad 600
(my first foray into both laptops and the 5.x tree), and I have stumbled a
little bit in properly configuring the kernel. I have not found any
solutions in the archives for these, so any suggestions would be heartily
appreciated (especially ones that work).

First off, I included the line

device  pcm

in my kernel, compiled, and installed. The result (as reported by dmesg)
was as follows:

pcm1:  on isa0
device_probe_and_attach: pcm1 attach returned 6
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)

I then tried putting the following lines in device.hints (though this file
is one of the aspects of 5.1 I'm still unfamiliar with):

hint.pcm.0.at="isa"
hint.pcm.0.irq="5"
hint.pcm.0.drq="1"
hint.pcm.0.flags="0x0"

The result was the same.

A less important issue (since I don't currently use any PCMCIA cards) is
with cbb0:

cbb0:  mem 0x20301000-0x20301fff at device 2.0
on pci
0
cardbus0:  on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb: Unable to map IRQ...
device_probe_and_attach: cbb0 attach returned 12
cbb0:  mem 0x2030-0x20300fff at device 2.1
on pci
0
cardbus1:  on cbb0
pccard1: <16-bit PCCard bus> on cbb0
cbb: Unable to map IRQ...
device_probe_and_attach: cbb0 attach returned 12

Similar output occurs for cardbus1, cardbus2, and cardbus3.

-Davis Doherty
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Nasty hardware problem...

2003-12-02 Thread Dr Lyman Hazelton
I trying to bring up a file server a system with a 1.5GHz AMD Athlon, 
256MB RAM, an older AHA2940 SCSI card with an IBM DDYS-T18350N hard 
drive.  The hard drive is connected to the second channel (the 
Ultra-wide channel) on the 2940.  During the boot process (from the 
dmesg) the machine stops with a SCSI Status Error (Check Condition) 
saying it refuses Tagged commands.  The boot system appears to then 
go into untagged mode and finds that the SCSI card has been RESET.  
There follows a dump of the card, which I have attached here.  Could 
this be because the data rate frequency is set too high?  I lowered 
it from 20MB/s to 16MB/s, but I could go as low as 10MB/s.  On the 
other hand, that may have nothing to do with the problem.  This is 
kind of a shot in the dark, I know... but someone out there in 
FreeBSD land might have seen something like this before.  Please 
forgive the long message.

   -Lyman
Dec  2 21:10:55 Cogitek-UX2 kernel: >> Dump Card State Begins 
<
Dec  2 21:10:55 Cogitek-UX2 kernel: ahc0: Dumping Card State in Message-in phase, at 
SEQADDR 0x1bf
Dec  2 21:10:55 Cogitek-UX2 kernel: Card was paused
Dec  2 21:10:55 Cogitek-UX2 kernel: ACCUM = 0x0, SINDEX = 0x31, DINDEX = 0xc0, ARG_2 = 
0x8
Dec  2 21:10:55 Cogitek-UX2 kernel: HCNT = 0x0 SCBPTR = 0x7
Dec  2 21:10:55 Cogitek-UX2 kernel: SCSISIGI[0xe6]:(REQI|BSYI|MSGI|IOI|CDI) ERROR[0x0] 
Dec  2 21:10:55 Cogitek-UX2 kernel: SCSIBUSL[0x80] LASTPHASE[0xe0]:(MSGI|IOI|CDI) 
SCSISEQ[0x12]:(ENAUTOATNP|ENRSELI) 
Dec  2 21:10:55 Cogitek-UX2 kernel: SBLKCTL[0x2]:(SELWIDE) SCSIRATE[0x0] 
SEQCTL[0x10]:(FASTMODE) 
Dec  2 21:10:55 Cogitek-UX2 kernel: SEQ_FLAGS[0xc0]:(NO_CDB_SENT|NOT_IDENTIFIED) 
SSTAT0[0x7]:(DMADONE|SPIORDY|SDONE) 
Dec  2 21:10:55 Cogitek-UX2 kernel: SSTAT1[0x3]:(REQINIT|PHASECHG) SSTAT2[0x0] 
SSTAT3[0x0] 
Dec  2 21:10:55 Cogitek-UX2 kernel: SIMODE0[0x0] 
SIMODE1[0xac]:(ENSCSIPERR|ENBUSFREE|ENSCSIRST|ENSELTIMO) 
Dec  2 21:10:55 Cogitek-UX2 kernel: SXFRCTL0[0x88]:(SPIOEN|DFON) 
DFCNTRL[0x4]:(DIRECTION) 
Dec  2 21:10:55 Cogitek-UX2 kernel: 
DFSTATUS[0x6d]:(FIFOEMP|DFTHRESH|HDONE|FIFOQWDEMP|DFCACHETH) 
Dec  2 21:10:55 Cogitek-UX2 kernel: STACK: 0x144 0x0 0x191 0x199
Dec  2 21:10:55 Cogitek-UX2 kernel: SCB count = 70
Dec  2 21:10:55 Cogitek-UX2 kernel: Kernel NEXTQSCB = 69
Dec  2 21:10:55 Cogitek-UX2 kernel: Card NEXTQSCB = 69
Dec  2 21:10:55 Cogitek-UX2 kernel: QINFIFO entries: 
Dec  2 21:10:55 Cogitek-UX2 kernel: Waiting Queue entries: 15:32 
Dec  2 21:10:55 Cogitek-UX2 kernel: Disconnected Queue entries: 8:34 11:36 5:2 3:59 
13:53 6:41 0:15 10:8 1:38 12:35 9:9 2:1 4:40 14:33 
Dec  2 21:10:55 Cogitek-UX2 kernel: QOUTFIFO entries: 
Dec  2 21:10:55 Cogitek-UX2 kernel: Sequencer Free SCB List: 7 
Dec  2 21:10:55 Cogitek-UX2 kernel: Sequencer SCB Info: 
Dec  2 21:10:55 Cogitek-UX2 kernel: 0 SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:55 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0xf] 
Dec  2 21:10:55 Cogitek-UX2 kernel: 1 SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:55 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x26] 
Dec  2 21:10:55 Cogitek-UX2 kernel: 2 SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:55 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x1] 
Dec  2 21:10:55 Cogitek-UX2 kernel: 3 SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:55 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x3b] 
Dec  2 21:10:55 Cogitek-UX2 kernel: 4 SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:55 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x28] 
Dec  2 21:10:55 Cogitek-UX2 kernel: 5 SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:56 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x2] 
Dec  2 21:10:56 Cogitek-UX2 kernel: 6 SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:56 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x29] 
Dec  2 21:10:56 Cogitek-UX2 kernel: 7 SCB_CONTROL[0x10]:(MK_MESSAGE) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:56 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0xff] 
Dec  2 21:10:56 Cogitek-UX2 kernel: 8 SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:56 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x22] 
Dec  2 21:10:56 Cogitek-UX2 kernel: 9 SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) 
SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:56 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x9] 
Dec  2 21:10:56 Cogitek-UX2 kernel: 10 
SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:56 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x8] 
Dec  2 21:10:56 Cogitek-UX2 kernel: 11 
SCB_CONTROL[0x64]:(DISCONNECTED|TAG_ENB|DISCENB) SCB_SCSIID[0x87]:(TWIN_CHNLB) 
Dec  2 21:10:56 Cogitek-UX2 kernel: SCB_LUN[0x0] SCB_TAG[0x24] 
Dec  2 21:10:56 Cog

getting DHCP-assigned IP address

2003-12-02 Thread Michael A. Smith
Is there an easy way to get the IP address that DHCP has assigned to an 
interface?

I know I can do it the hard way -- parsing the results of ifconfig with 
regular expressions -- but I suspect there's a much easier way.

--
Michael A. Smith <[EMAIL PROTECTED]>
Programmer at Large
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't mount UFS in KNOPPIX

2003-12-02 Thread Matthew Seaman
On Tue, Dec 02, 2003 at 11:16:36PM +0200, Gareth Bailey wrote:
> Is it possible to mount freebsd native partitions in
> Knoppix? How can this be done? - i have tried 'mount -t
> ufs' and 'mount -t ufs -o ufstype=44bsd' BUT Knoppix
> doesn't want to know about it.

Apparently not -- but you sohlud try asking on a Knoppix list for a
definitive answer.

Alternatively, you could try FreeSBIE -- http://www.freesbie.org/
which is a Knoppix like OS-on-a-CDRom thing, but based on FreeBSD
rather than Linux.

If you're trying to recover data from a damaged system, then you may
find the 2nd CD from the installation set useful -- it won't give you
an X desktop, but it will make all of the important FS management
tools available to you.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: Can't mount UFS in KNOPPIX

2003-12-02 Thread Ruben de Groot
On Tue, Dec 02, 2003 at 11:16:36PM +0200, Gareth Bailey typed:
> Is it possible to mount freebsd native partitions in
> Knoppix? How can this be done? - i have tried 'mount -t
> ufs' and 'mount -t ufs -o ufstype=44bsd' BUT Knoppix
> doesn't want to know about it.

Wrong list.
Try a knoppix mailing list

> GJ Bailey
> ___
>  Look Good, Feel Good www.healthiest.co.za
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Can't mount UFS in KNOPPIX

2003-12-02 Thread Gareth Bailey
Is it possible to mount freebsd native partitions in
Knoppix? How can this be done? - i have tried 'mount -t
ufs' and 'mount -t ufs -o ufstype=44bsd' BUT Knoppix
doesn't want to know about it.

GJ Bailey
___
 Look Good, Feel Good www.healthiest.co.za

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD DRIVER DEVELOPMENT

2003-12-02 Thread kitsune
On Mon, 1 Dec 2003 18:04:16 -
"Admin" <[EMAIL PROTECTED]> wrote:

> Dear Sir/Madam,
> 
> I have requirement to develop driver for the PCI based hardware interface
> using FreeBSD Unix system. Would you please advise on the following:-
> 
> 1)What tools are available to develop driver for x86 machine using C?

FreeBSD 4stable uses GCC 2.94.4 There are lots of good IDEs and tools in the
ports trees...

http://www.freebsd.org/ports/index.html
 
> 2)Suitable package including the operating system, tools and books etc?

Checking out the documentation on freebsd.org would probally be a good start.

> 3)Can the driver developed for other unix operating system e.g. VxWorks
> can be imported into the FreeBSD and compiled without major code change?

AFAIK this is something that is not really possible on any operating system.
This is becuase changes to what header files and need to be made and ect. As to
the extent of what changes are required, I guess that varies from what it is and
whatever... but I never messed with this befor so I have no clue...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports problems

2003-12-02 Thread Jonathan T. Sage
Stephen Hilton wrote:

*snip*

when i run portsdb -Uu i get many errors like the one below is there
anyone who can help me
*snip*


Also note, that there errors are not completely unheard of.  I run a 
ports cvsup nightly, update the index database, and send the output of 
portversion to myself.  looking back in my logs, it looks as if i almost 
always have at least a few of these types of errors


Try using 'make index" then 'portsdb -u' instead, this seems to almost 
always give me better results. Set your /usr/local/etc/pkgtools.conf 
variables appropriately.


Steven - any idea what the time (speed) difference is on this?  more of 
a curiosity that a question...

~j

--
"Yesterday upon the stair I saw a man
who wasn't there, he wasn't there
again today, oh how i wish he'd go away"
Rev. Jonathan T. Sage
Lighting / Set Designer
Professional Web Design
[HTTP://thr.msu.edu]
[EMAIL PROTECTED]
[PGP: www.keyserver.net]


pgp0.pgp
Description: PGP signature


Re: ports problems

2003-12-02 Thread Stephen Hilton
On Tue, 2 Dec 2003 13:36:52 -0600
Stephen Hilton <[EMAIL PROTECTED]> wrote:

> On Tue, 02 Dec 2003 11:28:22 -0500
> "Jonathan T. Sage" <[EMAIL PROTECTED]> wrote:
> 
> > Lowell Gilbert wrote:
> > 
> > >RYAN vAN GINNEKEN <[EMAIL PROTECTED]> writes:
> > >
> > >  
> > >
> > >>when i run portsdb -Uu i get many errors like the one below is there
> > >>anyone who can help me
> > >>
> > >>fileroller-2.4.2_1,1:"/usr/ports/x11-toolkits/pango" non-existent --  dependency 
> > >>list incomplete
> > >>
> > >>
> > >
> > >That just means you didn't have /usr/ports/x11-toolkits/pango in your
> > >ports tree.  Assuming this is intentional (you didn't update the whole
> > >ports tree for some reason?) then there's no problem.  If you wanted
> > >to update the whole tree, then you need to figure out what you did
> > >wrong with your update operation (e.g., maybe you need to get rid of a
> > >refuse file for the ports collection). 
> > >
> > Also note, that there errors are not completely unheard of.  I run a 
> > ports cvsup nightly, update the index database, and send the output of 
> > portversion to myself.  looking back in my logs, it looks as if i almost 
> > always have at least a few of these types of errors
> 
> Try using 'make index" then 'portsdb -u' instead, this seems to almost 
> always give me better results. Set your /usr/local/etc/pkgtools.conf 
> variables appropriately.

This may help also:

http://www.freebsd.org/cgi/getmsg.cgi?fetch=2841035+2848911+
/usr/local/www/db/text/2003/freebsd-questions/20031130.freebsd-questions


Regards,

Stephen Hilton
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


PPP redial

2003-12-02 Thread Cole
Hey

I would like to know whether anyone has any idea on how to set the redial option in 
ppp on freebsd to no-redial.  I have checked the man page and tried various options. 
Setting the redial number to 0, means infinite redials, till it connects. I dont want 
that. You cannot set the value to a negative number, i also tried that. I  want to 
turn off all redialing, not have it at like 1, cause as soon as it does reconnect, the 
redial counter is cleared, so if it makes a succesful connection, and is then cutoff, 
and makes a new connection, in less than a second or so, it will do this ad-infinitum. 
Which is not what i want.

My setup is freebsd 4.9-pre1.
Using ppp and isdnd - 128k ISDN line, with an internal asuscom isdn-ta adapter, pci.

If anyone has any clues, please email me at
[EMAIL PROTECTED]
Thanx.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: GIS server and client?

2003-12-02 Thread Bob Collins
On Tue, Dec  2, 2003, Ray Seals wrote:
> On Tue, 2003-12-02 at 10:26, Bob Collins wrote:
> > I am unfortunately running ESRI's ArcIMS GIS server on M$ 2000 server
> > and would like to move it to FreeBSD. So, the question is; are there any
> > known GIS servers that run on FBSD as well as clients?
> > 
> > I am not afraid of hard work and troubles installing, but sure would
> > like to do this. I also know ESRI's ArcIMS runs on Red Hat, but I would
> > rather not do that if possible. I want to stick with FreeBSD.
> > 
> > Any and all suggestions, as related to the questions ;-) are
> > appreciated. Thanks
> 
> I'm currently doing some research on this subject.  GRASS seems to be
> the big one that is used on FreeBSD.  This is a full featured GIS
> system.  There is also Mapserver which is just a tool for displaying
> maps on the web using GIS shapefiles, etc.  Mapserver just has some good
> API's for using perl and C to manipulate the images as they are being
> displayed.
> 
> I don't know much about GIS.  If you wouldn't mind fielding a few
> questions over the next week or so I would appreciate any insight you
> could give me.
> 
> Ray
> 

I would be delighted to answer what I can. I am also somewhat new to
GIS, but getting better each day with it. I have built quite a few maps
for display over the net, and set up the map server to send to the net
as well, so at this time, I am a jack of all trades and a master of
none, in the GIS realm.

It prolly makes sense to keep this off-list, unless others want it
there. Even with that, we should stay off list, I think, as it is not
germain to FreeBSD. What I can do, is hold our mail on a web site for future
reference for those who might like to follow in our footsteps.

Also, FWIW, I am setting this up as a test bed on an IBM Thinkpad 600X
running FreeBSD 4.9-Release. It is 450MHz with 256MB
-- 
Bob
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports problems

2003-12-02 Thread Stephen Hilton
On Tue, 02 Dec 2003 11:28:22 -0500
"Jonathan T. Sage" <[EMAIL PROTECTED]> wrote:

> Lowell Gilbert wrote:
> 
> >RYAN vAN GINNEKEN <[EMAIL PROTECTED]> writes:
> >
> >  
> >
> >>when i run portsdb -Uu i get many errors like the one below is there
> >>anyone who can help me
> >>
> >>fileroller-2.4.2_1,1:"/usr/ports/x11-toolkits/pango" non-existent --  dependency 
> >>list incomplete
> >>
> >>
> >
> >That just means you didn't have /usr/ports/x11-toolkits/pango in your
> >ports tree.  Assuming this is intentional (you didn't update the whole
> >ports tree for some reason?) then there's no problem.  If you wanted
> >to update the whole tree, then you need to figure out what you did
> >wrong with your update operation (e.g., maybe you need to get rid of a
> >refuse file for the ports collection). 
> >
> Also note, that there errors are not completely unheard of.  I run a 
> ports cvsup nightly, update the index database, and send the output of 
> portversion to myself.  looking back in my logs, it looks as if i almost 
> always have at least a few of these types of errors

Try using 'make index" then 'portsdb -u' instead, this seems to almost 
always give me better results. Set your /usr/local/etc/pkgtools.conf 
variables appropriately.

Regards,


Stephen Hilton
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


installing ruby library ports for ruby 1.8 instead of 1.6

2003-12-02 Thread culley harrelson
I am trying to get my ruby lirbary ports to install for 1.8 instead of 
1.6.  When I try this:

portinstall -m RUBY_VER=1.8 ruby-rmail

It is still isntalling it in the 1.6 directory.  I have also added:

RUBY_VER=1.8
RUBY_DEFAULT_VER=1.8
to /etc/make.conf and this doesn't help either.  Can someone point me in 
the right direction?

culley

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


DHCP and ancontrol!

2003-12-02 Thread Luigi Iannone
Hi,
I have an Compaq laptop (2100ca model), I've installed FreeBSD 4.9!
I'm starting to play with my Cisco Aironet 350 Series!
I Know that DCHP and an work not so fine at bootstrap since the interface
is not able to get the address. Not a problem I made a script!
But each time that a to a change with ancontrol the interface doesn't work
anymore. Each time I have to kill the dhclient and to restart it!
But the worst think is that if a want to set an0 in this way

ancontrol -i an0 -M 1

to enable monitor of 802.11, the DHCP stops work, even if I kill the
process and restart it.
Is this related to BPF Any known bug? Or just me?
Thanks
 Luigi
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Cisco-like ping?

2003-12-02 Thread Jez Hancock
On Tue, Dec 02, 2003 at 02:14:21AM -0500, Dan Mahoney, System Admin wrote:
> I was wondering if anyone knew of an alternate ping utility, notably one
> that can print things in the cisco "!" and "." format for doing extended
> line tests?
> 
> I've gotten one installed under FreeBSD before, but have NO IDEA where I
> found it now.  (I recall the -k option was the one that did the cisco
> trick).
> 
> I think it MIGHT have been from the linux netutils, but I can't recall how
> or where I had found it.
> 
> And searching google for this is useless.
Have a look at the 'portsearch' tool here:

/home/munk/ports/Tools/scripts/portsearch

A quick search using:

portsearch -i "\bping\b"

returned 9 ping related tools in the ports tree, hopefully one of them helps you out.

>From experience I know fping to be easy enough to integrate into a
custom script.

Port:   p5-POE-Component-Client-Ping-0.98
Path:   /usr/ports/devel/p5-POE-Component-Client-Ping
Info:   POE component for non-blocking/concurrent ICMP ping
Maint:  [EMAIL PROTECTED]
Index:  devel perl5 net
B-deps: p5-Compress-Zlib-1.31 p5-Event-0.87 p5-Filter-1.30 p5-POE-0.27 p5-
Storable-2.08 p5-Time-HiRes-1.51,1
R-deps: p5-Compress-Zlib-1.31 p5-Event-0.87 p5-Filter-1.30 p5-POE-0.27 p5-
Storable-2.08 p5-Time-HiRes-1.51,1


Port:   nsping-0.8
Path:   /usr/ports/dns/nsping
Info:   "DNS \"ping\""
Maint:  [EMAIL PROTECTED]
Index:  dns
B-deps: 
R-deps: 


Port:   arping-1.07
Path:   /usr/ports/net/arping
Info:   ARP level "ping" utility
Maint:  [EMAIL PROTECTED]
Index:  net
B-deps: libnet-1.0.2a,1
R-deps: 


Port:   echoping-5.0.1
Path:   /usr/ports/net/echoping
Info:   A ping-like program that uses tcp and/or http
Maint:  [EMAIL PROTECTED]
Index:  net ipv6
B-deps: 
R-deps: 


Port:   fping-2.4b2
Path:   /usr/ports/net/fping
Info:   Quickly ping N hosts w/o flooding the network
Maint:  [EMAIL PROTECTED]
Index:  net ipv6
B-deps: 
R-deps: 


Port:   mtr-0.54
Path:   /usr/ports/net/mtr
Info:   Traceroute and ping in a single graphical network diagnostic tool
Maint:  [EMAIL PROTECTED]
Index:  net ipv6
B-deps: expat-1.95.6_1 gettext-0.12.1 gmake-3.80_1 libiconv-1.9.1_3
R-deps: 


Port:   poink-1.6
Path:   /usr/ports/net/poink
Info:   Nosuid, secure ping like utility
Maint:  [EMAIL PROTECTED]
Index:  net
B-deps: unzip-5.50_2
R-deps: 


Port:   uplog-0.2
Path:   /usr/ports/net/uplog
Info:   UDP-based ping programm
Maint:  [EMAIL PROTECTED]
Index:  net
B-deps: libgnugetopt-1.2
R-deps: libgnugetopt-1.2


Port:   wping-0.1a
Path:   /usr/ports/net/wping
Info:   A Web-based graphical ping log
Maint:  [EMAIL PROTECTED]
Index:  net
B-deps: 
R-deps: freetype2-2.1.5_1 gd-2.0.15_1,1 jpeg-6b_1 p5-GD-2.07 p5-Time-HiRes-
1.51,1 png-1.2.5_2

Number of matching ports = 9

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 4.9 ATA hangs with 2 ata drives

2003-12-02 Thread J S Goldberg
At 21:40 -0500 12/01/2003, Aaron Myles Landwehr wrote:
>I have the same problem with my asus p4s8x mobo on freebsd 4.9 and
>priorIf i disable dma the cd will boot.;
>5.1 works correctly(with dma enabled).
>from the cases i've seen...they all include an ASUS motherboard...
>-aaron<[EMAIL PROTECTED]>

I didn't have any trouble with the cd booting.  I've got it
set up as my secondary ata master.  It sees my ad0 fine, and
then hangs before showing the drive type for ad1.

This post had ad0 hang using a GA - 8SG800 motherboard.
Maybe also an nforce2 chipset?
http://www.freebsd.org/cgi/getmsg.cgi?fetch=2472274+2474865+/usr/local/www/db/text/2003/freebsd-questions/20031109.freebsd-questions

I could swear there were others, but the only ones that I could
find quickly were about cdrom problems, not hard drives.

>... 4.9 hangs on boot with: ...
> > ad1: READ command timeout tag=0 serv=0 - resetting
>> ata0: resetting devices
>>
>> I've seen what looks like similar problems in the archives (e.g.,
>> http://docs.freebsd.org/cgi/mid.cgi?188200406.20031109073901).
>> It seems to happen on various motherboards and disk configurations.
> > I wanted to provide another datapoint for configurations.
>>

tks
j
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


4.9 install CD won't boot on Toshiba Tecra 8000

2003-12-02 Thread Anon Nimus
I've burned a 4.9 ISO onto a CD-R and it won't boot on
my Tecra 8000!  This CD will boot on another PC but
just not on this one.  Also, the Toshiba CAN and DOES
boot other CDs.  For example, I was able to boot from
CD and install
Mandrake 9.2 on the Tecra.   So I'm not sure why this
particular CD won't boot on the Tecra.  Any ideas? 

I don't have a floppy drive so I'm not sure how else
to install FreeBSD. Can I install FreeBSD from Linux
(Mandrake 9.2)?  Are there any other
options I should consider?

In case it helps, I've pasted the dmesg output from
Linux on the Tecra.
---



Linux version 2.4.22-10mdk
([EMAIL PROTECTED]) (gcc version 3.3.1
(Mandrake Linux 9.2 3.3.1-2mdk)) #1 Thu Sep 18
12:30:58 CEST 2003 BIOS-provided physical RAM map:
BIOS-e820:  - 0009fc00
(usable)
BIOS-e820: 0009fc00 - 000a
(reserved)
BIOS-e820: 000f - 0010
(reserved)
BIOS-e820: 0010 - 0fff
(usable)
BIOS-e820: 0fff - 1000 (ACPI
data)
BIOS-e820: 100a - 100b6e00
(reserved)
BIOS-e820: 100b6e00 - 100b7000 (ACPI
NVS)
BIOS-e820: 100b7000 - 1010
(reserved)
BIOS-e820: fff8 - 0001
(reserved) 255MB LOWMEM available.
ACPI: have wakeup address 0xc0001000
On node 0 totalpages: 65520
zone(0): 4096 pages.
zone(1): 61424 pages.
zone(2): 0 pages.
DMI not present.
ACPI: RSDP (v000 TOSHIB   
) @ 0x000f1130
ACPI: RSDT (v001 TOSHIB 750  0x00970814 TASM
0x0401) @ 0x0fff
ACPI: FADT (v001 TOSHIB 750  0x00970814 TASM
0x0401) @ 0x0fff0054
ACPI: DSDT (v001 TOSHIB 8000 0x19991112 MSFT
0x010a) @ 0x
ACPI: MADT not present
Building zonelist for node : 0
Kernel command line: BOOT_IMAGE=linux ro root=301
devfs=mount acpi=ht
resume=/dev/hda5 splash=silent
bootsplash: silent mode.
Local APIC disabled by BIOS -- reenabling.
Could not enable APIC!
Initializing CPU#0
Detected 399.929 MHz processor.
Console: colour dummy device 80x25
Calibrating delay loop... 797.90 BogoMIPS
Memory: 255320k/262080k available (1508k kernel code,
6372k reserved, -1961k data, 156k init, 0k highmem, 0k
BadRAM) Dentry cache hash table entries: 32768 (order:
6, 262144 bytes) Inode cache hash table entries: 16384
(order: 5, 131072 bytes) Mount cache hash table
entries: 512 (order: 0, 4096 bytes) Buffer cache hash
table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144
bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0183f9ff 
 
CPU: Common caps: 0183f9ff 
 
CPU: Intel Mobile Pentium II stepping 0a Enabling fast
FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch
([EMAIL PROTECTED])
mtrr: detected mtrr type: Intel
ACPI: Subsystem revision 20030813
ACPI: Interpreter disabled.
PCI: PCI BIOS revision 2.10 entry at 0xf1987, last
bus=21
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: ACPI tables contain no PCI IRQ routing entries
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router PIIX [8086/7110] at 00:05.0
PCI: Found IRQ 11 for device 00:0b.0
PCI: Found IRQ 11 for device 00:0b.1
PCI: Cannot allocate resource region 4 of device
00:05.1 Limiting direct PCI/PCI transfers.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society
NET3.039 Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x02 (Driver version 1.16)
Starting kswapd kinoded started
VFS: Disk quotas vdquot_6.5.1
devfs: v1.12c (20020818) Richard Gooch
([EMAIL PROTECTED])
devfs: boot_options: 0x1
vesafb: framebuffer at 0xdf00, mapped to
0xd080, size 1875k
vesafb: mode is 800x600x16, linelength=1600, pages=1
vesafb: protected mode interface info at c000:9da0
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
Looking for splash picture silenjpeg size 107888
bytes, found (800x600, 107840 bytes, v3).
Got silent jpeg.
Got silent jpeg.
Console: switching to colour frame buffer device 92x32
fb0: VESA VGA frame buffer device
pty: 1024 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6
MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP
enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A RAMDISK
driver initialized: 16 RAM disks of 32000K size 1024
blocksize Uniform Multi-Platform E-IDE driver
Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes;
override with idebus=xx
PIIX4: IDE controller at PCI slot 00:05.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1000-0x1007, BIOS settings:
hda:DMA, hdb:pio

RE: network security sysctl mib's

2003-12-02 Thread fbsd_user
Thank you for responding with pointers to where I
can find some very limited documented info on the
MIB's I asked about.

No where does any of the doc sources say when these
MIB's get control so I set up an test to find out myself.

I have 24/7 connection using Adelphia cable. A while back when I was
installing a fresh install of FBSD 4.7 I enabled  log_in_vain  MIB
before I had an firewall enabled and the log_in_vain  MIB started to
display on the root console messages about log_in_vain  attempts.
This is what the log_in_vain  MIB is suppose to do. After enabling
IPFILTER firewall the  log_in_vain   console messages stopped.
Yesterday after receiving your replies, I set up a little test on my
test bench. I installed an FBSD 4.9 version basic setup and enabled
just the log_in_vain MIB. With in an hour I had log_in_vain  console
messages. I then enabled the IPFILTER load module in rc.conf with
only 2 rules which blocked and logged every thing. The log_in_vain
messages stopped. I also tried same test compiling IPFILTER into the
kernel and that also stopped the log_in_vain  messages.

The only conclusion one can draw from the test results is that
IPFILTER gets access to the packets before the log_in_vain  Mib
does.  To extrapolate on this, it would indicate the other network
security Mibs I pointed out in my original post are in the same boat
as log_in_vain.

The remaining question then is does the IPFW firewall work the same
way. If it does then all those network security Mib's only have
effect on FBSD systems that are not running an firewall.

Today I an going to run my test again this time using IPFW to verify
my conclusions.

It's my opinion that in today's world of such emphasis on network
security that an clear understand of these MIB's are absolutely
necessary, indispensable, requisite information that has to be
disseminated to the FBSD community and not buried in some obscure,
very hard to find place like it currently is.

Here is the documentation I created in the sysctl.conf file. What do
you think about it?


#
#
# The sysctl.conf file contains MIB's to change the default setting
of
# internal options of the kernel at boot up time. These Mib's
control
# how network packets are handled after IPFW or IPFILTER firewall
# returns the packet to the kernel. Some of these MIB's may seem
# like they are doing the say thing, but because there is no FBSD
# provided documentation on the order these MIB's get control, they
# all get enabled here and we let the kernel do it's thing.
#
# NOTE: Some of these MIB's can also be set in rc.conf and or the
kernel
# source. This will not hurt anything.
#



# Redirect attacks is the purposeful mass issuing of redirects.
# In a normal network, redirects to the end stations should not be
required.
# To defend against this type of attack both the sending and
accepting of
# redirect should be disabled". The first statement below enables
the MIB
# to drop all inbound icmp redirect packets without returning any
response.
# The second statement turns off the logging of redirect packets
because
# there in no limit and this could fill up your logs consuming your
whole
# hard drive. But there is no information about where the redirect
packets
# get logged. The last statement changes the FBSD default about
allowing
# redirects to be sent from this system  to the internet from yes to
no.
# This option is ignored unless the host is routing IP packets, and
# should normally be enabled (=1) on all systems
# man icmp(4) and inet(4) and man ip(4) do not contain info about
these MIB.
# man sysctl(3) does have info on ip.redirect



net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=0
net.inet.ip.redirect=0



# Source routing is another way for an attacker to try to reach non
routable
# addresses behind your box. It can also be used to probe for
information
# about your internal networks. These functions come enabled as part
of the
# standard FBSD core system. The following will disable them.
# man inet(4) and man ip(4) do not contain any information on these
MIBs.

net.inet.ip.sourceroute=0
net.inet.ip.accept_sourceroute=0



# To protect your box from the well publicized SMURF attack. This
attack
# works by sending ICMP 8 0 (ECHO REQUEST) messages to a broadcast
address
# from a spoofed address. The host should not propagate directed
broadcasts.
# The following statement sets the default to do not answer
broadcasts.
# =1 means, answer an ICMP echo request to a broadcast or multicast
address.
# man sysctl(3) has some info.
# man inet(4) and man icmp(4) do not contain any information on
these MIBs

net.inet.icmp.bmcastecho=0


# To change the  system behavior when connection requests are
received
# on TCP or UDP ports where there is no socket listening. The normal
behavior,
# when a TCP SYN segment is received on a port where there is no
socket
# 

Re: 4.9 ATA hangs with 2 ata drives

2003-12-02 Thread J S Goldberg
At 00:22 + 12/02/2003, Lee Harr wrote:
>>I've got both 4.9 and 5.1 loaded on my new ASUS A7N8X Deluxe
>>with two 160Gb disks on the primary ATA controller.
>>
>
>>it hangs during kernel boot after the
>>message:
>>
>>ad1: READ command timeout tag=0 serv=0 - resetting
>>ata0: resetting devices
>>
>
>Yup. I have the same thing.
>
>What I do is go in to the BIOS and set the slave drive
>from "Auto" to "None" when I want to boot from the first
>drive, and switch it back when I want to boot from the
>second drive. Kind of a pain, but it works...

Thanks - good idea.  I have the drives in removable racks,
so I've been unplugging ad1 when I want to boot 4.9. 

>
>I think it's just symptomatic of the nforce2 chipset which
>is only partially supported due to nvidia's refusal or
>inability to release proper specs.

There was a post about sending email to ASUS and/or NVidia
to encourage them to share with the community.  I'm ready. 
Now if I can only find that link/message again... (;-)

tks
j

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SLIP connection to Cisco CONSOLE...

2003-12-02 Thread Steve Bertrand
> Hi all, I'm under FreeBSD-4.5, I've to made changes to a
> Cisco2509 router, I've checked the handbook and I can get
> any clues using the serial port to connect to the router,
> anyone using it, or can give me any clues ???

Sure...try this:

# su
# cu -l /dev/cuaa0

(Note that cuaa0 is com1)

Hope this helps,

Steve

> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


SLIP connection to Cisco CONSOLE...

2003-12-02 Thread Xpression
Hi all, I'm under FreeBSD-4.5, I've to made changes to a
Cisco2509 router, I've checked the handbook and I can get
any clues using the serial port to connect to the router,
anyone using it, or can give me any clues ???


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pppd

2003-12-02 Thread Lev Klimin
Good evening!

I have 4.9-release. I run pppd to dial ISP. Pppd have persist option
to retrieve lost connections. Today I wanted to check, how it works
with init. I added in /etc/ttys follow:
---begin chunk
# pppd for ISP on com1
#
ttyd0  "/usr/sbin/pppd /dev/ttyd0 38400"   dialup  on
#ttyd1  "/usr/libexec/getty std.9600"   dialup  off secure
#ttyd2  "/usr/libexec/getty std.9600"   dialup  off secure
#ttyd3  "/usr/libexec/getty std.9600"   dialup  off secure
---end of chunk

After # kill -1 1, I see
[22:48:09][~]:metal# ps -ax | grep pppd
 2363  ??  Ss 0:00,01 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0
 2365  ??  Ss 0:00,00 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0
 2367  ??  Ss 0:00,00 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0
 2369  ??  Ss 0:00,00 /usr/sbin/pppd /dev/ttyd0 38400 ttyd0

Why init run 4 pppd's processes? Can I fix it?

Thank you.

-- 
Lev Klimin   mailto:[EMAIL PROTECTED]
(8362) 42-15-49
19:37:26 2 декабря 2003 г.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


[Fwd: Re: Periodic Scripts - Configuration problem?]

2003-12-02 Thread Jonathan T. Sage
[EMAIL PROTECTED] wrote:

I recently change the hostname of my FreeBSD host to remove a hyphen
from the name (i.e. skrap-node to skrapnode)  Since then, all of the
periodic output scripts send their mail output to
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]  Only the
mail delivery failures make it to my inbox.  Mail works fine for all
users, this just affects the periodic scripts.
I have tried grep'ing for the incorrect hostname in the
/etc/periodic/blah... But haven't found anything. 

the easiest thing to check right now is the output of "hostname".  also,
i *think* that the periodic scripts send mail to root (i.e., they don't
add the domain), so perhaps sendmail is adding this?
try:
# sendmail -bv root
if that is the case, check /etc/mail/sendmail.cf for the hardcoded
hostname, or give sendmail a bit of -HUP (make restart in /etc/mail)
hope this helps

~jon

-
"Yesterday upon the stair I saw a man
who wasn't there, he wasn't there
again today, oh how i wish he'd go away"
Rev. Jonathan T. Sage
Lighting / Set Designer
Professional Web Design
[HTTP://thr.msu.edu]
[EMAIL PROTECTED]
[PGP: www.keyserver.net]


--
"Yesterday upon the stair I saw a man
who wasn't there, he wasn't there
again today, oh how i wish he'd go away"
Rev. Jonathan T. Sage
Lighting / Set Designer
Professional Web Design
[HTTP://thr.msu.edu]
[EMAIL PROTECTED]
[PGP: www.keyserver.net]


pgp0.pgp
Description: PGP signature


Re: Periodic Scripts - Configuration problem?

2003-12-02 Thread Lowell Gilbert
Steve Bertrand <[EMAIL PROTECTED]> writes:

> On Tue, 2003-12-02 at 11:18, [EMAIL PROTECTED] wrote:
> > I recently change the hostname of my FreeBSD host to remove a hyphen
> > from the name (i.e. skrap-node to skrapnode)  Since then, all of the
> > periodic output scripts send their mail output to
> > [EMAIL PROTECTED] instead of [EMAIL PROTECTED]  Only the
> > mail delivery failures make it to my inbox.  Mail works fine for all
> > users, this just affects the periodic scripts.
> > 
> 
> Do you have anything still funky in your /etc/mail/aliases or other
> files that may have influence on the flow of mail?

Or /etc/hosts, maybe?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports problems

2003-12-02 Thread Jonathan T. Sage
Lowell Gilbert wrote:

RYAN vAN GINNEKEN <[EMAIL PROTECTED]> writes:

 

when i run portsdb -Uu i get many errors like the one below is there
anyone who can help me
fileroller-2.4.2_1,1:"/usr/ports/x11-toolkits/pango" non-existent --  dependency list incomplete
   

That just means you didn't have /usr/ports/x11-toolkits/pango in your
ports tree.  Assuming this is intentional (you didn't update the whole
ports tree for some reason?) then there's no problem.  If you wanted
to update the whole tree, then you need to figure out what you did
wrong with your update operation (e.g., maybe you need to get rid of a
refuse file for the ports collection). 

Also note, that there errors are not completely unheard of.  I run a 
ports cvsup nightly, update the index database, and send the output of 
portversion to myself.  looking back in my logs, it looks as if i almost 
always have at least a few of these types of errors

~jon

--
"Yesterday upon the stair I saw a man 
who wasn't there, he wasn't there 
again today, oh how i wish he'd go away"

Rev. Jonathan T. Sage
Lighting / Set Designer
Professional Web Design
[HTTP://thr.msu.edu]
[EMAIL PROTECTED]
[PGP: www.keyserver.net]


pgp0.pgp
Description: PGP signature


Re: Periodic Scripts - Configuration problem?

2003-12-02 Thread Steve Bertrand
On Tue, 2003-12-02 at 11:18, [EMAIL PROTECTED] wrote:
> I recently change the hostname of my FreeBSD host to remove a hyphen
> from the name (i.e. skrap-node to skrapnode)  Since then, all of the
> periodic output scripts send their mail output to
> [EMAIL PROTECTED] instead of [EMAIL PROTECTED]  Only the
> mail delivery failures make it to my inbox.  Mail works fine for all
> users, this just affects the periodic scripts.
> 

Do you have anything still funky in your /etc/mail/aliases or other
files that may have influence on the flow of mail?

Steve

> I have tried grep'ing for the incorrect hostname in the
> /etc/periodic/blah... But haven't found anything. 
> 
> skrapnode# uname -a
> FreeBSD skrapnode.skrap.net 5.2-BETA FreeBSD 5.2-BETA #0: Sun Nov 23
> 00:01:14 CST 2003
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
> 
> skrapnode# more /etc/hosts
> 127.0.0.1   localhost.skrap.net localhost
> 192.168.1.200   skrapnode.skrap.net skrapnode 
> 192.168.1.200   skrapnode.skrap.net.
> skrapnode# 
> 
> skrapnode# more /etc/rc.conf 
> 
> # -- sysinstall generated deltas -- # Sat Nov 22 10:46:24 2003
> # Created: Sat Nov 22 10:46:24 2003
> # Enable network daemons for user convenience.
> # Please make all changes to this file, not to /etc/defaults/rc.conf.
> # This file now contains just the overrides from /etc/defaults/rc.conf.
> defaultrouter="192.168.1.1"
> hostname="skrapnode.skrap.net"
> ifconfig_fxp0="inet 192.168.1.200  netmask 255.255.255.0"
> kern_securelevel_enable="NO"
> linux_enable="YES"
> sendmail_enable="YES"
> sshd_enable="YES"
> usbd_enable="YES"
> skrapnode# 
> 
> Jack W. Parks IV
> Sr. Network Engineer
> ALLTEL Communications
> jack.w.parks-at-alltel.com
> Work: 501-905-5961
> Cell: 501-680-3341
>  
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Periodic Scripts - Configuration problem?

2003-12-02 Thread Jack.W.Parks
I recently change the hostname of my FreeBSD host to remove a hyphen
from the name (i.e. skrap-node to skrapnode)  Since then, all of the
periodic output scripts send their mail output to
[EMAIL PROTECTED] instead of [EMAIL PROTECTED]  Only the
mail delivery failures make it to my inbox.  Mail works fine for all
users, this just affects the periodic scripts.

I have tried grep'ing for the incorrect hostname in the
/etc/periodic/blah... But haven't found anything. 

skrapnode# uname -a
FreeBSD skrapnode.skrap.net 5.2-BETA FreeBSD 5.2-BETA #0: Sun Nov 23
00:01:14 CST 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

skrapnode# more /etc/hosts
127.0.0.1   localhost.skrap.net localhost
192.168.1.200   skrapnode.skrap.net skrapnode 
192.168.1.200   skrapnode.skrap.net.
skrapnode# 

skrapnode# more /etc/rc.conf 

# -- sysinstall generated deltas -- # Sat Nov 22 10:46:24 2003
# Created: Sat Nov 22 10:46:24 2003
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter="192.168.1.1"
hostname="skrapnode.skrap.net"
ifconfig_fxp0="inet 192.168.1.200  netmask 255.255.255.0"
kern_securelevel_enable="NO"
linux_enable="YES"
sendmail_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
skrapnode# 

Jack W. Parks IV
Sr. Network Engineer
ALLTEL Communications
jack.w.parks-at-alltel.com
Work: 501-905-5961
Cell: 501-680-3341
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


GIS server and client?

2003-12-02 Thread Bob Collins
I am unfortunately running ESRI's ArcIMS GIS server on M$ 2000 server
and would like to move it to FreeBSD. So, the question is; are there any
known GIS servers that run on FBSD as well as clients?

I am not afraid of hard work and troubles installing, but sure would
like to do this. I also know ESRI's ArcIMS runs on Red Hat, but I would
rather not do that if possible. I want to stick with FreeBSD.

Any and all suggestions, as related to the questions ;-) are
appreciated. Thanks

-- 
Bob
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: fdisk question (long)

2003-12-02 Thread Ion-Mihai Tetcu
On Tue, 2 Dec 2003 10:10:34 -0500 (EST)
Jerry McAllister <[EMAIL PROTECTED]> wrote:

> > 
> > Hope someone will have the pacince to read all this ...
> > 
> > I have a 120G HDD, in the BIOS is set as LBA. I've RTFM as much as I
> > could, but there still are some things I clearly don't understand. I
> > want to be sure that I can move this disk to another machine with
> > anouter BIOS and the system still boots up.
> > 
> > I've used sysinstall to make partitions and the result is bellow:
> 
> The basic and general answer to most of this is that nowdays with
> modern disks, the Cylinder/Head/Sector values are essentially fiction.


> They are based on values that can no longer be used with larger
> disks and the system just generates values to make things happy.
> The controllers are able to map the "absolute" sector number to
> the correct place on the disk - which, bny the way, might even be
> remapped due to sector errors and you don't even know it; it doesn't
> tell you about those until there are more bad sectors than it has
> spares for remapping.

I know (end even with SMART I don't like it - You usally find out about
it when nothing can be done).

> Just go by the total number of sectors.  Let fdisk do its thing.
> It does it right.  Do not try to set any Cylinder/Head/Sector
> values.   Ignore that part of things.  For all practical purposes,
> that part of things is obsolete.   Even though some parts of the
> system still fiddle with it, nothing really happens with it.  About
> the only thing it might want is for slices to begin and end on
> cylinder boundaries and since you really can't control those, just use
> the numbers it gives you as a divider to make sure your proposed slice
> 
> size comes out even and then go with it.


What I fail to see is the corespondence between sector and capacity in
something like MB or KB.
 
> So, choose the slice sizes you want by total number of blocks/sectors
> and then use the -t switch to see what happens just to make sure the 
> sizes work out the way you want and then trust fdisk to do what is
> right.
> 
> > it# fdisk ad0
> 
> Try doing" 
>  "fdisk -s ad0"
> 
> To read the disk information.  It gives you all the information that 
> is usually meaningful and is less confusing.

I did:

it# fdisk -I ad0
*** Working on device /dev/ad0 ***
it# fdisk -s ad0
/dev/ad0: 232578 cyl 16 hd 63 sec
PartStartSize Type Flags
   1:  63   234438561 0xa5 0x80

So: 234438561+63 = 234438624
If I add the sizes in sectors from the previous I get
sysinstall 234436545
fdisk-by-hand  234436482

The difference is exactly 63 and none match with this new one.
Why ?


> > 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> > start 63, size 497952 (243 Meg), flag 0
> > beg: cyl 0/ head 1/ sector 1;
> > end: cyl 30/ head 254/ sector 63
> > The data for partition 2 is:
> > sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
> > start 498015, size 41929650 (20473 Meg), flag 0
> > beg: cyl 31/ head 0/ sector 1;
> > end: cyl 1023/ head 254/ sector 63
> > The data for partition 3 is:
> > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> > start 42427665, size 192008880 (93754 Meg), flag 0
> > beg: cyl 1023/ head 255/ sector 63;
> > end: cyl 1023/ head 254/ sector 63

> > We haven't changed the partition table yet.  This is your last
> > chance. parameters extracted from in-core disklabel are:
> > cylinders=232578 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=232578 heads=16 sectors/track=63 (1008 blks/cyl)
> > 
> > Information from DOS bootblock is:
> > 1: sysid 0 (),(unused)
> > start 0, size 497952 (243 Meg), flag 80 (active)
> > beg: cyl 0/ head 0/ sector 1;
> > end: cyl 493/ head 15/ sector 63
> > 2: sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
> > start 498015, size 41929650 (20473 Meg), flag 0
> > beg: cyl 31/ head 0/ sector 1;
> > end: cyl 1023/ head 254/ sector 63
> > 3: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> > start 42427665, size 192008880 (93754 Meg), flag 0
> > beg: cyl 106/ head 15/ sector 1;
> > end: cyl 127/ head 14/ sector 63
> > 4: 
> > Should we write new partition table? [n] y


-- 
IOnut
Unregistered ;) FreeBSD user
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ejecting a Zip disk using eject(1)

2003-12-02 Thread Bob Collins
On Tue, Dec  2, 2003, DG wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Matthew
> > Emmerton
> > Sent: Tuesday, 2 December 2003 10:32 AM
> > To: DG; [EMAIL PROTECTED]
> > Subject: Re: ejecting a Zip disk using eject(1)
> >
> > > I tried that too.  The eject command accepts just the
> > device name without
> > a
> > > prefix, and prepends "/dev/" as necessary.
> > >
> > > Specifically from man eject(1):
> > >
> > > SYNOPSIS
> > >  eject [-fnv] device
> > >
> > It's probably the case that the actual Zip drive itself
> > doesn't have the
> > hardware to eject the disk automatically -- you have to push the eject
> > button on the front (like a floppy) -- at least with the Zip
> > drives I've
> > used.
> >
> > CD-ROMs, OTOH, can be ejected through software since the tray
> > is motorized.
> >
> > --
> > Matt Emmerton
> 
> Not so.  The Zip drive ejects quite happily under a different open source
> UNIX-like operating system, and a similar IDE Zip drive in a different PC
> ejects quite happily under Windows 98.
> 
> Dave
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Just a quick question. Did you umount the zip disk prior to ejecting it?
IIRC, I had to umount my old zip drive prior to eject working

just my 0.02

-- 
Bob
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports problems

2003-12-02 Thread Lowell Gilbert
RYAN vAN GINNEKEN <[EMAIL PROTECTED]> writes:

> when i run portsdb -Uu i get many errors like the one below is there
> anyone who can help me
> 
> fileroller-2.4.2_1,1:"/usr/ports/x11-toolkits/pango" non-existent --  dependency 
> list incomplete

That just means you didn't have /usr/ports/x11-toolkits/pango in your
ports tree.  Assuming this is intentional (you didn't update the whole
ports tree for some reason?) then there's no problem.  If you wanted
to update the whole tree, then you need to figure out what you did
wrong with your update operation (e.g., maybe you need to get rid of a
refuse file for the ports collection). 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: swapspace errors

2003-12-02 Thread Steve Bertrand
On Tue, 2003-12-02 at 10:48, M.D. DeWar wrote:
> I # out all my mrtg statements in /etc/crontab
> and now I have no issue with swapspace.
> So MRTG is causing my problem.
> Running systat I see that I have like 5 perl commands running which is my
> mrtg statements.
> 

What I do is dump all of my mrtg statements into a script or 2, and then
run them from cron. Hopefully this will alleviate your issues.

Steve


> Mark
> - Original Message - 
> From: "Kris Kennaway" <[EMAIL PROTECTED]>
> To: "M.D. DeWar" <[EMAIL PROTECTED]>
> Cc: "freebsd" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 02, 2003 10:34 AM
> Subject: Re: swapspace errors
> 
> 
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: swapspace errors

2003-12-02 Thread M.D. DeWar
I # out all my mrtg statements in /etc/crontab
and now I have no issue with swapspace.
So MRTG is causing my problem.
Running systat I see that I have like 5 perl commands running which is my
mrtg statements.

Mark
- Original Message - 
From: "Kris Kennaway" <[EMAIL PROTECTED]>
To: "M.D. DeWar" <[EMAIL PROTECTED]>
Cc: "freebsd" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 10:34 AM
Subject: Re: swapspace errors



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD DRIVER DEVELOPMENT

2003-12-02 Thread Simon Barner
> >>I have requirement to develop driver for the PCI based hardware 
> >>interface using FreeBSD Unix system. Would you please advise on the 
> >>following:-
> >>
> >>1)What tools are available to develop driver for x86 machine using 
> >>C?
> >>
> >>2)Suitable package including the operating system, tools and books 
> >>etc?

A good start are the books available at, esp. the Developer's Handbook
and the Architecture Handbook.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/

In both of them you will find the following reference in the
bibliography:

   Marshall Kirk McKusick, Keith Bostic, Michael J Karels, and
   John S Quarterman, 1996, 0-201-54979-4, Addison-Wesley Publishing
   Company, Inc., The Design and Implementation of the 4.4 BSD
   Operating System, 1-2.
   
Simon


signature.asc
Description: Digital signature


Re: very intresting question about groups

2003-12-02 Thread Dan Nelson
In the last episode (Dec 02), Konstantin Gritsenko said:
>   ./sys/sys/syslimits.h:
>   #define   NGROUPS_MAX16
>   /* max supplemental group id's */
> 
> how to explain this limitation?
> and what can be if i increase this value and make "make World"

I think NFS access may break, either failing completely with "bad RPC
call" errors, or truncating the group list to the first 16 entries when
accessing remote files.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: hosts.allow not always working... misses some IPs

2003-12-02 Thread Simon Barner

> I received an e-mail with the following header fragment:
> 
> ===V=== cut here ===V
> Received: from priv-edtnes11-hme0.telusplanet.net (outbound03.telus.net
> [199.185.220.222])
>  by tinkertoys.net (8.12.10/8.11.6) with ESMTP id hANMNpKS021237;
>  Sun, 23 Nov 2003 15:23:51 -0700 (MST)
> ===^=== cut here ===^
> 
> In my hosts.allow file (which usually rejects domains just fine) I have:
> 
> ===V=== cut here ===V
> smtp : 199.185.220.0/255.255.251.0 : deny
> ===^=== cut here ===^

Are you sure about the netmask? I think it should be something like
255.255.255.0 or
255.255.252.0.

Simon


signature.asc
Description: Digital signature


Re: swapspace errors

2003-12-02 Thread Kris Kennaway
On Tue, Dec 02, 2003 at 10:30:17AM -0500, M.D. DeWar wrote:
> I am getting these in /var/log/messages.
> Not sure why, or what is causing it (But did not see them till I installed
> MRTG/RRDTOOL)
> How can I fix this or what can be done ?

Something is using up all your swap.  Add more or find what is doing
that and make it stop.

Kris


pgp0.pgp
Description: PGP signature


swapspace errors

2003-12-02 Thread M.D. DeWar
I am getting these in /var/log/messages.
Not sure why, or what is causing it (But did not see them till I installed
MRTG/RRDTOOL)
How can I fix this or what can be done ?

Dec  2 10:01:00 spiderman /kernel: swap_pager_getswapspace: failed
Dec  2 10:01:12 spiderman /kernel: swap_pager_getswapspace: failed
Dec  2 10:03:25 spiderman last message repeated 28 times
Dec  2 10:13:33 spiderman last message repeated 362 times
Dec  2 10:23:39 spiderman last message repeated 2103 times
Dec  2 10:26:27 spiderman last message repeated 236 times
Dec  2 10:26:27 spiderman /kernel: pid 76403 (perl), uid 0, was killed: out
of s
wap space
Dec  2 10:26:28 spiderman /kernel: swap_pager_getswapspace: failed
Dec  2 10:26:28 spiderman last message repeated 3 times
Dec  2 10:27:18 spiderman /kernel: swap_pager_getswapspace: failed
spiderman# swapinfo
Device  1K-blocks UsedAvail Capacity  Type
/dev/ad0s1b524160   414752   10940879%Interleaved

Thanks
Mark


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: very intresting question about groups

2003-12-02 Thread Simon Barner
Konstantin Gritsenko schrieb am Tue, Dec 02, 2003 at 03:48:42PM +0200:
>   ./sys/sys/syslimits.h:
>   #define   NGROUPS_MAX16
>   /* max supplemental group id's */
> 
> how to explain this limitation?

I can see two reasons for this implementation:

1) It's easier to implement. Of course, one could use a data structure
that grows dynamically, but that would be an additional source of error,
and it might be less efficient.

2) For most purposes, 16 gids per uid should be more than enough.

> and what can be if i increase this value and make "make World"

I'd say yes. (If none of the code uses a hardcoded 16 but the
NGROUPS_MAX define, but I am sure that this is the case).

Simon


signature.asc
Description: Digital signature


Re: sendmail and SMTP client-side authentication

2003-12-02 Thread Simon Barner
>   AuthInfo:mail.covad.net "U:userid" "P:password"
> 
> (of course "userid" and "password" are not the real values).
> 
> When my sendmail connects to the email relay, the email relay says
> (in SMTP speak):
> 
>   250-covad.net
>   250-AUTH LOGIN PLAIN
>   250-AUTH=LOGIN PLAIN

Perhaps the remote site does not allow the PLAIN authentication method.
When performed my research for the sendmail tutorial at

http://home.leo.org/~barner/freebsd/articles/mailsetup/article.html,

I found that the following works for me:

AuthInfo:external.mail.server "U:remoteuser" "I:remoteuser" "P:secret"
   "R:external.mail.server" "M:DIGEST-MD5 CRAM-MD5 LOGIN PLAIN" 
   
> but there is no obvious exchange of authentication information
> and my ISP's email relay sometimes rejects my attempts to submit
> email for relay.  This is a typical SMTP rejection message:
> 
> 553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)
> 
> Sometimes my email gets through.  I don't know why.

That's very strange indeed. Do you get more valuable information in the
maillog when you increase sendmail verbosity level:

define(`confLOG_LEVEL', `15')

> When I send email via Netscape, Netscape does authenticate itself
> to the email relay.
> 
> Note: I did do a "make sendmail.cf" in /etc/mail after changing
> the .mc file and I did restart the sendmail daemons before sending
> the rejected email.  The authinfo file belongs to root:wheel and
> has mode 640.  I also tried it with mode 644 just in case.  I also
> tried creating the file /etc/mail/access with the same contents and
> doing "makemap hash /etc/mail/access".  The sendmail.mc file
> contains the standard line:
> 
>   FEATURE(access_db, `hash -o -T /etc/mail/access')

I figured out that you apparently need to stop and restart sendmail
in order to apply your SASL changes. IIRC this is because SASL is
provided by an external library that has the named behavior.

So, "make install stop start" might work for you.

> Can someone who knows how this is supposed to work help me out?
> 
> Is there an SMTP authentication protocol that protects the
> authentication information from network snoopers?

Yes, everything apart from M$'s PLAIN method will perform some sort of
encryption. If your mail relay supports SSL/TLS, you should definitely
rebuild your sendmail installation with the support for it, since some
of the authentication protocols don't use real encryption by only
scramble the login handshake a bit. If sendmail is aware of TLS, it will
automatically make use of it if it's available on the remote end.

Simon


signature.asc
Description: Digital signature


Re: fdisk question (long)

2003-12-02 Thread Ion-Mihai Tetcu
On Wed, 3 Dec 2003 00:29:14 +1030
Malcolm Kay <[EMAIL PROTECTED]> wrote:

> On Tue, 2 Dec 2003 21:20, Ion-Mihai Tetcu wrote:
> > Hope someone will have the pacince to read all this ...
> >
> > I have a 120G HDD, in the BIOS is set as LBA. I've RTFM as much as I
> > could, but there still are some things I clearly don't understand. I
> > want to be sure that I can move this disk to another machine with
> > anouter BIOS and the system still boots up.
> >
> > I've used sysinstall to make partitions and the result is bellow:
> >
> >
> > it# fdisk ad0
> > *** Working on device /dev/ad0 ***
> > parameters extracted from in-core disklabel are:
> > cylinders=232578 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=232578 heads=16 sectors/track=63 (1008 blks/cyl)
> >
> 
> These figures are just figures that will probably work -- and are
> unlikely to have any connection to the physical disk structure.

OK

> > 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> > start 63, size 497952 (243 Meg), flag 0
> > beg: cyl 0/ head 1/ sector 1;
> > end: cyl 30/ head 254/ sector 63
> 
> Having sthe geometry set to 23578/16/63 (that is sixteen heads)
> it is rather strange to address head number 254. Maximum head 
> number should then be 15.

So you are saying that something is wrong here ?
 
> However it is also quite common to define large disk geometries
> as nn/255/63 which allows a maximum head number of 254.


 
> > The data for partition 2 is:
> > sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
> > start 498015, size 41929650 (20473 Meg), flag 0
> > beg: cyl 31/ head 0/ sector 1;
> > end: cyl 1023/ head 254/ sector 63
> 
> The CHS descriptor has overflowed -- nolonger meaningful.
> LBA works with the 498015/41929650 figures.

OK
 
> > The data for partition 3 is:
> > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> > start 42427665, size 192008880 (93754 Meg), flag 0
> > beg: cyl 1023/ head 255/ sector 63;
> > end: cyl 1023/ head 254/ sector 63
> > The data for partition 4 is:
> > 
> >
> > Q1: How can the partition 3 end up before beginning ?
> >
> 
> The CHS entries are limited to 1023/255/63 which does not come
> anywhere near the disk capacity -- so once C reaches 1023 the CHS
> recording capacity has been exceeded. Or to put it another way the CHS
> entries are somewhat meaningless on large disks.

I know the CHS limits.

> But the absolute start sector number and slice 
> size is also recorded in the slice/partition table and this is used in
> LBA mode.

So no mather what the BIOS reports, the start sector and the size of a
partition in sectors is the same, right ?
 
> > Q2: What is the Warning: BIOS sector numbering starts with sector 1
> > trying to say ? The cylinders=232578 heads=16 sectors/track=63 shows
> > the same as in teh BIOS screen.
> >
> 
> Cylinder and head numbering starts at 0; sectors start at 1. A quirk
> of history that you need to know when using CHS.

I don't think I understand.
 
> > Q3: The in-core parameters and those for BIOS calculation are the
> > same; this normal (from my experince) / when they won't mach ?
> >
> > So i decided to make it by hand (note that sysid 0 for the first
> > partition is a typo - it should be 165 and I'll want the / slice on
> > it, and I want to reserve the second partition for a winXP, and the
> > 3rd will be for the other slices).
> >
> ...
> > Q4: I've supplied the start and size parameters by reading those
> > provided by the sysinstall partitioning. How can I calculate them ?
> >
> 
> Work with absolute sector numbers but chosen so that a slice always 
> starts at sector 1 in the CHS scheme.

Lets say I get new HDD. Could you tell me how do i do this ? How do I
find out the number of sectors and translate sectors in capacity (MB) ?
Or point me somewhere ?
 
> > Q5: Why the new parameters are different from those of sysinstall ?
> >
> 
> Possibly a change of assumed CHS geometry

I don't understand this. As I didn't changed anything.
 
> > Q6: Is this schema OK and will I be able to use this disk in an
> > other computer and access all the partitions and slices ?
> 
> Probably but I would feel happier with sysinstall generated values.

The reason I've posted this is that I've lost about 50G of date after an
MB crash as on the new MB I've got fsck -> CAN NOT FIND SUPERBLOCK for
other slices that / and I don't end-up to repeat that again (and it was
done with sysinstall).

The man page of fdisk says:

 start and sizefields provide the start address and size of
a slice in sectors.

 flag 80   specifies that this is the active slice.

 cyl, sector and head  field

Re: fdisk question (long)

2003-12-02 Thread Jerry McAllister
> 
> Hope someone will have the pacince to read all this ...
> 
> I have a 120G HDD, in the BIOS is set as LBA. I've RTFM as much as I
> could, but there still are some things I clearly don't understand. I
> want to be sure that I can move this disk to another machine with
> anouter BIOS and the system still boots up.
> 
> I've used sysinstall to make partitions and the result is bellow:

The basic and general answer to most of this is that nowdays with
modern disks, the Cylinder/Head/Sector values are essentially fiction.
They are based on values that can no longer be used with larger
disks and the system just generates values to make things happy.
The controllers are able to map the "absolute" sector number to
the correct place on the disk - which, bny the way, might even be
remapped due to sector errors and you don't even know it; it doesn't
tell you about those until there are more bad sectors than it has
spares for remapping.

Just go by the total number of sectors.  Let fdisk do its thing.
It does it right.  Do not try to set any Cylinder/Head/Sector
values.   Ignore that part of things.  For all practical purposes,
that part of things is obsolete.   Even though some parts of the
system still fiddle with it, nothing really happens with it.  About
the only thing it might want is for slices to begin and end on cylinder
boundaries and since you really can't control those, just use the
numbers it gives you as a divider to make sure your proposed slice 
size comes out even and then go with it.

So, choose the slice sizes you want by total number of blocks/sectors
and then use the -t switch to see what happens just to make sure the 
sizes work out the way you want and then trust fdisk to do what is right.

> it# fdisk ad0

Try doing" 
 "fdisk -s ad0"

To read the disk information.  It gives you all the information that 
is usually meaningful and is less confusing.

jerry


> *** Working on device /dev/ad0 ***
> parameters extracted from in-core disklabel are:
> cylinders=232578 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=232578 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 63, size 497952 (243 Meg), flag 0
> beg: cyl 0/ head 1/ sector 1;
> end: cyl 30/ head 254/ sector 63
> The data for partition 2 is:
> sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
> start 498015, size 41929650 (20473 Meg), flag 0
> beg: cyl 31/ head 0/ sector 1;
> end: cyl 1023/ head 254/ sector 63
> The data for partition 3 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 42427665, size 192008880 (93754 Meg), flag 0
> beg: cyl 1023/ head 255/ sector 63;
> end: cyl 1023/ head 254/ sector 63
> The data for partition 4 is:
> 
> 
> Q1: How can the partition 3 end up before beginning ? 
> 
> Q2: What is the Warning: BIOS sector numbering starts with sector 1
> trying to say ? The cylinders=232578 heads=16 sectors/track=63 shows the
> same as in teh BIOS screen.
> 
> Q3: The in-core parameters and those for BIOS calculation are the same;
> this normal (from my experince) / when they won't mach ?
> 
> So i decided to make it by hand (note that sysid 0 for the first
> partition is a typo - it should be 165 and I'll want the / slice on it,
> and I want to reserve the second partition for a winXP, and the 3rd will
> be for the other slices).
> 
>  I did:
> 
> it# fdisk -Biv ad0
> *** Working on device /dev/ad0 ***
> parameters extracted from in-core disklabel are:
> cylinders=232578 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=232578 heads=16 sectors/track=63 (1008 blks/cyl)
> 
> Do you want to change our idea of what BIOS thinks ? [n]
> 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 63, size 497952 (243 Meg), flag 0
> beg: cyl 0/ head 1/ sector 1;
> end: cyl 30/ head 254/ sector 63
> Do you want to change it? [n] y
> Supply a decimal value for "sysid (165=FreeBSD)" [0]
> Supply a decimal value for "start" [0]
> Supply a decimal value for "size" [0] 497952
> Explicitly specify beg/end address ? [n]
> sysid 0 (),(unused)
> start 0, size 497952 (243 Meg), flag 0
> beg: cyl 0/ head 0/ sector 1;
> end: cyl 493/ head 15/ sector 63
> Are we happy with this entry? [n] y
> The data for partition 2 is:
> sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
> start 498015, size 41929650 (20473 Meg), flag 0
> beg: cyl 3

Re: fdisk question (long)

2003-12-02 Thread Malcolm Kay
On Tue, 2 Dec 2003 21:20, Ion-Mihai Tetcu wrote:
> Hope someone will have the pacince to read all this ...
>
> I have a 120G HDD, in the BIOS is set as LBA. I've RTFM as much as I
> could, but there still are some things I clearly don't understand. I
> want to be sure that I can move this disk to another machine with
> anouter BIOS and the system still boots up.
>
> I've used sysinstall to make partitions and the result is bellow:
>
>
> it# fdisk ad0
> *** Working on device /dev/ad0 ***
> parameters extracted from in-core disklabel are:
> cylinders=232578 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=232578 heads=16 sectors/track=63 (1008 blks/cyl)
>

These figures are just figures that will probably work -- and are
unlikely to have any connection to the physical disk structure.

> 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 63, size 497952 (243 Meg), flag 0
> beg: cyl 0/ head 1/ sector 1;
> end: cyl 30/ head 254/ sector 63

Having sthe geometry set to 23578/16/63 (that is sixteen heads)
it is rather strange to address head number 254. Maximum head 
number should then be 15.

However it is also quite common to define large disk geometries
as nn/255/63 which allows a maximum head number of 254.

> The data for partition 2 is:
> sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
> start 498015, size 41929650 (20473 Meg), flag 0
> beg: cyl 31/ head 0/ sector 1;
> end: cyl 1023/ head 254/ sector 63

The CHS descriptor has overflowed -- nolonger meaningful.
LBA works with the 498015/41929650 figures.

> The data for partition 3 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 42427665, size 192008880 (93754 Meg), flag 0
> beg: cyl 1023/ head 255/ sector 63;
> end: cyl 1023/ head 254/ sector 63
> The data for partition 4 is:
> 
>
> Q1: How can the partition 3 end up before beginning ?
>

The CHS entries are limited to 1023/255/63 which does not come anywhere
near the disk capacity -- so once C reaches 1023 the CHS recording capacity 
has been exceeded. Or to put it another way the CHS entries are somewhat
meaningless on large disks. But the absolute start sector number and slice 
size is also recorded in the slice/partition table and this is used in LBA 
mode.

> Q2: What is the Warning: BIOS sector numbering starts with sector 1
> trying to say ? The cylinders=232578 heads=16 sectors/track=63 shows the
> same as in teh BIOS screen.
>

Cylinder and head numbering starts at 0; sectors start at 1. A quirk of
history that you need to know when using CHS.

> Q3: The in-core parameters and those for BIOS calculation are the same;
> this normal (from my experince) / when they won't mach ?
>
> So i decided to make it by hand (note that sysid 0 for the first
> partition is a typo - it should be 165 and I'll want the / slice on it,
> and I want to reserve the second partition for a winXP, and the 3rd will
> be for the other slices).
>
...
> Q4: I've supplied the start and size parameters by reading those
> provided by the sysinstall partitioning. How can I calculate them ?
>

Work with absolute sector numbers but chosen so that a slice always 
starts at sector 1 in the CHS scheme.

> Q5: Why the new parameters are different from those of sysinstall ?
>

Possibly a change of assumed CHS geometry

> Q6: Is this schema OK and will I be able to use this disk in an other
> computer and access all the partitions and slices ?

Probably but I would feel happier with sysinstall generated values.

Malcolm
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


very intresting question about groups

2003-12-02 Thread Konstantin Gritsenko
./sys/sys/syslimits.h:
#define   NGROUPS_MAX16
/* max supplemental group id's */

how to explain this limitation?
and what can be if i increase this value and make "make World"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re:FreeBSD DRIVER DEVELOPMENT

2003-12-02 Thread cargnini
Please if any answer was / are posted please sent to me too i'm very interested on 
this topic, because i'm working on put Freebsd to run over Leon to be used in my 
master degree dissertation.

>>Dear Sir/Madam,
>>
>>I have requirement to develop driver for the PCI based hardware 
>>interface using FreeBSD Unix system. Would you please advise on the 
>>following:-
>>
>>1)What tools are available to develop driver for x86 machine using 
>>C?
>>
>>2)Suitable package including the operating system, tools and books 
>>etc?
>>
>>3)Can the driver developed for other unix operating system e.g. 
>>VxWorks can be imported into the FreeBSD and compiled without major code 
>>change?
>>
>>Please advise a.s.a.p.
>>
>>Kind Regards
>>
>>Gurdial Chandra
>>Sycos AES
>>___
>>[EMAIL PROTECTED] mailing list
>>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>>
>>.








___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


hosts.allow not always working... misses some IPs

2003-12-02 Thread Kerry B. Rogers
Dear Whomever,

I've already sent this last week but no one is responding. Once more...

I received an e-mail with the following header fragment:

===V=== cut here ===V
Received: from priv-edtnes11-hme0.telusplanet.net (outbound03.telus.net
[199.185.220.222])
 by tinkertoys.net (8.12.10/8.11.6) with ESMTP id hANMNpKS021237;
 Sun, 23 Nov 2003 15:23:51 -0700 (MST)
===^=== cut here ===^

In my hosts.allow file (which usually rejects domains just fine) I have:

===V=== cut here ===V
smtp : 199.185.220.0/255.255.251.0 : deny
===^=== cut here ===^

The above listed e-mail should have been rejected but it wasn't. Is this a
bug? Is a 975K host.allow file creating this problem? Please help...

Thanks,

Kerry B. Rogers
[EMAIL PROTECTED]



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD DRIVER DEVELOPMENT

2003-12-02 Thread Admin
Dear Sir/Madam,

I have requirement to develop driver for the PCI based hardware interface using 
FreeBSD Unix system. Would you please advise on the following:-

1)What tools are available to develop driver for x86 machine using C?

2)Suitable package including the operating system, tools and books etc?

3)Can the driver developed for other unix operating system e.g. VxWorks can be 
imported into the FreeBSD and compiled without major code change?

Please advise a.s.a.p.

Kind Regards

Gurdial Chandra
Sycos AES
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


[no subject]

2003-12-02 Thread hicks.mary
yes i hop you can help me are now some one huw can ?
some how i lost my dhcp -ip does not read how do i find & fix-howard --e-mail-->[EMAIL 
PROTECTED] this one
__
howard hertter
ICQ#: 349209925
  Current ICQ status: 
+  More ways to contact me 
__


online?icq=349209925&img=21
Description: Binary data
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: network security sysctl mib's

2003-12-02 Thread Rob
Using

apropos sysctl

we get a list of several manpages, including blackhole(4), sysctl(3),
sysctl(8) and sysctl.conf(5).

These refer to several other sources, including ip(4), tcp(4), udp(4) and
rc.conf(5) - they also mention , ,
,  and  if you want to
study the variables first-hand.

- Original Message -
From: "fbsd_user" <[EMAIL PROTECTED]>
Subject: network security sysctl mib's


> The sysctl.conf file contains MIB's to change the default setting of
> internal options of the kernel at boot up time.
> I have found these MIB's when I display all the sysctl's.
>
> These deal with how packets entering the FBSD system are handled by
> default.
> There are no man info on any MIB's.
>
> I an looking for an description of what these do and
> why I would want to turn them on.
>
> There must be some network security reason or problem
> that these address or they would not have been created
> in the first place.
>
> Are these MIB's only intended to be used on FBSD systems
> that do not have firewalls?
>
> When do these MIB's get control
> in the kernel, as they relate to IPFW or IPFILTER
> firewall seeing the packets?
> [IE: do they all process against the packet before the packet
> is handed off to the firewall or after the firewall has done
> it's thing and hands the packet back to the kernel?].
>
> Since these are network security MIB's why are they not documented
> someplace?
> They can have an large impact on the security of one's FBSD system,
> and should be made known to the general administrator of the FBSD
> system and the firewall administrator.
>
> I know I need an FBSD developer who makes code changes to the kernel
> to review the internal FBSD kernel code to answer these questions. I
> hope someone will help me in this.
>
> net.inet.icmp.drop_redirect=1
> net.inet.icmp.log_redirect=0
> net.inet.ip.redirect=0
>
> net.inet.ip.sourceroute=0
> net.inet.ip.accept_sourceroute=0
>
> net.inet.icmp.bmcastecho=0
>
> net.inet.tcp.blackhole=2
> net.inet.udp.blackhole=1
>
> net.inet.tcp.log_in_vain=1
> net.inet.udp.log_in_vain=1
>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Missing machdep.hlt_logical_cpus on hyperthreading..

2003-12-02 Thread Stefan Cars
Hi, i'm reposting this since I didn't get any answer at all...

I'm having a problem, sysctl can't find machdep.hlt_logical_cpus. My machine
is a dual xeon with hyperthreading enabled, running 4.9. I also would like
to know what that "Warning: Pentium 4 CPU: PSE disabled" means.

See below:

sysctl: unknown oid 'machdep.hlt_logical_cpus'

FreeBSD guldivar.globalwire.se 4.9-RELEASE FreeBSD 4.9-RELEASE #1: Mon Nov
24 14:59:32 CET 2003
[EMAIL PROTECTED]:/usr/src/sys/compile/FLASHZGI  i386

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.9-RELEASE #1: Mon Nov 24 14:59:32 CET 2003
[EMAIL PROTECTED]:/usr/src/sys/compile/FLASHZGI
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) XEON(TM) CPU 1.80GHz (1799.80-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
 
Features=0x3febfbff
  Hyperthreading: 2 logical CPUs
real memory  = 1073676288 (1048512K bytes)
config> di sn0
No such device: sn0
Invalid command or syntax.  Type `?' for help.
config> di lnc0
No such device: lnc0
Invalid command or syntax.  Type `?' for help.
config> di ie0
No such device: ie0
Invalid command or syntax.  Type `?' for help.
config> di fe0
No such device: fe0
Invalid command or syntax.  Type `?' for help.
config> di cs0
No such device: cs0
Invalid command or syntax.  Type `?' for help.
config> di bt0
No such device: bt0
Invalid command or syntax.  Type `?' for help.
config> di adv0
No such device: adv0
Invalid command or syntax.  Type `?' for help.
config> q
avail memory = 1041534976 (1017124K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
Programming 24 pins in IOAPIC #1
Programming 24 pins in IOAPIC #2
FreeBSD/SMP: Multiprocessor motherboard: 4 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00050014, at 0xfee0
 cpu1 (AP):  apic id:  1, version: 0x00050014, at 0xfee0
 cpu2 (AP):  apic id:  6, version: 0x00050014, at 0xfee0
 cpu3 (AP):  apic id:  7, version: 0x00050014, at 0xfee0
 io0 (APIC): apic id:  8, version: 0x00178020, at 0xfec0
 io1 (APIC): apic id:  9, version: 0x00178020, at 0xfec8
 io2 (APIC): apic id: 10, version: 0x00178020, at 0xfec80400
Preloaded elf kernel "kernel" at 0xc0414000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc041409c.
Warning: Pentium 4 CPU: PSE disabled
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 14 entries at 0xc00f3f20
npx0:  on motherboard
npx0: INT 16 interface
pcib0:  on motherboard
IOAPIC #0 intpin 16 -> irq 2
IOAPIC #0 intpin 18 -> irq 9
IOAPIC #0 intpin 17 -> irq 10
pci0:  on pcib0
pcib1:  at device 2.0 on pci0
pci2:  on pcib1
pci2:  (vendor=0x8086, dev=0x1461) at 28.0
pcib2:  at device 29.0 on pci2
IOAPIC #2 intpin 0 -> irq 11
pci4:  on pcib2
pci4:  (vendor=0x8086, dev=0x1008) at 1.0 irq 11
pcib3:  at device 3.0 on pci4
pci5:  on pcib3
asr0:  mem 0xf800-0xfbff irq 11 at device
3.1
 on pci4
asr0: major=154
asr0: ADAPTEC 3410S FW Rev. 370F, 4 channel, 256 CCBs, Protocol I2O
pci2:  (vendor=0x8086, dev=0x1461) at 30.0
pcib4:  at device 31.0 on pci2
pci3:  on pcib4
pci0:  at 29.0 irq 2
pcib5:  at device 30.0 on pci0
pci1:  on pcib5
pci1:  at 2.0 irq 9
fxp0:  port 0xc880-0xc8bf mem
0xfe6a-0xfe6bfff
f,0xfe6fe000-0xfe6fefff irq 10 at device 3.0 on pci1
fxp0: Ethernet address 00:e0:81:20:f7:7c
inphy0:  on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port
0xffa0-0xffaf,0-0x3,0-0x7,0-0x3,0-0
x7 irq 9 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0:  (vendor=0x8086, dev=0x2483) at 31.3 irq 10
orm0:  at iomem
0xc-0xc7fff,0xc8000-0xc97ff,0xc9800-0xcf7ff,0xc
f800-0xd0fff on isa0
pmtimer0 on isa0
fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
atkbdc0:  at port 0x60,0x64 on isa0
atkbd0:  flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: parallel port not found.
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
IP packet filtering initialized, divert disabled, rule-based forwarding
enabled,
 default to accept, unlimited logging
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
acd0: CDROM  at ata0-master PIO4
Mounting root from ufs:/dev/da0s1a
da0 at asr0 bus 0 target 1 lun 0
da0:  Fixed Direct Access SCSI-2 device
da0: Tagged Queueing Enabled
da0: 70004MB (143368192 512 byte sectors: 255H 63S/T 8924C)

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send an

Re: ide-scsi emulation required?

2003-12-02 Thread Gary Jennejohn

Trey Sizemore writes:
> Coming from a linux background, I understand that up to the 2.4.x series
> of kernels that scsi emulation is required of ide drives in order to
> burn CDs.  This will no longer be a requirement with the new 2.6.x
> series of kernels.
> 
> What is the current requirement in FreeBSD?  Is this scsi emulation
> required and, if so, will this change in the near future?
> 

Burning CDs with ATAPI drives is supported without the need for any type
of emulation by burncd, which is part of the base system.

Under FreeBSD it's SCSI burners which aren't supported out-of-the-box.
The user has to install a port, e.g. cdrecord.

---
Gary Jennejohn / garyj[at]jennejohn.org gj[at]freebsd.org gj[at]denx.de

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


fdisk question (long)

2003-12-02 Thread Ion-Mihai Tetcu
Hope someone will have the pacince to read all this ...

I have a 120G HDD, in the BIOS is set as LBA. I've RTFM as much as I
could, but there still are some things I clearly don't understand. I
want to be sure that I can move this disk to another machine with
anouter BIOS and the system still boots up.

I've used sysinstall to make partitions and the result is bellow:


it# fdisk ad0
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=232578 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=232578 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 497952 (243 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 30/ head 254/ sector 63
The data for partition 2 is:
sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
start 498015, size 41929650 (20473 Meg), flag 0
beg: cyl 31/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 42427665, size 192008880 (93754 Meg), flag 0
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:


Q1: How can the partition 3 end up before beginning ? 

Q2: What is the Warning: BIOS sector numbering starts with sector 1
trying to say ? The cylinders=232578 heads=16 sectors/track=63 shows the
same as in teh BIOS screen.

Q3: The in-core parameters and those for BIOS calculation are the same;
this normal (from my experince) / when they won't mach ?

So i decided to make it by hand (note that sysid 0 for the first
partition is a typo - it should be 165 and I'll want the / slice on it,
and I want to reserve the second partition for a winXP, and the 3rd will
be for the other slices).

 I did:

it# fdisk -Biv ad0
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=232578 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=232578 heads=16 sectors/track=63 (1008 blks/cyl)

Do you want to change our idea of what BIOS thinks ? [n]
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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 497952 (243 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 30/ head 254/ sector 63
Do you want to change it? [n] y
Supply a decimal value for "sysid (165=FreeBSD)" [0]
Supply a decimal value for "start" [0]
Supply a decimal value for "size" [0] 497952
Explicitly specify beg/end address ? [n]
sysid 0 (),(unused)
start 0, size 497952 (243 Meg), flag 0
beg: cyl 0/ head 0/ sector 1;
end: cyl 493/ head 15/ sector 63
Are we happy with this entry? [n] y
The data for partition 2 is:
sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
start 498015, size 41929650 (20473 Meg), flag 0
beg: cyl 31/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63
Do you want to change it? [n]
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 42427665, size 192008880 (93754 Meg), flag 0
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 254/ sector 63
Do you want to change it? [n] y
Supply a decimal value for "sysid (165=FreeBSD)" [0] 165
Supply a decimal value for "start" [0] 42427665
Supply a decimal value for "size" [0] 192008880
Explicitly specify beg/end address ? [n]
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 42427665, size 192008880 (93754 Meg), flag 0
beg: cyl 106/ head 15/ sector 1;
end: cyl 127/ head 14/ sector 63
Are we happy with this entry? [n] y
The data for partition 4 is:

Do you want to change it? [n]
Do you want to change the active partition? [n] y
Supply a decimal value for "active partition" [1] 1
Are you happy with this choice [n] y
Do you want to change the boot code? [n] y

We haven't changed the partition table yet.  This is your last chance.
parameters extracted from in-core disklabel are:
cylinders=232578 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=232578 heads=16 sectors/track=63 (1008 blks/cyl)

Information from DOS bootblock is:
1: sysid 0 (),(unused)
start 0, size 497952 (243 Meg), flag 80 (active)
beg: cyl 0/ head 0/ sector 1;
end: cyl 493/ head 15/ sector 63
2: sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
start 498015, size 41929650 (20473 Meg), flag 0
beg: cyl 31/ head 0/ sector 1;
end: c

Re: (Semi)hot swap IDE

2003-12-02 Thread anubis
On Sun, 23 Nov 2003 06:31 am, Toomas Aas wrote:
> Hello!
>
> I'm looking for a cheap solution to back up a FreeBSD 4.8 machine.
> Cheap meaning that tape drives are out of question. Even external
> FireWire drives are deemed a bit too expensive by the folks for whom
> I'm doing this research.
>
> This leaves one option I can think of - standard IDE drive in one of
> those removable HDD trays. We'd probably use two drives, one being
> active in the machine and the other being kept somewhere out of the
> house for safety. The machine has an integrated Promise TX2 controller
> and two 80 GB drives are currently configured as RAID1 attached to this
> controller. There are two additional (non-RAID) IDE channels on the
> motherboard, one of them has CD-ROM attached to it and the other is
> free - I could attach the backup HD to that.
>
> I've done some web searching and I'm getting controversial results.
> Most of the info I find seems to indicate that IDE devices cannot be
> hot-swapped. At the same time some vendors are trying to sell stuff on
> their web pages which they advertise as "hot swap IDE drive bays". I
> remain skeptical.
>
> If the majority is right and IDE drives cannot be hot swapped, this
> would indicate that we would need to power down the machine every time
> we want to change the backup HDs. This would be less than perfect, but
> since we are cheap we could live with it.
>
> OTOH I read 'man atacontrol' and saw that there are commands like
> 'atacontrol detach' and 'atacontrol attach' which seem to be meant for
> detaching/attaching IDE devices while the machine is running. Does this
> mean that I could actually run 'atacontrol detach ', swap the
> drive and then run 'atacontrol attach ' and be able to use the
> second HD after that? Is anyone doing something like that?
> --
> Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
> * I don't know whether to kill myself or go bowling
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

We are currently using those removable drive trays for such a purpose.  We 
have the standard vipower racks that have 3 fans and the sliding on/off 
switch.  The drives are hosted  off a standard promise 2 channel ata card, 
non-raid.   We have a script that dismounts the drive then atacontol 
disconnects it.  We then turn off the power via the switch on the rack and 
yank the drive out.  No need to power down.  Putting it in is just the 
opposite.  Put in, turn on and run a script that atacontrol turns it on and 
then mounts it.  We have been using it for about a month without a problem.  
We are testing it in preparation to use it as a replacement for our nightly 
backup to tape drives.  We will still archive to tape or optical for long 
term data storage.

It looks like as with many other things in the freebsd world it just works.
The only potential problem with the whole setup is that we will be rotating 
the disks every day off site and we are not sure about how the drive trays 
and the disks will handle the constant moving around and plugging in and out.
If you are interested send me an e-mail in say march and I can tell you how 
the first couple of months have been.  
Hopefully it will work, or at least we can make it work with a few mods.  We 
stand to save about $2AUD as opposed to a tape drive and media.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: port forward

2003-12-02 Thread Sunil Sunder Raj
Hi,

In rc.conf you need
natd_flags="-redirect_port tcp 192.168.0.100:5900 5900"
Regards
SSR

From: "Peter Kok" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: port forward
Date: Mon, 01 Dec 2003 22:46:43 -0500
--
Hi all
Does freebsd provide port forward when using the nat?

If yes, how can I forward?

I would like to forward the window port (192.168.0.100:5900) to map to
the freebsd (public address:5900)
Thank you very much
Peter
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
_
Download cool KHNH ringtones. Add style to your mobile. 
http://server1.msn.co.in/sp03/gprs/howcani_ring.asp Simply click here.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Vinum & U320 SCSI, slower than UDMA100 IDE ?

2003-12-02 Thread Sander Smeenk
Quoting Greg 'groggy' Lehey ([EMAIL PROTECTED]):
> >Then I did a read test, like this:
> >>date;find . -type f|while read FILE;do cat "$FILE" > 
> >>/dev/null;done;date
> >I know it's not the most sophisticated test, but at least it shows that
> >on the IDE disk, this 'test' took 24 seconds to complete. On the RAID10
> >array it took a whopping 73 seconds to complete.
> You shouldn't expect any performance improvement with this kind of
> test, since you still need to access the data, and there's no way to
> do it in parallel.

I knew it wasn't the best way to test, but I did expect it to be at
least as fast as the same test on the same data on a IDE disk. And
luckily, you agree ;)

> >>  plex org striped 3841k
> You should choose a stripe size which is a multiple of the block size
> (presumably 16 kB).  Not doing so will have a minor performance
> impact, but nothing like what you describe here.

I might have misunderstood, but on the vinumvm.org website there is quite
a comprehensive discussion on stripesizes and they conclude that larger
stripesizes help increase throughput. They also discuss the size not
being a power of 2, because that might cause stripes to end up on the
same disk, which decreases performance...

> >>ahd1: PCI error Interrupt
> Dump Card State Begins <
> >>ahd1: Dumping Card State at program address 0x94 Mode 0x22
> This is possibly related.  Does it happen every time?

It did, until I compiled a new 4.9 kernel from the 4.9-RELEASE src/ tree
from CVS. (Thanks to Scott Long for pointing that out).
The driver for aic7xxx cards was fixed, and now the message is gone, and
the system is once again stable.

I didn't notice any real change in performance yet.

> The first thing to do is to find whether it's Vinum or the SCSI disks.
> Can you test with a single SCSI disk (of the same kind, preferably one
> of the array) instead of a single IDE disk?

I did some tests, this time with Bonnie++, on vinum, scsi, ide, and
vinum with big stripes and small stripes. I'm busy comparing them ;)

But still, I doubt if bonnie++ is a good test, and I have a hard time
interpreting the results. I can publish the results somewhere, in a
while.

Thanks,
Sander.
-- 
| Coffee (n.), a person who is coughed upon.
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8  9BDB D463 7E41 08CE C94D
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is non-breaking space a space?

2003-12-02 Thread Erik Trulsson
On Tue, Dec 02, 2003 at 09:18:20AM +0100, Jean-Baptiste Quenot wrote:
> * Erik Trulsson:
> 
> > On Tue, Dec 02, 2003 at 01:31:07AM +0100, Jean-Baptiste Quenot wrote:
> >
> > > In /usr/src/share/mklocale, the file la_LN.ISO8859-1.src for example
> > > contains a  SPACE definition  that includes the  non-breaking space.
> > > It seems that it is so since  the beginning of FreeBSD, but is there
> > > some reference, some standard that states whether NBSP is considered
> > > a space or not?
> >
> > Ifyoulookatthelocaledefinitionsfoundat
> > http://www.dkuug.dk/JTC1/SC22/WG15 it  would seem that NBSP  should be
> > considered  as  a space  character,  but  there  might be  some  other
> > standard somewhere else that says differently.
> 
> That's  also   my  opinion.   Let's   explain  the  whole   story:   I'm
> reformatting my  email messages with  textproc/par, and I  noticed since
> I'm using FreeBSD  that all non-breaking spaces are  converted to spaces
> during filtering,  just because isspace(160)  is true.  Of course,  if I
> put non-breaking  spaces in my text,  I'm not expecting the  lines to be
> broken on them, and I don't want  them to be filtered out, because nbsps
> make sense when used appropriately.
> 
> After a while,  I discovered that the issue is  related to locales.  And
> IMHO it  makes sense  not to consider  nbsp as a  space.  Where  shall I
> report the problem?

I would say that is a problem with the tool you are using, in that it
does not seem to be aware of the existence of non-breaking spaces, or
treat them specially.

I think that NBSP should be considered as a space (if nothing else the
very name "non-breaking space" implies that it is a space, albeit a not
a normal space), but it should not be considered as a word-separator.
Unfortunately many programs (and many standards for that matter) assume
that all types of whitespace are word-separators as well, which they
probably shouldn't do.


-- 

Erik Trulsson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: HP Color DeskJet 960c

2003-12-02 Thread Chris Howells
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

On Tuesday 02 December 2003 00:49, Dr Lyman Hazelton wrote:
> Has anyone gotten one of these to work?  If so, would you mind letting
> me know how to configure the ghostscript fliter for it?  Thanks!

Try CUPS +  hpijs from ports (hpijs is HP's excellent own *nix drivers).

- -- 
Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED]
Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C
KDE/Qt/C++/PHP Developer: http://www.kde.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/zE9CF8Iu1zN5WiwRAn89AJ4vD3HcvM+jKy5fZQ+I8Zh5y2L6MgCfVycI
bQ4t0dTFDAebKMYBV7HvDDI=
=ETYS
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


help needed with sasl and postfix

2003-12-02 Thread Martin Mathiassen
i am a newbiee in freebsd

an i am trying to set up af mail server with postfix mysql amavis razor
squirrelmail sasl imap

i have tryed to follow this link
http://www.littlewhitedog.com/reviews_other_00029.asp

but i had to skeep the the start and whent on to installing the progs going
to harden it later first i want it to work



Also add this in the beginning of your recipient restrictions

($:~)=> permit_sasl_authenticated,

this wrong but what shall there stand then

($:~)=> dd if=/dev/urandom of=/etc/postfix/ssl/post.rand count=1 2>/dev/null

and the answer is

dd: unknown oprand 2



Cyrus SASL/TLS And Postfix SSL
let's get SASL2 Installed now.

($:~)=> cd /usr/ports/security/cyrus-sasl2 ; make install clean

Now go ahead and edit postfix's main.cf so we can tell it to start utilizing
the TLS features. Add in the following somewhere near the bottom:

#TLS
smtp_use_tls = yes
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/post.pem
smtpd_tls_cert_file = /etc/postfix/ssl/post.pem
smtpd_tls_CAfile = /etc/postfix/ssl/post.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

enable_sasl_authentication = yes

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes







Also add this in the beginning of your recipient restrictions

($:~)=> permit_sasl_authenticated,







Here we create our postfix SSL Stuff

($:~)=> mkdir /usr/local/etc/postfix/ssl
($:~)=> chmod 700 /usr/local/etc/postfix/ssl

Next we create our SSL certificates for postfix

($:~)=> cd /usr/local/etc/postfix/ssl
($:~)=> vi pst.cnf

The contents of pst.cnf are:

RANDFILE = /etc/postfix/ssl/post.rand

[ req ]
default_bits = 1024
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no

[ req_dn ]
C=countryName Two letters!
ST=stateOrProvinceName
L=localityName
O=organizationName
OU=OrganizationalUnitName
CN=commonName
emailAddress=emailAddress

[ cert_type ]
nsCertType = server

Be sure to enter the correct options. Next we generate our SSL certificates.

($:~)=> dd if=/dev/urandom of=/etc/postfix/ssl/post.rand count=1 2>/dev/null

 WITH REGARDS MARTIN M

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is non-breaking space a space?

2003-12-02 Thread Jean-Baptiste Quenot
* Erik Trulsson:

> On Tue, Dec 02, 2003 at 01:31:07AM +0100, Jean-Baptiste Quenot wrote:
>
> > In /usr/src/share/mklocale, the file la_LN.ISO8859-1.src for example
> > contains a  SPACE definition  that includes the  non-breaking space.
> > It seems that it is so since  the beginning of FreeBSD, but is there
> > some reference, some standard that states whether NBSP is considered
> > a space or not?
>
> Ifyoulookatthelocaledefinitionsfoundat
> http://www.dkuug.dk/JTC1/SC22/WG15 it  would seem that NBSP  should be
> considered  as  a space  character,  but  there  might be  some  other
> standard somewhere else that says differently.

That's  also   my  opinion.   Let's   explain  the  whole   story:   I'm
reformatting my  email messages with  textproc/par, and I  noticed since
I'm using FreeBSD  that all non-breaking spaces are  converted to spaces
during filtering,  just because isspace(160)  is true.  Of course,  if I
put non-breaking  spaces in my text,  I'm not expecting the  lines to be
broken on them, and I don't want  them to be filtered out, because nbsps
make sense when used appropriately.

After a while,  I discovered that the issue is  related to locales.  And
IMHO it  makes sense  not to consider  nbsp as a  space.  Where  shall I
report the problem?

Cheers,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


pgp0.pgp
Description: PGP signature


Re: Solved [Re: delete first partition XP and reformat as ufs -> kernel not found]

2003-12-02 Thread Dan Strick
On Mon, 1 Dec 2003, Dorin H <[EMAIL PROTECTED]> wrote:
>>
> To finish, I was wondering if I can specify in boot2
> prompt which is the correct slice&partition to use for
> booting.
>
> If my assumptions are correct, in expression
>
> 0:ad(0,a)/kernel
> ^  ^ ^ ^   ^
> |  | | |   |
> |  | | |   - the path inside the partition
> |  | | |
> |  | | - partition in slice
> |  | |
> |  | - ??? is this the slice #, drive # ???
> |  - refers to driver
> - refers to the disk unit
>
> If no RTFM is available, point me to the source files.
> I am not familiar with the FreeBSD kernel sources, but
> I'll have no problem reading some code.
>>

This may not be exactly correct.  See the section 8 man page for boot.
(i.e. Do "man boot".)  The source is in /usr/src/sys/boot/i386.


>>
> PS2. Does anybody has a clue why the FreeBSD
> associates the slice # 2 (i.e. ad0s2) for the PT entry
> 4?
> Initially, I had
> MBR PT:
> ad0s1   XP
>  -  not used, reserved space
>  -  not used, reserved space
> ad0s2   FreeBSD (swap, /)
>
> I have installed Debian swap and / in entries 2 and 3,
> and the FreeBSD associated the (correct) numbers:
>
> ad0s1   XP
> ad0s2   Debian swap
> ad0s3   Debian /
> ad0s4   FreeBSD (swap, /)
> ^^
>
> This made the FreeBSD boot process to fail until I
> "fixit" the /etc/fstab to mount the correct root
> partition.  At that time, I was also unable to specify
> in boot2 prompt (?) where my / is.
>
> My opinion is that if the PT entry # corresponding to
> the PT entry were used in the first place, this
> problem will be avoid.  Probably this reflects a
> superficial view, but for a simple HDD configuration
> this make sense to me. Thanks again for any
> opinions/suggestions.
>>

If I understand this and your previous emails on this subject,
you began with this MBR partition/slice table arrangement:

ad0s1  XP
ad0s2  FreeBSD

and everything worked fine.
Then you changed the MBR partitions to:

ad0s1  XP
ad0s2  Debian swap
ad0s3  Debian /
ad0s4  FreeBSD

and FreeBSD would not boot correctly because the file /etc/fstab,
created during the initial FreeBSD installation process, still had
"/dev/ad0s2" where it now needed to have "/dev/ad0s4" because you
renumbered its MBR partition.  Then you fixed that and everything
seemed to work fine until you decided to reuse the XP partition
for more FreeBSD disk space.  So you changed your MBR partition
table to:

ad0s1  FreeBSD  (addtitional file system space)
ad0s2  Debian swap
ad0s3  Debian /
ad0s4  FreeBSD  (the operating system)

and FreeBSD would no longer boot.  This might be due to boot1
confusion.  Each partition in the MBR has a flag byte and a type
byte.  The 0x80 bit in the flag byte marks the partition as "active".
Normally at most one partition has the active bit set.
A non-interactive MBR bootstrap program typically boots whichever
partition has the active bit set.

The FreeBSD boot1 program, the program loaded by the MBR bootstrap,
is not hardwired with the number of the MBR partition in which it was
installed (perhaps it ought to be).  Instead it uses the first MBR
partition of FreeBSD type with the active bit set.  If no FreeBSD MBR
partition has the active bit set, the boot1 program chooses the first
FreeBSD MBR partition.  This normally works correctly even if you have
more than one bootable FreeBSD MBR partition because the FreeBSD boot0
MBR program normally rewrites the MBR record with the appropriate
active bit set before it invokes the FreeBSD boot1 program.

You say that you are using Debian lilo for your MBR bootstrap program
rather than the FreeBSD boot0 program.  I don't know much about lilo,
but I am guessing that it does not set the active partition in the MBR
partition table before it boots a partition.  Then the boot1 program
tries to load the boot2 program from ad0s1 instead of ad0s4.

Workaround: you can make ad0s4 the only active FreeBSD partition with
the fdisk program.  If nothing else changes that, boot1 will correctly
boot ad0s4.

Dan Strick
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


  1   2   >