Re: a monster stole my /

2008-04-29 Thread Jack Raats

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


- - Original Message -
From: Hartleigh Burton [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Tuesday, April 29, 2008 6:40 AM
Subject: a monster stole my /



Hiya!

I have a problem with / currently being at 108% capacity. I have found
a previous thread in the archives which explains a few questions but I
can't find what is taking up all the additional space. At best without
destroying what I still do not understand I can manage to get / to
about 101% capacity.

To answer a couple of potential questions straight up, there is
nothing in /root and /tmp is on a separate partition.

intranet# df -h
Filesystem   SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a  989M986M-76M   108%/
devfs1.0K1.0K  0B   100%/dev
/dev/da0s1e  989M216K910M 0%/tmp
/dev/da0s1f   58G4.8G 48G 9%/usr
/dev/da0s1d  4.8G2.2G2.3G49%/var
/dev/da1p1   3.3T682G2.4T22%/db
devfs1.0K1.0K  0B   100%/var/named/dev



I once had the same problem.
A .core file in the / caused the problem.
After deleting the .core file everything was back to normal

Jack
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32) - GPGrelay v0.959

iD8DBQFIFrcmPh5RwW/NzC4RAmi6AJ4y2w8TFbjui35jOhExaPSzI0PzngCgmjVw
KRkjtNbM8jI97Yy/5Fto4ok=
=eY56
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FBSD install fails with nforce on asus p5n-e sli. any ideas?

2008-04-29 Thread Sdavtaker

Hello,
Im trying to install 7.0 from boot only CD and having problems detecting 
the network.

The NIS is a nforce integrated to the mother asus P5n-e sli
The card is working in DFBSD and windows, I think it worked in Linux 
too, but need to try it out again to be sure about the last.

Dhclient fails, write the config by hand doesnt work neither.
Someone had installed 7.0 with this mother?
Thanks for any help.
Sdav
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Spawning Xdialogs from devd...

2008-04-29 Thread Gary Newcombe

G'day.

This is an X61 laptop, and I'm trying to use the Fn keys to call scripts to do 
various jobs, while informing users or getting input using Xdialog popups.

Here's an example case. Rebooting the pc if pressing Fn+F4.

[/etc/devd.conf]
...
notify 10 {
match system  ACPI;
match subsystem   IBM;
action /root/bin/acpi_oem_exec.sh $notify ibm;
};

[/root/bin/acpi_oem_exec.sh]
...
#!/bin/sh
NOTIFY=`echo $1`
case ${NOTIFY} in
0x04)
/home/rep/bin/script.sh 
MESSAGE=do script
;;
*)
MESSAGE=nothing found
;;
esac
...


[/etc/sysctl.conf]
...
dev.acpi_ibm.0.events=1


[/home/rep/bin/reboot.sh]
...
#!/bin/sh
if [ ! -f /tmp/reboot ] ; then
  touch /tmp/reboot
  title=Reboot computer
  msg=Laptop is rebooting immediately...
  Xdialog --title $title --beep --ok-label OK --infobox $msg 5 40 2000   
/dev/null 21
  wavplay /home/rep/sounds/shutdown.wav  /dev/null 21
  shutdown -r now
fi
exit 0

From a fresh boot and startx, pressing Fn+F4 from the window manager (Window 
Maker) calls the script and executes, but no Xdialog or sound. If I startx and 
run devd in the foreground with:

sh /etc/rc.d/devd stop  devd -dD\

all is fine, Xdialogs displayed and sound too. Likewise, if I restart devd from 
an xterm (sh /etc/rc.d/devd restart), all is fine:

However, if I restart devd from an ssh term or another console, only sound, no 
Xdialogs.

I'm curious to know what is actually going on here. I wouldn't have thought the 
context from which devd is restarted would make any difference, but clearly it 
does. Any clues?

Also, does anyone have any ideas how I can call Xdialog to get the windows 
displayed?

Many thanks,
Gary

---






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


Re: wine: notepad OK, others not

2008-04-29 Thread perryh
 Wine has its own simple version of Wordpad though.
 Just run wine wordpad.

This version has its own notepad, but it doesn't appear to have
wordpad.  (There's no wordpad.exe that I can find, but there
are two identical copies of notepad.exe -- one in .../windows
and the other in .../windows/system32.)

 I'm not entirely sure, but I think the :: link is only used for
 raw access to devices. Wine doesn't mount disks on its own.

For floppies, which AFAIK are always formatted as FAT, I'd settle
for having it use mtools so the disk wouldn't need to be mounted
at all :)
___
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 reconnecting ppp (ppp -ddial isp)

2008-04-29 Thread Ivan Toman

   cpghost wrote:

On Sat, 26 Apr 2008 21:12:11 +0200
Ivan Toman [1][EMAIL PROTECTED] wrote:



First problem get when ISP disconnect me after 24 hours due to IP
change. Link does not properly get reconnected. ppp tries to connect,
and appearenty is connected, but something is wrong because no
traffic is possible and after few seconds ppp goes down and
reconnects again. And again and again Strange above all is that
during reconnecting routing table always has default route, but ping
does not go. Next, I will put some information that I think is
relevant to problem, but it seems to me, not very useful in debugging
this.


I don't know if it's exactly the same problem, but I've had a similar
problem with userland ppp and even submitted logfiles of forced
disconnects. I thought the problem was with ng_pppoe, but apparently,
it is with ppp(8). Unfortunately, ppp's maintainer didn't reply or
chime in, and the problem is obviously still lingering there, deep
inside ppp or between ppp and ng_pppoe. :( The thread started here:

[2]http://lists.freebsd.org/pipermail/freebsd-stable/2007-December/038874.html

You may not have hit the very same bug, but the circumstances are
pretty much similar. Someone really ought to have a look at ppp.

Fortunately, with the help from Alexander and Julian, I've switched
to net/mpd5, and didn't encounter any problems with this 24h forced
ADSL disconnect ever since (running RELENG_7 now). Just give it a
try: you'll like it!

I'm now using the following /usr/local/etc/mpd5/mpd.conf:


   Hello dear cpghost, thanks for answer!
   I don't know why but it seems that some messages sent to mailing list
   does not appear imediately (in fact, I sent yesterday one that is not
   even now there as reply to Patrick Lamaizière's post).
   In that reply I stated that i managed to use that mpd client instead
   of ppp and it works great! I found no case when it hangs, so for now I
   can tell the problem is solved. Just, couldn't find way to configure
   mpd5, it seems it does not have same rules for conf file as mpd4 that
   I setup to work for me. Now with your example, I will probably try to
   upgrade to mpd5, thanks.
   Yes it does look to me as ppp bug, or in something closely related to
   ppp. If somebody want to go deeper into this I can send more findings
   of myself, but for me, mpd will go on from now.
   Thanks all!
   (hope message will appear on mailing list)
   Ivan

References

   1. mailto:[EMAIL PROTECTED]
   2. 
http://lists.freebsd.org/pipermail/freebsd-stable/2007-December/038874.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: a monster stole my /

2008-04-29 Thread Hartleigh Burton

That solved my problem thank you Colin.

Stopped MySQL, unmounted /dev/da1p1 - /db, removed old MySQL data  
files, remounted da1p1  restarted MySQL.


intranet# df -H
Filesystem   SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a  1.0G 91M864M10%/
devfs1.0k1.0k  0B   100%/dev
/dev/da0s1e  1.0G229k954M 0%/tmp
/dev/da0s1f   62G5.1G 52G 9%/usr
/dev/da0s1d  5.2G2.3G2.4G49%/var
devfs1.0k1.0k  0B   100%/var/named/dev
/dev/da1p1   3.6T733G2.6T22%/db





On 29/04/2008, at 3:34 PM, Colin Yuile wrote:


On Tue, 29 Apr 2008 14:40:09 +1000
Hartleigh Burton [EMAIL PROTECTED] wrote:


Hiya!

I have a problem with / currently being at 108% capacity. I have  
found
a previous thread in the archives which explains a few questions  
but I
can't find what is taking up all the additional space. At best  
without

destroying what I still do not understand I can manage to get / to
about 101% capacity.

To answer a couple of potential questions straight up, there is
nothing in /root and /tmp is on a separate partition.

intranet# df -h
Filesystem   SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a  989M986M-76M   108%/
devfs1.0K1.0K  0B   100%/dev
/dev/da0s1e  989M216K910M 0%/tmp
/dev/da0s1f   58G4.8G 48G 9%/usr
/dev/da0s1d  4.8G2.2G2.3G49%/var
/dev/da1p1   3.3T682G2.4T22%/db
devfs1.0K1.0K  0B   100%/var/named/ 
dev


intranet# du -h -d1
2.0K./.snap
1.5K./dev
218K./tmp
4.8G./usr
2.2G./var
1.7M./etc
2.0K./cdrom
2.0K./dist
1.1M./bin
 71M./boot
4.4M./lib
360K./libexec
2.0K./media
512B./net
2.0K./proc
3.8M./rescue
 26K./root
4.1M./sbin
512B./host
682G./db
689G.



If I move the old kernel/GENERIC files from /boot I can manage to get
back to 101%, I really have no idea where the rest of the space has
gone though. Is there any way to locate large files on a specific
partition?

I did have a problem not too long ago where my /db array did not  
mount

and MySQL managed to recreate the default/sample database on /db/
mysql, could this default database be somewhere else on / while the /
db array problem was fixed?

*scratches head*




It is possible that you have mounted a filesystem onto a non empty  
directory.
The stuff in the dir used as a mount point will be hidden by the  
mount.


Colin



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


Re: cvsup:Release not specified for collection

2008-04-29 Thread Ruel Luchavez
Hi,

put # in your first host, base and prefix. dont use the both host.

it will work then..

best reagards..


On Tue, Apr 29, 2008 at 12:21 PM, Mayank Jain Nawal [EMAIL PROTECTED]
wrote:



 Hi,

 Use the following supfile.




 #supfile

 *default host=cvsup1.FreeBSD.org
 *default base=/usr
 *default prefix=/usr
 *default release=cvs tag=.
 *default delete use-rel-suffix

 ports-all



 Don't use both of the options like host as well as default host comment
 out
 one from both of the option.

 Regards
 Mayank Jain Nawal



 Hi,

 I am trying to update my ports collection for the first time on a
 FreeBSD4.8 i386 machine. I've edited the example file. I'm getting the
 error:

 Release not specified for collection host=cvsup1freebsd.org

 Here is my ports-supfile:

 # $FreeBSD: src/share/examples/cvsup/ports-supfile,v 1.19.2.8 2002/12/15
 15:47:22 lioux Exp $
 host=cvsup1freebsd.org
 base=/usr
 prefix=/usr
 *default host=cvsup1.FreeBSD.org
 *default base=/usr
 *default prefix=/usr
 *default release=cvs tag=.
 *default delete use-rel-suffix

 ports-all

 Do I have this file setup correctly?

 TIA,

 Tim
 tim at cxq5.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]


raid and dump/restore after the disaster

2008-04-29 Thread Roberto Nunnari

Hi all!

I'm playing with new HW and FreeBSD 6.3 and 7.0.

I set up raid 1 on two sata disks (fakeraid on ICH9R)
and as long as I can see, it seams to work very well.

Now I'm trying to simulate 1 disk failure (I just take
out a disk and boot again). Doesn't matter which of the
two disks I take out, the bios correctly shows the raid
as degraded and bootable, loads the FreeBSD loader, who
loads the kernel and starts the boot.
But when the kernel comes to the drives (or the swap?)
it fatal traps 12. The trap descriptions sais that
current process is 0 (swapper).

Reading that I commented out the swap partition from fstab,
but that doesn't help.

How can I get the system to finish the boot?

Thank you and best regards.

--
Robi

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


Re: is this hardware supported?

2008-04-29 Thread Roberto Nunnari

Hi.

Here I'm back with a very short report on installing
FreeBSD 6.3/7.0 and others on this mainboard:
http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ClassValue=MotherboardProductID=2534ProductName=GA-G33M-DS2R

It's a Gigabyte (model GA-G33M-DS2R) mainboard based on
the Intel G33 + ICH9R Chipset and Intel E8200 processor.

I tried to install FreeBSD 6.3 and 7.0, xen 4.1 and CentOS 5.1

The results are all in favour of FreeBSD :)

FreeBSD:
It installs without any problem both using MB SATA fakeraid
or plain SATA disk. All HW is correctly recognized and in no
more than 5 minutes FreeBSD is fully installed, configured
and up and running on network. No tests on graphics, though.

xen:
Installation fails as it says the system doesn't have a NIC.
After providing the NIC driver during installation, linux
doesn't see the SATA fakeraid, but only the bare disks.

CentOS:
Installation gets to the end and lets a bootable system, but
the system doesn't recognice the NIC nor the SATA fakeraid.
Graphics is correctly configured and Gnome starts up correctly.

Best regards.


Roberto Nunnari wrote:

Roland,

Thank you for your support. I'll post here the result of
installing FreeBSD on that HW.

Best regards.
Robi.


Roland Smith wrote:

On Sat, Apr 19, 2008 at 06:45:40PM +0200, Roberto Nunnari wrote:

Hi!

Ok. So what about this?
http://de.asus.com/products.aspx?modelmenu=2model=1178l1=3l2=11l3=307 



Has anybody been using it?
With what success?
Can anybody use the embedded RAID controller to make a HW RAID 1
with two SATA disks?


According to ata(4), the ICH8 chipset is supported. According to
ataraid(4) the jmicron is supported.

But if it doesn't work, you can always use gmirror(8).


Is the NIC supported and working well?


Hard to say. The spec page you provided doesn't list the type of Realtek
chip used. Again, if it doesn't work get a cheap Realtek 8139 card.


Again, I couldn't find any of its chipsets in the 6.3 supported
HW list, so that's why I ask the list.


It is better to check the manual pages of drivers.
 

But in this case I'm a bit muc more confident that FreeBSD 6.3
can run on this HW


I recently booted FreeBSD on a system with a intel motherboard with a
ICH9 chipset. Everything seemed to work OK.

Roland


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



--
Robi

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


help

2008-04-29 Thread Dedan Kiruri
I have a  Free Bsd server  and I don't know how to update 1. antivirus.

 
2. Adjust the spam assassin levels.

 

I get this message after  sending mails 501 failure after end of data Bad
from mx records Cached

relay

not

 permitted (in reply to RCPT TO command)

 

unexpected disconnection while reading  SMTP  command from hydstra.com  

 

Thanks 

Dedan Kiruri ou
IT Support Co-ordinator
African Palliative Care Association
PO Box 72518
Plot 850 Dr Gibbons Road
Kampala, Uganda
Mob: +256 752 664 514 
Tel: +256 414 266251
Fax: +256 414 266217
email:  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

 http://www.apca.co.ug/ www.apca.co.ug

APCA's Mission Statement is to promote and support affordable and culturally
appropriate Palliative Care throughout Africa

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain private, confidential, and/or
privileged information.  If you are not the intended recipient, please
advise the sender ( mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED]) immediately and destroy all copies of the original
e-mail message and any attachments.  Any use, distribution, amendment,
copying or any action taken or omitted to be taken in reliance of this
message or attachments is prohibited

 

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


Re: help

2008-04-29 Thread Wojciech Puchar

ask the one who installed it.


On Tue, 29 Apr 2008, Dedan Kiruri wrote:


I have a  Free Bsd server  and I don't know how to update 1. antivirus.


2. Adjust the spam assassin levels.



I get this message after  sending mails 501 failure after end of data Bad
from mx records Cached

relay

not


permitted (in reply to RCPT TO command)




unexpected disconnection while reading  SMTP  command from hydstra.com



Thanks

Dedan Kiruri ou
IT Support Co-ordinator
African Palliative Care Association
PO Box 72518
Plot 850 Dr Gibbons Road
Kampala, Uganda
Mob: +256 752 664 514
Tel: +256 414 266251
Fax: +256 414 266217
email:  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

http://www.apca.co.ug/ www.apca.co.ug

APCA's Mission Statement is to promote and support affordable and culturally
appropriate Palliative Care throughout Africa

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain private, confidential, and/or
privileged information.  If you are not the intended recipient, please
advise the sender ( mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED]) immediately and destroy all copies of the original
e-mail message and any attachments.  Any use, distribution, amendment,
copying or any action taken or omitted to be taken in reliance of this
message or attachments is prohibited



___
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]


Distfile size mismatch for ImageMagick portupgrade

2008-04-29 Thread Mike Clarke

Upgrading ImageMagick from 6.3.6.9 to 6.4.0.11 fails after downloading 
the distfile with size mismatch: expected 5837175, actual 5836089.

I don't see anything relevant in UPDATING or on the Freshports site. 
I've run pkgdb -u and downloaded a fresh copy 
of /usr/ports/graphics/ImageMagick but still get the problem.

Is this a general problem or have I overlooked something?

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


install.cfg and command

2008-04-29 Thread Omer Faruk Sen
Hi,

At
http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/040502.htmlit
states that I can run commands while installing server like:

command=echo keyrate=fast  /etc/rc.conf
system

But when I use that I get error I can't issue that command. Is there a
speacial way  to execute commands like that in install.cfg ( echo   
file_on_disk_not_in_memory_filesystem   )
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: install.cfg and command

2008-04-29 Thread Wojciech Puchar

http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/040502.htmlit
states that I can run commands while installing server like:

command=echo keyrate=fast  /etc/rc.conf


 command=echo keyrate=\fast\ /etc/rc.conf


system

But when I use that I get error I can't issue that command. Is there a
speacial way  to execute commands like that in install.cfg ( echo   
file_on_disk_not_in_memory_filesystem   )
___
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: OS throws away large packets

2008-04-29 Thread Yehonatan Yossef
 

 -Original Message-
 From: Tom Judge [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 28, 2008 8:21 PM
 To: Mr Y
 Cc: freebsd-questions@freebsd.org; [EMAIL PROTECTED]
 Subject: Re: OS throws away large packets
 
 Mr Y wrote:
  Hi all,
  
  I'm trying to implement Large Recieve Offload for an 
 Ethernet driver 
  on FreeBSD 6.3, but all my MTU packets are being thrown by the OS.
  I'm using mbuf chains in this imlpementation, each mbuf is 
 a cluster 
  of MCLBYTES bytes. They are linked by the m_next pointer.
  The first packet being thrown away is 2945 bytes long. 
 Wireshark shows 
  the packet that is being passed to the OS is correct.
  
  Do I need to set some OS parameter to make it recieve mbuf chains?
  
  Please help.
  
 
 Hi Yony,
 
 I seem to remember some discussion about this list last year 
 see the following threads:
 

http://lists.freebsd.org/pipermail/freebsd-net/2007-September/015250.htm
l

http://lists.freebsd.org/pipermail/freebsd-net/2007-September/015350.htm
l

From my limited reading of these threads just now and possibly bad
memory.  It would seem that the MRU to MTU relationship is defined in
the nic driver rather than 
 enforced further up the stack or at least that seamed to be the case
with the bce driver.

Hope this is helpful,
 
 Tom

Hi Tom,

From what I understand these threads are referring to the bce hardware
configuration (bus configuration) and driver mbuf allocation size. Am I
correct?
In my case I'm not trying to receive packets MTU from the HW, but to
chain mbuf clusters, each is MCLBYTES long, and pass the mbuf chain to
the OS.
Since tcpdump (analyzed by wireshark) catches the packets above the
driver and reports a good packet (and 2945 bytes long), I assume my
driver functionality is ok. From what I know tcpdump is supposed to
immitate the way the stack sees the packet, yet it is discarded.
My logic says there is an OS parameter handled by the driver (at net
device init time for example) that will set the OS to receive large mbuf
chains, or a kernel tcp parameter. Is the tcp stack submitted to the mtu
somehow?

Yony

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


OpenLDAP/FreeBSD: How to implement attribute HOST without STRUCTURAL account?

2008-04-29 Thread O. Hartmann

Hello out there,
my question may sound a bit weird, but the situation is as follows:

I use OpenLDAP 2.4 for authetication purposes within our lab's net and 
every user's account is of the objectclass 'posixAccount'. As we know, 
this class does not contain the attribute 'host', which belongs to 
structural class 'account' and both posixAccount and account  are of 
type structural and therefore can not be mixed.


For some first steps in host-based and LDAP-backed up logins I need to 
allow logins on several machines by looking at the host (I use PAM for 
both authtentication and accounting).


Looking at /usr/local/etc/nss_ldap.conf (or simply ldap.conf) I find a tag

pam_check_host_attr yes

to be set when we want to use host based logins. But this does not work 
due to the above mentioned reasons.


Is there a elegant workaround for this situation?

Thanks in advance,
Oliver

--

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


Re: OpenLDAP/FreeBSD: How to implement attribute HOST without STRUCTURAL account?

2008-04-29 Thread Jonathan Chen
On Tue, Apr 29, 2008 at 10:07:44AM +, O. Hartmann wrote:
 Hello out there,
 my question may sound a bit weird, but the situation is as follows:
 
 I use OpenLDAP 2.4 for authetication purposes within our lab's net and 
 every user's account is of the objectclass 'posixAccount'. As we know, 
 this class does not contain the attribute 'host', which belongs to 
 structural class 'account' and both posixAccount and account  are of 
 type structural and therefore can not be mixed.

Is there really such a rule? There's an of examples in
O'Reilly's LDAP System Administration that has a mixed
account + posixAccount objectClasses for a node to implement
the situation of: One User and a Group of Hosts.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
 Vini, vidi, velcro...
 I came, I saw, I stuck around
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OpenLDAP/FreeBSD: How to implement attribute HOST without STRUCTURAL account?

2008-04-29 Thread O. Hartmann

Jonathan Chen wrote:

On Tue, Apr 29, 2008 at 10:07:44AM +, O. Hartmann wrote:

Hello out there,
my question may sound a bit weird, but the situation is as follows:

I use OpenLDAP 2.4 for authetication purposes within our lab's net and 
every user's account is of the objectclass 'posixAccount'. As we know, 
this class does not contain the attribute 'host', which belongs to 
structural class 'account' and both posixAccount and account  are of 
type structural and therefore can not be mixed.


Is there really such a rule? There's an of examples in
O'Reilly's LDAP System Administration that has a mixed
account + posixAccount objectClasses for a node to implement
the situation of: One User and a Group of Hosts.


Well, simply try to include both structural object classes 'account' and 
posixAccount and you'll get a class violation - so it is here ...


Oliver

P.S. O'Reilly's book seems to be a little bit outdated, it reflects 
schemata prior to OpenLDAP 2.3 I guess and I use 2.4 by the way. I read 
many turoials mixin up both account and posixAccount but this isn't 
allowed any more with newer versions - as I understand.

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


Problem Installing, BTX Halted

2008-04-29 Thread Felix Toh
Hi there,
   
  I am new to FreeBSD and trying to install a fresh FreeBSD OS to my computer. 
However, I am getting BTX error as below: 
   
  Building the boot loader arguments
Looking up /BOOT/LOADER.. Found
relocating the loader and the BTX
Starting the BTX loader
  BTX loader 1.00 BTX version is 1.01
Consoles: internal video/keyboard
  int=000d err= efl=00030206 eip=2937
eax=8001 ebx=0700 ecx= edx=009f
esi=0b3c edi= ebp= esp=03d2
cs=f000 ds=48ae es=4892 fs= gs= ss=9dbb
cs=eip=2e 0f 01 16 58 2b 0f 20-c0 0c 01 0f 22 c0 b8 30
   00 8e c0 0f 20 c0 24 fe-0f 22 c0 eb 00 66 58 c3
ss:esp=01 80 00 00 20 28 00 00-00 00 3c 0b 00 00 00 00
   00 00 f8 03 00 00 00 07-00 00 9f 00 00 00 00 00
BTX halted
   
  I have verified my CD built from iso image (tried both i386 and AMD64 ) and 
could not figure out what the problem is. I have also disable all unrelated 
BIOS setting but still no luck. Hope someone will be able to help out.
   
  FYI, my system is: 
  Processor: AMD Athlon 64 X2 Dual Core Processor 4000+
Memory: 1GB, Single Channel, 64-Bit, 2T
Main Board: Abit NF-M2P
  Bios: v6.00PG
NVMM: 4.071.0302/02/07
  80GB Hard-drive.
   
  Thanks.
   
  Regards,
  Felix

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


CVSUP mirror failed on 7.0-RELEASE - Unknown collection src-all

2008-04-29 Thread John Mok

Hi,

I tried to setup a local mirror by installing cvsup-mirror on FreeBSD 
7.0-RELEASE. The update.sh run to completion, but client failed to cvsup 
to the local mirror.


In cvsupd.log, the error messsages follow :-

Apr 29 21:41:34 havana cvsupd[2631]: CVSup server started
Apr 29 21:41:34 havana cvsupd[2631]: Software version: SNAP_16_1h
Apr 29 21:41:34 havana cvsupd[2631]: Protocol version: 17.0
Apr 29 21:41:34 havana cvsupd[2631]: Ready to service requests
Apr 29 21:41:43 havana cvsupd[2633]: +0 [EMAIL PROTECTED] 
(havana.sml-citizen.com.hk) [SNAP_16_1h/17.0]

Apr 29 21:41:43 havana cvsupd[2633]: =0 Unknown collection src-all
Apr 29 21:41:44 havana cvsupd[2633]: -0 [0Kin+0Kout] Finished successfully

I used the cvsup-mirror port on FreeBSD 6.x and it worked out of the 
box. I hope someone could point me what went wrong.


Thanks a lot.

John Mok




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


Question about socket syscall in release 6.2

2008-04-29 Thread Martin Candurra
I have found some weird behavior about the socket system call in freebsd
release 6.2.
The problem appears if I try to open more sockets than the ulimits allows:
the socket system call gets blocked instead of returning an EMFILE error.

This only happens to me in release 6.2 ( I tested in 7.0 but it works fine).
The following python script is what I have used to reproduce the issue:

import os
import socket
from random import randint
import sys
socketAddress = (127.0.0.1, randint(2, 3))


s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(socketAddress)
s.listen(1)

socketList = []
child = -1
for i in range(1):

child = os.fork()
if (child):
clientCon, address = s.accept()
socketList.append(clientCon)
os.waitpid(0, os.WNOHANG)
else:
print child %d % i
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if (clientSocket==-1):
print(client socket error)
err = clientSocket.connect(socketAddress)
if (err==-1):
print(client connect error)
break



Is there something I'm missing ? Can someone shed me some light about this ?

Thanks in advance.

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


freebsd 7 with sata drives

2008-04-29 Thread Brian
The system gets thru the install fine, and does the next reboot ok.  
But, if I do a very simple cvsup to get freebsd 7-stable source, then a 
kernel rebuild, the system has what looks like a drive/controller 
recognition problem next time.  It sees the proper root slice of ad5s1a, 
but cant boot it.  It shows an error with sio1, unable to open device or 
something similar.  Has this been seen before?


Brian

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


Re: a monster stole my /

2008-04-29 Thread Jerry McAllister
On Tue, Apr 29, 2008 at 02:40:09PM +1000, Hartleigh Burton wrote:

 Hiya!
 
 I have a problem with / currently being at 108% capacity. I have found  
 a previous thread in the archives which explains a few questions but I  
 can't find what is taking up all the additional space. At best without  
 destroying what I still do not understand I can manage to get / to  
 about 101% capacity.
oI see you have used du.   I usually do   
 cd /
 du -sk *

Since the 'h switches between K, G, M,  I find it a little harder
to eyeball than picking just one of K, M or G.I also find the -s
more useful in a general situation than -dn since it gives a 
good general summary.

The one thing I can think of would be some file that has been rm-ed
but not released by some process.   The space will still stay allocated
until the file is released by all processes.   A reboot can help that.

If reboot doesn't free anything up, then you have some serious digging
to do.Your / file system is quite large and you have most of the
usually culprits moved somewhere else.   So, you should not need 
anywhere near that much disk for /.

Good luck,

jerry

 
 To answer a couple of potential questions straight up, there is  
 nothing in /root and /tmp is on a separate partition.
 
 intranet# df -h
 Filesystem   SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a  989M986M-76M   108%/
 devfs1.0K1.0K  0B   100%/dev
 /dev/da0s1e  989M216K910M 0%/tmp
 /dev/da0s1f   58G4.8G 48G 9%/usr
 /dev/da0s1d  4.8G2.2G2.3G49%/var
 /dev/da1p1   3.3T682G2.4T22%/db
 devfs1.0K1.0K  0B   100%/var/named/dev
 
 intranet# du -h -d1
 2.0K  ./.snap
 1.5K  ./dev
 218K  ./tmp
 4.8G  ./usr
 2.2G  ./var
 1.7M  ./etc
 2.0K  ./cdrom
 2.0K  ./dist
 1.1M  ./bin
  71M  ./boot
 4.4M  ./lib
 360K  ./libexec
 2.0K  ./media
 512B  ./net
 2.0K  ./proc
 3.8M  ./rescue
  26K  ./root
 4.1M  ./sbin
 512B  ./host
 682G  ./db
 689G  .
 
 
 
 If I move the old kernel/GENERIC files from /boot I can manage to get  
 back to 101%, I really have no idea where the rest of the space has  
 gone though. Is there any way to locate large files on a specific  
 partition?
 
 I did have a problem not too long ago where my /db array did not mount  
 and MySQL managed to recreate the default/sample database on /db/ 
 mysql, could this default database be somewhere else on / while the / 
 db array problem was fixed?
 
 *scratches head*
 
 
 
 
 
 Hartz.
 ___
 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: a monster stole my /

2008-04-29 Thread Jerry McAllister
On Tue, Apr 29, 2008 at 03:34:12PM +1000, Colin Yuile wrote:

 On Tue, 29 Apr 2008 14:40:09 +1000
 Hartleigh Burton [EMAIL PROTECTED] wrote:
 
  Hiya!
  
  I have a problem with / currently being at 108% capacity. I have found  
  a previous thread in the archives which explains a few questions but I  
  can't find what is taking up all the additional space. At best without  
  destroying what I still do not understand I can manage to get / to  
  about 101% capacity.
  
  To answer a couple of potential questions straight up, there is  
  nothing in /root and /tmp is on a separate partition.
  
  intranet# df -h
  Filesystem   SizeUsed   Avail Capacity  Mounted on
  /dev/da0s1a  989M986M-76M   108%/
  devfs1.0K1.0K  0B   100%/dev
  /dev/da0s1e  989M216K910M 0%/tmp
  /dev/da0s1f   58G4.8G 48G 9%/usr
  /dev/da0s1d  4.8G2.2G2.3G49%/var
  /dev/da1p1   3.3T682G2.4T22%/db
  devfs1.0K1.0K  0B   100%/var/named/dev
  
  intranet# du -h -d1
  2.0K./.snap
  1.5K./dev
  218K./tmp
  4.8G./usr
  2.2G./var
  1.7M./etc
  2.0K./cdrom
  2.0K./dist
  1.1M./bin
71M   ./boot
  4.4M./lib
  360K./libexec
  2.0K./media
  512B./net
  2.0K./proc
  3.8M./rescue
26K   ./root
  4.1M./sbin
  512B./host
  682G./db
  689G.
  
  
  
  If I move the old kernel/GENERIC files from /boot I can manage to get  
  back to 101%, I really have no idea where the rest of the space has  
  gone though. Is there any way to locate large files on a specific  
  partition?
  
  I did have a problem not too long ago where my /db array did not mount  
  and MySQL managed to recreate the default/sample database on /db/ 
  mysql, could this default database be somewhere else on / while the / 
  db array problem was fixed?
  
  *scratches head*
  
 
 
 It is possible that you have mounted a filesystem onto a non empty directory.
 The stuff in the dir used as a mount point will be hidden by the mount.
 
 Colin

Good one.   I had forgotten that one.

jerry

 
 ___
 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]


Ask for information

2008-04-29 Thread Gregory
   Sir,

   Some days ago, I wrote you a mail but I get no answer. The mail was the
following :

   Sir,

   Presently, my hard disk is managed by a 3112A chipset (SATA I).
As you probably know it, this chipset isn't compatible with FreeBSD.
Can you advise me an external card that you compatible with FreeBSD
to manage my hard disk ? I've sent a mail to ldlc.be asking for
a card that manage my hard disk but they seem to have no card
compatible with FreeBSD. I'm running FreeBSD since begin of 6.1
but I can'nt access some disks. Wich card containing HDD SATA I
chipset do you suggest ?

   Gregory HOLLAND

P.S. : I've done a talk to the FOSDEM (Free and Open Source Software
Developers European Meeting). The topic of my talk was
End User migration from Linux to FreeBSD
I'm running FreeBSD 6.3 now. In June, I'll update to FreeBSD 7.0.

I need an Internal PCI card

   I have the possibility to buy a SWEEX PU103 with a Sil3512 chipset. Does
FreeBSD 7.0
support this chipset ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Running PostgreSQL 7 8 Simultaneously

2008-04-29 Thread Andy Christianson
I need to run two different versions of PostgreSQL. Currently my server
is configured to use PostgreSQL 7.4 and I need to also run PostgreSQL
8.3. I noticed that there are different ports for different versions of
PostgreSQL. If I install the port for 8.3, will that cause any problems
with my existing 7.4 configuration? 8.3 will need to run on a different
port, of course, but other than that I can't think of any other issues.

 

Thanks in advance for any advice.

Andrew I. Christianson
Internet Engineer 
Orases Consulting Corporation
Interactive Business and Technology Solutions
===
phone/  301.694.8991 ext. 100
fax/ 301.694.8993
Email/ [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
http://www.orases.com

 

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


Re: Firewalls

2008-04-29 Thread perikillo
On Mon, Apr 28, 2008 at 12:50 PM, Bruce Cran [EMAIL PROTECTED] wrote:

 Doug Hardie wrote:

  FreeBSD supports 3 firewalls:  IPF, IPFW, and PF.  Some time ago
  (perhaps years) I seem to recall some discussion that one or more of those
  was better maintained and higher quality than the others.  I don't see any
  indications of this in the handbook.  Several years ago I needed to do
  traffic shaping and used IPFW with dummynet.  It worked but the need
  eventually went away.  More recently I needed to incorporate spamd which
  defaults to PF so I used that.  However, now I am back to needing traffic
  shaping again.  I suspect trying to use both PF and IPFW simultaneously will
  not be a good approach.  In addition, there now are instructions for using
  spamd with IPFW so it appears that either PF or IPFW will do what I need.
   Is there any additional information available to assist in selecting
  between those?  Thanks.
 

 As I understand it pf is often found to be easiest to use and has lots of
 features like altq and os fingerprinting but is quite a bit slower than
 ipfw.

 --
 Bruce

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


 Reading this post, i have some doubt, how is IPFW support for VoIP packets,
can do traffic shaping?, i read that PF can do that, I'm right?

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


Re: Ask for information

2008-04-29 Thread Bill Moran
In response to Gregory [EMAIL PROTECTED]:
Sir,
 
Some days ago, I wrote you a mail but I get no answer. The mail was the
 following :
 
Sir,
 
Presently, my hard disk is managed by a 3112A chipset (SATA I).
 As you probably know it, this chipset isn't compatible with FreeBSD.
 Can you advise me an external card that you compatible with FreeBSD
 to manage my hard disk ? I've sent a mail to ldlc.be asking for
 a card that manage my hard disk but they seem to have no card
 compatible with FreeBSD. I'm running FreeBSD since begin of 6.1
 but I can'nt access some disks. Wich card containing HDD SATA I
 chipset do you suggest ?
 
Gregory HOLLAND
 
 P.S. : I've done a talk to the FOSDEM (Free and Open Source Software
 Developers European Meeting). The topic of my talk was
 End User migration from Linux to FreeBSD
 I'm running FreeBSD 6.3 now. In June, I'll update to FreeBSD 7.0.
 
 I need an Internal PCI card
 
I have the possibility to buy a SWEEX PU103 with a Sil3512 chipset. Does
 FreeBSD 7.0
 support this chipset ?

Well, between the top posting and the ambiguous reply quoting, I'm not
sure what your original question actually was.

However, all the questions in this email should be answerable on this
page:
http://www.freebsd.org/releases/6.3R/hardware-i386.html

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


Re: Running PostgreSQL 7 8 Simultaneously

2008-04-29 Thread Bill Moran
In response to Andy Christianson [EMAIL PROTECTED]:

 I need to run two different versions of PostgreSQL. Currently my server
 is configured to use PostgreSQL 7.4 and I need to also run PostgreSQL
 8.3. I noticed that there are different ports for different versions of
 PostgreSQL. If I install the port for 8.3, will that cause any problems
 with my existing 7.4 configuration? 8.3 will need to run on a different
 port, of course, but other than that I can't think of any other issues.
 
  
 
 Thanks in advance for any advice.

The ports collection does not support this directly, however it's not
too difficult to set up.

Ports won't allow you to install two different version of PostgreSQL
simultaneously, so the two choices you have are:
1) Install one from the ports and the other manually.
2) Use the jail system to create FreeBSD virtual machines to install
   the different versions in.

I like #2 the best, personally, but I've done it both ways.  With #1,
you have to ensure they're configured to use different directories
for their data files, and that they listen on different ports.  With
#2, you have to change the UID of the pgsql user in each jail so they
don't overwrite each other's shared memory, and enable SYSV SHM for
jails (via sysctl)

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


Profiled C++ libraries

2008-04-29 Thread Purushotham Nayak

   Hi All,


   I'm trying to use gprof to profile some code but compilation fails
   because it can't find libstdc++_p (GCC 3.4.6). I tried using gcc 4.2
   but it can't find m_p. I have /usr/src/contrib/libstdc++ but can't
   find the documentation that the README file is referring to
   (docs/html/documentation.html). Can anyone please let me know how to
   get a profiled version of the c++ library for my platform.


   I'm using FreeBSD 6.0 i386.


   Many Thanks,

   Purushotham
 _

   Be a better friend, newshound, and know-it-all with Yahoo! Mobile.
   [1]Try it now.

References

   1. 
http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: OS throws away large packets

2008-04-29 Thread Yehonatan Yossef
  Hi all,
 
  I'm trying to implement Large Recieve Offload for an

  Ethernet driver
  
  on FreeBSD 6.3, but all my MTU packets are being thrown
 by the OS.
  I'm using mbuf chains in this imlpementation, each mbuf is

  a cluster
  
  of MCLBYTES bytes. They are linked by the m_next pointer.
  The first packet being thrown away is 2945 bytes long. 

  Wireshark shows
  
  the packet that is being passed to the OS is correct.
 
  Do I need to set some OS parameter to make it recieve mbuf chains?
 
  Please help.
 

  Hi Yony,
 
  I seem to remember some discussion about this list last
 year see the
  following threads:
 
 
  
  

http://lists.freebsd.org/pipermail/freebsd-net/2007-September/015250.htm
l

  

http://lists.freebsd.org/pipermail/freebsd-net/2007-September/015350.htm
l

  From my limited reading of these threads just now and possibly bad
  memory.  It would seem that the MRU to MTU relationship is
 defined in
  the nic driver rather than

  enforced further up the stack or at least that seamed to
 be the case
  
  with the bce driver.

  Hope this is helpful,
 
  Tom
  
 
  Hi Tom,
 
  From what I understand these threads are referring to the bce 
  hardware
  configuration (bus configuration) and driver mbuf
 allocation size. Am
  I correct?
  In my case I'm not trying to receive packets MTU from the
 HW, but to
  chain mbuf clusters, each is MCLBYTES long, and pass the
 mbuf chain to
  the OS.
  Since tcpdump (analyzed by wireshark) catches the packets above the 
  driver and reports a good packet (and 2945 bytes long), I assume my 
  driver functionality is ok. From what I know tcpdump is supposed to 
  immitate the way the stack sees the packet, yet it is discarded.
  My logic says there is an OS parameter handled by the
 driver (at net
  device init time for example) that will set the OS to receive large 
  mbuf chains, or a kernel tcp parameter. Is the tcp stack
 submitted to
  the mtu somehow?
 

 I don't see where you've identified what version of the os you're 
 working with.  There's a check in the 802.3 input path on earlier 
 systems to discard frames mtu.  This was removed not too long ago 
 with LRO in mind; check the history of sys/net/if_ethersubr.c.
 
 Sam
 
 
Hi Sam, I have mentioned working on 6.3.
 
FreeBSD 6.2 had this check in if_ethersubr.c / ether_input:
 
539 if (m-m_pkthdr.len 
540 ETHER_MAX_FRAME(ifp, etype, m-m_flags  M_HASFCS)) {
541 if_printf(ifp, discard oversize frame 
542 (ether type %x flags %x len %u 
max %lu)\n,
543 etype, m-m_flags, m-m_pkthdr.len,
544 ETHER_MAX_FRAME(ifp, etype,
545 m-m_flags 
M_HASFCS));
546 ifp-if_ierrors++;
547 m_freem(m);
548 return;
549 }
 
Patching it was explained by neterion in
http://trac.neterion.com/cgi-bin/trac.cgi/wiki/FreeBSD.
This check no longer exists in 6.3, nor any other oversize packet
handling (I couldn't find any so far).
I also get no error prints from the OS.
 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OS throws away large packets

2008-04-29 Thread Sam Leffler

Yehonatan Yossef wrote:
 

  

-Original Message-
From: Tom Judge [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 28, 2008 8:21 PM

To: Mr Y
Cc: freebsd-questions@freebsd.org; [EMAIL PROTECTED]
Subject: Re: OS throws away large packets

Mr Y wrote:


Hi all,

I'm trying to implement Large Recieve Offload for an 
  
Ethernet driver 


on FreeBSD 6.3, but all my MTU packets are being thrown by the OS.
I'm using mbuf chains in this imlpementation, each mbuf is 
  
a cluster 


of MCLBYTES bytes. They are linked by the m_next pointer.
The first packet being thrown away is 2945 bytes long. 
  
Wireshark shows 


the packet that is being passed to the OS is correct.

Do I need to set some OS parameter to make it recieve mbuf chains?

Please help.

  

Hi Yony,

I seem to remember some discussion about this list last year 
see the following threads:





http://lists.freebsd.org/pipermail/freebsd-net/2007-September/015250.htm
l
  
http://lists.freebsd.org/pipermail/freebsd-net/2007-September/015350.htm

l
  
From my limited reading of these threads just now and possibly bad

memory.  It would seem that the MRU to MTU relationship is defined in
the nic driver rather than 
  

enforced further up the stack or at least that seamed to be the case


with the bce driver.
  

Hope this is helpful,

Tom



Hi Tom,

From what I understand these threads are referring to the bce hardware
configuration (bus configuration) and driver mbuf allocation size. Am I
correct?
In my case I'm not trying to receive packets MTU from the HW, but to
chain mbuf clusters, each is MCLBYTES long, and pass the mbuf chain to
the OS.
Since tcpdump (analyzed by wireshark) catches the packets above the
driver and reports a good packet (and 2945 bytes long), I assume my
driver functionality is ok. From what I know tcpdump is supposed to
immitate the way the stack sees the packet, yet it is discarded.
My logic says there is an OS parameter handled by the driver (at net
device init time for example) that will set the OS to receive large mbuf
chains, or a kernel tcp parameter. Is the tcp stack submitted to the mtu
somehow?

  
I don't see where you've identified what version of the os you're 
working with.  There's a check in the 802.3 input path on earlier 
systems to discard frames mtu.  This was removed not too long ago with 
LRO in mind; check the history of sys/net/if_ethersubr.c.


   Sam

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


Perforce and cvsup access

2008-04-29 Thread David Naylor
Hi,

I am trying to get a driver of perforce (//depot/projects/vap) to test out 
however I do not know how to.  I found out that perforce has been exported to 
cvsup on cvsup10.freebsd.org and cvsup18.freebsd.org but I cannot find the 
correct collection to use (and is there a list of the collections somewhere?)

Thanks in advance

David


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


Re: raid1 + degraded (take out one disk) + fatal trap 12 on next reboot

2008-04-29 Thread Roberto Nunnari

Nobody on this, please? :)


Roberto Nunnari wrote:

Hi all!

I'm playing with new HW and FreeBSD 6.3 and 7.0.

I set up raid 1 on two sata disks (fakeraid on ICH9R)
and as long as I can see, it seams to work very well.

Now I'm trying to simulate 1 disk failure (I just take
out a disk and boot again). Doesn't matter which of the
two disks I take out, the bios correctly shows the raid
as degraded and bootable, loads the FreeBSD loader, who
loads the kernel and starts the boot.
But when the kernel comes to the drives (or the swap?)
it fatal traps 12. The trap descriptions sais that
current process is 0 (swapper).

Reading that I commented out the swap partition from fstab,
but that doesn't help.

How can I get the system to finish the boot?

Thank you and best regards.



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


Re: Profiled C++ libraries

2008-04-29 Thread Tijl Coosemans
On Tuesday 29 April 2008 18:44:15 Purushotham Nayak wrote:
 I'm trying to use gprof to profile some code but compilation fails
 because it can't find libstdc++_p (GCC 3.4.6). I tried using gcc 4.2
 but it can't find m_p. I have /usr/src/contrib/libstdc++ but can't
 find the documentation that the README file is referring to
 (docs/html/documentation.html). Can anyone please let me know how to
 get a profiled version of the c++ library for my platform.
 
 I'm using FreeBSD 6.0 i386.

I thought they were installed by default, but in any case you should
find libstdc++_p.a under /usr/obj after doing this:

% cd /usr/src/gnu/lib/libstdc++/
% make obj  make depend  make

Make sure you don't have anything like NO_PROFILE, NOPROFILE or
WITHOUT_PROFILE defined in /etc/make.conf.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FBSD install fails with nforce on asus p5n-e sli. any ideas?

2008-04-29 Thread David Naylor
On Tuesday 29 April 2008 07:43:17 you wrote:
 Hello,
 Im trying to install 7.0 from boot only CD and having problems detecting
 the network.
 The NIS is a nforce integrated to the mother asus P5n-e sli
 The card is working in DFBSD and windows, I think it worked in Linux
 too, but need to try it out again to be sure about the last.
 Dhclient fails, write the config by hand doesnt work neither.
 Someone had installed 7.0 with this mother?
 Thanks for any help.
 Sdav

Hi,

Is your board based on the nForce 650i chipset?  I have been struggling to get 
this chipset to work with SMP, have you been able to get more than 1 CPU 
working and have access to the hard drives / cd drives?

Try safemode, it may allow you network access.

Good luck

David


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


rxvt-unicode - termcap.

2008-04-29 Thread Daniel Andersson
Hi

I seem to have some trouble with my /etc/termcap. I get Cannot find
termcap entry for 'rxvt-unicode' when i try to recover a screen on my
FreeBSD server. I use rxvt-unicode to connect to the server. Is there
some neat way to fix this?
I don't want to install all rxvt's deps on the server to get it to
work... gnome-terminal works fine though.

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


PowerD Processor Not Recognised!!

2008-04-29 Thread Gordon McKee

Hi

Just installed FreeBSD 7 and get the following error.  It doesn't make any 
difference, but can someone add this CPU to the list of recognized CPU's? 
Would be nice if powerd could use the adaptive mode correctly.


Hardware info from from dsmsg.today

ACPI APIC Table: HP ML110 G4
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
ioapic0 Version 2.0 irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: HP on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of fed13000, 1000 (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x1008-0x100b on acpi0
cpu0: ACPI CPU on acpi0
est0: Enhanced SpeedStep Frequency Control on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 728072806000728
device_attach: est0 attach returned 6
p4tcc0: CPU Frequency Thermal Control on cpu0
cpu1: ACPI CPU on acpi0
est1: Enhanced SpeedStep Frequency Control on cpu1
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 728072806000728
device_attach: est1 attach returned 6

Kind regards

Gordon 



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


ipnat

2008-04-29 Thread alexus
i can't seem to figure this out

su-3.2# ipnat -l
List of active MAP/Redirect filters:
rdr fxp0 0.0.0.0/32 port 22 - 172.16.172.16 port 22 tcp

List of active sessions:
su-3.2# netstat -tan | grep LISTEN | grep 22
tcp4   0  0  172.16.172.16.22   *.*LISTEN
su-3.2#

i'm trying to ssh from outside, no luck :(

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


Re: FBSD install fails with nforce on asus p5n-e sli. any ideas?

2008-04-29 Thread Sdavtaker

David Naylor wrote:

On Tuesday 29 April 2008 07:43:17 you wrote:
  

Hello,
Im trying to install 7.0 from boot only CD and having problems detecting
the network.
The NIS is a nforce integrated to the mother asus P5n-e sli
The card is working in DFBSD and windows, I think it worked in Linux
too, but need to try it out again to be sure about the last.
Dhclient fails, write the config by hand doesnt work neither.
Someone had installed 7.0 with this mother?
Thanks for any help.
Sdav



Hi,

Is your board based on the nForce 650i chipset?  I have been struggling to get 
this chipset to work with SMP, have you been able to get more than 1 CPU 
working and have access to the hard drives / cd drives?


Try safemode, it may allow you network access.

Good luck

David
  


Thanks for the info, i had gave it a try and failed.
The network card is detected as nfe0: NIVIDIA nForce 430 MCP13 
Networking Adapter port 0xf207 mem 0xfe02b000-0xfe02bfff irq 5 at 
device 20.0 on pci0

I found another 2 problems now.
When I use the first boot option, i cant make the card get a ip, neither 
the HD is detected (SATA).

And when I use safe mode i never boot, it halts tring to mount ufs:root
the chipset of the mainboard is: NVIDIA® nForce® 650i SLI™
CD drive was detected as atapi.

:-/

Damian

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


OpenOffice and Environment error: JAVA_HOME should not be defined

2008-04-29 Thread Marco Beishuizen
Hi,

When I try to install OO from the ports I get the message Environment
error: JAVA_HOME should not be defined.

Does anyone know how to get rid of this?

Thanks,

Marco

-- 
Alas, I am dying beyond my means.
-- Oscar Wilde [as he sipped champagne on his deathbed]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OpenOffice and Environment error: JAVA_HOME should not be defined

2008-04-29 Thread Mario Lobo
On Tuesday 29 April 2008 20:16:09 Marco Beishuizen wrote:
 Hi,

 When I try to install OO from the ports I get the message Environment
 error: JAVA_HOME should not be defined.

 Does anyone know how to get rid of this?

 Thanks,

 Marco

unset JAVA_HOME
make install

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OpenOffice and Environment error: JAVA_HOME should not be defined

2008-04-29 Thread Marco Beishuizen
On Tue, 29 Apr 2008 20:27:47 -0300
Mario Lobo [EMAIL PROTECTED] wrote:
 
 unset JAVA_HOME
 make install
 

Yes, this seems to work. Thanks.

Marco

-- 
If the weather is extremely bad, church attendance will be down.
If the weather is extremely good, church attendance will be down.
If the bulletin covers are in short supply, however,
church attendance will exceed all expectations.
-- Reverend Chichester
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


lagg(4)/vlan(4) on-boot configuration problems

2008-04-29 Thread Matthew Pounsett


I'm trying to get a bonded vlan up using the new lagg driver on 6.3- 
RELEASE.  I seem to be having problems with getting the network to  
configure at boot time, and I think I've found the reason.


It would appear that order of operations is very important when  
configuring a lagg device.  If I do this...


# ifconfig lagg0 create
# ifconfig lagg0 up laggproto failover laggport bce0 laggport bce1
# ifconfig lagg0.811 create
# ifconfig lagg0.811 10.4.11.41/24
# ifconfig bce0 up
# ifconfig bce1 up

... then everything works.   If I do this...

# ifconfig bce0 up
# ifconfig bce1 up
# ifconfig lagg0 create
# ifconfig lagg0 up laggproto failover laggport bce0 laggport bce1
# ifconfig lagg0.811 create
# ifconfig lagg0.811 10.4.11.41/24

... then the lagg0.811 interface is useless, however no errors are  
emitted during configuration.


It would appear that /etc/rc.d/netif is probably doing the latter, as  
when I try to configure the above interface using rc.conf nothing  
works.   This is the relevant rc.conf block I'm using:


cloned_interfaces=lagg0 lagg0.811
ifconfig_lagg0=up laggproto failover laggport bce0 laggport bce1
ifconfig_lagg0_811=10.4.11.41/24
ifconfig_bce0=up
ifconfig_bce1=up

Does anyone have suggestions for things I might be doing wrong here,  
before I file a bug?


Thanks,
   Matt





PGP.sig
Description: This is a digitally signed message part


Re: Even more documentation?

2008-04-29 Thread Edward Ruggeri
On Fri, Apr 25, 2008 at 10:32 PM, Edward Ruggeri [EMAIL PROTECTED] wrote:
 Hi all,

  I've used FreeBSD for about two years now.  Besides using Linux for
  projects on school computers, I never had much experience with
  Unix-like operating systems.  While I get by nicely on FreeBSD, I
  recently felt that I didn't have a very solid understanding of it's
  organization or structure.  I suppose one can't know everything about
  an operating system with as much functionality as FreeBSD, but I
  started to feel like my knowledge was really ad-hoc, and that I didn't
  completely understand what I was doing (as if I had learned only by
  example).

  To that end, I started reading the FreeBSD handbook front-to-back.
  I've gotten to Part III, and while it's been very valuable, I still
  feel like I'm learning by example, and not by understanding the
  operating system.  I'm starting to think I'm expecting something out
  of the handbook it's not designed to do.

  It seems like the man pages would be a good place to go, but my
  trouble with using them is that they're difficult to put together the
  information on different pages.  I suppose I want something like a
  textbook.  I dream of a KR type text that is very comprehensive and
  well-organized.

  If anyone has advice, I'd very much appreciate it!

  Sincerely,

  -- Ned Ruggeri


I have read the many replies from various people, and they have all
been exceptionally helpful.  Thanks very much everyone!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Dynamic Memory Allocation Limit?

2008-04-29 Thread Edward Ruggeri
I have recently been writing an implementation of the sieve of
Eratosthenes in C.  To find all primes less than N, I dynamically
create an array of chars (relatively small datatype) of length N+1 (I
know I don't need to represent evens).

Everything works great up until around 600 million, at which case
memory allocation fails.  At this point, I am asking for 600M chars,
which is about 572MB (I might be failing to take account of offset?).

My system has about 2GB of memory.  Top says: Mem: 159M Active, 1113M
Inact, 185M Wired, 56M Cache, 112M Buf, 481M Free.

From the man page, I am not completely clear what these values mean.
However, I have read elsewhere that memory labeled as inactive should
be available for the heap

Is there a limit to how much memory may be allocated to a process?
Any other reasons someone might think of?

I am using FreeBSD 6.3-prerelease, with SMP for a Athlon X2 4200+ (if
it makes a difference).  Sorry if this is a RTFM question ...

Sincerely,

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


rmuser failed / cannot readd user

2008-04-29 Thread Hartleigh Burton

Hi readers!

I am having problems with adding/removing user accounts. This seems to  
be related to a problem I was having yesterday (Subject: a monster  
stole my /), adding a user when / was at 108% capacity.


I added a user called mrawebuser, which failed because there was not  
enough free space on / at the time. Now when I try to add the user  
again it says the user already exists when it doesn't. I have used  
rmuser to remove the account and also manually check /etc/passwd, /etc/ 
master.passwd,  /etc/group - none of these files contain any  
reference to mrawebuser. If I repeat the rmuser command it will find  
the user every time.


Basically I would like to start fresh, completely remove this user and  
any reference to the account then recreate it.





intranet# adduser -v
Username: mrawebuser
Full name: MRA Web User
Uid (Leave empty for default):
Login group [mrawebuser]:
Login group is mrawebuser. Invite mrawebuser into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]:
Home directory [/home/mrawebuser]:
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username   : mrawebuser
Password   : *
Full Name  : MRA Web User
Uid: 1005
Class  :
Groups : mrawebuser
Home   : /home/mrawebuser
Shell  : /bin/sh
Locked : no
OK? (yes/no): y
pw: login name `mrawebuser' already exists
adduser: ERROR: There was an error adding user (mrawebuser).
Add another user? (yes/no): n
Goodbye!




intranet# rmuser -v mrawebuser
Matching password entry:

mrawebuser:*:1004:1005::0:0:MRA Web User:/home/mrawebuser:/bin/sh

Is this the entry you wish to remove? y
Remove user's home directory (/home/mrawebuser)? n
Removing crontab for (mrawebuser):.
Removing at(1) jobs owned by (mrawebuser): 0 removed.
Removing IPC mechanisms.
Terminating all processes owned by (mrawebuser): -KILL signal sent to  
0 processes.

Removing files owned by (mrawebuser) in /tmp: 0 removed.
Removing files owned by (mrawebuser) in /var/tmp: 0 removed.
Removing mail spool(s) for (mrawebuser):.
Removing user (mrawebuser) from the system:pw: user 'mrawebuser' does  
not exist: No such file or directory

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


Re: ipnat

2008-04-29 Thread alexus
anyone?

On Tue, Apr 29, 2008 at 5:33 PM, alexus [EMAIL PROTECTED] wrote:
 i can't seem to figure this out

  su-3.2# ipnat -l
  List of active MAP/Redirect filters:
  rdr fxp0 0.0.0.0/32 port 22 - 172.16.172.16 port 22 tcp

  List of active sessions:
  su-3.2# netstat -tan | grep LISTEN | grep 22
  tcp4   0  0  172.16.172.16.22   *.*LISTEN
  su-3.2#

  i'm trying to ssh from outside, no luck :(

  --
  http://alexus.org/




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


Re: Dynamic Memory Allocation Limit?

2008-04-29 Thread Pieter de Goeje
On Wednesday 30 April 2008, Edward Ruggeri wrote:
 I have recently been writing an implementation of the sieve of
 Eratosthenes in C.  To find all primes less than N, I dynamically
 create an array of chars (relatively small datatype) of length N+1 (I
 know I don't need to represent evens).

When I wrote my version a long time ago, I made it possible to split the set 
of possible prime numbers in blocks of managable sizes to avoid this 
problem :) this ofcourse made the algorithm somewhat slower. (Also I stored 
the state of 8 odd numbers in one byte, reducing memory usage significantly)


 Everything works great up until around 600 million, at which case
 memory allocation fails.  At this point, I am asking for 600M chars,
 which is about 572MB (I might be failing to take account of offset?).

 My system has about 2GB of memory.  Top says: Mem: 159M Active, 1113M
 Inact, 185M Wired, 56M Cache, 112M Buf, 481M Free.

 From the man page, I am not completely clear what these values mean.

 However, I have read elsewhere that memory labeled as inactive should
 be available for the heap

Yes, it is.


 Is there a limit to how much memory may be allocated to a process?
 Any other reasons someone might think of?

Yes, there is the datasize limit. limits(1) will show you how much memory each 
process can allocate. To increase datasize, set the tunable kern.maxdsiz 
(more info in tuning(7)).

I guess the system is running FreeBSD/i386, because I think the default limit 
is about ~500MB on FreeBSD/i386. Note that it isn't possible to allow 
processes to use more than ~3GB of memory on FreeBSD/i386 because of that 
platform's constraints. More is possible on for example FreeBSD/amd64.


 I am using FreeBSD 6.3-prerelease, with SMP for a Athlon X2 4200+ (if
 it makes a difference).  Sorry if this is a RTFM question ...

 Sincerely,

 -- Ned Ruggeri

Good luck,

Pieter de Goeje

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


Kernel Compile Error

2008-04-29 Thread Chris Maness
I was trying to compile a 7.0 Release and the compile failed.  I have 
never had a kernel compilation fail before.


Here is the last of the output:

opt_global.h -fno-common -finline-limit=8000 --param 
inline-unit-growth=100 --param large-function-growth=1000  
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx 
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror  
/usr/src/sys/kern/kern_descrip.c
/usr/src/sys/kern/kern_descrip.c:211:36: error: macro 
FILEDESC_LOCK_ASSERT passed 2 arguments, but takes just 1

/usr/src/sys/kern/kern_descrip.c: In function 'fdused':
/usr/src/sys/kern/kern_descrip.c:211: error: 'FILEDESC_LOCK_ASSERT' 
undeclared (first use in this function)
/usr/src/sys/kern/kern_descrip.c:211: error: (Each undeclared identifier 
is reported only once
/usr/src/sys/kern/kern_descrip.c:211: error: for each function it 
appears in.)
/usr/src/sys/kern/kern_descrip.c:227:36: error: macro 
FILEDESC_LOCK_ASSERT passed 2 arguments, but takes just 1

/usr/src/sys/kern/kern_descrip.c: In function 'fdunused':
/usr/src/sys/kern/kern_descrip.c:227: error: 'FILEDESC_LOCK_ASSERT' 
undeclared (first use in this function)

cc1: warnings being treated as errors
/usr/src/sys/kern/kern_descrip.c: In function 'kern_fcntl':
/usr/src/sys/kern/kern_descrip.c:383: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c:386: warning: implicit declaration of 
function 'FILEDESC_UNLOCK'
/usr/src/sys/kern/kern_descrip.c:386: warning: nested extern declaration 
of 'FILEDESC_UNLOCK'
/usr/src/sys/kern/kern_descrip.c:540: warning: implicit declaration of 
function 'FILEDESC_LOCK_FAST'
/usr/src/sys/kern/kern_descrip.c:540: warning: nested extern declaration 
of 'FILEDESC_LOCK_FAST'
/usr/src/sys/kern/kern_descrip.c:543: warning: implicit declaration of 
function 'FILEDESC_UNLOCK_FAST'
/usr/src/sys/kern/kern_descrip.c:543: warning: nested extern declaration 
of 'FILEDESC_UNLOCK_FAST'

/usr/src/sys/kern/kern_descrip.c: In function 'do_dup':
/usr/src/sys/kern/kern_descrip.c:631: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c:670: error: 'UF_OPENING' undeclared 
(first use in this function)

/usr/src/sys/kern/kern_descrip.c: In function 'kern_close':
/usr/src/sys/kern/kern_descrip.c:994: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c:997: error: 'UF_OPENING' undeclared 
(first use in this function)
/usr/src/sys/kern/kern_descrip.c:1202:36: error: macro 
FILEDESC_LOCK_ASSERT passed 2 arguments, but takes just 1

/usr/src/sys/kern/kern_descrip.c: In function 'fdgrowtable':
/usr/src/sys/kern/kern_descrip.c:1202: error: 'FILEDESC_LOCK_ASSERT' 
undeclared (first use in this function)

/usr/src/sys/kern/kern_descrip.c:1224: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c:1263:36: error: macro 
FILEDESC_LOCK_ASSERT passed 2 arguments, but takes just 1

/usr/src/sys/kern/kern_descrip.c: In function 'fdalloc':
/usr/src/sys/kern/kern_descrip.c:1263: error: 'FILEDESC_LOCK_ASSERT' 
undeclared (first use in this function)
/usr/src/sys/kern/kern_descrip.c:1313:36: error: macro 
FILEDESC_LOCK_ASSERT passed 2 arguments, but takes just 1

/usr/src/sys/kern/kern_descrip.c: In function 'fdavail':
/usr/src/sys/kern/kern_descrip.c:1313: error: 'FILEDESC_LOCK_ASSERT' 
undeclared (first use in this function)

/usr/src/sys/kern/kern_descrip.c: In function 'falloc':
/usr/src/sys/kern/kern_descrip.c:1351: warning: implicit declaration of 
function 'suser_cred'
/usr/src/sys/kern/kern_descrip.c:1351: warning: nested extern 
declaration of 'suser_cred'
/usr/src/sys/kern/kern_descrip.c:1351: error: 'SUSER_RUID' undeclared 
(first use in this function)

/usr/src/sys/kern/kern_descrip.c:1376: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c: In function 'fdinit':
/usr/src/sys/kern/kern_descrip.c:1409: error: 'struct filedesc' has no 
member named 'fd_mtx'
/usr/src/sys/kern/kern_descrip.c:1409: error: 'FILEDESC_LOCK_DESC' 
undeclared (first use in this function)

/usr/src/sys/kern/kern_descrip.c:1411: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c: In function 'fddrop':
/usr/src/sys/kern/kern_descrip.c:1460: error: 'struct filedesc' has no 
member named 'fd_mtx'

/usr/src/sys/kern/kern_descrip.c: In function 'fdcopy':
/usr/src/sys/kern/kern_descrip.c:1514: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c:1524: error: 'UF_OPENING' undeclared 
(first use in this function)

/usr/src/sys/kern/kern_descrip.c:1535: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c: In function 'fdfree':
/usr/src/sys/kern/kern_descrip.c:1570: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c:1598: warning: statement with no effect
/usr/src/sys/kern/kern_descrip.c:1612: error: 'struct filedesc' has no 
member named 'fd_mtx'
/usr/src/sys/kern/kern_descrip.c:1622: error: 'struct filedesc' has no 
member named 'fd_mtx'

/usr/src/sys/kern/kern_descrip.c:1653: warning: statement with no effect

Problem Installing, BTX Halted

2008-04-29 Thread Chris Maness


Message: 1
Date: Tue, 29 Apr 2008 05:21:23 -0700 (PDT)
From: Felix Toh [EMAIL PROTECTED]
Subject: Problem Installing, BTX Halted
To: freebsd-questions@freebsd.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1

Hi there,
  
 I am new to FreeBSD and trying to install a fresh FreeBSD OS to my computer. However, I am getting BTX error as below: 
  
 Building the boot loader arguments

Looking up /BOOT/LOADER.. Found
relocating the loader and the BTX
Starting the BTX loader
 BTX loader 1.00 BTX version is 1.01
Consoles: internal video/keyboard
 int=000d err= efl=00030206 eip=2937
eax=8001 ebx=0700 ecx= edx=009f
esi=0b3c edi= ebp= esp=03d2
cs=f000 ds=48ae es=4892 fs= gs= ss=9dbb
cs=eip=2e 0f 01 16 58 2b 0f 20-c0 0c 01 0f 22 c0 b8 30
  00 8e c0 0f 20 c0 24 fe-0f 22 c0 eb 00 66 58 c3
ss:esp=01 80 00 00 20 28 00 00-00 00 3c 0b 00 00 00 00
  00 00 f8 03 00 00 00 07-00 00 9f 00 00 00 00 00
BTX halted
  
 I have verified my CD built from iso image (tried both i386 and AMD64 ) and could not figure out what the problem is. I have also disable all unrelated BIOS setting but still no luck. Hope someone will be able to help out.
  
 FYI, my system is: 
 Processor: AMD Athlon 64 X2 Dual Core Processor 4000+

Memory: 1GB, Single Channel, 64-Bit, 2T
Main Board: Abit NF-M2P
 Bios: v6.00PG
NVMM: 4.071.0302/02/07
 80GB Hard-drive.
  
 Thanks.
  
 Regards,

 Felix



I was having this issue too a while back.  I replaced the CD-ROM with a new 
CD-ROM/DVD drive and now it works ok.



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


Transfer CD image to USB memory stick?

2008-04-29 Thread Per olof Ljungmark

Hi,

Could someone please point me to information how to achieve this? Have 
new hardware that lacks CD/floppy and want to install FreBSD...


Thanks,

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


RE: ipnat

2008-04-29 Thread Olivier GARNIER
Other informations ?
Have you try to login in ssh from your ssh server computer ?
Is it working ?

Have you try nmap on your ssh server computer tu see if 22 port is open ?
Can you show us what is the ssh commande you type to try to connect ?


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de alexus
Envoyé : mercredi 30 avril 2008 03:35
À : freebsd-questions@freebsd.org
Objet : Re: ipnat

anyone?

On Tue, Apr 29, 2008 at 5:33 PM, alexus [EMAIL PROTECTED] wrote:
 i can't seem to figure this out

  su-3.2# ipnat -l
  List of active MAP/Redirect filters:
  rdr fxp0 0.0.0.0/32 port 22 - 172.16.172.16 port 22 tcp

  List of active sessions:
  su-3.2# netstat -tan | grep LISTEN | grep 22
  tcp4   0  0  172.16.172.16.22   *.*LISTEN
  su-3.2#

  i'm trying to ssh from outside, no luck :(

  --
  http://alexus.org/




-- 
http://alexus.org/
___
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: keysym error while starting X

2008-04-29 Thread br073n
On Apr 8, 7:35 am, Tsu-Fan Cheng [EMAIL PROTECTED] wrote:
 Hi,
I found that I can't start x-window because of some keysym error,
 when entering X using xinit, I have these on the screen:
 expected keysym, gotXF86KbdLightOnOff: line 70 of pc

[snip]

Do you also have an error about libXft.so.2? Just below the above
message on my machine was a complaint about not finding libXft.so.2,
and the answer was to do deinstall  reinstall in that part of the
ports tree. Now, I have the same error as above, but it doesn't
prevent me getting X.org to run.

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


Re: rmuser failed / cannot readd user

2008-04-29 Thread Matthew Seaman

Hartleigh Burton wrote:

I added a user called mrawebuser, which failed because there was not 
enough free space on / at the time. Now when I try to add the user again 
it says the user already exists when it doesn't. I have used rmuser to 
remove the account and also manually check /etc/passwd, 
/etc/master.passwd,  /etc/group - none of these files contain any 
reference to mrawebuser. If I repeat the rmuser command it will find 
the user every time.


Run this command:

   # pwd_mkdb -p /etc/master.passwd

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature