Re: bwi: no DS tssi no OFDM tssi

2009-01-12 Thread Paul B. Mahol
)
 fwohci0: No. of Isochronous channels is 4.
 fwohci0: EUI64 00:0d:9d:71:9e:43:0c:6a
 fwohci0: Phy 1394a available S400, 1 ports.
 fwohci0: Link S400, max_rec 2048 bytes.
 firewire0: IEEE1394(FireWire) bus on fwohci0
 fwe0: Ethernet over FireWire on firewire0
 if_fwe0: Fake Ethernet address: 02:0d:9d:43:0c:6a
 fwe0: Ethernet address: 02:0d:9d:43:0c:6a
 fwip0: IP over FireWire on firewire0
 fwip0: Firewire address: 00:0d:9d:71:9e:43:0c:6a @ 0xfffe,
 S400, maxrec 2048
 sbp0: SBP-2/SCSI over FireWire on firewire0
 dcons_crom0: dcons configuration ROM on firewire0
 dcons_crom0: bus_addr 0x12bc000
 fwohci0: Initiate bus reset
 fwohci0: BUS reset
 fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode
 atapci0: AcerLabs M5229 UDMA100 controller port
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8080-0x808f at device 16.0 on
 pci0
 atapci0: using PIO transfers above 137GB as workaround for 48bit DMA
 access bug, expect reduced performance
 ata0: ATA channel 0 on atapci0
 ata0: [ITHREAD]
 ata1: ATA channel 1 on atapci0
 ata1: [ITHREAD]
 pci0: bridge at device 17.0 (no driver attached)
 sis0: NatSemi DP8381[56] 10/100BaseTX port 0x8c00-0x8cff mem
 0xd000a000-0xd000afff irq 11 at device 18.0 on pci0
 sis0: Silicon Revision: DP83816A
 miibus0: MII bus on sis0
 nsphyter0: DP83815 10/100 media interface PHY 0 on miibus0
 nsphyter0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 sis0: Ethernet address: 00:0d:9d:43:2b:a7
 sis0: [ITHREAD]
 acpi_button0: Power Button on acpi0
 acpi_lid0: Control Method Lid Switch on acpi0
 acpi_acad0: AC Adapter on acpi0
 battery0: ACPI Control Method Battery on acpi0
 acpi_tz0: Thermal Zone on acpi0
 atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0
 atkbd0: AT Keyboard irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 atkbd0: [ITHREAD]
 psm0: PS/2 Mouse irq 12 on atkbdc0
 psm0: [GIANT-LOCKED]
 psm0: [ITHREAD]
 psm0: model IntelliMouse, device ID 3
 fdc0: floppy drive controller port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
 fdc0: [FILTER]
 sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on
 acpi0
 sio0: type 16550A
 sio0: [FILTER]
 cpu0: ACPI CPU on acpi0
 powernow0: PowerNow! K7 on cpu0
 pmtimer0 on isa0
 orm0: ISA Option ROMs at iomem
 0xc-0xcefff,0xcf000-0xcf7ff,0xdb000-0xdbfff,0xdc000-0xd pnpid
 ORM on isa0
 ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0
 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
 ppc0: FIFO with 16/16/16 bytes threshold
 ppbus0: Parallel port bus on ppc0
 ppbus0: [ITHREAD]
 ppi0: Parallel I/O on ppbus0
 plip0: PLIP network interface on ppbus0
 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
 lpt0: Printer on ppbus0
 lpt0: Interrupt-driven port
 ppc0: [GIANT-LOCKED]
 ppc0: [ITHREAD]
 sc0: System console at flags 0x100 on isa0
 sc0: VGA 16 virtual consoles, flags=0x300
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
 ums0: Logitech USB Receiver, class 0/0, rev 1.10/25.00, addr 2 on uhub0
 ums0: 16 buttons and Z dir.
 Timecounter TSC frequency 1788943467 Hz quality 800
 Timecounters tick every 1.000 msec
 firewire0: 1 nodes, maxhop = 0, cable IRM = 0 (me)
 firewire0: bus manager 0 (me)
 ad0: 95396MB Seagate ST9100823A 3.02 at ata0-master UDMA100
 acd0: CDRW QSI CD-RW/DVD-ROM SBW-241/VH04 at ata1-master UDMA33
 Trying to mount root from ufs:/dev/ad0s2a
 bwi0: bwi_init
 bwi0: bwi_stop
 bwi0: bbp atten: 0, rf atten: 3, ctrl1: 2, ctrl2: 65535
 bwi0: bus rev 0
 bwi0: 802.11 MAC is disabled
 bwi0: 802.11 MAC was already disabled
 bwi0: PHY is linked
 bwi0: bus rev 0
 bwi0: PHY is unlinked
 bwi0: RF calibration value: 0x002a
 bwi0: bus rev 0
 bwi0: PHY is linked
 firmware_get: failed to load firmware image bwi_v3_ucode4
 bwi0: request firmware bwi_v3_ucode4 failed

Looks like it either doesnt have such firmware loaded or firmware
is not supported for your card. bwi works only with firmware version 3
and not with 4.
To get right answer look in current openbsd and dragonfly bwi driver if
your BCM94306MP is listed.

-- 
Paul
___
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: bwi: no DS tssi no OFDM tssi

2009-01-12 Thread Paul B. Mahol
On Mon, Jan 12, 2009 at 8:08 PM, Neal Hogan nealho...@gmail.com wrote:
 I installed the firmware stuff from the dragonfly bwi(4) man page, yet I
 have the same issue. Is there a way to tell whether the firmware they
 provide supports my card? Like I said, I can locate my access point (and
 others that are around) and ask for an IP . . . it seems as though I'm so
 close. I'm fairly certain that I have all of the avliable bwi(4) bits
 installed correctly.

 I dwonloaded and installed the driver and added *if_bwi_load=YES* in my
 loader.conf. I loaded the .ko file (bwi_v3). I downloaded and installed the
 firmware from dflyBSD and followed their directions. Yet I get no offer. Is
 the fact that I fail to get an offer indicate the firmware incompatinbility?

9 in BCM94306MP indicates that its supports 80211n and as such certainly
it is not supported with bwi(4) and reason is that bwi developers do not
plan to add support for 4 version firmware (when last time I played with bwi).

 Anyway, thanks for you help.

 On Mon, Jan 12, 2009 at 12:32 PM, Paul B. Mahol one...@gmail.com wrote:

 On 1/12/09, Neal Hogan nealho...@gmail.com wrote:
  Hello,
 
 I am attempting to get by broadcom wifi card up and running, am sick
  of
  trying to get ndis working, and am attempting to use the bwi driver
  (originating in dragonflyBSD). I'm hoping others here have tried to do
  the
  same and have some pointers. I'm using 7.1-RELEASE (system/source are
  in-sync) and my card is a BCM94306MP. My dmesg is posted below.
 
  Bwi(4) is installed and it recognizes my card (*if_bwi_load-YES* is in
  my
  /etc/rc.conf and *bwi_v3* and *if_bwi* are loaded). I can send a IP
  request
  to my WEP encrypted access point. Yet, it doesn't get an offer and says
  that
  *no DS tssi* and *no OFDM tssi* Being new to bwi(4) and have never seen
  references to DS/OFDM tssi, I'm not sure what info to provide. My
  research
  is not leading anywhere helpful.  Thanks.
 
 
 
 
  Copyright (c) 1992-2009 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 7.1-RELEASE #0: Sat Jan 10 19:07:15 CST 2009
  n...@frege.lambdaserver:/usr/obj/usr/src/sys/GENERIC
  Timecounter i8254 frequency 1193182 Hz quality 0
  CPU: mobile AMD Athlon(tm) XP2400+ (1788.94-MHz 686-class CPU)
Origin = AuthenticAMD  Id = 0x6a0  Stepping = 0
 
 
  Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
AMD Features=0xc0480800SYSCALL,MP,MMX+,3DNow!+,3DNow!
  real memory  = 468647936 (446 MB)
  avail memory = 444530688 (423 MB)
  kbd1 at kbdmux0
  ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
  RF5413)
  acpi0: PTLTD   RSDT on motherboard
  acpi0: [ITHREAD]
  acpi0: Power Button (fixed)
  Timecounter ACPI-safe frequency 3579545 Hz quality 850
  acpi_timer0: 32-bit timer at 3.579545MHz port 0x8008-0x800b on acpi0
  acpi_ec0: Embedded Controller: GPE 0x18 port 0x62,0x66 on acpi0
  pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
  pci_link5: BIOS IRQ 10 for 0.10.INTA is invalid
  pci0: ACPI PCI bus on pcib0
  agp0: ATI RS100 AGP bridge on hostb0
  pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
  pci1: ACPI PCI bus on pcib1
  vgapci0: VGA-compatible display port 0x9000-0x90ff mem
  0xe000-0xefff,0xd010-0xd010 irq 10 at device 5.0 on
  pci1
  ohci0: AcerLabs M5237 (Aladdin-V) USB controller mem
  0xd0006000-0xd0006fff irq 9 at device 2.0 on pci0
  ohci0: [GIANT-LOCKED]
  ohci0: [ITHREAD]
  usb0: OHCI version 1.0, legacy support
  usb0: SMM does not respond, resetting
  usb0: AcerLabs M5237 (Aladdin-V) USB controller on ohci0
  usb0: USB revision 1.0
  uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on
  usb0
  uhub0: 4 ports with 4 removable, self powered
  pcm0: Acer Labs M5451 port 0x8400-0x84ff mem 0xd0007000-0xd0007fff
  irq 5 at device 6.0 on pci0
  pcm0: Conexant CX20468 AC97 Codec
  pcm0: [GIANT-LOCKED]
  pcm0: [ITHREAD]
  isab0: PCI-ISA bridge at device 7.0 on pci0
  isa0: ISA bus on isab0
  pci0: simple comms, generic modem at device 8.0 (no driver attached)
  bwi0: Broadcom BCM4306v1 802.11 Wireless Lan mem
  0xd0004000-0xd0005fff irq 9 at device 9.0 on pci0
  bwi0: [ITHREAD]
  bwi0: regwin: chipcommon (0x800), rev 2, vendor 0x4243
  bwi0: BBP: id 0x4306, rev 0x2, pkg 0
  bwi0: nregwin 6, cap 0x002a
  bwi0: regwin: 802.11 MAC (0x812), rev 4, vendor 0x4243
  bwi0: has TX stats
  bwi0: MAC: rev 4
  bwi0: regwin: pcmcia (0x80d), rev 1, vendor 0x4243
  bwi0: regwin: v90 codec (0x807), rev 1, vendor 0x4243
  bwi0: regwin: pci (0x804), rev 7, vendor 0x4243
  bwi0: regwin: 802.11 MAC (0x812), rev 4, vendor 0x4243
  bwi0: ignore second MAC
  bwi0: bus rev 0
  bwi0: pci is enabled
  bwi0: card flags 0x000f
  bwi0: 0th led, act 3, lowact 0
  bwi0: 1th led, act 5, lowact 0
  bwi0

Re: does IPI_PREEMPTION in the kernel config do anything

2009-01-11 Thread Paul B. Mahol
On 1/11/09, Aryeh M. Friedman aryeh.fried...@gmail.com wrote:
 For the last year I have been using IPI_PREEMPTION in my kernel config
 and I know back then it helped quite a bit on the performence of my dual
 core... now I am setting a 4 core machine using 7.1pl1 (i386) [on the
 dual core I {and will continue} to use -current] and was just wondering
 if IPI_PREEMPTION actually maeans anything anymore

IPI_PREEMPTION is used only with 4bsd scheduler.

-- 
Paul
___
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: newbie: does irq setting in device.hints work?

2009-01-10 Thread Paul B. Mahol
On 1/10/09, Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org wrote:
 Zhang Weiwu zhangwe...@realss.com writes:

 Lowell Gilbert wrote:

 Have you checked what happens if you disable your APIC?

 You mean ACPI?

 No, I meant the APIC, the interrupt controller.  But I don't think you
 can do that without compiling a special kernel for it, so it may not be
 worth trying.

FYI, hint.apic.0.disabled=YES in loader.conf or type it in loader prompt.

-- 
Paul
___
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: Cannot get ethernet off the ground

2009-01-10 Thread Paul B. Mahol
On 1/10/09, William Gordon Rutherdale will.rutherd...@utoronto.ca wrote:
 Hi.

 I have just installed FreeBSD on a machine and am having trouble getting
 basic ethernet connectivity working.

 I know that the interface works because it functioned fine with the old
 virus software called 'Vista' on that connection.

 The ifconfig utility tells me that the machine recognises something
 called fwe0 with an ethernet address of 02:1e:8c:9a:3b:96.  However
 dmesg tells me this is a 'Fake Ethernet' address.

 I used ifconfig (as root) to set the ip address and netmask for fwe0,
 but am unable to ping another machine on the network.  I have not tried
 installing FreeBSD before but have installed other operating systems in
 the past including various versions of Linux.

 Is it possible that FreeBSD is not recognising the ethernet device
 properly at boot time, and giving it the wrong driver?  Or is there a
 simpler step I missed?

 What steps can I take to get this interface working?

 -Will

 ___
 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


fwe is ethernet emulation driver for firewire.
post output of pciconf -lv.

-- 
Paul
___
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: ndis panic HP pavilion ze4400 won't boot

2009-01-08 Thread Paul B. Mahol
On 1/8/09, Neal Hogan nealho...@gmail.com wrote:
 I'm father new to fBSD. I hope this is the appropriate list to send this
 question to.

 I just installed 7.1-RELEASE on my HP pavilion and attempted to configure my
 Broadcom wlan card (BCM94309 version 4.10.40.0) using ndisgen. I cp'd the
 bcmwl5_sys.ko to /boot/kernel and added *bcmwl5_sys_load=YES* to my
 /boot/loader.conf. Now the machine will not boot. It crashes when it reaches
 the ndis0 line. I've tried booting in all the modes but they all fail to
 boot. I can escape to prompt, but am unsure what, if anything, I can do in
 that mode to deal with the situation.

 With other releases (6.4 and 7.0) the machine would panick when I attempted
 to ifconfig ndis0. However, I was able to boot in single user mode and
 temporarily move the rc.conf file so that I cound boot in the default mode.
 With 7.1, I don't appear to have that option.

 Is there anything I can do, short of a fresh install, to eliminate this
 problem? I'm not too worried about getting the wifi up (although, I won't
 turn down any advice). I just want the machine to boot.

You can enter loader and from there unload bcmwl5_sys, type: unload bcmwl5_sys.
loader is started one step before kernel.

Before ever changing loader.conf you really should test it via kldload(1)
and report any ndis issues via PR.
From where you fetched drivers and for what windows version?


-- 
Paul
___
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: ndis panic HP pavilion ze4400 won't boot

2009-01-08 Thread Paul B. Mahol
On 1/8/09, Neal Hogan nealho...@gmail.com wrote:
 On Thu, Jan 8, 2009 at 3:10 PM, Paul B. Mahol one...@gmail.com wrote:

 On 1/8/09, Neal Hogan nealho...@gmail.com wrote:
  I'm father new to fBSD. I hope this is the appropriate list to send this
  question to.
 
  I just installed 7.1-RELEASE on my HP pavilion and attempted to
  configure
 my
  Broadcom wlan card (BCM94309 version 4.10.40.0) using ndisgen. I cp'd
  the
  bcmwl5_sys.ko to /boot/kernel and added *bcmwl5_sys_load=YES* to my
  /boot/loader.conf. Now the machine will not boot. It crashes when it
 reaches
  the ndis0 line. I've tried booting in all the modes but they all fail to
  boot. I can escape to prompt, but am unsure what, if anything, I can do
 in
  that mode to deal with the situation.
 
  With other releases (6.4 and 7.0) the machine would panick when I
 attempted
  to ifconfig ndis0. However, I was able to boot in single user mode and
  temporarily move the rc.conf file so that I cound boot in the default
 mode.
  With 7.1, I don't appear to have that option.
 
  Is there anything I can do, short of a fresh install, to eliminate this
  problem? I'm not too worried about getting the wifi up (although, I
  won't
  turn down any advice). I just want the machine to boot.

 You can enter loader and from there unload bcmwl5_sys, type: unload
 bcmwl5_sys.
 loader is started one step before kernel.

 Before ever changing loader.conf you really should test it via kldload(1)
 and report any ndis issues via PR.
 From where you fetched drivers and for what windows version?

 Paul


 Paul,

 Thanks for the suggestion! However, it's not working. I've tried *unload
 /boot/kernel/bcmwl5_sys.ko* *unload bcmwl5_sys* *unload bcmwl5_sis.ko*
 *unload* and they all simply return to the OK prompt (should it tell me
 something?).

Ah, sorry, unload removes all modules.
You need after unloading all modules to load kernel and any other
modules you want one by one:

OK unload bcmwl5_sys
OK load kernel
OK boot

should work.

-- 
Paul
___
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: FreeBSD 7.1, nvidia-driver, GeForce 8500 GT

2009-01-06 Thread Paul Procacci

Giuseppe Pagnoni wrote:

Dear all,

I have just installed FreeBSD 7.1 Release on a machine with a GeForce
8500 GT (I think this is the card, but more about that later...) and
an LCD screen with a native resolution of 1680 x 1050.

Xorg works fine with the standard nv driver.  However, if I try to
install the x11/nvidia-driver (which should bring better graphic
performance, right?) I get a total system freeze when I start the X
server.

Here are the details of what I have done:

1) install x11/nvidia-driver
2) add nvidia_load=YES to /boot/loader.conf
3) modify /etc/X11/xorg.conf by substituting nvidia to nv in the
Driver line.

At this point (after rebooting), if I start the X server with startx,
I get a black screen and the system *completely* hangs (neither
ctrl-alt-backspace, nor even ctrl-alt-delete work).  The only way to
get back the system is to power it off and on (which corrupts the
filesystem because it has not been properly dismounted).

I also looked at the xorg log file in:

  /var/log/Xorg.0.log

Interestingly it seems to detect the card  as a GeForce 9500 GT rather
than a 8500 GT (which makes me wonder whether I got the right info
from the vendor receipt):

  (--) Assigning device section with no busID to primary device
  (--) Chipset GeForce 9500 GT found

But this should not be an issue because in the same log file it says
that both GeForce 8500 GT and GeForce 9500 GT are supported by the
nv driver.

As for the monitor, the xorg log file says:

II) NV(0): Supported additional Video Mode:
(II) NV(0): clock: 146.2 MHz   Image Size:  473 x 296 mm
(II) NV(0): h_active: 1680  h_sync: 1784  h_sync_end 1960 h_blank_end
2240 h_border: 0
(II) NV(0): v_active: 1050  v_sync: 1053  v_sync_end 1059 v_blanking:
1089 v_border: 0
(II) NV(0): Ranges: V min: 56  V max: 75 Hz, H min: 28  H max: 83 kHz,
PixClock max 150 MHz(II)

NV(0): Monitor name: L226WA
(II) NV(0): Supported additional Video Mode:
(II) NV(0): clock: 119.0 MHz   Image Size:  473 x 296 mm
(II) NV(0): h_active: 1680  h_sync: 1728  h_sync_end 1760 h_blank_end
1840 h_border: 0
(II) NV(0): v_active: 1050  v_sync: 1053  v_sync_end 1059 v_blanking:
1080 v_border: 0

Then the log file says:

(II) NV(0): Output VGA1 disconnected
(II) NV(0): Output DVI0 disconnected
(II) NV(0): Output VGA2 disconnected
(II) NV(0): Output DVI1 connected
(II) NV(0): Output DVI1 using initial mode 1680x1050
(--) NV(0): Virtual size is 1680x1680 (pitch 1792)
(**) NV(0):  Driver mode 1680x1050: 146.2 MHz (scaled from 0.0 MHz),
65.3 kHz, 60.0 Hz
(II) NV(0): Modeline 1680x1050x60.0  146.25  1680 1784 1960 2240
1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
(**) NV(0):  Driver mode 1680x1050: 119.0 MHz (scaled from 0.0 MHz),
64.7 kHz, 59.9 Hz
(II) NV(0): Modeline 1680x1050x59.9  119.00  1680 1728 1760 1840
1050 1053 1059 1080 +hsync -vsync (64.7 kHz)
(**) NV(0):  Driver mode 1280x1024: 135.0 MHz (scaled from 0.0 MHz),
80.0 kHz, 75.0 Hz
(II) NV(0): Modeline 1280x1024x75.0  135.00  1280 1296 1440 1688
1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
(**) NV(0):  Driver mode 1280x1024: 109.0 MHz (scaled from 0.0 MHz),
63.7 kHz, 59.9 Hz
(II) NV(0): Modeline 1280x1024x59.9  109.00  1280 1368 1496 1712
1024 1027 1034 1063 -hsync +vsync (63.7 kHz)
(**) NV(0):  Driver mode 1440x900: 136.8 MHz (scaled from 0.0 MHz),
70.6 kHz, 75.0 Hz
(II) NV(0): Modeline 1440x900x75.0  136.75  1440 1536 1688 1936  900
903 909 942 -hsync +vsync (70.6 kHz)
(**) NV(0):  Driver mode 1440x900: 106.5 MHz (scaled from 0.0 MHz),
55.9 kHz, 59.9 Hz
(II) NV(0): Modeline 1440x900x59.9  106.50  1440 1528 1672 1904  900
903 909 934 -hsync +vsync (55.9 kHz)
(**) NV(0):  Driver mode 1280x960: 101.2 MHz (scaled from 0.0 MHz),
59.7 kHz, 59.9 Hz
(II) NV(0): Modeline 1280x960x59.9  101.25  1280 1360 1488 1696  960
963 967 996 -hsync +vsync (59.7 kHz)
(**) NV(0):  Driver mode 1152x864: 108.0 MHz (scaled from 0.0 MHz),
67.5 kHz, 75.0 Hz
(II) NV(0): Modeline 1152x864x75.0  108.00  1152 1216 1344 1600  864
865 868 900 +hsync +vsync (67.5 kHz)
(**) NV(0):  Driver mode 1152x864: 104.0 MHz (scaled from 0.0 MHz),
67.7 kHz, 74.8 Hz
(II) NV(0): Modeline 1152x864x74.8  104.00  1152 1224 1344 1536  864
867 871 905 -hsync +vsync (67.7 kHz)
(**) NV(0):  Driver mode 1024x768: 78.8 MHz (scaled from 0.0 MHz),
60.1 kHz, 75.1 Hz
(II) NV(0): Modeline 1024x768x75.1   78.80  1024 1040 1136 1312  768
769 772 800 +hsync +vsync (60.1 kHz)
(**) NV(0):  Driver mode 1024x768: 65.0 MHz (scaled from 0.0 MHz),
48.4 kHz, 60.0 Hz
(II) NV(0): Modeline 1024x768x60.0   65.00  1024 1048 1184 1344  768
771 777 806 -hsync -vsync (48.4 kHz)
(**) NV(0):  Driver mode 832x624: 57.3 MHz (scaled from 0.0 MHz),
49.7 kHz, 74.6 Hz
(II) NV(0): Modeline 832x624x74.6   57.28  832 864 928 1152  624 625
628 667 -hsync -vsync (49.7 kHz)
(**) NV(0):  Driver mode 800x600: 49.5 MHz (scaled from 0.0 MHz),
46.9 kHz, 75.0 Hz
(II) NV(0): Modeline 800x600x75.0   49.50  800 816 896 1056  600 601
604 625 +hsync +vsync (46.9 kHz)
(**) NV(0):  Driver mode 800x600: 40.0 MHz (scaled from 0.0 

Re: FreeBSD 7.1, nvidia-driver, GeForce 8500 GT

2009-01-06 Thread Paul Procacci

Giuseppe Pagnoni wrote:

Hello,

well that is interesting.  I do have 4 Gigs of RAM but I thought that
the nvidia driver would not work only if the 64 bit version of FreeBSD
was installed.  I installed the i386 version, so I assumed that I was
just wasting some memory.  In case I would want to use the nvidia
driver, would you suggest to remove 1GB stick of RAM?

thank you very much



On Tue, Jan 6, 2009 at 11:21 PM, Paul Procacci pproca...@datapipe.com wrote:
  

Giuseppe Pagnoni wrote:


Dear all,

I have just installed FreeBSD 7.1 Release on a machine with a GeForce
8500 GT (I think this is the card, but more about that later...) and
an LCD screen with a native resolution of 1680 x 1050.

Xorg works fine with the standard nv driver.  However, if I try to
install the x11/nvidia-driver (which should bring better graphic
performance, right?) I get a total system freeze when I start the X
server.

Here are the details of what I have done:

1) install x11/nvidia-driver
2) add nvidia_load=YES to /boot/loader.conf
3) modify /etc/X11/xorg.conf by substituting nvidia to nv in the
Driver line.

At this point (after rebooting), if I start the X server with startx,
I get a black screen and the system *completely* hangs (neither
ctrl-alt-backspace, nor even ctrl-alt-delete work).  The only way to
get back the system is to power it off and on (which corrupts the
filesystem because it has not been properly dismounted).

I also looked at the xorg log file in:

 /var/log/Xorg.0.log

Interestingly it seems to detect the card  as a GeForce 9500 GT rather
than a 8500 GT (which makes me wonder whether I got the right info
from the vendor receipt):

 (--) Assigning device section with no busID to primary device
 (--) Chipset GeForce 9500 GT found

But this should not be an issue because in the same log file it says
that both GeForce 8500 GT and GeForce 9500 GT are supported by the
nv driver.

As for the monitor, the xorg log file says:

II) NV(0): Supported additional Video Mode:
(II) NV(0): clock: 146.2 MHz   Image Size:  473 x 296 mm
(II) NV(0): h_active: 1680  h_sync: 1784  h_sync_end 1960 h_blank_end
2240 h_border: 0
(II) NV(0): v_active: 1050  v_sync: 1053  v_sync_end 1059 v_blanking:
1089 v_border: 0
(II) NV(0): Ranges: V min: 56  V max: 75 Hz, H min: 28  H max: 83 kHz,
PixClock max 150 MHz(II)

NV(0): Monitor name: L226WA
(II) NV(0): Supported additional Video Mode:
(II) NV(0): clock: 119.0 MHz   Image Size:  473 x 296 mm
(II) NV(0): h_active: 1680  h_sync: 1728  h_sync_end 1760 h_blank_end
1840 h_border: 0
(II) NV(0): v_active: 1050  v_sync: 1053  v_sync_end 1059 v_blanking:
1080 v_border: 0

Then the log file says:

(II) NV(0): Output VGA1 disconnected
(II) NV(0): Output DVI0 disconnected
(II) NV(0): Output VGA2 disconnected
(II) NV(0): Output DVI1 connected
(II) NV(0): Output DVI1 using initial mode 1680x1050
(--) NV(0): Virtual size is 1680x1680 (pitch 1792)
(**) NV(0):  Driver mode 1680x1050: 146.2 MHz (scaled from 0.0 MHz),
65.3 kHz, 60.0 Hz
(II) NV(0): Modeline 1680x1050x60.0  146.25  1680 1784 1960 2240
1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
(**) NV(0):  Driver mode 1680x1050: 119.0 MHz (scaled from 0.0 MHz),
64.7 kHz, 59.9 Hz
(II) NV(0): Modeline 1680x1050x59.9  119.00  1680 1728 1760 1840
1050 1053 1059 1080 +hsync -vsync (64.7 kHz)
(**) NV(0):  Driver mode 1280x1024: 135.0 MHz (scaled from 0.0 MHz),
80.0 kHz, 75.0 Hz
(II) NV(0): Modeline 1280x1024x75.0  135.00  1280 1296 1440 1688
1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
(**) NV(0):  Driver mode 1280x1024: 109.0 MHz (scaled from 0.0 MHz),
63.7 kHz, 59.9 Hz
(II) NV(0): Modeline 1280x1024x59.9  109.00  1280 1368 1496 1712
1024 1027 1034 1063 -hsync +vsync (63.7 kHz)
(**) NV(0):  Driver mode 1440x900: 136.8 MHz (scaled from 0.0 MHz),
70.6 kHz, 75.0 Hz
(II) NV(0): Modeline 1440x900x75.0  136.75  1440 1536 1688 1936  900
903 909 942 -hsync +vsync (70.6 kHz)
(**) NV(0):  Driver mode 1440x900: 106.5 MHz (scaled from 0.0 MHz),
55.9 kHz, 59.9 Hz
(II) NV(0): Modeline 1440x900x59.9  106.50  1440 1528 1672 1904  900
903 909 934 -hsync +vsync (55.9 kHz)
(**) NV(0):  Driver mode 1280x960: 101.2 MHz (scaled from 0.0 MHz),
59.7 kHz, 59.9 Hz
(II) NV(0): Modeline 1280x960x59.9  101.25  1280 1360 1488 1696  960
963 967 996 -hsync +vsync (59.7 kHz)
(**) NV(0):  Driver mode 1152x864: 108.0 MHz (scaled from 0.0 MHz),
67.5 kHz, 75.0 Hz
(II) NV(0): Modeline 1152x864x75.0  108.00  1152 1216 1344 1600  864
865 868 900 +hsync +vsync (67.5 kHz)
(**) NV(0):  Driver mode 1152x864: 104.0 MHz (scaled from 0.0 MHz),
67.7 kHz, 74.8 Hz
(II) NV(0): Modeline 1152x864x74.8  104.00  1152 1224 1344 1536  864
867 871 905 -hsync +vsync (67.7 kHz)
(**) NV(0):  Driver mode 1024x768: 78.8 MHz (scaled from 0.0 MHz),
60.1 kHz, 75.1 Hz
(II) NV(0): Modeline 1024x768x75.1   78.80  1024 1040 1136 1312  768
769 772 800 +hsync +vsync (60.1 kHz)
(**) NV(0):  Driver mode 1024x768: 65.0 MHz (scaled from 0.0 MHz),
48.4 kHz, 60.0 Hz
(II) NV(0): Modeline 1024x768x60.0   65.00  1024 1048 1184 1344

Re: FreeBSD 7.1, nvidia-driver, GeForce 8500 GT

2009-01-06 Thread Paul Procacci

Paul Procacci wrote:

Giuseppe Pagnoni wrote:

Hello,

well that is interesting.  I do have 4 Gigs of RAM but I thought that
the nvidia driver would not work only if the 64 bit version of FreeBSD
was installed.  I installed the i386 version, so I assumed that I was
just wasting some memory.  In case I would want to use the nvidia
driver, would you suggest to remove 1GB stick of RAM?

thank you very much



On Tue, Jan 6, 2009 at 11:21 PM, Paul Procacci 
pproca...@datapipe.com wrote:
 

Giuseppe Pagnoni wrote:
   

Dear all,

I have just installed FreeBSD 7.1 Release on a machine with a GeForce
8500 GT (I think this is the card, but more about that later...) and
an LCD screen with a native resolution of 1680 x 1050.

Xorg works fine with the standard nv driver.  However, if I try to
install the x11/nvidia-driver (which should bring better graphic
performance, right?) I get a total system freeze when I start the X
server.

Here are the details of what I have done:

1) install x11/nvidia-driver
2) add nvidia_load=YES to /boot/loader.conf
3) modify /etc/X11/xorg.conf by substituting nvidia to nv in the
Driver line.

At this point (after rebooting), if I start the X server with startx,
I get a black screen and the system *completely* hangs (neither
ctrl-alt-backspace, nor even ctrl-alt-delete work).  The only way to
get back the system is to power it off and on (which corrupts the
filesystem because it has not been properly dismounted).

I also looked at the xorg log file in:

 /var/log/Xorg.0.log

Interestingly it seems to detect the card  as a GeForce 9500 GT rather
than a 8500 GT (which makes me wonder whether I got the right info
from the vendor receipt):

 (--) Assigning device section with no busID to primary device
 (--) Chipset GeForce 9500 GT found

But this should not be an issue because in the same log file it says
that both GeForce 8500 GT and GeForce 9500 GT are supported by the
nv driver.

As for the monitor, the xorg log file says:

II) NV(0): Supported additional Video Mode:
(II) NV(0): clock: 146.2 MHz   Image Size:  473 x 296 mm
(II) NV(0): h_active: 1680  h_sync: 1784  h_sync_end 1960 h_blank_end
2240 h_border: 0
(II) NV(0): v_active: 1050  v_sync: 1053  v_sync_end 1059 v_blanking:
1089 v_border: 0
(II) NV(0): Ranges: V min: 56  V max: 75 Hz, H min: 28  H max: 83 kHz,
PixClock max 150 MHz(II)

NV(0): Monitor name: L226WA
(II) NV(0): Supported additional Video Mode:
(II) NV(0): clock: 119.0 MHz   Image Size:  473 x 296 mm
(II) NV(0): h_active: 1680  h_sync: 1728  h_sync_end 1760 h_blank_end
1840 h_border: 0
(II) NV(0): v_active: 1050  v_sync: 1053  v_sync_end 1059 v_blanking:
1080 v_border: 0

Then the log file says:

(II) NV(0): Output VGA1 disconnected
(II) NV(0): Output DVI0 disconnected
(II) NV(0): Output VGA2 disconnected
(II) NV(0): Output DVI1 connected
(II) NV(0): Output DVI1 using initial mode 1680x1050
(--) NV(0): Virtual size is 1680x1680 (pitch 1792)
(**) NV(0):  Driver mode 1680x1050: 146.2 MHz (scaled from 0.0 MHz),
65.3 kHz, 60.0 Hz
(II) NV(0): Modeline 1680x1050x60.0  146.25  1680 1784 1960 2240
1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
(**) NV(0):  Driver mode 1680x1050: 119.0 MHz (scaled from 0.0 MHz),
64.7 kHz, 59.9 Hz
(II) NV(0): Modeline 1680x1050x59.9  119.00  1680 1728 1760 1840
1050 1053 1059 1080 +hsync -vsync (64.7 kHz)
(**) NV(0):  Driver mode 1280x1024: 135.0 MHz (scaled from 0.0 MHz),
80.0 kHz, 75.0 Hz
(II) NV(0): Modeline 1280x1024x75.0  135.00  1280 1296 1440 1688
1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
(**) NV(0):  Driver mode 1280x1024: 109.0 MHz (scaled from 0.0 MHz),
63.7 kHz, 59.9 Hz
(II) NV(0): Modeline 1280x1024x59.9  109.00  1280 1368 1496 1712
1024 1027 1034 1063 -hsync +vsync (63.7 kHz)
(**) NV(0):  Driver mode 1440x900: 136.8 MHz (scaled from 0.0 MHz),
70.6 kHz, 75.0 Hz
(II) NV(0): Modeline 1440x900x75.0  136.75  1440 1536 1688 1936  900
903 909 942 -hsync +vsync (70.6 kHz)
(**) NV(0):  Driver mode 1440x900: 106.5 MHz (scaled from 0.0 MHz),
55.9 kHz, 59.9 Hz
(II) NV(0): Modeline 1440x900x59.9  106.50  1440 1528 1672 1904  900
903 909 934 -hsync +vsync (55.9 kHz)
(**) NV(0):  Driver mode 1280x960: 101.2 MHz (scaled from 0.0 MHz),
59.7 kHz, 59.9 Hz
(II) NV(0): Modeline 1280x960x59.9  101.25  1280 1360 1488 1696  960
963 967 996 -hsync +vsync (59.7 kHz)
(**) NV(0):  Driver mode 1152x864: 108.0 MHz (scaled from 0.0 MHz),
67.5 kHz, 75.0 Hz
(II) NV(0): Modeline 1152x864x75.0  108.00  1152 1216 1344 1600  864
865 868 900 +hsync +vsync (67.5 kHz)
(**) NV(0):  Driver mode 1152x864: 104.0 MHz (scaled from 0.0 MHz),
67.7 kHz, 74.8 Hz
(II) NV(0): Modeline 1152x864x74.8  104.00  1152 1224 1344 1536  864
867 871 905 -hsync +vsync (67.7 kHz)
(**) NV(0):  Driver mode 1024x768: 78.8 MHz (scaled from 0.0 MHz),
60.1 kHz, 75.1 Hz
(II) NV(0): Modeline 1024x768x75.1   78.80  1024 1040 1136 1312  768
769 772 800 +hsync +vsync (60.1 kHz)
(**) NV(0):  Driver mode 1024x768: 65.0 MHz (scaled from 0.0 MHz),
48.4 kHz, 60.0 Hz
(II) NV(0): Modeline 1024x768x60.0   65.00

Re: How do I configure PHP to use curl?

2008-12-30 Thread Paul Procacci

John Almberg wrote:
I just ran into something that has me stumped. It's probably a real 
newbie question, but I can't figure it out...


I'm trying to add curl support to my PHP installation, but when I run 
'make config' in the /usr/ports/lang/php5 directory, curl is not one 
of the very small set of options given.


PHP has a million options, so how do you set one that is not in the 
'make config' box?


-- John


___
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

cd /usr/ports/ftp/php5-curl

make install

restart your web server.

Cheers!
___
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: disk error / reboot / 6.3

2008-12-28 Thread Paul B. Mahol
On 12/28/08, jerome jer...@code-monkey.nl wrote:
 Hi Paul,

 The patch worked (almost).

 At first a program accessing a disk that reported an uncorrectable error,
 the program just segfaulted.

 Another instance let to the situation that I was only able to ping the
 server.
 No ssh or console access was possible anymore.

That is somehow to be expected, the point of patch is to fix panic, not
trashing due to faulty disk/drivers/something else ...

-- 
Paul
___
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: {Classmates#889-142}read it immediately

2008-12-26 Thread Paul Procacci



___
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: disk error / reboot / 6.3

2008-12-22 Thread Paul B. Mahol
On 12/22/08, jerome jer...@code-monkey.nl wrote:
 Hi Paul,

 The server resets while running, like pressing the reset button...

Try this patch:

--- src/sys/dev/ata/ata-queue.c 2008/10/27 09:26:24 1.74
+++ src/sys/dev/ata/ata-queue.c 2008/11/27 03:37:46 1.75
@@ -357,7 +357,7 @@ ata_completed(void *context, int dummy)
  \6MEDIA_CHANGED\5NID_NOT_FOUND
  \4MEDIA_CHANGE_REQEST
  \3ABORTED\2NO_MEDIA\1ILLEGAL_LENGTH);
-   if ((request-flags  ATA_R_DMA) 
+   if ((request-flags  ATA_R_DMA)  request-dma 
(request-dma-status  ATA_BMSTAT_ERROR))
printf( dma=0x%02x, request-dma-status);
if (!(request-flags  (ATA_R_ATAPI | ATA_R_CONTROL)))

-- 
Paul
___
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: disk error / reboot / 6.3

2008-12-21 Thread Paul B. Mahol
On 12/21/08, jerome jer...@code-monkey.nl wrote:
 Hi,

 We are running 6.3 on a fileserver with a couple of data disks.

 Once the server encounters an error on a data disk (os disk is separate) the
 server will reset itself without warning.

It just reset or it panic? There is known panic on bad block on some FreeBSD
versions but I don't think that such regression hit 6.X.


-- 
Paul
___
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: nessus report

2008-12-20 Thread Paul Schmehl
--On December 19, 2008 11:32:51 PM -0600 Richard Yang 
kusanagiy...@gmail.com wrote:




hi,
when i ran nessus against my bsd box, nessus can detect the remote host
is
up.
i don't understand how nessus can detect it...
does anyone know how it is done?
thanx



There are several ways to detect if a host is up.  Responses to icmp 
packets is one.  Almost all hosts will respond to pings unless they're 
prevented by a firewall.


Another way is the type of response to a probe of a port.  Sometimes 
services will respond differently if they're firewalled than if they're 
not listening on a particular port.  Also, very few computers have no 
ports at all listening.  For example, most unix boxes will be running 
syslogd and listening on port udp/514.  That is the default for that 
daemon.  Unless you reconfigured syslogd to listen on localhost only, it 
will respond to probes.


Sometimes a host will respond to a problem with RSETs.  It's very, very 
hard to configure a box in such a way that it's impossible to detect that 
it's up and running.


Run sockstat and look at what's listening on your computer.  Then see if 
you can figure out how to get it to stop listening on those ports.


Paul Schmehl (pa...@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: SIS191 Ethernet Controller Support

2008-12-19 Thread Paul B. Mahol
On 12/19/08, Abd Hamid Shamsi storage...@gmail.com wrote:
 Hi Admin,
 I just want to know does FreeBSD support SIS191 Ethernet controller. Because
 recently i just install PCBSD in my laptop, and there is no connection for
 internet. and of course my network card seem doesn't appear in networking
 configuration. Do you have any suggestion to foresee this situation.

There is no native driver, you may try to play with ndis(4)

-- 
Paul
___
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: Video driver

2008-12-18 Thread Paul B. Mahol
On 12/18/08, Alain BATARD a.bat...@forteam.fr wrote:
 I am M. Alain BATARD and i work in a formation center.
 For my Unix course i use Freebsd (V 7), we recently change our computers for
 laptops (Compaq 6820s) these computers are equipped with integrated video :
 ATI Mobility Radeon X1350, after looking for drivers to launch Xorg, i can
 only use the very poor video in VGA mode, is there any possibilities to find
 the good driver even by using xorgconfig or manually ?

What drivers are installed?

ls /var/db/pkg/|grep xf86-video

-- 
Paul
___
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: lang/php5 port

2008-12-17 Thread Paul Schmehl
--On Wednesday, December 17, 2008 11:25:02 -0500 Tom Worster f...@thefsb.org 
wrote:



If you're maintaining your
own workstation, that might be an educational experience.  If you're
maintaining servers, that could cause an outage while you try to remember
what your edits were.


one has to remember the port's configuration whichever method is used. my
memory isn't good so i keep detailed notes. recording in these notes which
checkboxes in the config pseudo-gui were checked and unchecked is not
convenient. i'm not sure i wouldn't prefer editing a file and keeping a diff
with my notes, as i do for the other config files i change.



Your choices for the config of a port are saved in the ports system.  (Look in 
/var/db/ports/ if you're curious.)  Unless you need to make some changes, they 
will be pre-selected each time you update the port.  (There are some exceptions 
to this, where ports will always prompt for the config.)





If you think a port is incorrectly built (unnecessary dependencies, for
example) there's nothing wrong with submitting a PR and asking the maintainer
to update the port.  If the maintainer rejects your changes, you can always
edit locally later, but your submission could benefit thousands of people.

IOW, if you're the smartest guy on the block, please don't keep it to
yourself.


i'm certainly not smart enough to know what might be a better way to design
ports like php. but one thing seems odd to me. i ended up with dozens of
ports installed that appeared to use nothing but the same php-5.2.8.tar.bz2
distfile. relative to what i'm used to with php (i.e. manual configure,
compile, install) this seems a bit untidy and i'm nervous what it might mean
for maintenance.



Php used to be one monolithic port.  The problem was that it required a 
gazillion options, and many people didn't want anything but the base install. 
So php#-extensions was created to simplify the install of the base port and 
make the options more flexible.  For example, if a new extension comes out, you 
can simply install it.  No need to reinstall the entire php port.


You needn't worry about updating.  That's all taken care of in the ports 
system.  When you run portupgrade or portmaster, the extensions ports that need 
to be updated will be.



my guess is that this approach allows the ports framework to handle
conditional installation of dependent software on a relatively fine-grained
basis depending which options the user chooses. that's a nice feature to
have. but wouldn't it be nicer if were just one port with dependencies based
off its configuration?



I think you can make a solid argument either way.


seems that would reduce clutter in the ports tree too and maybe effort for
the ports maintainer.



I don't think we are worried about clutter in the ports tree.  There are over 
16,000 ports (and rising), so another 10 or 20 in php is a fairly insignificant 
increase.


--
Paul Schmehl (pa...@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: lang/php5 port

2008-12-17 Thread Paul Schmehl
--On Wednesday, December 17, 2008 08:18:47 +0100 Mel 
fbsd.questi...@rachie.is-a-geek.net wrote:



On Wednesday 17 December 2008 04:33:51 Paul Schmehl wrote:

--On December 16, 2008 7:33:31 PM -0600 Steve Bertrand st...@ibctech.ca

wrote:
 One of the reasons I've had to edit Makefile manually was because a
 client needed JPEG support.

 At the time, `make config' didn't provide that option.

You should *never* need to edit a Makefile in a port.  (Well, extremely
rarely.)


More often then you think. I encourage understanding the system and editing
to  suit your needs. It's a transparent system, unlike many others out there,
so  you might as well make good use of it.

Though a lot of things can be handled by:
1) environment variables (temporary)
2) /etc/make.conf (permanent)
3) Makefile.local (permanent, inclusion is at bsd.port.pre.mk stage which
allows you to override hardcoded settings)

It is needed in some cases to edit the makefile to fix things or remove
dependencies that the maintainer didn't find necessary to remove or even to
fix bugs.


I agree with you with one caveat.  Make sure that you know what you're doing 
before you do this, and be prepared for the consequences.  For example, if you 
edit any files in a port, they will be overwritten when you update your ports. 
That means you'll have to make those edits again.  If you're maintaining your 
own workstation, that might be an educational experience.  If you're 
maintaining servers, that could cause an outage while you try to remember what 
your edits were.


If you think a port is incorrectly built (unnecessary dependencies, for 
example) there's nothing wrong with submitting a PR and asking the maintainer 
to update the port.  If the maintainer rejects your changes, you can always 
edit locally later, but your submission could benefit thousands of people.


IOW, if you're the smartest guy on the block, please don't keep it to yourself.

--
Paul Schmehl (pa...@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Optimising pxeboot disk size

2008-12-16 Thread Paul B. Mahol
On 12/16/08, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:
 it's simple:

 More simple when you tell it ;-) Thanks a lot, i will try it tonight !

 it doesn't have chance - must work :)


 I wish it's helpful, doing this doesn't just save space but saves time -
 you have to upgrade software once.

 So preserving consistency, which is the most important when you have lot
 of
 diskless stations !

 exactly. i'm using just NetBSD 1.5 (uses LITTLE memory) + Xserver, so
 there are almost no updates, but anyway - it's stored once.

 you may like to make /etc-common directory and put most of files there,
 and
 symlinks in each station's /etc

 In fact, it makes me think that we miss a concept in mount, or at least i
 don't know it currently :
 imagine a -tl (TransparentLayer) option for mount, allowing to mount
 multiple
 source to the same directory, for instance /etc :

 there is already such think - mount_unionfs

 but i don't use it.

 if you mount over some directory - it's original contents (like my /etc/rc
 doing exec /systemrc) gets hidden.


 mount -r yournfsserver:/basic/etc /etc
 mount -tl -r yournfsserver:/TypeX/etc /etc
 mount -tl -r yournfsserver:/StationY/etc /etc

 mount_unionfs

 but i don't know how stable it is.

 When you want to change something, you add a rw TransparentLayer :
 mount -tl yournfsserver:/StationYchanges/etc /etc

 So that changed or added files are only stored in this rw partition, thus
 very small and easy to manage.

 This would be a kind of partition inheritance, like in object languages...

 Dreams are allowed :-)

 try mount_unionfs

and mount_nullfs

-- 
Paul
___
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: ambigious 'top' results

2008-12-16 Thread Paul B. Mahol
On 12/16/08, KES kes-...@yandex.ru wrote:
 Здравствуйте, Questions.

 My system is overloaded, I run top to figure out which precess take
 time. In both cases CPU/WCPU I do not see which process take all the
 time. Which process take all processor time??

 last pid: 24535;  load averages:  3.86,  3.07,  3.07up 1+13:34:28

If last pid grow very fast, than some process are spawing like mad.

-- 
Paul
___
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: Optimising pxeboot disk size

2008-12-16 Thread Paul B. Mahol
On 12/16/08, Bernard Dugas bern...@dugas-family.org wrote:
 Paul B. Mahol wrote:

 On 12/16/08, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

When you want to change something, you add a rw TransparentLayer :
mount -tl yournfsserver:/StationYchanges/etc /etc

So that changed or added files are only stored in this rw partition, thus
very small and easy to manage.

This would be a kind of partition inheritance, like in object
 languages...

Dreams are allowed :-)

try mount_unionfs

 and mount_nullfs

 Thanks Paul, FreeBSD has always hidden treasures :-)

 MOUNT_NULLFS(8) doc is very detailled, but i can't find how to use it
 for my problem : being able to go from common shared configuration to
 specific private configuration.

 unionfs looks very close to my dream, but it is currently not available
 for production :-(

Well, I tested unionfs on CURRENT and it did not crashed on me. Feel
free to test it on 7 STABLE and report results to developers.

-- 
Paul
___
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: lang/php5 port

2008-12-16 Thread Paul Schmehl
--On December 16, 2008 7:33:31 PM -0600 Steve Bertrand st...@ibctech.ca 
wrote:


One of the reasons I've had to edit Makefile manually was because a
client needed JPEG support.

At the time, `make config' didn't provide that option.



You should *never* need to edit a Makefile in a port.  (Well, extremely 
rarely.)  Usually the options are provided.  Optionally you can add them 
on the commandline like this:
make -dwith_enable-foo -dwith_disable-bar.  In the case of major ports 
such as lang/php5, the options are almost always available somehow.  Jpeg 
support, for example, is in php5-extensions.


If you don't find something you're expecting in a port, and you can't get 
an answer on this list, email the port maintainer, whose email address 
will always be in the port's Makefile.


Paul Schmehl (pa...@utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: lang/php5 port

2008-12-16 Thread Paul Schmehl
--On December 16, 2008 10:09:03 PM -0600 Tom Worster f...@thefsb.org 
wrote:




On 12/16/08 8:10 PM, Amitabh Kant amitabhk...@gmail.com wrote:


install the options from  lang/php5-extensions . Gives you tons of
options for php5.


thanks for the pointer. i think i found everything i needed in there.

i'm not sure how i feel about having 55 more ports installed than i would
have if i'd installed from php tarball, especially with regard to
updates,
but i'll cross that bridge when i come to it.



When you run portupgrade or portmaster, if there's updates to some of the 
extensions, those updates will be done at the same time.  (There are 
usually many.)  The only gotcha is that if you need to uninstall php, 
the extensions don't uninstall as well.  You have to either pkg_delete 
them or go into each port and run make deinstall.


Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying


Re: Quite Stumped here, need suggestions

2008-12-14 Thread Paul B. Mahol
On 12/14/08, Robert Richards richard.rob...@gmail.com wrote:
 Hi All:

 I am running: FreeBSD 6.3-RELEASE-p5 #3: Sun Oct  5 15:31:05 EDT 2008
 On a Sager 8800 Laptop. I have had FreeBSD installed for about a year,
 and all is working perfectly. I can bring up KDE, run many apps, all
 without a problem, except for ONE recent development. Every so often
 FreeBSD initiates a clean shutdown on it's own. Xwindows goes down
 cleanly,  kernel modules are unloaded, processes are stopped, drives
 are cleanly dismounted, and the system is powered down. It's exactly
 what you would expect if you issued a shutdown -h now command.  No
 core files are generated, and messages, even when the OS is brought up
 with verbose logging shows nothing.

 After trying many things, including running with a previous kernel, a
 GENERIC kernel, running in single-user mode, running minimalist,
 etc I decided to buildworld and buildkernel and essentially
 reinstall everything.

 While updating sources via cvsup, there was a shutdown. A subsequent
 attempt completed successfully. I then cleared out /usr/obj and did a
 make buildworld. After 39 minutes a shutdown. Repeated this, and a
 shutdown happened after 7 minutes.  I repeated this in single user
 mode, with older kernels, with GENERIC kernel, same results, the
 system shuts down cleanly at some point. Never at the same point or
 doing the same task (Yes I used script  as well; script simply exits
 as if make said all done! ).  It's as if a ghost-root issued a
 shutdown -h command.

 One additional clue. If I bring the system up without acpi the
 shutdown is instant, and unclean. No scripts are run, drives are left
 dirty, but still no clue in the logs.

 I am now stumped! What could cause the system to shut down in this
 fashion? With acpi active, the init scripts are executed in shutdown
 mode. What could cause the kernel to believe it has received a command
 to shutdown like this?

 I am not new to this stuff, but I have never seen anything like this.
 I AM new to FreeBSD, I had been running Linux for years until
 recently, and absolutely love the order, consistency, layout, and
 clean architecture of this OS. But this is weird!

 Where to look? What to try? I am truly stumped here.

Maybe it is overheat problem, look at temperature sensors.
But something should be displayed in dmesg and last output.
Read /var/log/dmesg.old

-- 
Paul
___
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 FreeBSD not popular on hardware vendors

2008-12-07 Thread Paul B. Mahol
On 12/7/08, Ole Vole [EMAIL PROTECTED] wrote:
 If only 3D or super-high-speed has been affected by this driver.
 Regrettably
 most application simple is not usable, like video-players, google-earth,
 KDE4 - all of that on my desktop station with  4Gb of RAM is
 looksworks
 like nightmare in vesa (xorg nv)-driver. And me too a very long time waiting
 for news from NV/BSD team.

Simple solution:
Pay them or someone to do it for you, or hack it yourself, or wait for
it little longer.

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


G4U inquiry

2008-12-04 Thread Jean-Paul Natola
Hi all,

I have a bsd box with a 12 gig drive- I'm going to get a new drive (larger)
to replace it as it is quite old and slow -

My question is when I clone it with g4u  where will the extra space go

The drive is currently sliced like this

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad0s1a496M 76M381M17%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad0s1e496M 11M445M 3%/tmp
/dev/ad0s1f9.0G1.4G6.8G17%/usr
/dev/ad0s1d1.4G301M1.0G22%/var


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


Re: Problem configuring X: FreeBSD 6.4, Intel video card, Fujitsu lifebook

2008-12-02 Thread Paul B. Mahol
On 12/2/08, Niki Kovacs [EMAIL PROTECTED] wrote:
 Hi,

 I just installed FreeBSD 6.4 on a Fujitsu lifebook. I'm quite new to
 FreeBSD (see previous post Introduction). Some time ago, I had bought
 (and partially read) Michael Urban's FreeBSD 6 Unleashed. I just
 worked through the initial chapters, and managed installing FreeBSD and
 configuring X just fine. Only I ran into trouble installing a desktop
 environment, since building gnome2-lite failed. I thought before doing
 anything, I'd get a more recent set of FreeBSD install discs, since the
 book includes 6.1, which seems a bit outdated.

 Now I did an install using a set of 6.4 install discs. Everything ran
 fine, except I can't get X to work anymore.

 Configuration:

 # Xorg -configure
 # mv /root/xorg.conf.new /etc/X11/xorg.conf

 And then test:

 # startx

 X crashes with the following error message:

 Fatal server error:
 Couldn't find PLL settings for mode!

 I googled about this and found a few results... on the Ubuntu 8.10
 bugtracker. Apparently the 'intel' video driver has some problems with
 my specific Intel video card.

 What now? Try to use the older 'i810' instead of 'intel'? But how would
 I do that? Simply replacing the corresponding Driver line in xorg.conf
 doesn't help.

Because xf86-video-i810 conflicts with xf86-video-intel and for
xf86-video-intel 'i810' is alias for 'intel' in xorg.conf.

To really test 'i810' driver you should deinstall xf86-video-intel and
install xf86-video-i810.

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


Re: wlan disappears on rum0

2008-11-28 Thread Paul B. Mahol
On 11/28/08, Christoph Kukulies [EMAIL PROTECTED] wrote:
 I start an

 ifconfig rum0 inet 10.0.0.1/24 mediaopt hostap ssid MySID wepmode on
 wepkey 0x01020304050607080910111213 weptxkey 1 channel 1

 and it seems that after a day or a night the wlan is gone. No SSID is
 being seen in the air.
 I then manually start it again and the wlan is up again.

 I have no idea right now when it disappears or why.

 Could it be that some nightly periodic is causing this?

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


There are some logs?
Workaround is to teach devd.conf(5) to start it again every time when
it disappears.
But it works in this way only if rum0 interface gets down when SSID dissapears.
It could be also bug in the driver or in the usb, who knows ...

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


Re: presentation application (other than OpenOffice)?

2008-11-26 Thread Paul B. Mahol
On 11/26/08, Markus Hoenicka [EMAIL PROTECTED] wrote:
 Quoting Andrew Gould [EMAIL PROTECTED]:

 I'm browsing around for smaller office apps.  Abiword and Gnumeric are
 great.  Does anyone have any recommendations for a presentation software?
 I'd rather not compile OpenOffice; and I'm just not getting KDE4.


 Hi Andrew,

 if you're into LaTeX, then prosper
 (http://sourceforge.net/projects/prosper/) might be an option. If
 you're into XML and don't need no fancy effects, then DocBook Slides
 (http://docbook.sourceforge.net/release/slides/3.4.0/RELEASE-NOTES.html) may

 come in handy. Also, if you don't need any effects or transitions you
 may consider any tool that creates multi-page PDF files. Adobe Reader
 has a full-screen option which turns it into a presentation viewer.

xpdf also support full-screen option and is much lighter than Adobe Reader,
and doesnt depends on linux stuff.
evince can be of use if you already have it installed, because it
supports fullscreen and presentation mode.

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


Re: large binary, why not strip ?

2008-11-26 Thread Paul B. Mahol
On 11/26/08, Matthew Seaman [EMAIL PROTECTED] wrote:
 Matthew Seaman wrote:
 Kris Kennaway wrote:

 Bonus points if you come up with a patch to do this: in most cases it
 will be a simple matter of changing the port's do-install: target to
 use INSTALL_* macros instead of cp/bsdtar etc.  This would be a good
 project to get some familiarity with the ports tree.

 Would it be worthwhile to add a test and warning that all installed
 binaries
 have not been stripped to the 'security-check' target in bsd.port.mk?
 That's
 not really what that target was intended for (feeping creaturism alert!)
 but
 it's the obvious place to put such a test.

 Probably cleaner to create a whole new target, but that's going to
 duplicate
 some code.

 H... I shall work up some patches, probably over the weekend, so
 there's
 something substantive to talk about.

 Done: ports/129210

 For the record, I also discovered that, contrary to what I said earlier,
 there is  apparently one class of binary object that will not work correctly
 if stripped: kernel loadable modules.

Kernel loadable modules are already stripped (--strip-debug).

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


Re: sockstat problem

2008-11-22 Thread Paul B. Mahol
On 11/22/08, x03ml [EMAIL PROTECTED] wrote:
 i update my kernel and userland like above:

 # make buildkernel KERNCONF=TEST
 #make installkernel KERNCONF=TEST
 #make buildworld
 #pwd
 /usr/src
 #reboot

boot -s {boot into single user mode}

# cd /usr/src
# megemaster -p
# make installworld
# mergmaster
# reboot

Read handbook, section 21.4.1 for explanation.


 #sockstat
 sockstat: struct xtcpcb size mismatch
 sockstat: struct xinpcb size mismatch
 sockstat: struct xunpcb size mismatch
 sockstat: struct xunpcb size mismatch
 USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN
 ADDRESS
 #

 is this a bug?

 Paul B. Mahol wrote:
 On 11/22/08, x03ml [EMAIL PROTECTED] wrote:

 hello list!
 i have this error running sockstat:

 # sockstat
 sockstat: struct xtcpcb size mismatch
 sockstat: struct xinpcb size mismatch
 sockstat: struct xunpcb size mismatch
 sockstat: struct xunpcb size mismatch


 Your kernel and world are not it sync.




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


Re: sockstat problem

2008-11-21 Thread Paul B. Mahol
On 11/22/08, x03ml [EMAIL PROTECTED] wrote:
 hello list!
 i have this error running sockstat:

 # sockstat
 sockstat: struct xtcpcb size mismatch
 sockstat: struct xinpcb size mismatch
 sockstat: struct xunpcb size mismatch
 sockstat: struct xunpcb size mismatch

Your kernel and world are not it sync.

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


newb questions

2008-11-19 Thread Paul Cartwright
ok, so I got this freebsd server up and running, even able to ssh to it.
questions:

1. when I run startx it auto logs me in on a minimal gui ( twm?). I installed 
gnome, I think, and want to log in using gnome, how do I change that?

2. I cannot su - to root, it says sorry. pam_group didn't seem like the 
answer, or I didn't read  it right. How can I su to root from my account?
Is there anything special to able to do that from ssh?

3. the boot loader... This server has 2 drives, and I already had w2k server 
on drive 1, and ubuntu-server on drive 2. when I boot, I now get options for 
F2-DOS ( win2k boots) and F5 disk0/1. I can't seem to find any option for my 
ubuntu OS. Is there a way to change that bootloader option to 
add /dev/sdb6-ubuntu?

maybe I was looking in the wrong documentation, if any/all of this is in the 
docs, which one? the handbook?

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


Re: newb questions

2008-11-19 Thread Paul Cartwright
On Wed November 19 2008, Mel wrote:
 Change .xinitrc.
 http://www.freebsd.org/gnome/docs/faq2.html 

got it, thanks!

  As for #2, you need to add your username to the wheel group in
  /etc/group.  That's all.  (You will have to log out then back in for the
  changes to take effect)

wheel group, who-da thunk it. I was looking for admin/root group.


 And you can't do this in ssh unless you enabled root logins, obvious
 chicken and egg. Will need to do this with a local root login.

already done and working.
thanks!


-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newb questions

2008-11-19 Thread Paul Cartwright
On Wed November 19 2008, Jeremy Chadwick wrote:
 I think boot0cfg is the tool you'll want to use for this.  I've never
 been in this situation, so I don't have a command to give you.  You can
 use boot0cfg -v disk (e.g. boot0cfg -v ad0) to get information about
 the boot0 configuration.

nice, except boot0cfg -v ad1 doesn't recognize ad1's current partitioning 
scheme.. I'll have to go back into gparted to see what slice my other OS is 
booted from. At least this points me in the right direction,
thanks!

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


Re: large binary, why not strip ?

2008-11-18 Thread Paul B. Mahol
On 11/17/08, Masoom Shaikh [EMAIL PROTECTED] wrote:
 On Mon, Nov 17, 2008 at 5:21 PM, Kris Kennaway [EMAIL PROTECTED] wrote:

 On Sun, Nov 16, 2008 at 12:56:31PM +0100, Wojciech Puchar wrote:
 
  most of the programs installed from ports have large binary size on
   disk
  
  stripping em all reduces their size dramatically
  
  I cannot see the reason for not stripping them by default ?
 
  me too
  
  do I miss anything ?
 
  no.

 I am confused why both of you are seeing most of the programs
 installed this way.  Can you confirm that this is true and not just an
 exaggeration?

 As Matthew says, there are some ports that fail to strip their
 binaries because of how they install files (using cp etc).  These are
 bugs that should be reported to their maintainers on a case by case
 basis.

 Kris

 --
 In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe [EMAIL PROTECTED]

 Before sending mail I manually stripped * in /usr/local/bin

And what about /usr/local/lib/** ?


 else I cud send u the o/p of `ls -lhS`

 yes, most is bit exaggerated...I perhaps was talking about first five

 binaries listed in increasing order of size...
 ___
 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: New AMD Processor:RM-72

2008-11-14 Thread Paul B. Mahol
On 11/14/08, weinter.lim [EMAIL PROTECTED] wrote:

 Hi,
 I have tried installing FreeBSD 7.1-BETA2 on my Laptop with a Relatively new
 Mobile Processor AMD X2 Turion RM-72 2.1GHZ 1MB L2 Cache
 I find that the temperature during normal operation is very high 70 degress
 IDLE
 When Compiling it hits 90 degress
 All this is happening even with power_d enabled
 Anyone else encountered similar issues with solution?

Please post output of:
% sysctl hw.acpi.thermal
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New AMD Processor:RM-72

2008-11-14 Thread Paul B. Mahol
On 11/14/08, weinter.lim [EMAIL PROTECTED] wrote:



 weinter.lim wrote:

 Hi,
 I have tried installing FreeBSD 7.1-BETA2 on my Laptop with a Relatively
 new
 Mobile Processor AMD X2 Turion RM-72 2.1GHZ 1MB L2 Cache
 I find that the temperature during normal operation is very high 70
 degress IDLE
 When Compiling it hits 90 degress
 All this is happening even with power_d enabled
 Anyone else encountered similar issues with solution?


 hw.acpi.thermal.min_runtime: 0
 hw.acpi.thermal.polling_rate: 10
 hw.acpi.thermal.user_override: 0
 hw.acpi.thermal.tz0.temperature: 69.0C (Changes to 90 degrees during
 compiling)
 hw.acpi.thermal.tz0.active: -1
Does this one ever change?

 hw.acpi.thermal.tz0.passive_cooling: 1
 hw.acpi.thermal.tz0.thermal_flags: 0
 hw.acpi.thermal.tz0._PSV: 99.0C
This one is too much high, it make more sense if it is ~60.0C

If acpi is disabled, does system also get too hot?
Is fan working/operational?


 hw.acpi.thermal.tz0._HOT: -1
 hw.acpi.thermal.tz0._CRT: 105.0C
 hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
This one looks bogus.

 hw.acpi.thermal.tz0._TC1: 2
 hw.acpi.thermal.tz0._TC2: 3
 hw.acpi.thermal.tz0._TSP: 40

After executing:
# hw.acpi.thermal.user_override=1
Try to modify hw.acpi.thermal.tz0.* values to something more usefull.

Also could you post output of:

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


Re: New AMD Processor:RM-72

2008-11-14 Thread Paul B. Mahol
On 11/14/08, weinter.lim [EMAIL PROTECTED] wrote:



 Paul B. Mahol wrote:
 
 On 11/14/08, weinter.lim [EMAIL PROTECTED] wrote:



 weinter.lim wrote:

 Hi,
 I have tried installing FreeBSD 7.1-BETA2 on my Laptop with a Relatively
 new
 Mobile Processor AMD X2 Turion RM-72 2.1GHZ 1MB L2 Cache
 I find that the temperature during normal operation is very high 70
 degress IDLE
 When Compiling it hits 90 degress
 All this is happening even with power_d enabled
 Anyone else encountered similar issues with solution?


 hw.acpi.thermal.min_runtime: 0
 hw.acpi.thermal.polling_rate: 10
 hw.acpi.thermal.user_override: 0
 hw.acpi.thermal.tz0.temperature: 69.0C (Changes to 90 degrees during
 compiling)
 hw.acpi.thermal.tz0.active: -1
 Does this one ever change?
 
 hw.acpi.thermal.tz0.passive_cooling: 1
 hw.acpi.thermal.tz0.thermal_flags: 0
 hw.acpi.thermal.tz0._PSV: 99.0C
 This one is too much high, it make more sense if it is ~60.0C
 
 If acpi is disabled, does system also get too hot? Yes it does
 Is fan working/operational? Yes it is working 

How fast?



 I don't think Acer Laptops enables fan control to users
 
 
 hw.acpi.thermal.tz0._HOT: -1
 hw.acpi.thermal.tz0._CRT: 105.0C
 hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
 This one looks bogus.
 
 hw.acpi.thermal.tz0._TC1: 2
 hw.acpi.thermal.tz0._TC2: 3
 hw.acpi.thermal.tz0._TSP: 40
 
 After executing:
 # hw.acpi.thermal.user_override=1
 Try to modify hw.acpi.thermal.tz0.* values to something more usefull.
 
 I changed hw.acpi.thermal.tz0._PSV:60.0C
 But the 
 
 Also could you post output of:
 
 % sysctl dev.cpu
 
 dev.cpu.0.%desc: ACPI CPU
 dev.cpu.0.%driver: cpu
 dev.cpu.0.%location: handle=\_PR_.CPU0
 dev.cpu.0.%pnpinfo: _HID=none _UID=0
 dev.cpu.0.%parent: acpi0
 dev.cpu.0.cx_supported: C1/0
 dev.cpu.0.cx_lowest: C1
 dev.cpu.0.cx_usage: 100.00%
 dev.cpu.1.%desc: ACPI CPU
 dev.cpu.1.%driver: cpu
 dev.cpu.1.%location: handle=\_PR_.CPU1
 dev.cpu.1.%pnpinfo: _HID=none _UID=0
 dev.cpu.1.%parent: acpi0
 dev.cpu.1.cx_supported: C1/0
 dev.cpu.1.cx_lowest: C1
 dev.cpu.1.cx_usage: 100.00%
 
 Also i just noticed:
 starting power_d
 power_d : look up freq not found (or something like that)

Try:

# kldload cpufreq

and restart powerd:

# pkill powerd  powerd -a adp

Even if this one works it is only workaround.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


virtualbox networking setup

2008-11-12 Thread Paul Cartwright
I'm new to the group, and I'm new to setting up VirtualBox guest hosts.
right now I have a Debian linux box, and I setup Virtual box. I installed 
FreeBSD on it, but I can't seem to get the networking to work. I tried to 
rerun sysinstall, but I'm not sure what options to change or why it isn't 
working. I have the command line terminal window up, but in the virtualbox 
window, I cannot copy  past to here, so I can't paste the ifconfig info..
it does say inet 0.0.0.0, but it does say UP, BROADCASTING...

I looked at the usermanual, but I didn't see anything about actually setting 
up the network, using DHCP...
I hae a home network, with a router, gateway 192.168.10.1, and my desktop is 
in that subnet 192.168.10.x
not sure what to do now...

thanks,
I grew up with ATT UNIX SYS V, but it's been a few years:)
-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: file harvest

2008-11-11 Thread Jean-Paul Natola
Since I cannot ssh into the snap,  can I mount it to my BSD box and run some
of those utilities?

-Original Message-
From: Polytropon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 11, 2008 12:29 AM
To: Jean-Paul Natola
Cc: FreeBSD Questions
Subject: Re: file harvest

On Mon, 10 Nov 2008 12:53:38 -0500, Jean-Paul Natola
[EMAIL PROTECTED] wrote:
 Question is how can I, if it all possible, do a harvest of my own?

Hah, you're asking the right one, man. :-)

There are many good tools available from the ports, some of them can
even be used for diagnostics and recovery on UFS file systems. The
most famous one is The Sleuth Kit, another useful tool is magicrescue.

Try and see if they are helpful to you. Good luck!



-- 
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 [EMAIL PROTECTED]


Tomcat Debugging (OT most likely)

2008-11-11 Thread Paul Procacci

Hey all,

This question is probably best suited for tomcat-users, but being this 
is an a FBSD machine I'd figure I'd ask here first.  I have a client 
running apache w/ tomcat serving thousands of requests per second.  It 
works, but with one caveat, pages load extremely slowly.  When I first 
saw the request, I figured this client was running into some kind of 
resource bottleneck, but that's where my problems started.  I'm unable 
to find any resource that is being starved.  I turn to `the mighty list` 
for guidance.


This particular machine is running FreeBSD 6.2.  It has a bce network 
card that currently connected to a GigE switch with a 10G uplink.  Even 
with all this available bandwidth, this client's application *currently* 
is not doing any more than 50Mb/sec.  ::  Rule out network congestion.


Moving along to the system ram :: 2 Gigs are in the machine, with very 
little usage:

Mem: 724M Active, 874M Inact, 338M Wired, 64M Cache, 112M Buf, 4944K Free

A dual core cpu is in the machine, again with very little usage:
CPU states:  8.6% user,  0.0% nice,  3.9% system,  2.8% interrupt, 84.7% 
idle


Disk throughput is negligable at this time (50KB/sec :: 3tps).

I did start off mentioning this machine uses tomcat...so let me 
continue.  We've setup the java process to use libthr via libmap.conf:

#
cat /etc/libmap.conf
[java]
libpthread.so.2 libthr.so.2
libpthread.so libthr.so
#

And added the following to rc.conf::
###
tomcat55_java_opts=-XX:MaxPermSize=512m -Xmx512M
###

Apache Configuration:
###
MaxClients 1024
###

Tomcat Configuration:
###
maxThreads=1200
###


So onto my question...the slowness being encountered.  My initial 
thought was the slowness was due to quite possibly the cpu being 
hammered by numerous requests.  After checking however that's not the 
case, then I looked at the networking equipment with my networking team, 
that's ok too.  (I think) That leaves a) thread contention somewhere  b) 
apache misconfiguration and c) tomcat configuration.


Both myself and 2 other admins have looked over the apache configuration 
and tomcat configuration and we believe that side of things is probably 
ok.  That's leaves weird contention in the kernel or userland mutexes or 
something along those lines.


Here is our current connection count on the external interface ::

sockstat -4cp 80 | wc -l
997


Here is our connection count on localhost (from apache to tomcat process 
and vica versa) ::


sockstat -4cp 8009  | wc -l
   1679



And finally.top output:

last pid: 57747;  load averages:  0.79,  1.12,  
0.87
up 153+17:56:53 18:36:57

#--snip --
 PID USERNAME   PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
57460 www 960  1385M   432M ucond  0   2:44  2.88% java
57460 www 960  1385M   432M ucond  0   2:44  2.73% java
57460 www 960  1385M   432M select 0   2:44  0.15% java
57460 www 960  1385M   432M select 1   2:44  0.15% java
#--snip--

The above lines repeat up to the number of threads we have.  `states` 
are in ucond and select.



Hopefully I hven't bored anyoneyet, and would appreciate any 
guildance.  Maybe good tools for debugged kernel threads, or a simple 
slap in the face will do nicely.


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


Re: Tomcat Debugging (OT most likely)

2008-11-11 Thread Paul Procacci

Paul Procacci wrote:

Hey all,

This question is probably best suited for tomcat-users, but being this 
is an a FBSD machine I'd figure I'd ask here first.  I have a client 
running apache w/ tomcat serving thousands of requests per second.  It 
works, but with one caveat, pages load extremely slowly.  When I first 
saw the request, I figured this client was running into some kind of 
resource bottleneck, but that's where my problems started.  I'm unable 
to find any resource that is being starved.  I turn to `the mighty 
list` for guidance.


This particular machine is running FreeBSD 6.2.  It has a bce network 
card that currently connected to a GigE switch with a 10G uplink.  
Even with all this available bandwidth, this client's application 
*currently* is not doing any more than 50Mb/sec.  ::  Rule out network 
congestion.


Moving along to the system ram :: 2 Gigs are in the machine, with very 
little usage:

Mem: 724M Active, 874M Inact, 338M Wired, 64M Cache, 112M Buf, 4944K Free

A dual core cpu is in the machine, again with very little usage:
CPU states:  8.6% user,  0.0% nice,  3.9% system,  2.8% interrupt, 
84.7% idle


Disk throughput is negligable at this time (50KB/sec :: 3tps).

I did start off mentioning this machine uses tomcat...so let me 
continue.  We've setup the java process to use libthr via libmap.conf:

#
cat /etc/libmap.conf
[java]
libpthread.so.2 libthr.so.2
libpthread.so libthr.so
#

And added the following to rc.conf::
###
tomcat55_java_opts=-XX:MaxPermSize=512m -Xmx512M
###

Apache Configuration:
###
MaxClients 1024
###

Tomcat Configuration:
###
maxThreads=1200
###


So onto my question...the slowness being encountered.  My initial 
thought was the slowness was due to quite possibly the cpu being 
hammered by numerous requests.  After checking however that's not the 
case, then I looked at the networking equipment with my networking 
team, that's ok too.  (I think) That leaves a) thread contention 
somewhere  b) apache misconfiguration and c) tomcat configuration.


Both myself and 2 other admins have looked over the apache 
configuration and tomcat configuration and we believe that side of 
things is probably ok.  That's leaves weird contention in the kernel 
or userland mutexes or something along those lines.


Here is our current connection count on the external interface ::

sockstat -4cp 80 | wc -l
997


Here is our connection count on localhost (from apache to tomcat 
process and vica versa) ::


sockstat -4cp 8009  | wc -l
   1679



And finally.top output:

last pid: 57747;  load averages:  0.79,  1.12,  
0.87
up 153+17:56:53 18:36:57

#--snip --
 PID USERNAME   PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
57460 www 960  1385M   432M ucond  0   2:44  2.88% java
57460 www 960  1385M   432M ucond  0   2:44  2.73% java
57460 www 960  1385M   432M select 0   2:44  0.15% java
57460 www 960  1385M   432M select 1   2:44  0.15% java
#--snip--

The above lines repeat up to the number of threads we have.  `states` 
are in ucond and select.



Hopefully I hven't bored anyoneyet, and would appreciate any 
guildance.  Maybe good tools for debugged kernel threads, or a simple 
slap in the face will do nicely.


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



List,

Apologies, but I sever my head in shame as I have found the problem.   
In one word:  KeepAlives.


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


file harvest

2008-11-10 Thread Jean-Paul Natola
Hi all,


I have a SNAP 4100 appliance that lost  2 directories, no backup ,  I sent it
out to a DR service and they have told me that all they can do is file
harvest, where I would get a list of files  such as file0001.xls file0002.xls
etc...

With no guarantee of what will come out, now we are a non-profit so 3k with
no guarantees is kind of hard to swallow-

Question is how can I, if it all possible, do a harvest of my own?

I believe the snap uses UFS 

TIA

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


Re: Glob error?

2008-11-07 Thread Paul A. Procacci

Steve Watt wrote:

( Please cc: me on replies, as I can't keep up with traffic on -questions )

I did the following:

% cd /tmp
% mkdir -p a/dir1/new a/dir1/cur
% mkdir -p b/dir1/new b/dir1/cur
% mkdir -p c/dir1/new c/dir1/cur
% ls -ld */dir1/new
drwxrwxr-x  2 steve  wheel  512 Nov  7 15:10 a/dir1/new/
% 


System is:
FreeBSD wattres.Watt.COM 6.3-STABLE FreeBSD 6.3-STABLE #9: Tue May 13 16:06:34 
PDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WATTRES  i386

Source was probably updated a few hours before the kernel build time.

Shell doesn't seem to matter (have tried both tcsh and bash).

My cygwin installation seems to get it right.

Known issue?  A quick glance for glob in gnats didn't show anything promising.
  


I too can't reproduce this on any of my machines:

nat# mkdir -p {a,b,c}/dir/{cur,new}
nat# ls -ld */dir/*
drwxr-xr-x  2 root  wheel  512 Nov  7 19:07 a/dir/cur
drwxr-xr-x  2 root  wheel  512 Nov  7 19:07 a/dir/new
drwxr-xr-x  2 root  wheel  512 Nov  7 19:07 b/dir/cur
drwxr-xr-x  2 root  wheel  512 Nov  7 19:07 b/dir/new
drwxr-xr-x  2 root  wheel  512 Nov  7 19:07 c/dir/cur
drwxr-xr-x  2 root  wheel  512 Nov  7 19:07 c/dir/new

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


Re: Kismet on FreeBSD 7.0-STABLE

2008-11-06 Thread Paul B. Mahol
On 11/6/08, Ludovit Koren [EMAIL PROTECTED] wrote:


 Hi,

 I am using

 iwi0: Intel(R) PRO/Wireless 2200BG mem 0xfafef000-0xfafe irq 9 at
 device 3.0 on pci2


 # kldload /boot/kernel/if_iwi.ko
 # kldload /boot/kernel/iwi_bss.ko
 # kldload /boot/kernel/iwi_ibss.ko
 # kldload /boot/kernel/iwi_monitor.ko
 # /etc/rc.d/wpa_supplicant start iwi0

 which is working fine when I am using it connecting to WiFi net. When
 I am using wpa_cli scan and scan_results I can see different nets.

 I have the following configuration line in the kismet.conf file:

 source=radiotap_bsd_ab,iwi0,pcapfile

It should be:

source=radiotap_bsd_ab,iwi0,iwi0

More information is required. Can you put iwi0 into monitor mode and
use tcpdump instead?

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


Re: Kismet on FreeBSD 7.0-STABLE

2008-11-06 Thread Paul B. Mahol
On 11/6/08, Ludovit Koren [EMAIL PROTECTED] wrote:

 On Thu, 06 Nov 2008 13:12:23 +0100
 [EMAIL PROTECTED](Paul B. Mahol)  said:

 On 11/6/08, Ludovit Koren [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  I am using
 
  iwi0: Intel(R) PRO/Wireless 2200BG mem 0xfafef000-0xfafe irq 9 at
  device 3.0 on pci2
 
 
  # kldload /boot/kernel/if_iwi.ko
  # kldload /boot/kernel/iwi_bss.ko
  # kldload /boot/kernel/iwi_ibss.ko
  # kldload /boot/kernel/iwi_monitor.ko
  # /etc/rc.d/wpa_supplicant start iwi0
 
  which is working fine when I am using it connecting to WiFi net. When
  I am using wpa_cli scan and scan_results I can see different nets.
 
  I have the following configuration line in the kismet.conf file:
 
  source=radiotap_bsd_ab,iwi0,pcapfile

 It should be:

 source=radiotap_bsd_ab,iwi0,iwi0

 I tried it even with this, no success


 More information is required. Can you put iwi0 into monitor mode and
 use tcpdump instead?

 ifconfig iwi0 monitor


 I cannot capture any packet.

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


Re: a quick?

2008-11-05 Thread Paul A. Procacci

david mellick wrote:

how long does it normally take GNOME to install?



Thanks 
Dave




  
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
This is quite an open-ended question that has lots of variables.  The 
answer is, it depends on your system in which no one will be able to 
provide any specifics; more or less.


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


Re: Images-only webserver, lighttpd vs NginX

2008-11-03 Thread Paul A. Procacci

Francis Dubé wrote:

Hi everyone,

I posted last week about my webserver hitting the kernel's max process 
allowed (error : collecting pv entries -- suggest increasing 
PMAP_SHPGPERPROC).


As a part of the solution, I decided to build a jail with a light 
webserver dedicated to images requests, the biggest part of the 
requests the server have to process. Most of the websites hosted on 
the server have approximately 200 small images with a size between 1k 
and 32k each. I'm currently hesitating between NginX and lighttpd, 
which both seems to offer similar benchmarks for this job. The 
questions :


Is someone doing something similar to this with one of the two ?
Which one do you suggest and why ?
I've read about a memory leak in lighttpd, is anyone is having issues 
with this under FreeBSD ?


Any ideas regarding our situation is appreciated,

Thanks !


Francis Dube
R  D
Optik Securite
www.optiksecurite.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
They are both good static content servers.  You can easily max out a 
GiGe link using either.  We use lighttpd more extensively than nginx, 
however we do use both.  Quite frankly, it's truthfully up to you.  
Performance wise, they are on par with once another.


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


Re: Images-only webserver, lighttpd vs NginX

2008-11-03 Thread Paul A. Procacci

Sam Fourman Jr. wrote:

They are both good static content servers.  You can easily max out a GiGe
link using either.  We use lighttpd more extensively than nginx, however we
do use both.  Quite frankly, it's truthfully up to you.  Performance wise,
they are on par with once another.

~Paul


at the risk of being slightly OT

is there a recent toutorial that anyone knows of for lighthttpd on
FreeBSD 7, I have used Google and
I can't turn up anything recent

Sam Fourman Jr.
Fourman Networks
  
What kind of tutorial are you looking for?  Their documentation is quite 
extensive.


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


Re: Problems with FreeBSD

2008-11-03 Thread Paul A. Procacci

J MPZ wrote:

Hi guys,

I have some problem with my FreeBSD server. I have this:

####  #
# Linux1  #  - ASA  - Internet  - # FreeBSD  #  - # Linux2 #
####  #

If I run a ssh for Linux1 to FreeBSD, my connection freeze when the return
of some command is a big text. Example:

I make a ssh connection in the from the Linux1 to FreeBSD server, then, I
execute some commands, like: 'pwd', 'whoami', 'ls /'... this work perfectly.
But, if I run some command that return a big text, like as: 'ls /dev/', or
top, my connection freeze.

In other terminal, the tcpdump continues showing packets in this connection
that was freeze.

If I try to access the Linux2, throught FreeBSD (redirect port on natd or
redirect port with rinetd), the same thing happens.

Is this a problem with FreeBSD? Someone know how I can fix it? Some sysctl?

Regards,
J.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
The tcpdump that you say continues showing packets..are the packets 
leaving the freeBSD machine or arriving at the FreeBSD machine.
My guess is you meant leaving the FreeBSD destined for your linux 
machine.  If this is the case, then the problem most likely lies with 
the ASA.
If you monitor the ASA's external interface during your testing, do you 
see packets arriving?  If so, do you see packets leaving the internal 
interface going back to your Linux1 machine?

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


Re: fail with wireless network configuration with SIOCS80211: Invalid argument

2008-10-31 Thread Paul B. Mahol
On 10/31/08, Zhang Weiwu [EMAIL PROTECTED] wrote:
 Paul B. Mahol wrote:
 On 10/30/08, Zhang Weiwu [EMAIL PROTECTED] wrote:

 Zhang Weiwu wrote:

 Hello. I am trying to get an AboveCable (model: ACPC 2000-01) wireless
 card connected to my home network with 40-bit Hex WEP Encryption on
 FreeBSD 6.1.

 # ifconfig wi0 inet 192.168.1.90 ssid ZWW wepmode on wepkey 0xea82552825
 ifconfig: SIOCS80211: Invalid argument



 Why is deftxkey 1 missing ?

 from ifconfig(8)

  Note that you must set a default transmit key with deftxkey
 for
^
  the system to know which key to use in encrypting outbound
 traf-
  fic


 That quoted line of text is not appearing in my version (6.4) FreeBSD's
 manual.

 I tried to add deftxkey 1, same result. a.k.a. the interface is
 configured, but DHCP couldn't obtain IP address, manually assigned IP
 address couldn't communicate with other hosts.

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


Re: fail with wireless network configuration with SIOCS80211: Invalid argument

2008-10-30 Thread Paul B. Mahol
On 10/30/08, Zhang Weiwu [EMAIL PROTECTED] wrote:
 Zhang Weiwu wrote:
 Hello. I am trying to get an AboveCable (model: ACPC 2000-01) wireless
 card connected to my home network with 40-bit Hex WEP Encryption on
 FreeBSD 6.1.

 # ifconfig wi0 inet 192.168.1.90 ssid ZWW wepmode on wepkey 0xea82552825
 ifconfig: SIOCS80211: Invalid argument


Why is deftxkey 1 missing ?

from ifconfig(8)

 Note that you must set a default transmit key with deftxkey for
   ^
 the system to know which key to use in encrypting outbound traf-
 fic

 Did I made anything wrong or miss something in the kernel? I have the
 related lines in kernel:

 driver wi
 driver wlan


 It turns out this error message is a direct result of lack of wlan_wep
 neither loaded as module nor compiled in kernel.

 However I still could not make the card work (even though it works in
 Ubuntu Linux) after having wlan_wep compiled in, but at least I
 eliminated the

 SIOCS80211: Invalid argument

 error message, which may be helpful for someone who finds this thread by
 using this error message as search key to google.
 ___
 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]


sendmail sasl problem

2008-10-24 Thread Paul Macdonald


Hi,

I'm having a strange problem after a recent saslauthd upgrade..

I can no longer authenticate to the smtp server,

with saslauthd in debug mode i can see the authentication ( via 
getpwent)  as succeeding


saslauthd[54468] :rel_accept_lock : released accept lock
saslauthd[54468] :do_auth : auth success: [user=smtpauth] 
[service=smtp] [realm=] [mech=getpwent]

saslauthd[54468] :do_request  : response: OK

however sendmail still gives me a relaying denied

i've tried this with various other system users with the same result, 
saslauthd says ok, sendmail says no!



Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 
250-ENHANCEDSTATUSCODES

Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 250-PIPELINING
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 250-8BITMIME
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 250-SIZE
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 250-DSN
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 250-ETRN
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 250-AUTH 
PLAIN LOGIN

Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 250-DELIVERBY
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 250 HELP
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: -- AUTH PLAIN 
AHBhdWwAcmV3N3gwMTQ0NQ==
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 235 2.0.0 OK 
Authenticated
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: AUTH=server, 
relay=87-194-184-71.bethere.co.uk [87.194.184.71], authid=paul, 
mech=PLAIN, bits=0
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: -- MAIL 
FROM:[EMAIL PROTECTED] SIZE=20688
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: Milter: sender: 
[EMAIL PROTECTED]
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: milter=clmilter, 
action=mail, continue
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: Milter 
(clmilter): time command (M), 0
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: 
milter=spamassassin, action=mail, continue
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: Milter 
(spamassassin): time command (M), 0
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 250 2.1.0 
[EMAIL PROTECTED]... Sender ok
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: -- RCPT 
TO:[EMAIL PROTECTED]
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: --- 550 5.7.1 
[EMAIL PROTECTED]... Relaying denied. Proper authentication required.
Oct 24 11:13:01 ifdnrg18 sm-mta[57530]: m9OAD18c057530: 
ruleset=check_rcpt, arg1=[EMAIL PROTECTED], 
relay=87-194-184-71.bethere.co.uk [87.194.184.71], reject=550 5.7.1 
[EMAIL PROTECTED]...  Relaying denied. Proper authentication required.


rc.conf
#SASLAUTHD
saslauthd_enable=YES
#note debug mode for sasl runs the daemon in foreground
#saslauthd_flags=-a getpwent -d
saslauthd_flags=-a getpwent


there's nothing in the access maps to reject this host, and adding 
myself to the access map fixes it for me ( but obv not anyone else)


The same upgrade to sasl went smoothly on 2 other boxes with fairly 
identical setups, and both sasl and sendmail have been reinstalled with 
same effect.



Can anyone offer any suggestions?

tia
Paul.

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


Re: calendar software wanted

2008-10-22 Thread Paul A. Procacci

http://www.mozilla.org/projects/calendar/sunbird/


Marco wrote:

hello list,

anybody has experience with calendar software which runs on freebsd. i
maybe would integrate it also in thunderbird/mutt,but thats not
necessary, or use a stand alone software.
minimum requirements to the software would be making entries, getting
alarms for appointments.

thank you for responses,
 marco
___
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: Can't upgrade or deinstall phpMyAdmin

2008-10-22 Thread Paul Schmehl
--On Wednesday, October 22, 2008 09:56:28 -0500 Mike Clarke 
[EMAIL PROTECTED] wrote:


I'm not sure if this is relevant but a while ago I deinstalled apache
1.3 and php 4 but forgot to deinstall phpMyAdmin. Today I installed
apache 2.2 with php 5 and unsuccessfully tried to deinstall the old
phpMyAdmin before doing this. Apache and php installed OK and the old
phpMyAdmin works but really ought to be upgraded. I tried to deinstall
phpMyAdmin again after installing the new packages but still have the
same problem.

What should I do to persuade the old version to go?



Have you tried pkg_delete phpMyAdmin* ?

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

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


Re: wpa_supplicant wired

2008-10-21 Thread Paul B. Mahol
On 10/21/08, Michal Kulczewski [EMAIL PROTECTED] wrote:
 Hi folks,

 can anyone manage to have wired driver enabled in wpa_supplicant? How to
 do this? I'm playing with wpa_supplicant and hostapd sources for a while
 but without any significant progress.

What FreeBSD vesion? On CURRENT and 7.0= it is enabled by default, on
older I think you need to rebuild it yourself.

Enabling wired driver in wpa_supplicant is straightforward.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: wpa_supplicant wired

2008-10-21 Thread Paul B. Mahol
On 10/21/08, Michal Kulczewski [EMAIL PROTECTED] wrote:
 Paul B. Mahol wrote:
 On 10/21/08, Michal Kulczewski [EMAIL PROTECTED] wrote:
 Hi folks,

 can anyone manage to have wired driver enabled in wpa_supplicant? How to
 do this? I'm playing with wpa_supplicant and hostapd sources for a while
 but without any significant progress.

 What FreeBSD vesion? On CURRENT and 7.0= it is enabled by default, on

= should be just 

 older I think you need to rebuild it yourself.
 
 Enabling wired driver in wpa_supplicant is straightforward.

 well, it's not, at least not for me. I'm running 7.0, wpa_supplicant
 tells me that wired driver is not supported (BSD and NDIS are the only
 correct values).

Yes, 7.0 RELEASE do not have it.
Here is patch:

http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/wpa/wpa_supplicant/Makefile.diff?r1=1.11.2.2;r2=1.11.2.3
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: I've just found a new and interesting spam source - legitimatebounce messages

2008-10-20 Thread Paul Schmehl
--On Monday, October 20, 2008 10:24:28 -0500 Michael K. Smith - Adhost 
[EMAIL PROTECTED] wrote:




Let me know if you do find a reliable, decent solution that does not
involve SPF or postfix header_checks or body_checks.



The following doesn't fix the problem but it does help mitigate the deluge.
We use a PERL script to tail our maillogs looking for any source IP that
tries to send mail to more than 4 invalid addresses.  When flagged, that IP
is then added to a PF table that blocks the address and issues RST's for 12
hours.  Of course, we also have a whitelist for valid SMTP servers.  Like I
said, it doesn't catch it all, but it catches *a lot* and generates almost no
complaints.  This does help obfuscate the valid/invalid addresses because all
mail is accepted as far as the sender is concerned until the IP is blocked at
the network layer.

The usual complaint is from an remote office that has 12 real estate agents
behind a single IP, all with Outlook set to check mail sooner than now.  :-)



The best solution *by far* that I have found for spam (using Postfix) is 
mail/postfix-policyd-weight.  It routinely rejects 50 to 70% of incoming mail 
with no false positives.  It took *very* little tweaking to get it to this 
point, and it rejects the mail before postfix even deals with it.  I use 
spamassassin as well, but policyd-weight does the heavy lifting.


Here's one example of a rejected email:

Oct 20 11:11:16 mail postfix/policyd-weight[77973]: weighted check: 
IN_DYN_PBL_SPAMHAUS=3.25 NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 
NOT_IN_BL_NJABL=-1.5 CL_IP_NE_HELO=4.75 REV_IP_EQ_HELO=-1.25 
NOK_HELO_SEEMS_DIALUP=5 (check from: .hinet. - helo: 
.dsl.dynamic8121373125.ttnet. - helo-domain: .ttnet.) 
FROM/MX_MATCHES_NOT_UNVR_HELO(DOMAIN)=4.85 CLIENT_NOT_MX/A_FROM_DOMAIN=4.75 
CLIENT/24_NOT_MX/A_FROM_DOMAIN=4.75; client=81.213.73.125 
helo=dsl.dynamic8121373125.ttnet.net.tr [EMAIL PROTECTED] 
[EMAIL PROTECTED]; rate: 21.6
Oct 20 11:11:16 mail postfix/policyd-weight[77973]: decided action=550 Mail 
appeared to be SPAM or forged. Ask your Mail/DNS-Administrator to correct HELO 
and DNS MX settings or to get removed from DNSBLs; please relay via your ISP 
(ms35.hinet.net); Please use DynDNS; client=81.213.73.125 
helo=dsl.dynamic8121373125.ttnet.net.tr [EMAIL PROTECTED] 
[EMAIL PROTECTED]; delay: 8s


Anything above 1 is rejected.  This email scored 21.6, which is off the charts.

It even does greylisting.

Oct 20 10:45:47 mail postfix/policyd-weight[28339]: decided action=550 
temporarily blocked because of previous errors - retrying too fast. penalty: 30 
seconds x 0 retries.; client=189.141.58.189 
helo=dsl-189-141-58-189.prod-infinitum.com.mx [EMAIL PROTECTED] 
[EMAIL PROTECTED]; delay: 0s
Oct 20 10:46:51 mail postfix/policyd-weight[28339]: decided action=550 
temporarily blocked because of previous errors - retrying too fast. penalty: 30 
seconds x 0 retries.; client=65.110.50.188 helo=boomfm.dnsalias.com 
[EMAIL PROTECTED] [EMAIL PROTECTED]; delay: 0s


It does let some spam through, which spamassassin catches, but it rejects all 
the bogus stuff (fake hostnames, bogus MTAs, forged from addresses, etc., etc.)


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: I've just found a new and interesting spam source - legitimatebounce messages

2008-10-20 Thread Paul Schmehl
--On Monday, October 20, 2008 10:11:36 -0700 Jeremy Chadwick 
[EMAIL PROTECTED] wrote:



On Mon, Oct 20, 2008 at 11:16:31AM -0500, Paul Schmehl wrote:


The best solution *by far* that I have found for spam (using Postfix) is
mail/postfix-policyd-weight.  It routinely rejects 50 to 70% of incoming
mail with no false positives.  It took *very* little tweaking to get it
to this point, and it rejects the mail before postfix even deals with it.
 I use spamassassin as well, but policyd-weight does the heavy lifting.



We used to use numerous features in postfix to block mail during
different phases of the SMTP handshake, requiring strings meet RFC
standards, comply with being FQDNs, resolve, blah blah...  It
worked great... until...

One day, one of my users mailed me stating they were in a lot of
trouble: they hadn't been receiving any mails from eBay, specifically
contact from buyers/sellers (to negotiate payment means, etc.), and
outbid notifications.

I went digging through logs, and sure enough found the cause: eBay's
HELO strings were what pedants would call absolutely preposterous.
They violated 3 or 4 different checks postfix had.  At first I tuned
postfix to allow certain IP blocks through that check, only to find
that it's nearly impossible to determine all of the IP blocks eBay
has -- in fact, some of their mail gets siphoned through a third-party
mailer, and it looks like that mailer uses IPs all over the place.
Meaning: administrative nightmare.

There is nothing worse than telling your users Okay, I've fixed it,
only to get mail from them 24 hours later stating Umm, no you didn't,
and this is really starting to piss me off.

I went through the same ordeal with other users and their LiveJournal
mail notifications being blocked.

The point I'm trying to make is that all this overly-aggressive
filtering might work great if you're one guy maintaining your own box
only used by you -- and I have a feeling a lot of people who post on
this list are exactly that.  It's a **completely** different game when
you've got other people reliant upon your mail filtering decisions.

The problem with blocking mail early on (meaning before it's queued,
e.g. SMTP 5xx or 4xx rejections) is that the end-user has no knowledge
of this.  They simply do not get the mail.  They're left in the dark,
wondering Did person send the mail?  Are they lying to me?  What's
going on???.  It's a very sensitive thing when you're a hosting
provider.

In the case of my users, they would much rather get the mail and have it
incorrectly flagged as spam, than not get it at all.  I personally
believe this directly reflects on the state of anti-spam affairs: we've
gotten so aggressive that *who KNOWS* what kind of legitimate mail we're
blocking.


That's why it's critically important that whatever tools you use be highly 
configurable.  In the case of policyd-weight, you can configure it so that it 
passes *everything* through but marks it in such a way that you can filter it 
appropriately.


In my case, I run a small hobby website with a minimal number of email 
addresses.  When I first installed policyd-weight, I watched it closely and 
discovered it was blocking legitimate mail from sbcglobal because they didn't 
have their mail servers' dns properly configured.  The result was a score just 
slightly higher than the threshold for rejection (a tenth of a point or two.) 
I decided to make that particular check worth less overall, and that solved the 
problem.


I have yet to receive a single complaint about mail not getting through, and, 
although there's only a handful of accounts on the server, we get mail from our 
website users constantly.


I fully understand where you're coming from, Jeremy.  We have the same issues 
at UTD.  But for many smaller sites, policyd-weight would be a godsend.


--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

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


Re: I've just found a new and interesting spam source - legitimate bounce messages

2008-10-16 Thread Paul Schmehl

--On Thursday, October 16, 2008 09:01:02 -0500 [EMAIL PROTECTED] wrote:



In the last hour, I've received over 200 legitimate bounce messages
from email services as a result of someone having used or worse is
using my email address in spam from multiple windows machines and ip
addresses.  The end result is that I am getting the bounce messages.
I'm sure that others on this list have experienced the problem and
maybe have a solution that I don't have.

The messages are allowed through my obspamd/pf and pf smtp bruteforce
blocking rules because they are completely legit.

I guess the work around is to filter them on incoming together with
our local bounce messaages util the spammers get tired of my address.



We call those bounceback spam.  The only solution that I know of is to tag 
all outgoing messages with a special header and then check for that header on 
all returns and reject those that don't contain the header.  All legitimate 
bounces would contain the header because they originated with your MTA.


E.g. X-Bounceback-Check: 0987923874

The value of the header can be anything you want it to be, and you can change 
it periodically if you want to keep statistical data.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


g4u and ftp

2008-10-16 Thread Jean-Paul Natola
Hi all,

I'm having an issue trying to write to my ftp server from linux-

I just setup the ftp server with read and write access anonymous login

From windows explorer no-problem from the mac's no problem- but when I try to
upload an image using  g4u  (http://www.feyrer.de/g4u/) I get rejected by the
MS ftp server 


Im not sure why it doesn't let me any thoughts?

tia



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


Re: How to get my Dad's Win2k system to access internet through my FreeBSD 6.2 system

2008-10-14 Thread Paul Schmehl
--On Tuesday, October 14, 2008 01:39:45 -0500 Manish Jain [EMAIL PROTECTED] 
wrote:





Hi,

I am poor at networking and need a little bit of help. My dad has a
Windows 2000 machine with a network card but does not have a connection
to the internet. My freebsd 6.2 box is connected to the internet


How is your FreeBSD 6.2 box connected to the internet?  Directly to the modem? 
What sort of connection do you have?  Dial-up?  DSL?  Satellite?  Cable?


The answers to these questions determine how you go about networking the two 
machines together.


--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

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


rc: not working as expected? (round 2)

2008-10-10 Thread Paul Halliday
(I mistakenly sent the last msg before finishing..)

Or maybe an interpretation issue.

I have a few startup scripts in rc.d and I am experiencing timing
issues. i.e. I need xyz to start before abc.

Within xyz I tried:

# REQUIRE: abc

This didn't work so I tried:

100.xyz
900.abc

which doesn't appear to work either.

What am I missing?

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


rc: not working as expected?

2008-10-10 Thread Paul Halliday
Or maybe an interpretation issue.

I have a few startup scripts in rc.d and I am experiencing timing
issues. i.e. I need xyz to start before abc.

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


Re: kernel: Approaching the limit on PV entries...

2008-10-10 Thread Paul A. Procacci

Bob Johnson wrote:

A web server with several jailed copies of Apache is having problems
that seem to be caused by incorrect IPFW rules, but in the process of
working on that, I find in the log the following repeated many times:

Oct  8 23:29:50 spider kernel: Approaching the limit on PV entries,
consider increasing either the vm.pmap.shpgperproc or the
vm.pmap.pv_entry_max sysctl.
Oct  8 23:30:52 spider kernel: Approaching the limit on PV entries,
consider increasing either the vm.pmap.shpgperproc or the
vm.pmap.pv_entry_max sysctl.

sysctl gives me:

# sysctl vm.pmap
vm.pmap.pmap_collect_active: 0
vm.pmap.pmap_collect_inactive: 0
vm.pmap.pv_entry_spare: 45818
vm.pmap.pv_entry_allocs: 595716945
vm.pmap.pv_entry_frees: 595133939
vm.pmap.pc_chunk_tryfail: 0
vm.pmap.pc_chunk_frees: 3543052
vm.pmap.pc_chunk_allocs: 3546795
vm.pmap.pc_chunk_count: 3743
vm.pmap.pv_entry_count: 583006
vm.pmap.shpgperproc: 200
vm.pmap.pv_entry_max: 2243305

The system:
FreeBSD  7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: Wed Oct  1
07:51:58 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64

Can someone briefly explain what this is telling me and how to decide
which sysctl to increase? I have found some old postings that predate
the sysctls that suggested increasing shpgperproc in the kernel
configuration, about 50 at a time until the problem goes away, but I
still have no clue what that is accomplishing.

Also, the system has been rebooted since I collected those messages,
and they aren't happening any more, but I expect they will reappear
eventually. Until then I probably can't actually test anything.

Thanks for your time,

-- Bob Johnson
   [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
For what it's worth, I just came across a machine with the same exact 
problem, except when I do finally run out of entries, I get a kernel panic.


FBSD 7-RELEASE-p4

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


Re: [EMAIL PROTECTED] maildrop and postfix - temporary authentication failure

2008-10-09 Thread Paul Schmehl
--On Thursday, October 09, 2008 01:21:20 -0500 Da Rock 
[EMAIL PROTECTED] wrote:




I'm really about to throw this damn server through a closed window (or
better yet a brick wall). I've searched high and low on google for a
straight answer, and any references in mailing lists give an answer of
read the INSTALL file (as if thats supposed to solve everything).

I have virtual users for email in postfix, and I want to use maildrop to
deliver to the virtual mailboxes. Problem is, when it does use maildrop
it shows an error in the logs as the subject line says.

I've tried everything, checked everything. That supposed magic solution
in the INSTALL file says only ONE thing needs to be set to get it to
work. Maildrop is owned by root and group is mail. The socket is rwx
globally (all this is set by the port install). The executing user for
pipe in postfix is vmail.

I've installed the port with authlib and gdbm (even manually adjusted
the makefile to ensure --enable-userdb). Nada.

The generally consensus is that it should work out of the box- so what
the hell am I doing wrong? Where should I be looking? Specifically: what
is not authenticating? I can manually test maildrop ok. So wtf?

You'll have to excuse my language here- I'm not sure how much hair I
have left after working on this for several days...



What you should be doing is posting this to the postfix users list where people 
like Wietse Venema, the developer of Postfix, can answer your questions and 
help you solve your problem.  Seriously.  Sebatian and others there have a 
tremendous amount of experience with Postfix and will be much more help to you 
than most people here.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: uptime 2 years!

2008-10-09 Thread Paul Schmehl
--On Thursday, October 09, 2008 09:34:02 -0500 Jerry McAllister 
[EMAIL PROTECTED] wrote:




On Thu, Oct 09, 2008 at 07:07:31AM -0700, Chad Marshall wrote:



 Sorry to bother you...You know, you could just leave well enough
alone if you don't care. There goes any future donations from me and
my organization as this is more than the first untactful email I
recieved from this, I'll donate and use other platforms. Please don't
send any other emails



Kind of touchy, wouldn't you think?
People are giving you some perspective.
Well, anyway, you have the choice of using a superior system
or let scratchy responses lead you to something less suitable.



When I was a young boy, I went on vacation with my family to a lake in upper 
Minnesota.  (My mother's ancestral home.)  The weather was beautiful, the water 
was warm and inviting, the swimming was thoroughly enjoyable and the cabin we 
stayed in was luxurious (by the standards of a little boy.)


However, my mother said something to me that mad me angry.  To punish her, I 
stomped off in a huff and spent the remainder of the vacation scowling in the 
cabin.  I refused to swim until she corrected the perceived injustice. 
Needless to say, my punishment caused me a great deal more consternation than 
it did her, or my siblings who were all happily enjoying the water and the 
boating and the entire lovely vacation while I fumed in the cabin.


Self-inflicted wounds are often the most painful of all.

--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Mailman + Apache + Cookies + FreeBSD

2008-10-09 Thread Paul Schmehl
--On October 9, 2008 7:58:49 PM -0500 Grant Peel [EMAIL PROTECTED] 
wrote:




Jerry,

I tried a few times to build it from source but since I am using
Apache+Suexec, I was stuck on how to 'make' it and pass the parms needed
to
set the user and home directory, i.e. I needed the install directory to
be
set to /home/mailmain when the ports version insisted on setting it to
/usr/local/mailman.


cd /usr/ports/mail/mailman

make install PREFIX=/home clean

Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Re Apache + Mailman

2008-10-09 Thread Paul Schmehl
--On October 9, 2008 9:02:20 PM -0500 Grant Peel [EMAIL PROTECTED] 
wrote:




Cool Paul,

How about the rest of these:

'--prefix=/home/mailman'
'--with-username=mailman'
'--with-mail-gid=mailman'
'--with-cgi-gid=mailman'



You can do it that way, but the port has an OPTION for Postfix that will 
set mail-gid to mailman and username is set to mailman by default.  So the 
only one you really need to set is cgi-gid, which is www by default.


I used to use /usr/local/etc/pkgtools.conf to define those values to keep 
from having to remember them on the commandline every time I portupgraded 
mailman, but that hasn't been necessary in a while.



And do you think it would make a difference to the cookies issue I am
having?



I'm not sure, but as a port maintainer, I can tell you that a great deal 
of effort goes into ensuring that the ports work as expected.  They are 
thoroughly tested, and the committers are very conscientious about getting 
errors fixed before the ports are committed.


I would deinstall what you have, install the port and then see if the 
issue still remains.  If it does, we can work on figuring out what the 
problem is at that point.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: uptime 2 years!

2008-10-08 Thread Paul Schmehl
--On Wednesday, October 08, 2008 10:54:47 -0500 Chad Marshall 
[EMAIL PROTECTED] wrote:





Hello,

Would like to share a success story which I'm sure you've had in the
past but one of my servers running FreeBSD will have an uptime of 2
years tomorrow. I plan on putting on my blog but as it doesn't have
much reach but wanted to share with you since your community has made
this possible. Please indicate where I could post this to have a bit
more reach or if you'd like to put a link to my blog, I'd be more than
happy to provide that.



All this means is that you haven't applied any security patches in the past two 
years.  I don't think it would be wise to advertise that fact on the internet.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: bash script on FreeBSD

2008-10-08 Thread Paul Schmehl
--On Wednesday, October 08, 2008 14:16:02 -0500 Giorgos Keramidas 
[EMAIL PROTECTED] wrote:




On Wed, 08 Oct 2008 12:11:40 +0700, Kalpin Erlangga Silaen
[EMAIL PROTECTED] wrote:

Dear all,

I am going to extract field username and UID from /etc/passwd and
passed into some scripts.  Let say I got line

admin 100
admin2 200
admin3 300
admin4 400

and then I want to echoing into screen:

admin has uid 100
admin2 has uid 200
admin3 has uid 300
admin4 has uid 400

How do I make this with bash script?


You don't really need bash for this.

Here's a sample awk script that should work:

% cat -n /tmp/userlist.awk
 1  #!/usr/bin/awk -f
 2
 3  {
 4  print $1,has uid,$2;
 5  }
% chmod 0755 /tmp/userlist.awk
% cat /tmp/user-data
admin 100
admin2 200
admin3 300
admin4 400
% /tmp/userlist.awk  /tmp/user-data
admin has uid 100
admin2 has uid 200
admin3 has uid 300
admin4 has uid 400
%


Sure, but why use an elephant to swat a flea when

awk 'FS=:; {print $1 has uid $3}' /etc/passwd | sort -k 4 -n

works fine and returns the accounts in numerical order?

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

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


Re: Best way to back up mysql database

2008-09-30 Thread Paul Schmehl
--On September 30, 2008 6:18:35 PM -0400 John Almberg 
[EMAIL PROTECTED] wrote:



First, I wanted to say how great this list is. I'm a newbie FreeBSD
admin and, besides the Handbook and Absolute FreeBSD (which never
seems to leave my desk), this list is the best resource I have.

I just had a huge scare today... One of the websites on my server uses a
large Mysql database. Somehow, one of the tables got corrupted today.

I have been blithely backing up mysql with a simple cron script that ran
mysqldump every night. Simple, reliable, and I've never needed it.

Today, when I realized the database was corrupted, I scrambled for my
backup, and realized that if I hadn't caught the problem today, tomorrow
my backup would have been overwritten, and I would have been... well,
not a happy camper.

Again, I have run into a problem which is stupidly obvious to
experienced admins, I'm sure. I want to slap myself, but don't have
time. I'll do that after I have a better backup system in place.

I am just about to dive into Google in search of a solution, but thought
I would fire off a quick request, in case there is an obvious solution
that everyone uses. If there is, a name or URL will do. I'll figure out
the rest.

Any hints much appreciated. Not going home until this is fixed...


Found this on the mysql documentation site:

#!/bin/sh
date=`date -I`
mysqldump --opt --all-databases | bzip2 -c

/var/backup/databasebackup-$date.sql.bz2


The date must be something from linux, but you can do it like this in FSBD:

#!/bin/sh
date=`date +%Y-%m-%d.%H:%M:%S`
mysqldump --opt --all-databases | bzip2 -c

/var/backup/databasebackup-$date.sql.bz2


Using this makes every dump uniquely named, even if you run several a day, 
so you would need to edit newsyslog.conf to rotate the dumps after a 
number of dumps that you choose so you don't keep writing dumps until the 
hard drive is full.


Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying


Re: Need to ( re-chown /etc )

2008-09-30 Thread Paul Schmehl
--On September 30, 2008 6:57:20 PM -0700 Mike Price [EMAIL PROTECTED] 
wrote:



I needed to edit the /etc/pf.conf so I accidentally typed: chown -r /etc
Can someone please help me with a command to change /etc back to the way
it was?


If that is literally the command you typed, you should have gotten an 
error message, and nothing should have been changed.  Chown requires at 
least one identifier (uid) before it will work.


Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying


Re: GCC Compliler

2008-09-17 Thread Paul A. Procacci

Dean Huffaker wrote:
I need to compile a c module called camerad.  I have a makefile that is suppose to be used to perform this compile job.  Problem is that I get an error and I don't understand exactly what the problem is.  Here is the execution of the makefile with the error and then I did a cat on the makefile itself.  
 
CameraMgr2# ./makefile

camerad.o:: not found
CameraMgr2# cat makefile
camerad : camerad.o ../shared/util.o
gcc -o camerad camerad.o ../shared/util.o

camerad.o: camerad.c camerad.h ../shared/util.h
gcc -I../shared -c camerad.c
 
 
The first part of the makefile makes sense to me.  Create a camerad using camera.o and stuff from .shared/util.o

camerad : camerad.o ../shared/util.o
gcc -o camerad camerad.o ../shared/util.o
 
And that part works fine.  If I just run those two statements it works OK.  
 
But the second part does not make sense. and It gets the error camerad.o not found.

camerad.o: camerad.c camerad.h ../shared/util.h
gcc -I../shared -c camerad.c  
 
 
Any idea what might be going on?



  
___

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

Try using the make utility.

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


Re: Is the freesbie project dead????????

2008-09-11 Thread Paul Schmehl
--On September 12, 2008 10:56:47 AM +0800 FBSD1 [EMAIL PROTECTED] 
wrote:



I can't reach http://www.freesbie.org/ to official site for the project.

Has this project disbanded?



That does not appear to be the case.  Whois still shows the domain as 
active.  Dig still resolves the host.  And traceroutes show the host as 
still reachable from *some* locations in the world.  (See geektools.com) 
It appears to be a partial outage affected by whatever route you happen to 
take.


Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying


Re: Why the extra shells?

2008-09-10 Thread Paul Chvostek
Hi John,

On Mon, Sep 01, 2008 at 08:43:49AM -0400, John Almberg wrote:
 
 This is my main concern at the moment... I am wondering if I killed  
 off an essential process when I killed off those shells...

Probably not.  Your `ps` output was:

  [on:~] ps
PID  TT  STAT  TIME COMMAND
  30350  p0  Ss 0:00.03 -bash (bash)
  30761  p0  R+ 0:00.00 ps
  99069  p1  Is+0:00.01 /usr/local/bin/bash
  79966  p3  Is 0:00.01 /usr/local/bin/bash
  27050  p4  Is+0:00.01 /usr/local/bin/bash
  45342  p5  Is+0:00.01 /usr/local/bin/bash

The fact that your shells all have a small TIME column indicates that
they're not very active.  This is a good thing.

The I under STAT means it's an idle process, and the fact that it's
attached to a tty means it was started on a terminal.  The ones with a
+ are foreground processes on their ttys.  I'd guess that these could
be shells processes that were never killed off when their terminals were
closed, but you can find out a little more about them, once you get some
more of them showing up.

`ps Olstart` will show you the date/time that a process was started.
You can compare this to the output of `last` to see if the dates and
ttys match up with your logins.

If they don't match up, they're probably not login shells, and more
investigation is required, possibly by using things like `ps uwwtp1` for
the shell on p1.  This will give you ALL the processes on that TTY,
including anything that might have been launched by bash (and therefore
possibly subject to a HUP sent by the shell as you kill it).

p

-- 
  Paul Chvostek [EMAIL PROTECTED]
  it.canadahttp://www.it.ca/

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


cvsup.uk.freebsd.org down

2008-09-08 Thread Paul Macdonald


I just noticed this cvs server is down

I've switched to cvsup2 which seems fine  for now, I presume any updates 
to 2 are not dependent on cvsup.uk.freebsd being up?


thanks
Paul.


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


Re: Sendmail become open relay

2008-09-08 Thread Paul Macdonald


This might be more general advice than a specific help, but i've found 
most bad mail originating from me comes from php driven forum sites.
After originally patching the php src to log sitenames that send mail, i 
found enabling MAILHEAD support in php build adds customs headers which 
help to identify the site anyway.


I plan on adding a milter to pick these up dynamically, but for now, it 
helps identify sites from stuck items in mailq.


i.e a grep into mailq  for X-PHP-Script

/var/spool/mqueue/qfm83AltWj045560:H??X-PHP-Script: 
www.siteonserver.com/signup.php for x.101.27.178


Its easy to spot dubious scripts as the ip is commonly the same.

gd luck.
Paul.

lyd mc wrote:

Hi guys need help..

My mailserver become an open relay.

Unknown user can now send mail.

snippet from mailq

m88C8iWq042874  689 Mon Sep  8 20:08 [EMAIL PROTECTED]
 (Deferred: Name server: mx1.mail.tw.yahoo.com.: host name loo)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

I don't  have user 'osxch' and there others can also send..


best regars thnx

alydio




  
___

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


--

http://www.ifdnrg.com   *Ultra fast and secure web hosting
Live and on demand video streaming
Custom online Solutions *

*Paul Macdonald*
Director
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.ifdnrg.com http://www.ifdnrg.com

*IFDNRG*
127 Rose St South Lane, Edinburgh, EH2 4BB
0044.(0)131.2257470



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


Re: mail server DNS configuration questions

2008-09-06 Thread Paul Schmehl
--On September 6, 2008 7:28:28 PM -0600 Andrew Falanga 
[EMAIL PROTECTED] wrote:



Hi,

Well, my clients at church are still having issues and after working
with  George, a respondant to my original questions, I think that most,
if not all,  of my problems are related to DNS and how we've got it
improperly configured.

First, a crude drawing of how our mail server exists in the world:

192.168.2.x/24   72.24.23.252  lot's of networks
Private Network -- CableOne -- Internet

Now, our mail server's IP is 192.168.2.23.  On the router, he (the
person at  whose house the mail server is) has IP forwarding setup so
that mail get's  sent to our FreeBSD machine.  Using dig, here's the
responses:



The 192.168.0.0/24 network is an IANA reserved network and **does not 
route** on the internet.  You can send mail but you'll never be able to 
receive any.  In order for you to receive email to that server, whatever 
device you've got in front of it (dsl router, for example) must be 
configured to hard code port 25 to your mail server so that all incoming 
mail to the public IP (72.24.23.252) will always go to the 192.168.2.23 
address, which is the actual address of the mail server.


Some mail servers will not receive mail if the IP of the mail server 
doesn't reverse.  Yours does, so that shouldn't be a problem, *however* if 
they also try to talk to your mail server to verify that it's actually a 
mail server that will fail if you don't have port 25 hard coded.


You don't say what the issues that you're having are, so that's my best 
guess about what's wrong.


Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying


network documentation

2008-09-04 Thread Jean-Paul Natola
Hi all,

I'm looking for an Open source application that will gather network data, and
let me add info to it -

e.g.   nodes/mac address / ip address / os , which I will be able to add to;
for example

192.168.10.4 freebsd mac address- 
then I will be able to add: mail filter server, running bsd/ exim /clam-
PIV box  mirrored 80 gig drives-root password  and so fourth



tia













Jean-Paul 

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


Re: Cron Question

2008-09-02 Thread Paul Schmehl
--On September 2, 2008 6:03:51 PM +0200 Albert Shih [EMAIL PROTECTED] 
wrote:



 Le 02/09/2008 à 08:45:52-0700, ElihuJ a écrit


Hi all. I have a question about cron jobs that seem to be running to
long or with multiple copies of itself. For example, I have a backup
script that I run that seems to make multiple copies of itself. If I
view the running processes I see numerous instances of the same cron
job. Is there something I can do to limit this from happening? When it
does, it drains my CPU and some of my other processes are non
responsive. Any help would be appreciated. Thank you.


That's not the to cron to do that.


Actually, it could be.  If the script is started by cron and is still 
running when the next job is scheduled, cron will start another process. 
If they're both still running when the next job is scheduled, you'll have 
three processes running, etc., etc.


The first thing I would do is run the script manually and see how long it 
takes to complete.  Then set your cron jobs up to run with enough time 
between them for the script to complete and exit before the next job 
starts.



Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying


Re: Formatting dates to a specific pattern

2008-08-30 Thread Paul Schmehl
--On August 31, 2008 2:52:07 AM +0300 Ivan \Rambius\ Ivanov 
[EMAIL PROTECTED] wrote:



Hello,

I need to format the current date (as returned by date(1) ) to the
pattern m-d-, where m is the month in one or digits, d is the day
in one or two digits, and  is the year in four digits. The problem
for me is the day and the month, for example August should be 8, and
not 08, and 5th of September should be 9-5-2008 and not 09-05-2008. I
read the man page of date(1) but date(1) seems to always put leading
zeros.

I appreciate any help on how to format the date the way I want.



# date +%m-%d-%Y | sed 's/^0//g'
8-30-2008

Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying


General Mysql Performance Question

2008-08-29 Thread Paul A. Procacci

Hey All,

Recently I've been asked to do performance testing of postgres and mysql 
on FreeBSD.  Kris' page 
(http://people.freebsd.org/~kris/scaling/mysql.html) was extremely 
useful in giving me a starting point for my own comparisons.  
Additionally, his name is splattered all over the web with patches, 
tuning tips, etc.  For that, I thank you Kris.  With that said, I've 
come across something that I can not find the answer to and I'm hoping I 
have missed something incredibly simple.  If this has been mentioned 
before, then I apologize in advance.


http://paul.procacci.me/benchmarks/freebsd7-Release.html

My question is in reference to the 1st and 2nd graphs on this page.  
While testing the performance of the databases given in this graph, the 
one thing that sticks out is that when Mysql uses the myisam engine with 
the ULE schedular, performance drops quite considerably regardless of 
mysql version.  The clearly shows ULE to perform worst at higher work 
loads than 4BSD, at least in this one example.


Now, I read that lockmgr code is still a work in progress, but I'm 
unsure if that applies specifically to this specific problem that I'm 
providing.  What I'm hoping for quite frankly is a yes, this is 
because type of response.


This isn't a problem per se, but rather a curiosity type of question.

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


Re: General Mysql Performance Question

2008-08-29 Thread Paul A. Procacci

Kris Kennaway wrote:

Paul A. Procacci wrote:
My question is in reference to the 1st and 2nd graphs on this page.  
While testing the performance of the databases given in this graph, 
the one thing that sticks out is that when Mysql uses the myisam 
engine with the ULE schedular, performance drops quite considerably 
regardless of mysql version.  The clearly shows ULE to perform worst 
at higher work loads than 4BSD, at least in this one example.


Now, I read that lockmgr code is still a work in progress, but I'm 
unsure if that applies specifically to this specific problem that I'm 
providing.  What I'm hoping for quite frankly is a yes, this is 
because type of response.


This isn't a problem per se, but rather a curiosity type of question.


myisam has huge lock contention, so probably ULE is more efficiently 
scheduling the processes and increasing contention yet further, 
leading to a net drop of performance.  That kind of thing is fairly 
common when you have a workload with high contention; if you improve 
performance at one bottleneck the performance at a later bottleneck 
can get worse. Performance will still be better on other workloads, or 
when further work improves the other bottlenecks.


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


Kris,

Thanks for your prompt response.  I was aware that myisam had pretty 
huge lock contention, but didn't think ULE, because it's doing it's job 
better, is actually making things worse.


I appreciate your insight.

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


Re: Mysql Performance Question 4.1.22 vs 5.1.26.rc

2008-08-29 Thread Paul A. Procacci

Jim Pazarena wrote:

I changed from 4.1.22 to 5.1.26.rc and my performance in a very busy db,
tanked!

could the use of an 'rc' possibly be my issue?

is there any chance that the 'rc' has debugging enabled which is 
slowing me down?

Hello,

I've ran some tests just this past week (in fact I emailed 
freebsd-general about this yesterday), unfortunately however it was 
comparing performance between 5.0.51 and 5.1.26.


http://paul.procacci.me/benchmarks/freebsd7-Release.html

5.1 performs worse than 5.0 at higher workloads.  I'm unsure about 4, 
but am quite sure moving to 5.0 is probably the best decision you could 
make.


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


Re: Where is wrong with tcpdump?

2008-08-28 Thread Paul A. Procacci
EdwardKing wrote:
 I want to watch ip:172.0.10.2 port:19 TCP information,so I use following 
 command:
 #tcpdump tcp port 19 host 172.0.10.2
 tcpdump: syntax error

 Why? How to do it?

 Thanks


 --
 Confidentiality Notice: The information contained in this e-mail and any
 accompanying attachment(s) is intended only for the use of the intended
 recipient and may be confidential and/or privileged of Neusoft Corporation, 
 its subsidiaries and/or its affiliates. If any reader of this communication 
 is not the intended recipient, unauthorized use, forwarding, printing, 
 storing, disclosure or copying is strictly prohibited, and may be unlawful. 
 If you have received this communication in error, please immediately notify 
 the sender by return e-mail, and delete the original message and all copies 
 from your system. Thank you. 
 ---

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
   
tcpdump tcp port 19 and host 172.0.10.2

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


Re: Tailing logs

2008-08-27 Thread Paul Chvostek

On Fri, Aug 22, 2008 at 10:28:33AM -0400, DAve wrote:

 I would love to have a way to tail a log, like piping to grep, except I
 see every line and the lines I would normally grep for are highlighted.
 That would be cool. Anyone know of a bash command or tool that will do this?

I use tcsh as my shell.  The following alias works nicely for me in
xterm, but would have to be adjusted for anything else:

  alias highlight 'sed -E '\''s/\!:*/^[[1m^[[0m/g'\'''

Replace ^[ with an escape character, twice.  Put it in your .tcshrc if
you like.  YMMV.

 Side note, I am tailing sendmail after changes to my outbound queue
 runners. I want to highlight my sm-mta-out lines but still see all lines.

Right, I do very similar stuff.  You'd use this like:

  tail -F /var/log/maillog | highlight .*sm-mta-out.*

Quotes seem to confound this alias.  I haven't bothered to fix that; as
long as what you're searching for doesn't glob a file, you should be
fine without quotes.

You can also do more complex things in either sed or awk, colour-coding
individual pattern matches.  Here's one in awk that I use to highlight
the activity of milter-greylist:

  #!/usr/bin/awk -f
  BEGIN {
red=^[[31m; green=^[[32m;
yellow=^[[33m;  blue=^[[34m;
norm=^[[0m;
fmt=%s%s%s\n;
  }
  /autowhitelisted/ { printf(fmt, green, $0, norm); next; }
  /delayed for/ { printf(fmt, yellow, $0, norm); next; }
  # /skipping greylist/ { printf(fmt, blue, $0, norm); next; }
  { print; }

Same deal with the ^[.

Enjoy.

p

-- 
  Paul Chvostek [EMAIL PROTECTED]
  it.canadahttp://www.it.ca/

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


Re: Regular Expression Trouble

2008-08-27 Thread Paul Chvostek
Hi Martin.

On Wed, Aug 27, 2008 at 08:25:02AM -0500, Martin McCormick wrote:
 
 Aug 26 20:45:36 dh1 dhcpd: DHCPACK on 10.198.67.116 to 00:12:f0:88:97:d6
 (peaster-laptop) via 10.198.71.246 
 
 That was one line broken to aid in emailing, but that's what
 types of lines are involved. The MAC appears at different field
 locations depending on the type of event being logged so awk is
 perfect for certain types of lines, but it misses others and no
 one awk expression gets them all.

While I agree with others that awk should be used with explicit
recognition of the particular lines, you can still snatch everything
with sed if you want to.  In FreeBSD, sed supported extended regex, so:

sed -nE 's/.*([0-9a-f]{2}(:[0-9a-f]{2}){5}).*/\1/p'

The -n option tells sed not to print the line unless instructed to
explicitely, and the p modifier at the end is that instruction.  As
for the regex ... well, that's straightforward enough.

   This is an attempt to isolate every MAC address that
 appears and then sort and count them to see who is having
 trouble or, in some cases, is causing trouble.

Then you still may want to use awk for some of that...

cat /var/log/dhcpd.log | \
sed -nE 's/.*([0-9a-f]{2}(:[0-9a-f]{2}){5}).*/\1/p' | \
awk '
 { a[$1]++; }
 END {
  for(i in a){
   printf(%7.0f\t%s\n, a[i], i);
  }
 }
' | sort -nr

You can join the lines into a single command line if you like, or toss
it as-is into a tiny shell script.  Awk is forgiving about whitespace.

You should theoretically be able to feed the same regex to awk, but I've
found that awk's eregex support sometimes doesn't work as I'd expect.

Hope this helps.

p

-- 
  Paul Chvostek [EMAIL PROTECTED]
  it.canadahttp://www.it.ca/

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


Re: Regular Expression Trouble

2008-08-26 Thread Paul A. Procacci

Martin McCormick wrote:

I am trying to isolate only the MAC addresses that appear in
dhcpd logs.
For anyone who is interested, the sed construct that should do
this looks like:

 sed 's/.*\([[ your regular expression ]]\).*/\1/' 


The \1 tells sed to only print what matched and skip all the rest.

I am doing something wrong with the regular expression
that is supposed to recognise a MAC address. MAC addresses look
like 5 pairs of hex digits followed by :'s and then a 6TH pair
to end the string.

I have tried:

[[:xdigit:][:xdigit:][:punct:]

Sorry. It won't all fit on a line, but there should be a string
of 5 pairs and the : and then the 6TH pair followed by the
closing ] so the expression ends with ]]

One should also be able to put:

[[:xdigit:][:xdigit:][:punct:]]\{5,5\}[[:xdigit:][:xdigit]]

Any ideas as to what else I can try?

What happens is I get single characters per line that look like
the first or maybe the last character in that line, but
certainly nothing useful or nothing that remotely looks like a
MAC address.

Any ideas as to what's wrong with the regular
expression?

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 [EMAIL PROTECTED]
  


I don't have a seperate dhcp log and you didn't make it clear if you do, 
but I do have something similar written for awk that parses the system 
log file.


awk ' /DHCPREQUEST/ { print $10 } '  /var/log/messages

Maybe that will help.

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


Re: sed html tags

2008-08-25 Thread Paul A. Procacci

siran wrote:

Hi, I have the string

span  111 /span  span   /span

And i wish to use sed to strip *only* the span  tag and its
contents... is this possible ? I'm trying this expression, but it
doesn't work...

sed 's/span [^\(/span\)]+\/span//g' file

is there anything like it ?

I would like to obtain





I hope someone can help,

thank you,

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

sed -E 's/\/?span[^]*//g'

Myabe that's what you want?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


OT: Clamd error

2008-08-21 Thread Jean-Paul Natola
Hi all,

Sorry for cross-posting but it seams that the members from the other list
went on vacation- and I'm in a jam

I run  exim 4.69 clamav .93 and spamassassin on a freebsd box  - basically it
gets my smtp traffic, checks for spam virus etc,, then forwards it to my
mailserver- 

Suddenly last night it stopped working , I check the paniclog and all I see
is

2008-08-21 09:44:26 1KWASY-EF-PB malware acl condition: clamd: unable to
connect to UNIX socket /var/run/clamav/clamd (No such file or directory)
2008-08-21 09:44:34 1KWASh-EZ-Pq malware acl condition: clamd: unable to
connect to UNIX socket /var/run/clamav/clamd (No such file or directory)
2008-08-21 09:45:09 1KWARf-EG-En malware acl condition: clamd: unable to
connect to UNIX socket /var/run/clamav/clamd (No such file or directory)
2008-08-21 09:45:38 1KWATZ-EG-9e malware acl condition: clamd: unable to
connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 

I unistalled clamav 
make deinstall

Then  make clean

Then make install clean


And I still get the same errors- the weird part is that when I do top
clamd IS running-

22089 clamav  1   40 62132K 61616K accept   0:00  0.00% clamd

Any help would be greatly appreciated as im rerouting my mail now- and
getting bombarded with spam


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


Re: /etc/groups gone

2008-08-21 Thread Paul A. Procacci

John Nielsen wrote:
I would start by comparing the contents of /usr/ports/GIDs with the ports 
you have installed (as listed in /var/db/pkg). You can get a stock group 
file from src/etc/group. Reinstalling ports will recreate the groups they 
use (though you could do most of it manually), and you may be on your own 
for any custom groups you have.


On Thursday 21 August 2008 12:05:49 pm [EMAIL PROTECTED] wrote:
  

Hi,

Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm
instead of vi, was already sleepying). Luckily only a few groups (2-3)
was created earlier. No backup, of course.

I believe the file system is still correct, it uses group IDs instead
of names (?). Though ls does not show the correct group names (only
IDs) and creating new groups will reuse the old group IDs.

Is there any better way of rebuilding /etc/groups than guessing and
manually adding one-by-one.

Can I somehow list all group IDs used by the file system?

Many thanks.

Balazs
_
News, entertainment and everything you care about at Live.com. Get it
now! http://www.live.com/getstarted.aspx
___
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]
  
/var/backups might have various backups of those important files.  
Might want to tcheck that out.

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


RE: OT: Clamd error

2008-08-21 Thread Jean-Paul Natola

Jean-Paul Natola wrote:
 Hi all,
 
 Sorry for cross-posting but it seams that the members from the other list
 went on vacation- and I'm in a jam
 
 I run  exim 4.69 clamav .93 and spamassassin on a freebsd box  - basically
it
 gets my smtp traffic, checks for spam virus etc,, then forwards it to my
 mailserver- 
 
 Suddenly last night it stopped working , I check the paniclog and all I see
 is
 
 2008-08-21 09:44:26 1KWASY-EF-PB malware acl condition: clamd: unable
to
 connect to UNIX socket /var/run/clamav/clamd (No such file or directory)
 2008-08-21 09:44:34 1KWASh-EZ-Pq malware acl condition: clamd: unable
to
 connect to UNIX socket /var/run/clamav/clamd (No such file or directory)
 2008-08-21 09:45:09 1KWARf-EG-En malware acl condition: clamd: unable
to
 connect to UNIX socket /var/run/clamav/clamd (No such file or directory)
 2008-08-21 09:45:38 1KWATZ-EG-9e malware acl condition: clamd: unable
to
 connect to UNIX socket /var/run/clamav/clamd (No such file or directory) 
 

its now /var/run/clamav/clamd.sock  you may wish to update your exim 
config file.
-
That was it - thank you-


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


Re: Still, no-joy with kdm......

2008-08-19 Thread Paul Schmehl
--On Monday, August 18, 2008 16:43:23 -0700 Gary Kline [EMAIL PROTECTED] 
wrote:




Guys,

Im looking at the kdmrc file but don't see anything wrong.
Any ideas where to llook next?


I use kde every day, and I don't have a kdmrc file.

You can start kde several ways.  One way is to login as root and type kdm at 
the prompt.  Another is to edit /etc/ttys the way the Handbook describes.  (You 
can read that yourself.)  Another way is to use an xinitrc file.  (That's in 
the Handbook as well.)


The reason kdm can't create its pid file is most likely because you're trying 
to start it under your account instead of root.




gary

PS: what is the startup for exec'ing gnome??


echo 'gnome_enable=YES'  /etc/rc.conf

That's in the Handbook as well.

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

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


Re: PERL plumbers?

2008-08-18 Thread Paul Schmehl
--On Monday, August 18, 2008 13:23:43 -0500 Len Conrad [EMAIL PROTECTED] 
wrote:



fbsd 4.11

perl 5.8.8 installed by pkg_add

postgrey 1.32

use.perl port

This machine has been running great for a week.  Monday morning, postgrey was
stoppedand wouldn't start.

syslog:

Aug 18 14:20:35 mx1 postgrey[73387]: FATAL: ERROR: can't create DB
environment: No such file or directory (dbdir: /var/db/postgrey uid/gid:
1003,1003)

user:group 1003:1003 is postgrey:postgrey

but:

ll /var/db/postgrey/
total 1078288
-rw---  1 postgrey  postgrey  -   10485684 Aug  8 01:06 log.01
-rw---  1 postgrey  postgrey  - 1082490880 Aug 17 08:36 postgrey.db
-rw---  1 postgrey  postgrey  -  0 Dec  8  2006 postgrey.lock
-rw---  1 postgrey  postgrey  -   10862592 Aug 17 08:36
postgrey_clients.db

It seems that some PERL path has gone wrong

strace postgrey --inet=10023

.. show a lot of file open failures.

open(/usr/local/lib/perl5/site_perl/5.8.5/mach/Sys/Syslog.pm, O_RDONLY) =
-1 ENOENT (No such file or directory)

mx1# find /usr/local -iname Syslog.pm
/usr/local/lib/perl5/5.8.2/mach/Sys/Syslog.pm
/usr/local/lib/perl5/site_perl/5.8.2/mach/Unix/Syslog.pm
/usr/local/lib/perl5/5.8.5/mach/Sys/Syslog.pm

mx1# find /usr/local -iname FileHandle.pm
/usr/local/lib/perl5/5.8.2/FileHandle.pm
/usr/local/lib/perl5/5.8.5/FileHandle.pm


For an earlier, similar problem on this machine, we were advised to make this
link,

mx1# ll /usr/bin/perl
lrwxr-xr-x  1 root  wheel  - 19 Aug 18 06:14 /usr/bin/perl@ -
/usr/local/bin/perl



Whoever gave you this advice was wrong.  A symlink should already exist for 
perl:

# ls -lsa /usr/bin/perl
0 lrwxr-xr-x  1 root  wheel  24 Feb 20 12:23 /usr/bin/perl - 
/usr/local/bin/perl5.8.8


Note that it doesn't point to /usr/local/bin/perl


How do I tell PERL and PERL apps where to find the stuff?



@INC

Try running the perl-after-upgrade script:
# which perl-after-upgrade
/usr/local/bin/perl-after-upgrade

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

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


How to use dig with an ip list

2008-08-18 Thread Paul Schmehl
I know I'm missing the obvious.  I want to use an IP list to generate an 
ip+hostname list.  IOW, I want to go from this:


x.x.x.x
y.y.y.y

to this;

x.x.x.x foo.domain.tld
y.y..y.y bar.domain.tld

What's the best/easiest way to do this?

Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: How to use dig with an ip list

2008-08-18 Thread Paul Schmehl
--On August 19, 2008 12:44:05 PM +1000 Fraser Tweedale [EMAIL PROTECTED] 
wrote:



On Mon, Aug 18, 2008 at 09:03:36PM -0500, Paul Schmehl wrote:

I know I'm missing the obvious.  I want to use an IP list to generate
an  ip+hostname list.  IOW, I want to go from this:

x.x.x.x
y.y.y.y

to this;

x.x.x.x foo.domain.tld
y.y..y.y bar.domain.tld

What's the best/easiest way to do this?

Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


dig(1) - see section `MULTIPLE QUERIES'
note the -x flag to instruct dig to perform a reverse lookup

see also host(1)



That's not a great deal of help.  I, of course, had read and re-read the 
man pages before posting the question here, and I'm quite familiar with 
the normal use of dig and host, because I use them daily in my work.


The two options that man (1) dig provides are; on the commandline and in a 
file.  I can easily generate a list of hostnames having constructed an 
iplist in a file and then preceding each line with dig +short -x IP 
using vi.  But that gives me a list of hostnames only.  What I'm looking 
for is the combination of the two. host (1), of course, doesn't even have 
*those* options, so it's of no use for accomplishing what I'm attempting.


Again, I want to start with a list of IPs and end up with a list of IPs 
*plus* their hostnames (on the same line).  I'm quite sure someone here 
has the experience and/or knowledge to do this using shell commands.  I 
suspect awk might be helpful but haven't yet investigated that angle.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


<    4   5   6   7   8   9   10   11   12   13   >