emX (intel) interface ring parameters

2009-06-09 Thread Martin Badie
Hi,

On linux I can change ring parameters like:

/sbin/ethtool -G eth1 rx 4096

   -G --set-ring
  change the rx/tx ring parameters of the specified ethernet device.

how can I do that in FreeBSD so I can get a better performance from my interface

Regards.



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


Re: a binary package update

2009-06-02 Thread Martin Badie
Hi,

I have package-1.0  installed and want to update to package-2.0 using 
package-2.0.tbz package file. This binary package is at /var/tmp/packages/All. 
I have no /usr/ports directory

export PKG_PATH=/var/tmp/packages/All
export PKG_FETCH=/usr/bin/false 

portupgrade -PP postgresql-server

** Port directory not found: databases/postgresql83-server
** Listing the failed packages (-:ignored / *:skipped / !:failed)
- databases/postgresql83-server (port directory error)

Do I need to have /usr/ports/ installed on that system? I just want to upgrade 
to package-2.0.tbz without having anything related to Ports ( /usr/ports) on my 
systems? Just like a
rpm -Uhv package-2.0.rpm on  Linux. Can someone enlighten me on how to do that 
with portupgrade? Or maybe with another tool on FreeBSD?

Regards.





From: Polytropon free...@edvax.de
To: Martin Badie martinba...@yahoo.com
Cc: freebsd-questions@freebsd.org
Sent: Monday, June 1, 2009 8:01:39 PM
Subject: Re: a binary package update

On Mon, 1 Jun 2009 02:03:10 -0700 (PDT), Martin Badie martinba...@yahoo.com 
wrote:
 Hi,
 
 How can I update a pre-compiled package [...]

You cannot update a pre-compiled package, you can only overwrite
or replace the package (tbz file). However, you can update an
installed port or package; in most cases, it doesn't even matter
if you installed from a port or from a package.



 [...] for example I have a package-1.0.tbz and I have downloaded
 package-2.0.tbz. What I want is to update a installed 1.0 package
 to 2.0 without internet connection.

Is is relatively easy, but you need to make sure first that you
have all the dependencies for package-2.0, for example libdep-1.3,
depend-3.2.1 and libfoo-0.22.7. You first need to fetch them.

Now a question: The system that has internet access: Do you want
to install the new packages there, too?



 I have portupgrade-2.4.6_2,2
 installed on my system.

If you answered the question with yes, then portupgrade can do it
for you. Simply update package-1.0 to package-2.0 and let
portupgrade create packages (-p). You can then transfer those
packages to the other system which can't fetch them by itself.

But if you answered no, the task would be as follows: Get the
newest version of a package along with all those packages this
new version depends on. In order to do so, you may use the
simple (and ugly) shell script I attached. It uses pkg_add to
fetch those packages, but it does NOT install anything.




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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


a binary package update

2009-06-01 Thread Martin Badie
Hi,

How can I update a pre-compiled package for example I have a package-1.0.tbz 
and I have downloaded package-2.0.tbz. What I want is to update a installed 1.0 
package to 2.0 without internet connection. I have portupgrade-2.4.6_2,2 
installed on my system.

Regards.



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


mount_nfs and fstab options

2009-05-12 Thread Martin Badie
Hi,

I have mounted an NFS share like:

mount_nfs -LisT 10.10.10.199:/vol/share   /mnt

but I can't use -LisT on fstab because man mount_nfs states:


Historic -o Options

 Use of these options is deprecated, they are only mentioned here
 for compatibility with historic versions of mount_nfs.

 bg Same as -b.

 fg Same as not specifying -b.

 conn   Same as not specifying -c.

 dumbtimer  Same as -d.

 intr   Same as -i.

 lockd  Same as not specifying -L.

 nfsv2  Same as -2.

 nfsv3  Same as -3.

 rdirplus   Same as -l.

 mntudp Same as -U.

 resvport   Same as -P.

 soft   Same as -s.

 hard   Same as not specifying -s.

 tcpSame as -T.  
 
Thus since I can't give this in -o section at fstab how can I use -List at 
fstab .. I have used rw,lockd,intr,soft,tcp  but that didn't work:

10.10.10.199:/vol/share/mnt   nfsrw,lockd,intr,soft,tcp  0  
 0

Regards.



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


audit not working

2009-01-27 Thread Martin Badie
Hi,

I am trying to have audit logs but i can't and frankly I couldn't able to find 
out what is wrong with my conf files:

audit_control:

dir:/var/audit
flags:lo,+ex
minfree:20
naflags:lo
policy:cnt,argv
filesz:0

audit_warn:

logger -p security.warning audit warning: $@
#
# Compress audit trail files on close.
#
if [ $1 = closefile ]; then
gzip -9 $2
fi


my audit_user file is empty and all other 2 files are untouched. But  only line 
I get is:


header,93,10,audit startup,0,Tue Jan 27 22:34:14 2009, + 916 msec
subject,root,root,wheel,root,wheel,1571,1571,0,0.0.0.0
text,auditd::Audit startup
return,success,0
trailer,93

praudit /dev/auditpipe also doesn't give me real time logs. One last point is 
that sometimes with the configuration above i get some command execution lines 
but not all of them so  I could't figure out what is wrong with my config.

I appreciate if someone in this list can help me.


Regards.



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