Re: Scanner recommendation

2011-02-05 Thread perryh
Robert Bonomi bon...@mail.r-bonomi.com wrote:

 Somebody saying I'll buy it, if it supports _this_ scanner
 is motivation.

So perhaps what is needed is for N FreeBSD users to say I'll buy
it, if it runs on FreeBSD.  Any guesses on how large an N would
be needed to provide sufficient motivation?
___
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: manual page formatting issues

2011-02-05 Thread Rob
Yep, that was it. Thanks very much Yuri.

On Sat, Feb 5, 2011 at 3:07 PM, Yuri Pankov yuri.pan...@gmail.com wrote:

 On Sat, Feb 05, 2011 at 02:24:31PM +1000, Rob wrote:
  Hi,
 
  I'm running FreeBSD 8.1-RELEASE (running on VMWare Server 2.0.2) and am
  having some odd issues the formatting of man pages.
 
  If I view a man page (as root) in the console it displays correctly. If I
  view the man page (again, as root) in a (PuTTY) terminal session, the
 bold
  formatting of the command line arguments is missing.
 
  See the following screen shot examples:
 
  Console: http://imageupload.org/?di=612968791464
 
  Terminal: http://imageupload.org/?di=112968791464
 
  In the console session I have the TERM=cons25.
 
  In the terminal session I have it set to TERM=xterm. My PuTTY settings
 are
  pretty much the default, including the Connection-Data-Terminal-type
  string set to xterm.
 
  The pager in both sessions is set to more.
 
  I've played around with various terminal settings, to no avail. Can
 someone
  please offer some pointers as to how I might fix this?
 
  Thanks,
  Rob

 You probably forgot to change Window-Colors-Default Bold Foreground
 color values in PuTTY (works just fine here).


 HTH,
 Yuri

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


Re: Scanner recommendation

2011-02-05 Thread Gour
On Sat, 05 Feb 2011 00:53:00 -0800
per...@pluto.rain.com wrote:

 So perhaps what is needed is for N FreeBSD users to say I'll buy
 it, if it runs on FreeBSD.  Any guesses on how large an N would
 be needed to provide sufficient motivation?

Heh...when I asked Ed about support for 64-bit version of VueScan,
his reply was that number of Linux users is so low that he is
considering whether to even support the OS.

Fortunately, in the meantime, he added 64bit Linux support, but I'm
not sure what he would say to add FreeBSD support considering general
popularity of Linux vs. BSD. :)


Sincerely,
Gour

-- 

Gour  | Hlapicina, Croatia  | GPG key: CDBF17CA


-- 

Gour  | Hlapicina, Croatia  | GPG key: CDBF17CA



signature.asc
Description: PGP signature


Re: Scanner recommendation

2011-02-05 Thread Sergio de Almeida Lenzi
Em Sáb, 2011-02-05 às 00:53 -0800, per...@pluto.rain.com escreveu:

 Robert Bonomi bon...@mail.r-bonomi.com wrote:
 
  Somebody saying I'll buy it, if it supports _this_ scanner
  is motivation.
 
 So perhaps what is needed is for N FreeBSD users to say I'll buy
 it, if it runs on FreeBSD.  Any guesses on how large an N would
 be needed to provide sufficient motivation?

My experience (many, many years) says that the question is something
different:
How much $$$ do you need to produce (compile) a FreeBSD version???
300, 500, 5000???   Money talks.

If ou make this question to Adobe, they will never hear you, but a small
company (Ed) 
may be he will.

As FreeBSD comes out with a new version about a year (or two..) 7.x -
8.x - 9.x
a version of the sofware needs to be done (compiled) seldom.

Let's say the ammount of money that interests Ed is US$5000.00

I am considering this kind of approach,  various:
1) collect money in the freebsd community US$10 each you would need only
500 persons
2) Found an org, and using tax reduction program to finance software:
here is is possible...


Any new ideas???

Sergio
___
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: Scanner recommendation

2011-02-05 Thread Robert Huff
Sergio de Almeida Lenzi writes:


  As FreeBSD comes out with a new version about a year (or two..)
  7.x - 8.x - 9.x a version of the sofware needs to be done
  (compiled) seldom.

If the program is well-written, it may well be that
re-compiling is all that needs to be done.
(And I believe tha goal for new .0 versions is more like 18-24
months.)

  2) Found an org, and using tax reduction program to finance
  software: here is is possible...
  
  Any new ideas???

Yes: skip phase 2.  Have a person with s good reputation agree
to do the work - accept pledges, talk to the author, then collect
and transfer money.  In the U.S., there's no reason not to ... but
there's no strong reason to, either. 

Respectfully,


Robert Huff

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


Re: 4k drives and zfs

2011-02-05 Thread krad
On 2 February 2011 15:20, krad kra...@gmail.com wrote:
 On 2 February 2011 12:18, Ivan Voras ivo...@freebsd.org wrote:
 On 02/02/2011 05:52, krad wrote:

 Hi All,

 A quick question. Im upgrading my filer at home to have 2x 2tb samsung
 F4EG drives. I believe these are 4k drives. I'm intending to use the
 gnop trick to get zfs ashift to 12. Will this make my pool unbootable.
 I have read a few threads aluding to this.

 There have been bugs which make such drives unbootable but they have been
 fixed at least in CURRENT (I haven't tried it).

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


 where they related to any type of pools in particular as im just mirroring


well they are in. i tested with the gnop trick and without. It didnt
seem to make much difference to the performance of the drives.
Certainly not enough for me to worry about. Thinking about it though
as I was addin it to the existing pool as a mirror and then dropping
the old drives out one by one, i was probably forced into the 512k
sectors anyway.

Just finishing up now by filling the pool with urandom, and reading it
back. Its taking a while though.

Do these values seem similar to what others get? Bare in mind I have a
dd of /dev/zero and /dev/urandom running in parallel with a bs=128k

# zpool iostat system 5
   capacity operationsbandwidth
pool used  avail   read  write   read  write
--  -  -  -  -  -  -
system  1.12T   709G149212  8.48M  15.8M
system  1.12T   708G  2336  2.44K  30.2M
system  1.12T   708G  2541  3.12K  57.0M
system  1.12T   708G  1349  6.05K  32.8M
system  1.12T   708G  1581599  62.9M
system  1.12T   707G  3320  5.46K  30.7M

# iostat -d 5
 ad4  ad5  ad6  ad7
  KB/t tps  MB/s   KB/t tps  MB/s   KB/t tps  MB/s   KB/t tps  MB/s
 92.50  10  0.93  102.35 245 24.50  91.86  10  0.93  102.02 246 24.49
  0.00   0  0.00  106.64 268 27.95   0.00   0  0.00  115.60 413 46.64
  0.00   0  0.00  109.72 590 63.19   0.00   0  0.00  103.79 437 44.33
  0.00   0  0.00  113.48 349 38.72   0.00   0  0.00  115.70 432 48.84
  0.00   0  0.00  106.66 547 57.02   0.00   0  0.00  103.98 461 46.84
  0.00   0  0.00  117.52 406 46.62   0.00   0  0.00  117.12 407 46.59
  0.00   0  0.00  110.43 565 60.92   0.00   0  0.00  109.64 601 64.37
  0.00   0  0.00  119.11 282 32.81   0.00   0  0.00  117.87 254 29.27

# zpool status
  pool: system
 state: ONLINE
 scrub: scrub completed after 2h2m with 0 errors on Sat Feb  5 11:47:21 2011
config:

NAMESTATE READ WRITE CKSUM
system  ONLINE   0 0 0
  mirrorONLINE   0 0 0
label/red   ONLINE   0 0 0
label/blue  ONLINE   0 0 0
___
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


Trying to Make an Alias Execute a Perl Script

2011-02-05 Thread peter

I have a couple of entries in my /etc/mail/aliases that manipulate the contents 
of an e-mail message.  For example, 
 
 file: | cat  /home/user/file.incoming

receives an e-mail message and writes it to the hard drive.  Another example:

 format: | sed 's/^.$/~~/g' | sed 's/^$/~~/g' | tr -s ' ' ' ' | fmt 63 64 
| sed 's/^ *//g' | tr '~' '\\012\' | mail user

receives a message, reformats the contents, and sends the reformatted material 
back to me by e-mail.  

I'm trying to create a new alias that will receive an e-mail message, use a 
Perl command to scan for for all e-mail addresses, and return a list of any 
e-mail addresses found to me by e-mail.  

This little Perl command does a great job of identifying e-mail addresses and 
producing a list of them:

 perl -wne 'while(/[\S\.]+@[\S\.]+\w+/g){print $\n}'

and I can use this from the command line these ways to extract e-mail addresses 
from a file:
 
 perl -wne 'while(/[\S\.]+@[\S\.]+\w+/g){print $\n}' datafile
 perl -wne 'while(/[\S\.]+@[\S\.]+\w+/g){print $\n}'  datafile
 cat datafile | perl -wne 'while(/[\S\.]+@[\S\.]+\w+/g){print $\n}' 
 
I've tried this entry in my /etc/mail/aliases file, but it returns an empty 
e-mail messages:

 extract: | perl -wne 'while(/[\S\.]+@[\S\.]+\w+/g){print $\n}' | mail 
user
 
I tried modifying it to create a datafile and then examine the datafile:

 extract: | cat  datafile | perl -wne 'while(/[\S\.]+@[\S\.]+\w+/g){print 
$\n}'  datafile | mail user

but it is still returning an empty e-mail message rather than a list of e-mail 
addresses.  

What am I overlooking?  


-
This message sent via VFEmail.net
http://www.vfemail.net
$14.95 Lifetime accounts!  15GB disk!  No bandwidth quotas!
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Why does printf(9) hang network?

2011-02-05 Thread dieterbsd
Why would doing a printf(9) in a device driver (usb, firewire, probably
others) cause an obscenely long lockout on
/usr/src/sys/kern/uipc_sockbuf.c:148 (sx:so_rcv_sx)  ?

Printf(9) alone isn't the problem, adding printfs to chown(2) does not
cause the problem, but printfs from device drivers do.

Grep says that uipc_sockbuf.c is the only file that locks/unlocks sb_sx.
The device drivers and printf don't even know that sb_sx exists.

135  int
136  sblock(struct sockbuf *sb, int flags)
137  {
138
139  KASSERT((flags  SBL_VALID) == flags,
140  (sblock: flags invalid (0x%x), flags));
141
142  if (flags  SBL_WAIT) {
143  if ((sb-sb_flags  SB_NOINTR) ||
144  (flags  SBL_NOINTR)) {
145  sx_xlock(sb-sb_sx);
146  return (0);
147  }
148  return (sx_xlock_sig(sb-sb_sx));
149  } else {
150  if (sx_try_xlock(sb-sb_sx) == 0)
151  return (EWOULDBLOCK);
152  return (0);
153  }
154  }

More info at: http://www.freebsd.org/cgi/query-pr.cgi?pr=118093


___
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


nedit problem

2011-02-05 Thread Fred Boatwright
Hello,

After updating all ports on 8.1-RELEASE, nedit has a problem.  The right
mouse button works ok in the toolbar but if it is pressed in the text
area, for example to copy a block of text, the cursor changes shape and
the X session becomes completely locked up.  I have to stop X and
restart it.  I have tried to deinstall nedit and rebuild it but this
didn't help.  It is nedit-5.5 with Motif 2.2.3.

Also, when nedit is started the following warnings are given:

Cannot convert string
-*-helvetica-medium-r-normal-*-*-120-*-*-*-iso8859-1 to type
FontStruct
Cannot convert string
-*-helvetica-bold-r-normal-*-*-120-*-*-*-iso8859-1 to type FontStruct
Cannot convert string
-*-helvetica-medium-o-normal-*-*-120-*-*-*-iso8859-1 to type
FontStruct
Cannot convert string
-*-courier-medium-r-normal-*-*-120-*-*-*-iso8859-1 to type FontStruct
Cannot convert string -*-courier-bold-r-normal-*-*-120-*-*-*-iso8859-1
to type FontStruct
Cannot convert string
-*-courier-medium-o-normal-*-*-120-*-*-*-iso8859-1 to type FontStruct

These warnings have been happening for some time but nedit otherwise has
been working ok until the port update.  xpdf gives similar warnings but
seems to work ok.

What can I do to resolve at least the lockup problem?

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


Re: Why does printf(9) hang network?

2011-02-05 Thread Ivan Voras

On 05/02/2011 21:22, dieter...@engineer.com wrote:

Why would doing a printf(9) in a device driver (usb, firewire, probably
others) cause an obscenely long lockout on
/usr/src/sys/kern/uipc_sockbuf.c:148 (sx:so_rcv_sx)  ?


You should ask this question on freebsd-hackers@.



Printf(9) alone isn't the problem, adding printfs to chown(2) does not
cause the problem, but printfs from device drivers do.

Grep says that uipc_sockbuf.c is the only file that locks/unlocks sb_sx.
The device drivers and printf don't even know that sb_sx exists.

135  int
136  sblock(struct sockbuf *sb, int flags)
137  {
138
139  KASSERT((flags  SBL_VALID) == flags,
140  (sblock: flags invalid (0x%x), flags));
141
142  if (flags  SBL_WAIT) {
143  if ((sb-sb_flags  SB_NOINTR) ||
144  (flags  SBL_NOINTR)) {
145  sx_xlock(sb-sb_sx);
146  return (0);
147  }
148  return (sx_xlock_sig(sb-sb_sx));
149  } else {
150  if (sx_try_xlock(sb-sb_sx) == 0)
151  return (EWOULDBLOCK);
152  return (0);
153  }
154  }

More info at: http://www.freebsd.org/cgi/query-pr.cgi?pr=118093


___
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


8.2 prerelease, virtualbox, and windows guests that freeze...

2011-02-05 Thread Eric Schuele
All,

I have a laptop running 8.2-prerelease GENERIC.  I have virtualbox ose
3.2.12 from ports (and kmod as well).

I've only installed windows guests in vbox.  I've installed windows 2008
server 64, windows vista 64bit, and windows 7 32bit.  I have the vbox
hdd images on an NTFS filesystem mounted using fuse.

My box is a dual boot machine between FreeBSD and Windows.  My desire is
to be able to utilize the same virtual machine in vbox on both my
Windows and FreeBSD installations.

I can successfully utilize the virtuals in vbox (same version) in
Windows.  However when I utilize any of the virtual machines in FreeBSD,
they run for several minutes and eventually freeze.  Freeze may not
necessarily be the correct term.  All windows processes on the virtual
machine begin to die.  First one process, then another, then all.  Hard
to explain, which may not help my cause here.  But, most important
fact... in Windows they work fine... under FreeBSD they run for a while
and then cease to run.  When the VM is good and dead, it is always dead
with the little vbox virtual hard disk LED lit up (no idea if that is
important).

Previously, they would run for a *very* short time.  seconds? minutes?
and then die (sometimes I couldn't login).  I disabled sound support and
now they run for 10-15 minutes.  Had one run for an hour or two the
other day, but can't reproduce that.  Usually 10-15 minutes max.

Network works fine inside the virtual.

I'm new to VirtualBox on FreeBSD.  I've used it a bit on Windows with
good results.

I did try a windows guest on a non fuse filesystem just to rule that
out, but had same issue.

What else could I provide that might allow someone to point me in the
right direction here?

Thanks.

--
Regards,
Eric



signature.asc
Description: OpenPGP digital signature


Re: nedit problem

2011-02-05 Thread Giorgos Keramidas
On Sat, 05 Feb 2011 14:33:50 -0700, Fred Boatwright f...@blakemfg.com wrote:
 Hello,

 After updating all ports on 8.1-RELEASE, nedit has a problem.  The right
 mouse button works ok in the toolbar but if it is pressed in the text
 area, for example to copy a block of text, the cursor changes shape and
 the X session becomes completely locked up.  I have to stop X and
 restart it.  I have tried to deinstall nedit and rebuild it but this
 didn't help.  It is nedit-5.5 with Motif 2.2.3.

 Also, when nedit is started the following warnings are given:

 Cannot convert string
 -*-helvetica-medium-r-normal-*-*-120-*-*-*-iso8859-1 to type FontStruct
 Cannot convert string -*-helvetica-bold-r-normal-*-*-120-*-*-*-iso8859-1 to 
 type FontStruct
 Cannot convert string -*-helvetica-medium-o-normal-*-*-120-*-*-*-iso8859-1 
 to type FontStruct
 Cannot convert string -*-courier-medium-r-normal-*-*-120-*-*-*-iso8859-1 to 
 type FontStruct
 Cannot convert string -*-courier-bold-r-normal-*-*-120-*-*-*-iso8859-1 to 
 type FontStruct
 Cannot convert string -*-courier-medium-o-normal-*-*-120-*-*-*-iso8859-1 to 
 type FontStruct

 These warnings have been happening for some time but nedit otherwise has
 been working ok until the port update.  xpdf gives similar warnings but
 seems to work ok.

 What can I do to resolve at least the lockup problem?

Can you run nedit under truss or ktrace?  It may be stuck in a loop
because of a bug.  You should be able to run it under truss, for
example, by opening a new terminal window and typing:

truss -o nedit.log nedit

Then when nedit gets stuck, wait a bit to let truss collect some tracing
information, and kill nedit.  Attach the output of truss in a message to
the list.  Someone may find useful information about nedit's blocking in
the final bits of the trace 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: nedit problem

2011-02-05 Thread b. f.
Fred Boatwright wrote:

 After updating all ports on 8.1-RELEASE, nedit has a problem.  The right
 mouse button works ok in the toolbar but if it is pressed in the text
 area, for example to copy a block of text, the cursor changes shape and
 the X session becomes completely locked up.  I have to stop X and
 restart it.  I have tried to deinstall nedit and rebuild it but this
 didn't help.  It is nedit-5.5 with Motif 2.2.3.

This is a known problem with many Motif-based applications, arising
from a bug in recent versions of Xorg.  It has been corrected
upstream, and it is likely that this problem will be fixed when the
ports freeze ends shortly after the release of FreeBSD 7.4 and 8.2, if
not before.  If you can't wait, you can try using the patches from:

http://www.freebsd.org/cgi/query-pr.cgi?pr=154510

b.
___
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