error upgrading kdeedu4

2010-04-01 Thread Dino Vliet
Hi people,
portupgrade kdeedu gives the following error:

Warning: name horizontalSpacer_2 is already used
[ 92%] Generating chemset.cmi
[ 92%] Generating chemset.cmx
[ 92%] Generating parser.cmi
[ 92%] Generating parser.cmx
[ 92%] Generating lexer.cmx
[ 92%] Generating datastruct.cmi
[ 92%] Generating datastruct.cmx
[ 92%] Generating chem.cmi
[ 92%] Generating chem.cmx
File "/usr/ports/misc/kdeedu4/work/kdeedu-4.3.5/kalzium/src/solver/chem.ml", 
line 54, characters 43-54:
Warning Y: unused variable nb_elements.
[ 92%] Generating calc.cmi
[ 92%] Generating calc.cmx
[ 92%] Generating solver.o
File "_none_", line 1, characters 0-1:
Error: Files /usr/local/lib/ocaml/facile/facile.cmxa
   and /usr/local/lib/ocaml/stdlib.cmxa
   make inconsistent assumptions over interface Buffer
*** Error code 2

Stop in /usr/ports/misc/kdeedu4/work/kdeedu-4.3.5/build.
*** Error code 1

Stop in /usr/ports/misc/kdeedu4/work/kdeedu-4.3.5/build.
*** Error code 1

Stop in /usr/ports/misc/kdeedu4/work/kdeedu-4.3.5/build.
*** Error code 1

Stop in /usr/ports/misc/kdeedu4.
** Command failed [exit code 1]: /usr/bin/script -qa 
/tmp/portupgrade20100401-6702-pjyjgo-0 env UPGRADE_TOOL=portupgrade 
UPGRADE_PORT=kdeedu-4.3.5 UPGRADE_PORT_VER=4.3.5 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! misc/kdeedu4 (kdeedu-4.3.5)   (unknown build error)


What do I do now? 
I have a amd64 system running freebsd 8. 
pkg_info gives:ORBit2-2.14.17  High-performance CORBA ORB with support for 
the C language
OpenEXR-1.6.1_2 A high dynamic-range (HDR) image file format  
R-2.10.1_4  A language for statistical computing and graphics 
aalib-1.4.r5_4  An ascii art library  
aiksaurus-1.2.1_2   A set of libraries and applications which provide a thesaur
akonadi-1.2.1_2 Storage server for kdepim  
amspsfnt-1.0_5  AMSFonts PostScript Fonts (Adobe Type 1 format)
apr-ipv6-gdbm-db42-1.3.9.1.3.9_1 Apache Portability Library
aspell-0.60.6_2 Spelling checker with better suggestion logic than ispell  
atk-1.28.0  A GNOME accessibility toolkit (ATK)
autoconf-2.62   Automatically configure source code on many Un*x platforms 
autoconf-wrapper-20071109 Wrapper script for GNU autoconf  
automake-1.10.1 GNU Standards-compliant Makefile generator (1.10)  
automake-1.5_5,1GNU Standards-compliant Makefile generator (1.5)   
automake-1.9.6_3GNU Standards-compliant Makefile generator (1.9)   
automake-wrapper-20071109 Wrapper script for GNU automake  
automoc4-0.9.88_1   Automatic moc for Qt 4 packages
avahi-app-0.6.25_2  Service discovery on a local network   
bash-4.0.35 The GNU Project's Bourne Again SHell   
bdftopcf-1.0.1  Convert X font from BDF to PCF 
bigreqsproto-1.0.2  BigReqs extension headers  
binutils-2.20.1 GNU binary tools   
bison-2.4.1,1   A parser generator from FSF, (mostly) compatible with Yacc 
bitstream-vera-1.10_4 Bitstream Vera TrueType font collection  
blas-1.0_4  Basic Linear Algebra, level 1, 2, and 3
boost-jam-1.41.0Build tool from the boost.org  
boost-libs-1.41.0_1 Free portable C++ libraries (without Boost.Python) 
boost-python-libs-1.41.0 Framework for interfacing Python and C++  
ca_root_nss-3.12.4  The root certificate bundle from the Mozilla Project   
cabextract-1.2  A program to extract Microsoft cabinet (.CAB) files
cairo-1.8.8_1,1 Vector graphics library with cross-device output support   
cdparanoia-3.9.8_8  A CDDA extraction tool (also known as ripper)  
cfitsio-3.100_1 Library for reading and writing files in FITS data format  
chmlib-0.40 A library for dealing with Microsoft ITSS/CHM format files 
cln-1.3.1   Class Library for Numbers  
clucene-0.9.21  CLucene is a C++ port of Lucene
cm-super-0.3.4_3Computer Modern Font Families in Type 1 Fonts  
cmake-2.8.0_3   A cross-platform Makefile generator
cmpsfont-1.0_6  Computer Modern PostScript Fonts (Adobe Type 1 format) 
compat7x-amd64-7.2.702000.200906.1 A convenience package to install the 
compat7x libraries
compositeproto-0.4  Composite extension headers 
  
consolekit-0.4.1_2  Framework for defining and tracking users   
  
cups-client-1.4.2_4 Common UNIX Printing System: Library cups   
  
cups-image-1.4.2_5  Common 

Re: error upgrading kdeedu4

2010-04-01 Thread Marco Beishuizen

On Thu, 1 Apr 2010, Dino Vliet wrote:


Error: Files /usr/local/lib/ocaml/facile/facile.cmxa
  and /usr/local/lib/ocaml/stdlib.cmxa
  make inconsistent assumptions over interface Buffer
*** Error code 2


You have to reinstall facile first, and then upgrade kdeedu. I had the 
same problem yesterday.


Regards,
Marco


--
Fortune's Real-Life Courtroom Quote #41:

Q:  Now, Mrs. Johnson, how was your first marriage terminated?
A:  By death.
Q:  And by whose death was it terminated?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to make "man" pages

2010-04-01 Thread Fbsd1

Matthew Seaman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 31/03/2010 08:54:25, Fbsd1 wrote:

OK i want to write a man page from scratch. So lets say i want to use
/usr/share/man/man2/jail.2.gz as my starting sample. How do I convert
this .gz file to a plain text file so I can edit it with ee?


   % cp /usr/share/man/man2/jail.2.gz .
   % gunzip jail.2.gz
   % mv jail.2 myname.2
   % ee myname.2


And how do
I turn the edited text file back in to a man page .gz file?


To compress the groff source:

   % gzip myname.2

To render the groff source as ascii text (what the man(1) command does):

   % groff -mdoc -Tascii myname.2 | less

or

   % gzcat myname.2.gz | groff -mdoc -Tascii | less

In general though, you should keep the man page source uncompressed
while you're working on it and within the port; install it uncompressed
and leave it to the ports machinery to compress it after installation.





Getting closer but not there yet. Selected man jail to be my example of 
macro commands used. Did  [gunzip jail.8.gz] and now I have jail.8 file.

How to I convert this file to native macro file that I can edit with ee?

After editing the macro file how to I convert it to format ready to 
compress? I want to test it with the man command.


When I do groff -mdoc -Tascii jail.8  | less
I get loads of  this message "mdoc warning: Empty input line #xxx.
If I look at man jail screen output I see each message corresponds to a 
blank line in the man page. Is this suppose to happen?








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


Re: How to make "man" pages

2010-04-01 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/04/2010 09:41:59, Fbsd1 wrote:
> Getting closer but not there yet. Selected man jail to be my example of
> macro commands used. Did  [gunzip jail.8.gz] and now I have jail.8 file.
> How to I convert this file to native macro file that I can edit with ee?

Ah -- did you copy the right file?  /usr/share/man/man8/jail.8.gz should
contain mdoc source, which looks like this:


.\"
.\" Copyright (c) 2000, 2003 Robert N. M. Watson
.\" Copyright (c) 2008 James Gritton
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"notice, this list of conditions and the following disclaimer in the

[... copyright statements elided for reasons of space ...]

.\" $FreeBSD: src/usr.sbin/jail/jail.8,v 1.97.2.3 2010/01/23 16:40:35 bz
Exp $
.\"
.Dd January 17, 2010
.Dt JAIL 8
.Os
.Sh NAME
.Nm jail
.Nd "create or modify a system jail"
.Sh SYNOPSIS
.Nm
[...etc...]

No blank lines there.  Don't confuse this with the preprocessed version
in /usr/share/man/*cat8*/jail.8.gz

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku0ZFIACgkQ8Mjk52CukIxTjACffpWoxOj7/QPl+KgFpxCSIq4z
Yn0AniejXWTWtZZwpgr4RpoIQTF5xMur
=YLBi
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to make "man" pages

2010-04-01 Thread Fbsd1

Matthew Seaman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/04/2010 09:41:59, Fbsd1 wrote:

Getting closer but not there yet. Selected man jail to be my example of
macro commands used. Did  [gunzip jail.8.gz] and now I have jail.8 file.
How to I convert this file to native macro file that I can edit with ee?


Ah -- did you copy the right file?  /usr/share/man/man8/jail.8.gz should
contain mdoc source, which looks like this:


.\"
.\" Copyright (c) 2000, 2003 Robert N. M. Watson
.\" Copyright (c) 2008 James Gritton
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"notice, this list of conditions and the following disclaimer in the

[... copyright statements elided for reasons of space ...]

.\" $FreeBSD: src/usr.sbin/jail/jail.8,v 1.97.2.3 2010/01/23 16:40:35 bz
Exp $
.\"
.Dd January 17, 2010
.Dt JAIL 8
.Os
.Sh NAME
.Nm jail
.Nd "create or modify a system jail"
.Sh SYNOPSIS
.Nm
[...etc...]

No blank lines there.  Don't confuse this with the preprocessed version
in /usr/share/man/*cat8*/jail.8.gz

Cheers,

Matthew



Yep that is the problem. I have no source. I did minimum install.
Is there any way to convert the preprocessed version in 
/usr/share/man/*cat8*/jail.8.gz to native macro file.

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


Re: How to make "man" pages

2010-04-01 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/04/2010 10:29:48, Fbsd1 wrote:
> Yep that is the problem. I have no source. I did minimum install.
> Is there any way to convert the preprocessed version in
> /usr/share/man/*cat8*/jail.8.gz to native macro file.

Download mdoc sources from here:

http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/jail/jail.8

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku0aIMACgkQ8Mjk52CukIz2ygCfRoFoguCJuLVbNEH/LodGP6tz
LWoAoIcsP1vs/82Ex4ex6lSloRU5E+wJ
=qQe5
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: u3g network problem

2010-04-01 Thread Alejandro Imass
On Wed, Mar 31, 2010 at 1:12 PM, Patrick Lamaiziere
 wrote:
> Le Wed, 31 Mar 2010 08:18:26 -0400,
> Alejandro Imass  a écrit :
>
>> On Tue, Mar 30, 2010 at 5:27 PM, Patrick Lamaiziere
>>  wrote:
>
[...]
>
> I use ppp (wvdial does not seem ported to FreeBSD, is it a Linux only
> program?)
>

I only dial out with my laptop which has Debian on it, and I assumed
that there was a FBSD port. Sorry, about that. I guess you're right,
but it seems odd that it's not ported to FBSD being such a friendly
tool for ppp. I found the sources here: http://alumnit.ca/wiki/?WvDial
but the wvstreams library does not compile right off the bat. Sadly I
don't have the time/need to play with this but if I did I would
definitively try to get it to run on FBSD if it were possible.

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


Re: skype webcam no device found

2010-04-01 Thread Alejandro Imass
On Wed, Mar 31, 2010 at 6:24 PM, Chris Whitehouse  wrote:
> Hi,
>
> I have my webcam setup and working and I can see stuff in pwcview. But
> skype tells me 'no device found' for video.
>

How did you get Skype to run? The current port (in FBSD 8) is pointing
to a file no longer provided by Skype and the linux compat stuff was a
bit confusing when I tried to do it by hand.

> I've tried various combinations of with/without webcamd and pwcview running,
> also as root, _and_ restarting webcamd each time, but no joy.
>
> Any suggestions very gratefully received.
>
> thanks
>
> Chris
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: skype webcam no device found

2010-04-01 Thread Matthias Apitz
El día Thursday, April 01, 2010 a las 06:42:20AM -0400, Alejandro Imass 
escribió:

> On Wed, Mar 31, 2010 at 6:24 PM, Chris Whitehouse  wrote:
> > Hi,
> >
> > I have my webcam setup and working and I can see stuff in pwcview. But
> > skype tells me 'no device found' for video.
> >
> 
> How did you get Skype to run? The current port (in FBSD 8) is pointing
> to a file no longer provided by Skype and the linux compat stuff was a
> bit confusing when I tried to do it by hand.
> 
> > I've tried various combinations of with/without webcamd and pwcview running,
> > also as root, _and_ restarting webcamd each time, but no joy.
> >
> > Any suggestions very gratefully received.

Skype from the ports runs fine in:

$ uname -a
FreeBSD current.Sisis.de 8.0-CURRENT FreeBSD 8.0-CURRENT #5: Sun Jan 10 
09:55:14 CET 2010 g...@current.sisis.de:/usr/obj/usr/src/sys/GENERIC i386
$ pkg_info | fgrep skype
skype-2.0.0.72,1P2P VoIP software
$ 

including a webCam based on pwc(4) kernel mod;

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
Solidarity with the imperialistic Israel?Not in my  name!
¿Solidaridad con el imperialismo de Israel? ¡No en mi nombre!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Default labeling and space for rebuilding the kernel.

2010-04-01 Thread Leon Meßner
On Wed, Mar 31, 2010 at 08:34:59AM -0400, Michael Powell wrote:
> Leon Meßner wrote:
> 
> > Hi,
> > 
> > if one uses the default labeling with current installer it is not
> > possible to rebuild the kernel (GENERIC). It fails on installing the
> > wlan.ko.

> > /: write failed, filesystem is full
> > install: /boot/kernel/wlan.ko.symbols: No space left on device
> [snip]
> 
> There has been some discussion lately about possibly changing the defaults. 
> If you become faced with having to reinstall jot down your current partition 
> sizes and adjust manually making / larger.

On production machines i have some 2G. This was just an as fast as
possible installation.
 
> Since it is full, if you intend to try and recover it will entail deleting 
> something. This could get tricky, especially if the new 'kernel' space is 
> what filled up. This would presuppose that the kernel.old area was already 
> written out successfully. If the machine will not boot successfully with the 
> new kernel it is imperative that kernel.old still be healthy in order to 
> recover. However, if the new kernel does actually boot, with the result 
> being that some modules are missing you may be able to delete the kernel.old 
> in order to buy space. Messing around with this can potentially be 
> problematic, for obvious reasons. A strong 'YMMV' is indicated here.

I just went the easy way and moved the old kernel away from / . I
wouldn't have done so if this machine would be very critical though.

> If you can get past that, you may be able to mitigate the / being too small. 
> Place STRIP= -s into /etc/make.conf and WITHOUT_PROFILE= true into 
> /etc/src.conf. The con of this is that you lose some debugging ability. The 
> pro is new kernels will now fit. I have two servers set up this way at home, 
> and one uses 91MB while the other uses 93MB of space. The 91MB one only has 
> a / of 200MB total, and is nearly half empty. Allows for rebuilding and 
> installing a new kernel without running out of space.

Hm, never used this file. Looks like it was introduced in FBSD7
somewhere. Looks reasonable to split parameters for /usr/src into a
different file than /etc/make.conf

thanks,
Leon


pgpvRV7QIQqB5.pgp
Description: PGP signature


FreeBSD splash screen - freezes my Dell Inspiron 9400

2010-04-01 Thread Christoph Kukulies

I'm observing the following with 8.0 Release:

Just for fun I installed a FreeBSD splash screen "The Power to Serve" 
with the abstracted little demon.
As long as the vidcontrol screen saver (not X11, I'm not running X11 at 
present) has not fired the first time,

everything  is fine - I can work in alphanumeric mode.

But when I leave the computer unattended for a while so that the 
screensaver switches to darken/blank the screen
the first time, the machine freezes or at least cannot be woken up again 
so that the character screen shows up again.


Anyone seen this or having a clue?

Also not sure whether it is a splash screen issue at all, butr I thought 
so, since it would have come up earlier otherwise.


--
Christoph Kukulies

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


Re: skype webcam no device found

2010-04-01 Thread Alejandro Imass
On Thu, Apr 1, 2010 at 6:53 AM, Matthias Apitz  wrote:
> El día Thursday, April 01, 2010 a las 06:42:20AM -0400, Alejandro Imass 
> escribió:
>
>> On Wed, Mar 31, 2010 at 6:24 PM, Chris Whitehouse  wrote:
>> > Hi,
>> >
>> > I have my webcam setup and working and I can see stuff in pwcview. But
>> > skype tells me 'no device found' for video.
>> >
>>
>> How did you get Skype to run? The current port (in FBSD 8) is pointing
>> to a file no longer provided by Skype and the linux compat stuff was a
>> bit confusing when I tried to do it by hand.
>>
>> > I've tried various combinations of with/without webcamd and pwcview 
>> > running,
>> > also as root, _and_ restarting webcamd each time, but no joy.
>> >
>> > Any suggestions very gratefully received.
>
> Skype from the ports runs fine in:
>
> $ uname -a
> FreeBSD current.Sisis.de 8.0-CURRENT FreeBSD 8.0-CURRENT #5: Sun Jan 10 
> 09:55:14 CET 2010     g...@current.sisis.de:/usr/obj/usr/src/sys/GENERIC i386
> $ pkg_info | fgrep skype
> skype-2.0.0.72,1    P2P VoIP software
> $
>
> including a webCam based on pwc(4) kernel mod;
>
>        matthias
>

Well not in my system:

lucifer# uname -a
FreeBSD lucifer.yabarana.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat
Nov 21 15:02:08 UTC 2009
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


lucifer# make install clean
===>  Vulnerability check disabled, database not found

* * * * * * * * * * * * * * * * * * * * * * * * * * * *
ATTENTION!

Skype requires at least linux_base-fc6
which is NOT default at this time.
If you don't have that version or above installed,
hit 'control c' now!

Please read /usr/ports/UPDATING 20080318
for update and install instructions.
* * * * * * * * * * * * * * * * * * * * * * * * * * * *

=> skype_static-2.0.0.72-oss.tar.bz2 doesn't seem to exist in
/usr/ports/distfiles/.
=> Attempting to fetch from http://download.skype.com/linux/.
fetch: http://download.skype.com/linux/skype_static-2.0.0.72-oss.tar.bz2:
Not Found
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/skype_static-2.0.0.72-oss.tar.bz2:
File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/net/skype.


Best,
Alejandro Imass

> --
> Matthias Apitz
> t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
> e  - w http://www.unixarea.de/
> Solidarity with the imperialistic Israel?    Not in my  name!
> ¿Solidaridad con el imperialismo de Israel? ¡No en mi nombre!
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: panic: sleeping thread

2010-04-01 Thread Paul Halliday
On Mon, Mar 22, 2010 at 9:28 AM, Paul Halliday  wrote:
> I have a couple VM's that randomly halt with this error:
>
> Sleeping thread (tid 10018, pid 1058) owns a non-sleepable lock
> panic: sleeping thread
> cpuid = 0
> Uptime 11h14m31s
> Cannot dump. Device not defined or unavailable.
>
> FreeBSD 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC
> 2009     r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
> amd64
>
> These systems run nightly Nessus scans and these halts are very
> sporadic; I can go a week w/o seeing one.
>
> What should I do to start to troubleshoot this?
>
> Thanks.
>

There was another panic this morning, different message this time though:

panic: vm_fault_copy_wired: page missing
cpuid = 1
Uptime: 9d16h58m29s
Cannot dump. Device not defined or unavailable.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


USB disk boot issues

2010-04-01 Thread Peter Steele
We clone systems from specially prepared USB flash sticks and this all works 
well, except that occasionally the flash stick fails to boot. It fails at the 
"mount root" step, saying that it cannot mount the specified root partition. We 
use a labeled partition on the disk to make it device independent, so we have 
something like

/dev/label/usbroot  /ufsrw 1  1

in our fstab. When it fails it doesn't recognize this device, and even ? 
doesn't list it as one of the available devices. If we reboot, it's likely the 
problem won't occur again. It seems to be some kind of timing issue. Is this a 
known problem?

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


Re: skype webcam no device found

2010-04-01 Thread daniele

On 04/01/10 13:22, Alejandro Imass wrote:

On Thu, Apr 1, 2010 at 6:53 AM, Matthias Apitz  wrote:

El día Thursday, April 01, 2010 a las 06:42:20AM -0400, Alejandro Imass 
escribió:


On Wed, Mar 31, 2010 at 6:24 PM, Chris Whitehouse  wrote:

Hi,

I have my webcam setup and working and I can see stuff in pwcview. But
skype tells me 'no device found' for video.



How did you get Skype to run? The current port (in FBSD 8) is pointing
to a file no longer provided by Skype and the linux compat stuff was a
bit confusing when I tried to do it by hand.


I've tried various combinations of with/without webcamd and pwcview running,
also as root, _and_ restarting webcamd each time, but no joy.

Any suggestions very gratefully received.


Skype from the ports runs fine in:

$ uname -a
FreeBSD current.Sisis.de 8.0-CURRENT FreeBSD 8.0-CURRENT #5: Sun Jan 10 
09:55:14 CET 2010 g...@current.sisis.de:/usr/obj/usr/src/sys/GENERIC i386
$ pkg_info | fgrep skype
skype-2.0.0.72,1P2P VoIP software
$

including a webCam based on pwc(4) kernel mod;

matthias



Well not in my system:

lucifer# uname -a
FreeBSD lucifer.yabarana.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat
Nov 21 15:02:08 UTC 2009
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


lucifer# make install clean
===>   Vulnerability check disabled, database not found

* * * * * * * * * * * * * * * * * * * * * * * * * * * *
ATTENTION!

Skype requires at least linux_base-fc6
which is NOT default at this time.
If you don't have that version or above installed,
hit 'control c' now!

Please read /usr/ports/UPDATING 20080318
for update and install instructions.
* * * * * * * * * * * * * * * * * * * * * * * * * * * *

=>  skype_static-2.0.0.72-oss.tar.bz2 doesn't seem to exist in
/usr/ports/distfiles/.
=>  Attempting to fetch from http://download.skype.com/linux/.
fetch: http://download.skype.com/linux/skype_static-2.0.0.72-oss.tar.bz2:
Not Found
=>  Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/skype_static-2.0.0.72-oss.tar.bz2:
File unavailable (e.g., file not found, no access)
=>  Couldn't fetch it - please try to retrieve this
=>  port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/net/skype.


Best,
Alejandro Imass


--
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
Solidarity with the imperialistic Israel?Not in my  name!
¿Solidaridad con el imperialismo de Israel? ¡No en mi nombre!


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



Intrigued, I tested it "here".

FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 
/usr/obj/usr/src/sys/GENERIC i386


I already had installed linux-f10 (for flash plugin). Then

- cd /usr/ports/net/skype
- make depends (install dependecies)

I downloaded skype static for GNU/Linux directly from skype website.

Extracted the package in my own folder... Launched skype... it works out 
of the box at least for sending/receiving written messages. No sound for 
the moment, probably does it need any plugin or configuration or package 
? (btw this would be another thread)
A couple of messages "kern.maxfiles" are displayed and also one 
remembering a syscall is not implemented


d

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


Re: FreeBSD splash screen - freezes my Dell Inspiron 9400

2010-04-01 Thread Fbsd1

Christoph Kukulies wrote:

I'm observing the following with 8.0 Release:

Just for fun I installed a FreeBSD splash screen "The Power to Serve" 
with the abstracted little demon.
As long as the vidcontrol screen saver (not X11, I'm not running X11 at 
present) has not fired the first time,

everything  is fine - I can work in alphanumeric mode.

But when I leave the computer unattended for a while so that the 
screensaver switches to darken/blank the screen
the first time, the machine freezes or at least cannot be woken up again 
so that the character screen shows up again.


Anyone seen this or having a clue?

Also not sure whether it is a splash screen issue at all, butr I thought 
so, since it would have come up earlier otherwise.


--
Christoph Kukulies





Have you read the handbook section 12.3.3.4 Boot Time Splash Screens?
The splash screen has its own screen saver. Or are you talking about the 
screen saver enabled in rc.conf?

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


Re: freebsd-8 support for dell R710 SATA raid-0

2010-04-01 Thread John
On Wed, Mar 31, 2010 at 11:56:06AM +0100, krad wrote:
> 
>we are testing one at work at the moment. I think its a driver issue. We
>are looking at either putting in a perc card or swapping it for the next
>chasis.

I configured the disks as JBOD but got the same results. I think the
problem lies with all the disks each being 2TB so they can't be seen
with sysinstall. maybe the way forward is to boot to live CD so there's
a full environment, then try to sort it with GPT, then do an install
from the liveCD. I'll try this tonight. 
-- 
John - comp dot john at googlemail dot com
OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
GPG: 0xF08A33C5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Compiling kernel with gcc43 [SOLVED]

2010-04-01 Thread Oliver Fromme
Mario Lobo  wrote:
 > [...]
 > It's compiling right now.
 > 
 > I'll post my findings and impressions on results and performance right after 
 > the next reboot.

So, how is it going?  Any benchmarks yet?  I'm curious
if the new gcc version will really make a significant
difference.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"UNIX was not designed to stop you from doing stupid things,
because that would also stop you from doing clever things."
-- Doug Gwyn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: libiconv-1.11_1

2010-04-01 Thread Lowell Gilbert
Jay Hall  writes:

> On Mar 31, 2010, at 3:17 PM, Mikle wrote:
>
>> Hello,
>> In my ports tree there is only one version of libiconv, and
>> compiling samba doesn't ask about any other versions
>> (/usr/ports/converters/libiconv, version 1.13). Maybe you should
>> update your ports?
>> Also, i do not see why should libiconv affect ssh[d]. What does your
>> macos's ssh tell you when you're trying to connect to fbsd-machine?
>>
> Here is what is logged on the Mac when trying to connect.
>
> jh...@jefmhallja-~/.ssh$ ssh -vv hal...@10.129.10.2
> OpenSSH_5.2p1, OpenSSL 0.9.7l 28 Sep 2006
> debug1: Reading configuration data /etc/ssh_config
> debug2: ssh_connect: needpriv 0
> debug1: Connecting to 10.129.10.2 [10.129.10.2] port 22.
> debug1: Connection established.
> debug1: identity file /Users/jhall/.ssh/identity type -1
> debug1: identity file /Users/jhall/.ssh/id_rsa type -1
> debug1: identity file /Users/jhall/.ssh/id_dsa type -1
> debug1: Remote protocol version 2.0, remote software version
> OpenSSH_5.2p1 FreeBSD-20090522
> debug1: match: OpenSSH_5.2p1 FreeBSD-20090522 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_5.2
> debug2: fd 3 setting O_NONBLOCK
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug2: kex_parse_kexinit:
> diffie-hellman-group-exchange-sha256,diffie-
> hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-
> group1-sha1
> debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
> debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-
> ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-
> cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
> debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-
> ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-
> cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
> debug2: kex_parse_kexinit:
> hmac-md5,hmac-sha1,umac...@openssh.com,hmac-
> ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit:
> hmac-md5,hmac-sha1,umac...@openssh.com,hmac-
> ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: none,z...@openssh.com,zlib
> debug2: kex_parse_kexinit: none,z...@openssh.com,zlib
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit: first_kex_follows 0
> debug2: kex_parse_kexinit: reserved 0
> debug2: kex_parse_kexinit:
> diffie-hellman-group-exchange-sha256,diffie-
> hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-
> group1-sha1
> debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
> debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-
> ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-
> cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
> debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-
> ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-
> cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se
> debug2: kex_parse_kexinit:
> hmac-md5,hmac-sha1,umac...@openssh.com,hmac-
> ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit:
> hmac-md5,hmac-sha1,umac...@openssh.com,hmac-
> ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
> debug2: kex_parse_kexinit: none,z...@openssh.com
> debug2: kex_parse_kexinit: none,z...@openssh.com
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit:
> debug2: kex_parse_kexinit: first_kex_follows 0
> debug2: kex_parse_kexinit: reserved 0
> debug2: mac_setup: found hmac-md5
> debug1: kex: server->client aes128-ctr hmac-md5 none
> debug2: mac_setup: found hmac-md5
> debug1: kex: client->server aes128-ctr hmac-md5 none
> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> debug2: dh_gen_key: priv key bits set: 141/256
> debug2: bits set: 513/1024
> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> debug1: Host '10.129.10.2' is known and matches the RSA host key.
> debug1: Found key in /Users/jhall/.ssh/known_hosts:1
> debug2: bits set: 514/1024
> debug1: ssh_rsa_verify: signature correct
> debug2: kex_derive_keys
> debug2: set_newkeys: mode 1
> debug1: SSH2_MSG_NEWKEYS sent
> debug1: expecting SSH2_MSG_NEWKEYS
> debug2: set_newkeys: mode 0
> debug1: SSH2_MSG_NEWKEYS received
> debug1: SSH2_MSG_SERVICE_REQUEST sent
> debug2: service_accept: ssh-userauth
> debug1: SSH2_MSG_SERVICE_ACCEPT received
> debug2: key: /Users/jhall/.ssh/identity (0x0)
> debug2: key: /Users/jhall/.ssh/id_rsa (0x0)
> debug2: key: /Users/jhall/.ssh/id_dsa (0x0)
> Connection closed by 10.129.10.2

Try kicking up the verbosity of your sshd and seeing what it tells you.
Looks like the server is where the connection gets closed.

As has already been suggested, you should update your ports to use the
libiconv that new ports are already trying to use on your system, and
get rid of the old one. 

Re: Compiling kernel with gcc43 [SOLVED]

2010-04-01 Thread Pegasus Mc Cleaft
On Thursday 01 April 2010 15:27:41 Oliver Fromme wrote:
> Mario Lobo  wrote:
>  > [...]
>  > It's compiling right now.
>  >
>  > I'll post my findings and impressions on results and performance right
>  > after the next reboot.
> 
> So, how is it going?  Any benchmarks yet?  I'm curious
> if the new gcc version will really make a significant
> difference.

I would love to see the /etc/make.conf,  /etc/src.conf and 
/etc/libmap.conf files that were used for the build. I have tried compiling in 
VBox a current kernel and world, but it usually just bombs out for me. I would 
like to give this a go as well. 

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


ipfw weirdness after csup/buildworld

2010-04-01 Thread Tim Gustafson
I am running: FreeBSD 8.0-STABLE amd64

After recently csup'ing to the latest sources and then a build/install cycle, 
my ipfw started misbehaving badly.  I'm seeing lots of:

ipfw: install_state: entry already present, done

and also lots of:

ipfw: ouch!, skip past end of rules, denying packet

When I did an "ipfw list", I got something like this:

0  ip from any to any

Note the rule number is all zeros, and there's no "allow" or "deny".  Adding 
rules or removing rules didn't fix anything, nor did an "ipfw flush".  Once it 
was in that state, attempting to "kldunload ipfw" caused the system to hang.  
The only fix for now was to disable the firewall.

When I went into single user mode, and did:

kldload ipfw
ipfw /etc/firewall.rules (which is the same ruleset I had loaded on boot)

everything worked fine, but when I went into multi-user mode and did the same 
thing, it failed with the symptoms listed above.

Just to be sure, a day after this started happening I did a csup again and 
another build/install cycle but got exactly the same results.

Any ideas?

Tim Gustafson
Baskin School of Engineering
UC Santa Cruz
t...@soe.ucsc.edu
831-459-5354

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


Re: libiconv-1.11_1

2010-04-01 Thread Jay Hall


On Apr 1, 2010, at 10:36 AM, Lowell Gilbert wrote:



Try kicking up the verbosity of your sshd and seeing what it tells  
you.

Looks like the server is where the connection gets closed.

As has already been suggested, you should update your ports to use the
libiconv that new ports are already trying to use on your system, and
get rid of the old one.  I find it really unlikely that iconv could
affect the system sshd, though (you are using sshd from the base,
right?), so there may be something else going on.

--
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/




All of the ports are updated now.

Following is from the FreeBSD server when the Mac tries to connect.
Apr  1 13:06:22 mo-bak-s1 sshd[33894]: debug1: fd 5 clearing O_NONBLOCK
Apr  1 13:06:22 mo-bak-s1 sshd[33894]: debug1: Forked child 33946.
Apr  1 13:06:22 mo-bak-s1 sshd[33894]: debug3: send_rexec_state:  
entering fd = 8 config len 198

Apr  1 13:06:22 mo-bak-s1 sshd[33894]: debug3: ssh_msg_send: type 0
Apr  1 13:06:22 mo-bak-s1 sshd[33894]: debug3: send_rexec_state: done
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: rexec start in 5 out 5  
newsock 5 pipe 7 sock 8
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: inetd sockets after  
dupping: 3, 3

Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: res_init()
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Client protocol version  
2.0; client software version OpenSSH_5.2
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: match: OpenSSH_5.2 pat  
OpenSSH*
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Enabling compatibility  
mode for protocol 2.0
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Local version string  
SSH-2.0-OpenSSH_5.2p1 FreeBSD-20090522

Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug2: fd 3 setting O_NONBLOCK
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug2: Network child is on pid  
33947
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug3: preauth child monitor  
started
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug3: mm_request_receive  
entering
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: monitor_read: checking  
request 0
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_moduli: got  
parameters: 1024 1024 8192
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_send  
entering: type 1
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug2: monitor_read: 0 used  
once, disabling now
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_receive  
entering
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: monitor_read: checking  
request 4

Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_sign
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_sign:  
signature 0x28638280(271)
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_send  
entering: type 5
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug2: monitor_read: 4 used  
once, disabling now
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_receive  
entering
Apr  1 13:06:22 mo-bak-s1 sshd[33894]: debug3: send_rexec_state:  
entering fd = 8 config len 198

Apr  1 13:06:22 mo-bak-s1 sshd[33894]: debug3: ssh_msg_send: type 0
Apr  1 13:06:22 mo-bak-s1 sshd[33894]: debug3: send_rexec_state: done
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: rexec start in 5 out 5  
newsock 5 pipe 7 sock 8
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: inetd sockets after  
dupping: 3, 3

Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: res_init()
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Client protocol version  
2.0; client software version OpenSSH_5.2
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: match: OpenSSH_5.2 pat  
OpenSSH*
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Enabling compatibility  
mode for protocol 2.0
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug1: Local version string  
SSH-2.0-OpenSSH_5.2p1 FreeBSD-20090522

Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug2: fd 3 setting O_NONBLOCK
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug2: Network child is on pid  
33947
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug3: preauth child monitor  
started
Apr  1 13:06:22 mo-bak-s1 sshd[33946]: debug3: mm_request_receive  
entering
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: monitor_read: checking  
request 0
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_moduli: got  
parameters: 1024 1024 8192
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_send  
entering: type 1
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug2: monitor_read: 0 used  
once, disabling now
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_receive  
entering
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: monitor_read: checking  
request 4

Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_sign
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_answer_sign:  
signature 0x28638280(271)
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug3: mm_request_send  
entering: type 5
Apr  1 13:06:23 mo-bak-s1 sshd[33946]: debug2: monitor_read: 4 used  
once, disabling now
Apr  1 

Testing ethernet interface status

2010-04-01 Thread Peter Steele
What's the best what to test the status of an Ethernet interface 
programmatically? We've been using this code similar to this:

struct ifmediareq ifmr;
memset(&ifmr, 0, sizeof(ifmr));
strcpy(ifmr.ifm_name, "nfe0");
ioctl(sockfd, SIOCGIFMEDIA, (caddr_t)&ifmr)

and then checking the value of ifmr.ifm_status & IFM_ACTIVE. We've found that 
every once in a while this code will return a false positive, indicating that 
the interface has gone offline when in fact it has not.

So, is there a more reliable call to test if an Ethernet interface has gone 
offline?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Testing ethernet interface status

2010-04-01 Thread Steve Polyack

On 04/01/10 14:21, Peter Steele wrote:

What's the best what to test the status of an Ethernet interface 
programmatically? We've been using this code similar to this:

struct ifmediareq ifmr;
memset(&ifmr, 0, sizeof(ifmr));
strcpy(ifmr.ifm_name, "nfe0");
ioctl(sockfd, SIOCGIFMEDIA, (caddr_t)&ifmr)

and then checking the value of ifmr.ifm_status&  IFM_ACTIVE. We've found that 
every once in a while this code will return a false positive, indicating that the 
interface has gone offline when in fact it has not.

So, is there a more reliable call to test if an Ethernet interface has gone 
offline?
   
I was going to suggest that you look at the ifconfig(8) source code, but 
then I did so myself - it looks like you're doing it pretty much exactly 
how they are.  I've never noticed ifconfig(8) returning an incorrect 
value, not to say it's not possible.


Are you sure that nothing is causing interface state resets? i.e. 
mismatched duplex/speed settings between the FreeBSD machine and the 
switch?  Have you checked dmesg(8) for logs of interface state changes?  
You can also check the output of 'netstat -i' to check for interface errors.


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


Re: Testing ethernet interface status

2010-04-01 Thread Samuel Martín Moro
I don't remember everything, but I used to do a program to do that.
You should also check ifmr.ifm_active value.
There was some "strange" behaviour (obviously normal, but unexpected when I
coded it), about up/down interfaces and plug or unplugged cables

and yep, ifconfig's doing it 'wrong' :)


Samuel Martín Moro
{EPITECH.} tek4
CamTrace S.A.S


On Thu, Apr 1, 2010 at 8:56 PM, Steve Polyack  wrote:

> On 04/01/10 14:21, Peter Steele wrote:
>
>> What's the best what to test the status of an Ethernet interface
>> programmatically? We've been using this code similar to this:
>>
>> struct ifmediareq ifmr;
>> memset(&ifmr, 0, sizeof(ifmr));
>> strcpy(ifmr.ifm_name, "nfe0");
>> ioctl(sockfd, SIOCGIFMEDIA, (caddr_t)&ifmr)
>>
>> and then checking the value of ifmr.ifm_status&  IFM_ACTIVE. We've found
>> that every once in a while this code will return a false positive,
>> indicating that the interface has gone offline when in fact it has not.
>>
>> So, is there a more reliable call to test if an Ethernet interface has
>> gone offline?
>>
>>
> I was going to suggest that you look at the ifconfig(8) source code, but
> then I did so myself - it looks like you're doing it pretty much exactly how
> they are.  I've never noticed ifconfig(8) returning an incorrect value, not
> to say it's not possible.
>
> Are you sure that nothing is causing interface state resets? i.e.
> mismatched duplex/speed settings between the FreeBSD machine and the switch?
>  Have you checked dmesg(8) for logs of interface state changes?  You can
> also check the output of 'netstat -i' to check for interface errors.
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: Testing ethernet interface status

2010-04-01 Thread Peter Steele
>I was going to suggest that you look at the ifconfig(8) source code, but then 
>I did so myself - it looks like you're doing it pretty much exactly how they 
>are.  I've never >noticed ifconfig(8) returning an incorrect value, not to say 
>it's not possible.
>
>Are you sure that nothing is causing interface state resets? i.e. 
>mismatched duplex/speed settings between the FreeBSD machine and the switch?  
>Have you checked dmesg(8) for logs of interface state changes?  
>You can also check the output of 'netstat -i' to check for interface errors.

I should have added that when our own monitoring code flags one of these false 
positives, there is no entry in /var/log/messages indicating that the nic has 
gone offine. I added a second call to confirm that indeed the interface is 
offline, and this second check seems to have largely solved the problem, but we 
have seen a case where even two consecutive checks return false positives. 
Maybe we need three tests?

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


Re: rum0 performance < 1Mbps; ath0 reboots system

2010-04-01 Thread Yury Michurin
Hi Deceased,
I'm using Edimax
EW7318USG(RT2571)
with rum0, works fine for me after setting:
ifconfig_rum0="inet 10.0.0.1 netmask 255.255.255.0 ssid FreeBSD channel 7
media OFDM/54Mbps mode 11g mediaopt hostap"

when media was in "autoselect" i was getting poor rates < 500kb, after
setting the OFDM/54Mbps I'm getting ~2MB/s:
100% |*|98 MB2.04 MB/s00:00
ETA
226 File send OK.
103660722 bytes received in 00:48 (2.04 MB/s)
( transfer from the fbsd box to my laptop )

You can see available mediaopts with ifconfig -m rum0.

The only problem i'm currently having is after a while stations fail to
auth, which is resolved by restarting hostapd, I don't have a lead on that
one yet. ;\

If you interested, you can find my configs here:
http://www.blog.freebsd.co.il/2010/03/%D7%A9%D7%A8%D7%AA-freebsd-%D7%9B%D7%A0%D7%AA%D7%91-%D7%90%D7%9C%D7%97%D7%95%D7%98%D7%99/
( the text is in hebrew, but you'll get the idea, based on configs from:
http://www.howtoforge.com/setting_up_a_freebsd_wlan_access_point )

Best regards,
Yury.

On Wed, Jan 14, 2009 at 10:18 AM, Deceased wrote:

> Hi, List,
>
> Recently I've set up my non-lcd-wokring HP NX9020 notebook as ADSL
> gateway and AP on 7.1-release
>
> Everything works well except wireless. I have LogiLink WL0025 (RT2573)
> which users rum(4) driver. I now it's not recomended to use rum cards as
> hostap, but my ath(4) card works even worse(later on that).
>
> IT is a USB stick so if it was connected as USB 1.0 device i would
> expect that kind of performance, but it's not (i guess :) )
>
> addr 1: UHCI root hub, Intel, device uhub0
> addr 1: UHCI root hub, Intel, device uhub1
> addr 1: UHCI root hub, Intel, device uhub2
> addr 1: EHCI root hub, Intel, device uhub3
>  addr 2: product 0x0018, vendor 0x13b1, device axe0
>  addr 3: 802.11 bg WLAN, Ralink, device rum0
>
> Also mind that I'm using USB ethernet adapter on the same USB root hub.
>
> I tried to use Netgear WG511T (atheros 5212) (carbus) but it constantly
> couses IRQ storms with cbb0 device, after I disable acpi it works, but
> even slower than rum0 card and panics the machine if I remove the card
> from working machine.
>
> Any thoughts would be appreciated.
> dmesg attached.
>
>
> nbgw# vmstat -i
> interrupt  total   rate
> irq0: clk   44926114   1000
> irq1: atkbd0 186  0
> irq8: rtc5749743127
> irq9: uhci2 acpi0 264526  5
> irq10: rl0 uhci0  434405  9
> irq11: cbb0 uhci1+  25789037574
> irq12: psm0  136  0
> irq14: ata0   646740 14
> Total   77810887   1732
>
> opyright (c) 1992-2009 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009
>r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
> module_register: module uhub/rum already exists!
> Module uhub/rum failed to register: 17
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Intel(R) Celeron(R) M processor 1.30GHz (1296.76-MHz 686-class
> CPU)
>  Origin = "GenuineIntel"  Id = 0x6d6  Stepping = 6
>
>  
> Features=0xafe9f9bf
> real memory  = 502136832 (478 MB)
> avail memory = 477327360 (455 MB)
> kbd1 at kbdmux0
> ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
> acpi0:  on motherboard
> acpi0: [ITHREAD]
> acpi0: Power Button (fixed)
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
> acpi_ec0:  port 0x62,0x66 on acpi0
> acpi_acad0:  on acpi0
> battery0:  on acpi0
> acpi_lid0:  on acpi0
> acpi_button0:  on acpi0
> pcib0:  port 0xcf8-0xcff on acpi0
> pci0:  on pcib0
> pci0:  at device 0.1 (no driver attached)
> pci0:  at device 0.3 (no driver attached)
> vgapci0:  port 0x1800-0x1807 mem
> 0xe800-0xefff,0xe000-0xe007 irq 10 at device 2.0 on pci0
> agp0:  on vgapci0
> agp0: detected 32636k stolen memory
> agp0: aperture size is 128M
> vgapci1:  mem
> 0xf000-0xf7ff,0xe008-0xe00f at device 2.1 on pci0
> uhci0:  port 0x1820-0x183f irq
> 10 at device 29.0 on pci0
> uhci0: [GIANT-LOCKED]
> uhci0: [ITHREAD]
> usb0:  on uhci0
> usb0: USB revision 1.0
> uhub0:  on usb0
> uhub0: 2 ports with 2 removable, self powered
> uhci1:  port 0x1840-0x185f irq
> 11 at device 29.1 on pci0
> uhci1: [GIANT-LOCKED]
> uhci1: [ITHREAD]
> usb1:  on uhci1
> usb1: USB revision 1.0
> uhub1:  on usb1
> uhub1: 2 ports with 2 removable, self powered
> uhci2:  port 0x1860-0x187f at
> device 29.2 on pci0
> uhci2: [GIANT-LOCKED]
> uhci2: [ITHRE

Re: skype webcam no device found

2010-04-01 Thread Chris Whitehouse

Alejandro Imass wrote:

On Thu, Apr 1, 2010 at 6:53 AM, Matthias Apitz  wrote:

El día Thursday, April 01, 2010 a las 06:42:20AM -0400, Alejandro Imass 
escribió:


On Wed, Mar 31, 2010 at 6:24 PM, Chris Whitehouse  wrote:

Hi,

I have my webcam setup and working and I can see stuff in pwcview. But
skype tells me 'no device found' for video.


How did you get Skype to run? The current port (in FBSD 8) is pointing
to a file no longer provided by Skype and the linux compat stuff was a
bit confusing when I tried to do it by hand.


I've tried various combinations of with/without webcamd and pwcview running,
also as root, _and_ restarting webcamd each time, but no joy.

Any suggestions very gratefully received.

Skype from the ports runs fine in:

$ uname -a
FreeBSD current.Sisis.de 8.0-CURRENT FreeBSD 8.0-CURRENT #5: Sun Jan 10 
09:55:14 CET 2010 g...@current.sisis.de:/usr/obj/usr/src/sys/GENERIC i386
$ pkg_info | fgrep skype
skype-2.0.0.72,1P2P VoIP software
$

including a webCam based on pwc(4) kernel mod;

   matthias



Well not in my system:

lucifer# uname -a
FreeBSD lucifer.yabarana.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat
Nov 21 15:02:08 UTC 2009
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


lucifer# make install clean
===>  Vulnerability check disabled, database not found

* * * * * * * * * * * * * * * * * * * * * * * * * * * *
ATTENTION!

Skype requires at least linux_base-fc6


I have linux_base-f10-10_2 and skype-2.0.0.72,1 (net/skype) installed 
from ports and it just worked - but so far without video and sound.


FreeBSD 8.0-RELEASE-p2 #0: Wed Mar 24 i386

Chris



which is NOT default at this time.
If you don't have that version or above installed,
hit 'control c' now!

Please read /usr/ports/UPDATING 20080318
for update and install instructions.
* * * * * * * * * * * * * * * * * * * * * * * * * * * *

=> skype_static-2.0.0.72-oss.tar.bz2 doesn't seem to exist in
/usr/ports/distfiles/.
=> Attempting to fetch from http://download.skype.com/linux/.
fetch: http://download.skype.com/linux/skype_static-2.0.0.72-oss.tar.bz2:
Not Found
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/.
fetch: 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/skype_static-2.0.0.72-oss.tar.bz2:
File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/net/skype.


Best,
Alejandro Imass


--
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
Solidarity with the imperialistic Israel?Not in my  name!
¿Solidaridad con el imperialismo de Israel? ¡No en mi nombre!


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



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


Re: Compiling kernel with gcc43 [SOLVED]

2010-04-01 Thread Vlad Galu
On Thu, Apr 1, 2010 at 6:27 PM, Oliver Fromme  wrote:
> Mario Lobo  wrote:
>  > [...]
>  > It's compiling right now.
>  >
>  > I'll post my findings and impressions on results and performance right 
> after
>  > the next reboot.
>
> So, how is it going?  Any benchmarks yet?  I'm curious
> if the new gcc version will really make a significant
> difference.
>

I'm not as worried about performance as I am about compatibilty.
Various software suites have started using newer GCCisms in their
code. One example I can give from the top of my head is Wt
(www.webtoolkit.eu), which compiles with 4.4, but not with 4.2. I
shamefully haven't dug any deeper to check which particular
syntactical construct offended 4.2.

Yes, one might say, after all it's the upstream developers who ought
to make sure their software compiles on FreeBSD, but some aditional
overhead on the shoulders of our port maintainers should be expected.

> Best regards
>   Oliver
>
> --
> Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
> Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
> secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
> chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
>
> FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd
>
> "UNIX was not designed to stop you from doing stupid things,
> because that would also stop you from doing clever things."
>        -- Doug Gwyn
> ___
> freebsd-hack...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
>



-- 
Good, fast & cheap. Pick any two.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


pyglet segfaults on FreeBSD 8.0/amd64

2010-04-01 Thread Giuseppe Pagnoni
Hi,

I installed pyglet from the ports (latest version as of yesterday) on
a FreeBSD 8.0 amd64 box, running the ports' nvidia driver.  I found
that I cannot use either font.Text or text.label  without causing
segfaults.  Here is some sample code that makes python crash:

- SNIPPET 1
import pyglet
window = pyglet.window.Window()
luxi = pyglet.font.load('Luxi Sans', 14)
---  > SEGMENTATION FAULT

- SNIPPET 12
import pyglet
window = pyglet.window.Window()
label = pyglet.text.Label('Hello, world',
   font_name='Luxi Sans',
   font_size=36,
   x=window.width//2,
   y=window.height//2,
   anchor_x='center',
   anchor_y='center')
---  > SEGMENTATION FAULT

It seems that the problem arises already at the stage of font loading.
 I am not at all a python expert, but perhaps somebody can suggest a
way to narrow down the problem?

Here is some more information on my system reported by a routine
included in a python package (PsychoPy) I am trying to use, in case
that's useful:

System info:
FreeBSD-8.0-RELEASE-p2-amd64-64bit-ELF

Python info
/usr/local/bin/python
2.6.4 (r264:75706, Mar 23 2010, 15:20:14)
[GCC 4.2.1 20070719  [FreeBSD]]
numpy 1.4.0
scipy 0.7.1
matplotlib 0.99.0
pyglet 1.1.2
PsychoPy 1.60.03

OpenGL info:
vendor: NVIDIA Corporation
rendering engine: GeForce 9500 GT/PCI/SSE2
OpenGL version: 3.2.0 NVIDIA 195.22
(Selected) Extensions:
   True GL_ARB_multitexture
   True GL_EXT_framebuffer_object
   True GL_ARB_fragment_program
   True GL_ARB_shader_objects
   True GL_ARB_vertex_shader
   True GL_ARB_texture_non_power_of_two
   True GL_ARB_texture_float


Thanks in advance for any suggestion/comment,

very best

  giuseppe


-- 
Giuseppe Pagnoni
Dip. Scienze Biomediche
Sezione Fisiologia
Univ. di Modena e Reggio Emilia
Via Campi 287
I-41125 Modena, Italy
Tel: +39-059-205-5742
Fax: +39-059-205-5336
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd-8 support for dell R710 SATA raid-0

2010-04-01 Thread krad
On 1 April 2010 14:58, John  wrote:

> On Wed, Mar 31, 2010 at 11:56:06AM +0100, krad wrote:
> >
> >we are testing one at work at the moment. I think its a driver issue.
> We
> >are looking at either putting in a perc card or swapping it for the
> next
> >chasis.
>
> I configured the disks as JBOD but got the same results. I think the
> problem lies with all the disks each being 2TB so they can't be seen
> with sysinstall. maybe the way forward is to boot to live CD so there's
> a full environment, then try to sort it with GPT, then do an install
> from the liveCD. I'll try this tonight.
> --
> John - comp dot john at googlemail dot com
> OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop
> GPG: 0xF08A33C5
>

your probably right as sysinstall only handles mbr, not gpt and you will
definately need gpt.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: ipfw weirdness after csup/buildworld

2010-04-01 Thread Terrence Koeman
I've seen the same, see: http://forums.freebsd.org/showthread.php?p=75765

--
Regards,
T. Koeman, MTh/BSc/BPsy; Technical Monk

MediaMonks B.V. (www.mediamonks.com)
Please quote all replies in correspondence.


> -Original Message-
> From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
> questi...@freebsd.org] On Behalf Of Tim Gustafson
> Sent: Thursday, April 01, 2010 7:12 PM
> To: freebsd-questions@freebsd.org
> Subject: ipfw weirdness after csup/buildworld
>
> I am running: FreeBSD 8.0-STABLE amd64
>
> After recently csup'ing to the latest sources and then a build/install
> cycle, my ipfw started misbehaving badly.  I'm seeing lots of:
>
> ipfw: install_state: entry already present, done
>
> and also lots of:
>
> ipfw: ouch!, skip past end of rules, denying packet
>
> When I did an "ipfw list", I got something like this:
>
> 0  ip from any to any
>
> Note the rule number is all zeros, and there's no "allow" or "deny".
> Adding rules or removing rules didn't fix anything, nor did an "ipfw
> flush".  Once it was in that state, attempting to "kldunload ipfw"
> caused the system to hang.  The only fix for now was to disable the
> firewall.
>
> When I went into single user mode, and did:
>
> kldload ipfw
> ipfw /etc/firewall.rules (which is the same ruleset I had loaded on
> boot)
>
> everything worked fine, but when I went into multi-user mode and did
> the same thing, it failed with the symptoms listed above.
>
> Just to be sure, a day after this started happening I did a csup again
> and another build/install cycle but got exactly the same results.
>
> Any ideas?
>
> Tim Gustafson
> Baskin School of Engineering
> UC Santa Cruz
> t...@soe.ucsc.edu
> 831-459-5354
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscr...@freebsd.org"



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


Re: skype webcam no device found

2010-04-01 Thread Chris Whitehouse
On Wed, Mar 31, 2010 at 6:24 PM, Chris 
Whitehouse  wrote:

Hi,

I have my webcam setup and working and I can see stuff in pwcview. But
skype tells me 'no device found' for video.

I've tried various combinations of with/without webcamd and pwcview 
running,

also as root, _and_ restarting webcamd each time, but no joy.

Any suggestions very gratefully received.




[ snip lots of stuff about installing skype ]

So, after that slight detour, does anyone have any idea how I can get my 
webcam recognised in skype? I'm using


video4bsd-kmod-0.1.3
libv4l-0.6.4
v4l_compat-1.0.20100113
webcamd-0.1.4
pwcview-1.4.1_2
skype-2.0.0.72,1
linux_base-f10-10_2
FreeBSD 8.0-RELEASE-p2 #1 i386 GENERIC

Is skype video working for anyone?

thanks  very much

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


Tool to produce A5 booklet from A4 pages PS / PDF

2010-04-01 Thread Polytropon
In order NOT to try to reinvent the wheel, I'd like to ask
if anyone knows a tool that does helps to produce a printable
and foldable booklet from A4 pages.

I'm searching for a tool that scales down and reorders A4
pages (from a document, usually PS or PDF) in a way that
the result can be printed with a duplex printer (content
on both sides of the paper sheet) and then be folded in
the middle in order to get a "book" (or let's better call
it a booklet) in A5 format. Additionally, the booklet
can be stapled where it has been folded (using the proper
mechanical tool).

Of course, this just seems useful for standard A paper
formats (A4 / A5) which keep the aspect ratio sqrt(2)
(or nearly 1.414:1) even after folding or combining:

   A4
+--++--+
|  ||  |
|  A5  ||  A5  |
|  ||  |
+--++--+

Illustration here:
http://upload.wikimedia.org/wikipedia/commons/8/8a/A_size_illustration.svg

Depending on the "real" page number, it would require to
completely re-order and rotate (90 or 270 degree) the
contained pages, depending where they will appear on the
result paper.

For example, page 1 needs to be placed on page 1, top,
rotated 270 degrees, while the lase page also has to be
placed on page 1, bottom, rotated 270 degrees. Page 2
will be on page 2 (which is the rear side of page 1),
top, rotated 90 degrees... and now my imaginary force
is failing. :-) All pages have to be scaled down to
50% of their original size, of course.

In ideal case, the number of pages to be processed this
way is modulo 4, because 4 pages go to one sheet (two
per side).

So basically, I'm searching for a program that does the
renumbering and rotation magic, provided PS or PDF files
as input, and also as output.

What tool can you suggest to do so?



Sidenote: Since my system crashed in July 2008, I can't
access my home directory anymore (inode missing, content
still on disk). I wrote a program that does all this for
image files as input - creates a LaTeX document that
includes the properly rotated and scaled images so you
can print from a stack of images and result in a happy
little booklet - jpg2tex, pdflatex, lpr. I don't want
to do this again... :-(



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Tool to produce A5 booklet from A4 pages PS / PDF

2010-04-01 Thread Rolf Nielsen

On 2010-04-02 02:27, Polytropon wrote:

In order NOT to try to reinvent the wheel, I'd like to ask
if anyone knows a tool that does helps to produce a printable
and foldable booklet from A4 pages.

I'm searching for a tool that scales down and reorders A4
pages (from a document, usually PS or PDF) in a way that
the result can be printed with a duplex printer (content
on both sides of the paper sheet) and then be folded in
the middle in order to get a "book" (or let's better call
it a booklet) in A5 format. Additionally, the booklet
can be stapled where it has been folded (using the proper
mechanical tool).

Of course, this just seems useful for standard A paper
formats (A4 / A5) which keep the aspect ratio sqrt(2)
(or nearly 1.414:1) even after folding or combining:

   A4
+--++--+
|  ||  |
|  A5  ||  A5  |
|  ||  |
+--++--+

Illustration here:
http://upload.wikimedia.org/wikipedia/commons/8/8a/A_size_illustration.svg

Depending on the "real" page number, it would require to
completely re-order and rotate (90 or 270 degree) the
contained pages, depending where they will appear on the
result paper.

For example, page 1 needs to be placed on page 1, top,
rotated 270 degrees, while the lase page also has to be
placed on page 1, bottom, rotated 270 degrees. Page 2
will be on page 2 (which is the rear side of page 1),
top, rotated 90 degrees... and now my imaginary force
is failing. :-) All pages have to be scaled down to
50% of their original size, of course.

In ideal case, the number of pages to be processed this
way is modulo 4, because 4 pages go to one sheet (two
per side).

So basically, I'm searching for a program that does the
renumbering and rotation magic, provided PS or PDF files
as input, and also as output.

What tool can you suggest to do so?


print/psutils-a4 has tools to do the job for you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Tool to produce A5 booklet from A4 pages PS / PDF

2010-04-01 Thread Alejandro Imass
On Thu, Apr 1, 2010 at 8:27 PM, Polytropon  wrote:
> In order NOT to try to reinvent the wheel, I'd like to ask
> if anyone knows a tool that does helps to produce a printable
> and foldable booklet from A4 pages.
>
> I'm searching for a tool that scales down and reorders A4
> pages (from a document, usually PS or PDF) in a way that
> the result can be printed with a duplex printer (content
> on both sides of the paper sheet) and then be folded in
> the middle in order to get a "book" (or let's better call
> it a booklet) in A5 format. Additionally, the booklet
> can be stapled where it has been folded (using the proper
> mechanical tool).
>
[...]

Several of the things you mention can be done with pdftk, other dunno
but maybe. PS is much easier to hack than PDF IMHO, scaling and stuff
can be done with any text editor includiong sed, juts by hacking the
preamble but once in pdf I usually use pdftk  ;-)

/usr/ports/print/pdftk

Cheers,
Alejandro Imass

> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Sendmail Five Second Greeting Delay

2010-04-01 Thread Norbert Papke
When I connect to sendmail on a local interface, sendmail responds to the 
connection with its "220" greeting immediately.  If I connect to sendmail from 
another machine on my (home) LAN, sendmail delays five seconds before sending 
the greeting.  I would like it to respond immediately.

A quick search turned up a "greet_delay" feature in sendmail that would cause 
this type of behavior.  To the best of my knowledge, I do not use this 
feature.  Just to be sure, I tried to explicitly enable it with both a default 
0 second timeout and an explicit 0 second access rule.  This did not the 
resolve the issue.

I am at a loss.  What could be going on?

Cheers,

-- Norbert.

sendmail mc file:

VERSIONID(`$Id: proven.lan.mc,v 1.1 2005/07/30 08:31:09 npapke Exp $')dnl
OSTYPE(freebsd6)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_procmail)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(always_add_domain)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(`accept_unresolvable_domains')dnl
MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl

define( `SMART_HOST', `shawmail.vc.shawcable.net')dnl
define(`confCW_FILE', `-o /etc/mail/local-host-names')

DAEMON_OPTIONS(`Name=IPv4, Family=inet')
define(`confBIND_OPTS', `WorkAroundBroken')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
# Virtual hosts
FEATURE(virtusertable)dnl
VIRTUSER_DOMAIN_FILE(`/etc/mail/virtdomains')dnl
FEATURE(`virtuser_entire_domain')dnl

MAILER(procmail)dnl
MAILER(smtp)dnl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail Five Second Greeting Delay

2010-04-01 Thread Bruce Ferrell

A delay of that long can be cause by the system attempting to do name
resolution on your IP.  Try entering the IP of the testing system into
/etc/hosts and see if the delay goes away.  If it does, then you know.

Bruce


On 04/01/2010 05:51 PM, Norbert Papke wrote:
> When I connect to sendmail on a local interface, sendmail responds to the 
> connection with its "220" greeting immediately.  If I connect to sendmail 
> from 
> another machine on my (home) LAN, sendmail delays five seconds before sending 
> the greeting.  I would like it to respond immediately.
>
> A quick search turned up a "greet_delay" feature in sendmail that would cause 
> this type of behavior.  To the best of my knowledge, I do not use this 
> feature.  Just to be sure, I tried to explicitly enable it with both a 
> default 
> 0 second timeout and an explicit 0 second access rule.  This did not the 
> resolve the issue.
>
> I am at a loss.  What could be going on?
>
> Cheers,
>
> -- Norbert.
>
> sendmail mc file:
>
> VERSIONID(`$Id: proven.lan.mc,v 1.1 2005/07/30 08:31:09 npapke Exp $')dnl
> OSTYPE(freebsd6)
> DOMAIN(generic)
>
> FEATURE(access_db, `hash -o -T /etc/mail/access')
> FEATURE(blacklist_recipients)
> FEATURE(local_procmail)
> FEATURE(mailertable, `hash -o /etc/mail/mailertable')
> FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
> FEATURE(always_add_domain)dnl
> FEATURE(masquerade_envelope)dnl
> FEATURE(`accept_unresolvable_domains')dnl
> MODIFY_MAILER_FLAGS(`LOCAL', `+S')dnl
>
> define( `SMART_HOST', `shawmail.vc.shawcable.net')dnl
> define(`confCW_FILE', `-o /etc/mail/local-host-names')
>
> DAEMON_OPTIONS(`Name=IPv4, Family=inet')
> define(`confBIND_OPTS', `WorkAroundBroken')
> define(`confNO_RCPT_ACTION', `add-to-undisclosed')
> define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
> # Virtual hosts
> FEATURE(virtusertable)dnl
> VIRTUSER_DOMAIN_FILE(`/etc/mail/virtdomains')dnl
> FEATURE(`virtuser_entire_domain')dnl
>
> MAILER(procmail)dnl
> MAILER(smtp)dnl
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
>
>   

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


Re: Sendmail Five Second Greeting Delay

2010-04-01 Thread Norbert Papke
On April 1, 2010, Bruce Ferrell wrote:
> A delay of that long can be cause by the system attempting to do name
> resolution on your IP.  Try entering the IP of the testing system into
> /etc/hosts and see if the delay goes away.  If it does, then you know.

Thanks for the suggestion, unfortunately it does not make a difference.

Cheers,

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


Re: Sendmail Five Second Greeting Delay

2010-04-01 Thread Mike Tancsa

At 08:51 PM 4/1/2010, Norbert Papke wrote:

When I connect to sendmail on a local interface, sendmail responds to the
connection with its "220" greeting immediately.  If I connect to 
sendmail from

another machine on my (home) LAN, sendmail delays five seconds before sending
the greeting.  I would like it to respond immediately.



What if you add
define(`confTO_IDENT', 0s)

to your mc file and remake your .cf file with that set

---Mike



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

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


Re: Sendmail Five Second Greeting Delay

2010-04-01 Thread Norbert Papke
On April 1, 2010, Mike Tancsa wrote:
> At 08:51 PM 4/1/2010, Norbert Papke wrote:
> >When I connect to sendmail on a local interface, sendmail responds to the
> >connection with its "220" greeting immediately.  If I connect to
> >sendmail from
> >another machine on my (home) LAN, sendmail delays five seconds before
> > sending the greeting.  I would like it to respond immediately.
> 
> What if you add
> define(`confTO_IDENT', 0s)
> 
> to your mc file and remake your .cf file with that set

Thanks, that did it.

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


Re: skype webcam no device found

2010-04-01 Thread Boris Samorodov
On Thu, 01 Apr 2010 21:36:27 +0100 Chris Whitehouse wrote:

> I have linux_base-f10-10_2 and skype-2.0.0.72,1 (net/skype) installed
> from ports and it just worked - but so far without video and sound.

> FreeBSD 8.0-RELEASE-p2 #0: Wed Mar 24 i386

Sound should work just fine with skype if it works with other soft.
There is a nice and tiny port audio/rawrec which I use to test
the sound subsystem.

As for video I've never managed to use a webcam (I didn't try hard
though).

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


acd0: TIMEOUT - READ_BIG retrying (1retry left)

2010-04-01 Thread Антон Клесс
Good day.

I trying to install 7.2-RELEASE on server with MB Supermicro
X8DTU-F.
BIOS is the newest.

Just in time I boot from CD I get such errors after detecting CPU:

acd0: TIMEOUT - READ_BIG retrying (1 retry left)
acd0: TIMEOUT - READ_BIG retrying (0 retry left)

And boot fails.

But if I eject CD from CD-ROM after FreeBSD  kernel loads, all going OK. But
in this way I unable to continue installation from CD, course even I insert
CD during sysinstall, it cannot mount it and copy distributions to my
machine.

I have tried to boot through choosing "6" in loader menu and type

   -

   > set hw.ata.atapi_dma=0

   -

   > boot



But it doesn't give any effect.


Situation was recalled on two X8DTU-F motherboards, so it isn't hardware
problem.

CD-ROM is SATA, TEAC DV-28S. Photo:
http://img-fotki.yandex.ru/get/3809/rc5hack.22/0_3aa92_84133e96_orig


What do I do with that?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail Five Second Greeting Delay

2010-04-01 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/04/2010 01:51:27, Norbert Papke wrote:
> When I connect to sendmail on a local interface, sendmail responds to the 
> connection with its "220" greeting immediately.  If I connect to sendmail 
> from 
> another machine on my (home) LAN, sendmail delays five seconds before sending 
> the greeting.  I would like it to respond immediately.

> A quick search turned up a "greet_delay" feature in sendmail that would cause 
> this type of behavior.  To the best of my knowledge, I do not use this 
> feature.  Just to be sure, I tried to explicitly enable it with both a 
> default 
> 0 second timeout and an explicit 0 second access rule.  This did not the 
> resolve the issue.

For the sake of the archives, I'd like to note that the `greet_pause'
feature is actually a pretty effective and very cheap to implement
anti-spam measure.  You need:

FEATURE(greet_pause, `5000')dnl ## 5 seconds

in your $(hostname).mc file -- this gives you a default 5 second delay.
 If you also have

FEATURE(`access_db')

you can override that value for particular IP ranges or domain names.

This is also a handy addition to the .mc file:

LOCAL_RULESETS
SLocal_greet_pause
R$* $: $&{daemon_flags}
R$* a $*$# 0

This turns off greet_pause on network ports where authentication is
required, ie. if you use port 587 for submitting new mail and reserve
port 25 for MTA to MTA mail transfers.

The way this works is that it requires the sending side to wait until
your system prints out the greeting banner.  If the sending side starts
speaking before then, sendmail will refuse to accept any mail during
that session.  All real MTAs will get this right, as it is part of the
SMTP specification in the RFCs.  Many spambots on the other hand, send
e-mail by simply replaying one side of a recorded SMTP conversation
without reguard for what the other side says.  This feature weeds out
that sort of spambot with very little effort.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku1isIACgkQ8Mjk52CukIxZHgCfYCSyseFoQ+M89C1kJIt+Oq8n
bKcAoIpNrzUS2xN3ZGGZ889qLZq6TRmD
=U4Ip
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"