Re: Getting errors writing large iso image to DVD (bug in atapi driver?)

2007-11-01 Thread Yuri
Yes, TDK disks are x16 for writing, so as Pioneer burner and software.
Once I lowered maximum speed to x4 problem seems to go away.

Thank you for advice,
Yuri

 Just a question: do both DVD disks and DVD writer have a maximum speed limit
 x16?
 I am asking because I experienced similar problem on TDK disks; in my case
 the speed limit was x8. The writer managed to successfully write some disks
 while failing on others. After I have limited speed to x4, all the disks were
 written successfully. It looks like when I go maximum, the disk quality is in
 question. Have you tried setting the speed limit below the maximum?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fsck failing

2007-11-01 Thread Derek Ragona

At 08:33 AM 10/30/2007, Dudley wrote:

Note: If there's a more appropriate mailing list, please let me know.

I've been running a FreeBSD 4.11 installation for a couple of years without
issue. Unfortunately, one of the drives on the 3Ware Escalada 8500 RAID
array died leaving the array in a degraded state. The drive likely died in
an outage which also corrupted the filesystem. That said, the FreeBSD
install is still able to boot until it attempts to mount the filesystem.

During the boot process, I get the following error:

Can't stat /dev/twed0s1a: Bad file Descriptor
Can't stat /dev/twed0s1a: Bad file Descriptor
/dev/twed0s1a: CANT CHECK FILE SYSTEM
/dev/twed0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

It drops me in to single user mode allowing me to run fsck. If I run just
fsck then, it runs successfully but doesn't check twed0s1a which means on
reboot the problem is still there. If I force fsck on that partition by
running `fsck /dev/twed0s1a` then I get the same errors as above.

Please let me know what other steps I should take to get the system booting
again.

Thanks in advance,


Your /etc/fstab has that filesystem marked for a later secondary fsck run, 
not the primary one.  You can run fsck manually on any filesystem, just 
specify that on the fsck commandline.


fsck works better when the system is in single user mode, on non-mounted 
filesystems.  If fsck cannot fix errors, run diagnostics from the hard 
drive manufacturer on the hard drive(s) as they are likely failing.


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


launcher problems...

2007-11-01 Thread Gary Kline
Guys,

I don't understand this: I just recompiled as much of Gnome as I
an think of.Still missing are the greeting application
(cf to the xlogin, perhaps).  And, after logging in to root
wwith the daisy-flower login screen, when I tried to exec a term
or konsole, it said I am missing a launcher.

Anybody  knowwhat I have to do here?

merci d'advanc,

gary



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: Getting errors writing large iso image to DVD (bug in atapi driver?)

2007-11-01 Thread Andriy Babiy
- Original Message -
From: Yuri [EMAIL PROTECTED]
Date: Wednesday, October 31, 2007 11:05
Subject: Getting errors writing large iso image to DVD (bug in atapi driver?)
To: freebsd-questions@freebsd.org
Cc: [EMAIL PROTECTED]

 I am trying to write iso image to blank DVD-R.
 Every time I try (with a new blank disk of course) I get this error:
 
  4534108160/4691437568 (96.6%) @15.8x, remaining 0:10 RBU 
 100.0% UBU  53.1%
  :-[ [EMAIL PROTECTED] failed with SK=3h/ASC=0Ch/ACQ=00h]: 
 Input/output error
  :-( write failed: Input/output error
  /dev/pass0: flushing cache
  /dev/pass0: updating RMA
  /dev/pass0: closing disc
 
 And dmesg says:
 g_vfs_done():acd0[READ(offset=4290936832, length=65536)]error = 5
 acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x11 ascq=0x05
 g_vfs_done():acd0[READ(offset=4290936832, length=4096)]error = 5
 acd0: FAILURE - READ_BIG MEDIUM ERROR asc=0x11 ascq=0x05
 g_vfs_done():acd0[READ(offset=4290940928, length=65536)]error = 5
 
 ISO file is very large, almost at the limit: 4691437568 bytes. 
 (limit is
 47+tiny bit).
 I use command 'growisofs -dvd-compat -speed=16 -Z 
 /dev/cd0=my.iso' to write.
 And my burner is brand new PIONEER DVD-RW DVR-112D 1.21. Burned 
 only 5-6 DVDs yet.
 
 Why would is such error be reproducible?
 I vaguely remember that my old writer (Sony) had similar problem 
 and particular
 large iso images were reproducibly failing with the similar message.
 
 Does this suggest that ATAPI driver has some bug?
 
 Thanks,
 Yuri
 
 FreeBSD xxx.xxx.xxx 6.2-STABLE FreeBSD 6.2-STABLE #9: Tue 
 Oct  2 01:27:22 PDT
 2007 
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

Just a question: do both DVD disks and DVD writer have a maximum speed limit 
x16?
I am asking because I experienced similar problem on TDK disks; in my case the 
speed limit was x8. The writer managed to successfully write some disks while 
failing on others. After I have limited speed to x4, all the disks were written 
successfully. It looks like when I go maximum, the disk quality is in question. 
Have you tried setting the speed limit below the maximum?

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


Re: FreeBSD 6.2 with Xorg 7.3

2007-11-01 Thread Erik Trulsson
On Wed, Oct 31, 2007 at 08:02:42PM -0500, Paul Schmehl wrote:
 --On October 31, 2007 12:43:48 PM -0400 John [EMAIL PROTECTED] wrote:
 
 I hope this is an appropriate list for this type of question; please let
 me know if another list is more suitable to newbie-type quesions.
 
 I've been using Linux for a long time, and every year or so I have a
 crack at *BSD to see what I'm missing.  But it never works out.
 
 So, trying again...
 
 I think I want to start with FreeBSD 6.2 with Xorg upgraded to 7.3.  I
 tried to accomplish this over the course of several installs.  In the
 end, I decided this should work:
 
 a)  install 6.2, plain User setup (NOT with Xorg, and NOT with ports)
 
 b) portsnap fetch
 
 c) portsnap extract
 
 d) cd to /usr/ports/x11/xorg  and make install clean
 
 When I do pkg_version -v, it SEEMS to have installed the xorg that I
 want.
 
 Is this the right procedure to start with?
 
 Yes, with one caveat.  You need to run mergebase.sh or manually create the 
 symlink for /usr/X11R6.  /usr/ports/Tools/scripts/mergebase.sh

No, that is not necessary if he installs everything from scratch.



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SSH VPN Help

2007-11-01 Thread Rob Hancock
I'm hoping some of you can help me out a bit with this...I'm trying  
to setup remote access of my laptop at work via SSH tunnels between a  
FreeBSD box at the office and my FreeBSD firewall at home.


XP Laptop (work) - FreeBSD (work) - FreeBSD (home) - Mac (home)  
or Mac (remote)


I understand that I need to set up a reverse SSH tunnel from FBSD  
(work) to FBSD (home).  It's the tying in of the XP box and my Mac to  
either end that I'm having troubles with.  Should those connections  
also be done via SSH tunnels or should I use port redirection on the  
FSBD boxes via ipfilter or an equivalent?


Then end goal is to be able to use VNC on either my home Mac or with  
my Mac laptop remotely to control my XP laptop I'll leave at work.


Any suggestions would be helpful.  A general Idea of how everything  
should interact is basically what I'm looking for.  I'll figure it  
out by trial and error once I have a rough plan.


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


'break' system call man page is missing?

2007-11-01 Thread Yuri
I can't find man page for system call break.
/usr/src/lib/libc/sys/ seems to have sources for many man pages but not for 
break.

In the mean time in one case it fails for me with errno=22 (Invalid argument).
Is it's argument (pointer) related to /proc/##/map? One of the blocks mentioned
in this map file has upper limit equal to the argument pointer of break.

What is the condition when errno=22 is returned?

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


Re: portupgrade error

2007-11-01 Thread Norberto Meijome
On Wed, 31 Oct 2007 16:50:59 +0200
Petre Bandac [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 hallo
 
 when portupgrading I have the following segfault
 
 dell# portupgrade -Rr zsh
 /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:67: [BUG] Segmentation fault
 ruby 1.8.6 (2007-09-24) [i386-freebsd6]
 
 Abort (core dumped)
 
 
 there have been made no changes in the system in the last 6 months or
 even more
 
 dell# uname -a
 FreeBSD dell.nsc.ro 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Mon Dec 18
 03:49:02 EET 2006 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/DELL  i386
 dell#
 
 
 where should I look in order to solve the problem ?
 

does pkgdb -Ff fix it ? (make a backup of your ports db first, just in case)

B

_
{Beto|Norberto|Numard} Meijome

If you want to realize what a ridiculous word 'lifestyle' is, consider the 
fact that technically speaking, Attila the Hun had an  active, outdoor 
lifestyle.
  George Carlin

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 'break' system call man page is missing?

2007-11-01 Thread Yuri
In /usr/include/sys/syscall.h it's listed as SYS_break with the number 17.
Is it the same as brk(2)?

Yuri

Quoting Jonathan Chen [EMAIL PROTECTED]:
 Are you looking for brk(2)?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IPSec SPD

2007-11-01 Thread Victor Sudakov
Brian A Seklecki (Mobile) wrote:
  
  Suppose our remote office uses the 10.1.1.0/24 network, and the whole
  company uses the 10.0.0.0/8 network.
  
  How do we set up the SPD entries to encrypt traffic to the
  headquarters and back?
  
 
 I do hub a spoke config just like this using OpenBSD and Cisco VPN3k
 using /24s at the edge and /16s at the core.  All works well.  Better
 than full mesh.
 
 I just ran into a small bug with the new Ipsec stack in OpenBSD where I
 had to have a null policy -- otherwise traffic with destination routes
 for the locally connected /24 would accidentally be fwd'd across the
 tunnel (because ipsec tunnel evaluation happens earlier in ip_output(),
 which is non-standard)
 
 
  spdadd 10.0.0.0/8 10.1.1.0/24
  ...
  spdadd 10.1.1.0/24 10.0.0.0/8
  ...

Thank you Brian, this works. I should not have worried.
On FreeBSD 6.2 it works even without any null policy (I think you
meant the none policy).

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


optimizing current

2007-11-01 Thread Aryeh M. Friedman
In /usr/src/UPDATE for 8-CURRENT it says to remove kernel debugging and
malloc diagnostics in userland... I have done the first but am not sure
if I got the second correct:

1. All I have to do is uncomment #define MALLOC_PRODUCTION in 
/usr/src/lib/libc/stdlib/malloc.c ?

2. If not what else needs to be done?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 'break' system call man page is missing?

2007-11-01 Thread Jonathan Chen
On Thu, Nov 01, 2007 at 12:15:48AM -0700, Yuri wrote:
 I can't find man page for system call break.
 /usr/src/lib/libc/sys/ seems to have sources for many man pages but not for 
 break.
 
 In the mean time in one case it fails for me with errno=22 (Invalid argument).
 Is it's argument (pointer) related to /proc/##/map? One of the blocks 
 mentioned
 in this map file has upper limit equal to the argument pointer of break.

Are you looking for brk(2)?
-- 
Jonathan Chen [EMAIL PROTECTED]
--
If everything's under control, you're going too slow
  - Mario Andretti
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Virtualization

2007-11-01 Thread Norberto Meijome
On Thu, 1 Nov 2007 02:09:20 +
John Murphy [EMAIL PROTECTED] wrote:

 I found a clue to a cure, but qemu was dropping cores when I tried it
 recently. Tried bochs too; I quite like it.

Hi john,
how do you find bochs compared to qemu, in relation to speed and features? 
cheers,
B

_
{Beto|Norberto|Numard} Meijome

Mind over matter: if you don't mind, it doesn't matter

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: optimizing current

2007-11-01 Thread Dag-Erling Smørgrav
Aryeh M. Friedman [EMAIL PROTECTED] writes:
 In /usr/src/UPDATE for 8-CURRENT it says to remove kernel debugging and
 malloc diagnostics in userland... I have done the first but am not sure
 if I got the second correct:

man malloc

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


problem with 3Com 3c905C-TX Fast Etherlink XL

2007-11-01 Thread eng. Anatoli Marinov
Hi Guys,

I have several 3Com 3c905C-TX Fast Etherlink XL NIC's but they work
very bad with 7.0 and 6.2. The problem appears when I have more than
50 Mb through the network interface. Then the card restarts maybe the
driver restart it I am not sure.

dmesg shows me something like:

xl0: transmission error: 90
xl0: tx underrun, increasing tx start threshold to 120 bytes
xl0: link state changed to DOWN
xl0: link state changed to UP
xl0: link state changed to DOWN
xl0: link state changed to UP
xl0: link state changed to DOWN
xl0: link state changed to UP
xl0: link state changed to DOWN
xl0: link state changed to UP
xl0: watchdog timeout
xl0: link state changed to DOWN
xl0: link state changed to UP


What do you think maybe this NIC is buggy or I have to change something?

dmesg -
xl0: 3Com 3c905C-TX Fast Etherlink XL port 0xec00-0xec7f mem 0xe700-0xe700
007f irq 10 at device 12.0 on pci0

uname -a -
FreeBSD free.bsd-bg.net 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Fri Oct 26
00:24:20 EEST 2007
[EMAIL PROTECTED]:/mnt/ad0s1/system/obj/mnt/ad0s1/system/src/sys/MOON_7
 i386

P.S. I've seen the same with all my cards and xl driver.


Thanks in advance


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


Re: Xorg and WSXGA

2007-11-01 Thread Josh Paetzel
On Thursday 01 November 2007 12:53:11 am Crist J. Clark wrote:
 On Tue, Oct 30, 2007 at 07:50:10PM -0400, Brian A. Seklecki wrote:
  On Mon, 2007-10-29 at 23:36 -0700, Crist J. Clark wrote:
   I finally dumped the CRT and bought a ridiculusly cheap 20
   LCD monitor. Works great except I'm having problems getting it
   to go widescreen and use the full display area.
  
   I followed the instruction
 
  xinit -- -verbose 9 -logverbose 9
 
  It should print out a list of modes that it _will_ validate.

 It doesn't really give me any useful additional information
 that I notice. I still don't understand why it refuses to go for
 1680x1050. The log is attached.

Could you attach your xorg.conf?  It looks like there is a combination of 
problems keeping it from doing 1680x1050.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


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


Re: Virtualization

2007-11-01 Thread John Murphy
On Thu, 1 Nov 2007 20:21:41 +1100
Norberto Meijome [EMAIL PROTECTED] wrote:

 On Thu, 1 Nov 2007 02:09:20 +
 John Murphy [EMAIL PROTECTED] wrote:
 
  I found a clue to a cure, but qemu was dropping cores when I tried it
  recently. Tried bochs too; I quite like it.
 
 Hi john,
 how do you find bochs compared to qemu, in relation to speed and features? 
 cheers,

Hi Norberto, I haven't done any speed measurements, but qemu seems
a lot faster. It may be possible to make bochs use real memory, but
qemu defaulting to use it is bound to make a lot of difference.

I miss the 'lights' in boch's status bar though...

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


Undefined symbol __sbmaskrune

2007-11-01 Thread Nick Johnson
Upgraded to 6.2-stable (and got 6.3-prerelease) today.  Needed to upgrade 
amavisd-new, and that required upgrading p5-Convert-UUlib.  (All done from 
ports.)

Unfortunately, when amavisd runs, it produces this error now:

/libexec/ld-elf.so.1: 
/usr/local/lib/perl5/site_perl/5.8.6/mach/auto/Convert/UUlib/UUlib.so: 
Undefined symbol __sbmaskrune

I'm not sure where this symbol is supposed to be found, but it's 
referenced in a great many other libraries which don't seem to be having 
any problems with linking or finding that symbol.

Any ideas what could be going wrong?  I'm at a loss for even how to begin 
tracking this down...

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


sound: get sbc, but no pcm

2007-11-01 Thread Anton Shterenlikht
I'm trying to get a sound from my laptop. I can see the actual card in dmesg,
but no audio framework driver (no pcm).

hardware: i386 armada 1700 laptop
sound: ESS 1869 16-bit Plug and Play (PnP)
OS: FBSD 6.3-prerelease

I checked that the sound is working using Compaq PC diagnostics floppy.

I added 

device  sound
device  snd_sbc
device  snd_sb16

to the kernel configuration file and

hint.pcm.0.at=isa
hint.pcm.0.port=0x220
hint.pcm.0.irq=5
hint.pcm.0.drq=1
hint.pcm.0.flags=0x0

to /boot/device.hints. The port was set up using Compaq Setup for Portables
floppy.

I can see the card in dmesg as sbc0:

unknown: PNP0401 can't assign resources (port)
unknown: PNP0501 can't assign resources (port)
unknown: PNP0700 can't assign resources (port)
sbc0: ESS ES1869 (Compaq OEM) at port 0x230-0x23f,0x388-0x38b,0x300-0x301 irq
5 drq 0,1 on isa0
sbc0: [GIANT-LOCKED]
unknown: PNP0303 can't assign resources (port)
unknown: PNP0f13 can't assign resources (irq)
unknown: PNP0c02 can't assign resources (memory)

but I cannot see pcm, and /dev/sndstat is empty:

# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
#
 
What am I missing?
Are the unknown messages relevant?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Please check my IPFW ruleset

2007-11-01 Thread deeptech71

[resending, doesn't seem to have gotten through]

I'm making some ipfw rules, and I would appreciate if someone could 
check these for me.


My intention is to create a replacement for a hardware router, which 
basically works by allowing all outbound traffic, blocking all 
unauthorized/unrequested inbound traffic, and has a setting (the so 
called DMZ) to redirect all the unauthorized/unrequested packets to a 
local computer. Plus I want to add something like remote telnet/ssh 
capabilities to override the DMZ.


| ipfw.rules |
#!/bin/sh

dns=195.228.240.249,195.228.242.180
lan=192.168.123.0/24
ext=tun0
int=rl0

ipfw=ipfw -q
add=$ipfw add
allow=$add allow
block=$add deny
nat=$add divert natd
check=$add check-state
pipe=$add pipe

fa=from any
ta=to any
fata=$fa $ta
reserved=192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,127.0.0.0/8,0.0.0.0/8,169.254.0.0/16,192.0.2.0/24,204.152.64.0/23,224.0.0.0/3



$ipfw -f flush

$allow all $fata via lo0
$allow all $fata via $int

# INBOUND #

$block all $fa to $reserved in via $ext # ISP fuckup?

$nat all $fata in via $ext
$check

$block all $fata frag in via $ext
$block tcp $fata established in via $ext
$block all from $reserved in via $ext

# :: DEFINE SOME INBOUND SERVICES HERE ::
#$allow tcp $fa to me 80 in via $ext setup limit src-addr 4
#$allow tcp $fa to me 22 in via $ext setup limit src-addr 4
#$allow tcp $fa to me 23 in via $ext setup limit src-addr 4

$block all $fata in via $ext

# OUTBOUND #

# :: DEFINE SOME RESTRICTIONS HERE ? ::

$nat tcp $fata out via $ext setup keep-state
$nat all $fata out via $ext keep-state
$allow all $fata out via $ext

$block $fata

| eof ipfw.rules |

OK, questions...

# ISP fuckup? - does it make sense to defend against my ISP hacking me?

What does divert natd actually do? Does it only change the IP header?

Can I move the three lines
$block all $fata frag in via $ext
$block tcp $fata established in via $ext
$block all from $reserved in via $ext
to ahead of
$nat all $fata in via $ext ?

I'm curious about this one:
$nat tcp $fata out via $ext setup keep-state
$nat all $fata out via $ext keep-state
$allow all $fata out via $ext
For an outbound packet, rules should be keep-state, divert, allow, in 
this order, as far as I know. What about these lines?


Uhm, ed0 is my network card doing PPPoE. How do I allow it to do PPPoE 
traffic only?


Did I miss anything?


Some other IPFW questions:
deny ip == deny all?
Why do I have to write from any to any all the time, when it just 
means independently of source and destination? Why can't I write just 
drop all?



Thank you very very much in advance :)

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


Re: sound: get sbc, but no pcm

2007-11-01 Thread Ariff Abdullah
On Thu, 1 Nov 2007 13:06:08 +
Anton Shterenlikht [EMAIL PROTECTED] wrote:
 I'm trying to get a sound from my laptop. I can see the actual card
 in dmesg, but no audio framework driver (no pcm).
 
 hardware: i386 armada 1700 laptop
 sound: ESS 1869 16-bit Plug and Play (PnP)
 OS: FBSD 6.3-prerelease
 
 I checked that the sound is working using Compaq PC diagnostics
 floppy.
 
 I added 
 
   device  sound
   device  snd_sbc
   device  snd_sb16
 
 to the kernel configuration file and
 
   hint.pcm.0.at=isa
   hint.pcm.0.port=0x220
   hint.pcm.0.irq=5
   hint.pcm.0.drq=1
   hint.pcm.0.flags=0x0
 
 to /boot/device.hints. The port was set up using Compaq Setup for
 Portables floppy.
 
 I can see the card in dmesg as sbc0:
 
 unknown: PNP0401 can't assign resources (port)
 unknown: PNP0501 can't assign resources (port)
 unknown: PNP0700 can't assign resources (port)
 sbc0: ESS ES1869 (Compaq OEM) at port
 0x230-0x23f,0x388-0x38b,0x300-0x301 irq 5 drq 0,1 on isa0
 sbc0: [GIANT-LOCKED]
 unknown: PNP0303 can't assign resources (port)
 unknown: PNP0f13 can't assign resources (irq)
 unknown: PNP0c02 can't assign resources (memory)
 
 but I cannot see pcm, and /dev/sndstat is empty:
 
 # cat /dev/sndstat
 FreeBSD Audio Driver (newpcm)
 Installed devices:
 #
  
 What am I missing?

snd_ess

 Are the unknown messages relevant?
 
 many thanks
 anton
 


--
Ariff Abdullah
FreeBSD

... Recording in stereo is obviously too advanced
and confusing for us idiot * users :P 


pgpnQAl2fY1va.pgp
Description: PGP signature


Re: Xorg and WSXGA

2007-11-01 Thread [LoN]Kamikaze
Crist J. Clark wrote:
 On Tue, Oct 30, 2007 at 07:50:10PM -0400, Brian A. Seklecki wrote:
 On Mon, 2007-10-29 at 23:36 -0700, Crist J. Clark wrote:
 I finally dumped the CRT and bought a ridiculusly cheap 20
 LCD monitor. Works great except I'm having problems getting it
 to go widescreen and use the full display area.

 I followed the instruction
 xinit -- -verbose 9 -logverbose 9

 It should print out a list of modes that it _will_ validate.
 
 It doesn't really give me any useful additional information
 that I notice. I still don't understand why it refuses to go for
 1680x1050. The log is attached.

Guessing from the log you should add a Virtaul value to your configuration the
following is from my 2 Screen setup:

Section Screen
Identifier  Screen LVDS-CRT
Device  ATI Radeon 7500 Mobile LVDS-CRT
Monitor LVDS Monitor
Monitor VGA-0 Monitor
DefaultDepth 24
SubSection Display
Depth   24
Virtual 3072 1536
EndSubSection
EndSection

Just add Virtual settings matching your desired resolution. Also, guessing
from your log you should gather as much technical data about the screen as
possible and hack it into a modeline generator. You can test modelines on the
fly with xrandr, before you enter them into the xorg.conf.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: launcher problems...

2007-11-01 Thread James
On 11/1/07, Gary Kline [EMAIL PROTECTED] wrote:

 Guys,

 I don't understand this: I just recompiled as much of Gnome as I
 an think of.Still missing are the greeting application
 (cf to the xlogin, perhaps).  And, after logging in to root
 wwith the daisy-flower login screen, when I tried to exec a term
 or konsole, it said I am missing a launcher.

 Anybody  knowwhat I have to do here?

 merci d'advanc,

 gary



 --
   Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
   http://jottings.thought.org   http://transfinite.thought.org

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


You said you hadn't followed the handbook instructions on installing Gnome
last time; have you tried that yet?

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


Re: extracting 7_bit_ascii from ms_word files

2007-11-01 Thread John Nielsen

Quoting spellberg_robert [EMAIL PROTECTED]:

i finally ran into a situation where
  my existing approaces are no longer satisfactory.

i never bought office.
i have a twelve_year_old version of wordperfect
  from [ at that time ] novell that still works just fine
  [ i first used wordperfect in the early 1980's; why change ?
  ].
it doesn't recognize new ms formats.

sometimes, i can use wordpad on
  my win_98_se box that still works;
  but not always.

my lawyer insists on hard_copy and snail_mail,
  so my principal application is, actually, obviated.

if files only had a few dozen lines,
  i could edit them by hand in vi.

i simply did not have enough situations
  to demand a more sophisticated approach;
  now, i do.

i started here [ over 1000 entries ]

http://www.freebsd.org/ports/textproc.html

  where i found nothing relevant under doc and
  where i found word2x, which looks --really-- old and
  where i found wv, which seemed more promising.


wv by itself could probably do most of what you're looking for. It 
includes a wvText binary which produces quasi-formatted text-only 
output from .doc input. It also includes wvHtml, wvPS, wvPDF, wvLatex, 
etc.


Others have already commented on the GUI-based Word workalikes 
available but I'll add my own. I like Abiword since it's lightweight 
but I tend to use OpenOffice.org on modern-ish machines since it can 
handle more bells and whistles (and if I'm using a word processor 
instead of a text editor then bells and whistles are frequently the 
reason). Koffice/kword is between the other two in regard to complexity 
and is a good alternative if something doesn't work quite right 
elsewhere. All can read and write Word documents compatible with the 
97/XP/2003 versions of Office. Not sure about the Word 2007 format.


-JN


searching the questions and newbies mail archives,
  i found antiword and catdoc, but this is from 2002_feb.

while reading up on wv, i found this

http://www.abisource.com/

  which caused me to search.

i found this

http://www.freebsd.org/cgi/ports.cgi?query=abiwordstype=all

both of these seem to jog my memory, but my memory 



my application is to exchange text files, by e_mail,
  with someone who thinks ms products are the be_all and end_all
  [ after all,
  if everyone is spending thousands of dollars on software,
  just like he is,
  what makes me so special ?
  ].
i anticipate acquiring other people like this in the near future,
  so my time on this just may be well_spent.
in general,
  these are not the kind of folks who find
  manipulating files intuitively obvious.
yet, i may find that i have to give them special instruction.

i am not looking for something wonderful,
  just reasonably competent and reasonably current.
if, in addition to my desired direction,
  i can convert a 7_bit_ascii to a .doc file for his benefit,
  that's some further whining that i can avoid.



i strongly suspect that,
  as soon as this becomes a solved problem,
  ms changes something critical,
  so this may be a fool's errand.
none_the_less, i'll give it a try.

which one or several things are generally accepted
  for this format_conversion task ?

is this abiword one of them or do i seek something else ?

if something else, can someone point me in a useful direction
  [ whether or not it is something i have named ] ?



while 6.2 and, soon, 7.x are de rigeur,
  if it works on 4.11 [ very long story ], that's a plus.



thanks whole bunches in advance.

[ please cc me,
as my attempt to re_subscribe to the list as a courtesy
doesn't seem to be taking.
]


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


rc and faster bootups

2007-11-01 Thread David Naylor
Hi

I've been looking into speeding the FreeBSD bootup speed (currently on my
laptop it is sitting at 2 minutes with autologin with KDE).  One thing I
noticed is the option of rc_fast_and_loose which did not work...

My first question: is there any reason that rc_fast_and_loose is still
around since many scripts simply don't work with it or should someone try
clean up the scripts instead?

Running FreeBSD on a SMP machine it still only runs a sequential boot
process.  Is it possible (and is someone working on it) to run the startup
scripts in parallel.  I have been looking into it and managed to write (in
python, just proof of concept) rcorder replacement that outputs sufficient
information in order to run the boot scripts in parallel.  If someone is
willing to mentor me I am eager to continue my investigation.

Thank you.

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


sh script difficulties (running parallel functions)

2007-11-01 Thread David Naylor
Hi,

I am having a hard time getting (very complex script for me) to work.  The
basic idea is that this script runs a bunch of tarkets, many of which are
time consuming but low on resources (such as downloading files).  Now if I
run the tarkets all at once (given some dependancy issues) it greatly speeds
up the process (about 5 time speed increase).  However I do not know how to
do this using sh...

Example

#!/bin/sh

worker1() {
  # Copy some files
}

worker2() {
  # Download some files
}

worker3() {
  # Do something else
}

. # and so on

run_jobs() {
  worker1 
  worker2 
  worker3 
  # !!! Somehow wait for over workers to finish before continuing !!!
}

#Finished

Furthermore, how can signals be handled such that the signals get
accumulated and once all the other workers have finished the signals get
passed on (appropriately)

Thank you.

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


Re: sound: get sbc, but no pcm

2007-11-01 Thread Anton Shterenlikht
On Thu, Nov 01, 2007 at 10:00:11PM +0800, Ariff Abdullah wrote:
 On Thu, 1 Nov 2007 13:06:08 +
 Anton Shterenlikht [EMAIL PROTECTED] wrote:
  I'm trying to get a sound from my laptop. I can see the actual card
  in dmesg, but no audio framework driver (no pcm).
  
  I added 
  
  device  sound
  device  snd_sbc
  device  snd_sb16
  
  but I cannot see pcm, and /dev/sndstat is empty:
  
  # cat /dev/sndstat
  FreeBSD Audio Driver (newpcm)
  Installed devices:
  #
   
  What am I missing?
 
 snd_ess

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


imap-uw and sasl

2007-11-01 Thread Michael Grant
I just installed imap-uw and saslauthd on my box.  I'm having trouble
getting it to accept plain text logins (in fact any logins at all).
I'm trying to authenticate people in the passwd file.

I get the following in the maillog:

Nov  1 11:14:53 myhost ipop3d[97953]: Unexpected client disconnect,
while reading line user=??? host=example.com [10.20.30.40]

Yes, the user=??? is just like that with the question marks.  I am
definitely sending the username.

I'm thinking it might be a sasl problem or something I've not
configured with saslauthd but I don't see it.

I see these messages in /var/log/messages but they do not seem
correlated with the time of the I tried to login (and there's many
fewer of them):

Nov  1 11:00:32 charm ipop3d[87124]: Login failed user=myname
auth=myname host=example.com [10.20.30.40]


Ideas?  Suggestions where to look for more error messages?

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


libstdc++ extentions

2007-11-01 Thread Boris Kochergin
Hi, list. I'd like to use some code from the 
/usr/include/c++/4.2/ext/pb_ds part of libstdc++ on 
RELENG_7--particularly their patricia trie implementation. The various 
patricia trie headers, however, attempt to include 
ext/pb_ds/detail/type_utils.hpp, among other things, which don't exist. 
I notice that GCC from ports installs with all of said headers, and 
indeed, I can use the patricia trie code if I compile it with, for 
example, G++ 4.2.2 from ports. I also notice that the headers missing 
from /usr/include/c++/4.2/ext/pb_ds exist in 
/usr/src/contrib/libstdc++/include/ext/pb_ds, so my question is: is 
there a way to make installworld, etc. install them? I could copy them 
over manually and whatnot, but I'm curious about a proper solution. 
Thanks.


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


Re: sh script difficulties (running parallel functions)

2007-11-01 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 11/1/07, David Naylor  wrote:
   # !!! Somehow wait for over workers to finish before continuing !!!
 }

 #Finished

 Furthermore, how can signals be handled such that the signals get
 accumulated and once all the other workers have finished the signals get
 passed on (appropriately)


One simplistic way of doing something like that is to make each worker
process write a file out to disk upon completion.  Then have a while
loop that sleeps for a minute and then checks for the existence of
that file and if it finds it, execute other commands.

Probably not the cleanest method, but I think you'll find that
handling forks and signals in a shell script is more trouble than it's
worth.

- --
Andy Harrison
public key: 0x67518262
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHKgQ1NTm8fWdRgmIRAn7eAKCZthrDzv0j7J6urphY3ohm6bSPZgCeIAt6
vhC2Zxw0ZTxw8eT+NZ/Uktg=
=schR
-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: sh script difficulties (running parallel functions)

2007-11-01 Thread Jan Grant
On Thu, 1 Nov 2007, David Naylor wrote:

 Hi,
 
 I am having a hard time getting (very complex script for me) to work.  The
 basic idea is that this script runs a bunch of tarkets, many of which are
 time consuming but low on resources (such as downloading files).  Now if I
 run the tarkets all at once (given some dependancy issues) it greatly speeds
 up the process (about 5 time speed increase).  However I do not know how to
 do this using sh...
 
 Example
 
 #!/bin/sh
 
 worker1() {
   # Copy some files
 }
 
 worker2() {
   # Download some files
 }
 
 worker3() {
   # Do something else
 }
 
 . # and so on
 
 run_jobs() {
   worker1 
   worker2 
   worker3 
   # !!! Somehow wait for over workers to finish before continuing !!!
 }
 
 #Finished
 
 Furthermore, how can signals be handled such that the signals get
 accumulated and once all the other workers have finished the signals get
 passed on (appropriately)

The wait shell builtin is part of what you're after.

You probably will need to trap the signals you're interested in 
catching. Just a

trap 'int=1' INT
wait
trap - INT

if [ x$int = x1 ]; then ... ; fi

should do it.


-- 
jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661   http://ioctl.org/jan/
There's no convincing English-language argument that this sentence is true.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sh script difficulties (running parallel functions)

2007-11-01 Thread Dan Nelson
In the last episode (Nov 01), David Naylor said:
 Hi,
 
 I am having a hard time getting (very complex script for me) to work.  The
 basic idea is that this script runs a bunch of tarkets, many of which are
 time consuming but low on resources (such as downloading files).  Now if I
 run the tarkets all at once (given some dependancy issues) it greatly speeds
 up the process (about 5 time speed increase).  However I do not know how to
 do this using sh...
 
 Example
 
 #!/bin/sh
 
 worker1() {
   # Copy some files
 }
 
 worker2() {
   # Download some files
 }
 
 worker3() {
   # Do something else
 }
 
 . # and so on
 
 run_jobs() {
   worker1 
   worker2 
   worker3 
   # !!! Somehow wait for over workers to finish before continuing !!!
 }

You can use the wait shell builtin to wait for all children.
 
 #Finished
 
 Furthermore, how can signals be handled such that the signals get
 accumulated and once all the other workers have finished the signals get
 passed on (appropriately)

You mean trapping ^C in the parent so that you can't stop the script
until all the workers are done?  That's more complicated to do in a
shell script.  Masking ^C completely is easy using the trap builtin ,
but catching it and then doing a kill -INT $$ after all your workers
have completed is more complicated since the wait command will exit
when a signal is received, and I don't think it will tell you why it
exited (all children done, or got a signal).

-- 
Dan Nelson
[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: SSH VPN Help

2007-11-01 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 11/1/07, Rob Hancock  wrote:
 I'm hoping some of you can help me out a bit with this...I'm trying
 to setup remote access of my laptop at work via SSH tunnels between a
 FreeBSD box at the office and my FreeBSD firewall at home.

 XP Laptop (work)  FreeBSD (work)  FreeBSD (home)  Mac (home)
 or Mac (remote)



I've done similar hoop-jumping before.  It's a mish-mash of local and
remote ssh tunnels.

In this case, I would do something like this...

XP Laptop initiates a remote tunnel to FreeBSD work...

ssh -R 5900:localhost:65900 [EMAIL PROTECTED]

This will cause traffic on freebsd-work port 65900 to be directed to
your xp laptop on port 5900.


Then a remote tunnel from FreeBSD work to FreeBSD home.

ssh -R 65900:localhost:65900 [EMAIL PROTECTED]

This will make freebsd-home listen for traffic on port 65900 and
direct that traffic to port 65900 on freebsd-work, which you've
already set up to direct that traffic to port 5900 on your xp laptop.

Then from your mac, initiate a local tunnel to FreeBSD home...

ssh -L 5900:localhost:65900 [EMAIL PROTECTED]

This should direct the traffic to the already-waiting port 65900 on
freebsd-home machine.

Now, from the mac, you should be able to run your vnc viewer on
localhost and have your xp laptop come up.

Clunky, but once you've got the tunnels all connected right, it works
ok.  You don't have to use 65900 of course, I just like to use a
nonstandard port for the in-between servers.

- --
Andy Harrison
public key: 0x67518262
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHKhLZNTm8fWdRgmIRAtloAKD40IPMX5SF81wmxS7SUvwA1Ky9ZQCfWpTU
8BpBbk+vxjmsZsQxVFbo+FM=
=EFIV
-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]


iso.1 target and release(8) in RELENG_7 (WAS: Re: release(8) environmental variables)

2007-11-01 Thread Brian A. Seklecki
Here's some fun -- I'm pretty sure this worked in RELENG_6:

make release in /usr/src/release into RELEASEDIR=/opt/releasedir

The rebuild completes (release.1 - release.8), the kernels are built,
the file system layout is prepared (ftp.1 - cdrom.3), then (I think)
the iso.1 target is called and the images are zero-bytes.  Log excerpts
below...

Either I'm confused, I have my environmental variables set wrong, or
this is broken. :)

1) My $LOCAL_SCRIPT properly copies mkisofs(1) and mkhybrid(1) into
place in the $CHROOTDIR/usr/bin

   $ ls -al  /opt/relchroot/usr/bin/mkisofs
   -r-xr-xr-x  1 root  wheel  510712 Nov  1
02:13 /opt/relchroot/usr/bin/mkisofs

2) On the root of the system, I have to make /R a sylink
   to /opt/relchroot/R to make make iso.1 succeed :

   # ls -al /R 
lrwxr-xr-x  1 root  wheel  16 Oct 29 23:20 /R - /opt/relchroot/R


Other-wise:

 [EMAIL PROTECTED] /usr/src/release]# make iso.1
   Creating ISO images...
   mkisofs: No such file or directory. Invalid node - /R/cdrom/bootonly
   *** Error code 2
   Stop in /usr/src/release.


3) I don't see how $CHROOTDIR is used in /usr/src/release/Makefile at:

   iso.1: 
   [...]

  Unless, when not run as a manual target outside of the chroot(), it
  runs in the chroot and /R is relative to $CHROOTDIR?.  That would make
  sense of the error in the log excerpt below matched what I encounter
  on the command line as a manual run.

I'm setting:

 # applies to build
 export DESTDIR=/opt/dest
 export MAKEOBJDIRPREFIX=/opt/obj
 export RELEASEDIR=/opt/release
 export CHROOTDIR=/opt/relchroot

This is a shell script that runs nightly -- it worked in RELENG_6.

~BAS

[...]
Created /R/stage/floppies/boot.flp
touch floppies.1
touch floppies.3
Setting up FTP distribution area
0 blocks  
0 blocks
touch ftp.1
Building CDROM live filesystem image
0 blocks
0 blocks
0 blocks  
0 blocks
0 blocks
0 blocks
0 blocks
0 blocks
0 blocks
Copy GENERIC kernel to boot area
Setting up CDROM boot area
touch cdrom.1
Building CDROM disc1 filesystem image
0 blocks
0 blocks
Building CDROM disc2 filesystem image
touch cdrom.2
Building bootonly CDROM filesystem image  
touch cdrom.3
Release done
[...]


On Wed, 2007-10-31 at 19:45 +0200, Giorgos Keramidas wrote:
 On 2007-10-31 13:26, Brian A. Seklecki [EMAIL PROTECTED] wrote:
  really sucks.
  
  I believe that's intentional, so re-running make release with
  different CHROOTDIR values will produce consistently similar binaries.
  
  I use LOCAL_SCRIPT to copy /etc/make.conf (well, /etc/src.conf) into place 
  inside the jail for the rebuild so that I can build a custom internal 
  release w/o certain subsystems (IPv6 or CSH, for example)
  
  Is there a better way to do it?
 
 LOCAL_SCRIPT sounds fine to me :)
 
 ___
 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: FreeBSD 6.2 with Xorg 7.3

2007-11-01 Thread RW
On Thu, 1 Nov 2007 09:50:57 +0100
Erik Trulsson [EMAIL PROTECTED] wrote:

 On Wed, Oct 31, 2007 at 08:02:42PM -0500, Paul Schmehl wrote:

  Yes, with one caveat.  You need to run mergebase.sh or manually
  create the symlink
  for /usr/X11R6.  /usr/ports/Tools/scripts/mergebase.sh
 
 No, that is not necessary if he installs everything from scratch.

It's still sensible to run mergebase.sh as FreeBSD 6.2 was released
before the change and there are files under /etc with hard-coded
references to /usr/X11R6. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 'break' system call man page is missing?

2007-11-01 Thread Yuri
 What is the condition when errno=22 is returned?
I figured this out myself by looking into the kernel source code.

But there still should be a man page for this since this seems to be only (or at
least one of the very few) system calls w/out documentation.

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


Re: FreeBSD 6.2 with Xorg 7.3

2007-11-01 Thread Frank Staals

Paul Schmehl wrote:

--On October 31, 2007 12:43:48 PM -0400 John [EMAIL PROTECTED] wrote:


I hope this is an appropriate list for this type of question; please let
me know if another list is more suitable to newbie-type quesions.

I've been using Linux for a long time, and every year or so I have a
crack at *BSD to see what I'm missing.  But it never works out.

So, trying again...

I think I want to start with FreeBSD 6.2 with Xorg upgraded to 7.3.  I
tried to accomplish this over the course of several installs.  In the
end, I decided this should work:

a)  install 6.2, plain User setup (NOT with Xorg, and NOT with ports)

b) portsnap fetch

c) portsnap extract

d) cd to /usr/ports/x11/xorg  and make install clean

When I do pkg_version -v, it SEEMS to have installed the xorg that I
want.

Is this the right procedure to start with?


Yes, with one caveat.  You need to run mergebase.sh or manually create 
the symlink for /usr/X11R6.  /usr/ports/Tools/scripts/mergebase.sh
Isn't the default X11BASE for 6.2 still on /usr/X11R6/  I thought it 
still was, then you will run into trouble again when you are going to 
update Xorg again in the future. So I think you will need a 
X11BASE=${LOCALBASE} in /etc/make.conf


--
-Frank Staals


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


Set perms on attach of USB umass disk

2007-11-01 Thread Darren Spruell
I've been trying (and failing) to figure out how to adjust ownership
or permissions of a USB memory stick on device attach.


umass0: SanDisk Corporation Cruzer Mini, rev 2.00/0.20, addr 5
da0 at umass-sim0 bus 0 target 0 lun 0
da0: SanDisk Cruzer Mini 0.4 Removable Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 977MB (2001888 512 byte sectors: 64H 32S/T 977C)

$ usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x), rev 1.00
 port 1 addr 2: full speed, power 100 mA, config 1, Dell USB Keyboard
Hub(0x1004), Dell(0x413c), rev 48.01
  port 1 addr 3: low speed, power 90 mA, config 1, Dell USB Keyboard
Hub(0x2006), Dell(0x413c), rev 48.00
  port 2 addr 5: full speed, power 100 mA, config 1, Cruzer
Mini(0x5150), SanDisk Corporation(0x0781), rev 0.20


I've tried altering devfs.conf but this appears to only work for
devices that are attached at startup of devfs. I've tried configuring
devd(8):

attach 100 {
device-name da[0-9]+s1;
action /bin/chmod 0660 $device-name;
};

attach 100 {
device-name da[0-9]+;
action /bin/chmod 0660 $device-name;
};

Neither of these seem to result in the permission change I'm after
(making device writable by my user which is in the operator group):

$ ls -l /dev/da0*
crw-r-  1 root  operator0, 165 Oct 21 13:08 /dev/da0
crw-r-  1 root  operator0, 166 Oct 21 13:08 /dev/da0s1

What's the right way to handle this?

-- 
Darren Spruell
[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: launcher problems...

2007-11-01 Thread Gary Kline
On Thu, Nov 01, 2007 at 09:16:40AM -0600, James wrote:
 On 11/1/07, Gary Kline [EMAIL PROTECTED] wrote:
 
  Guys,
 
  I don't understand this: I just recompiled as much of Gnome as I
  an think of.Still missing are the greeting application
  (cf to the xlogin, perhaps).  And, after logging in to root
  wwith the daisy-flower login screen, when I tried to exec a term
  or konsole, it said I am missing a launcher.
 
  Anybody  knowwhat I have to do here?
 
  merci d'advanc,
 
  gary
 
 
 
  --
Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  [EMAIL PROTECTED]
 
 
 You said you hadn't followed the handbook instructions on installing Gnome
 last time; have you tried that yet?
 


This is what I have been doing since my first try at gnome circa
2002.   Altho in my .xsession I have exec gnome-session rather 
than the full path to the binary.

As kline it looks for the typical greeter app, can't find
it, and opens a second login screen.  Once I'm logged in there, 
things go totally dead.  Finally a pop-up dialog off screen 
displays what appears to be the contents of ~/.xsession-error.
From there, things lock up.

As root, I do get my usual menu strips, but empty.  When I
right-click (to exec an xterm) the applet says that I'm missing 
a launcher.  I'm out of idears.

gary


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

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: FreeBSD 6.2 with Xorg 7.3

2007-11-01 Thread Paul Schmehl
--On Thursday, November 01, 2007 09:50:57 +0100 Erik Trulsson 
[EMAIL PROTECTED] wrote:



On Wed, Oct 31, 2007 at 08:02:42PM -0500, Paul Schmehl wrote:

--On October 31, 2007 12:43:48 PM -0400 John [EMAIL PROTECTED] wrote:


I hope this is an appropriate list for this type of question; please let
me know if another list is more suitable to newbie-type quesions.

I've been using Linux for a long time, and every year or so I have a
crack at *BSD to see what I'm missing.  But it never works out.

So, trying again...

I think I want to start with FreeBSD 6.2 with Xorg upgraded to 7.3.  I
tried to accomplish this over the course of several installs.  In the
end, I decided this should work:

a)  install 6.2, plain User setup (NOT with Xorg, and NOT with ports)

b) portsnap fetch

c) portsnap extract

d) cd to /usr/ports/x11/xorg  and make install clean

When I do pkg_version -v, it SEEMS to have installed the xorg that I
want.

Is this the right procedure to start with?


Yes, with one caveat.  You need to run mergebase.sh or manually create
the  symlink for /usr/X11R6.  /usr/ports/Tools/scripts/mergebase.sh


No, that is not necessary if he installs everything from scratch.


It was when we did it here.  How else would the symlink get created?  In 
fact, xorg-libraries refused to install until we ran mergebase.sh.  This 
was a pristine 6.2 RELEASE install without xorg, followed by a cvsup and 
the make install clean in the xorg meta port.


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

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


remote binary upgrade from 4.10 to 6.2

2007-11-01 Thread David Yeske
I have a lot of appliances in the field running FreeBSD.  These
machines do not have a working compiler.  They need to be upgraded
from FreeBSD 4.10 to FreeBSD 6.2.  Has anyone gone through this
successfully?  Does anyone have pointers on a clean way to do this?
Due to the lack of console support for most of these machines, booting
from the 6.2 cd will not work.  This has to be a remote binary
upgrade.  I need to have FreeBSD 4.10 install FreeBSD 6.2, although
this could be done in stages with multiple reboots.  I want to avoid
upgrading from FreeBSD 4.10 to 5.5 to 6.2.  It appears that FreeBSD
6.2 runs just fine on UFS1.

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


can you help script about rename directory

2007-11-01 Thread adrian kok
Hi all 

how can I have script to rename the following
directory pattern from

 

from 

dir-192.168.30.0   
dir-192.168.30.144 
dir-192.168.30.184


To:


dir-10.0.30.0   
dir-10.0.30.144 
dir-10.0.30.184

thank you

Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


skip bad block in QIC-150 tar

2007-11-01 Thread freebsd

I'm trying to recover some files from a 5 yr old tar on a QIC-150 tape.

Unfortunately, there's a bad block on the tape;
  tar barfs and quits when it gets to it:
tar: Unrecognized archive format: Inappropriate file type or format

I managed to get a complete directory listing using tar t on my first
attempt, before the tape became unreadable; it had to work at it but
apparently managed to eventually get the block read.

I've cleaned the tape and retried multiple times, to no avail.

I've tried omitting the directory containing the bad block,
but that hasn't prevented it from terminating.

Anyone know a way to get around this?

Thanks,

Gary





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


Re: Now it is ntpd that can't find anything

2007-11-01 Thread N.J. Thomas
* [EMAIL PROTECTED] [2007-10-31 16:08:10 -0800]:
   I set up ntpd on FreeBSD 6.2 and am getting complaints from ntpd
   that there is no route to such and such address. It gives what
   appears to be an interface card address.

 ntpq -p
  remote   refid  st t when poll reach   delay   offset  jitter
 ==
  2610:1f8:d8:2:2 .INIT.  16 u-   6400.0000.000 4000.00
  2001:4830:1210: .INIT.  16 u-   6400.0000.000 4000.00
  hydrogen.cert.u 164.67.62.1942 u   10   643   13.909  -261.61   2.936
  pubts2-sj.witim 64.125.78.85 2 u8   643   20.023  -256.60   2.883
 
 Here are the console messages:
 ntpd (706) send to(2610:1f8:d8:2:216:cbff:fea3:4b2e:) no route to host
  (2001:4830:1210:0;280:10ff:fe00:48b9)   

 are these ipv6 addresses? Or are they expecting authentication and
 refusing connections?

The last two time servers seem to be communicating fine with your ntp
daemon. The bad ones look like IPv6 sites to me. What time servers do
you have listed in your ntp.conf file?

What is the output of grep -i server /etc/ntp.conf?

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can you help script about rename directory

2007-11-01 Thread Roland Smith
On Fri, Nov 02, 2007 at 02:20:13AM +0800, adrian kok wrote:
 Hi all 
 
 how can I have script to rename the following
 directory pattern from
 
  
 
 from 
 
 dir-192.168.30.0   
 dir-192.168.30.144 
 dir-192.168.30.184
 
 
 To:
 
 dir-10.0.30.0   
 dir-10.0.30.144 
 dir-10.0.30.184
 
 thank you

for f in dir-192*; do mv $f `echo $f|sed s/192\.168/10\.0/`; done

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


pgpFyruwWUsjV.pgp
Description: PGP signature


Re: Set perms on attach of USB umass disk

2007-11-01 Thread Vince

Darren Spruell wrote:

I've been trying (and failing) to figure out how to adjust ownership
or permissions of a USB memory stick on device attach.


umass0: SanDisk Corporation Cruzer Mini, rev 2.00/0.20, addr 5
da0 at umass-sim0 bus 0 target 0 lun 0
da0: SanDisk Cruzer Mini 0.4 Removable Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 977MB (2001888 512 byte sectors: 64H 32S/T 977C)

$ usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x),
Intel(0x), rev 1.00
 port 1 addr 2: full speed, power 100 mA, config 1, Dell USB Keyboard
Hub(0x1004), Dell(0x413c), rev 48.01
  port 1 addr 3: low speed, power 90 mA, config 1, Dell USB Keyboard
Hub(0x2006), Dell(0x413c), rev 48.00
  port 2 addr 5: full speed, power 100 mA, config 1, Cruzer
Mini(0x5150), SanDisk Corporation(0x0781), rev 0.20


I've tried altering devfs.conf but this appears to only work for
devices that are attached at startup of devfs. I've tried configuring
devd(8):

attach 100 {
device-name da[0-9]+s1;
action /bin/chmod 0660 $device-name;
};

attach 100 {
device-name da[0-9]+;
action /bin/chmod 0660 $device-name;
};

Neither of these seem to result in the permission change I'm after
(making device writable by my user which is in the operator group):

$ ls -l /dev/da0*
crw-r-  1 root  operator0, 165 Oct 21 13:08 /dev/da0
crw-r-  1 root  operator0, 166 Oct 21 13:08 /dev/da0s1

What's the right way to handle this?


create a new file /etc/devfs.rules with contents

[system=10]
add path 'da*' mode 660 group operator



Then in /etc/rc.conf add
devfs_system_ruleset=system
and restart devfs (/etc/rc.d/devfs restart)


This should do the job, for futher reading devfs.rules has a manpage.


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


Re: imap-uw and sasl

2007-11-01 Thread Thomas Abthorpe
Try adding the following you /etc/make.conf

WITH_SSL_AND_PLAINTEXT=yes # imap-uw
WITH_ENTOURAGE_BRAIN_DAMAGE=yes # imap-uw


On 01/11/2007, Michael Grant [EMAIL PROTECTED] wrote:
 I just installed imap-uw and saslauthd on my box.  I'm having trouble
 getting it to accept plain text logins (in fact any logins at all).
 I'm trying to authenticate people in the passwd file.

 I get the following in the maillog:

 Nov  1 11:14:53 myhost ipop3d[97953]: Unexpected client disconnect,
 while reading line user=??? host=example.com [10.20.30.40]

 Yes, the user=??? is just like that with the question marks.  I am
 definitely sending the username.

 I'm thinking it might be a sasl problem or something I've not
 configured with saslauthd but I don't see it.

 I see these messages in /var/log/messages but they do not seem
 correlated with the time of the I tried to login (and there's many
 fewer of them):

 Nov  1 11:00:32 charm ipop3d[87124]: Login failed user=myname
 auth=myname host=example.com [10.20.30.40]


 Ideas?  Suggestions where to look for more error messages?

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




-- 

Thomas Abthorpe, FreeBSD Ports Committer
[EMAIL PROTECTED], http://people.freebsd.org/~tabthorpe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Set perms on attach of USB umass disk

2007-11-01 Thread Roland Smith
On Thu, Nov 01, 2007 at 10:53:00AM -0700, Darren Spruell wrote:
 I've been trying (and failing) to figure out how to adjust ownership
 or permissions of a USB memory stick on device attach.

[snip]
 I've tried altering devfs.conf but this appears to only work for
 devices that are attached at startup of devfs.
[snip]

As a matter of fact, this is documented in the devfs.conf manual page.
This will also tell you where to look;

 What's the right way to handle this?

You'll have to use devfs.rules. See 'man devfs.rules'

The fact that there are two configuration files is a bit confusing. But
that is because of the way removable devices are handled.

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


pgpVKJDhKsvLT.pgp
Description: PGP signature


why is /etc/termcap a link?

2007-11-01 Thread [LoN]Kamikaze
Is there a reason that /etc/termcap is a link to /usr/share/misc/termcap? It
makes it necessary to mount /usr to be able to run vi, even /rescue/vi.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 'break' system call man page is missing?

2007-11-01 Thread James
On 11/1/07, Yuri [EMAIL PROTECTED] wrote:

  What is the condition when errno=22 is returned?
 I figured this out myself by looking into the kernel source code.

 But there still should be a man page for this since this seems to be only
 (or at
 least one of the very few) system calls w/out documentation.

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




write a man page and submit it to the documentation project :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Set perms on attach of USB umass disk

2007-11-01 Thread Darren Spruell
  I've tried altering devfs.conf but this appears to only work for
  devices that are attached at startup of devfs.
 [snip]

 As a matter of fact, this is documented in the devfs.conf manual page.
 This will also tell you where to look;

Yep:

It does not work for devices plugged in and out after the system is up
and running, e.g. USB devices.  See devfs.rules(5) for setting ownership
and permissions for all device nodes, and usbd.conf(5) for actions to be
taken when USB devices are attached or detached.

I overlooked that for some reason. :(

 create a new file /etc/devfs.rules with contents

 [system=10]
 add path 'da*' mode 660 group operator

 Then in /etc/rc.conf add
 devfs_system_ruleset=system
 and restart devfs (/etc/rc.d/devfs restart)

Works great, thanks.

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


Problem with Apache22

2007-11-01 Thread Peter Uthoff
Hello,

I have a problem where my Apache procs are dying almost exactly every
ten
minutes as you can from the messages and web logs below:

Oct 25 10:34:44  kernel: pid 66337 (httpd), uid 80: exited on signal 4
Oct
25 10:35:33  kernel: pid 66357 (httpd), uid 80: exited on signal 4 Oct
25
10:45:11  kernel: pid 66395 (httpd), uid 80: exited on signal 4 Oct 25
10:55:21  kernel: pid 66340 (httpd), uid 80: exited on signal 4

Looking at the Apache logs, I find the following:

[Thu Oct 25 10:25:01 2007] [notice] child pid 66379 exit signal Illegal
instruction (4)
[Thu Oct 25 10:34:44 2007] [notice] child pid 66337 exit signal Illegal
instruction (4)
[Thu Oct 25 10:35:33 2007] [notice] child pid 66357 exit signal Illegal
instruction (4)
[Thu Oct 25 10:45:11 2007] [notice] child pid 66395 exit signal Illegal
instruction (4)

I tried upping the logs all the way to debug today and it really wasn't
very helpful:

[Wed Oct 31 15:59:19 2007] [debug] prefork.c(991): AcceptMutex: flock
(default: flock)
[Wed Oct 31 16:05:39 2007] [notice] child pid 73668 exit signal Illegal
instruction (4)
[Wed Oct 31 16:12:01 2007] [info] server seems busy, (you may need to
increase StartServers, or Min/MaxSpareServers), spawning 8 children,
there
are 4 idle, and 17 total children
[Wed Oct 31 16:15:04 2007] [notice] child pid 73779 exit signal Illegal
instruction (4)
[Wed Oct 31 16:15:28 2007] [notice] child pid 73717 exit signal Illegal
instruction (4)
[Wed Oct 31 16:18:37 2007] [notice] child pid 95939 exit signal Illegal
instruction (4)

I don't believe the 'busy' message is accurate. I think it's a result of
the procs dying constantly as I just don't get that much traffic. I also
have no idea what is causing the illegal instructions because none of
the logs point out any specific detail to help me track it down.

I'm running the following:

FreeBSD 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #3: Thu Oct 25 20:04:14
CDT
2007  :/usr/obj/usr/src/sys/GENERIC  i386

apache-2.2.6_2  Version 2.2 of Apache web server with prefork MPM.

php5-5.2.4_1PHP Scripting Language

mysql-client-5.0.45_1 Multithreaded SQL database (client)
mysql-server-5.0.45_1 Multithreaded SQL database (server)
p5-DBD-mysql50-4.005 MySQL 5.0 driver for the Perl5 Database Interface
(DBI)
php5-mysql-5.2.4_1  The mysql shared extension for php
php5-mysqli-5.2.4_1 The mysqli shared extension for php

I'm using vhosts to host 4 different websites with different domains.
The
sad part is that these all show no errors in their logs even with them
turned up to debug level. I've been looking at this off and on trying to
solve it as time allowed since mid-September. I'm completely stumped and
would appreciate any helpful suggestions where else I can look.

Thank you!

This email was sent to you by Reuters, the global news and information company. 
To find out more about Reuters visit www.about.reuters.com

Any views expressed in this message are those of the individual sender, 
except where the sender specifically states them to be the views of Reuters 
Limited.

Reuters Limited is part of the Reuters Group of companies, of which Reuters 
Group PLC is the ultimate parent company.
Reuters Group PLC - Registered office address: The Reuters Building, South 
Colonnade, Canary Wharf, London E14 5EP, United Kingdom
Registered No: 3296375
Registered in England and Wales


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


Re: FreeBSD 6.2 with Xorg 7.3

2007-11-01 Thread Tino Engel
Unfortunately portsnap fetch has performed an upgrade to xorg-7.3_1 for 
RELENG_6_2.
I do not trust this at all. I would bet doing a portupgrade would break xorg 
more or less irreversibly. I have already gone through this trying to upgrade 
to RELENG_7.
Is there a poosiblilty to revert the upgrade of the ports tree back to the 
stable version?

 Isn't the default X11BASE for 6.2 still on /usr/X11R6/  I thought it
 still was, then you will run into trouble again when you are going to
 update Xorg again in the future. So I think you will need a
 X11BASE=${LOCALBASE} in /etc/make.conf


pgptjADB6KKJb.pgp
Description: PGP signature


Re: Problem with Apache22

2007-11-01 Thread Philip M. Gollucci
Peter Uthoff wrote:
10:45:11  kernel: pid 66395 (httpd), uid 80: exited on signal 4 Oct 25

Can you provide either an strace or ktrace/kdump output from one of the
children.  Just attached to one let it die, then send the last 500 lines
or so of the output.

You probably have core dumps somewhere too -- a backtrace might be helpful.

Do you threading libraries match across the board for all software
(aka use ldd).

sysctls:
kern.sugid_coredump=1
kern.corefile=core.%N.%P

also,
cd /var/db/pkg ; /bin/ls -1 apache* php5* mysql* mod_*

I don't believe the 'busy' message is accurate.
Correct.

The sad part is that these all show no errors in their logs even with
them turned up to debug level
Thats because the error is happening before the parent hands off the
request to the child.

This output might be helpful to others
cat /var/db/ports/apache22/options

Finally, Some snippets from the httpd.conf such as loaded modules and
other custom/non default things you have as well.



Philip M. Gollucci ([EMAIL PROTECTED])
o:703.749.9295x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Re: Problem with Apache22

2007-11-01 Thread James
On 11/1/07, Peter Uthoff [EMAIL PROTECTED] wrote:

 Hello,

 I have a problem where my Apache procs are dying almost exactly every
 ten
 minutes as you can from the messages and web logs below:

 Oct 25 10:34:44  kernel: pid 66337 (httpd), uid 80: exited on signal 4
 Oct
 25 10:35:33  kernel: pid 66357 (httpd), uid 80: exited on signal 4 Oct
 25
 10:45:11  kernel: pid 66395 (httpd), uid 80: exited on signal 4 Oct 25
 10:55:21  kernel: pid 66340 (httpd), uid 80: exited on signal 4

 Looking at the Apache logs, I find the following:

 [Thu Oct 25 10:25:01 2007] [notice] child pid 66379 exit signal Illegal
 instruction (4)
 [Thu Oct 25 10:34:44 2007] [notice] child pid 66337 exit signal Illegal
 instruction (4)
 [Thu Oct 25 10:35:33 2007] [notice] child pid 66357 exit signal Illegal
 instruction (4)
 [Thu Oct 25 10:45:11 2007] [notice] child pid 66395 exit signal Illegal
 instruction (4)

 I tried upping the logs all the way to debug today and it really wasn't
 very helpful:

 [Wed Oct 31 15:59:19 2007] [debug] prefork.c(991): AcceptMutex: flock
 (default: flock)
 [Wed Oct 31 16:05:39 2007] [notice] child pid 73668 exit signal Illegal
 instruction (4)
 [Wed Oct 31 16:12:01 2007] [info] server seems busy, (you may need to
 increase StartServers, or Min/MaxSpareServers), spawning 8 children,
 there
 are 4 idle, and 17 total children
 [Wed Oct 31 16:15:04 2007] [notice] child pid 73779 exit signal Illegal
 instruction (4)
 [Wed Oct 31 16:15:28 2007] [notice] child pid 73717 exit signal Illegal
 instruction (4)
 [Wed Oct 31 16:18:37 2007] [notice] child pid 95939 exit signal Illegal
 instruction (4)

 I don't believe the 'busy' message is accurate. I think it's a result of
 the procs dying constantly as I just don't get that much traffic. I also
 have no idea what is causing the illegal instructions because none of
 the logs point out any specific detail to help me track it down.

 I'm running the following:

 FreeBSD 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #3: Thu Oct 25 20:04:14
 CDT
 2007  :/usr/obj/usr/src/sys/GENERIC  i386

 apache-2.2.6_2  Version 2.2 of Apache web server with prefork MPM.

 php5-5.2.4_1PHP Scripting Language

 mysql-client-5.0.45_1 Multithreaded SQL database (client)
 mysql-server-5.0.45_1 Multithreaded SQL database (server)
 p5-DBD-mysql50-4.005 MySQL 5.0 driver for the Perl5 Database Interface
 (DBI)
 php5-mysql-5.2.4_1  The mysql shared extension for php
 php5-mysqli-5.2.4_1 The mysqli shared extension for php

 I'm using vhosts to host 4 different websites with different domains.
 The
 sad part is that these all show no errors in their logs even with them
 turned up to debug level. I've been looking at this off and on trying to
 solve it as time allowed since mid-September. I'm completely stumped and
 would appreciate any helpful suggestions where else I can look.

 Thank you!

 This email was sent to you by Reuters, the global news and information
 company.
 To find out more about Reuters visit www.about.reuters.com

 Any views expressed in this message are those of the individual sender,
 except where the sender specifically states them to be the views of
 Reuters Limited.

 Reuters Limited is part of the Reuters Group of companies, of which
 Reuters Group PLC is the ultimate parent company.
 Reuters Group PLC - Registered office address: The Reuters Building, South
 Colonnade, Canary Wharf, London E14 5EP, United Kingdom
 Registered No: 3296375
 Registered in England and Wales


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




First thing that comes to mind is to download knoppix and use either
memtest or memtest86 as the cheatcode. I forget which.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: skip bad block in QIC-150 tar

2007-11-01 Thread Derek Ragona

At 02:10 PM 11/1/2007, [EMAIL PROTECTED] wrote:

I'm trying to recover some files from a 5 yr old tar on a QIC-150 tape.

Unfortunately, there's a bad block on the tape;
  tar barfs and quits when it gets to it:
tar: Unrecognized archive format: Inappropriate file type or format

I managed to get a complete directory listing using tar t on my first
attempt, before the tape became unreadable; it had to work at it but
apparently managed to eventually get the block read.

I've cleaned the tape and retried multiple times, to no avail.

I've tried omitting the directory containing the bad block,
but that hasn't prevented it from terminating.

Anyone know a way to get around this?

Thanks,

Gary


I would try the other tar's (bsdtar, pax, etc.) and see what happens . . .

Also check the man pages and see if there is a commandline option to 
continue after error.


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


Re: Virtualization

2007-11-01 Thread Bart Silverstrim

Erik Osterholm wrote:

On Tue, Oct 30, 2007 at 11:57:20PM +0100, Ivan Voras wrote:

There's a donation box on
http://www.rsync.net/resources/notices/2007cb.html for developers to get
VMWare Workstation working on FreeBSD but the status of the project is
unknown. There's also some indication someone is working on VirtualBox
but that's probably in very early stages (and besides that, VirtualBox
doesn't work reliably).


I have to disagree with the last VirtualBox comment.  It seems to work
quite well for the operating systems it supports (mostly Linux and
Windows as guests.)  Sadly, FreeBSD as a guest just doesn't seem to
fly.


From the sounds of it, if you're looking to host other server 
environments, FreeBSD isn't a solution to really consider.  If you're 
looking to just test some configurations periodically, FreeBSD has some 
options, but not as many as Linux :-(


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


term: Undefined variable emitted after startup scripts

2007-11-01 Thread Mark McConnell
On bootup, I see the message repeated several 
times, term: Undefined variable.  

What is causing this message and what must I 
change to eliminate it?  I want to rule it out as a 
factor contributing to my difficulty starting jabberd2 
on bootup (c2s is the client-to-server component of 
jabberd).

Starting ntpd.
Starting usbd.
Starting jabberd.
term: Undefined variable.
Starting proftpd.
Removing stale Samba tdb files:
.
.
.
.
.
.
.
.
 done
Starting nmbd.
ERROR: c2s died.  Shutting down server.
Starting smbd.
Starting mysql.
term: Undefined variable.
Starting webmin.
Starting jabberd_users_agent.
Starting mu_conference.
term: Undefined variable.

Performing sanity check on apache2 
configuration:
Syntax OK
Starting apache2.
Configuring syscons:
 blanktime
.
Starting sshd.
Starting cron.
Local package initialization:
.
Starting background file system checks in 60 
seconds.

FreeBSD 6.2-STABLE #14: Sat Oct 20 15:36:50 
PDT 2007

CPU: AMD Opteron(tm) Processor 242 (1593.31-
MHz K8-class CPU)

Mark 
--
[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: FreeBSD 6.2 with Xorg 7.3

2007-11-01 Thread Warren Block

On Thu, 1 Nov 2007, Tino Engel wrote:


Unfortunately portsnap fetch has performed an upgrade to xorg-7.3_1 for
RELENG_6_2.
I do not trust this at all. I would bet doing a portupgrade would break xorg
more or less irreversibly. I have already gone through this trying to upgrade
to RELENG_7.
Is there a poosiblilty to revert the upgrade of the ports tree back to the
stable version?


The latest xorg runs fine on 6.2.  Well, 6.2-STABLE here:

FreeBSD speedy.wonkity.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Oct 10 12:48:47 MDT 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SPEEDY  i386


This system was upgraded with mergebase, and I don't have any settings 
for X11BASE in make.conf.


If you really want, portdowngrade can retrieve earlier versions of 
ports.  For xorg, that way lies madness.  Or maybe it's over there-.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 6.2 with Xorg 7.3

2007-11-01 Thread James
On Thu, 2007-11-01 at 21:56 +, Tino Engel wrote:

 Unfortunately portsnap fetch has performed an upgrade to xorg-7.3_1 for 
 RELENG_6_2.
 I do not trust this at all. I would bet doing a portupgrade would break xorg 
 more or less irreversibly. I have already gone through this trying to upgrade 
 to RELENG_7.
 Is there a poosiblilty to revert the upgrade of the ports tree back to the 
 stable version?
 
  Isn't the default X11BASE for 6.2 still on /usr/X11R6/  I thought it
  still was, then you will run into trouble again when you are going to
  update Xorg again in the future. So I think you will need a
  X11BASE=${LOCALBASE} in /etc/make.conf


Suck it up and do the upgrade. 6.9-7.2 was moderately difficult, but
with the new whizzy modular Xorg, it's only a one or two command job.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


term: Undefined variable emitted after startup scripts

2007-11-01 Thread Mark McConnell
On bootup, I see the message repeated several 
times, term: Undefined variable.  

What is causing this message and what must I 
change to eliminate it?  I want to rule it out as a 
factor contributing to my difficulty starting jabberd2 
on bootup (c2s is the client-to-server component of 
jabberd).

Starting ntpd.
Starting usbd.
Starting jabberd.
term: Undefined variable.
Starting proftpd.
Removing stale Samba tdb files:
.
.
.
.
.
.
.
.
 done
Starting nmbd.
ERROR: c2s died.  Shutting down server.
Starting smbd.
Starting mysql.
term: Undefined variable.
Starting webmin.
Starting jabberd_users_agent.
Starting mu_conference.
term: Undefined variable.

Performing sanity check on apache2 
configuration:
Syntax OK
Starting apache2.
Configuring syscons:
 blanktime
.
Starting sshd.
Starting cron.
Local package initialization:
.
Starting background file system checks in 60 
seconds.

FreeBSD 6.2-STABLE #14: Sat Oct 20 15:36:50 
PDT 2007

CPU: AMD Opteron(tm) Processor 242 (1593.31-
MHz K8-class CPU)

Mark 
--
[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: Now it is ntpd that can't find anything

2007-11-01 Thread jekillen


On Nov 1, 2007, at 11:18 AM, N.J. Thomas wrote:


* [EMAIL PROTECTED] [2007-10-31 16:08:10 -0800]:

I set up ntpd on FreeBSD 6.2 and am getting complaints from ntpd
that there is no route to such and such address. It gives what
appears to be an interface card address.


ntpq -p
 remote   refid  st t when poll reach   delay
offset  jitter
== 

 2610:1f8:d8:2:2 .INIT.  16 u-   6400.000 
0.000 4000.00
 2001:4830:1210: .INIT.  16 u-   6400.000 
0.000 4000.00
 hydrogen.cert.u 164.67.62.1942 u   10   643   13.909   
-261.61   2.936
 pubts2-sj.witim 64.125.78.85 2 u8   643   20.023   
-256.60   2.883


Here are the console messages:
ntpd (706) send to(2610:1f8:d8:2:216:cbff:fea3:4b2e:) no route to host
 (2001:4830:1210:0;280:10ff:fe00:48b9)   

are these ipv6 addresses? Or are they expecting authentication and
refusing connections?


The last two time servers seem to be communicating fine with your ntp
daemon. The bad ones look like IPv6 sites to me. What time servers do
you have listed in your ntp.conf file?

What is the output of grep -i server /etc/ntp.conf?


These are the servers I have listed:
server lain.ziaspace.com
#server ntp2.sf-bay.org
server reva.ziaspace.com
server hydrogen.cert.ucr.edu
server pubts2-sj.witime.net
The one commented out was not responding to ping.
I suppose I should find ones that are reachable via ipv4.
Jeff K

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


Re: 'break' system call man page is missing?

2007-11-01 Thread Lars Eighner

On Thu, 1 Nov 2007, Yuri wrote:


What is the condition when errno=22 is returned?

I figured this out myself by looking into the kernel source code.


It is much easier to use man errno.


But there still should be a man page for this since this seems to be only
(or at least one of the very few) system calls w/out documentation.


I am not sure I know what you mean by system call break.

There is an internal shell command break (as you should learn by entering
man break, which takes you to the builtins man page).  There is no external
break command that I know of.  Because it is an internal shell command, it
is documented in the man page for your shell, which in the case of system
in the c lib, is sh.

1) man break takes you to the builtin commands man page.
2) a table on that page tells you break is not an external command, but
is an internal command in csh and sh.
3) man system tells you system executes a command in an sh shell.
4) sh man tells you that break causes the end of execution of the innermost
loop(s)

or in other words, break is meaningless unless it is in a loop, which you
would be told in plain text if you entered break at the command line in an
sh shell.

So, do you mean some other kind of break command in some other context?

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

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


help using patch

2007-11-01 Thread Aryeh M. Friedman
I have the following patch and the unpatched source code in rcsC0 no
matter what command line I try for patch it fails any hints?

diff -ruN rcsC0.new/src/app/rcs/core/Contribution.java
rcsC0/src/app/rcs/core/Contribution.java
--- rcsC0.new/src/app/rcs/core/Contribution.java2007-10-27
22:48:56.0 -0400
+++ rcsC0/src/app/rcs/core/Contribution.java2007-10-27
17:18:22.0 -0400
@@ -18,11 +18,6 @@
 return share;
 }

-public void setShare(double share)
-{
-this.share=share;
-}
-
 public String toString()
 {
 if(contributor instanceof Project)
diff -ruN rcsC0.new/src/app/rcs/ui/cmdline/NewContributor.java
rcsC0/src/app/rcs/ui/cmdline/NewContributor.java
--- rcsC0.new/src/app/rcs/ui/cmdline/NewContributor.java2007-10-27
22:52:34.0 -0400
+++ rcsC0/src/app/rcs/ui/cmdline/NewContributor.java1969-12-31
19:00:00.0 -0500
@@ -1,38 +0,0 @@
-package app.rcs.ui.cmdline;
-
-import app.rcs.core.Contribution;
-import app.rcs.core.DataBase;
-import app.rcs.core.Project;
-import app.rcs.core.ShareHolder;
-
-public class NewContributor
-{
-public static void main(String[] args)
-{
-if(args.length!=4) {
-System.out.println(Usage: newcontributor project contrib
{prj|sh} rcs);
-System.exit(1);
-}
-
-Project p=new Project();
-DataBase.load(p,args[0]);
-
-double rcs=new Double(args[3]);
-double newRcs=1-rcs;
-
-for(Contribution contrib:p.getContributions ())
-contrib.setShare(contrib.getShare()*newRcs);
-
-ShareHolder sh=null;
-
-if(args[2].equals(prj)) {
-DataBase.load((Project) sh,args[1]);
-
-if(sh==null)
-sh=new Project(args[1]);
-} else sh=new ShareHolder(args[1]);
-
-p.addContribution(new Contribution(sh,rcs));
-DataBase.save(p,p.getName());
-}
-}
diff -ruN rcsC0.new/src/app/rcs/ui/cmdline/NewProject.java
rcsC0/src/app/rcs/ui/cmdline/NewProject.java
--- rcsC0.new/src/app/rcs/ui/cmdline/NewProject.java2007-10-27
22:36:02.0 -0400
+++ rcsC0/src/app/rcs/ui/cmdline/NewProject.java1969-12-31
19:00:00.0 -0500
@@ -1,18 +0,0 @@
-package app.rcs.ui.cmdline;
-
-import app.rcs.core.DataBase;
-import app.rcs.core.Project;
-
-public class NewProject
-{
-public static void main(String[] args)
-{
-if(args.length!=1) {
-System.out.println(Usage: newproject project);
-System.exit(1);
-}
-
-Project p=new Project(args[0]);
- DataBase.save(p,p.getName());
-}
-}
diff -ruN rcsC0.new/src/app/rcs/ui/cmdline/Payout.java
rcsC0/src/app/rcs/ui/cmdline/Payout.java
--- rcsC0.new/src/app/rcs/ui/cmdline/Payout.java2007-10-27
22:29: 34.0 -0400
+++ rcsC0/src/app/rcs/ui/cmdline/Payout.java2007-10-27
18:14:44.0 -0400
@@ -19,22 +19,6 @@
 p.addValue(new Double(args[1]));
 p.payout();

-boolean done=false;
-while(!done) {
-done=true;
-
-for(ShareHolder sh:p.getShareHolderPool().getPool().values()) {
-if(!(sh instanceof Project))
-continue;
-
-if(sh.getValue()=.01)
-continue;
-
-done=false;
-((Project) sh).payout();
-}
-}
-
 for(ShareHolder sh: p.getShareHolderPool().getPool().values())
 if(sh.getValue().01)
 System.out.println(sh.getName()+: +sh.getValue());
diff -ruN rcsC0.new/src/app/rcs/ui/cmdline/aMock
rcsC0/src/app/rcs/ui/cmdline/aMock
--- rcsC0.new/src/app/rcs/ui/cmdline/aMock2007-10-27
22:52:58.0 -0400
+++ rcsC0/src/app/rcs/ui/cmdline/aMock1969-12-31 19:00:00.0
-0500
@@ -1 +0,0 @@
-aMock|aryeh:0:0.0|aryeh:0:0.5|aryeh:0:0.5
\ No newline at end of file

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


Duplicate existing FreeBSD Server in VM

2007-11-01 Thread Terry Sposato
Hi,

 

I have just installed a machine and have it setup running a web based CRM
solution. I want to have an exact duplicate of this machine running as a VM
for redundancy reasons. 

 

What is the best way to go about getting this exact machine transferred to
the VM? Both machines exist on the same network and will be able to talk to
each other, I have been thinking of a couple of different ways to get all my
data across which is the easy part, but I want to match everything that is
installed, base system, ports etc.

 

Anyone have any ideas or point me into the right direction?

 

Regards,

 

Terry

http://www.sucked-in.com

Have you been sucked in?

 

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


curious DNS behavior on a 7.0...

2007-11-01 Thread Jonathan Horne
reading the /etc/defaults/rc.conf, ipv6 appears disabled by default:

### IPv6 options: ###
ipv6_enable=NO# Set to YES to set up for IPv6.

however, right now new every website i browse is penalized with a 10-20 
second delay before the page finally starts loading.  tcpdump is full of 
these:

20:38:57.915695 IP athena.dfwlp.com.59056  castor.dfwlp.com.domain: 3505+ 
? www.srh.noaa.gov. (34)

arent 's ipv6 lookups?  as i mentioned in another thread, i cant get the 
kernel to compile right now (thus eliminating the INET6 line), so im trying 
to figure another way out to stop this behavior).

any ideas would be appreciated.  cheers,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
[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: Problem with Apache22

2007-11-01 Thread Ivan Voras
Peter Uthoff wrote:
 Hello,
 
 I have a problem where my Apache procs are dying almost exactly every
 ten
 minutes as you can from the messages and web logs below:
 
 Oct 25 10:34:44  kernel: pid 66337 (httpd), uid 80: exited on signal 4

Signal 4 is illegal instruction, it might be caused by:

- corrupted executables
- executables built for processor architectures different than the one
used in the machine (e.g. built on one machine with CPU optimizations
turned on, then run on another)

 The
 sad part is that these all show no errors in their logs even with them
 turned up to debug level. I've been looking at this off and on trying to
 solve it as time allowed since mid-September. I'm completely stumped and
 would appreciate any helpful suggestions where else I can look.

Do you have any processor-specific instructions in your make.conf? How
did you install apache and other applications? Have you tried
recompiling apache and php without any optimizations?

Are you using PHP as mod_php? If so, you might want to try to switch to
fastcgi to isolate if the problem is in apache or php.



signature.asc
Description: OpenPGP digital signature


i keep getting this when i buildkernel on 7.0 beta 1.5...

2007-11-01 Thread Jonathan Horne
awk -f /usr/src/sys/modules/zlib/../../conf/kmod_syms.awk zlib.kld  
export_syms | xargs -J% objcopy % zlib.kld
ld -Bshareable  -d -warn-common -o zlib.ko.debug zlib.kld
objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug 
zlib.ko
1 error
*** Error code 2
1 error
*** Error code 2
1 error
[EMAIL PROTECTED] /usr/src]#


anyone able to tell me wha to do?
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Official mirror source

2007-11-01 Thread Alex Dodson
Hello,

I am one of the sys admin looking after mirror.aarnet.edu.au which is
also ftp2.au.freebsd.org. We have had issues with upstream mirrors we
have used locally. Can you suggest a good mirror to rsync from
internationally?

Thanks,
Alex

Alex Dodson
System Administrator
AARNet Pty Ltd
Ph:  61 7 3317 9550
Mob: 61 434 306 682


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


Re: Duplicate existing FreeBSD Server in VM

2007-11-01 Thread DAve
Terry Sposato wrote:
 Hi,
 
  
 
 I have just installed a machine and have it setup running a web based CRM
 solution. I want to have an exact duplicate of this machine running as a VM
 for redundancy reasons. 
 
  
 
 What is the best way to go about getting this exact machine transferred to
 the VM? Both machines exist on the same network and will be able to talk to
 each other, I have been thinking of a couple of different ways to get all my
 data across which is the easy part, but I want to match everything that is
 installed, base system, ports etc.
 
  
 
 Anyone have any ideas or point me into the right direction?
 

You can use dump over ssh easily enough, here are my notes from using it
to create multiple production machines from a single test server. There
are better ways I am sure, but this is quick and easy if you are
familiar with FreeBSD installs.

Note #1 In the first comment line I say to boot the live file system CD,
that is what you would do in the VM, just as you would normally boot an
installer CD, but use a Live filesystem CD instead.

Note #2 I used several slices with sizes some may not agree with. It was
a choice we made for various reasons, the servers have been running for
three years. You may have more or less slices of varying sizes, adjust
the steps below to your preferences.

Note #3 You will need to check and WRITE DOWN which slice is which mount
point, /, /var, /usr and so on. Your disks may be different if you
choose not to create a seperate /tmp, or /var.

I'll be out of the office for a week, but you can try and adjust as
needed, it won't hurt anything and you can always overwrite and try
again. WRITE IT DOWN.

Works for us, I've used it several times, adjusting as needed for the
system I am cloning.

DAve



# boot live filesystem cd
# use disklabel to check/create slices
/stand/sysinstall
/dev/ad0s1b256mb   swap
/dev/ad0s1a256mb   /mnt/ufs.1softupdates
/dev/ad0s1e256mb   /mnt/ufs.2softupdates
/dev/ad0s1d256mb   /mnt/ufs.3softupdates
/dev/ad0s1fall /mnt/ufs.4softupdates
/dev/ad1s1d2mb /mnt/ufs.5

# unmount the new slices
umount /mnt/ufs.1
umount /mnt/ufs.2
umount /mnt/ufs.3
umount /mnt/ufs.4
umount /mnt/ufs.5

# make newfs on each slice
newnfs /dev/ad0s1a
newnfs /dev/ad0s1e
newnfs /dev/ad0s1f
newnfs /dev/ad0s1d
newnfs /dev/ad1s1d

# remount the slices
mount -t ufs -o rw /dev/ad0s1a /mnt/ufs.1
mount -t ufs -o rw /dev/ad0s1e /mnt/ufs.2
mount -t ufs -o rw /dev/ad0s1d /mnt/ufs.3
mount -t ufs -o rw /dev/ad0s1f /mnt/ufs.4

# fetch the filesystems from the test server
# you will need to enable root ssh access on the test server for this.
cd /mnt/ufs.1
ssh [EMAIL PROTECTED] dump -0L -f - /dev/ad0s1a | restore -rf - /dev/ad0s1a
cd /mnt/ufs.2
ssh [EMAIL PROTECTED] dump -0L -f - /dev/ad0s1e | restore -rf - /dev/ad0s1e
cd /mnt/ufs.3
ssh [EMAIL PROTECTED] dump -0L -f - /dev/ad0s1f | restore -rf - /dev/ad0s1f
cd /mnt/ufs.4
ssh [EMAIL PROTECTED] dump -0L -f - /dev/ad0s1d | restore -rf - /dev/ad0s1d

# change the following entries in rc.conf, remember everything is
mounted under /mnt!
# X = the ecluster number 1,2,3,4,5,6,7,8, etc.
hostname=new_server_X
ifconfig_em0=inet 10.0.240.13X netmask 255.255.255.0

Reboot the new server, it should come up just fine.


-- 
Three years now I've asked Google why they don't have a
logo change for Memorial Day. Why do they choose to do logos
for other non-international holidays, but nothing for
Veterans?

Maybe they forgot who made that choice possible.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: term: Undefined variable emitted after startup scripts

2007-11-01 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 11/1/07, Mark McConnell  wrote:
 On bootup, I see the message repeated several
 times, term: Undefined variable.

Were any of the shell rc files change recently?  Like root's .profile
or .bashrc, or the ones in /etc/?

- --
Andy Harrison
public key: 0x67518262
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHKoTbNTm8fWdRgmIRAu9eAJ9EL/qCI0VdQRCci+6LaMVyeRYAJwCg6zfk
2VTwlv6bAgDZ2+sGwwZ71CY=
=qUxf
-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: curious DNS behavior on a 7.0...

2007-11-01 Thread Steve Bertrand
Jonathan Horne wrote:
 reading the /etc/defaults/rc.conf, ipv6 appears disabled by default:
 
 ### IPv6 options: ###
 ipv6_enable=NO# Set to YES to set up for IPv6.
 
 however, right now new every website i browse is penalized with a 10-20 
 second delay before the page finally starts loading.  tcpdump is full of 
 these:
 
 20:38:57.915695 IP athena.dfwlp.com.59056  castor.dfwlp.com.domain: 3505+ 
 ? www.srh.noaa.gov. (34)
 
 arent 's ipv6 lookups?  as i mentioned in another thread, i cant get the 
 kernel to compile right now (thus eliminating the INET6 line), so im trying 
 to figure another way out to stop this behavior).

It's not required you remove IPv6 from the kernel in order to receive
proper DNS A record responses, and even if IPv6 name services take
precedence, it shouldn't cause such a delay (unless all of your
boxen/DNS servers point to the same forwarders that cause this issue).

I have several machines under 4.10 to 6.2, and at least two running 7.0
that are v6 enabled that don't have this issue.

I do run IPv6 in my network with a legitimate block, however, I do not
have any IPv6 name servers that contain any outside DNSv6 records.

That said, more particulars are needed to find out what is happening.

The most important thing to know in order to break this down is what
name server(s) are you using on this particular server to resolve names.

If you can post the output from the following whilst logged into one of
the problematic machines, it will likely help:

# cat /etc/resolv.conf

If your box is a DHCP client, I won't know what to look for in that
output. If by chance your box attains it's IP information via DHCP, then
the next following output (particularly the last few lines) will help:

# dig www.srh.noaa.gov

Your  queries may or may not be detrimental to the time in which you
receive your DNS responses. I would personally lean toward the latter,
given the lack of information.

Don't go about recompiling the kernel without v6 support yet. It seems
DNS is timing out for you somewhere, so post the above requested info
and it can go from there.

Steve






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


Re: curious DNS behavior on a 7.0...

2007-11-01 Thread Norberto Meijome
On Thu, 1 Nov 2007 20:41:13 -0500
Jonathan Horne [EMAIL PROTECTED] wrote:

 however, right now new every website i browse is penalized with a 10-20 
 second delay before the page finally starts loading.  tcpdump is full of 
 these:

hi there,

wouldn't it be your browser requesting the IPv6 address?  you can check easy
enough by pinging any website (which you haven't resolved yet) and see if u get
the same calls.

unless you are pointing your resolver to localhost, and  your local named is
requesting the v6  records. Look into disabling this behaviour @ named.conf.

cheers,
B

_
{Beto|Norberto|Numard} Meijome

Anyone who isn't confused here doesn't really understand what's going on.

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Now it is ntpd that can't find anything

2007-11-01 Thread N.J. Thomas
* jekillen [EMAIL PROTECTED] [2007-11-01 15:43:53 -0800]:
 These are the servers I have listed:
[...]
 I suppose I should find ones that are reachable via ipv4.

Better yet, use the NTP Pool Project. If you including the following in
your ntp.conf:

server 0.pool.ntp.org prefer
server 1.pool.ntp.org prefer
server 2.pool.ntp.org prefer

That should work well.

See http://www.pool.ntp.org/ for more info.

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


problem of install 7.0 on notebook

2007-11-01 Thread Zhang hw
I have now could work on my notebook with freebsd 6.2-release and
6.3-prerelease, but there are still some problems such as acpi. So I
want to have a try of freebsd 7.0-beta-1.5, but I can't install it,
the boot process stop at pci probing:
pcib2:PCI-PCI brige at device 4.0 on pci0
pci16:PCI-PCI bus on pcib2
if acpi enable, it maybe show as:
pcib2:ACPI PCI-PCI brige...
pci16:ACPI...
my cpu is athlon 64x2, I've tried both amd64 and i386 versions.
Help!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Please check my IPFW ruleset

2007-11-01 Thread deeptech71
I'm making some ipfw rules, and I would appreciate if someone could 
check these for me.


My intention is to create a replacement for a hardware router, which 
basically works by allowing all outbound traffic, blocking all 
unauthorized/unrequested inbound traffic, and has a setting (the so 
called DMZ) to redirect all the unauthorized/unrequested packets to a 
local computer. Plus I want to add something like remote telnet/ssh 
capabilities to override the DMZ.


| ipfw.rules |
#!/bin/sh

dns=195.228.240.249,195.228.242.180
lan=192.168.123.0/24
ext=tun0
int=rl0

ipfw=ipfw -q
add=$ipfw add
allow=$add allow
block=$add deny
nat=$add divert natd
check=$add check-state
pipe=$add pipe

fa=from any
ta=to any
fata=$fa $ta
reserved=192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,127.0.0.0/8,0.0.0.0/8,169.254.0.0/16,192.0.2.0/24,204.152.64.0/23,224.0.0.0/3



$ipfw -f flush

$allow all $fata via lo0
$allow all $fata via $int

# INBOUND #

$block all $fa to $reserved in via $ext # ISP fuckup?

$nat all $fata in via $ext
$check

$block all $fata frag in via $ext
$block tcp $fata established in via $ext
$block all from $reserved in via $ext

# :: DEFINE SOME INBOUND SERVICES HERE ::
#$allow tcp $fa to me 80 in via $ext setup limit src-addr 4
#$allow tcp $fa to me 22 in via $ext setup limit src-addr 4
#$allow tcp $fa to me 23 in via $ext setup limit src-addr 4

$block all $fata in via $ext

# OUTBOUND #

# :: DEFINE SOME RESTRICTIONS HERE ? ::

$nat tcp $fata out via $ext setup keep-state
$nat all $fata out via $ext keep-state
$allow all $fata out via $ext

$block $fata

| eof ipfw.rules |

OK, questions...

# ISP fuckup? - does it make sense to defend against my ISP hacking me?

What does divert natd actually do? Does it only change the IP header?

Can I move the three lines
$block all $fata frag in via $ext
$block tcp $fata established in via $ext
$block all from $reserved in via $ext
to ahead of
$nat all $fata in via $ext ?

I'm curious about this one:
$nat tcp $fata out via $ext setup keep-state
$nat all $fata out via $ext keep-state
$allow all $fata out via $ext
For an outbound packet, rules should be keep-state, divert, allow, in 
this order, as far as I know. What about these lines?


Uhm, ed0 is my network card doing PPPoE. How do I allow it to do PPPoE 
traffic only?


Did I miss anything?


Some other IPFW questions:
deny ip == deny all?
Why do I have to write from any to any all the time, when it just 
means independently of source and destination? Why can't I write just 
drop all?



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


Re: problem of install 7.0 on notebook

2007-11-01 Thread David Yeske
On 11/2/07, Zhang hw [EMAIL PROTECTED] wrote:
 I have now could work on my notebook with freebsd 6.2-release and
 6.3-prerelease, but there are still some problems such as acpi. So I
 want to have a try of freebsd 7.0-beta-1.5, but I can't install it,
 the boot process stop at pci probing:
 pcib2:PCI-PCI brige at device 4.0 on pci0
 pci16:PCI-PCI bus on pcib2
 if acpi enable, it maybe show as:
 pcib2:ACPI PCI-PCI brige...
 pci16:ACPI...
 my cpu is athlon 64x2, I've tried both amd64 and i386 versions.
 Help!
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


What happens if you boot verbose?  That might better indicate where
the kernel is hanging.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: skip bad block in QIC-150 tar

2007-11-01 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of
 [EMAIL PROTECTED]
 Sent: Thursday, November 01, 2007 11:10 AM
 To: freebsd-questions@freebsd.org
 Subject: skip bad block in QIC-150 tar
 
 
 I'm trying to recover some files from a 5 yr old tar on a QIC-150 tape.
 
 Unfortunately, there's a bad block on the tape;
tar barfs and quits when it gets to it:
 tar: Unrecognized archive format: Inappropriate file type or format
 
 I managed to get a complete directory listing using tar t on my first
 attempt, before the tape became unreadable; it had to work at it but
 apparently managed to eventually get the block read.
 
 I've cleaned the tape and retried multiple times, to no avail.
 
 I've tried omitting the directory containing the bad block,
 but that hasn't prevented it from terminating.
 
 Anyone know a way to get around this?
 

Untar from the non-rewinding device.  When it hits the bad spot
and aborts, just rerun tar again - it will start up the tape and
forward it looking for the end of file mark that signifies the
end of the current file and the beginning of the next.  You may need to
rerun it a couple times to get past the bad section.  You can also use
the mt fsf command to bump it forward.

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


RE: problem with 3Com 3c905C-TX Fast Etherlink XL

2007-11-01 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of eng. Anatoli
 Marinov
 Sent: Thursday, November 01, 2007 12:41 AM
 To: freebsd-questions@freebsd.org
 Subject: problem with 3Com 3c905C-TX Fast Etherlink XL
 
 
 Hi Guys,
 
 I have several 3Com 3c905C-TX Fast Etherlink XL NIC's but they work
 very bad with 7.0 and 6.2.

Those cards and the xl driver are crap, hae been ever since the driver
first appeared in FreeBSD.  Occasionally someone diddles
with the driver trying to make it work better without any real success.
3com appears completely uninterested in helping.

I can buy Intel EtherExpress Pro 100 cards out of the junk bin from
the local computer recycler for $3 a card.  I'm sure if you look you
can find a similar thing, and that's what you need to do rather than
put time and effort into a card/driver combo that has never worked
very well 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: New FreeBSD art?

2007-11-01 Thread Chad Perrin
On Thu, Nov 01, 2007 at 01:16:01AM +, Ashley Moran wrote:
 Hi
 
 I was going to use a Powered by FreeBSD banner but all of the images  
 at http://www.freebsd.org/art.html are using the old Beastie icon and  
 not the new round shiny one.  Are there any available?

Do you mean this?:

  http://www.freebsd.org/logo.html

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
McCloctnick the Lucid: The first rule of magic is simple. Don't waste your
time waving your hands and hopping when a rock or a club will do.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]