video playback not working

2005-07-28 Thread Mike Meyer
I moved a bunch of mpegs (and other video formats) to a 5.4 box
running on a P4 from a 5.3 box running on a Thunderbird of some flavor
or another.

On the 5.3 box, they worked just fine.

On the 5.4 box, they don't display any video. Instead, they display a
black and red checkerboard. I get the same behavior from xine and
plaympeg, so I presume that there is some common library they use that
is causing this problem, but the only video stuff that the two ports
have in common according to make all-depends-list is X.

Both systems running X.org. The 5.3 system had an old nvidea card in
it (Diamond 550, I think). The 5.4 system has on-board SiS video.

Searching google, the FreeBSD bugs database - for bugs with xine and
plaympeg - and the FreeBSD web site all turned up nothing.

I'm sort of at a loss as to how to go about debugging this
problem. Any clues on things to try to figure out what's busted would
be greatly appreciated.

Thanks,
mike
-- 
Mike Meyer [EMAIL PROTECTED]  http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Problem with isc-dhcp3-server and etherboot

2005-07-28 Thread Norbert Koch
 after upgrading isc-dhcp3-server to 3.0.3, my etherboot bootprom (5.4.0,
 PXE) stopped working. It reports No IP Address.

 Has anyone else observed this? (I will also report this to the etherboot
 ML).

I just upgraded to 3.0.3. I can only report to have no problems with
etherboot 5.2.4.


 After downgrading the package to 3.0.1.r14_6, etherboot is working again.

 Some questions concerning portupgrade:
 - Is there any way to downgrade to a previous version? (In this case i
 was lucky that there still was an old binary package)

sysutils/portdowngrade

 - Is there any config file i can change to make '-b' the default for
 portupgrade?

I don't know that switch to make.


Norbert

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


Grub not working

2005-07-28 Thread Valerio daelli
Hello 
I am trying to install grub as a boot loader on my disk.
I installed it from ports.
When I try to install it on the MBR I get the error

 Running install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.l
st ... failed

Error 29: Disk write error

I tried to install it with 'grub-install '(hd0)'' and with grub -
root (hd0,a) - setup (hd0).
I tried deinstalling the port and installing from sources (version 0.97).
I don't think the problem is with menu.lst since I am using it with
linux (identical file)
and it works.
Anyone a guess?
Thanks

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


Re: Shutdown -r now will not reboot pc

2005-07-28 Thread Ivailo Tanusheff
Ivan Carey [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
07/27/2005 02:16 PM

To
freebsd-questions@freebsd.org
cc

Subject
Shutdown -r now will not reboot pc






Hello,
I'm using FreeBSD 5.3
When I try to reboot the pc with shutdown -r now the system gets as far as 

rebooting and hangs there. Is there maybe a setup in the bios to allow the 

pc to reboot.

Thanks,
Ivan 


I'm not sure I understand you right, but if your kernel has no APM 
enabled, then you'll not be able to automaticaly reboot the machine that 
way. Hope this helps :)

Ivailo Tanusheff
Senior System administrator
ProCredit Bank (Bulgaria) AD

tel. +359 2 921 7161
fax +359 2 921 7110
http://www.procreditbank.bg


Disclaimer: The information contained in this message is intended solely 
for the use of individual or entity to whom it is addressed and other 
authorized to receive it. It may contain confidential or legally 
privileged information. If you are not the intended recipient you are 
hereby notified that any disclosure, copying, distribution or taking any 
action in reliance on the contents of this message is strictly prohibited 
and may be unlawful. If you have received this communication in error, 
please notify us immediately by responding to this email and then delete 
it from your system. ProCredit Bank is neither liable for the proper and 
complete transmission of the information contained in this message nor for 
any delay in its receipt. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: QUESTION.

2005-07-28 Thread Ivailo Tanusheff
You must burn the image to the CD, not just copy image file :)

Ivailo Tanusheff
Senior System administrator
ProCredit Bank (Bulgaria) AD

tel. +359 2 921 7161
fax +359 2 921 7110
http://www.procreditbank.bg


Disclaimer: The information contained in this message is intended solely 
for the use of individual or entity to whom it is addressed and other 
authorized to receive it. It may contain confidential or legally 
privileged information. If you are not the intended recipient you are 
hereby notified that any disclosure, copying, distribution or taking any 
action in reliance on the contents of this message is strictly prohibited 
and may be unlawful. If you have received this communication in error, 
please notify us immediately by responding to this email and then delete 
it from your system. ProCredit Bank is neither liable for the proper and 
complete transmission of the information contained in this message nor for 
any delay in its receipt. 



Kanwar Singh [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
07/26/2005 08:19 PM

To
freebsd-questions@FreeBSD.org
cc

Subject
QUESTION.






I am trying to get BSD 5 on my system. I copied the image file on the
CD, but cant get the system to boot form the CD. I have tried changing
the boot order, but still does not work. I was wondering if I need to
copy an additional file, like a boot.ini file to make the system boot
form the image CD. Awaiting your reply. Thank you.
 
Sincerely,
 
 
Kanwar Singh
New Business-International Buyer
*
Launch 3 Communications,Inc. 
141 Lanza Avenue
Building 3C
Garfield, New Jersey 07026 USA
 
Voice:646.435.2802
Fax:  646.536.3866
 
Web:http://www.launch3.net http://www.launch3.net/ 
Email:  [EMAIL PROTECTED] 
AOL IM: Kanwar at Launch3
MSN:   [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]

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


Re: Problem with isc-dhcp3-server and etherboot

2005-07-28 Thread Heinrich Rebehn

Jörg Reisenweber wrote:

Moin Heinrich,

Am 27.07.2005 um 16:53 schrieb Heinrich Rebehn:

- Is there any way to downgrade to a previous version? (In this  case 
i was lucky that there still was an old binary package)



I just saw portdowngrade (/usr/ports/sysutils/portdowngrade - http:// 
sourceforge.net/projects/portdowngrade/) in the ports collection.  Maybe 
it's worth a look.


- Is there any config file i can change to make '-b' the default  for 
portupgrade?



You may set the PORTUPGRADE variable in your environment according to  
the portupgrade manpage.



Thanks, i missed that one. I will also try out portdowngrade

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


Re: make buildworld fails in openssl/colldef [SOLVED]

2005-07-28 Thread Alex Zbyslaw

Marius Korsmo wrote:


It took two weeks to fix this problem, and therefore I do have a few questions.

The error turned out to be in err.h. The file located in /usr/include was
totally different from the one located in /usr/src/include.

 /*-
  * Copyright (c) 1993
  *The Regents of the University of California.  All rights reserved.
---
 


/* crypto/err/err.h */
/* Copyright (C) 1995-1998 Eric Young ([EMAIL PROTECTED])
* All rights reserved.
   



You can see the entire diff at http://pastebin.com/322918

My question is: I deleted /usr/src, and I cvsup'ed everything. When I do a make
buildworld, why does not the new err.h get copied from /usr/src/include to
/usr/include? This would have solved my problem two weeks ago :)
 


build = recompile things
install = put them where they belong in the filesystem

buildworld doesn't install the file because it's not supposed to.


Does err.h get copied only when you do a make installworld?
 


I would expect so.  Why don't you try it?


Another question, why on earth did I have an old version of err.h? I was running
5.4 RELEASE, and it was installed from an ISO downloaded at FreeBSD.org
 

That does not look like an *old* version, it looks like a completely 
different file.  Did you install anything not from ports that might have 
overwritten it?  Did you try and install a port into a target hierarchy 
that /usr/local?  (The same copyright header as the real 5.4 one exists 
in err.h from 4.11).


Operating system bugs are rare compared to user errors, I'm afraid.

--Alex

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


groupadd/useradd in FreeBSD?

2005-07-28 Thread Xu Qiang
Hi, all: 

I am installing MySQL 4.1.13 into my machine. It has finished successfully. But 
before or after that, I need create some user account rather than root by the 
command groupadd mysql and useradd -g mysql mysql. 

However, these commands are not found in my FreeBSD 5.3 system. 

Any help on this issue?

thanks, 

Regards,
Xu Qiang

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


Re: Shell script frustration

2005-07-28 Thread martin
 At 11:14 PM +0100 7/27/05, [EMAIL PROTECTED] wrote:

echo ldapdelete -W -D $binddn \cn=$1, $group_base\
ldapdelete -W -D $binddn \cn=$1, $group_base\


when run ('./rmgroup users') it outputs -

ldapdelete -W -D cn=Manager,dc=orbweavers,dc=co,dc=uk cn=users,
ou=groups,dc=orbweavers,dc=co,dc=uk
Enter LDAP Password:
ldap_bind: Invalid DN syntax (34)
 additional info: invalid DN

However, if I copy and paste the echod statement (the first line
of the output) straight to the shell, it run fine.

 What I do in this cases is create a script called list_args.sh:

 #!/bin/sh
 printf \nlist_args.sh at `date +%H:%M:%S` with \$# = $#\n
 # Process all parameters.
 N=0
 while test $# != 0 ; do
  N=$(($N+1))
  printf \$$N = [%3d] '$1'\n ${#1}
  shift
 done

 Then in your script, replace the ldapdelete command with
 list_args.sh.  That way you'll see *exactly* what ldapdelete
 is seeing for parameters, and that might help.

I tried that one, with an echo $* - though I assume the printf prints it
out 'more precise'?  I've come up with a work around - in my slapd.conf I
have quotes around the rootdn, if I take them off it works fine (I did try
it without the quotes around the variable, but that didn't work either,
much confusion)

I'd love to know what was causing the problem, but enough time is spend on
it. I will update the script to strip off quotes when found, which should
sort it out.

I now have the LDAP tools I discussed earlier written. Very rough and
ready, but they do the job I want, so they are 'complete' in that respect!

We have:
  adduser - adds a user, and a group if it does not already exist
  rmuser  - removes a user
  rmgroup - removes a group
  users   - prints a list of users found, or details if a username is
passed
  groups - prints a list of groups found, or details if a groupname is
passed
  passwd - change a user password

They are certainly not ready for an end user, but if anyone wants to make
use of them or polish them up a bit, let me know and I will send them to
you. I will put them up on my site at some point over the week.

Cheers,
Martin


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


Re: groupadd/useradd in FreeBSD?

2005-07-28 Thread Jörg Reisenweber

Hi,

Am 28.07.2005 um 11:11 schrieb Xu Qiang:

I need create some user account rather than root by the command  
groupadd mysql and useradd -g mysql mysql.


pw groupadd mysql ; pw useradd mysql -g mysql

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


Problems with booting MBR

2005-07-28 Thread vdm . fbsd
In the first disk ad0 (master) of a computer at office I had installed linux
to be used as a postgresql server. Later I installed FreeBSD 5.4 (just to
have a go at it)  on a partition of the second disk ad1 (slave) to be a 
postgrresql
server too.
Linux lilo was the boot loader, booting linux by default and freebsd.
Now, convinced of the high quality of the latter I eliminated linux from
the first disk unfortunately without modifying lilo, and reshuffled the FreeBSD
filesystem as in my latest /etc/fstab using also the first disk:

# DeviceMountpoint  FStype  Options DumpPass#
/dev/ad1s2b noneswapsw  0   0
/dev/ad1s2a /   ufs rw  1   1
/dev/ad0s1a /usr/local  ufs rw  0   0
/dev/ad0s1d /varufs rw  0   0
/dev/ad0s1e /tmpufs rw  0   0
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0

Now, even though I read the booting procedure in the handbook and somewhere
else in the internet, issuing the various fdisk -b B, disklabel -b ..,
boot0cfg .., I was completely unable to modify the MBR and make this FreeBSD
only computer boot directly into this OS.

What should I do with the configuration I have?
A straightforward and step by step explanation is highly appreciated.

P.S. Is it possible that some problems can arise by the fact that I used
an a slice (ad0s1a)for mounting /usr/local and freebsd starts from ad1s1a?

Ciao
Vittorio


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


Re: groupadd/useradd in FreeBSD?

2005-07-28 Thread John Oxley
On Thu, Jul 28, 2005 at 05:11:29PM +0800, Xu Qiang wrote:
 Hi, all: 
 
 I am installing MySQL 4.1.13 into my machine. It has finished successfully. 
 But before or after that, I need create some user account rather than root by 
 the command groupadd mysql and useradd -g mysql mysql. 
 
 However, these commands are not found in my FreeBSD 5.3 system. 

Try pw groupadd help and pw useradd help.

-John


smime.p7s
Description: S/MIME cryptographic signature


RE: cat /dev/urandom

2005-07-28 Thread mdff
 shell# cat /dev/urandom
 
 can that executed as root cause any harm to the system?  What 
 if a random 
 sequence of `rm *` was generated... would it be executed?
 

the question is: WHAT FOR should someone logged in as root
execute cat /dev/urandom without redirecting the output?

anyway, from my experience of trying this a few times (it does
not matter if on a local console or using a ssh-client) sometimes
there's code left in the commandline afterwards and if you hit
enter, it's executed... directly executed strings i've also seen.
for now, i didn't have the occurrence of any system-command being
generated, but that's random... the unlucky one would get it asap ;-)

if you like to get RANDOM content anywhere use dd instead of cat.
example to erase a whole disk i'd type:
dd if=/dev/urandom of=/dev/devicefile bs=1024k
be sure that the devicefile exists, or you'll fill up your /root fs.
br...

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


Re: problems burning multi session dvd-rw

2005-07-28 Thread Marc Fonvieille
On Thu, Jul 28, 2005 at 03:15:06PM +1000, Timothy Smith wrote:
 i'm having some troubles burning a multi session dvd-rw. i blanked te 
 dvd to make sure it was in sequential mode
 
 %dvd+rw-format /dev/cd0a -blank
 * DVD\uRW format utility by [EMAIL PROTECTED], version 4.9.
 * 4.7GB DVD-RW media in Sequential mode detected.
 * blanking 100.0|

[...]

Try to upgrade to a more up to date version of dvd+rw-tools and try with
-blank=full option.

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


Re: groupadd/useradd in FreeBSD?

2005-07-28 Thread J. Martin Petersen

Xu Qiang wrote:
Hi, all: 

I am installing MySQL 4.1.13 into my machine. It has finished successfully. But before or after that, I need create some user account rather than root by the command groupadd mysql and useradd -g mysql mysql. 

However, these commands are not found in my FreeBSD 5.3 system. 


Any help on this issue?


You're looking for adduser(8). If you install MySQL from ports, though, 
the user will be added automatically.


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


RE: groupadd/useradd in FreeBSD?

2005-07-28 Thread Xu Qiang
Jörg Reisenweber wrote:
 
 pw groupadd mysql ; pw useradd mysql -g mysql

Thanks for providing the correct usage of pw useradd. 

At first sight, I thought your pw useradd mysql -g mysql is a typo, which 
misplaced the first mysql and -g option, so I used pw useradd -g mysql 
mysql, but got an error saying pw: user name or id required

Then I man pw, and found the usage of (pw) user add is a little different 
from the standard ones: 
pw [-V etcdir] useradd [name|uid] [-C config] [-q] [-n name] [-u uid]
   [-c comment] [-d dir] [-e date] [-p date] [-g group] [-G grouplist]
   [-m] [-k dir] [-w method] [-s shell] [-o] [-L class] [-h fd | -H fd]
   [-N] [-P] [-Y]

In FreeBSD, it should be pw useradd username -g groupname, and not pw 
useradd -g groupname username. 

Last but not least, thanks for everyone who helped me in this thread. 

Regards,
Xu Qiang


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


RE: groupadd/useradd in FreeBSD?

2005-07-28 Thread Xu Qiang
Btw, Just think of this problem: 

Although I have added the user mysql to my machine, I didn't set its 
password. When does this newly added user get his/her password and change it?

thanks, 

Regards,
Xu Qiang

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


RE: I got my vsftpd core dumped.

2005-07-28 Thread mdff
 
 Hello guys,
 i always got my vsftpd core dumped and i have no idea why is that
 happening all the time...
 There 's some informations below.
 
 www# tail /var/log/messages
 Jul 27 11:07:59 www kernel: pid 28994 (httpd), uid 80: exited 
 on signal 11

httpd=vsftpd here? if not, both have probably the same problem.
try truss-ing one of them (i'd prefer vsftpd) to see what's called
before the SIGSEGV. if you chrooted them, check for missing
devicefiles, libraries or permissions.
br

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


boot problem

2005-07-28 Thread asd asd
Hello!
I have problem with booting FreeBSD 5.4 on my laptop Toshiba Satellite 2410-304:
sometimes it boots without problem but sometimes it stops at line uhci0: Intel
82801CA/CAM (ICH3) USB controller USB-A port 0xefe0-0xefff irq 11 at device
29.0 on pci0. Previous line is initialization of the Nvidia Grforce4 420Go
graphic adapter.
Any idea what could be causing this problem?
BR,
Jure


http://www.email.si/

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


Re: Problem with Opera Plug-ins

2005-07-28 Thread lars

Jonathan Glaschke wrote:

I think you need linux-opera because this is a linux plugin.
-Jonathan

Installing linux-opera solved the problem, thanks a lot.

Kind regards,
lars.

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


Re: delete partition from MO

2005-07-28 Thread Benjamin Lutz
 then , the MO capacity is 2.6G. But the real mounted capacity is 1.2G.
 [...]
 What's wrong about to delete original partition and the capacity ?

Nothing, works as advertised. It's a bad habit of manufacturers of
backup hardware to advertise twice the capacity that their hardware
actually has, because they figure that users will be able to compress
their data by 50%. Your dmesg confirms this:

 da1: 1243MB (1273011 1024 byte sectors: 255H 63S/T 79C)

Cheers
Benjamin



signature.asc
Description: OpenPGP digital signature


Re: Grub not working

2005-07-28 Thread Benjamin Lutz
Valerio daelli wrote:
 I am trying to install grub as a boot loader on my disk.
 I installed it from ports.
 When I try to install it on the MBR I get the error
 [...]
 Error 29: Disk write error

Two guesses:

- You can't write to a disks MBR while it's being used. I've seen
  this myself, but I'm not exactly why this is, or how it can be
  circumvented (other than booting from another device).

- You have MBR protection (Virus Protection) in your BIOS enabled.

Cheers
Benjamin


signature.asc
Description: OpenPGP digital signature


Can someone clarify ipfw's in/out/recv/xmit/via concepts?

2005-07-28 Thread Ian Smith
(Re: freebsd-questions Digest, Vol 105, Issue 7)

Gary writes:

  I see in another msg that I'm not the only one scratching my head over
  the ipfw manpage's explanation of in/out/recv/xmit/via concepts.  I've
  spent many hours reading that manpage and working on my rc.firewall
  (and it seems to work OK, based on the logging), but I can't figure
  out what it's trying to tell me, even with that nice ASCII art.

Took me a while, measured in years, and there's lots I still don't know
about features I haven't used yet (NAT, dummynet, layer 2 filtering
except 'bridged' ..) but I'll have a go. 

  (I hope your replies will help me get some clarifications into the
  manpage.)

I think you really need to USE ipfw a fair bit to really 'get it', and
maybe even peek at some of the code.  rc.firewall only exemplifies bits
of its capability.  I'm unsure how really thoroughly you've read ipfw(8) 
though, going by some of your questions .. 

 ^ to upper layers   v
 |   |
 +--+
 ^   v
[ip_input]  [ip_output]   net.inet.ip.fw.enable=1
 |   |
 ^   v
   [ether_demux][ether_output_frame]  net.link.ether.ipfw=1
 |   |
 +[bdg_forward]+net.link.ether.bridge_ipfw=1
 ^   v
 |  to devices   |
 +   +
  
  FROM BOTH   TO BOTH
NICS?  NICS?

From and to whichever NICs (if any, as Chuck Swiger pointed out) may be
involved with the processing of THIS particular packet.

  Here's a pic of my firewall:
  
+--+
| +-+  |
| |KERNEL   |  |
| +-+  |
|| || ||
|v ^v ^|
|| || ||
|  +-++-+  |
|  | NIC |FW  | NIC |  |
|  +-++-+  |
|| || ||
+--+
 | || |
 v ^v ^
 | || |
  
 WANLAN

FW should here be visualised _between_ the NICs and kernel/stack, for
incoming and (unless bridging or dummynet one-pass) outgoing packets.
And of course between kernel/stack functions for localhost packets.

  The manpage says we have incoming and outgoing packets.
  In and out of what? NIC or kernel or ipfw or computer?

Good question :)  Think of both passes (except bridging) through the
IPFW ruleset for each packet, coming in and then (maybe) going out.

  The manpage describes:
   recv | xmit | via {ifX | if* | ipno | any}
  
  Is my de0 an ifX or an if*?
  (exact name or device name)
  
  What would be an example of the other?

tun* would refer to all your tun interfaces, say.

  Does ipno mean an numerical Internet address?
  (It's not mentioned elsewhere in the manpage.)

Yes - I won't say 'obviously', however searching ipfw(8) does indeed
define this quite clearly: see under section 'src and dst'

  Does each of my NICs have both of the manpage's xmit and recv
  interfaces, or is one an xmit and one a recv for any one packet rule?

Refer Chuck's response, and the manual section 'interface-spec'.  Read
that section about 10 times till it sinks right in (took me a while!)

  If an incoming packet can be associated with an xmit interface, why
  can't an outgoing packet be associated with a recv interface?

No, you have this one backwards.  This IS clearly if tersely explained
in ipfw(8).  Only outgoing packets can be tested for both recv and xmit
interfaces.  IPFW doesn't know where an incoming packet (recv ifX) is
going yet, subject to routing and until the outbound second pass, if
it's to be forwarded.

  It seems that some people do their blocking of packets
  going from LAN to WAN on (so to speak) the LAN interface, some on
  the WAN interface, and some on both.  It doesn't seem to make much
  difference on a pure firewall, except for rule-writing convenience.
  Right?

Not exactly.  Anything can (and will) happen on the WAN; you have a more
precise idea of what you expect to be happening 'inside'; even so you
should assume at least every type of ignorance, if not malice, 'inside'. 
Hence the importance of (eg) the anti-spoofing rules, inside and out. 

  I suppose it would be best to put blocks everywhere possible
  or at least where the packets enter the computer.  Right?

Spend some more time with the manual; taken as a whole it's pretty good,
and along with some further reading, practical playing will clue you in,
even if peeking at some of the code doesn't.  Try adding a few dozen
'count' rules for all sort of test situations then spend some time with
'ipfw -t show | less'

Cheers, Ian


Question about FreeBsd 5.4 + BIND 9.3.1 and threads

2005-07-28 Thread Freminlins
Hello,

I have a FreeBSD 5.4R box running BIND 9.3.1 from base on a dual Xeon
with hyperthreading enabled.

According to the man page for named:

   -n #cpus
  Create #cpus worker threads to take advantage of multiple  CPUs.
  If not specified, named will try to determine the number of CPUs
  present and create one thread per  CPU.   If  it  is  unable  to
  determine  the  number  of  CPUs, a single worker thread will be
  created.

Yet I seem to have six threads:

mx01$ ps -xauwH | grep bind
bind   95906  0.0  5.4 58444 56876  ??  SLs   1:16PM 143:20.01
/usr/sbin/named -u bind -t /var/named
bind   95906  0.0  5.4 58444 56876  ??  SLs   1:16PM 143:20.01
/usr/sbin/named -u bind -t /var/named
bind   95906  0.0  5.4 58444 56876  ??  SLs   1:16PM 143:20.01
/usr/sbin/named -u bind -t /var/named
bind   95906  0.0  5.4 58444 56876  ??  SLs   1:16PM 143:20.01
/usr/sbin/named -u bind -t /var/named
bind   95906  0.0  5.4 58444 56876  ??  SLs   1:16PM 143:20.01
/usr/sbin/named -u bind -t /var/named
bind   95906  0.0  5.4 58444 56876  ??  SLs   1:16PM 143:20.01
/usr/sbin/named -u bind -t /var/named


Does this mean there is a bug in BIND, or am I missing something?

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


Re: Epson 2480/2580 scanner support

2005-07-28 Thread Marc Fonvieille
On Fri, Jul 22, 2005 at 12:39:34PM +0200, Erik Nørgaard wrote:
 Hi,
 
 Sorry if this question is misplaced, but the sane project hosts no user 
 mailing list, and the hardware list brought no luck.
 
 Looking at the handbook it seems that ny scanner supported by the sane 
 backend is supported on FBSD.
 
 Now, the ports version is 1.0.15, on the sane home page, they list 
 support for version 1.0.13 and the CVS version.
 
 I'm interested in the Epson 2480 or 2580, for the stable version 1.0.13, 
 they are listed with basic/minimal support while the CVS version 
 mentions good/basic support. (snapscan backend)
 
 Can anyone enlighten me as to how well these devices are supported by 
 the ports-version 1.0.15?
 
 Second, on the snapscan web page, they warn:
 
 quote
 05/22/05: Warning!
 I've received a report from a user who was left with a broken scanner 
 after using the Epson 2480 in transparency mode in 2400 DPI with xsane. 
 According to the report the scanner power light went red and the scanner 
 smelled hot. After power-cycling the scanner it was not possible to 
 scan anymore...
 /quote
 
 Can anyone confirm this? and know if the problem has been corrected in 
 newer versions?


I think you should contact the SANE's mailing list for more information
regarding this issue.

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


Boot page fault - alternative kernel needed?

2005-07-28 Thread Jason Morgan
I have an old laptop that I am finally trying to get FreeBSD installed on.  It 
was recently running Linux just fine, 
but I am having a tough time getting FreeBSD installed on it.  Here is the 
error I get when booting.  I have typed all 
that is visible on the screen when it crashes.

# Begin

isa0: ISA Bus on isab0
atapci0: Intel PIIX4 UDMA33 controller port 0x3000-0x300f,0x376,0x170-0x177,0x
3f6,0x1f0-0x1f7 at device 1.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: Intel 82371AB/EB (PIIX4) USB controller at device 1.2 on pci0


Fatal trap 12: page fault while in kernel mode
fault virtual address  = 0xeb97b
fault code = supervisor read, page not present
instruction pointer= 0x8:0xc00eb87c
stack pointer  = 0x10:0xc10209f0
frame pointer  = 0x10:0xc10209f0
code segment   = base 0x0, limit 0xf, type 0x1b
   = DPL 0, pres 1, def32 1, gran 1
processor eflags   = interrupt enabled, resume, IOPL = 0
current process= 0 (swapper)
trap number= 12
panic: page fault

# End

So, my question is: Is this the UHCI driver failing to load (happens at this 
same point every time I try to boot it)? 
Is there any way around this? Possible using a trimmed down kernel to boot?  
Any suggestions?

Thanks in advance,
Jason

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


Re: defragmentation in FreeBSD 4.11

2005-07-28 Thread Victor Semionov

 This is one of the things I find really hard to get Windows users to
 understand.  They just won't believe that a company like Microsoft would
 still be using a filesystem that needs defragmenting if it were possible
 to design one that didn't.  I often wonder why myself - after all, they
 must have put a fair amount of work into NTFS, which at least doesn't
 seem to get corrupted in a power failure.  Did they make a trade-off I
 don't understand, or is it just incompetence - or worse, a deal with
 disk manufacturers to sell more disk?

Why is it unnecessary to defragment UFS?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Power cut during portupgrade -NRP kde

2005-07-28 Thread RW
On Wednesday 08 June 2005 07:58, Gareth Bailey wrote:
 Hi all,

 I believe that a kde install using packages where possible is the quickest
 route. I started the kde install using portupgrade -NRP kde, but had a
 power cut half way through :-( How might i continue where I left off?

Just run it again.

BTW the -P option wont buy you much unless you are using one of the fruitsalad 
servers (see freebsd.kde.org)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Questions

2005-07-28 Thread Razvan
Hi,

What version of FreeBSD is indicat for my server ? I have: MB: X5DA8 - 
Supermicro dual XEON 2.40 GHz ( 
http://www.supermicro.com/products/motherboard/Xeon/E7505/X5DA8.cfm ) , with 
AIC-7902, 4xHDD SEAGATE 36G SCSI, 512DDRAM, video ATI RADEON9550. I use for 
server www, ftp, mail, router.

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


Re: Problem report rejected

2005-07-28 Thread Qiu Quan
Thanks to all who helped!

I went to the web form at http://www.freebsd.org/send-pr.html, but
didn't find an appropriate place to attach some file. Then, I noticed
that the GMail's web interface tried to expand tabs to spaces when
forwarding my original message, which was unacceptable.

Finally, I had a go at ssmtp. It supports TLS. Great! So I 'cat'
that PR message into stdin for ssmtp to deliver through GMail smtp
service. And, everything done! :-)


On 7/26/05, Danny Pansters [EMAIL PROTECTED] wrote:
 On Monday 25 July 2005 19:22, Gary W. Swearingen wrote:
 
 ... handle[s][d] tabs wrongly resulting in a PR with an
 incorrect Makefile... the fun never ends. The web form is not tab safe
 either, last time I tried (most certainly the same cause).
 
 I've found a resonable solution for this in the ssmtp port.


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


Boot page fault - alternative kernel needed?

2005-07-28 Thread Jason Morgan
I have an old laptop that I am finally trying to get FreeBSD installed on.  It 
was recently running Linux just fine, 
but I am having a tough time getting FreeBSD installed on it.  Here is the 
error I get when booting.  I have typed all 
that is visible on the screen when it crashes.

# Begin

isa0: ISA Bus on isab0
atapci0: Intel PIIX4 UDMA33 controller port 0x3000-0x300f,0x376,0x170-0x177,0x
3f6,0x1f0-0x1f7 at device 1.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: Intel 82371AB/EB (PIIX4) USB controller at device 1.2 on pci0


Fatal trap 12: page fault while in kernel mode
fault virtual address  = 0xeb97b
fault code = supervisor read, page not present
instruction pointer= 0x8:0xc00eb87c
stack pointer  = 0x10:0xc10209f0
frame pointer  = 0x10:0xc10209f0
code segment   = base 0x0, limit 0xf, type 0x1b
   = DPL 0, pres 1, def32 1, gran 1
processor eflags   = interrupt enabled, resume, IOPL = 0
current process= 0 (swapper)
trap number= 12
panic: page fault

# End

So, my question is: Is this the UHCI driver failing to load (happens at this 
same point every time I try to boot it)? 
Is there any way around this? Possible using a trimmed down kernel to boot?  
Any suggestions?

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


make buildworld error

2005-07-28 Thread Jason Morgan
I keep getting the following on a 4.9 system when trying to move to 
4.11.

rm -f sa main.o pdb.o usrdb.o sa.8.gz sa.8.cat.gz
rm -f .depend GPATH GRTAGS GSYMS GTAGS
=== usr.sbin/setkey
.depend, line 1: Need an operator
.depend, line 2: Need an operator
.depend, line 3: Need an operator
.depend, line 4: Need an operator
.depend, line 6: Need an operator
.depend, line 7: Need an operator
.depend, line 8: Need an operator
.depend, line 9: Need an operator
.depend, line 10: Need an operator
.depend, line 11: Need an operator
.depend, line 12: Need an operator
.depend, line 13: Need an operator
.depend, line 14: Need an operator
.depend, line 15: Need an operator
.depend, line 16: Need an operator
.depend, line 17: Need an operator
.depend, line 18: Need an operator
.depend, line 19: Need an operator
.depend, line 20: Need an operator
.depend, line 21: Need an operator
.depend, line 22: Need an operator
make: fatal errors encountered -- cannot continue

Anyone offer some advice?  I've tried updating my source again - I even 
went as far as nuking my /usr/src directory and re-fetching it.

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


Port Scan

2005-07-28 Thread Cody Holland
Does anyone know what could be causing this?  Some of these are probes
from external IP's, but a lot of these are the servers probing itself.

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02

 Connection attempt to UDP 206.123.80.170:1026 from 
 218.66.104.140:38828 Connection attempt to UDP 206.123.80.170:1027 
 from 218.66.104.140:38828 Connection attempt to UDP 206.123.80.170:137

 from 61.231.179.224:1026 Connection attempt to UDP 206.123.80.170:137 
 from 201.26.75.232:1031 Connection attempt to TCP 127.0.0.1:80 from 
 127.0.0.1:55955 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:63129 flags:0x02 Connection attempt to UDP 127.0.0.1:123 
 from 127.0.0.1:56993 Connection attempt to UDP 127.0.0.1:123 from 
 127.0.0.1:56993 Connection attempt to TCP 127.0.0.1:80 from 
 127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:51848 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:55282 flags:0x02 Connection attempt to UDP 127.0.0.1:123 
 from 127.0.0.1:53426 Connection attempt to UDP 127.0.0.1:123 from 
 127.0.0.1:53426 Connection attempt to TCP 127.0.0.1:80 from 
 127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from

 127.0.0.1:64592 flags:0x02 Connection attempt to UDP 
 206.123.80.170:1026 from 221.10.201.190:44654 Connection attempt to 
 TCP 206.123.80.170:135 from 206.123.215.83:28963 flags:0x02 Connection

 attempt to TCP 206.123.80.170:135 from 206.123.215.83:28963 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:58536 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:57678 flags:0x02

 Connection attempt to UDP 127.0.0.1:123 from 127.0.0.1:55382 
 Connection attempt to UDP 127.0.0.1:123 from 127.0.0.1:55382 
 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02

 Connection attempt to UDP 206.123.80.170:1026 from 220.175.8.154:38035

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:55080 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:57468 flags:0x02

 Connection attempt to UDP 127.0.0.1:123 from 127.0.0.1:62552 
 Connection attempt to UDP 127.0.0.1:123 from 127.0.0.1:62552 
 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02

 Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02

 Connection attempt 

RE: make buildworld error

2005-07-28 Thread Norbert Koch
 I keep getting the following on a 4.9 system when trying to move to 
 4.11.
 
 rm -f sa main.o pdb.o usrdb.o sa.8.gz sa.8.cat.gz
 rm -f .depend GPATH GRTAGS GSYMS GTAGS
 === usr.sbin/setkey
 .depend, line 1: Need an operator
 .depend, line 2: Need an operator
 .depend, line 3: Need an operator
 .depend, line 4: Need an operator
 .depend, line 6: Need an operator
 .depend, line 7: Need an operator
 .depend, line 8: Need an operator
 .depend, line 9: Need an operator
 .depend, line 10: Need an operator
 .depend, line 11: Need an operator
 .depend, line 12: Need an operator
 .depend, line 13: Need an operator
 .depend, line 14: Need an operator
 .depend, line 15: Need an operator
 .depend, line 16: Need an operator
 .depend, line 17: Need an operator
 .depend, line 18: Need an operator
 .depend, line 19: Need an operator
 .depend, line 20: Need an operator
 .depend, line 21: Need an operator
 .depend, line 22: Need an operator
 make: fatal errors encountered -- cannot continue
 
 Anyone offer some advice?  I've tried updating my source again - I even 
 went as far as nuking my /usr/src directory and re-fetching it.

Are you trying to use gmake instead of the original bsd make?
'make -v' should give you 'make: no target to make'
If you use gmake, you see something like

GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.


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


Re: Port Scan

2005-07-28 Thread Hornet
On 7/28/05, Cody Holland [EMAIL PROTECTED] wrote:
 Does anyone know what could be causing this?  Some of these are probes
 from external IP's, but a lot of these are the servers probing itself.
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to UDP 206.123.80.170:1026 from
  218.66.104.140:38828 Connection attempt to UDP 206.123.80.170:1027
  from 218.66.104.140:38828 Connection attempt to UDP 206.123.80.170:137
 
  from 61.231.179.224:1026 Connection attempt to UDP 206.123.80.170:137
  from 201.26.75.232:1031 Connection attempt to TCP 127.0.0.1:80 from
  127.0.0.1:55955 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:63129 flags:0x02 Connection attempt to UDP 127.0.0.1:123
  from 127.0.0.1:56993 Connection attempt to UDP 127.0.0.1:123 from
  127.0.0.1:56993 Connection attempt to TCP 127.0.0.1:80 from
  127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64144 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:51848 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:55282 flags:0x02 Connection attempt to UDP 127.0.0.1:123
  from 127.0.0.1:53426 Connection attempt to UDP 127.0.0.1:123 from
  127.0.0.1:53426 Connection attempt to TCP 127.0.0.1:80 from
  127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64592 flags:0x02 Connection attempt to TCP 127.0.0.1:80 from
 
  127.0.0.1:64592 flags:0x02 Connection attempt to UDP
  206.123.80.170:1026 from 221.10.201.190:44654 Connection attempt to
  TCP 206.123.80.170:135 from 206.123.215.83:28963 flags:0x02 Connection
 
  attempt to TCP 206.123.80.170:135 from 206.123.215.83:28963 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:58536 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:57678 flags:0x02
 
  Connection attempt to UDP 127.0.0.1:123 from 127.0.0.1:55382
  Connection attempt to UDP 127.0.0.1:123 from 127.0.0.1:55382
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:51988 flags:0x02
 
  Connection attempt to UDP 206.123.80.170:1026 from 220.175.8.154:38035
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:55080 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:57468 flags:0x02
 
  Connection attempt to UDP 127.0.0.1:123 from 127.0.0.1:62552
  Connection attempt to UDP 127.0.0.1:123 from 127.0.0.1:62552
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:49701 flags:0x02
 
  Connection 

RE: Port Scan

2005-07-28 Thread Norbert Koch
 Does anyone know what could be causing this?  Some of these are probes
 from external IP's, but a lot of these are the servers probing itself.
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 
  Connection attempt to TCP 127.0.0.1:80 from 127.0.0.1:65215 flags:0x02
 

squid http proxy?


  Connection attempt to UDP 206.123.80.170:1026 from 
  218.66.104.140:38828 Connection attempt to UDP 206.123.80.170:1027 
  from 218.66.104.140:38828 Connection attempt to UDP 206.123.80.170:137

netbios-ns request to a samba server?


Norbert

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


RE: defragmentation in FreeBSD 4.11

2005-07-28 Thread MikeM
On 7/27/2005 at 7:30 PM Mike Jeays wrote:

|This is one of the things I find really hard to get Windows users to
|understand.  They just won't believe that a company like Microsoft
would
|still be using a filesystem that needs defragmenting if it were
possible
|to design one that didn't.  I often wonder why myself - after all,
they
|must have put a fair amount of work into NTFS, which at least doesn't
|seem to get corrupted in a power failure.  Did they make a trade-off I
|don't understand, or is it just incompetence - or worse, a deal with
|disk manufacturers to sell more disk?
 =

When NTFS was new, Microsoft was saying that it did not need to be
defragmented, ever.  I attended two technical sessions at conferences
where Microsoft actually stated that.


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


Re: make buildworld fails in openssl/colldef [SOLVED]

2005-07-28 Thread Marius Korsmo

Quoting Alex Zbyslaw [EMAIL PROTECTED]:


Marius Korsmo wrote:

It took two weeks to fix this problem, and therefore I do have a few 
questions.


The error turned out to be in err.h. The file located in /usr/include was
totally different from the one located in /usr/src/include.

 /*-
  * Copyright (c) 1993
  *The Regents of the University of California.  All rights reserved.
---


/* crypto/err/err.h */
/* Copyright (C) 1995-1998 Eric Young ([EMAIL PROTECTED])
* All rights reserved.



You can see the entire diff at http://pastebin.com/322918

My question is: I deleted /usr/src, and I cvsup'ed everything. When 
I do a make

buildworld, why does not the new err.h get copied from /usr/src/include to
/usr/include? This would have solved my problem two weeks ago :)


build = recompile things
install = put them where they belong in the filesystem

buildworld doesn't install the file because it's not supposed to.


Does err.h get copied only when you do a make installworld?


I would expect so.  Why don't you try it?

Another question, why on earth did I have an old version of err.h? I 
was running

5.4 RELEASE, and it was installed from an ISO downloaded at FreeBSD.org

That does not look like an *old* version, it looks like a completely 
different file.  Did you install anything not from ports that might 
have overwritten it?  Did you try and install a port into a target 
hierarchy that /usr/local?  (The same copyright header as the real 
5.4 one exists in err.h from 4.11).


Operating system bugs are rare compared to user errors, I'm afraid.

--Alex



As far as I can remember, I have not installed anything that didn't come from
the ports collection. I have only used the ports, and always installed them to
the default directory.

I did not mean that this was a OS bug, and it would be really strange 
if it was

since I can't find any other person that has had the same problem. There must
be an application that overwrote my err.h. I've tried to provoke this error
again, but I can't. I tried to install all the ports on another server 
(until i
ran out of space), but the error did not occur. But with that said, 
there was 20

ports I didn't have enough space to install, so the problem might lie there.

I might be the problem as well, maybe I did something I shouldn't have 
done. But

I can't really see what that should be :) Anyway, the solution is here and I
hope it can help other people that end up with the same problem (if that ever
happens).

Marius




This message was sent using IMP, the Internet Messaging Program.

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


pkg_create: correct usage?

2005-07-28 Thread mdff
i'm trying to create packages on freebsd-5.4-RELEASE.

can anyone tell me how to define a packinglist for
pkg_create with the ability to remove the directories
after pkg_delete and not getting complaints if they are
not empty?

if i specify @dirrm dir in the packinglist, i get these
errors, if some packages share a specific directory:

# pkg_delete packname
 pkg_delete: unable to completely remove directory '/usr/local/lib'
 pkg_delete: couldn't entirely delete package (perhaps the packing
 list is incorrectly specified?)

br...

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


Backup kernel - confirmation

2005-07-28 Thread Norberto Meijome
quick question - I have a remote box with SMP/HTT disabled, but I'd like 
to see how it works with it. If I make a copy of my current kernel to 
/kernel_orig, I should be able to install the SMP one as /kernel, and if 
hell breaks lose, I should be able to point it to /kernel_orig ... right?


any caveats for this? ( I do off-band access to the server)

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


Re: Problems with booting MBR

2005-07-28 Thread Gary W. Swearingen
[EMAIL PROTECTED] writes:

 # DeviceMountpoint  FStype  Options DumpPass#
 /dev/ad1s2b noneswapsw  0   0
 /dev/ad1s2a /   ufs rw  1   1
 /dev/ad0s1a /usr/local  ufs rw  0   0
 /dev/ad0s1d /varufs rw  0   0
 /dev/ad0s1e /tmpufs rw  0   0
 /dev/acd0   /cdrom  cd9660  ro,noauto   0   0

 Now, even though I read the booting procedure in the handbook and somewhere
 else in the internet, issuing the various fdisk -b B, disklabel -b ..,
 boot0cfg .., I was completely unable to modify the MBR and make this FreeBSD
 only computer boot directly into this OS.

If you're sticking to FreeBSD's boot0 MBR, you'll have to put one on
each disk.  I don't know if boot0 can remember F5 as the default
choice for auto-booting or not.  But one way or another the first
disk's boot0 needs to use F5 to start the second disk's MBR/boot0
which needs to use F2 by hand or from boot0cfg config.

You could also use grub or lilo to do it too, but it's harder to set up.

 P.S. Is it possible that some problems can arise by the fact that I used
 an a slice (ad0s1a)for mounting /usr/local and freebsd starts from ad1s1a?

Only the easy-to-fix problems that you're having.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD file system example and question

2005-07-28 Thread Lowell Gilbert
Marcin [EMAIL PROTECTED] writes:

 Hello, where can i find information or examples of how to write a file system 
 for FreeBSD, apart from /usr/src/sys/* and /usr/share/man/*?

The Architecure Handbook. (/usr/share/doc/en/arch-handbook)

The old McKusick book (/usr/share/doc/en/design-44bsd)
 
The new McKusick book (ISBN 0-201-70245-2)

 What is vnode_if.h for? Why is it generated for every fs module if it is the 
 same every time? I tried to google for the answer but found nothing. Only a 
 note on Darwin's dev site.

If I recall correctly that was a Sun-ism originally.
It can be useful as a cross-platform tool, but I don't know if anyone
is using it that way these days.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Grub not working

2005-07-28 Thread Gary W. Swearingen
Benjamin Lutz [EMAIL PROTECTED] writes:

 Two guesses:

 - You can't write to a disks MBR while it's being used. I've seen
   this myself, but I'm not exactly why this is, or how it can be
   circumvented (other than booting from another device).

Yes.  It wasn't always this way.

You can make a gruby boot floppy and from its command line, install
to the MBR.  You might have to mess around with storing the grub
files in /boot/boot/grub instead of /boot/grub or something; see
the grub info or just try it both ways.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Questions

2005-07-28 Thread Gary W. Swearingen
Razvan [EMAIL PROTECTED] writes:

 What version of FreeBSD is indicat for my server ?

You should have put that in the Subject line.

I'd use 5.4-RELEASE until I encounted serious problems with it, when
I'd switch to 5.4-STABLE before retrying and reporting the problems.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: groupadd/useradd in FreeBSD?

2005-07-28 Thread Dan Nelson
In the last episode (Jul 28), Xu Qiang said:
 Btw, Just think of this problem: 
 
 Although I have added the user mysql to my machine, I didn't set
 its password. When does this newly added user get his/her password
 and change it?

No-one usually logs in as the mysql user, so you don't need to set one.
Mysqld will automatically setuid() itself to the mysql user when it
starts up.

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


Re: Problems with booting MBR

2005-07-28 Thread Alex Zbyslaw

Gary W. Swearingen wrote:


If you're sticking to FreeBSD's boot0 MBR, you'll have to put one on
each disk.  I don't know if boot0 can remember F5 as the default
choice for auto-booting or not.  But one way or another the first
disk's boot0 needs to use F5 to start the second disk's MBR/boot0
which needs to use F2 by hand or from boot0cfg config.
 

Yes, it does.  I believe it picks F5 when all the partitions before it 
are not set to boot.  Once you've done the right sequence once, the 
machine will boot the same until interfered with.


--Alex

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


Re: make buildworld fails in openssl/colldef [SOLVED]

2005-07-28 Thread Alex Zbyslaw

Marius Korsmo wrote:

That does not look like an *old* version, it looks like a completely 
different file.  Did you install anything not from ports that might 
have overwritten it?  Did you try and install a port into a target 
hierarchy that /usr/local?  (The same copyright header as the real 
5.4 one exists in err.h from 4.11).


Operating system bugs are rare compared to user errors, I'm afraid.

--Alex


As far as I can remember, I have not installed anything that didn't 
come from
the ports collection. I have only used the ports, and always installed 
them to

the default directory.

I did not mean that this was a OS bug, and it would be really strange 
if it was
since I can't find any other person that has had the same problem. 
There must
be an application that overwrote my err.h. I've tried to provoke this 
error
again, but I can't. I tried to install all the ports on another server 
(until i
ran out of space), but the error did not occur. But with that said, 
there was 20
ports I didn't have enough space to install, so the problem might lie 
there.


I might be the problem as well, maybe I did something I shouldn't have 
done. But
I can't really see what that should be :) Anyway, the solution is here 
and I
hope it can help other people that end up with the same problem (if 
that ever

happens).


Then put it down as a mystery :-)

If you are worried about it happening again, then just mail yourself the 
head of the file every day from cron.  If it does change, at least 
you'll know better when it happened and might be better able to figure 
out what caused it.


You could also force re-installation of your current ports on the same 
machine, but that might be more time than you care to spend.


--Alex

PS I suppose the clever way would be to head the file, egrep for 
Copyright then egrep -v the correct date (2003) since that will be empty 
when the file is correct.  So you should be able to arrange for the mail 
to arrive only when there is a problem (which might be never again!).


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


Re: apache13-modssl-1.3.33+2.8.22_1 port broken??

2005-07-28 Thread Warren Block

On Wed, 27 Jul 2005, Viren Patel wrote:


I am trying to install apache+mod_ssl-1.3.33+2.8.22_1 and
get the following:

#make
===  apache+mod_ssl-1.3.33+2.8.22_1 has known
vulnerabilities:
= apache -- http request smuggling.
  Reference:
http://www.FreeBSD.org/ports/portaudit/651996e0-fe07-11d9-8329-000e0c2e438a.html
= Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/www/apache13-modssl.

I have updated the ports tree and the files directory
contains the patch for this vulnerability
(patch-secfix-CAN-2005-2088).

I need to install this port urgently. What am I doing
wrong?? If the vulnerability has not been fixed, how can I
force install? TIA.


# make -DDISABLE_VULNERABILITIES

will override portaudit.

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Reading the volume-id/label of a cd/dvd ?

2005-07-28 Thread Warren Block

On Wed, 27 Jul 2005, FreeBsdBeni wrote:


Is there an easy way to get to know the volume id or disclabel of a cd or
dvd ? Mounting the cd/dvd just gives me the contents of the disc, but not its
name.
In k3b one can ask the info about a disc and get all the info about the
inserted cd/dvd (disc type, tracks, sessions,...). But how do i get that info
without k3b ? Is there an easy way/solution ?


cdrecord can get some info from a CD; see the -toc and -atip options.

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Reading the volume-id/label of a cd/dvd ?

2005-07-28 Thread Emanuel Strobl
Am Donnerstag, 28. Juli 2005 16:49 CEST schrieb Warren Block:
 On Wed, 27 Jul 2005, FreeBsdBeni wrote:
  Is there an easy way to get to know the volume id or disclabel of a cd
  or dvd ? Mounting the cd/dvd just gives me the contents of the disc,
  but not its name.
  In k3b one can ask the info about a disc and get all the info about
  the inserted cd/dvd (disc type, tracks, sessions,...). But how do i
  get that info without k3b ? Is there an easy way/solution ?

 cdrecord can get some info from a CD; see the -toc and -atip options.

 -Warren Block * Rapid City, South Dakota USA

There's glabel which reads many kind of FS volume labels. 'glabel load' or 
'man glabel'

-Harry

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


pgpaHxW2Naeue.pgp
Description: PGP signature


Re: Boot page fault - alternative kernel needed?

2005-07-28 Thread Kevin Kinsey

Jason Morgan wrote:


I have an old laptop that I am finally trying to get FreeBSD installed on.
It was recently running Linux just fine, but I am having a tough time 
getting FreeBSD installed on it.  Here is the error I get when booting.  
I have typed all that is visible on the screen when it crashes.


# Begin

isa0: ISA Bus on isab0
atapci0: Intel PIIX4 UDMA33 controller port 0x3000-0x300f,0x376,0x170-0x177,0x
3f6,0x1f0-0x1f7 at device 1.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: Intel 82371AB/EB (PIIX4) USB controller at device 1.2 on pci0


Fatal trap 12: page fault while in kernel mode
fault virtual address  = 0xeb97b
fault code = supervisor read, page not present
instruction pointer= 0x8:0xc00eb87c
stack pointer  = 0x10:0xc10209f0
frame pointer  = 0x10:0xc10209f0
code segment   = base 0x0, limit 0xf, type 0x1b
  = DPL 0, pres 1, def32 1, gran 1
processor eflags   = interrupt enabled, resume, IOPL = 0
current process= 0 (swapper)
trap number= 12
panic: page fault

# End

So, my question is: Is this the UHCI driver failing to load 
(happens at this same point every time I try to boot it)? 
Is there any way around this? Possible using a trimmed down 
kernel to boot?  Any suggestions?


Thanks in advance,
Jason
 




Well, the error message seems to indicate that the
swapper if failing ... but it could be that it's failing
because the previously loaded uhci device code finds
a bug in your hardware --- IANAE,  but IIRC FBSD 5
( you don't say what version you're using) doesn't
always play well with APM, ACPI, or what-not on
some older laptops.

We probably need someone else to tell us the
exact incantation, but you might be able to
'escape to loader prompt' and set the equivalent
of {ACPI_LOAD =0} (like I said, not sure of exact
syntax) before attempting to boot (see loader(8)
in the on-line manual or on another machine).

If you're trying FBSD 5, I've heard of some people
having success with older laptops and FBSD 4.
Otherwise, they can run 5 but without APM or
ACPI support.

Like I said, I can't say for certain that this is
what your issue is, but if you've not got a working
system, it probably can't hurt to futz around with
it a bit.

Hopefully somebody else knows the magic words

HTH,

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


Re: defragmentation in FreeBSD 4.11

2005-07-28 Thread Bob Johnson
Message: 6
Date: Thu, 28 Jul 2005 11:20:31 +0300
From: Victor Semionov [EMAIL PROTECTED]
Subject: Re: defragmentation in FreeBSD 4.11
To: freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain;  charset=windows-1251


  This is one of the things I find really hard to get Windows users to
  understand.  They just won't believe that a company like Microsoft would
  still be using a filesystem that needs defragmenting if it were possible
  to design one that didn't.  I often wonder why myself - after all, they
  must have put a fair amount of work into NTFS, which at least doesn't
  seem to get corrupted in a power failure.  Did they make a trade-off I
  don't understand, or is it just incompetence - or worse, a deal with
  disk manufacturers to sell more disk?
 

Microsoft used to claim that NTFS doesn't need defragmentation.  Compared to 
MSDOSFS, that's a reasonably accurate statement, but if you push it hard 
enough, it will still become fragmented.

 Why is it unnecessary to defragment UFS?
 

In normal use, files never become fragmented enough to affect performance.  In 
a (loose) sense, files are intentionally fragmented in a controlled way so 
that fragmentation doesn't cause problems.  If you run fsck on a partition, 
you will typically see fragmentation levels of less than one percent.

Also, keep in mind that in the default formatting, a FreeBSD partition has 8% 
of the disk space withheld from normal users to help keep the disk from 
becoming so full the system can't operate, and it has the side effect of 
helping to prevent fragmentation as well.  It is why df can show a disk being 
as much as 108% full.  It is possible to make this space available for normal 
use if, for example, you are using a partition only for data storage and you 
want to squeeze every last bit of space out of it, but of course there will 
be some performance penalty as it starts to get full.  You can also adjust 
other disk parameters to optimize for your particular needs.  See tunefs(8).

If the disk gets close enough to full, the OS has no choice but to start 
fragmenting things.  Try to keep your disks less than about 90% full (that's 
a number I remember from somewhere -- it's just a guideline and not a firm 
limit).  My /home partition is 95% full according to df (which means it is 
actually a little under 90% full including the reserved capacity), and fsck 
shows 0.1% fragmentation.  Of course, it's a fairly big partition, so it 
still has over a gigabyte of free space.  Even the ISO CD images I downloaded 
a few days ago probably didn't get much fragmentation.  


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


Re: FreeBSD file system example and question

2005-07-28 Thread Marcin

Thanks! The arch-book is something i was looking for. Somehow i missed that 
when seeking doc/

m.

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


Re: Backup kernel - confirmation

2005-07-28 Thread Bryan Maynard
On Thursday 28 July 2005 02:10 pm, Norberto Meijome wrote:
 quick question - I have a remote box with SMP/HTT disabled, but I'd
 like to see how it works with it. If I make a copy of my current
 kernel to /kernel_orig, I should be able to install the SMP one as
 /kernel, and if hell breaks lose, I should be able to point it to
 /kernel_orig ... right?

Yes, you can do that. Also of note is that when FreeBSD compiles a 
kernel it takes the old kernel and renames it kernel.old. When FreeBSD 
is booting you can select which kernel to use simpy by entering 
boot /boot/kernel.old/kernel or boot /boot/kernel_orig/kernel. I 
did this when I was tweak the kernel in my laptop. Check the boot man 
page for more info.

 any caveats for this? ( I do off-band access to the server)

Booting using boot /boot/kernel.old/kernel runs as if you were booting 
using your current kernel. I ran my laptop all day on my old kernel and 
did't see any problems.

 thanks in advance,
 Beto

Thanks,

Bryan
-- 
Open Source: by the people, for the people.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: boot problem

2005-07-28 Thread Dmitry Mityugov
On 7/28/05, asd asd [EMAIL PROTECTED] wrote:
 Hello!
 I have problem with booting FreeBSD 5.4 on my laptop Toshiba Satellite 
 2410-304:
 sometimes it boots without problem but sometimes it stops at line uhci0: 
 Intel
 82801CA/CAM (ICH3) USB controller USB-A port 0xefe0-0xefff irq 11 at device
 29.0 on pci0. Previous line is initialization of the Nvidia Grforce4 420Go
 graphic adapter.
 Any idea what could be causing this problem?

Is there any USB device attached to the laptop? Can you reproduce the
problem when nothing is attached to it?

-- 
Dmitry Mityugov, St. Petersburg, Russia
I ignore all messages with confidentiality statements

We live less by imagination than despite it - Rockwell Kent, N by E
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 5.4+SMP, severe network degredation

2005-07-28 Thread dpk
By the way, I also compared GENERIC performance against GENERIC w/
options SMP added, and had the same results.

On Wed, 27 Jul 2005, dpk wrote:

 We just received several SuperMicro servers, 3.0Ghz Xeon x 2, 4GB RAM.
 They're using the em driver and the ports are set to 1000Mbit (we also
 tried 100Mbit/full duplex on the card and on the switch). They're running
 FreeBSD 5.4.

 I ran a steady ping on a couple of them while they were running GENERIC,
 and then rebooted them with a kernel built with the PAE kernel included
 with the installation, with option SMP added.

 The PAE-SMP-GENERIC kernel was built after cvsup'ing with tag=RELENG_5_4
 and the uname reports 5.4-RELEASE-p5.

 Here are the ping results:

 GENERIC:

 117 packets transmitted, 117 packets received, 0% packet loss
 round-trip min/avg/max/stddev = 0.451/0.554/0.856/0.059 ms

 PAE-SMP-GENERIC:

 102 packets transmitted, 102 packets received, 0% packet loss
 round-trip min/avg/max/stddev = 0.569/4.262/7.944/2.065 ms

 Fetching a 637MB ISO from a local server, also on 100/FDX:

 GENERIC:

 /dev/null 100% of  637 MB   10 MBps 00m00s

 real0m58.071s
 user0m1.954s
 sys 0m6.278s

 PAE-SMP-GENERIC:

 /dev/null 100% of  637 MB 5764 kBps 00m00s

 real1m53.324s
 user0m1.478s
 sys 0m5.624s

 Running GENERIC, systat shows about 7000 interrupts/second, and around 600
 interrupts/second using PAE-SMP-GENERIC, while fetch was running.

 I've checked the errata and hardware notes, as well as gnats, and was not
 able to find anything that explains or matches this behavior. We've run
 SMP servers for years, using 4.5-4.11, but we've never seen the network
 performance cut in half (or pings go up 10x).

 Removing option SMP makes the problem go away, but at a very significant
 performance cost obviously.

 Could it be something from -p5? Is this explained/examined in a PR I've
 missed, and if so can I add some information?

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


Re: FreeBSD 5.4+SMP, severe network degredation

2005-07-28 Thread dpk
Woah. Well, I guess I didn't try *everything*. Removing device acpi from
the kernel config leaves me witih a PAE+SMP kernel that works fine. I can
fetch files at wire speed and everything.

So, I guess this issue is closed. acpi was the ultimate culprit.

On Thu, 28 Jul 2005, dpk wrote:

 By the way, I also compared GENERIC performance against GENERIC w/
 options SMP added, and had the same results.

 On Wed, 27 Jul 2005, dpk wrote:

  We just received several SuperMicro servers, 3.0Ghz Xeon x 2, 4GB RAM.
  They're using the em driver and the ports are set to 1000Mbit (we also
  tried 100Mbit/full duplex on the card and on the switch). They're running
  FreeBSD 5.4.
 
  I ran a steady ping on a couple of them while they were running GENERIC,
  and then rebooted them with a kernel built with the PAE kernel included
  with the installation, with option SMP added.
 
  The PAE-SMP-GENERIC kernel was built after cvsup'ing with tag=RELENG_5_4
  and the uname reports 5.4-RELEASE-p5.
 
  Here are the ping results:
 
  GENERIC:
 
  117 packets transmitted, 117 packets received, 0% packet loss
  round-trip min/avg/max/stddev = 0.451/0.554/0.856/0.059 ms
 
  PAE-SMP-GENERIC:
 
  102 packets transmitted, 102 packets received, 0% packet loss
  round-trip min/avg/max/stddev = 0.569/4.262/7.944/2.065 ms
 
  Fetching a 637MB ISO from a local server, also on 100/FDX:
 
  GENERIC:
 
  /dev/null 100% of  637 MB   10 MBps 
  00m00s
 
  real0m58.071s
  user0m1.954s
  sys 0m6.278s
 
  PAE-SMP-GENERIC:
 
  /dev/null 100% of  637 MB 5764 kBps 
  00m00s
 
  real1m53.324s
  user0m1.478s
  sys 0m5.624s
 
  Running GENERIC, systat shows about 7000 interrupts/second, and around 600
  interrupts/second using PAE-SMP-GENERIC, while fetch was running.
 
  I've checked the errata and hardware notes, as well as gnats, and was not
  able to find anything that explains or matches this behavior. We've run
  SMP servers for years, using 4.5-4.11, but we've never seen the network
  performance cut in half (or pings go up 10x).
 
  Removing option SMP makes the problem go away, but at a very significant
  performance cost obviously.
 
  Could it be something from -p5? Is this explained/examined in a PR I've
  missed, and if so can I add some information?
 

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


Re: how to run 2 instance of memcached from rc.conf?

2005-07-28 Thread Danny Howard
On Tue, Jul 26, 2005 at 11:59:59PM -0700, Lei Sun wrote:
 Yeah, the tricky part is not to what to do, but how to do it. I know I
 need to configure 2 ip or 2 ports.

 As the memcached.sh is using run_rc_command, and somehow, even if when
 I am giving it 2 arguments with different port, it still can only
 start up 1 process instead of 2.

How are you giving anything different arguments?  I only see one service
configured in your rc.conf.

 So how do I use the same script to run 2 instance of memcached?

So, you have memcached1.sh :

#!/bin/sh
#

# PROVIDE: memcached1
# REQUIRE: NETWORKING

#
# Add the following lines to /etc/rc.conf to run memcached:
#
# memcached1_enable=YES
# memcached1_flags=
#
. /etc/rc.subr

name=memcached1
rcvar=`set_rcvar`
command=/usr/local/bin/memcached
command_args=-du nobody ${memcached1_flags}
load_rc_config $name
run_rc_command $1

And then you have memcached2.sh :

#!/bin/sh
#

# PROVIDE: memcached2
# REQUIRE: NETWORKING

#
# Add the following lines to /etc/rc.conf to run memcached:
#
# memcached2_enable=YES
# memcached2_flags=
#
. /etc/rc.subr

name=memcached2
rcvar=`set_rcvar`
command=/usr/local/bin/memcached
command_args=-du nobody ${memcached2_flags}
load_rc_config $name
run_rc_command $1

And you set memcached1_flags and memcached2_flags in rc.conf where you
were setting memcache_flags formerly.

However, unless you really know what you are doing, if you are trying to
run TWO memchached instances, I'd suspect, as another has asserted, that
your understanding of memcached is flawed.  I'd check with the memcached
community to see if there isn't a better way to get things done in the
first place.

Sincerely,
-danny

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


Re: sterminal or alternative

2005-07-28 Thread Danny Howard
On Wed, Jul 27, 2005 at 09:07:35AM +0200, Maarten wrote:
 Is anyone aware if there have been efforts to port sterminal? If not, are
 there any ported alternatives which I have overlooked?

Maarten,

Perhaps you can get it ported easily. :)

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

Thank you for contributing, and good luck!

Sincerely,
-danny

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


Re: Shell script frustration

2005-07-28 Thread Garance A Drosehn

At 10:10 AM +0100 7/28/05, [EMAIL PROTECTED] wrote:

Garance wrote:
  What I do in this cases is create a script called list_args.sh:


 #!/bin/sh
 printf \nlist_args.sh at `date +%H:%M:%S` with \$# = $#\n
 # Process all parameters.
 N=0
 while test $# != 0 ; do
  N=$(($N+1))
  printf \$$N = [%3d] '$1'\n ${#1}
  shift
 done

 Then in your script, replace the ldapdelete command with
 list_args.sh.  That way you'll see *exactly* what ldapdelete
 is seeing for parameters, and that might help.


I tried that one, with an echo $* - though I assume the printf
prints it out 'more precise'?


Well, I also have versions that use an echo instead of printf.
The printf just makes it easier to have a pretty output.

The problem with using a plain 'echo *' is that there are
several different inputs which will produce the same output.

Compare:
echo a b
and echo a b
or  echo a b
and echo a b 

The outputs from `echo' will look the same, but the arguments to
the program are very different.  That's why my script lists out
the exact arguments, with their lengths.  I did that because
sometimes those details matter.  I have solved problems similar
to the one which is frustrating you by using this kind of script.

--
Garance Alistair Drosehn =  [EMAIL PROTECTED]
Senior Systems Programmer   or   [EMAIL PROTECTED]
Rensselaer Polytechnic Institute; Troy, NY;  USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defragmentation in FreeBSD 4.11

2005-07-28 Thread Freminlins
On 7/28/05, Bob Johnson [EMAIL PROTECTED] wrote:

  Why is it unnecessary to defragment UFS?
 
 
 In normal use, files never become fragmented enough to affect performance.  In
 a (loose) sense, files are intentionally fragmented in a controlled way so
 that fragmentation doesn't cause problems.  If you run fsck on a partition,
 you will typically see fragmentation levels of less than one percent.
 
 Also, keep in mind that in the default formatting, a FreeBSD partition has 8%
 of the disk space withheld from normal users to help keep the disk from
 becoming so full the system can't operate, and it has the side effect of
 helping to prevent fragmentation as well.  It is why df can show a disk being
 as much as 108% full.  It is possible to make this space available for normal
 use if, for example, you are using a partition only for data storage and you
 want to squeeze every last bit of space out of it, but of course there will
 be some performance penalty as it starts to get full.  You can also adjust
 other disk parameters to optimize for your particular needs.  See tunefs(8).
 
 If the disk gets close enough to full, the OS has no choice but to start
 fragmenting things.  Try to keep your disks less than about 90% full (that's
 a number I remember from somewhere -- it's just a guideline and not a firm
 limit).  My /home partition is 95% full according to df (which means it is
 actually a little under 90% full including the reserved capacity), and fsck
 shows 0.1% fragmentation.  Of course, it's a fairly big partition, so it
 still has over a gigabyte of free space.  Even the ISO CD images I downloaded
 a few days ago probably didn't get much fragmentation.

Apparently UFS can get fragmented even when there is lots of
apparently free space:
http://blogs.sun.com/roller/page/sprakki?entry=ufs_file_system_defragmentation

Obviously this is Sun UFS, but there is a common heritage. I've never
needed to do any sort of defrag on either FreeBSD or Solaris though.

 - Bob

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


Re: how to run 2 instance of memcached from rc.conf?

2005-07-28 Thread Glenn Dawson

At 09:36 AM 7/28/2005, Danny Howard wrote:

How are you giving anything different arguments?  I only see one service
configured in your rc.conf.

 So how do I use the same script to run 2 instance of memcached?


From my original email:


then, you can use two sets of variables in /etc/rc.conf like:

memcached_enable=YES
memcached_flags=-m 2 -l 10.1.1.245 -p 11211

memcached2_enable=YES
memcached2_flags=-m 2 -l 10.1.1.245 -p 11212


-Glenn


So, you have memcached1.sh :

#!/bin/sh
#

# PROVIDE: memcached1
# REQUIRE: NETWORKING

#
# Add the following lines to /etc/rc.conf to run memcached:
#
# memcached1_enable=YES
# memcached1_flags=
#
. /etc/rc.subr

name=memcached1
rcvar=`set_rcvar`
command=/usr/local/bin/memcached
command_args=-du nobody ${memcached1_flags}
load_rc_config $name
run_rc_command $1

And then you have memcached2.sh :

#!/bin/sh
#

# PROVIDE: memcached2
# REQUIRE: NETWORKING

#
# Add the following lines to /etc/rc.conf to run memcached:
#
# memcached2_enable=YES
# memcached2_flags=
#
. /etc/rc.subr

name=memcached2
rcvar=`set_rcvar`
command=/usr/local/bin/memcached
command_args=-du nobody ${memcached2_flags}
load_rc_config $name
run_rc_command $1

And you set memcached1_flags and memcached2_flags in rc.conf where you
were setting memcache_flags formerly.

However, unless you really know what you are doing, if you are trying to
run TWO memchached instances, I'd suspect, as another has asserted, that
your understanding of memcached is flawed.  I'd check with the memcached
community to see if there isn't a better way to get things done in the
first place.

Sincerely,
-danny

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


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


Samba over VPN

2005-07-28 Thread cell
Hello , i have created a VPN ( with openvpn-2.0_3 on freebsd 5.4 )  between my 
network who has a gateway on freebsd 5.4 and others computer on  win xp, and a 
network who has windows xp home as gateway.Windows xp home gateway used openvpn 
2 too and i have created a bridge in my freebsd gateway and the windows xp 
gateway have created a bridge too.Now , i have configured samba  on my freebsd 
gateway and i must see normally (in my computers on windows xp ) the windows xp 
gateway of the other network in my workgroup but i just see this computer for 
ten minutes !!! After that , i don't see it any more and i don't understand why 
!!! Anyone have an idea for this problem ? 

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


script for adding a samba-user

2005-07-28 Thread [EMAIL PROTECTED]

hi,

been working on a script to add a samba-user, below an example which is
not working, can someone provide the fix here to make it work properly ?

#!/bin/sh
adduser -G data -s scponly $1
smbpasswd $1

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


Wireless with Aironet 350 Card Help needed

2005-07-28 Thread Reeves, Brandon
I have a Freebsd 5.3 Laptop with an Aironet 350 Card. I can get the card
associated with the AP using WEP etc. However, I still can not ping the
outside internet. I had this working while I was initially toying with the
card but for some reason it no longer works. This is a new card I have added
to my laptop to enable wireless since the embedded Intel card is not
supported. I also can not ping any machine on the wireless and none of my
other machines can ping me.. Any insight into this would be greatly
appreciated.  One more note, I have installed the Linux-ACU port and it says
I am associated but still gets no communication. 
 
Thanks
 
 
Brandon Reeves
Information Systems Security
FMOL Health System
Ph. 225.765.7984
Fax: 225.765.5804
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 


***FMOL Health System encrypts email containing Patient Health Information.  
You will receive a notice with instructions on how to open any encrypted email 
you receive.  To learn more, go to this web site: 
http://userawareness.zixcorp.com/sites/index.php?b=158type=1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: defragmentation in FreeBSD 4.11

2005-07-28 Thread Freminlins
Gayn Winters wrote:
 
 What I get from reading this article is that if the use of the file
 system is to store lots of small files, then use a small block size.  Am
 I missing something?

No and yes! There is a minimum block and fragment size. In this case
there were not enough contiguous fragments to enable an 8K file to be
created. Without checking I believe Solaris uses 8K blocks.

 Also, in most situations, buying a big enough disk is far better than
 worrying about what happens when a not-big-enough disk starts to get
 full.

Indeed. But... in the case I linked to there was apparently plenty of
free space, just not enough free contiguous space. The author also
implies that a bigger disk would not solve the problem:

  it creates and deletes tons of small files and thus the fragmentation 
  over a period of time.

As mentioned though I have never seen this myself despite running very
busy mail and web servers with what must be billions of files being
created/deleted in that time.

It certainly grabbed my attention so I thought it may be of interest to others.

 -gayn

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


Re: xorg keyboard layout

2005-07-28 Thread cpghost
On Wed, Jul 27, 2005 at 01:00:47PM +0400, Igor Robul wrote:
 Dikshie wrote:
 
 Dear All,
 because my laptop is Japanese laptop so I define
 keymap=jp.106 on /etc/rc.conf
 BUT when I do startx (using XORG 6.8.2) 
 the keyboard layout back to default (generic english keyboard) !
 
 How to keep keymap=jp.106 still valid on XORG ?
  
 
 Console keyboard and X11 keyboard are configured in different places.
 To configure Xorg keyboard look at manual page for xorg.cfg, or use 
 xorgcfg utility, but make backup of your existing xorg.cfg.

Or use setxkbmap(1) with one of the maps in
/usr/X11R6/lib/X11/xkb/symbols/pc/

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 5.4+SMP, severe network degredation

2005-07-28 Thread Benson Wong
I've been having similar issues after upgrading to the latest
5.4-STABLE. I used to have it running 5.4-STABLE with the GENERIC PAE
kernel. I rebuilt the world, and the kernel and now my bge (1Gbit)
gets a lot of watchdog timeout -- resetting issues.

I have acpi enabled in my kernel as well, perhaps this is also
affecting my server. I can't remember if the config has ACPI enabled
in the kernel. The only other difference I found in my old kernel
(PAE) configs and the generic one that comes with 5.4 is:

nodevice ehci (enhanced USB driver).

I'll try it with the NODEVICE ehci first and see if that fixes the
load / card issues. If not I'll try it with no acpi.

Thanks for the info.

On 7/28/05, dpk [EMAIL PROTECTED] wrote:
 Woah. Well, I guess I didn't try *everything*. Removing device acpi from
 the kernel config leaves me witih a PAE+SMP kernel that works fine. I can
 fetch files at wire speed and everything.
 
 So, I guess this issue is closed. acpi was the ultimate culprit.
 
 On Thu, 28 Jul 2005, dpk wrote:
 
  By the way, I also compared GENERIC performance against GENERIC w/
  options SMP added, and had the same results.
 
  On Wed, 27 Jul 2005, dpk wrote:
 
   We just received several SuperMicro servers, 3.0Ghz Xeon x 2, 4GB RAM.
   They're using the em driver and the ports are set to 1000Mbit (we also
   tried 100Mbit/full duplex on the card and on the switch). They're running
   FreeBSD 5.4.
  
   I ran a steady ping on a couple of them while they were running GENERIC,
   and then rebooted them with a kernel built with the PAE kernel included
   with the installation, with option SMP added.
  
   The PAE-SMP-GENERIC kernel was built after cvsup'ing with tag=RELENG_5_4
   and the uname reports 5.4-RELEASE-p5.
  
   Here are the ping results:
  
   GENERIC:
  
   117 packets transmitted, 117 packets received, 0% packet loss
   round-trip min/avg/max/stddev = 0.451/0.554/0.856/0.059 ms
  
   PAE-SMP-GENERIC:
  
   102 packets transmitted, 102 packets received, 0% packet loss
   round-trip min/avg/max/stddev = 0.569/4.262/7.944/2.065 ms
  
   Fetching a 637MB ISO from a local server, also on 100/FDX:
  
   GENERIC:
  
   /dev/null 100% of  637 MB   10 MBps 
   00m00s
  
   real0m58.071s
   user0m1.954s
   sys 0m6.278s
  
   PAE-SMP-GENERIC:
  
   /dev/null 100% of  637 MB 5764 kBps 
   00m00s
  
   real1m53.324s
   user0m1.478s
   sys 0m5.624s
  
   Running GENERIC, systat shows about 7000 interrupts/second, and around 600
   interrupts/second using PAE-SMP-GENERIC, while fetch was running.
  
   I've checked the errata and hardware notes, as well as gnats, and was not
   able to find anything that explains or matches this behavior. We've run
   SMP servers for years, using 4.5-4.11, but we've never seen the network
   performance cut in half (or pings go up 10x).
  
   Removing option SMP makes the problem go away, but at a very significant
   performance cost obviously.
  
   Could it be something from -p5? Is this explained/examined in a PR I've
   missed, and if so can I add some information?
  
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 


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


Re: huh?

2005-07-28 Thread Kirk Strauser
On Wednesday 27 July 2005 10:39, Chris wrote:

  Do you have curses like cisco rhce msce CCNA , maybe
  for free ?

 YOU - are an idiot... Read the list name... FreeBSD Questions...

I think he meant to ask, are there FreeBSD certifications similar to RHCE, 
MSCE, etc.?, which is a perfectly legitimate question.  Don't be so quick 
to anger.
-- 
Kirk Strauser


pgpgdkYjLcYwX.pgp
Description: PGP signature


Re: Wireless with Aironet 350 Card Help needed

2005-07-28 Thread Andrew L. Gould
On Thursday 28 July 2005 01:28 pm, Reeves, Brandon wrote:
 I have a Freebsd 5.3 Laptop with an Aironet 350 Card. I can get the
 card associated with the AP using WEP etc. However, I still can not
 ping the outside internet. I had this working while I was initially
 toying with the card but for some reason it no longer works. This is
 a new card I have added to my laptop to enable wireless since the
 embedded Intel card is not supported. I also can not ping any machine
 on the wireless and none of my other machines can ping me.. Any
 insight into this would be greatly appreciated.  One more note, I
 have installed the Linux-ACU port and it says I am associated but
 still gets no communication.

 Thanks


 Brandon Reeves
 Information Systems Security
 FMOL Health System
 Ph. 225.765.7984
 Fax: 225.765.5804
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


Brandon,

Please forgive the obvious questions:

1.  Are you pinging using hostnames or ip addresses?
2.  Does the result of 'ifconfig an0' show an ip address and netmask for 
the wireless interface?  (I'm assuming the wireless interface is an0.)
3.  Was the wireless interface configured manually or did you use 
dhclient?
4.  Is the default gateway set?
5.  Are the contents of /etc/resolv.conf correct?
6.  Did you add the local network hosts to /etc/hosts?
7.  Does your laptop have an active firewall that may be blocking 
packets?

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


Re: script for adding a samba-user

2005-07-28 Thread Glenn Dawson

At 11:25 AM 7/28/2005, [EMAIL PROTECTED] wrote:


hi,

been working on a script to add a samba-user, below an example which is
not working, can someone provide the fix here to make it work properly ?


It's difficult to help since you didn't provide a description of the 
problem beyond not working.


Taking a guess, I'd say that your problem is related to your use of the -s 
option to adduser.  That option specifies the shell for the user you are 
trying to add.  Even if you have a shell called scponly you would need to 
include the full path to that shell.


-Glenn



#!/bin/sh
adduser -G data -s scponly $1
smbpasswd $1

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


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


Re: defragmentation in FreeBSD 4.11

2005-07-28 Thread Lowell Gilbert
Bob Johnson [EMAIL PROTECTED] writes:

 Message: 6
 Date: Thu, 28 Jul 2005 11:20:31 +0300
 From: Victor Semionov [EMAIL PROTECTED]
 Subject: Re: defragmentation in FreeBSD 4.11
 To: freebsd-questions@freebsd.org
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain;  charset=windows-1251
 
 
   This is one of the things I find really hard to get Windows users to
   understand.  They just won't believe that a company like Microsoft would
   still be using a filesystem that needs defragmenting if it were possible
   to design one that didn't.  I often wonder why myself - after all, they
   must have put a fair amount of work into NTFS, which at least doesn't
   seem to get corrupted in a power failure.  Did they make a trade-off I
   don't understand, or is it just incompetence - or worse, a deal with
   disk manufacturers to sell more disk?
  
 
 Microsoft used to claim that NTFS doesn't need defragmentation.  Compared to 
 MSDOSFS, that's a reasonably accurate statement, but if you push it hard 
 enough, it will still become fragmented.
 
  Why is it unnecessary to defragment UFS?
  
 
 In normal use, files never become fragmented enough to affect performance.  
 In 
 a (loose) sense, files are intentionally fragmented in a controlled way so 
 that fragmentation doesn't cause problems.  If you run fsck on a partition, 
 you will typically see fragmentation levels of less than one percent.

Careful, there; fragmentation on a UFS is measuring a completely
different thing than the same term applied to a Microsoft filesystem.  
For UFS, it refers to non-contiguous free blocks (fragments,
actually), as opposed to the Microsoft terminology, where it refers to
non-contiguous blocks within the same file.

Everything you are saying is correct, but it will confuse people who
don't realize the difference.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba over VPN

2005-07-28 Thread Chris Haulmark
On Thu, 2005-07-28 at 20:06 +0200, cell wrote:
 Hello , i have created a VPN ( with openvpn-2.0_3 on freebsd 5.4 )  between 
 my network who has a gateway on freebsd 5.4 and others computer on  win xp, 
 and a network who has windows xp home as gateway.Windows xp home gateway used 
 openvpn 2 too and i have created a bridge in my freebsd gateway and the 
 windows xp gateway have created a bridge too.Now , i have configured samba  
 on my freebsd gateway and i must see normally (in my computers on windows xp 
 ) the windows xp gateway of the other network in my workgroup but i just see 
 this computer for ten minutes !!! After that , i don't see it any more and i 
 don't understand why !!! Anyone have an idea for this problem ? 
 


Turn on word wrap please.

Draw a diagram of what your network looks like.

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


Re: script for adding a samba-user

2005-07-28 Thread Chris Haulmark
On Thu, 2005-07-28 at 12:02 -0700, Glenn Dawson wrote:
 At 11:25 AM 7/28/2005, [EMAIL PROTECTED] wrote:
 
 hi,
 
 been working on a script to add a samba-user, below an example which is
 not working, can someone provide the fix here to make it work properly ?
 
 It's difficult to help since you didn't provide a description of the 
 problem beyond not working.
 
 Taking a guess, I'd say that your problem is related to your use of the -s 
 option to adduser.  That option specifies the shell for the user you are 
 trying to add.  Even if you have a shell called scponly you would need to 
 include the full path to that shell.

I also suspect not using -a for smbpasswd to add a new user.

Someone needs to read up on the manpages for those commands.

Chris
 
 -Glenn
 
 
 #!/bin/sh
 adduser -G data -s scponly $1
 smbpasswd $1
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: script for adding a samba-user

2005-07-28 Thread P.U.Kruppa

On Thu, 28 Jul 2005, [EMAIL PROTECTED] wrote:



hi,

been working on a script to add a samba-user, below an example which is
not working, can someone provide the fix here to make it work properly ?

#!/bin/sh
adduser -G data -s scponly $1
smbpasswd $1

Assuming you use samba3 something like

echo $PASSWORD | pw useradd $USER_NAME -g $GROUP -s /bin/sh \
  -h fd -c $REAL_NAME -m
(echo $PASSWORD; echo $PASSWORD)| smbpasswd -s -a $USER_NAME)

should do.

Regards,

Uli.



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





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


Re: script for adding a samba-user

2005-07-28 Thread [EMAIL PROTECTED]
On Thu, 28 Jul 2005 12:02:08 -0700
Glenn Dawson [EMAIL PROTECTED] wrote:

 been working on a script to add a samba-user, below an example which
 is not working, can someone provide the fix here to make it work
 properly ?
 
 It's difficult to help since you didn't provide a description of the 
 problem beyond not working.

i forgot the -a option for smbpasswd and the $1 for adduser was not
needed, the modified script below seems to be working instead

#!/bin/sh

adduser -G data -s scponly
smbpasswd -a $1

sorry for not being clear, and thanks for your input!

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


Re: defragmentation in FreeBSD 4.11

2005-07-28 Thread Lowell Gilbert
Freminlins [EMAIL PROTECTED] writes:

 Gayn Winters wrote:
  
  What I get from reading this article is that if the use of the file
  system is to store lots of small files, then use a small block size.  Am
  I missing something?
 
 No and yes! There is a minimum block and fragment size. In this case
 there were not enough contiguous fragments to enable an 8K file to be
 created. Without checking I believe Solaris uses 8K blocks.

That's correct, and also note that Solaris does not offer the
flexibility in block sizes that is available from FreeBSD.

And it is correct that a small block size will vastly reduce the
ability to hit this fully-fragmented condition.  At a cost of higher
overhead, of course.

  Also, in most situations, buying a big enough disk is far better than
  worrying about what happens when a not-big-enough disk starts to get
  full.
 
 Indeed. But... in the case I linked to there was apparently plenty of
 free space, just not enough free contiguous space. The author also
 implies that a bigger disk would not solve the problem:
 
   it creates and deletes tons of small files and thus the fragmentation 
   over a period of time.

Where plenty of free space is a large absolute number, but still a
small fraction of the disk.  Full fragmentation of the empty space
becomes exponentially less likely as the amount of free space
increases.

Note that when deciding where to allocate a fragment, there are two
possible policies the filesystem can follow: either a space-efficient
method that is more likely to require moving data when a file expands,
or a time-efficient method that will create new fragments more often.
FreeBSD can automatically shift between the two as the filesystem 
moves over or under a threshold percent full value.  Solaris, I
believe, needs to be explicitly changed between the two.

 As mentioned though I have never seen this myself despite running very
 busy mail and web servers with what must be billions of files being
 created/deleted in that time.
 
 It certainly grabbed my attention so I thought it may be of interest to 
 others.

It's an academic curiosity, but not an issue to take into account in
planning your data center.  Planning your filesystem layout, however,
may well be.

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


Re: FreeBSD 6

2005-07-28 Thread Kris Kennaway
On Tue, Jul 26, 2005 at 03:07:46PM -0500, Nikolas Britton wrote:

 One more thing... Will FreeBSD 5.4 kernel modules work under 6.x?

No, you have to recompile them.

Kris


pgptKs7RhvAiz.pgp
Description: PGP signature


Re: FreeBSD 6

2005-07-28 Thread Kris Kennaway
On Tue, Jul 26, 2005 at 03:00:49PM -0500, Nikolas Britton wrote:
 Do I always need to run 'make cleandepend' when rebuilding a kernel,
 normally I build my kernels the old school way?
 
 Is it just me or is -O2 now the default for kernel builds? What about
 -Os, safe to use?

Should be OK.

 The kernel build failed when it tired to compile the r128drm device.

Show us the error.

 Is it safe to run the ULE scheduler instead of the 4BSD scheduler, ULE
 is commented out in the default kernel?

ULE still has known bugs, particularly on SMP or with PREEMPTION
enabled.

Kris


pgpOiRreACqL7.pgp
Description: PGP signature


Re: FreeBSD 6

2005-07-28 Thread Kris Kennaway
On Tue, Jul 26, 2005 at 03:33:55PM -0500, Nikolas Britton wrote:

 At boot up I get these errors / warnings:
 kenv: unable to get dumpdev

How are you setting up your dumpdev?  Show us your config.

 no such user: _dhcp, falling back to nobody
 
 I left groups and master.passwd files to deal with later in
 mergemaster and then I manually added the dhcp user to both of those
 files but the system still can't find him.

_dhcp, not dhcp.

Kris

pgpe0VJtbeFBo.pgp
Description: PGP signature


Re: Samba over VPN

2005-07-28 Thread cell

The VPN network is look like http://www.linux-win.org/reseau.png
- Original Message - 
From: Chris Haulmark [EMAIL PROTECTED]

To: cell [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Thursday, July 28, 2005 9:07 PM
Subject: Re: Samba over VPN



On Thu, 2005-07-28 at 20:06 +0200, cell wrote:
Hello , i have created a VPN ( with openvpn-2.0_3 on freebsd 5.4 ) 
between my network who has a gateway on freebsd 5.4 and others computer 
on  win xp, and a network who has windows xp home as gateway.Windows xp 
home gateway used openvpn 2 too and i have created a bridge in my freebsd 
gateway and the windows xp gateway have created a bridge too.Now , i have 
configured samba  on my freebsd gateway and i must see normally (in my 
computers on windows xp ) the windows xp gateway of the other network in 
my workgroup but i just see this computer for ten minutes !!! After that 
, i don't see it any more and i don't understand why !!! Anyone have an 
idea for this problem ?





Turn on word wrap please.

Draw a diagram of what your network looks like.

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


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


Re: defragmentation in FreeBSD 4.11

2005-07-28 Thread Bob Johnson
On Thursday 28 July 2005 03:07 pm, Lowell Gilbert wrote:
 Bob Johnson [EMAIL PROTECTED] writes:
  From: Victor Semionov [EMAIL PROTECTED]
[...]
   Why is it unnecessary to defragment UFS?
 
  In normal use, files never become fragmented enough to affect
  performance.  In a (loose) sense, files are intentionally fragmented in a
  controlled way so that fragmentation doesn't cause problems.  If you run
  fsck on a partition, you will typically see fragmentation levels of less
  than one percent.

 Careful, there; fragmentation on a UFS is measuring a completely
 different thing than the same term applied to a Microsoft filesystem.
 For UFS, it refers to non-contiguous free blocks (fragments,
 actually), as opposed to the Microsoft terminology, where it refers to
 non-contiguous blocks within the same file.

 Everything you are saying is correct, but it will confuse people who
 don't realize the difference.

Yeah, I was trying to keep a long response from getting even longer.  And I 
didn't really know what fsck is measuring when it reports fragmentation, so I 
got lazy and glossed over it instead of digging up the information.

Thanks for keeping me honest,

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


Re: Can someone clarify ipfw's in/out/recv/xmit/via concepts?

2005-07-28 Thread Dave McCammon


--- Gary W. Swearingen [EMAIL PROTECTED] wrote:

 I see in another msg that I'm not the only one
 scratching my head over
 the ipfw manpage's explanation of
 in/out/recv/xmit/via concepts.  I've
 spent many hours reading that manpage and working on
 my rc.firewall
 (and it seems to work OK, based on the logging), but
 I can't figure
 out what it's trying to tell me, even with that nice
 ASCII art.
 
 (I hope your replies will help me get some
 clarifications into the
 manpage.)
 
^ to upper layers   v
|   |
+--+
^   v
   [ip_input]  [ip_output]  
 net.inet.ip.fw.enable=1
|   |
^   v
  [ether_demux][ether_output_frame] 
 net.link.ether.ipfw=1
|   |
+[bdg_forward]+   
 net.link.ether.bridge_ipfw=1
^   v
|  to devices   |
+   +
 
 FROM BOTH   TO BOTH
   NICS?  NICS?
 
 Here's a pic of my firewall:
 
   +--+
   | +-+  |
   | |KERNEL   |  |
   | +-+  |
   || || ||
   |v ^v ^|
   || || ||
   |  +-++-+  |
   |  | NIC |FW  | NIC |  |
   |  +-++-+  |
   || || ||
   +--+
| || |
v ^v ^
| || |
 
WANLAN
 
 The manpage says we have incoming and outgoing
 packets.
 In and out of what? NIC or kernel or ipfw or
 computer?
 
 The manpage describes:
  recv | xmit | via {ifX | if* | ipno | any}
 
 Is my de0 an ifX or an if*?
 (exact name or device name)
 
 What would be an example of the other?
 
 Does ipno mean an numerical Internet address?
 (It's not mentioned elsewhere in the manpage.)
 
 Does each of my NICs have both of the manpage's xmit
 and recv
 interfaces, or is one an xmit and one a recv for any
 one packet rule?
 
 If an incoming packet can be associated with an xmit
 interface, why
 can't an outgoing packet be associated with a recv
 interface?
 
 P.S.
 
 It seems that some people do their blocking of
 packets
 going from LAN to WAN on (so to speak) the LAN
 interface, some on
 the WAN interface, and some on both.  It doesn't
 seem to make much
 difference on a pure firewall, except for
 rule-writing convenience.
 Right?
 
 I suppose it would be best to put blocks everywhere
 possible
 or at least where the packets enter the computer. 
 Right?
 
 Help!!
 


Here is a link to a thread that help me to understand
the in/out/recv/xmit stuff.

http://groups-beta.google.com/group/comp.unix.bsd.freebsd.misc/tree/browse_frm/thread/240d22a55265689/4bb2dd91a376fa6c?rnum=1hl=en_done=%2Fgroup%2Fcomp.unix.bsd.freebsd.misc%2Fbrowse_frm%2Fthread%2F240d22a55265689%2F2c14cdd252d01ff2%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26rnum%3D4%26prev%3D%2Fgroups%3Fq%3Dipfw%2Bout%2Brecv%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D3B5E86C8.8438BEE7%2540amit.cz%26rnum%3D4%26#doc_8d3d7ceea76d1cca

ok kind of long ...do a search in google groups using-
Why is there a out recv interface spec in ipfw?






Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: huh?

2005-07-28 Thread Bryan Maynard
On Thursday 28 July 2005 06:55 pm, Kirk Strauser wrote:
 On Wednesday 27 July 2005 10:39, Chris wrote:
   Do you have curses like cisco rhce msce CCNA , maybe
   for free ?

  YOU - are an idiot... Read the list name... FreeBSD Questions...

 I think he meant to ask, are there FreeBSD certifications similar to
 RHCE, MSCE, etc.?, which is a perfectly legitimate question.  Don't
 be so quick to anger.

Thank you for saying that. I'd actually be interested in FreeBSD 
certification. I've learned a lot, but there's still so much I don't 
know :-)

Thanks,

Bryan
-- 
Open Source: by the people, for the people.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba over VPN

2005-07-28 Thread Chris Haulmark
On Thu, 2005-07-28 at 15:44 -0400, cell wrote:
 The VPN network is look like http://www.linux-win.org/reseau.png

Which of those machines are configured to be a bridge device?

Please don't top post. Reply under the original poster's lines.

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


MySQL - Cannot access as root

2005-07-28 Thread Gerard Seibert
I have just installed MySQL 5. I can access the program as a regular user, 
but not as root. As I regular user I have no privileges. If I attempt to 
access as root, I receive this error message.


ERROR 1045 (28000) Access denied for user 'root'@'localhost' (using 
password: NO)


I can access the program as root using: mysql -u root -p and then 
supplying a password at the prompt, but that is about it.


What can I do to correct this problem? I tried deleting the entire package 
and reinstalling it, but the problem continues. When I first installed the 
program, it worked, but only one time. Obviously, I did something, but I 
do not know what.


--
Gerard

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


Dead disk? READ_DMA Failure

2005-07-28 Thread Erik Nørgaard
Hi,

Please read on although this is a long one... I might panic and
coredump myself if I don't get this fixed.

I have a one year old Hitachi Travelstar 60GB/4200RPM disk. This
night and since then, I get these errors:

ad0: TIMEOUT - READ_DMA retrying (2 retries left) LBA=48926527
ad0: TIMEOUT - READ_DMA retrying (1 retry left) LBA=48926527
ad0: FAILURE - READ_DMA timed out

or

ad0: TIMEOUT - READ_DMA retrying (2 retries left) LBA=50299455
ad0: FAILURE - READ_DMA status=51READY,DSC,ERROR
error=40UNCORRECTABLE LBA=50299455

The LBA number varies, but otherwise it is consistent. Eventually
the device is removed from /dev and no disk is accessible,
although mount shows mounted devices.

I have booted in single user mode and run fsck manually multiple
times to correct all found errors, most errors are on /, /usr and
some on /var, yet the problem reappears.

I have tried to reinstall, toggling newfs to recreate /, /usr and
/var hoping that any bad blocks or sectors would be removed or
marked unusable. But the problem remains.

Is there a way I can reformat or fix the disk so that broken areas
will not be used again?

Please, how far from the grave are my data?

Any suggestion on which new drive to choose? I have looked at
Western Digital Scorpio WD600VE 60 GB.

Given the mentioned error, does this indicate an error that would
be covered by standard guarantee? after all the disk is just one
year old...

The system: FreeBSD 5.4, Epia Mini-ITX CL1000, 256MB RAM, 60 GB
HDD.

Thanks, Erik

GnuPG: http://www.locolomo.org/home/norgaard/norgaard.gpg.asc
pub  1024D/11D11F9E 2003-08-15 Erik Norgaard [EMAIL PROTECTED]
 Key fingerprint = C394 81C4 D137 EEE5 39BE  82D5 3E6B FB3E 11D1 1F9E

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


Determine processing holding open a 52+Gig file ...

2005-07-28 Thread Marc G. Fournier


'k, this is the second time its happened ... on a file system that is 
currently 35% full (52G free), all the disk space disappeared ...


Is there a way of finding out what process is holding open this immense 
file?



Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email: [EMAIL PROTECTED]   Yahoo!: yscrappy  ICQ: 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: MySQL - Cannot access as root

2005-07-28 Thread Andrew L. Gould
On Thursday 28 July 2005 04:20 pm, Gerard Seibert wrote:
 I have just installed MySQL 5. I can access the program as a regular
 user, but not as root. As I regular user I have no privileges. If I
 attempt to access as root, I receive this error message.

 ERROR 1045 (28000) Access denied for user 'root'@'localhost' (using
 password: NO)

 I can access the program as root using: mysql -u root -p and then
 supplying a password at the prompt, but that is about it.

 What can I do to correct this problem? I tried deleting the entire
 package and reinstalling it, but the problem continues. When I first
 installed the program, it worked, but only one time. Obviously, I did
 something, but I do not know what.

The system root user is separate from MySQL's root user.  The system 
root user should not be able to access the database server directly.  I 
think this is true for both MySQL and PostgreSQL.

If you can log in using 'mysql -u root -p [password]', then everything 
is okay to start.  It's not that you did something wrong, rather you 
haven't finished setting up the database for your user.

Database servers aren't like gui text editors.  It's important that you 
read the documentation.  Here are some helpful links:

Start here for your immediate needs:
http://dev.mysql.com/doc/mysql/en/default-privileges.html

Manual Index:
http://dev.mysql.com/doc/mysql/en/index.html

MySQL Tutorial:
http://dev.mysql.com/doc/mysql/en/tutorial.html

Best of luck,

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


Freebsd testing with squid. User authentication works, now trying to get group based auth

2005-07-28 Thread Derrick MacPherson
as the subject says, when I try to test group auth, I get:

/usr/local/libexec/squid/wb_group -d
/wb_group[19095](wb_check_group.c:344): External ACL winbindd group
helper build Jul 27 2005, 17:33:37 starting up...
/wb_group[19095](wb_check_group.c:308): Can't contact winbindd. Dying

proxy1# ps -axu|grep win
root  18826  0.0  0.4  7100  4224  ??  Ss9:21AM
0:00.05 /usr/local/sbin/winbindd
root  18827  0.0  0.4  6044  3720  ??  I 9:21AM
0:00.00 /usr/local/sbin/winbindd


Where can I start checking?


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


Re: Determine processing holding open a 52+Gig file ...

2005-07-28 Thread Glenn Dawson

At 02:40 PM 7/28/2005, Marc G. Fournier wrote:

'k, this is the second time its happened ... on a file system that is 
currently 35% full (52G free), all the disk space disappeared ...


Are you out of inodes? df -i


Is there a way of finding out what process is holding open this immense 
file?


fstat will give you that info.

-Glenn




Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email: [EMAIL PROTECTED]   Yahoo!: yscrappy  ICQ: 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


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


Re: Determine processing holding open a 52+Gig file ...

2005-07-28 Thread Philip Hallstrom
'k, this is the second time its happened ... on a file system that is 
currently 35% full (52G free), all the disk space disappeared ...


Is there a way of finding out what process is holding open this immense 
file?


I'm pretty sure lsof can tell you...

either just plain lsof or maybe with the directory name...

# lsof +D /tmp
COMMANDPID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
postgres 66218 postgres5u  unix 0xd9c93680  0t0  /tmp/.s.PGSQL.5432
sshd 66325 greg7u  unix 0xd9d02800  0t0  
/tmp/ssh-xIDIHoLn/agent.66325

+D D This  option  causes  lsof to search for all open instances of
directory D and all the files and directories it  contains  to its
complete depth.

Processing  of  the  +D  option does not follow symbolic links within D
unless the -x or -x  l option is also specified.  Nor does  it  search
for open files on file system mount points on subdirectories of D unless
the -x or  -x   f  option  is  also specified.

Note:  the  authority  of the user of this option limits it to searching
for files that the user has  permission  to  examine with the system
stat(2) function.

Further  note: lsof may process this option slowly and require a large
amount of dynamic memory to do it.  This is because it must  descend
the entire directory tree, rooted at D, calling stat(2) for each file
and directory, building a  list  of  all the  files  it finds, and
searching that list for a match with every open file.  When directory D
is large, these  steps  can take a long time, so use this option
prudently.

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


Sendmail help needed

2005-07-28 Thread Alexandre Vieira
Hello folks,

I'm trying to get past a standard in sendmail which is very simple. 

I have several machines reporting mails trough local MTA's (sendmail)
in each one of the boxes to our main mailserver. The thing is, I did
not developed the scripts and they are using mailx -s subj user
which normally would try to deliver it to a local account in the
machine. So the question is: Can I, in any way, define that every
user passed on the mailx in every script gets resolved to
[EMAIL PROTECTED] and not to a local system account? We have
hundreds of names in the scripts, so aliasing doesn't work for me.

My current hack is defining DR and DS in the sendmail.cf to a static
hostname but that takes redundancy to our mail system since if the
main mailserver is down the backup mail server (higher MX) won't take
any effect.

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


need some advice

2005-07-28 Thread dick hoogendijk
I have the chance to buy a new computer. It will take a long time before
I can do this again.

My options are:

Athlon64-3000+ (Newcastle) on a MSI K8T NEO-FSR board (1Gb 3200 mem)
Athlon64-3400+ (Clawhammer on the same board

Intel Prescott 3.4Mhz on a Intel 915p board (1024 Mb DDRII pc4300
memory)

Is there much difference between the athlon3000/3400 ??
Will the intel platform have (dis)advantages ?

I will run FreebSD on it (compile a lot of ports) and (windows-xp/98se)
for gaming.

Price is important. I.e. buying the athlon3000 gives me the opportunity
to buy something else, BUT if the speed of the 3400+ is much better, I
can buy that other stuff later.. if you see what I mean. I just want a
machine that last a litthle longer...

I.e. the intel MB has a PCIe grahics slot. How important is that (or
not). I will buy a Geforce-6600GT videocard (offer most for less
money..)

Any advice is welcome.

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4
+ Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sendmail help needed

2005-07-28 Thread Glenn Dawson

At 03:17 PM 7/28/2005, Alexandre Vieira wrote:

Hello folks,

I'm trying to get past a standard in sendmail which is very simple.

I have several machines reporting mails trough local MTA's (sendmail)
in each one of the boxes to our main mailserver. The thing is, I did
not developed the scripts and they are using mailx -s subj user
which normally would try to deliver it to a local account in the
machine. So the question is: Can I, in any way, define that every
user passed on the mailx in every script gets resolved to
[EMAIL PROTECTED] and not to a local system account? We have
hundreds of names in the scripts, so aliasing doesn't work for me.


If you don't _ever_ want things to be delivered locally, you can create 
what sendmail calls a null client.  That will send all mail to the address 
you specify.  You can get more details from /usr/share/sendmail/cf/README


-Glenn



My current hack is defining DR and DS in the sendmail.cf to a static
hostname but that takes redundancy to our mail system since if the
main mailserver is down the backup mail server (higher MX) won't take
any effect.

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


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


Re: Large filesystem woes

2005-07-28 Thread dpk
On Thu, 21 Jul 2005, Giorgos Keramidas wrote:

 Are you trying to start from scratch, or just making changes to the
 existing table?  If it's the second, then try the -u option:

   # fdisk -u /dev/da0

 This should give you a chance to interactively change the partition
 table of the disk.  If this fails too, please show us the exact command
 line you used and the exact error messages.

 - Giorgos

Unfortunately I can't run fdisk -u, if that command will wipe out the
partition table, since / is also on the array, just in a smaller
partition.

I found this page:

http://www.freebsd.org/projects/bigdisk/

It was last updated in January. Has there been more progress on this
front? I wonder if this is all a known problem, and I just overlooked it
because of my understanding that UFS2 is supposed to handle large
partitions.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Large filesystem woes

2005-07-28 Thread Giorgos Keramidas
On 2005-07-28 15:52, dpk [EMAIL PROTECTED] wrote:
On Thu, 21 Jul 2005, Giorgos Keramidas wrote:
 Are you trying to start from scratch, or just making changes to the
 existing table?  If it's the second, then try the -u option:

  # fdisk -u /dev/da0

 This should give you a chance to interactively change the partition
 table of the disk.  If this fails too, please show us the exact command
 line you used and the exact error messages.

 Unfortunately I can't run fdisk -u, if that command will wipe out the
 partition table, since / is also on the array, just in a smaller
 partition.

It won't wipe away the table.  It will just let you edit the existing
table interactively, through a series of questions like:

- Do you want to edit partition 1?
- Do you want to edit partition 2?
- Do you want to edit partition 3?
- Do you want to edit partition 4?
- Do you want to change the active partition?
- Do you want to save your changes to the disk?

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


Re: need some advice

2005-07-28 Thread Benjamin Lutz
dick hoogendijk wrote:
 Is there much difference between the athlon3000/3400 ??
 Will the intel platform have (dis)advantages ?

Well, the 3400+ will be slightly faster when it comes to number
crunching. They'll be up to par to the Intel chip, but the Intel system
will cost more.

If price is important, why not go for a Sempron 3100+ using the Palermo
core? Granted, it's a bit slower than the Athlon64 3000+, but it does
have an advantage: Under load, it outputs 62W of heat instead of 89W
like the 130nm Athlon64 cores. And of course it only costs half of what
the Athlon64s cost.

 Price is important. I.e. buying the athlon3000 gives me the opportunity
 to buy something else, BUT if the speed of the 3400+ is much better, I
 can buy that other stuff later.. if you see what I mean. I just want a
 machine that last a litthle longer...

You'll have to figure out the sweet spot for yourself really... there
are benchmarks available on the web.

 I.e. the intel MB has a PCIe grahics slot. How important is that (or
 not). I will buy a Geforce-6600GT videocard (offer most for less
 money..)

At the moment, Gaming GFX cards are being released for both PCIe and
AGP, so AGP means no loss yet. By the time you'll get a new GFX card,
you'll probably want to upgrade your CPU as well anyway, which means
upgrading the mainboard...


signature.asc
Description: OpenPGP digital signature


Re: need some advice

2005-07-28 Thread Garrett Cooper

On Fri, 29 Jul 2005, dick hoogendijk wrote:


I have the chance to buy a new computer. It will take a long time before
I can do this again.

My options are:

Athlon64-3000+ (Newcastle) on a MSI K8T NEO-FSR board (1Gb 3200 mem)
Athlon64-3400+ (Clawhammer on the same board

Intel Prescott 3.4Mhz on a Intel 915p board (1024 Mb DDRII pc4300
memory)

Is there much difference between the athlon3000/3400 ??
Will the intel platform have (dis)advantages ?

I will run FreebSD on it (compile a lot of ports) and (windows-xp/98se)
for gaming.

Price is important. I.e. buying the athlon3000 gives me the opportunity
to buy something else, BUT if the speed of the 3400+ is much better, I
can buy that other stuff later.. if you see what I mean. I just want a
machine that last a litthle longer...

I.e. the intel MB has a PCIe grahics slot. How important is that (or
not). I will buy a Geforce-6600GT videocard (offer most for less
money..)

Any advice is welcome.

--
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4
+ Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja


Wha?!?! Win98?!?! are you insane? The only thing I could see justifying 
that would be playing PSX games with bleem (since it was only supported on 
98), and that's it. Not only that, 98 wasn't built with today's hardware, 
so all in all it will be EXCEPTIONALLY slow performance wise. Heh. I 
remember running win98 on a faster P3 and the fact that it was so horribly 
slow.

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


Re: Large filesystem woes

2005-07-28 Thread dpk
On Fri, 29 Jul 2005, Giorgos Keramidas wrote:

 It won't wipe away the table.  It will just let you edit the existing
 table interactively, through a series of questions like:

   - Do you want to edit partition 1?
   - Do you want to edit partition 2?
   - Do you want to edit partition 3?
   - Do you want to edit partition 4?
   - Do you want to change the active partition?
   - Do you want to save your changes to the disk?

# df -k
Filesystem  1K-blocksUsedAvail Capacity  Mounted on
/dev/da0s1a  35082074 1147642 31127868 4%/
devfs   1   10   100%/dev
procfs  4   40   100%/proc
# fdisk -u
fdisk: cannot open disk /dev/da0: No such file or directory
# ls -ald /dev/da0*
crw-r-  1 root  operator4,  12 Jul 28 15:56 /dev/da0
crw-r-  1 root  operator4,  13 Jul 28 15:56 /dev/da0s1
crw-r-  1 root  operator4,  18 Jul 28 08:56 /dev/da0s1a
crw-r-  1 root  operator4,  19 Jul 28 15:56 /dev/da0s1b
crw-r-  1 root  operator4,  20 Jul 28 15:56 /dev/da0s1c

truss indicates that fdisk may be getting the error from somewhere else:

stat(/dev/da0,0xbfbfeb30)  = 0 (0x0)
open(/dev/da0,0x2,00)  ERR#1 'Operation not permitted'
open(/dev/da0,0x0,027757765630)= 6 (0x6)
open(/dev/da0s1,0x2,01001210100)   ERR#1 'Operation not permitted'
open(/dev/da0s2,0x2,01001210100)   ERR#2 'No such file or 
directory'
open(/dev/da0s3,0x2,01001210100)   ERR#2 'No such file or 
directory'
open(/dev/da0s4,0x2,01001210100)   ERR#2 'No such file or 
directory'

Because it is using devfs, I'm not able to create these missing slices in
/dev. Most unfortunately, it appears it uses devfs in single user mode as
well, so I can't test the theory.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   >