Re: Blocking undesirable domains using BIND

2007-12-28 Thread Erich Dollansky

Hi,

the guys seem to have some humour:

Linux/Unix/Mac OSX

Remove the extension and save this to your /etc directory.   Considering 
unix is a server-based OS with a complex permission structure you'll 
probably want to just append your hosts file instead of overwriting it.

OSX can use the hosts file, but copying it to /etc isn't enough.

When finished please empty out your cache and restart your browser or 
reboot your computer.


Erich

Rob wrote:


Then I found this site:  http://everythingisnt.com/hosts.html and put 
their list in hosts, and now client PCs get a squid error in place of ad 
junk.  Works ok for me ;)


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


Dovecot login and account issues

2007-12-28 Thread Andrew Falanga
Ok, there's something apparently not quite right in my understanding.  I have 
the following log entries in /var/log/maillog for a login attempt by a 
virtual user into my new dovecot system:

Dec 28 17:48:07 whitbap dovecot: pop3-login: Login: user=, 
method=PLAIN, rip=71.221.173.206, lip=192.168.2.23
Dec 28 17:48:07 whitbap dovecot: POP3(jdunkin): 
mkdir_parents(/var/mail/vmail//mail) failed: Not a directory
Dec 28 17:48:07 whitbap dovecot: POP3(jdunkin): Failed to create storage with 
data: mbox:/var/mail/vmail//mail/:INBOX=/var/mail/jdunkin
Dec 28 17:48:07 whitbap dovecot: child 34067 (pop3) returned error 89
Dec 28 17:48:52 whitbap dovecot: POP3(jdunkin): 
mkdir_parents(/var/mail/vmail//mail) failed: Not a directory
Dec 28 17:48:52 whitbap dovecot: POP3(jdunkin): Failed to create storage with 
data: mbox:/var/mail/vmail//mail/:INBOX=/var/mail/jdunkin
Dec 28 17:48:52 whitbap dovecot: child 34070 (pop3) returned error 89


Now, in my /usr/local/etc/dovecot.conf file I have this:

mail_location = mbox:~/mail/:INBOX=/var/mail/%u

Which seems to be correct.  Why then is dovecot trying to make a mail 
directory in /var/mail/vmail?  (vmail is the virtual user.)

Also, please assist in my understanding of this one.  I currently have (in 
dovecot.conf):

auto default {
mechanisms = plain digest-md5
# there is much other stuff here, I'm only adding what isn't commented
# hope it's relative

  passdb sql {
# Path for SQL configuration file, see doc/dovecot-sql-example.conf
args = /usr/local/etc/dovecot-sql.conf
  }

  userdb sql {
# Path for SQL configuration file, see doc/dovecot-sql-example.conf
args = /usr/local/etc/dovecot-sql.conf
  }

  user = vmail
}

What is the difference between digest-md5 and cram-md5?  I've read a  little 
bit about digest md5 from the dovecot wiki and it looks like the digest is 
supposed to be of a string like this (using one of my virtual users):

md5 -s [EMAIL PROTECTED]::pass

Is this true?  If so, when the users login, they'll send <[EMAIL PROTECTED]> as 
the user id?

If this isn't true (and this is how I currently have it configured), I simply 
made a hash as follows:

md5 -s 

And then inserted into my postgresql database a string in this format:

{PLAIN-MD5}

This isn't working so what did I do wrong?

Any help on resolving these two issues is greatly appreciated.

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


Re: Ekiga runs but hangs

2007-12-28 Thread Sergio Lenzi

Em Sex, 2007-12-28 às 12:17 +0100, [EMAIL PROTECTED] escreveu:

> Hello All,
> 
> is anyone using ekiga? ekiga runs and connects to [EMAIL PROTECTED] ( test 
> number ).
> 
> but when i hang up, or change volume using the ekiga-controls, the UI freezes.
> 
> #FreeBSD host 7.0-BETA2 FreeBSD 7.0-BETA2 #4
> 
> i would love to hear succes or failures.
> 
> regards,
> 
> usleep

it happens with me too. the problem is in the
module sound-oss in the pwlib 
the module that deals with oss (the freebsd sound system...) 
tries to resample the stream and than loops... consuming all the cpu.

the folowing patch solves the problem for me
name this file to patch-oss and put it in /usr/ports/devel/pwlib/files
and than... cd /usr/ports/devel/pwlib 
make clean deinstall package

=
--- plugins/sound_oss/sound_oss.cxx.orig
+++plugins/sound_oss/sound_oss.cxx  
@@ -565,7 +565,6 @@
 entry->bitsPerSample = mBitsPerSample   = _bitsPerSample;
 entry->isInitialised = FALSE;
 entry->fragmentValue = 0x7fff0008;
-entry->resampleRate  = 0;
   }

   // save the direction and device
@@ -602,7 +601,6 @@
   // do not re-initialise initialised devices
   if (entry.isInitialised) {
 PTRACE(6, "OSS\tSkipping setup for " << device << " as already
initialised");
-resampleRate = entry.resampleRate;
 
   } else {
 PTRACE(6, "OSS\tInitialising " << device << "(" << (void *)(&entry)
<< ")");
@@ -646,17 +644,6 @@
   arg = val = entry.sampleRate;
   if (ConvertOSError(::ioctl(os_handle, SNDCTL_DSP_SPEED,
&arg))) {
 stat = TRUE;
-
-// detect cases where the hardware can't do the actual rate
we need, but can do a simple multiple
-if (arg != (int)entry.sampleRate) {
-  if (((arg / entry.sampleRate) * entry.sampleRate) ==
(unsigned)arg) {
-PTRACE(3, "Resampling data at " << entry.sampleRate <<
" to match hardware rate of " << arg);
-resampleRate = entry.resampleRate = arg /
entry.sampleRate;
-  } else {
-PTRACE_IF(4, actualSampleRate != (unsigned)val, "Actual
sample rate selected is " << actualSampleRate << ", not " <<
entry.sampleRate);
-actualSampleRate = arg;
-  }
-}
   }
 }
   }
@@ -724,42 +711,10 @@
   if (!Setup() || os_handle < 0)
 return FALSE;
 
-  if (resampleRate == 0) {
-while (!ConvertOSError(::write(os_handle, (void *)buf, len))) 
-  if (GetErrorCode() != Interrupted)
-return FALSE;
-lastWriteCount += len;
-  }
-
-  else {
-// cut the data into 1K blocks and upsample it
-lastWriteCount = 0;
-BYTE resampleBuffer[1024];
-const BYTE * src= (const BYTE *)buf;
-const BYTE * srcEnd = src + len;
-while (src < srcEnd) {
-
-  // expand the data by the appropriate sample ratio
-  BYTE * dst = resampleBuffer;
-  const BYTE * srcStart = src;
-  unsigned j;
-   
-  while ((src < srcEnd) && (dst < (resampleBuffer +
sizeof(resampleBuffer) - resampleRate*2))) {
-for (j = 0; j < resampleRate; ++j) {
-  memcpy(dst, src, 2);
-  dst += 2 ;
-}
-src += 2;
-  }
-  lastWriteCount += src - srcStart;
-  while (!ConvertOSError(::write(os_handle, resampleBuffer, dst -
resampleBuffer))) {
-if (GetErrorCode() != Interrupted) 
-  return FALSE;
-  }
-}
-
-  }
-
+  while (!ConvertOSError(::write(os_handle, (void *)buf, len))) 
+if (GetErrorCode() != Interrupted)
+  return FALSE;
+  lastWriteCount += len;
   return TRUE;
 }
 
@@ -770,72 +725,26 @@
   if (!Setup() || os_handle < 0)
 return FALSE;
 
-  if (resampleRate == 0) {
-
-PINDEX total = 0;
-while (total < len) {
-  PINDEX bytes = 0;
-  while (!ConvertOSError(bytes = ::read(os_handle, (void
*)(((unsigned char *)buf) + total), len-total))) {
-if (GetErrorCode() != Interrupted) {
-  PTRACE(6, "OSS\tRead failed");
-  return FALSE;
-}
-PTRACE(6, "OSS\tRead interrupted");
-  }
-  total += bytes;
-  if (total != len)
-PTRACE(6, "OSS\tRead completed short - " << total << " vs " <<
len << ". Reading more data");
-}
-lastReadCount = total;
-  }
-
-  else {
-
-// downsample the data
-
-BYTE * dst= (BYTE *)buf;
-BYTE * dstEnd = dst + len;
-lastReadCount = 0;
-
-PBYTEArray resampleBuffer((1024 / resampleRate) * resampleRate);
-
-// downsample the data into 1K blocks 
-while (dst < dstEnd) {
-
-
-  // calculate number of source bytes needed to fill the buffer
-  PINDEX srcBytes = resampleRate * (dstEnd - dst);
-  PINDEX bytes;
-
-  {
-PINDEX bufLen = PMIN(resampleBuffer.GetSize(), srcBytes);
-while (!ConvertOSError(bytes = ::read(os_handle,
resampleBuffer.GetPointer(), bufLen))) {
-  if (GetErrorCode() != Interrupted) 
-ret

mixing uart and sio

2007-12-28 Thread Mike Tancsa
I am in a rather annoying situation of having one serial application 
not work well with the uart driver (null modem cable connects onboard 
serial ports to a machine I have no control over) and a GPRS device 
where the sio driver causes a constant stream of interrupt overflows



sio4: 109 more interrupt-level buffer overflows (total 109)
sio4: 109 more interrupt-level buffer overflows (total 218)
sio4: 109 more interrupt-level buffer overflows (total 327)
sio4: 109 more interrupt-level buffer overflows (total 436)
sio4: 109 more interrupt-level buffer overflows (total 545)
sio4: 109 more interrupt-level buffer overflows (total 654)
sio4: 109 more interrupt-level buffer overflows (total 763)


dev.sio.4.%desc: Sierra Wireless AC860
dev.sio.4.%driver: sio
dev.sio.4.%location: function=1
dev.sio.4.%pnpinfo: manufacturer=0x0192 product=0x0710 
cisvendor="Sierra Wireless" cisproduct="AC860" function_type=2


Attaching even at 9600 on this card, shows half of the chars are 
missed.  However, with the uart driver, it works.  The one small 
problem is that until I open the device, there is an interrupt storm 
on it.  But after that, it works perfectly.


e.g. attaching with sio shows the output of ati3 cut off

# cu -l /dev/cuad4
Connected
atz
OK
ati3
Manufacturer: Sierra Wireless, Inc.
Model: AC860
Revision: U1_1_29ACAP G:/WORKSPACES/FIRMWARE/U1_1_29ACAP/MSM6275/SRC 
2006/02/20 20:16:52

IMEI: 357806002095833
FSN: X172096078612
3GPP Release 5
+GCAP:atz
OK
ati3
Manufacturer: Sierra Wireless, Inc.
Model: AC860
Revision: U1_1_29ACAP G:/WORKSPACES/FIRMWARE/U1_1_29ACAP/MSM6275/SRC 2006/



vs

# cu -l /dev/cuau0
Connected
atz
OK
ati3
Manufacturer: Sierra Wireless, Inc.
Model: AC860
Revision: U1_1_29ACAP G:/WORKSPACES/FIRMWARE/U1_1_29ACAP/MSM6275/SRC 
2006/02/20 20:16:52

IMEI: 357806002095833
FSN: X172096078612
3GPP Release 5
+GCAP: +CGSM,+FCLASS,+DS







# vmstat -i
interrupt  total   rate
irq0: clk 287563995
irq3: sio1 1  0
irq4: sio0   307  1
irq5: vr1  1  0
irq7:  2  0
stray irq7 2  0
irq8: rtc  36840127
irq10: cbb0 sio4  59  0
irq11: vr0  3822 13
irq14: ata034495119
irq15: ata1 ohci0+ 2  0
Total 363094   1256

# vmstat -i
interrupt  total   rate
irq0: clk  89881987
irq5: vr1  1  0
irq7:  1  0
stray irq7 1  0
irq8: rtc  11504126
irq10: cbb0 uart0  44275486
irq11: vr0   695  7
irq14: ata021145232
irq15: ata1 ohci0+ 2  0
Total 167505   1840


cbb0:  mem 0xa0005000-0xa0005fff irq 10 at device 
14.0 on pci0

cardbus0:  on cbb0
pccard0: <16-bit PCCard bus> on cbb0
isab0:  at device 20.0 on pci0
isa0:  on isab0
atapci0:  port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0

ata0:  on atapci0
ata1:  on atapci0
ohci0:  mem 0xa0006000-0xa0006fff irq 
15 at device 21.0 on pci0

ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0:  on ohci0
usb0: USB revision 1.0
uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ehci0:  mem 0xa0007000-0xa0007fff 
irq 15 at device 21.1 on pci0

ehci0: [GIANT-LOCKED]
usb1: EHCI version 1.0
usb1: companion controller, 4 ports each: usb0
usb1:  on ehci0
usb1: USB revision 2.0
uhub1: AMD EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0
Timecounter "TSC" frequency 433250425 Hz quality 800
Timecounters tick every 1.000 msec
Fast IPsec: Initialized Security Association Processing.
uart0:  at port 0x3e8-0x3ef irq 10 function 1 
config 34 on pccard0

interrupt storm detected on "irq10:"; throttling interrupt source

---Mike




Mike Tancsa,  tel +1 519 651 3400
Sentex Communications,[EMAIL PROTECTED]
Providing Internet since 1994www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike

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


Re: Kernel crashed due to pagefault while running net/avahi

2007-12-28 Thread Kris Kennaway

 ? Ashish Shukla wrote:

Hi

I'm running FreeBSD 7.0-BETA4 (AMD64) on Intel Pentium 4 630
(EM64T/HT) on Intel D945GNTL motheboard. I'd this crash when I was
running in GNOME, playing with Avahi and nss_mdns to get mDNS over
IPv6 working.

8<8<
[EMAIL PROTECTED] ~/crashes]$ kgdb /boot/kernel/kernel vmcore.0
[GDB will not be able to debug user-mode threads:
/usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd".

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xff0101880530
fault code  = supervisor read data, page not present
instruction pointer = 0x8:0x80594e8e
stack pointer   = 0x10:0xaf2807c0
frame pointer   = 0x10:0xff0001fe5700
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 953 (avahi-daemon)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 1h7m27s
Physical memory: 2025 MB
Dumping 311 MB: 296 280 264 248 232 216 200 184 168 152 136 120 104 88
72 56 40 24 8

#0  doadump () at pcpu.h:194
194 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:194
#1  0x0004 in ?? ()
#2  0x80451c46 in boot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:409
#3  0x80452072 in panic (fmt=0x104 ) at /usr/src/sys/kern/kern_shutdown.c:563
#4  0x8070bcfa in trap_fatal (frame=0xff00035869c0,
eva=18446742974254081128) at /usr/src/sys/amd64/amd64/trap.c:724
#5  0x8070c0a1 in trap_pfault (frame=0xaf280710,
usermode=0) at /usr/src/sys/amd64/amd64/trap.c:641
#6  0x8070c95f in trap (frame=0xaf280710) at
/usr/src/sys/amd64/amd64/trap.c:410
#7  0x806f383e in calltrap () at
/usr/src/sys/amd64/amd64/exception.S:169
#8  0x80594e8e in ip6_setpktopts (control=0xff0001fe5700,
opt=0xaf280870, stickyopt=Variable "stickyopt" is not
available.
) at /usr/src/sys/netinet6/ip6_output.c:2813
#9  0x805a7083 in udp6_send (so=Variable "so" is not available.
) at /usr/src/sys/netinet6/udp6_usrreq.c:523
#10 0x804a0e77 in sosend_generic (so=0xff0003365ae0,
addr=0xff0003029560, uio=0xaf280a30,
top=0xff00034b3100, control=0xff0001fe5700, flags=Variable
"flags" is not available.
)
at /usr/src/sys/kern/uipc_socket.c:1240
#11 0x804a3866 in kern_sendit (td=0xff00035869c0, s=16,
mp=0xaf280af0, flags=0, control=0xff0001fe5700,
segflg=Variable "segflg" is not available.
) at /usr/src/sys/kern/uipc_syscalls.c:789
#12 0x804a6343 in sendit (td=0xff00035869c0, s=16,
mp=0xaf280af0, flags=0) at
/usr/src/sys/kern/uipc_syscalls.c:730
#13 0x804a63b4 in sendmsg (td=0xff00035869c0,
uap=0xaf280be0) at /usr/src/sys/kern/uipc_syscalls.c:922
#14 0x8070c30c in syscall (frame=0xaf280c70) at
/usr/src/sys/amd64/amd64/trap.c:852
#15 0x806f3a4b in Xfast_syscall () at
/usr/src/sys/amd64/amd64/exception.S:290
#16 0x0008011c114c in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) frame 8
#8  0x80594e8e in ip6_setpktopts (control=0xff0001fe5700,
opt=0xaf280870, stickyopt=Variable "stickyopt" is not
available.
) at /usr/src/sys/netinet6/ip6_output.c:2813
2813cm = mtod(control, struct cmsghdr *);
(kgdb) print control
$2 = (struct mbuf *) 0xff0001fe5700
>8>8

The crashdump is 311 MiB, and after bzip2-ing it comes to around 55
MiB, which is still too big for me to upload it somewhere. Any other
thing I can do to help developers troubleshoot this problem, please
let me know ?

Will FreeBSD 7.0-RELEASE be recommended for production systems. I'm
thinking to use it for my this machine (which is this desktop). I'm
thinking to switch to FreeBSD fulltime, is FreeBSD 7.0 recommended ?


Yes, in general.  There might not be time to get this particular bug 
fixed in time for the release though, but please submit a PR with the 
above ASAP.


Kris

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


Re: buildkernel with INVARIANTS, WITNESS, DEBUG_LOCKS, etc. fails

2007-12-28 Thread Kris Kennaway

Brian O'Shea wrote:

Thank you for your reply, Kris.

--- Kris Kennaway <[EMAIL PROTECTED]> wrote:

Brian O'Shea wrote:

Hello FreeBSD developers,

Building a FreeBSD 6.2-RELEASE kernel on an Intel Pentium 4 with the
following config options causes buildkernel to fail with undefined
references to stack_save, stack_zero, and stack_print functions:

makeoptions DEBUG=-g


options KDB
options DDB


options INVARIANTS
options INVARIANT_SUPPORT
options WITNESS
options DEBUG_LOCKS
options DEBUG_VFS_LOCKS
options DIAGNOSTIC


...


I think you also need DDB.


I added the KDB and DDB options and now the buildkernel succeeds.  Now
hopefully I can get a crash dump and (try to) start debuging my problem.


This is a minor bug which you could send-pr about if you like.


Would this be a docs bug, or a config bug?


Mostly a docs bug.  In 6.x the stack_save foo isn't really useful 
without DDB.


Kris

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


Re: SSH through port forwarding

2007-12-28 Thread Chad Perrin
On Fri, Dec 28, 2007 at 12:19:44PM -0800, Brian wrote:
> Chad Perrin wrote:
> >On Tue, Dec 18, 2007 at 05:44:11AM -0500, Gerard Seibert wrote:
> >  
> >>>On December 18, 2007 at 12:47AM sham khalil wrote:
> >>>
> >>>once you open port 22 to public ip, you'll get people try to bruteforce 
> >>>your
> >>>machine.
> >>>if you don't want that set sshd to listen to a higher number like 5522
> >>>then forward port 5522 from the router to the internal machines.
> >>>
> >>>unfortunately for wrt54g, you can't forward port 5522 to 22 for internal
> >>>machine.
> >>>  
> >>Security through obscurity is a poor substitute for security. Port 
> >>scanners
> >>will eventually find that port also.
> >>
> >
> >One needs something else for security against brute-force attempts, but
> >changing the port number does help cut down on the amount of bandwidth
> >consumption on the LAN side of your router by allowing the router to
> >ignore/deny all incoming traffic on port 22.
> >  
> Has denyhosts been considered?

It has been considered (and used) by me -- but I have no idea about the
OP.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Larry Wall: "A script is what you give the actors.  A program is what you
give the audience."
___
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 make sendmail listen on an address other than the loopback

2007-12-28 Thread Andrew Falanga
On Friday 28 December 2007 11:24:50 Derek Ragona wrote:
> At 11:33 AM 12/28/2007, Andrew Falanga wrote:
> >Hi,
> >
> >I'm trying to get an e-mail system working for my church
> >(whitneybaptist.org).
> >I've added a file called local-host-names in /etc/mail as described in the
> >Handbook, then did "/etc/rc.d/sendmail restart" and then did "sockstat |
> > grep sendmail" and got the following results:
> >
> >root sendmail   32889 3  tcp4   127.0.0.1:25  *:*
> >root sendmail   32889 4  dgram  -> /var/run/logpriv
> >smmspsendmail   696   3  dgram  -> /var/run/log
> >
> >
> >Now, with the exception of the additional file, nothing has been done to
> > this stock sendmail configuration (system is 6.2-RELEASE-p7).  How would
> > I make sendmail listen on the ip of 192.168.2.23?  I do have some
> > experience with sendmail, however, it was several years ago and I've
> > forgotten quite a bit. Why isn't it listening on that address now?
> >
> >Andy
>
> Take a look at your settings for sendmail in /etc/rc.conf vs
> /etc/default/rc.conf
>
> You need two instances of sendmail running, one for local delivery, another
> for external mail send receive.
>
>  -Derek

Derek,

Thank you.  Interesting that the Handbook didn't mention it.  At least, this 
section didn't mention it and this is what I was looking to:

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

Thanks again.  I set "sendmail_enable='YES'" in /etc/rc.conf (per instructions 
to leave alone /etc/defaults/rc.conf) and then did /etc/rc.d/sendmail restart 
and it worked.

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


Re: pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-28 Thread Tim Kellers

If you vi /usr/ports/UPDATING and search for fearless, it comes right up:

20070519:
 AFFECTS: users of Xorg
 AUTHOR: [EMAIL PROTECTED]

 Welcome, fearless user!  You are about to embark upon a mystical
 journey to the world of xorg 7.2.


Eric Crist wrote:

On Dec 28, 2007, at 12:47 PM, Stephen Montgomery-Smith wrote:


Mon Si wrote:

Dear list,
I'm experiencing problems when I try to portupgrade the xorg-driver
port. The old version of the port can't be uninstalled during the
portupgrade due to an undefined prefix.
The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"
Does anybody know how to upgrade / remove this port?
Thanks in advance,
Simon


If nothing else works, you could try
rm -rf /var/db/pkg/xorg-drivers-7.3


If I remember correctly, there are detailed instructions in 
/usr/ports/UPDATING -- go back to notes for sometime in May of 2007, 
and there's a really long entry on upgraded to Xorg 7.x from 6.9.  I 
think the entry specifically mentions 7.2, but it should work for 7.3 
as well.


HTH
-
Eric F Crist
Secure Computing Networks


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
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: Small Unix install

2007-12-28 Thread DAve
John Nielsen wrote:
> Is there a reason a standard installation of FreeBSD 4/6/7 won't work
> for you? Just do a minimal install of the OS from CD or network then
> install [parts of] X, fluxbox, and your other apps from ports or
> packages and away you go. You could weigh the benefits [possible memory
> savings] of compiling your own kernel against the time and disk space
> required, but you shouldn't ever have to build world or ports unless you
> feel so inclined, especially now that freebsd-update is part of the base
> system.
> 

Time and effort. I barely use the internet personally and I didn't want
to spend the time to setup a new install, ports, kernel, etc. I do that
60 hours a week for a living, it ceased being fun for me a long time ago.

Darren Spruell wrote:
> Yes, there's plenty of options for very small Unix installs. Those
> you've tried have been the modern desktop-oriented distributions of
> FreeBSD and they of course don't shoot for the older class of systems.
> Unix has resisted bloat

It was the off chance I could install them and just not use the parts I
didn't need. I figured it was a long shot but it only took 30 minutes
during lunch to find out if they would work. All of my machines are
servers, web/radius/SQL/ftp/email/bacula/streaming/etc. I spend all day
in terminal sessions, my experience with X in the last 7 years is
minimal ;^)

I may just have to spend the time to do an install, install some ports,
configure X, configure the wireless card, and configure printing.

I appreciate the responses, thanks.

DAve

-- 
Google finally, after 7 years, provided a logo for
veterans. Thank you Google. What to do with my signature now?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SSH through port forwarding

2007-12-28 Thread Brian

Chad Perrin wrote:

On Tue, Dec 18, 2007 at 05:44:11AM -0500, Gerard Seibert wrote:
  

On December 18, 2007 at 12:47AM sham khalil wrote:

once you open port 22 to public ip, you'll get people try to bruteforce your
machine.
if you don't want that set sshd to listen to a higher number like 5522
then forward port 5522 from the router to the internal machines.

unfortunately for wrt54g, you can't forward port 5522 to 22 for internal
machine.
  

Security through obscurity is a poor substitute for security. Port scanners
will eventually find that port also.



One needs something else for security against brute-force attempts, but
changing the port number does help cut down on the amount of bandwidth
consumption on the LAN side of your router by allowing the router to
ignore/deny all incoming traffic on port 22.

  

Has denyhosts been considered?

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


Re: buildkernel with INVARIANTS, WITNESS, DEBUG_LOCKS, etc. fails

2007-12-28 Thread Brian O'Shea
Thank you for your reply, Kris.

--- Kris Kennaway <[EMAIL PROTECTED]> wrote:
> 
> Brian O'Shea wrote:
> > Hello FreeBSD developers,
> > 
> > Building a FreeBSD 6.2-RELEASE kernel on an Intel Pentium 4 with the
> > following config options causes buildkernel to fail with undefined
> > references to stack_save, stack_zero, and stack_print functions:
> > 
> > makeoptions DEBUG=-g

options KDB
options DDB

> > options INVARIANTS
> > options INVARIANT_SUPPORT
> > options WITNESS
> > options DEBUG_LOCKS
> > options DEBUG_VFS_LOCKS
> > options DIAGNOSTIC
> > 
...

> I think you also need DDB.

I added the KDB and DDB options and now the buildkernel succeeds.  Now
hopefully I can get a crash dump and (try to) start debuging my problem.

> This is a minor bug which you could send-pr about if you like.

Would this be a docs bug, or a config bug?

Thanks,
-brian




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-28 Thread Eric Crist

On Dec 28, 2007, at 12:47 PM, Stephen Montgomery-Smith wrote:


Mon Si wrote:

Dear list,
I'm experiencing problems when I try to portupgrade the xorg-driver
port. The old version of the port can't be uninstalled during the
portupgrade due to an undefined prefix.
The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"
Does anybody know how to upgrade / remove this port?
Thanks in advance,
Simon


If nothing else works, you could try
rm -rf /var/db/pkg/xorg-drivers-7.3


If I remember correctly, there are detailed instructions in /usr/ports/ 
UPDATING -- go back to notes for sometime in May of 2007, and there's  
a really long entry on upgraded to Xorg 7.x from 6.9.  I think the  
entry specifically mentions 7.2, but it should work for 7.3 as well.


HTH
-
Eric F Crist
Secure Computing Networks


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


Re: Small Unix install

2007-12-28 Thread Darren Spruell
On Dec 28, 2007 10:56 AM, DAve <[EMAIL PROTECTED]> wrote:
> Good morning,
>
> I am looking for a small install for an old laptop. I have an old but
> quite reliable Toshiba 330CDT that used to be my personal laptop. I ran
> FBSD 3.x/4.x on it for years but it has been wiped and in a closet for
> years. I want to use it again just to access a few web forums and read
> my email. I don't do POV RAY or 3D, I don't need Open Office, I don't
> watch any Tubes. Mutt, Fluxbox and a minimal browser would make me happy.
>
> I don't have the time or inclination to roll my own again. PCBSD can't
> finish the install due to only having 96mb of memory. Desktop BSD wants
> more than 4gb of drive space just to complete the install.
>
> I currently have 98SE on it only consuming 300mb and it runs fine, but
> it's 98SE ;^) Does anyone know of anything ready to install? BSD, Linux,
> I don't care.

Yes, there's plenty of options for very small Unix installs. Those
you've tried have been the modern desktop-oriented distributions of
FreeBSD and they of course don't shoot for the older class of systems.
Unix has resisted bloat

For example, I've put a smaller OpenBSD build on my Soekris that I run
for a firewall on my cable connection. Fits in 22 MB:

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a  236M   22.1M202M10%/

Granted your desktop build will be plenty larger, but 300 MB is
certainly achievable. Follow the advice for a minimal installation of
the vanilla FreeBSD 6.x or 7 + whatever packages  you need and  you'll
be rolling.

You can find similar options in any of the BSDs and GNU/Linux.

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


Re: pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-28 Thread Stephen Montgomery-Smith

Mon Si wrote:

Dear list,

I'm experiencing problems when I try to portupgrade the xorg-driver
port. The old version of the port can't be uninstalled during the
portupgrade due to an undefined prefix.
The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"

Does anybody know how to upgrade / remove this port?

Thanks in advance,
Simon


If nothing else works, you could try
rm -rf /var/db/pkg/xorg-drivers-7.3
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Small Unix install

2007-12-28 Thread John Nielsen

Quoting DAve <[EMAIL PROTECTED]>:

I am looking for a small install for an old laptop. I have an old but
quite reliable Toshiba 330CDT that used to be my personal laptop. I ran
FBSD 3.x/4.x on it for years but it has been wiped and in a closet for
years. I want to use it again just to access a few web forums and read
my email. I don't do POV RAY or 3D, I don't need Open Office, I don't
watch any Tubes. Mutt, Fluxbox and a minimal browser would make me happy.

I don't have the time or inclination to roll my own again. PCBSD can't
finish the install due to only having 96mb of memory. Desktop BSD wants
more than 4gb of drive space just to complete the install.

I currently have 98SE on it only consuming 300mb and it runs fine, but
it's 98SE ;^) Does anyone know of anything ready to install? BSD, Linux,
I don't care.


Is there a reason a standard installation of FreeBSD 4/6/7 won't work 
for you? Just do a minimal install of the OS from CD or network then 
install [parts of] X, fluxbox, and your other apps from ports or 
packages and away you go. You could weigh the benefits [possible memory 
savings] of compiling your own kernel against the time and disk space 
required, but you shouldn't ever have to build world or ports unless 
you feel so inclined, especially now that freebsd-update is part of the 
base system.


JN

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


Re: dovecot questions

2007-12-28 Thread Andrew Falanga
On Wednesday 26 December 2007 16:13:50 Peter Schuller wrote:
>
> Dovecot doesn't really care. You provide the method of obtaining the user
> list from the database, in the form of SQL statements (assuming they differ
> from defaults), and it's up to you to make sure this returns the
> appropriate information (so in other words, dovecot doesn't add users for
> you).
>
> I used to run a pg+dovecot+postfix, but have since moved away from it and I
> don't have the configs easily accessible to check out specifics. But
> googling, this should be useful in terms of providing a bunch of real-world
> configuration examples:
>
>http://www.gjdv.at/snippets/linux/virtual_mail_hosting

Thanks for this link.  I think it will be helpful, though at this point, I'm 
overwhelmed.

>
> > Also, with respect to the configuration file (dovecot.conf) why are there
> > so many passdb/userdb?  If I have passdb sql "turned on", should I "turn
> > off" all other passdb sections?  What is the significance of the userdb
> > static { } section in that file?  It appears that it is necessary for use
> > if using a single user to access several mailboxes (i.e. virtual users
> > which is what I want to implement).  Is this true?
>
> I can't answer each one of the above off hand, but things like uids is
> controlled by the user database that it sounds like you want to keep in
> PostgreSQL. This includes the ability to set the uid/gid, which you can
> have different for each user, the same, or some combination thereof, on a
> per-user basis. Your exact table design is up to you, as long as you can
> give dovecot the appropriate SQL statements for obtaining relevant
> information.

Ok, if I may run this by you, I've made a user id for this virtual mail stuff, 
the virtual mail user is "vmail."  Yes I know, very inventive.  The users 
home directory is /usr/home/vmail, but I'm thinking that what dovecot cares 
about is where mail is stored.  In this case, I'm pretty sure 
it's /var/mail/vmail.  

I've followed the instructions in http://wiki.dovecot.org/AuthDatabase/SQL and 
created the table as defined on this page.  If my understaning is correct, 
this field will contain the entry "/var/mail/vmail," correct?  Further, if 
I'm following, dovecot somehow delivers all mails to this virtual user and 
somehow categorizes them according to the virtual users?  Does this sound 
correct?

I wonder, sometimes attachments get large, if I'm anywhere near correct, I 
wonder if I should use a directory under /usr instead of /var?

>
> > If I'm understanding things correctly, the next, very important item, is
> > how do I setup new users and how would those users then manage things
> > like passwords, etc.?
>
> This is up to you. dovecot does not provide and user interfaces for
> managing accounts (that I am aware of). Typically a reason to have the user
> database in a relational database would be to enable the construction of
> such interfaces, or perhaps use of existing tools. But unless I am missing
> something, user management is beyond the scope of what dovecot itself is
> providing.


Ok, that makes it simpler though some additional work for me coming up with an 
easy way to add people to the list.

Thanks for all the help.

Andy
___
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 make sendmail listen on an address other than the loopback

2007-12-28 Thread Derek Ragona

At 11:33 AM 12/28/2007, Andrew Falanga wrote:

Hi,

I'm trying to get an e-mail system working for my church 
(whitneybaptist.org).

I've added a file called local-host-names in /etc/mail as described in the
Handbook, then did "/etc/rc.d/sendmail restart" and then did "sockstat | grep
sendmail" and got the following results:

root sendmail   32889 3  tcp4   127.0.0.1:25  *:*
root sendmail   32889 4  dgram  -> /var/run/logpriv
smmspsendmail   696   3  dgram  -> /var/run/log


Now, with the exception of the additional file, nothing has been done to this
stock sendmail configuration (system is 6.2-RELEASE-p7).  How would I make
sendmail listen on the ip of 192.168.2.23?  I do have some experience with
sendmail, however, it was several years ago and I've forgotten quite a bit.
Why isn't it listening on that address now?

Andy


Take a look at your settings for sendmail in /etc/rc.conf vs 
/etc/default/rc.conf


You need two instances of sendmail running, one for local delivery, another 
for external mail send receive.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


pkg_delete: package 'xorg-drivers-7.3' doesn't have a prefix

2007-12-28 Thread Mon Si
Dear list,

I'm experiencing problems when I try to portupgrade the xorg-driver
port. The old version of the port can't be uninstalled during the
portupgrade due to an undefined prefix.
The port can't be deleted by "pkg_delete -f xorg-drivers-7.3"

Does anybody know how to upgrade / remove this port?

Thanks in advance,
Simon
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


apache portupgrade conflicts with apr-db43

2007-12-28 Thread Tankko
I am upgrading apache...

apache-2.2.6_2  <  needs updating (port has 2.2.6_3)

...and I get the following error:



--->  Installing the new version via the port
===>  Installing for apache-2.2.6_3

===>  apache-2.2.6_3 conflicts with installed package(s):
  apr-db43-1.2.8_2

  They install files into the same place.
  Please remove them first with pkg_delete(1).
*** Error code 1



apr-db43-1.2.8_2 is needed by subversion-1.4.4_1

Why is this happening and what do I need to do to correct it.  I
figured I'd ask here before I blindly started removing ports.

I am running FreeBSD 6.2-RELEASE

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


Small Unix install

2007-12-28 Thread DAve
Good morning,

I am looking for a small install for an old laptop. I have an old but
quite reliable Toshiba 330CDT that used to be my personal laptop. I ran
FBSD 3.x/4.x on it for years but it has been wiped and in a closet for
years. I want to use it again just to access a few web forums and read
my email. I don't do POV RAY or 3D, I don't need Open Office, I don't
watch any Tubes. Mutt, Fluxbox and a minimal browser would make me happy.

I don't have the time or inclination to roll my own again. PCBSD can't
finish the install due to only having 96mb of memory. Desktop BSD wants
more than 4gb of drive space just to complete the install.

I currently have 98SE on it only consuming 300mb and it runs fine, but
it's 98SE ;^) Does anyone know of anything ready to install? BSD, Linux,
I don't care.

Thanks,

DAve
-- 
Google finally, after 7 years, provided a logo for
veterans. Thank you Google. What to do with my signature now?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Kernel crashed due to pagefault while running net/avahi

2007-12-28 Thread आशीष श ुक्ल A shish Shukla
Hi

I'm running FreeBSD 7.0-BETA4 (AMD64) on Intel Pentium 4 630
(EM64T/HT) on Intel D945GNTL motheboard. I'd this crash when I was
running in GNOME, playing with Avahi and nss_mdns to get mDNS over
IPv6 working.

8<8<
[EMAIL PROTECTED] ~/crashes]$ kgdb /boot/kernel/kernel vmcore.0
[GDB will not be able to debug user-mode threads:
/usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd".

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xff0101880530
fault code  = supervisor read data, page not present
instruction pointer = 0x8:0x80594e8e
stack pointer   = 0x10:0xaf2807c0
frame pointer   = 0x10:0xff0001fe5700
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 953 (avahi-daemon)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 1h7m27s
Physical memory: 2025 MB
Dumping 311 MB: 296 280 264 248 232 216 200 184 168 152 136 120 104 88
72 56 40 24 8

#0  doadump () at pcpu.h:194
194 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:194
#1  0x0004 in ?? ()
#2  0x80451c46 in boot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:409
#3  0x80452072 in panic (fmt=0x104 ) at /usr/src/sys/kern/kern_shutdown.c:563
#4  0x8070bcfa in trap_fatal (frame=0xff00035869c0,
eva=18446742974254081128) at /usr/src/sys/amd64/amd64/trap.c:724
#5  0x8070c0a1 in trap_pfault (frame=0xaf280710,
usermode=0) at /usr/src/sys/amd64/amd64/trap.c:641
#6  0x8070c95f in trap (frame=0xaf280710) at
/usr/src/sys/amd64/amd64/trap.c:410
#7  0x806f383e in calltrap () at
/usr/src/sys/amd64/amd64/exception.S:169
#8  0x80594e8e in ip6_setpktopts (control=0xff0001fe5700,
opt=0xaf280870, stickyopt=Variable "stickyopt" is not
available.
) at /usr/src/sys/netinet6/ip6_output.c:2813
#9  0x805a7083 in udp6_send (so=Variable "so" is not available.
) at /usr/src/sys/netinet6/udp6_usrreq.c:523
#10 0x804a0e77 in sosend_generic (so=0xff0003365ae0,
addr=0xff0003029560, uio=0xaf280a30,
top=0xff00034b3100, control=0xff0001fe5700, flags=Variable
"flags" is not available.
)
at /usr/src/sys/kern/uipc_socket.c:1240
#11 0x804a3866 in kern_sendit (td=0xff00035869c0, s=16,
mp=0xaf280af0, flags=0, control=0xff0001fe5700,
segflg=Variable "segflg" is not available.
) at /usr/src/sys/kern/uipc_syscalls.c:789
#12 0x804a6343 in sendit (td=0xff00035869c0, s=16,
mp=0xaf280af0, flags=0) at
/usr/src/sys/kern/uipc_syscalls.c:730
#13 0x804a63b4 in sendmsg (td=0xff00035869c0,
uap=0xaf280be0) at /usr/src/sys/kern/uipc_syscalls.c:922
#14 0x8070c30c in syscall (frame=0xaf280c70) at
/usr/src/sys/amd64/amd64/trap.c:852
#15 0x806f3a4b in Xfast_syscall () at
/usr/src/sys/amd64/amd64/exception.S:290
#16 0x0008011c114c in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) frame 8
#8  0x80594e8e in ip6_setpktopts (control=0xff0001fe5700,
opt=0xaf280870, stickyopt=Variable "stickyopt" is not
available.
) at /usr/src/sys/netinet6/ip6_output.c:2813
2813cm = mtod(control, struct cmsghdr *);
(kgdb) print control
$2 = (struct mbuf *) 0xff0001fe5700
>8>8

The crashdump is 311 MiB, and after bzip2-ing it comes to around 55
MiB, which is still too big for me to upload it somewhere. Any other
thing I can do to help developers troubleshoot this problem, please
let me know ?

Will FreeBSD 7.0-RELEASE be recommended for production systems. I'm
thinking to use it for my this machine (which is this desktop). I'm
thinking to switch to FreeBSD fulltime, is FreeBSD 7.0 recommended ?

TIA
-- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

How to make sendmail listen on an address other than the loopback

2007-12-28 Thread Andrew Falanga
Hi,

I'm trying to get an e-mail system working for my church (whitneybaptist.org).  
I've added a file called local-host-names in /etc/mail as described in the 
Handbook, then did "/etc/rc.d/sendmail restart" and then did "sockstat | grep 
sendmail" and got the following results:

root sendmail   32889 3  tcp4   127.0.0.1:25  *:*
root sendmail   32889 4  dgram  -> /var/run/logpriv
smmspsendmail   696   3  dgram  -> /var/run/log


Now, with the exception of the additional file, nothing has been done to this 
stock sendmail configuration (system is 6.2-RELEASE-p7).  How would I make 
sendmail listen on the ip of 192.168.2.23?  I do have some experience with 
sendmail, however, it was several years ago and I've forgotten quite a bit.  
Why isn't it listening on that address now?

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


RE: CDROM Boot Hangs But Only Under 6.x

2007-12-28 Thread Ted Mittelstaedt


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Tim Daneliuk
> Sent: Wednesday, December 26, 2007 1:07 PM
> To: FreeBSD Mailing List
> Subject: Re: CDROM Boot Hangs But Only Under 6.x
> 
> 
> This was a brand new Abit LG-95Z mobo.  The solution was to return it
> and get an Intel mobo instead.  Problem fixed.

Thanks for letting us know this was a problem board.  I would strongly
request you let Abit know what happened as well.  It is only through
feedback like this that motherboard manufacturers will actually test
their stuff under FreeBSD.

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


RE: HP Proliant Series

2007-12-28 Thread Ted Mittelstaedt

We run FreeBSD64 AMD build on HP DL320 G5 and it works great.

But we use the embedded SATA chip on the MB, not the HP SmartArray
card.  I'm interested in your experiences with the SmartArray card.

Ted

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Behalf Of Bahman Movaqar
> Sent: Wednesday, December 26, 2007 2:52 AM
> To: freebsd-questions@freebsd.org
> Subject: HP Proliant Series
> 
> 
> Hi all,
> 
> Does anybody have some experience with HP Proliant DL380 G5?  Is it
> compatible with FreeBSD (in particular 6.2)?  Following is the hardware
> configuration:
> CPU: Intel Xeon 5160 (2 GHz, FSB 1333)
> RAM: HP 4GM PC2-5300 DDR2
> HDD: 2 x 72GB 3G SAS (15K)
> Storage Ctrlr: HP Smart Array P400/256
> NIC: Broadcom 5721 PCI-Express
> 
> TIA,
> 
> -- 
> Bahman Movaqar
> PGP KeyID: 0x0CE28F5C (keyserver2.pgp.com)
> 
> Give me six lines written by the most honourable of men, and I will
> find an excuse in them to hang him.
> -Cardinal Richelieu
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.516 / Virus Database: 269.17.11/1200 - Release Date: 
> 12/27/2007 1:34 PM
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SSH through port forwarding

2007-12-28 Thread Chad Perrin
On Tue, Dec 18, 2007 at 06:02:18AM +, Pollywog wrote:
> 
> Make sure the ISP is not blocking port 22.  If they block it, you will need 
> to 
> change the SSH port in sshd_config and then set the router to forward the 
> port to the server's internal IP address.  It's a good idea to change the 
> port anyway, in order not to be obvious to script kiddies.

You shouldn't have to change the port on which SSH listens on the FreeBSD
machine.  Just set up the router to forward from the higher port number
on incoming requests to port 22 on the internal machine.  It should be
less work that way.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
MacUser, Nov. 1990: "There comes a time in the history of any project when
it becomes necessary to shoot the engineers and begin production."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SSH through port forwarding

2007-12-28 Thread Chad Perrin
On Tue, Dec 18, 2007 at 05:44:11AM -0500, Gerard Seibert wrote:
> > On December 18, 2007 at 12:47AM sham khalil wrote:
> > 
> > once you open port 22 to public ip, you'll get people try to bruteforce your
> > machine.
> > if you don't want that set sshd to listen to a higher number like 5522
> > then forward port 5522 from the router to the internal machines.
> > 
> > unfortunately for wrt54g, you can't forward port 5522 to 22 for internal
> > machine.
> 
> Security through obscurity is a poor substitute for security. Port scanners
> will eventually find that port also.

One needs something else for security against brute-force attempts, but
changing the port number does help cut down on the amount of bandwidth
consumption on the LAN side of your router by allowing the router to
ignore/deny all incoming traffic on port 22.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Marvin Minsky: "It's just incredible that a trillion-synapse computer could
actually spend Saturday afternoon watching a football game."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


"The Complete FreeBSD": errata and addenda

2007-12-28 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

"The Complete FreeBSD" has been through a total of five editions, including its
predecessor "Installing and Running FreeBSD".  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


How to get best results from FreeBSD-questions

2007-12-28 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the "newcomers"), and also those who answer the
questions (the "hackers").

   Note that the term "hacker" has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is "cracker", but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for "[EMAIL PROTECTED]").  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send "how to" questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  Fr

Re: Blocking undesirable domains using BIND

2007-12-28 Thread Rob

Kevin Kinsey wrote:
Just a question, and I'm not trying to cast doubt on your plan; I'm 
curious why using BIND for this purpose instead of a proxy, which is

a more typical application as I understand it?


I was trying to do something similar.  I didn't research too hard, but figured the only way to use Bind would be to make my server authoritative for all those domains, which meant a huge config file and potential overhead, as well as 
possibly breaking access to desirable servers in the domains.


So hosts seemed easier, but apparently Bind never looks at hosts.  I did find 
that Squid (which I already had installed and in limited use) has its own DNS 
resolver, and it does look at hosts first before going to the nameserver.

Then I found this site:  http://everythingisnt.com/hosts.html and put their 
list in hosts, and now client PCs get a squid error in place of ad junk.  Works 
ok for me ;)

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


Re: Blocking undesirable domains using BIND

2007-12-28 Thread Darren Spruell
On Dec 28, 2007 8:49 AM, Kevin Kinsey <[EMAIL PROTECTED]> wrote:
> Olivier Nicole wrote:
> >> Again, I'm not trying to convince you otherwise or say that using
> >> BIND is a bad idea.  It's just that I'm curious because we use
> >> Squid for this sort of thing, and I was wondering why BIND instead?
> >
> > I think another issue is that Squid will only filter HTTP/FTP
> > connections, while DNS would allow to filter any type of traffic that
> > would try to go to places with a bad name.
> >
> > Olivier
>
> In the absence of egress filtering on the firewall, that
> would definitely be an advantage.  Does anyone use BIND
> for filtering in a small to medium business environment
> then?  How does it perform?

Performs fine.

# rndc status
number of zones: 17210
...

My 17000+ zones are loaded from the DNS-BH project and increase the
startup time of named to about 10 seconds and bump the resident memory
size up to about 55M. (AMD Duron 750MHz).

There's no real performance hit per se by DNS blackholing, other than
the resource utilization increase needed for handling additional
zones; your name server would normally be handling these DNS lookups
anyway.You're just overriding the response locally rather than
recursing for it. The zones themselves typically end up being very
small, like a single wildcard record pointing to 127.0.0.1 or a
honeypot or whatever.

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


Process priority questions

2007-12-28 Thread Unga
Hi all

I'm sorry to trouble you guys with this issue again. 


As per /usr/include/sys/priority.h:

/*
 * Priorities range from 0 to 255, but differences of
less then 4 (RQ_PPQ)
 * are insignificant.  Ranges are as follows:
 *
 * Interrupt threads:   0 - 63
 * Top half kernel threads: 64 - 127
 * Realtime user threads:   128 - 159
 * Time sharing user threads:   160 - 223
 * Idle user threads:   224 - 255
 *
 */


ps aux -o pri,ni,rtprio,command shows following:

USER PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  
   TIME COMMAND  PRI NI  RTPRIO COMMAND

root  12 91.0  0.0 0 8  ??  RL9:50AM
830:41.81 [idle: cpu0] 171  0 idle:25 [idle: cpu0]

root  13  0.0  0.0 0 8  ??  WL9:50AM  
3:28.96 [swi4: clock sio -32  0 intr:52 [swi4: clock
sio

root 696  0.0  0.1  3240   764  ??  Is9:51AM  
0:00.06 /usr/sbin/moused  96  0  normal
/usr/sbin/moused


1. I want understand how to interpret above numbers
related to process priorities?

1a) 171  0 idle:25
What is 171? Does it mean it has upgraded to “Time
sharing user
threads” range to be executed? What is  idle:25? Is it
its default priority 224+25=249?
 
1b) -32  0 intr:52
What is -32? What is 52?  Is it its default
priority 52 in the “Interrupt threads” range?

1c) 96  0  normal
The “normal” is what? Is it priority 160 or 223?


2. What is the value range can be specified for
process
priority in /etc/login.conf?


3. What is the name of the program which process or
validate priority values specified in /etc/login.conf?


Regards
Unga


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Blocking undesirable domains using BIND

2007-12-28 Thread Kevin Kinsey

Olivier Nicole wrote:

Again, I'm not trying to convince you otherwise or say that using
BIND is a bad idea.  It's just that I'm curious because we use
Squid for this sort of thing, and I was wondering why BIND instead?


I think another issue is that Squid will only filter HTTP/FTP
connections, while DNS would allow to filter any type of traffic that
would try to go to places with a bad name.

Olivier


In the absence of egress filtering on the firewall, that
would definitely be an advantage.  Does anyone use BIND
for filtering in a small to medium business environment
then?  How does it perform?

Kevin Kinsey
--
I trust the first lion he meets will do his duty.
-- J. P. Morgan on Teddy Roosevelt's safari
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


recommendations: new graphics card

2007-12-28 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am running 8-current amd64 on a e6850 with 4 GB of RAM and currently
have a nvidia 5200 GT.  Well I have a $100 gift card for amazon and
decided to use it to get a new video card.   I also run vista and
occasionally a live cd for linux but I spend 90+% of my time in
freebsd.  My main use of the machine is (java) development, light
office apps, maintaining my companies web site and light gaming (the
only thing I use vista for) [currently c&c 3 but I want to try some
newer things {I never play first person shooters}].   I have never
used anything except nvidia cards but in seeing that the closed source
driver is not going to be out anytime soon for amd64 I am willing to
consider an ATI.   Suggestions?

- --
Aryeh M. Friedman
FloSoft Systems
http://www.flosoft-systems.com
Developer, not business, friendly
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHdRPzzIOMjAek4JIRAgWlAJ0YCcdwY3mKWr7vpocjw2exHhiVNACfbl1G
Vpk/z+nDuUe0t2Ae2Ss0c7I=
=JWsM
-END PGP SIGNATURE-

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


kernel hang

2007-12-28 Thread Steven Friedrich

I tried to src upgrade a 6.2-RELEASE system to 6.3-RC3.

When I reboot, it hangs just after describing the disk geometry.  No 
error messages, even if I boot verbose.


I can recover by booting kernel.old, changing my tag back, cvsup'ing, 
building everything...


This appears to be a showstopper for 6.3

I've reproduced this on a fresh partition, fresh install of 6.2...

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


Re: removing ipfw rules

2007-12-28 Thread Ian Smith
On Fri, 28 Dec 2007 02:21:54 +0200 Giorgos Keramidas <[EMAIL PROTECTED]> wrote:
 > On 2007-12-27 15:47, Noah <[EMAIL PROTECTED]> wrote:
 > > Hi,
 > >
 > > I have two ipfw rules that I want to remove.  They are viewable with the
 > > "ipfw show" command
 > >
 > >
 > > --- snip ---
 > >
 > > 06600  0 0 allow ip from any to any proto tcp src-ip
 > > 66.66.66.66 dst-port 22
 > > 06700  0 0 allow ip from any to any proto tcp src-ip
 > > 66.66.66.66 dst-port 22
 > >
 > > --- snip 
 > >
 > > I am typing the command "/sbin/ipfw -q delete pass proto tcp src-ip
 > > 66.66.66.66 dst-port 22"
 > >
 > > but both lines remain.  What am I doing wrong?
 > 
 > There are differences between the visible rule:
 > 
 > allow ip from any to any proto tcp src-ip 66.66.66.66 dst-port 22
 > 
 > and the one you are trying to delete:
 > 
 > pass proto tcp src-ip 66.66.66.66 dst-port 22
 > 
 > Having said that, can you try something simpler, i.e.
 > 
 > ipfw -q delete 6600
 > ipfw -q delete 6700
 > 
 > This should work too, if I remember well enough the ipfw syntax.

You do, but deleting by rule number/s is the only way.  ipfw(8):

 ipfw [-q] {delete | zero | resetlog} [set] [number ...]

Of course Noah could find rule number/s to delete with something like

  # ipfw delete `ipfw list | grep $somestring | awk '{print $1}'`

if he was, um, courageous :)  Safer tested first with ipfw show ..

cheers, Ian

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


Re: Problem in /usr/local/etc/rc.d [SOLVED]

2007-12-28 Thread Manolis Kiagias

Mario Lobo wrote:

On Friday 28 December 2007 09:23:20 Kris Kennaway wrote:
  

Mario Lobo wrote:


Hello;

here is a snip of dmesg:

-
Starting sshd.
Starting cron.
Local package initialization:
Starting Init
Starting Samba
Removing stale Samba tdb files:
.
.
.
.
.
.
.
 done
Starting Init
Starting Samba
Removing stale Samba tdb files:
.
.
.
.
.
.
.
 done
-
i have only 2 scripts in  /usr/local/etc/rc.d:
 init.sh, which starts vsftpd and a dyndns client
and samba.sh.

As you can see, the scripts in that directory are beeing ran twice !. I
looked up and down the server (/etc/init.d specially), trying to see why
this is happening and I can't find anything !.

Would anybody have a suggestion on what I should look for?

Thanks,

P.S. - I wish you all a happy 2008 ! My guts keep telling me that this is
going to be a great year for FreeBSD !!
  

Check your /etc/rc.conf settings, e.g. local_startup or whatever
controls rc.d directories.  Either /usr/local is listed twice or it
still lists /usr/X11R6 after it was replaced by a symlink to /usr/local.
  In the latter case this should have been taken care of by the xorg
upgrade process.

Kris



Right on the spot Kris !!

i had
local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs.

on /etc/defaults/rc.conf

Thanks !!

  

Don't edit the /etc/defaults/rc.conf

Just override it by inserting:

local_startup="/usr/local/etc/rc.d"

in your /etc/rc.conf file.


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


Re: Problem in /usr/local/etc/rc.d [SOLVED]

2007-12-28 Thread Mario Lobo
On Friday 28 December 2007 09:23:20 Kris Kennaway wrote:
> Mario Lobo wrote:
> > Hello;
> >
> > here is a snip of dmesg:
> >
> > -
> > Starting sshd.
> > Starting cron.
> > Local package initialization:
> > Starting Init
> > Starting Samba
> > Removing stale Samba tdb files:
> > .
> > .
> > .
> > .
> > .
> > .
> > .
> >  done
> > Starting Init
> > Starting Samba
> > Removing stale Samba tdb files:
> > .
> > .
> > .
> > .
> > .
> > .
> > .
> >  done
> > -
> > i have only 2 scripts in  /usr/local/etc/rc.d:
> >  init.sh, which starts vsftpd and a dyndns client
> > and samba.sh.
> >
> > As you can see, the scripts in that directory are beeing ran twice !. I
> > looked up and down the server (/etc/init.d specially), trying to see why
> > this is happening and I can't find anything !.
> >
> > Would anybody have a suggestion on what I should look for?
> >
> > Thanks,
> >
> > P.S. - I wish you all a happy 2008 ! My guts keep telling me that this is
> > going to be a great year for FreeBSD !!
>
> Check your /etc/rc.conf settings, e.g. local_startup or whatever
> controls rc.d directories.  Either /usr/local is listed twice or it
> still lists /usr/X11R6 after it was replaced by a symlink to /usr/local.
>   In the latter case this should have been taken care of by the xorg
> upgrade process.
>
> Kris

Right on the spot Kris !!

i had
local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs.

on /etc/defaults/rc.conf

Thanks !!

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


Re: Problem in /usr/local/etc/rc.d

2007-12-28 Thread Kris Kennaway

Mario Lobo wrote:

Hello;

here is a snip of dmesg:

-
Starting sshd.
Starting cron.
Local package initialization:
Starting Init
Starting Samba
Removing stale Samba tdb files:
.
.
.
.
.
.
.
 done
Starting Init
Starting Samba
Removing stale Samba tdb files:
.
.
.
.
.
.
.
 done
-
i have only 2 scripts in  /usr/local/etc/rc.d:
 init.sh, which starts vsftpd and a dyndns client
and samba.sh.

As you can see, the scripts in that directory are beeing ran twice !. I looked 
up and down the server (/etc/init.d specially), trying to see why this is 
happening and I can't find anything !.


Would anybody have a suggestion on what I should look for?

Thanks,

P.S. - I wish you all a happy 2008 ! My guts keep telling me that this is 
going to be a great year for FreeBSD !!


Check your /etc/rc.conf settings, e.g. local_startup or whatever 
controls rc.d directories.  Either /usr/local is listed twice or it 
still lists /usr/X11R6 after it was replaced by a symlink to /usr/local. 
 In the latter case this should have been taken care of by the xorg 
upgrade process.


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


Problem in /usr/local/etc/rc.d

2007-12-28 Thread Mario Lobo
Hello;

here is a snip of dmesg:

-
Starting sshd.
Starting cron.
Local package initialization:
Starting Init
Starting Samba
Removing stale Samba tdb files:
.
.
.
.
.
.
.
 done
Starting Init
Starting Samba
Removing stale Samba tdb files:
.
.
.
.
.
.
.
 done
-
i have only 2 scripts in  /usr/local/etc/rc.d:
 init.sh, which starts vsftpd and a dyndns client
and samba.sh.

As you can see, the scripts in that directory are beeing ran twice !. I looked 
up and down the server (/etc/init.d specially), trying to see why this is 
happening and I can't find anything !.

Would anybody have a suggestion on what I should look for?

Thanks,

P.S. - I wish you all a happy 2008 ! My guts keep telling me that this is 
going to be a great year for FreeBSD !!
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winedows FREE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Changing boot partition - ACCOMPLISHED, now INIT problem :(

2007-12-28 Thread Nuno Gonçalves
Hi all,
Thanks on all your hints; it helped me comprehending my problem.
I accomplished the restore of a wrecked machine only with a .tar backup from
it.

The recipe is a little tricky. I installed a minimum FreeBSD on a new
machine, during sysintall I created 2 slices (one ad1s1 to the minimum SO
and swap and another slice ad1s2 to restore the backup) I set the second
slice as bootable (option S in FDISK). Then I created the partitions on the
first slice and installed the minimum SO (ad1s1a and ad1s1b for swap). After
booting to it with F1 I created the new file system with newfs and mounted
in rw mode (ad1s2a). Restored the tar backup to it and changed the FSTAB to
the new reality (used the initial swap created on the minimum SO ad1s1b and
the new partition as / ad1s2a ). Rebooted and voila it was booting the old
FreeBSD SO.

Still after probing the hardware (CDROM, FXP0, etc ) It showed me this
repeated error:

23:29:19 init: can't exec getty '/usr/libexec/getty' for port ...
23:29:19 init: can't exec getty '/usr/libexec/getty' for port ...
23:29:19 init: can't exec getty '/usr/libexec/getty' for port ...
23:29:19 init: can't exec getty '/usr/libexec/getty' for port ...
23:29:19 init: can't exec getty '/usr/libexec/getty' for port ...
23:29:19 init: can't exec getty '/usr/libexec/getty' for port ...
.


I though it was something related with the console, so I rebooted to the
initial SO with F1, mounted the partition o see /boot and renamed
boot.config
Did another reboot and booted to F2 but the problem persists.
Do you guys have any clue what might this be and how can I solve it? Is it
something related with kernel stuff?
I have access to the contents of it if I boot through the minimum SO (F1) 

Thanks for helping this newbie
Best regards to you all

Nuno 


-Original Message-
From: Aryeh M. Friedman [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 27 de Dezembro de 2007 13:39
To: Nuno Gonçalves
Cc: freebsd-questions@freebsd.org
Subject: Re: Changing boot partition

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nuno Gonçalves wrote:
> Hi all,
>
> 
>
> I Have a FreeBSD booting ok. It?s FSTAB is like this:
>
> #DeviceMountPoint FStype   Options
>
> /dev/ad1s1b   none swap sw
>
> /dev/ad1s1a   /  ufs   rw
>
> /dev/acd0  /cdrom  cd9660  ro,noauto
>
> /dev/ad1s2d   /backup ufs   rw
>
> 
>
> When I boot the machine the boot manager shows me F1 and F2 to boot for.
>
> F1 brings me /dev/ad1s1a OK
>
> Still I want the machine to boot to /dev/ad1s2d
>
> This partition has a backup from another FreeBSD which I want to boot.
>
> 
>
> To accomplish this, I need only to change FSTAB ?
>
> What changes should I do ? changing /dev/ad1s2d to /dev/ad1s2a ? I read
that
> a means boot root partition
>
> 
>
> I tried to change FSTAB to
>
> #DeviceMountPoint FStype   Options
>
> /dev/ad1s1b   none swap sw
>
> #/dev/ad1s1a /  ufs   rw
>
> /dev/acd0  /cdrom  cd9660  ro,noauto
>
> /dev/ad1s2a   /backup ufs   rw
>
> 
>
> And it hanged when I pressed F1 (could not mount the root partition :P )
>
> 
>
> Could you guys give any hint ?
>
> Sorry about this questions but I am a newbie to FreeBSD

I forget the exact semantics but do a search for "installing freebsd
in a usb stick" on google the reason for referring to this site is it
shows how to duplicate what sysinstall does from the command line

- --
Aryeh M. Friedman
FloSoft Systems
http://www.flosoft-systems.com
Developer, not business, friendly
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHc6rZzIOMjAek4JIRAoevAJ0WZzlRNgLiZeMzgS7RV2SS96kEBgCfe9PI
tsmEoCTLlXPqg/FWYSEcukc=
=oamg
-END PGP SIGNATURE-


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


Re: buildkernel with INVARIANTS, WITNESS, DEBUG_LOCKS, etc. fails

2007-12-28 Thread Kris Kennaway

Brian O'Shea wrote:

Hello FreeBSD developers,

Building a FreeBSD 6.2-RELEASE kernel on an Intel Pentium 4 with the
following config options causes buildkernel to fail with undefined
references to stack_save, stack_zero, and stack_print functions:

makeoptions DEBUG=-g
options INVARIANTS
options INVARIANT_SUPPORT
options WITNESS
options DEBUG_LOCKS
options DEBUG_VFS_LOCKS
options DIAGNOSTIC

Am I just omitting an option that causes this code to be linked
correctly, or alternatively is there a workaround for this?  I followed
the instructions from the following developers handbook page on
debugging deadlocks:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-deadlocks.html

Below I have included as much information as I can think of that would
be relevant to this problem.  Please let me know if you would like me to
provide any more information.

Regards,
-brian


Output from uname -a :
FreeBSD apsara.hsd1.ca.comcast.net. 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Fri Nov
 9 00:08:34 PST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/APSARA  i386


CPU information from dmesg:

CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1796.95-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
 
Features=0x3febfbff
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>

Relevant (non-comment) diffs between a kernel config that bulids
(APSARA) and one that doesn't (APSARA-DEBUG) included below:

23c22
< ident APSARA
---

ident APSARA-DEBUG

28c27,38
< #makeoptions  DEBUG=-g# Build kernel with gdb(1) debug
symbols
---

makeoptions   DEBUG=-g# Build kernel with gdb(1) debug

symbols

#
# The following options have been set in an attempt to track down the
# problem with the snd_cmi driver, which causes the system to hang if
# it is used to play audio content:
#
options   INVARIANTS
options   INVARIANT_SUPPORT
options   WITNESS
options   DEBUG_LOCKS
options   DEBUG_VFS_LOCKS
options   DIAGNOSTIC


Relevant error messages from make buildkernel (with KERNCONF set to
APSARA-DEBUG) included below:

linking kernel.debug
kern_lock.o(.text+0x15d): In function `lockmgr':
/usr/src/sys/kern/kern_lock.c:176: undefined reference to `stack_save'
kern_lock.o(.text+0x26c):/usr/src/sys/kern/kern_lock.c:223: undefined reference
to `stack_save'
kern_lock.o(.text+0x4c4):/usr/src/sys/kern/kern_lock.c:306: undefined reference
to `stack_save'
kern_lock.o(.text+0x5f9):/usr/src/sys/kern/kern_lock.c:365: undefined reference
to `stack_save'
kern_lock.o(.text+0x737):/usr/src/sys/kern/kern_lock.c:410: undefined reference
to `stack_save'
kern_lock.o(.text+0x95d): In function `lockinit':
/usr/src/sys/kern/kern_lock.c:504: undefined reference to `stack_zero'
kern_lock.o(.text+0xae3): In function `lockmgr_printinfo':
/usr/src/sys/kern/kern_lock.c:596: undefined reference to `stack_print'
*** Error code 1


I think you also need DDB.  This is a minor bug which you could send-pr 
about if you like.


Kris

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


RE: Changing boot partition ACCOMPLISHED, now INIT problem

2007-12-28 Thread Nuno Gonçalves
Hi all,

Thanks on all your hints. I accomplished booting to another partition with a
backup from the machine that was all wrecked. It was a little tricky.
I installed a minimum FreeBSD and created a second slice to restore the
other FreeBSD SO and make it bootable. Then I created the filesystem,
mounted it and restored the backup to that partition.
Afterwards I changed the FSTAB file to reflect the new reality (the
partitions are now different) and did a reboot! And voilá, when I pressed F2
key on boot manager It started to boot the FreeBSD of the wrecked machine :)

Still after probing all the hardware (CDROM, Ethernet boards fxp0, etc) It
showed me the following message:

23:29:19 init: can't exec getty '/usr/libexec/getty' for port ...
23:29:19 init: can't exec getty '/usr/libexec/getty' for port ...

-Original Message-
From: Aryeh M. Friedman [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 27 de Dezembro de 2007 13:39
To: Nuno Gonçalves
Cc: freebsd-questions@freebsd.org
Subject: Re: Changing boot partition

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nuno Gonçalves wrote:
> Hi all,
>
> 
>
> I Have a FreeBSD booting ok. It?s FSTAB is like this:
>
> #DeviceMountPoint FStype   Options
>
> /dev/ad1s1b   none swap sw
>
> /dev/ad1s1a   /  ufs   rw
>
> /dev/acd0  /cdrom  cd9660  ro,noauto
>
> /dev/ad1s2d   /backup ufs   rw
>
> 
>
> When I boot the machine the boot manager shows me F1 and F2 to boot for.
>
> F1 brings me /dev/ad1s1a OK
>
> Still I want the machine to boot to /dev/ad1s2d
>
> This partition has a backup from another FreeBSD which I want to boot.
>
> 
>
> To accomplish this, I need only to change FSTAB ?
>
> What changes should I do ? changing /dev/ad1s2d to /dev/ad1s2a ? I read
that
> a means boot root partition
>
> 
>
> I tried to change FSTAB to
>
> #DeviceMountPoint FStype   Options
>
> /dev/ad1s1b   none swap sw
>
> #/dev/ad1s1a /  ufs   rw
>
> /dev/acd0  /cdrom  cd9660  ro,noauto
>
> /dev/ad1s2a   /backup ufs   rw
>
> 
>
> And it hanged when I pressed F1 (could not mount the root partition :P )
>
> 
>
> Could you guys give any hint ?
>
> Sorry about this questions but I am a newbie to FreeBSD

I forget the exact semantics but do a search for "installing freebsd
in a usb stick" on google the reason for referring to this site is it
shows how to duplicate what sysinstall does from the command line

- --
Aryeh M. Friedman
FloSoft Systems
http://www.flosoft-systems.com
Developer, not business, friendly
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHc6rZzIOMjAek4JIRAoevAJ0WZzlRNgLiZeMzgS7RV2SS96kEBgCfe9PI
tsmEoCTLlXPqg/FWYSEcukc=
=oamg
-END PGP SIGNATURE-


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


buildkernel with INVARIANTS, WITNESS, DEBUG_LOCKS, etc. fails

2007-12-28 Thread Brian O'Shea
Hello FreeBSD developers,

Building a FreeBSD 6.2-RELEASE kernel on an Intel Pentium 4 with the
following config options causes buildkernel to fail with undefined
references to stack_save, stack_zero, and stack_print functions:

makeoptions DEBUG=-g
options INVARIANTS
options INVARIANT_SUPPORT
options WITNESS
options DEBUG_LOCKS
options DEBUG_VFS_LOCKS
options DIAGNOSTIC

Am I just omitting an option that causes this code to be linked
correctly, or alternatively is there a workaround for this?  I followed
the instructions from the following developers handbook page on
debugging deadlocks:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-deadlocks.html

Below I have included as much information as I can think of that would
be relevant to this problem.  Please let me know if you would like me to
provide any more information.

Regards,
-brian


Output from uname -a :
FreeBSD apsara.hsd1.ca.comcast.net. 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Fri Nov
 9 00:08:34 PST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/APSARA  i386

CPU information from dmesg:

CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1796.95-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
 
Features=0x3febfbff

Relevant (non-comment) diffs between a kernel config that bulids
(APSARA) and one that doesn't (APSARA-DEBUG) included below:

23c22
< ident APSARA
---
> ident APSARA-DEBUG
28c27,38
< #makeoptions  DEBUG=-g# Build kernel with gdb(1) debug
symbols
---
> makeoptions   DEBUG=-g# Build kernel with gdb(1) debug
symbols
> #
> # The following options have been set in an attempt to track down the
> # problem with the snd_cmi driver, which causes the system to hang if
> # it is used to play audio content:
> #
> options   INVARIANTS
> options   INVARIANT_SUPPORT
> options   WITNESS
> options   DEBUG_LOCKS
> options   DEBUG_VFS_LOCKS
> options   DIAGNOSTIC

Relevant error messages from make buildkernel (with KERNCONF set to
APSARA-DEBUG) included below:

linking kernel.debug
kern_lock.o(.text+0x15d): In function `lockmgr':
/usr/src/sys/kern/kern_lock.c:176: undefined reference to `stack_save'
kern_lock.o(.text+0x26c):/usr/src/sys/kern/kern_lock.c:223: undefined reference
to `stack_save'
kern_lock.o(.text+0x4c4):/usr/src/sys/kern/kern_lock.c:306: undefined reference
to `stack_save'
kern_lock.o(.text+0x5f9):/usr/src/sys/kern/kern_lock.c:365: undefined reference
to `stack_save'
kern_lock.o(.text+0x737):/usr/src/sys/kern/kern_lock.c:410: undefined reference
to `stack_save'
kern_lock.o(.text+0x95d): In function `lockinit':
/usr/src/sys/kern/kern_lock.c:504: undefined reference to `stack_zero'
kern_lock.o(.text+0xae3): In function `lockmgr_printinfo':
/usr/src/sys/kern/kern_lock.c:596: undefined reference to `stack_print'
*** Error code 1

Stop in /usr/obj/usr/src/sys/APSARA-DEBUG.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Ekiga runs but hangs

2007-12-28 Thread usleepless
Hello All,

is anyone using ekiga? ekiga runs and connects to [EMAIL PROTECTED] ( test 
number ).

but when i hang up, or change volume using the ekiga-controls, the UI freezes.

#FreeBSD host 7.0-BETA2 FreeBSD 7.0-BETA2 #4

i would love to hear succes or failures.

regards,

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


Re: Hosting Server Load

2007-12-28 Thread Martin Hepworth
Very much depends.

Load ave is a measure of the number of processes waiting for resource (CPU,
Network, disk etc). Ie a rough measure of how 'busy' the server is. I've
seem modern kit with load averages of over 30 with no problems with
responsiveness at all. It's all down to what the processes are actually
doing rather than how 'busy' the machine is.

--
martin

On Dec 27, 2007 4:33 PM, Grant Peel <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> Just wondering what kind of load most hosters consider reasonable.
>
> (1 min, 5 min, and 15 min average loads).
>
> -Grant
> ___
> 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: CDROM Boot Hangs But Only Under 6.x

2007-12-28 Thread Ted Mittelstaedt


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Tim Daneliuk
> Sent: Tuesday, December 25, 2007 11:15 PM
> To: FreeBSD Mailing List
> Subject: Re: CDROM Boot Hangs But Only Under 6.x
>
>
> Ted Mittelstaedt wrote:
> 
>
>
> >
> > If your MB is new it should work.  Older MB's have problems with
> > the "new way" to boot off an optical cd.  You can try BIOS/CMOS
> > updates from the motherbard mfg if they are available.  Sometimes
> > even back-flashing to older BIOS fixes it.
>
> This is a brand new ABIT mobo w/latest bios on board.
>
> >
> >> 3) Reordering/removing memory sticks made no difference.  I am running
> >> a memory test ATM just to be sure, but so far, the memory
> seems fine.
> >>
> >> 4) No amount of poking around in the BIOS settings seems to
> help either.
> >>
> >> I am starting to suspect the MOBO.  If I stick a couple of cards in the
> >> two available PCI slots, the system has trouble taking me into the BIOS
> >> screen.  I have to remove the cards to reliably get into the BIOS
> >> settings menu.  I wonder if this is one of those situations where there
> >> are not enough IRQs to go around.
> >>
> >
> > If it's a new MB the PCI cards are probably too old/slow to work right.
>
> I thought that even modern PCI busses would fall back to the old
> speeds.  I've had not trouble with any of my other rather new
> mobos, running, say, old Adaptec controllers.
>
> >
> > Another thing to check is if the MB has any overclock settings turned
> > on, these will screw up booting, going into BIOS, and some PCI cards.
> > Go to BIOS and select "reset to factory settings" which turns off all
> > the go-fast stuff.  And make sure you confirm the CPU speed in BIOS
> > with the actual speed stamped on the CPU.
>
> I've reset the BIOS to the most conservative mode, no overclocking, etc.
>
> >
> > Sometimes you just got to stick a floppy disk drive on the thing and
> > boot from the 4 boot floppies then do an FTP install.  I have about
> > a dozen servers among the collection I manage that are like this -
> > some are even newer ones.
>
> I would *love* to know just where boot is getting lost.  In the case
> of your servers, do you see the same symptoms I am seeing: The
> kernel loading progress prompt gets painted (most of the time,
> sometimes it does not even make it that far) and the booting
> seizes up?
>

No, they won't even load the boot loader.  The symptoms your describing
are classic for PIO/UDMA negotiation issues.  In other words, the
connection from the atapi controller to the optical drive is being
negotiated by BIOS as UDMA and negotiated by the FreeBSD boot kernel
as UDMA but a bug somewhere is causing the bus to corrupt data.  The
usual fix is to switch to PIO mode.  The only problem with this
is that you have already swapped optical drives, and I'd assume that
at least one of the swaps didn't support UDMA mode (thus forcing
PIO mode) you also said you already checked this, and even if it did
negotiate UDMA it would be UDMA33 not anything faster that would require
the special high speed IDE cables so we can probably rule out a
crap CDROM cable.  Lastly, the default on the ata driver is supposed
to be PIO mode anyway for optical drives.

Ted

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