Re: What's up with cvsup.freebsd.org?

2010-09-03 Thread Dennis Glatting



On Thu, 2 Sep 2010, Greg Larkin wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dennis Glatting wrote:



On Thu, 2 Sep 2010, Lowell Gilbert wrote:


Dennis Glatting free...@penx.com writes:


This has been happening for several days. Is cvsup dead vs SVN? Cvsup
is still listed in the handbook.


cvsup is still fine.  Please (as recommended in the handbook) use a
mirror closer to you.



cvsup1, which has the same IP address as cvsup, /is/ listed as the
server closest to me in the handbook. More specifically:

/usr/local/etc/cvsup/update.sh -L2
CVSup update begins at 2010-09-02 09:46:13
Updating from cvsup1.freebsd.org
Parsing supfile /usr/local/etc/cvsup/supfile
Connecting to cvsup1.freebsd.org
Connected to cvsup1.freebsd.org
Premature EOF from server
CVSup update ends at 2010-09-02 09:46:15

Something has changed in the past several days and I'm now getting
Premature EOF. (I operate a mirror within our enterprise.) If the server
/is fine/, then why have I been getting this message for the past
several days? Nothing has changed on my end.



Hi Dennis,

Instead of relying on a particular cvsup server, how about installing
fastest_cvsup (http://www.freshports.org/sysutils/fastest_cvsup)?

If you run it in your script and pass the resulting hostname to csup,
you'll get the server with the best response at that time.



That was interesting. From one site there isn't a significant difference 
between 1/4/10 -- at least anything worth noteing. From this site, with 
multiple exit points (different vendors) and depending on the BGP bounce 
of the day, I see:



 Speed Daemons:

- 1st: cvsup14.us.freebsd.org   6.22 ms
- 2st: cvsup4.us.freebsd.org30.29 ms
- 3st: cvsup17.us.freebsd.org   44.45 ms


 Speed Daemons:

- 1st: cvsup15.us.freebsd.org   20.96 ms
- 2st: cvsup18.us.freebsd.org   31.66 ms
- 3st: cvsup9.us.freebsd.org31.80 ms

Thanks for the pointer.

BTW, cvsup was 51 ms from the first and 100 ms from the second.




___
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


vmware-guestd6: error during make install

2010-09-03 Thread Matthias Apitz


Hello,

I'm trying to install the port /usr/ports/emulators/vmware-guestd6 (even
the freshest from FreeBSD server) in 8-CURRENT:

current# pwd
/usr/ports/emulators
current# mv vmware-guestd6 vmware-guestd6.old
current# tar xzf ~guru/vmware-guestd6.tar.gz
current# cd vmware-guestd6
current# make
===  Vulnerability check disabled, database not found


Choose VM - Install VMware Tools... from VMware Workstation
menu to connect VM's CD-ROM drive and installation CD image temporary.
Press Install button when a dialog pops up.


This port mounts /dev/acd0 to /mnt.

Are you ready? [Y/n]: y
/bin/mkdir -p /mnt
/sbin/umount /mnt 21 /dev/null
umount: /mnt: not a file system root directory
*** Error code 1 (ignored)
/sbin/umount /dev/acd0 21 /dev/null
umount: /dev/acd0: unknown file system
*** Error code 1 (ignored)
/sbin/mount -t cd9660 /dev/acd0 /mnt
===  Extracting for vmware-guestd-6.0.3.80004_2
/sbin/umount /mnt
(cd /usr/ports/emulators/vmware-guestd6/work; /usr/bin/tar xf 
/usr/ports/emulators/vmware-guestd6/work/vmware-tools-distrib/lib/modules/source/vmmemctl.tar)
===  Patching for vmware-guestd-6.0.3.80004_2
LC_ALL=C /usr/bin/sed -i.bak `/usr/bin/printf 
's|\0152\013\0350|\0152\\\n\0350|g'`  
/usr/ports/emulators/vmware-guestd6/work/vmware-tools-distrib/lib/sbin32-6/vmware-checkvm
sed: 
/usr/ports/emulators/vmware-guestd6/work/vmware-tools-distrib/lib/sbin32-6/vmware-checkvm:
 No such file or directory
*** Error code 1

Stop in /usr/ports/emulators/vmware-guestd6.

there is no directory work/vmware-tools-distrib/lib/sbin32-6 but only
work/vmware-tools-distrib/lib/sbin32-63 

creating a symlink helps a bit but later it can't find vmware-guestd for
installation which is not there, i.e. not in the tar file of the
vmware-tools;

Any ideas?

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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


Applying a patch to a port

2010-09-03 Thread bsd
Hello, 

I have a patch for clamav that was submited by a developer of clamav. 
I don't know how to apply It to the source code of the port. 

What I would like to do: 

1. Get the source code 
2. cd to the source directory 
3. Apply the patch 
4. Recompile 
5. Test 

If this is ok, then as an option: 

6. validate changes  updates 
7. submit patch to the FBSD port


Thanks for your support. 



Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz




___
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: vmware-guestd6: error during make install

2010-09-03 Thread Rob Farmer
On Fri, Sep 3, 2010 at 00:59, Matthias Apitz g...@unixarea.de wrote:


 Hello,

 I'm trying to install the port /usr/ports/emulators/vmware-guestd6 (even
 the freshest from FreeBSD server) in 8-CURRENT:

Do you have a particular reason for using this port? Assuming you mean
8.X, the Tools that ship on this iso with Vmware will work (assuming
your copy of vmware isn't too old) if you install misc/compat6x or you
can try emulators/open-vm-tools (open sourced copy of Vmware Tools
that you build).

If you meant 9-CURRENT, things may be more difficult since Vmware only
ships binaries for releases and open-vm-tools is marked broken on
current.

-- 
Rob Farmer


 current# pwd
 /usr/ports/emulators
 current# mv vmware-guestd6 vmware-guestd6.old
 current# tar xzf ~guru/vmware-guestd6.tar.gz
 current# cd vmware-guestd6
 current# make
 ===  Vulnerability check disabled, database not found

 
 Choose VM - Install VMware Tools... from VMware Workstation
 menu to connect VM's CD-ROM drive and installation CD image temporary.
 Press Install button when a dialog pops up.
 

 This port mounts /dev/acd0 to /mnt.

 Are you ready? [Y/n]: y
 /bin/mkdir -p /mnt
 /sbin/umount /mnt 21 /dev/null
 umount: /mnt: not a file system root directory
 *** Error code 1 (ignored)
 /sbin/umount /dev/acd0 21 /dev/null
 umount: /dev/acd0: unknown file system
 *** Error code 1 (ignored)
 /sbin/mount -t cd9660 /dev/acd0 /mnt
 ===  Extracting for vmware-guestd-6.0.3.80004_2
 /sbin/umount /mnt
 (cd /usr/ports/emulators/vmware-guestd6/work; /usr/bin/tar xf 
 /usr/ports/emulators/vmware-guestd6/work/vmware-tools-distrib/lib/modules/source/vmmemctl.tar)
 ===  Patching for vmware-guestd-6.0.3.80004_2
 LC_ALL=C /usr/bin/sed -i.bak `/usr/bin/printf 
 's|\0152\013\0350|\0152\\\n\0350|g'`  
 /usr/ports/emulators/vmware-guestd6/work/vmware-tools-distrib/lib/sbin32-6/vmware-checkvm
 sed: 
 /usr/ports/emulators/vmware-guestd6/work/vmware-tools-distrib/lib/sbin32-6/vmware-checkvm:
  No such file or directory
 *** Error code 1

 Stop in /usr/ports/emulators/vmware-guestd6.

 there is no directory work/vmware-tools-distrib/lib/sbin32-6 but only
 work/vmware-tools-distrib/lib/sbin32-63

 creating a symlink helps a bit but later it can't find vmware-guestd for
 installation which is not there, i.e. not in the tar file of the
 vmware-tools;

 Any ideas?

        matthias

 --
 Matthias Apitz
 t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
 e g...@unixarea.de - w http://www.unixarea.de/
 Solidarity with the zionistic pirates of Israel?   Not in my  name!
 ¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
 ___
 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




-- 
Rob Farmer
___
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: 8.1: Cron ignoring crontab updates

2010-09-03 Thread perryh
Chris Rees utis...@gmail.com wrote:

 You have to SIGHUP cron, not restart it.

 # killall -HUP cron

Isn't crontab(1) supposed to do that, without separate intervention?

 On 2 Sep 2010 21:11, patrick gibblert...@gmail.com wrote:

 I recently upgraded a FreeBSD 7.0 system to 8.1-RELEASE (via
 freebsd-update) and am experiencing the strangest cron problem
 I have ever seen.

 My cron jobs run, but if I make any changes to my crontab,
 cron does not pick them up; it continues to operate based on
 the snapshot of crontabs it loaded when cron was started up ...
 Has anyone come across this?

Yes, so long ago I no longer remember which Unix flavor it was on.
Could have been SunOs 3.5 or 4.x, some version of Solaris, UnixWare,
or even FreeBSD 4.x.
___
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: vmware-guestd6: error during make install

2010-09-03 Thread Matthias Apitz
El día Friday, September 03, 2010 a las 01:14:00AM -0700, Rob Farmer escribió:

 On Fri, Sep 3, 2010 at 00:59, Matthias Apitz g...@unixarea.de wrote:
 
 
  Hello,
 
  I'm trying to install the port /usr/ports/emulators/vmware-guestd6 (even
  the freshest from FreeBSD server) in 8-CURRENT:
 
 Do you have a particular reason for using this port? Assuming you mean
 8.X,

My FreeBSD is a CVS 8-CURRENT from May 2009 to be exactly, i.e. after
8-RELEASE but before 8.1.

 the Tools that ship on this iso with Vmware will work (assuming
 your copy of vmware isn't too old) if you install misc/compat6x or you
 can try emulators/open-vm-tools (open sourced copy of Vmware Tools
 that you build).

The VM is a VMware player 3.0.0 which says about itself
Workstation 6.5-7.0 in the overview about the VM setup for FreeBSD;
is this fine enough for the emulators/open-vm-tools?

Thanks for your hint in any case

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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


two ata-related problems

2010-09-03 Thread perryh
Two questions about installing FreeBSD 8.1 on a Dell Precision 420
(yes, I know it's old):

1. Should FreeBSD 8.1 be able to recognize a 100MB ATAPI Zip drive?
   I'm not finding it in the dmesg, although BIOS Setup recognizes
   it.  (It and a CDROM are on the secondary IDE channel; I've tried
   with each of them as master and either way the CD is recognized
   but the Zip is not.)

2. It currently has the original A01 BIOS.  I'm going to have to
   update that, because it doesn't recognize the 320GB drive I've
   added as a new boot drive.  With the 320GB installed as unit 0
   (master) on the primary IDE channel, the A01 BIOS won't even
   recognize the previously-working 40GB drive which is now unit 1;
   so the BIOS disables that channel entirely keeping FreeBSD from
   seeing those drives either.

   A BIOS upgrade should be straightforward, but while Googling
   I ran into a posting where someone apparently had a lot of
   trouble with a BIOS upgrade for one of these of boxes.  Thus
   the question:  Has anyone here had any experience, either good
   or bad, with running FreeBSD on one of these with an upgraded
   BIOS?  If so, which version?  I found A06, A07, A10, A11, and
   A13 on Dell's FTP site.

dmesg (from a USB boot) attached.  The reported 320GB (on an add-in
card) is a twin of the one described above that isn't recognized on
the primary on-board channel.  I want them on separate channels to
improve mirroring performance.
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel Pentium III (731.47-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x683  Family = 6  Model = 8  Stepping = 3
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 536870912 (512 MB)
avail memory = 506056704 (482 MB)
ACPI APIC Table: DELL   WS 420 
ioapic0: Changing APIC ID to 1
ioapic0 Version 2.0 irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: DELL WS 420  on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, f0 (3) failed
acpi0: reservation of 100, 1ef9e000 (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: Intel 82840 host to AGP bridge on hostb0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
vgapci0: VGA-compatible display mem 
0xf400-0xf5ff,0xfcffc000-0xfcff,0xfc00-0xfc7f irq 16 at 
device 0.0 on pci1
pcib2: ACPI PCI-PCI bridge at device 30.0 on pci0
pci2: ACPI PCI bus on pcib2
xl0: 3Com 3c905C-TX Fast Etherlink XL port 0xdc80-0xdcff mem 
0xf8fffc00-0xf8fffc7f irq 16 at device 4.0 on pci2
miibus0: MII bus on xl0
xlphy0: 3c905C 10/100 internal PHY PHY 24 on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:b0:d0:22:5a:14
xl0: [ITHREAD]
pci2: multimedia, audio at device 6.0 (no driver attached)
atapci0: VIA 6421 SATA150 controller port 
0xdc70-0xdc7f,0xdc50-0xdc5f,0xdc30-0xdc3f,0xdc10-0xdc1f,0xd8e0-0xd8ff,0xd400-0xd4ff
 irq 19 at device 11.0 on pci2
atapci0: [ITHREAD]
ata2: ATA channel 0 on atapci0
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci0
ata3: [ITHREAD]
ata4: ATA channel 2 on atapci0
ata4: [ITHREAD]
pcib3: PCI-PCI bridge at device 14.0 on pci2
pci3: PCI bus on pcib3
ahc0: Adaptec aic7899 Ultra160 SCSI adapter port 0xec00-0xecff mem 
0xfafff000-0xfaff irq 18 at device 10.0 on pci3
ahc0: [ITHREAD]
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
ahc1: Adaptec aic7899 Ultra160 SCSI adapter port 0xe800-0xe8ff mem 
0xfaffe000-0xfaffefff irq 19 at device 10.1 on pci3
ahc1: [ITHREAD]
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci1: Intel ICH UDMA66 controller port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0
ata0: ATA channel 0 on atapci1
ata0: [ITHREAD]
ata1: ATA channel 1 on atapci1
ata1: [ITHREAD]
uhci0: Intel 82801AA (ICH) USB controller port 0xff80-0xff9f irq 19 at device 
31.2 on pci0
uhci0: [ITHREAD]
uhci0: LegSup = 0x2f00
usbus0: Intel 82801AA (ICH) USB controller on uhci0
pci0: serial bus, SMBus at device 31.3 (no driver attached)
atrtc0: AT realtime clock port 0x70-0x7f irq 8 on acpi0
fdc0: floppy drive controller port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: 1440-KB 3.5 drive on fdc0 drive 0
atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0

Re: 8.1: Cron ignoring crontab updates

2010-09-03 Thread Arthur Chance

On 09/03/10 09:19, per...@pluto.rain.com wrote:

Chris Reesutis...@gmail.com  wrote:


You have to SIGHUP cron, not restart it.

# killall -HUP cron


Isn't crontab(1) supposed to do that, without separate intervention?


From man cron


 Additionally, cron checks each minute to see if its spool directory's
 modification time (or the modification time on /etc/crontab) has changed,
 and if it has, cron will then examine the modification time on all
 crontabs and reload those which have changed.  Thus cron need not be
 restarted whenever a crontab file is modified.  Note that the crontab(1)
 command updates the modification time of the spool directory whenever it
 changes a crontab.


From the original post crontab seems to be working, so all I can suggest
is to ls -ld /var/cron/tabs before and after using crontab -e and see
if the modtime is being changed correctly.
___
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: two ata-related problems

2010-09-03 Thread claudiu vasadi
Hi,

For point no. 1 you can check if the drive is supported @
http://www.freebsd.org/releases/8.1R/hardware.html.

Sorry, no idea about point no. 2
___
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: Weird Linux - FreeBSD/ZFS NFSv4 interoperability problem

2010-09-03 Thread Ivan Voras

On 09/02/10 21:25, David Brodbeck wrote:

While doing some interoperability testing between Linux and FreeBSD, I
came up with this unusual issue.  I could use some help figuring out
if this is a bug, and if so, where to file it.  Here's the scenario:

- FreeBSD 8.1-RELEASE server, sharing a ZFS filesystem via NFSv4.


I think that this is the beginning of your problems - even the developer 
who is working on NFSv4 says it's too experimental to be used in real world.



- Linux client (I've tested with RHEL 5.4 and Debian Lenny) mounting
said filesystem with NFSv4.
- A user on the Linux client does a Subversion checkout onto the
mounted filesystem.

At the end of the checkout, access to the filesystem hangs.  nfsd on
the FreeBSD server and rpciod on the Linux client seem to be in a
tight loop, and there's lots of network traffic between them.  I can
reproduce this every time.

The problem does not occur if the backing filesystem is UFS instead of
ZFS, if NFSv3 is used instead of NFSv4, or if the client is FreeBSD
instead of Linux.


... but you may have stumbled on something specific. I recommend you 
repeat this same post (and others you have on the similar topic) on the 
freebsd-fs at freebsd.org mailing list, the developer (Rick Macklem) 
reads it.


___
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


emulators/open-vm-tools do not compile (was: Re: vmware-guestd6: error during make install)

2010-09-03 Thread Matthias Apitz
El día Friday, September 03, 2010 a las 10:31:43AM +0200, Matthias Apitz 
escribió:

 The VM is a VMware player 3.0.0 which says about itself
 Workstation 6.5-7.0 in the overview about the VM setup for FreeBSD;
 is this fine enough for the emulators/open-vm-tools?
 

emulators/open-vm-tools does not compile:


...
cc -O2 -pipe -fno-strict-aliasing  -Wall -Werror -Werror -D_KERNEL -DKLD_MODULE 
-nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param 
inline-unit-growth=100 --param large-function-growth=1000 -fno-common  
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow 
-mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions -c vfsops.c
vfsops.c:118: error: conflicting types for 'VMBlockVFSMount'
vfsops.c:70: error: previous declaration of 'VMBlockVFSMount' was here
vfsops.c:259: error: conflicting types for 'VMBlockVFSUnmount'
vfsops.c:74: error: previous declaration of 'VMBlockVFSUnmount' was here
vfsops.c:343: error: conflicting types for 'VMBlockVFSRoot'
vfsops.c:71: error: previous declaration of 'VMBlockVFSRoot' was here
vfsops.c:379: error: conflicting types for 'VMBlockVFSStatFS'
vfsops.c:73: error: previous declaration of 'VMBlockVFSStatFS' was here
vfsops.c:389:64: error: macro VFS_STATFS passed 3 arguments, but takes just 2
vfsops.c: In function 'VMBlockVFSStatFS':
vfsops.c:389: error: 'VFS_STATFS' undeclared (first use in this function)
vfsops.c:389: error: (Each undeclared identifier is reported only once
vfsops.c:389: error: for each function it appears in.)
vfsops.c: At top level:
vfsops.c:429: error: conflicting types for 'VMBlockVFSSync'
vfsops.c:72: error: previous declaration of 'VMBlockVFSSync' was here
*** Error code 1

Stop in 
/usr/ports/emulators/open-vm-tools/work/open-vm-tools-2009.03.18-154848/modules/freebsd/vmblock.
*** Error code 1

Stop in 
/usr/ports/emulators/open-vm-tools/work/open-vm-tools-2009.03.18-154848/modules.
*** Error code 1

Stop in /usr/ports/emulators/open-vm-tools/work/open-vm-tools-2009.03.18-154848.
*** Error code 1

Stop in /usr/ports/emulators/open-vm-tools.


Thanks for a hint

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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: Applying a patch to a port

2010-09-03 Thread Vincent Hoffman
 On 03/09/2010 08:53, bsd wrote:
 Hello, 

 I have a patch for clamav that was submited by a developer of clamav. 
 I don't know how to apply It to the source code of the port. 

 What I would like to do: 

 1. Get the source code 
 2. cd to the source directory 
 3. Apply the patch 
 4. Recompile 
 5. Test 

 If this is ok, then as an option: 

 6. validate changes  updates 
 7. submit patch to the FBSD port

Not too hard, the infrastructure for patching ports is there already.

1) cd /usr/ports/catagory/portname  (obviously make this the port
directory you want
2) make patch (this will fetch the source if you need it  and extract it
and apply any patches already needed/supplied )
3) cd work (this is where the tarball is extracted.) and possibly into
the clamav-$version directory
4) apply  your patchfile :)
5)  cd back into the port directory
6) make (or make install if you want to install it.

All current patches are in the files directory of the port so you can
use them as a template for naming etc so the port can automatically use
you patch once your happy its working. The porters handbook is well
worth a look though if your planing on doing much with a port.
(http://www.freebsd.org/doc/en/books/porters-handbook/)


Vince
 Thanks for your support. 


 
 Gregober --- PGP ID -- 0x1BA3C2FD
 bsd @at@ todoo.biz
 



 ___
 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

___
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: vmware-guestd6: error during make install

2010-09-03 Thread Glen Barber
Hi,

On 9/3/10 4:31 AM, Matthias Apitz wrote:
 I'm trying to install the port /usr/ports/emulators/vmware-guestd6 (even
 the freshest from FreeBSD server) in 8-CURRENT:

 Do you have a particular reason for using this port? Assuming you mean
 8.X,
 
 My FreeBSD is a CVS 8-CURRENT from May 2009 to be exactly, i.e. after
 8-RELEASE but before 8.1.
 

9-CURRENT was after 8.0-RELEASE.  Can you provide the output of 'uname -a'?

Regards,

-- 
Glen Barber
___
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: vmware-guestd6: error during make install

2010-09-03 Thread Matthias Apitz
El día Friday, September 03, 2010 a las 08:51:08AM -0400, Glen Barber escribió:

 Hi,
 
 On 9/3/10 4:31 AM, Matthias Apitz wrote:
  I'm trying to install the port /usr/ports/emulators/vmware-guestd6 (even
  the freshest from FreeBSD server) in 8-CURRENT:
 
  Do you have a particular reason for using this port? Assuming you mean
  8.X,
  
  My FreeBSD is a CVS 8-CURRENT from May 2009 to be exactly, i.e. after
  8-RELEASE but before 8.1.
  
 
 9-CURRENT was after 8.0-RELEASE.  Can you provide the output of 'uname -a'?

Of course:

g...@current:~ uname -a
FreeBSD current.Sisis.de 8.0-CURRENT FreeBSD 8.0-CURRENT #5: Sun Jan 10 
09:55:14 CET 2010 g...@current.sisis.de:/usr/obj/usr/src/sys/GENERIC i386
g...@current:~ ls -l /usr/src/CVS
total 8
-rw-r--r--  1 root  wheel  654 28 may  2009 Entries
-rw-r--r--  1 root  wheel4 19 may  2009 Repository
-rw-r--r--  1 root  wheel   51 19 may  2009 Root
-rw-r--r--  1 root  wheel  660 19 may  2009 Template

As I said, the kernel and user land is based on what was in CVS in May
2009. Later I incorparated some new USB stuff, that's why the build is
from Januar 2010.

I tried to install the vmware-freebsd-tools.tar.gz directly as
VMWare.com it provides (I have compat6x already installed for some other
reason). But in vmware-freebsd-tools.tar.gz there are only kernel
modules for FreeBSD 6 and 7 and using the modules for 7 it crashes, ofc.

Who can I get the tools installed?

Thanks

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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: two ata-related problems

2010-09-03 Thread Lowell Gilbert
per...@pluto.rain.com writes:

 Two questions about installing FreeBSD 8.1 on a Dell Precision 420
 (yes, I know it's old):

I have a similar machine running as a lab tool.

 1. Should FreeBSD 8.1 be able to recognize a 100MB ATAPI Zip drive?
I'm not finding it in the dmesg, although BIOS Setup recognizes
it.  (It and a CDROM are on the secondary IDE channel; I've tried
with each of them as master and either way the CD is recognized
but the Zip is not.)

The default kernel definitely won't, but with the vpo device enabled, it
probably will.  There's a kernel module for that, so you can try 
kldload vpo.

 2. It currently has the original A01 BIOS.  I'm going to have to
update that, because it doesn't recognize the 320GB drive I've
added as a new boot drive.  With the 320GB installed as unit 0
(master) on the primary IDE channel, the A01 BIOS won't even
recognize the previously-working 40GB drive which is now unit 1;
so the BIOS disables that channel entirely keeping FreeBSD from
seeing those drives either.

A BIOS upgrade should be straightforward, but while Googling
I ran into a posting where someone apparently had a lot of
trouble with a BIOS upgrade for one of these of boxes.  Thus
the question:  Has anyone here had any experience, either good
or bad, with running FreeBSD on one of these with an upgraded
BIOS?  If so, which version?  I found A06, A07, A10, A11, and
A13 on Dell's FTP site.

A01 gave me a bunch of problems, although I don't really remember the
details (it was more than five years ago!) at this point.  BIOS upgrades
were no problem at all.  I stopped upgrading the BIOS once everything
worked -- at least, everything I noticed.

Good luck.
___
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: Applying a patch to a port

2010-09-03 Thread Leonidas Tsampros
bsd b...@todoo.biz writes:

 Hello, 

 I have a patch for clamav that was submited by a developer of clamav. 
 I don't know how to apply It to the source code of the port. 

 What I would like to do: 

 1. Get the source code 
 2. cd to the source directory 
 3. Apply the patch 
 4. Recompile 
 5. Test 

Hi,

as a starting point you could follow this procedure:

a) cd /usr/ports/security/clamav
b) make extract
c) cd work/clamav-whatever-version
d) patch -p0  the.patch.file.provided.by.the.clamav.developer.diff
e) cd ../..
f) make install (as usual)

Hope this helps.

Best Regards
Leonidas Tsampros
___
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: two ata-related problems

2010-09-03 Thread Erik Trulsson
On Fri, Sep 03, 2010 at 09:11:02AM -0400, Lowell Gilbert wrote:
 per...@pluto.rain.com writes:
 
  Two questions about installing FreeBSD 8.1 on a Dell Precision 420
  (yes, I know it's old):
 
 I have a similar machine running as a lab tool.
 
  1. Should FreeBSD 8.1 be able to recognize a 100MB ATAPI Zip drive?
 I'm not finding it in the dmesg, although BIOS Setup recognizes
 it.  (It and a CDROM are on the secondary IDE channel; I've tried
 with each of them as master and either way the CD is recognized
 but the Zip is not.)
 
 The default kernel definitely won't, but with the vpo device enabled, it
 probably will.  There's a kernel module for that, so you can try 
 kldload vpo.

Why would you need vpo for an ATAPI device? It is only for parallell
devices.
You should only need the 'ata' and 'atapifd' devices (both of whoch are
included in GENERIC)  to handle an ATAPI Zip drive.

So, yes, FreeBSD 8.1 *should* be able to recognize an ATAPI Zip drive.


-- 
Insert your favourite quote here.
Erik Trulsson
ertr1...@student.uu.se
___
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: error - ad2: FAILURE

2010-09-03 Thread Xihong Yin


Thanks for the info. Now I am getting more such error messages and the
disk fails at boot when trying to mount on /usr.

Xihong


On Thu, 2 Sep 2010, Lowell Gilbert wrote:


Mike Jeays mike.je...@rogers.com writes:


On September 1, 2010 10:29:42 pm Xihong Yin wrote:

Hi,

I received the following error when I try to access files in some of the
directories in /usr and when the computer boots. ad2s1f is mounted on
/usr.

ad2: FAILURE - READ_DMA status=51READY,DSC,ERROR error=40UNCORRECTABLE
LBA=37370159 g_vfs_done():ad2s1f[READ(offset=15415558144,
length=16384)]error = 5

Is this a sign of hard drive failure? Can I fix the error or do I have to
replace the hard drive?



I would think it is a hardware error, and the disk has run out of replacement
sectors. If possible, it should be replaced, and any valuable data copied to
somewhere safe, as soon as possible.


Not necessarily.  This is a read error, so replacement sectors wouldn't
help anyway.  The problematic files might get fixed by the disk if they
were rewritten.  A SMART report (e.g., from sysutils/smartmontools)
might give more information about the condition of the drive.

None of which is to say that it isn't worrying, or that backing up
valuable data isn't called for (even more so than usual).  Make sure you
have good backups before you do anything else.
___
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


___
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: error - ad2: FAILURE

2010-09-03 Thread Lowell Gilbert
Xihong Yin x...@gmx.com writes:

 Thanks for the info. Now I am getting more such error messages and the
 disk fails at boot when trying to mount on /usr.

On the chance the disk can be saved, you may want to try the 
manufacturer's diagnostics.
___
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


Boot Drive Nomenclature and How to Figure it out

2010-09-03 Thread Martin McCormick
I have been writing a script to build a system from a
mfsboot startup and it is going well but I want to revisit part
of the script that I don't think I did a very good job with.

Is there an automatic way to tell which of the devices
shown in /dev is a likely system drive? This is before anything
is mounted.

We can usually figure it out ourselves, but is there a
way for a script to figure out automatically which character
device could be the one we are going to put the OS on and use as
our boot drive?

I know this sounds really obvious and you can tell
scripts not to use /dev/acdx as they are CDROM devices, but
system drives can actually take many different names depending
on whether they are RAIDs SCSI IDE, etc.

Any good suggestions are appreciated.

Martin McCormick
___
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


FWD: High Performance Custom Fields for Multi-Tenant SaaS Architectures

2010-09-03 Thread Louie Bernstein
Thought you might find this interesting and, hopefully helpful Subscriber.

Another article written by our CEO, Sanjay Bhatia.

High Performance Custom Fields for Multi-Tenant SaaS Architectures

This article shows a simple way to give applications with [1]multi-tenant
architectures the ability to add custom fields while keeping the performance,
type safety and [2]reporting capabilities of the relational model and SQL
language.

SaaS Takes Over the ASP Model

In the late 90's application service providers started leveraging the
availability of abundant bandwidth and the popularity of the web to deliver
applications in an [3]ASP model. Essentially the application would be hosted on
a shared server and managed by the ASP.  While this was a step in the right
direction, there were still significant challenges with this approach.  These
models evolved into what is now knows as Software as a Service or [4]SaaS.
SaaS architectures introduced multi-tenancy which allowed pools of high powered
resources to be shared in a different way.  Rather than customers having their
own web server and database, a shared infrastructure served dozens or sometimes
thousands of customers.

The Customization Requirement

Businesses generally need some level of customization for all their software.
The most common need is to store information that is specific to that business,
but may not be something every single customer needs to have. For instance, we
are a [5]salesforce.com customer. For all our leads, we track the download date
so when know when a lead has [6]downloaded a trial of our [7]self-service
reporting product for evaluation purposes. Since most [8]salesforce.com
customers do not have downloadable trials, it would not make sense for them add
this just for us. If you did that in a multi-tenant environment, you'd quickly
end up with a data architecture that is unwieldy from a maintenance
perspective. Instead, salesforce let's us add custom fields that are relevant
to us. They've done a great job of engineering the system so the custom fields
work pretty much like a stock field that the system ships with. If you are
working on a SaaS application, you will likely run into the same scenario.

Inevitably, customers needed the ability to extend the applications. Since
there was a shared code base and schema, vendors needed to find a way to
deliver this functionality without changing the database schema which was
shared across all customers.  Two main approaches became popular.

Two Popular Methods

Method Description Advantages Disadvantages
[9]Entity Attribute Value(EAV) This method uses name-value pairs Single
universal  schema across all tenants.

Eliminates all advantages of using a relational database.
Special Code must be written to access the data.
Significant performance and scalability problems with large data sets or
objects with a large number of fields.
Reporting becomes nearly impossible
Custom Joined Table This method adds a secondary table per tenant and which
will be joined.

Relatively high performance
Retains the benefits of SQL technology

Does not scale to a large number of tenants.
The number of custom tables becomes impossible to manage and administer.
The application schema must change at run time.

There Is A Better Way

One way to retain all the benefits of the relational model without adding lots
of customer-specific tables is to use a single, generic table to store the data
and a second table to map it to customer specific fields.  Since databases
optimize types differently, we will create a set of columns for each time. Note
that under this approach we do have a limit to the number of maximum fields
there are. For extrely large systems, you may want to break each type up into a
separate table.

Create script for custom fields table.
CREATE TABLE [dbo].[CustomFields](
[TenantID] [int],
[TableName] [varchar](50),
[EntityID] [int],
[Int1] [int] NULL,
[Int2] [int] NULL,
[Int3] [int] NULL,
[String1] [varchar](50) NULL,
[String2] [varchar](50) NULL,
[String3] [varchar](50) NULL,
[DateTime1] [datetime] NULL,
[DateTime2] [datetime] NULL,
[DateTime3] [datetime] NULL
) ON [PRIMARY]

This table will store the actual data. The TenantID field locks the data to
that particular account or customer in a multi-tenant system with a shared
database. TableName represents the name of the table where the entity is
stored. The EntityID is the primary key of whatever object this links to. The
rest of the fields store actual data based on the type of the field. So if we
just created a Lead in our [10]CRM system and needed to record a download date
as a custom field our insert would look something like this.
INSERT INTO CustomFields(
TenantID,
TableName,
EntityID,
DateTime1)
VALUES (1,'Leads',1,'08/18/2010')
To retrieve the data we would do a LEFT JOIN. This lets us retrieve any
custom fields.

SELECT * FROM Leads
LEFT JOIN CustomFields ON
Leads.TenantID=CustomFields.TenantID
AND TableName='Leads' AND EntityID=LeadID

Next 

Re: Boot Drive Nomenclature and How to Figure it out

2010-09-03 Thread Adam Vande More
On Fri, Sep 3, 2010 at 9:10 AM, Martin McCormick
mar...@dc.cis.okstate.eduwrote:

I have been writing a script to build a system from a
 mfsboot startup and it is going well but I want to revisit part
 of the script that I don't think I did a very good job with.

Is there an automatic way to tell which of the devices
 shown in /dev is a likely system drive? This is before anything
 is mounted.

We can usually figure it out ourselves, but is there a
 way for a script to figure out automatically which character
 device could be the one we are going to put the OS on and use as
 our boot drive?

I know this sounds really obvious and you can tell
 scripts not to use /dev/acdx as they are CDROM devices, but
 system drives can actually take many different names depending
 on whether they are RAIDs SCSI IDE, etc.

Any good suggestions are appreciated.


Would doing something like:

gpart list

help?


-- 
Adam Vande More
___
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


CARP and freebsd

2010-09-03 Thread gahn
Hi, all:

Is carp a part of freebsd 8.1? or I have to download from somewhere and install 
it?

Thanks in advance


  
___
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: CARP and freebsd

2010-09-03 Thread ashley
 Hi, all:

 Is carp a part of freebsd 8.1? or I have to download from somewhere and
 install it?

 Thanks in advance



 ___
 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

The FreeBSD hand book says:

To enable support for CARP, the FreeBSD kernel must be rebuilt with the
following option:

device carp


(http://www.freebsd.org/doc/handbook/carp.html)

It's indicated as covering FreeBSD 7.3-RELEASE and FreeBSD 8.1-RELEASE so
you should be OK.

___
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: Boot Drive Nomenclature and How to Figure it out

2010-09-03 Thread Martin McCormick
Adam Vande More writes:
 Would doing something like:
 
 gpart list
 
 help?

Thank you. I have never heard of gpart before so I gave
it a try and that helps very much if the drive is already
formatted. Most of these drives I plan to encounter will be
formatted so this basically solves the problem but it raises a
new question. If one does

gpart list as suggested and the disk is formatted, one gets
exactly the information necessary. I believe it is even the
first line of output. It doesn't get better than that. If the
disk is not corrected formatted such as might happen with
corruption or maybe a new drive, gpart list executes silently
and prints nothing on the output.

As I said, you answered my question so many thanks. The
new question might best be put:

Okay, if nothing is there, where did gpart look to see nothing?

Martin McCormick
___
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: CARP and freebsd

2010-09-03 Thread Kevin Wilcox
On 3 September 2010 10:37, gahn ipfr...@yahoo.com wrote:

 Is carp a part of freebsd 8.1? or I have to download from somewhere and 
 install it?

Everything you could want to know about CARP and FreeBSD:

http://www.freebsd.org/doc/handbook/carp.html

On my 8.1 box -

fbsdsroute0# sysctl net.inet.carp.allow
sysctl: unknown oid 'net.inet.carp.allow'

So I can't say for certain but I would hazard the guess that it is not
included in the GENERIC kernel.

Alas, there is documentation for rebuilding your kernel, too:

http://www.freebsd.org/doc/handbook/kernelconfig.html

kmw
___
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: Boot Drive Nomenclature and How to Figure it out

2010-09-03 Thread Adam Vande More
On Fri, Sep 3, 2010 at 10:04 AM, Martin McCormick
mar...@x.it.okstate.eduwrote:

Thank you. I have never heard of gpart before so I gave
 it a try and that helps very much if the drive is already
 formatted. Most of these drives I plan to encounter will be
 formatted so this basically solves the problem but it raises a
 new question. If one does

 gpart list as suggested and the disk is formatted, one gets
 exactly the information necessary. I believe it is even the
 first line of output. It doesn't get better than that. If the
 disk is not corrected formatted such as might happen with
 corruption or maybe a new drive, gpart list executes silently
 and prints nothing on the output.

As I said, you answered my question so many thanks. The
 new question might best be put:

 Okay, if nothing is there, where did gpart look to see nothing?


I believe gpart checks the geom sector which the last one of a particular
geom class. The sector is written anytime the geom device is added or
updated.  This applies only to geom devices which are hardcoded.  For
example, /dev/ad0 and /dev/ad0p1 would both be seperate geom classes and
have their own meta-data sector.

FWIW, the only suitable hard disk devices I know of are:

/dev/ad{0-9}
/dev/ada{0-9}
/dev/da{0-9}

If you're writing a test, I would probably grep dmesg for the presence of
one of them.  The first device appearance is probably a prime candidate for
installation target.

-- 
Adam Vande More
___
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: Weird Linux - FreeBSD/ZFS NFSv4 interoperability problem

2010-09-03 Thread David Brodbeck
Thanks, Ivan.  I'll pursue it there.

If it's not ready for prime time yet, I understand, but I'd also like
to help nudge it in that direction. :)


On Fri, Sep 3, 2010 at 2:57 AM, Ivan Voras ivo...@freebsd.org wrote:
 On 09/02/10 21:25, David Brodbeck wrote:

 While doing some interoperability testing between Linux and FreeBSD, I
 came up with this unusual issue.  I could use some help figuring out
 if this is a bug, and if so, where to file it.  Here's the scenario:

 - FreeBSD 8.1-RELEASE server, sharing a ZFS filesystem via NFSv4.

 I think that this is the beginning of your problems - even the developer who
 is working on NFSv4 says it's too experimental to be used in real world.

 - Linux client (I've tested with RHEL 5.4 and Debian Lenny) mounting
 said filesystem with NFSv4.
 - A user on the Linux client does a Subversion checkout onto the
 mounted filesystem.

 At the end of the checkout, access to the filesystem hangs.  nfsd on
 the FreeBSD server and rpciod on the Linux client seem to be in a
 tight loop, and there's lots of network traffic between them.  I can
 reproduce this every time.

 The problem does not occur if the backing filesystem is UFS instead of
 ZFS, if NFSv3 is used instead of NFSv4, or if the client is FreeBSD
 instead of Linux.

 ... but you may have stumbled on something specific. I recommend you repeat
 this same post (and others you have on the similar topic) on the freebsd-fs
 at freebsd.org mailing list, the developer (Rick Macklem) reads it.

 ___
 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

___
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


Which of these NICs will work?

2010-09-03 Thread Ryan Coleman
Any thoughts? I need/want to get a multi-port NIC for my new system but I 
haven't purchased the guts for the server yet.

http://www.newegg.com/Product/ProductList.aspx?Submit=ENEN=100010064+600013872+600016290QksAutoSuggestion=ShowDeactivatedMark=FalseConfigurator=IsNodeId=1Subcategory=27description=Ntk=CFG=SpeTabStoreType=srchInDesc=

Basically, this machine will have two external (real-world) IPs and one network 
LAN (10.0.1.0/24) address, finding three-NIC motherboards is not exactly 
possible so this is my alternative.

I'm looking for FreeBSD 7-9 support. Rather run 8.1-RELEASE (same as my other 
two machines right now).

Thanks,

Ryan

___
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


i386 to amd64 migration

2010-09-03 Thread Elifan
Hello,

I  have  experience  in freebsd but never did such system architecture
migration.
Is it possible to do safely with only SSH access (or IP-KVM)?
I'm planning to upgrade system from 7.2 to 7.3 but it's i386..

Regards,
Elifan

___
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: i386 to amd64 migration

2010-09-03 Thread claudiu vasadi
AFAIK,basically  no

x86 - x86
and
x64 - x64

Non-basically ... yes but it's a real pain in the @$$ and you will
definitely run in all kinds of trouble.

ip you have KVM access, just put a x64 DVD inside and do a clean install (it
will keep your sanity intact)
___
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: 8.1: Cron ignoring crontab updates

2010-09-03 Thread patrick
Yes, it's definitely updating:

[r...@juno /var/cron/tabs]# ls -ald /var/cron/tabs
drwx--  2 root  wheel  512 Sep  2 12:49 /var/cron/tabs

And after editing my crontab:

[r...@juno /var/cron/tabs]# ls -ald /var/cron/tabs
drwx--  2 root  wheel  512 Sep  3 10:25 /var/cron/tabs

I've been using FreeBSD since version 4, and this has never once been
an issue, nor is this an issue on a system with a fresh install of
8.1.

Patrick


On Fri, Sep 3, 2010 at 2:37 AM, Arthur Chance free...@qeng-ho.org wrote:
 On 09/03/10 09:19, per...@pluto.rain.com wrote:

 Chris Reesutis...@gmail.com  wrote:

 You have to SIGHUP cron, not restart it.

 # killall -HUP cron

 Isn't crontab(1) supposed to do that, without separate intervention?

 From man cron

     Additionally, cron checks each minute to see if its spool directory's
     modification time (or the modification time on /etc/crontab) has
 changed,
     and if it has, cron will then examine the modification time on all
     crontabs and reload those which have changed.  Thus cron need not be
     restarted whenever a crontab file is modified.  Note that the
 crontab(1)
     command updates the modification time of the spool directory whenever
 it
     changes a crontab.

 From the original post crontab seems to be working, so all I can suggest
 is to ls -ld /var/cron/tabs before and after using crontab -e and see
 if the modtime is being changed correctly.

___
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


Which of these NICs will work?

2010-09-03 Thread Robert Huff

Ryan Coleman writes:

  Any thoughts? I need/want to get a multi-port NIC for my new
  system but I haven't purchased the guts for the server yet. 
  
  
 http://www.newegg.com/Product/ProductList.aspx?Submit=ENEN=100010064+600013872+600016290QksAutoSuggestion=ShowDeactivatedMark=FalseConfigurator=IsNodeId=1Subcategory=27description=Ntk=CFG=SpeTabStoreType=srchInDesc=
  
  
  Basically, this machine will have two external (real-world) IPs
  and one network LAN (10.0.1.0/24) address, finding three-NIC
  motherboards is not exactly possible so this is my alternative. 

Intel network cards have a very good reputation; I have been
running a dual-port Pro/1000 GT for years and the thing is still a
rock.  Others will have a better opinion on performance issues.
The Intel employee who maintains the driver is frequently seen
on current@ and occasionally on questi...@.  Nice guy, very
responsive.


Robert Huff


___
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: watch(8) does not work in jails

2010-09-03 Thread David DEMELIER
2010/8/17 Roland Smith rsm...@xs4all.nl:
 On Tue, Aug 17, 2010 at 12:09:23AM +0200, David DEMELIER wrote:
  Does /dev/pts/0 actually exist in the jail's devfs instance, and are its
  permissions correct?
 

 (In jail) :

 # ls -l /dev/pts/*
 crw--w  1 markand  tty    0,  94 17 Aug 00:06 /people/dev/pts/0
 crw--w  1 markand  tty    0,  96 17 Aug 00:06 /people/dev/pts/1
 crw--w  1 root     tty    0, 101 21 Jul 00:07 /people/dev/pts/2
 crw--w  1 markand  tty    0, 108 17 Aug 00:06 /people/dev/pts/3
 crw--w  1 markand  tty    0,  99 16 Aug 01:28 /people/dev/pts/4
 crw--w  1 markand  tty    0, 112 17 Aug 00:05 /people/dev/pts/5
 crw--w  1 root     tty    0, 111 17 Aug 00:06 /people/dev/pts/6
 crw--w  1 root     tty    0, 114 16 Aug 23:53 /people/dev/pts/7
 crw--w  1 root     tty    0, 100 17 Aug 00:06 /people/dev/pts/8

 I think you mounted your devfs incorrectly or you started the jail in the
 wrong directory. If ls is run inside the jail, it should be /dev/pts/N, not
 /people/dev/pts/N!

 Roland
 --
 R.F.Smith                                   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


Sorry I made a mistake while I was writing. In fact there is the
permissions in the jail :

mark...@orange ~ $ sudo jexec 1 tcsh
# su -
People# ls -l /dev/pts/*
crw--w  1 zazak  tty0, 118  3 Sep 20:39 /dev/pts/0
crw--w  1 zazak  tty0,  99  3 Sep 07:07 /dev/pts/4
crw--w  1 zazak  tty0,  94  3 Sep 20:39 /dev/pts/6
People# who
zazak   pts/0 1 Sep 19:07 (92.147.166.20:S.)
zazak   pts/410 Aug 16:00 (92.147.166.20:S.)
People# watch pts/0
watch: fatal: cannot open snoop device

And that's it.

-- 
Demelier David
___
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: watch(8) does not work in jails

2010-09-03 Thread David DEMELIER
2010/9/3 David DEMELIER demelier.da...@gmail.com:
 2010/8/17 Roland Smith rsm...@xs4all.nl:
 On Tue, Aug 17, 2010 at 12:09:23AM +0200, David DEMELIER wrote:
  Does /dev/pts/0 actually exist in the jail's devfs instance, and are its
  permissions correct?
 

 (In jail) :

 # ls -l /dev/pts/*
 crw--w  1 markand  tty    0,  94 17 Aug 00:06 /people/dev/pts/0
 crw--w  1 markand  tty    0,  96 17 Aug 00:06 /people/dev/pts/1
 crw--w  1 root     tty    0, 101 21 Jul 00:07 /people/dev/pts/2
 crw--w  1 markand  tty    0, 108 17 Aug 00:06 /people/dev/pts/3
 crw--w  1 markand  tty    0,  99 16 Aug 01:28 /people/dev/pts/4
 crw--w  1 markand  tty    0, 112 17 Aug 00:05 /people/dev/pts/5
 crw--w  1 root     tty    0, 111 17 Aug 00:06 /people/dev/pts/6
 crw--w  1 root     tty    0, 114 16 Aug 23:53 /people/dev/pts/7
 crw--w  1 root     tty    0, 100 17 Aug 00:06 /people/dev/pts/8

 I think you mounted your devfs incorrectly or you started the jail in the
 wrong directory. If ls is run inside the jail, it should be /dev/pts/N, not
 /people/dev/pts/N!

 Roland
 --
 R.F.Smith                                   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


 Sorry I made a mistake while I was writing. In fact there is the
 permissions in the jail :

 mark...@orange ~ $ sudo jexec 1 tcsh
 # su -
 People# ls -l /dev/pts/*
 crw--w  1 zazak  tty    0, 118  3 Sep 20:39 /dev/pts/0
 crw--w  1 zazak  tty    0,  99  3 Sep 07:07 /dev/pts/4
 crw--w  1 zazak  tty    0,  94  3 Sep 20:39 /dev/pts/6
 People# who
 zazak           pts/0     1 Sep 19:07 (92.147.166.20:S.)
 zazak           pts/4    10 Aug 16:00 (92.147.166.20:S.)
 People# watch pts/0
 watch: fatal: cannot open snoop device

 And that's it.

 --
 Demelier David


People# write pts/0
write: /dev/pts/7: No such file or directory

Then I really don't understand.

-- 
Demelier David
___
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


Regex Help For Procmail

2010-09-03 Thread Drew Tomlinson
 I use procmail for mail delivery and I'm trying to concoct the right 
regex to match From: headers and deliver to a folder.  However mail is 
sent from various addresses so I want to match all that end with 
famous-smoke.com.  Here's an example of a header:


From: Famous Smoke Shopannou...@email.famous-smoke.com

Because I also occasionally order, I don't want to catch mail from 
anything that has the word Orders and Famous in the From field.  
Thus here is my procmail recipe:


# Deliver order info to inbox
:0
*^From:.[Ff]amous.*[Oo]rder.*famous-smoke.com$
${HOME}/Maildir/new/

# Deliver other email to folder
:0
*^From:.*famous-smoke.com$
${HOME}/Maildir/.Shopping/Famous Smoke/Email/

According to my procmail log, the From: header does not match.  I would 
expect the example From: header above to match the second regex and be 
delivered to the specified folder. Where is my error?


Thanks,

Drew


--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.com

___
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: Regex Help For Procmail

2010-09-03 Thread Glen Barber
Hi Drew,

On 9/3/10 2:45 PM, Drew Tomlinson wrote:
  I use procmail for mail delivery and I'm trying to concoct the right
 regex to match From: headers and deliver to a folder.  However mail is
 sent from various addresses so I want to match all that end with
 famous-smoke.com.  Here's an example of a header:
 
 From: Famous Smoke Shopannou...@email.famous-smoke.com
 
 Because I also occasionally order, I don't want to catch mail from
 anything that has the word Orders and Famous in the From field. 
 Thus here is my procmail recipe:
 
 # Deliver order info to inbox
 :0
 *^From:.[Ff]amous.*[Oo]rder.*famous-smoke.com$
 ${HOME}/Maildir/new/
 

Is this supposed to be match Famous OR Order?  This currently matches
Famous AND Order.

 # Deliver other email to folder
 :0
 *^From:.*famous-smoke.com$
 ${HOME}/Maildir/.Shopping/Famous Smoke/Email/
 

Going by your examples, you want to catch Famous OR Order and place
that in Maildir/new, and all other email from this address to go to
Maildir/.Shopping/...

Try this:

# catch famous or order
:0
* ^From:.*([Ff]amous|[Oo]rder).*famous-smoke.com$
$HOME/Maildir/new

# catch everything else from this sender
:0
* ^From:.*famous-smoke.com$
$HOME/Maildir/.Shopping/Famous Smoke/Email/


 According to my procmail log, the From: header does not match.  I would
 expect the example From: header above to match the second regex and be
 delivered to the specified folder. Where is my error?
 

If my assumption above is incorrect, could you paste a snippet from your
procmail log and point out what should be matching so we can have a
specific example?

Regards,

-- 
Glen Barber
___
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


Need to run a Command Once on Boot. FreeBSD8.1

2010-09-03 Thread Martin McCormick
I seem to recall that there is some sort of stub that
will let one execute a script which runs at the last stage of
the boot process but I can't seem to remember enough to look it
up.

I need to run a small script to do pwd_mkdb just once to
sync the passwd data base after booting a 8.1 system for the
first time. The system is being built via script and
/etc/master.passwd has a couple of accounts that the data base
doesn't know about. After running pwd_mkdb against
/etc/master.passwd, all is well but we are locked out of the
system until this happens.

I may even make the script destroy itself after
launching since it never needs to run after that one time.

Thanks.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
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: Need to run a Command Once on Boot. FreeBSD8.1

2010-09-03 Thread Samuel Martín Moro
creating a /etc/rc.local that rm itself?
or, if you already have a rc.local, calling there a script that would self
desctruct after beeing launched.


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S
  (+033) 1 41 38 37 60
  1 Allée de la Venelle
  92150 Suresnes
  FRANCE

Nobody wants to say how this works.
  Maybe nobody knows ...
  Xorg.conf(5)


On Fri, Sep 3, 2010 at 9:13 PM, Martin McCormick
mar...@dc.cis.okstate.eduwrote:

I seem to recall that there is some sort of stub that
 will let one execute a script which runs at the last stage of
 the boot process but I can't seem to remember enough to look it
 up.

I need to run a small script to do pwd_mkdb just once to
 sync the passwd data base after booting a 8.1 system for the
 first time. The system is being built via script and
 /etc/master.passwd has a couple of accounts that the data base
 doesn't know about. After running pwd_mkdb against
 /etc/master.passwd, all is well but we are locked out of the
 system until this happens.

I may even make the script destroy itself after
 launching since it never needs to run after that one time.

Thanks.

 Martin McCormick WB5AGZ  Stillwater, OK
 Systems Engineer
 OSU Information Technology Department Telecommunications Services Group
 ___
 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

___
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: Need to run a Command Once on Boot. FreeBSD8.1

2010-09-03 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Fri Sep  3 14:13:18 2010
 To: freebsd-questions@freebsd.org
 Date: Fri, 03 Sep 2010 14:13:33 -0500
 From: Martin McCormick mar...@dc.cis.okstate.edu
 Subject: Need to run a Command Once on Boot. FreeBSD8.1

   I seem to recall that there is some sort of stub that
 will let one execute a script which runs at the last stage of
 the boot process but I can't seem to remember enough to look it
 up.


/etc/rc.local maybe?  contrary to the 'rc.d' way of doing things, but
'simple'.  :)

___
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: Need to run a Command Once on Boot. FreeBSD8.1

2010-09-03 Thread Martin McCormick
Robert Bonomi writes:
 /etc/rc.local maybe?  contrary to the 'rc.d' way of doing things, but
 'simple'.  :)

Thanks so much to both people who answered. I thought
there was more to it than that  but I may be thinking of the
rcx.d directories in Linux. If you don't watch out, you can be
scratching your head all day trying to figure out why the job
isn't getting done. I use and like both FreeBSD and Linux but
some things are easier in one than the other.

Again, many thanks.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
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: vmware-guestd6: error during make install

2010-09-03 Thread Rob Farmer
On Fri, Sep 3, 2010 at 06:01, Matthias Apitz g...@unixarea.de wrote:
 I tried to install the vmware-freebsd-tools.tar.gz directly as
 VMWare.com it provides (I have compat6x already installed for some other
 reason). But in vmware-freebsd-tools.tar.gz there are only kernel
 modules for FreeBSD 6 and 7 and using the modules for 7 it crashes, ofc.

 Who can I get the tools installed?

My EULA says:

3.4 VMware Tools.  You may distribute the VMware Tools to any third
party provided that (i) you only distribute the VMware Tools as a
whole in object code format whether or not as part of, the Virtual
Machine you create with the Software; (ii) you do not use VMware's
name, logo or trademarks to market the VMware Tools, except  you may
refer to VMware names, logos or trademarks to indicate that the VMware
Tools are compatible with or designed for use with the Software and
(iii) you agree to indemnify, hold harmless, and defend VMware from
and against any claims or lawsuits, including attorneys' fees, that
arise or result from your use or distribution of VMware Tools.
Notwithstanding the foregoing, you may distribute and modify the Open
Source Software of VMware Tools; however, VMware may not provide any
support, pursuant to Section 5, for such modified VMware Tools.

Assuming you aren't in a US export restricted country (Cuba, Iran,
North Korea, Sudan, and Syria) I should be able to give you a legal
copy.

This is the ISO that ships with Workstation 7.1.1 build-282343. It has
kernel modules for 8.0 i386  amd64.

http://www.predatorlabs.net/dl/vmware-tools-freebsd-711.iso

-- 
Rob Farmer
___
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


Custom Kernel -- Module exclusion by association

2010-09-03 Thread freebsd_user
My meaning in the 'subject' is:

Currently we want to: 'options QUOTA' in the kernel.  We do not want to
compile any modules that we don't have to (effort to save time).  If
adding support for 'QUOTA' doesn't require any module rebuilding, how do
we specify/exclude 'all' module building using 'WITHOUT_MODULES' in the
/etc/make.conf?

In addition, if there are modules that need to be rebuilt in 'association'
with the 'options QUOTA', or any other kernel addition, how are we to tell
'what is' needed and/or what 'is not' needed before blindly omitting
modules from the kernel build process?

2) The man make.conf shows a listing for 'KERNCONF', the installed (7.3)
file: /usr/share/examples/etc/make.conf makes no mention of this.  Should
we decide to employ the use of 'KERNCONF' within our /etc/make.conf, does
this get auto-magically read if we only type: env -i make buildkernel
KERNCONF --without typing a configuration filename?  Assuming of course
we saved the named file in /usr/src/sys/arch/conf.

Thanks for taking the time to read my msg.

___
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: network deamons starting before network!

2010-09-03 Thread Peggy Wilkins
On Thu, Sep 2, 2010 at 9:45 AM, Peggy Wilkins enli...@gmail.com wrote:
 On Fri, Jun 18, 2010 at 2:32 AM, Mark Stapper st...@mapper.nl wrote:

 Since updating to 8.X I noticed that network services were started
 before the network was up!
 I use lagg failover configuration on both my FreeBSD boxes.
 First, boot fails on mounting my nfs-shares.
 After entering and exiting the rescue shell, the system boots as normal.

 uname -a
 FreeBSD mario 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #4: Fri Jun 18
 07:46:01 CEST 2010     *...@mario:/usr/obj/usr/src/sys/mario  amd64
 What could I do to fix this?

 Here's an exerpt from /var/log/messages:

 Jun 18 09:10:25  ntpd[1376]: ntpd 4.2.4p5-a (1)
 Jun 18 09:10:25  kernel: fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
 Jun 18 09:10:27  ntpd_initres[1412]: host name not found: yoshi
 Jun 18 09:10:27  kernel: nfe0: link state changed to UP
 Jun 18 09:10:27  kernel: lagg0: link state changed to UP
 Jun 18 09:10:27  kernel: nfe1: link state changed to UP
 Jun 18 09:10:27  ntpd_initres[1412]: couldn't resolve `yoshi', giving up
 on it
 Jun 18 09:10:28  dhclient: New Hostname (lagg0): mario
 Jun 18 09:10:28  dhclient: New IP Address (lagg0): 10.58.235.6
 Jun 18 09:10:28  dhclient: New Subnet Mask (lagg0): 255.255.255.0
 Jun 18 09:10:28  dhclient: New Broadcast Address (lagg0): 10.58.235.255
 Jun 18 09:10:28  dhclient: New Routers (lagg0): 10.58.235.1

 I upgraded my amd64 FreeBSD-8.0-RELEASE-p4 system to
 FreeBSD-8.1-RELEASE earlier this week.  After completing the upgrade
 and rebooting, I also am having the above reported problem.

 I am not using dhcp, I have configured a static IP address.

 My system also has nfe NIC.  I wonder if this problem is specific to
 systems using nfe network driver.  The problem was not occuring on my
 8.0 system, before the upgrade to 8.1.

 Here are my boot messages that display this problem.

[snip]

 It is pretty clear that the network services are all getting started
 twice, once before dropping to single user shell, and a second time
 after exiting single user.

 It is also pretty clear that nfe0: link state changed to DOWN is
 happening at a bad time; and nothing that requires network to be up is
 waiting for it to change to UP.

I have a workaround for this problem, albeit an ugly workaround.  I
edited /etc/rc.d/netif to add a 10 second sleep as each network
interface is brought up:

if [ -n ${_ok} ]; then
case ${_func} in
ifn_start)
_str='Starting'
;;
ifn_stop)
_str='Stopping'
;;
esac
echo ${_str} Network:${_ok}.
if check_startmsgs; then
for ifn in ${_ok}; do
/sbin/ifconfig ${ifn}
sleep 10
done
fi
fi


This is probably overkill, and for me it adds 20 seconds to boot time,
but it works for me until the general problem is solved.

I think there is a general bug with the rc.d/rcorder framework,
because even outside this weird case with nfe NIC if any network mount
fails during the early part of rc processing it is repeated in the
late part via mount -a in the second passthrough.  This results
potentially in multiple mounts of the same remote filesystem (e.g. if
mount_nfs is backgrounded in the first pass mount_nfs will be run a
second time in the second pass; and if the first problem isn't
resolved the second mount_nfs is also backgrounded.  For me this
usually results in two mounts of the same remote filesystem, after the
(presumably temporary) network mounting problem resolves).

plw
___
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: Need to run a Command Once on Boot. FreeBSD8.1

2010-09-03 Thread Jason

On Fri, Sep 03, 2010 at 02:50:48PM -0500, Martin McCormick thus spake:

Robert Bonomi writes:

/etc/rc.local maybe?  contrary to the 'rc.d' way of doing things, but
'simple'.  :)


Thanks so much to both people who answered. I thought
there was more to it than that  but I may be thinking of the
rcx.d directories in Linux. If you don't watch out, you can be
scratching your head all day trying to figure out why the job
isn't getting done. I use and like both FreeBSD and Linux but
some things are easier in one than the other.

Again, many thanks.


man 5 crontab has:

@reboot Run once, at startup



Martin McCormick WB5AGZ  Stillwater, OK
Systems Engineer
OSU Information Technology Department Telecommunications Services Group

___
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: watch(8) does not work in jails

2010-09-03 Thread Roland Smith
On Fri, Sep 03, 2010 at 08:40:01PM +0200, David DEMELIER wrote:
 Sorry I made a mistake while I was writing. In fact there is the
 permissions in the jail :
 
 mark...@orange ~ $ sudo jexec 1 tcsh
 # su -
 People# ls -l /dev/pts/*
 crw--w  1 zazak  tty0, 118  3 Sep 20:39 /dev/pts/0
 crw--w  1 zazak  tty0,  99  3 Sep 07:07 /dev/pts/4
 crw--w  1 zazak  tty0,  94  3 Sep 20:39 /dev/pts/6

That looks OK.

 People# who
 zazak   pts/0 1 Sep 19:07 (92.147.166.20:S.)
 zazak   pts/410 Aug 16:00 (92.147.166.20:S.)
 People# watch pts/0
 watch: fatal: cannot open snoop device

For watch(1) to work, you need the device snp(4) either loaded as a module or
built into the kernel. It's not in the GENERIC kernel.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpH1vsRnRXy2.pgp
Description: PGP signature


Re: Which of these NICs will work?

2010-09-03 Thread Nathan Vidican
I have several Intel multi-port, (2 port, 4 port and even some 2 port
fibre-optic), cards in use. All have been rock-solid, stable performers, and
have hardware VLAN tagging and trunking capability. I have some 4 port cards
in use with LACP+VLAN Trunking, and then use vlan interfaces in FreeBSD
configured per vlan. This allows many networks to share the same interface
and is great for virtualization type situations too.

Just my two cents - but I'd pay the extra for the Intel because I know it
just works predictably and reliably.


-- 
Nathan Vidican
nat...@vidican.com

Happy FreeBSD'er since 2.2.1:)

On Fri, Sep 3, 2010 at 1:32 PM, Robert Huff roberth...@rcn.com wrote:


 Ryan Coleman writes:

   Any thoughts? I need/want to get a multi-port NIC for my new
   system but I haven't purchased the guts for the server yet.
 
 
 http://www.newegg.com/Product/ProductList.aspx?Submit=ENEN=100010064+600013872+600016290QksAutoSuggestion=ShowDeactivatedMark=FalseConfigurator=IsNodeId=1Subcategory=27description=Ntk=CFG=SpeTabStoreType=srchInDesc=
 
   Basically, this machine will have two external (real-world) IPs
   and one network LAN (10.0.1.0/24) address, finding three-NIC
   motherboards is not exactly possible so this is my alternative.

 Intel network cards have a very good reputation; I have been
 running a dual-port Pro/1000 GT for years and the thing is still a
 rock.  Others will have a better opinion on performance issues.
The Intel employee who maintains the driver is frequently seen
 on current@ and occasionally on questi...@.  Nice guy, very
 responsive.


Robert Huff


 ___
 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

___
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: watch(8) does not work in jails

2010-09-03 Thread David DEMELIER
2010/9/3 Roland Smith rsm...@xs4all.nl:
 On Fri, Sep 03, 2010 at 08:40:01PM +0200, David DEMELIER wrote:
 Sorry I made a mistake while I was writing. In fact there is the
 permissions in the jail :

 mark...@orange ~ $ sudo jexec 1 tcsh
 # su -
 People# ls -l /dev/pts/*
 crw--w  1 zazak  tty    0, 118  3 Sep 20:39 /dev/pts/0
 crw--w  1 zazak  tty    0,  99  3 Sep 07:07 /dev/pts/4
 crw--w  1 zazak  tty    0,  94  3 Sep 20:39 /dev/pts/6

 That looks OK.

 People# who
 zazak           pts/0     1 Sep 19:07 (92.147.166.20:S.)
 zazak           pts/4    10 Aug 16:00 (92.147.166.20:S.)
 People# watch pts/0
 watch: fatal: cannot open snoop device

 For watch(1) to work, you need the device snp(4) either loaded as a module or
 built into the kernel. It's not in the GENERIC kernel.

 Roland
 --
 R.F.Smith                                   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


As I said in the first post it's present in my kernel config. I did
not built as module.

-- 
Demelier David
___
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: Regex Help For Procmail

2010-09-03 Thread Drew Tomlinson

 Hi Glen,

Thank you for your reply.

On 9/3/2010 12:02 PM, Glen Barber wrote:

Hi Drew,

On 9/3/10 2:45 PM, Drew Tomlinson wrote:

  I use procmail for mail delivery and I'm trying to concoct the right
regex to match From: headers and deliver to a folder.  However mail is
sent from various addresses so I want to match all that end with
famous-smoke.com.  Here's an example of a header:

From: Famous Smoke Shopannou...@email.famous-smoke.com

Because I also occasionally order, I don't want to catch mail from
anything that has the word Orders and Famous in the From field.
Thus here is my procmail recipe:

# Deliver order info to inbox
:0
*^From:.[Ff]amous.*[Oo]rder.*famous-smoke.com$
${HOME}/Maildir/new/


Is this supposed to be match Famous OR Order?  This currently matches
Famous AND Order.


No, I want Famous AND Order.


# Deliver other email to folder
:0
*^From:.*famous-smoke.com$
${HOME}/Maildir/.Shopping/Famous Smoke/Email/

Going by your examples, you want to catch Famous OR Order and place
that in Maildir/new, and all other email from this address to go to
Maildir/.Shopping/...

Try this:

# catch famous or order
:0
* ^From:.*([Ff]amous|[Oo]rder).*famous-smoke.com$
$HOME/Maildir/new

# catch everything else from this sender
:0
* ^From:.*famous-smoke.com$
$HOME/Maildir/.Shopping/Famous Smoke/Email/

According to my procmail log, the From: header does not match.  I would
expect the example From: header above to match the second regex and be
delivered to the specified folder. Where is my error?

If my assumption above is incorrect, could you paste a snippet from your
procmail log and point out what should be matching so we can have a
specific example?


This is the actual log entry from the example I used in this email:

From annou...@email.famous-smoke.com  Fri Sep  3 10:11:08 2010
 Subject: Another Must-Attend Event at Famous!
  Folder: /home/mydir/Maildir/new/1283533874.95147_0.blacklamb. 8161
procmail: [95164] Fri Sep  3 10:13:05 2010
procmail: Assigning NL=

procmail: Assigning LOG=
/home/mydir/Procmail/famous_smoke.rc

/home/mydir/Procmail/famous_smoke.rc
procmail: No match on ^From:.[Ff]amous.*[Oo]rder.*famous-smoke.com$
procmail: No match on ^From:.*famous-smoke.com$
procmail: Assigning VERBOSE=OFF


I think my problem is that I was missing a space between * and 
^From:.  Your example shows a space and a reply from Brent Bloxam 
suggests this is the problem as well.  I don't quite understand the 
difference between the two but have made the change and I'll see if it 
works.  I'm also going to hit Google and see if I can understand.


Thanks again for your help!

Cheers,

Drew

--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.com

___
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: What made my FreeBSD server freeze?

2010-09-03 Thread peter

Thanks.  I cloned the hard drive and replaced the old drive with the new drive 
this afternoon.  

---

At 09:25 AM 8/30/2010, Ivan Voras wrote:
On 08/30/10 13:24, pe...@vfemail.net wrote:

When I awoke this morning my FreeBSD box was frozen -- completely 
unresponsive at the console -- and displayed these messages on the console:

  ad0: READ command timeout tag=0 serv=0 -resetting
  ata0: resetting devices
  ad0: removed from configuration
  done
  Aug 30 03:09:25 abc sm-mta 88427 xyz SYSERR(root): collect: Cannot 
 write: ./xyz (fsync uid=o, gid=25): Device not configured

The box has been in continuous operation for years, and I've never seen this 
behavior before.

I rebooted the machine this morning and, thank God, it came back to life.

Is this an early warning that the hard drive is failing and should be 
replaced this week?

Very probably!

Is there anything else I should explore or do at this time?

If not the drive, check drive cables, the power supply and motherboard/CPU 
overheating.


___
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


-
This message sent via VFEmail.net
http://www.vfemail.net
$14.95 Lifetime accounts - 1GB disk, No bandwidth quotas!
 
___
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


Why skype can't see webcam?

2010-09-03 Thread Yuri
I have webcamd running and can see my webcam using mplayer like this: 
mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=30:device=/dev/video0
But skype can't see the video. It only sees /dev/video0 device but when 
I try testing it image is black.
v4l support was recently added into 8.1: 
http://www.leidinger.net/blog/2010/07/29/v4l-support-in-the-linuxulator-mfced-to-8-stable/, 
this is related.


Anybody knows why skype can't use video?

On the other hand, I tried to debug this with 'truss -f', but -f flag 
doesn't follow descendants of the linux process for some reason as it 
should. Any way to work around this?


Yuri
___
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: Why skype can't see webcam?

2010-09-03 Thread Alejandro Imass
On Fri, Sep 3, 2010 at 7:27 PM, Yuri y...@rawbw.com wrote:
 I have webcamd running and can see my webcam using mplayer like this:
 mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=30:device=/dev/video0

I think this has come up a few times recently on the list, check the
archives to see if it was solved. Could be mistaken, but I have a
faint memory someone said it was working for them.

Best,
Alejandro Imass
___
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: Why skype can't see webcam?

2010-09-03 Thread Sam Fourman Jr.
On Fri, Sep 3, 2010 at 8:44 PM, Alejandro Imass a...@p2ee.org wrote:
 On Fri, Sep 3, 2010 at 7:27 PM, Yuri y...@rawbw.com wrote:
 I have webcamd running and can see my webcam using mplayer like this:
 mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=30:device=/dev/video0

 I think this has come up a few times recently on the list, check the
 archives to see if it was solved. Could be mistaken, but I have a
 faint memory someone said it was working for them.

 Best,
 Alejandro Imass

This has came up a few times, but I cant confirm that there was a
solution found for 8.1

Sam Fourman Jr.
Fourman Networks
http://www.fourmannetworks.com
___
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