Re: can i split a pdf file?

2009-01-26 Thread Gary Kline
On Sun, Jan 25, 2009 at 08:20:51PM -0500, Chuck Robey wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Charlie Kester wrote:
  On Sun 25 Jan 2009 at 16:18:26 PST Gary Kline wrote:
 
  Is there a way to split a large pdf file into smaller [ say 1MB ]
  chunks?  Or are there open source tools out there that i can build?  
  
  pdfsam ( http://www.pdfsam.org/ ) does both splits and merges of pdf
  files, but it doesn't seem to be in the FreeBSD ports system.
  
  There is a pdfmerge in /usr/ports/print, but no pdfsplit.
  
 
 It's a very junky way to do it (but the only way I know), use pdf2ps to 
 convert
 the pdf to postscript, then you stand at least a good chance of doing the 
 split,
 which many utilities allow.  You could even do it graphically via gv.  The
 problem with this (and the reason it might well fail anyhow) is because some
 things that pdfs do aren't implemented in any standard postscript level I ever
 heard of.  It depends how many of the more recent extensions to pdf are being
 used.  I've done this, *sometimes*.
 
 Because the pdf spec is fully published, it might one day allow someone to 
 write
 a splitter, but because the spec is SO enormous, maybe they won't, either.
 Actually, that's a really good notion ... I need to give it some thought.
 
  -- Charlie
  
  

Thanks, Gents,

But according to one smallish pdf file that I send to a web based
tool, it was not a real pdf.  Or, more accurately, it (the pdf to 
speech program) couldn't decode it.  I'll play around with this
more tomorrow.  The problem with a lot of this electronic paper
is that the lines are sequeezed together.  Makes scanning them
that much more difficult.  Last month I read a book [book-book,
from the library!] with more ~1.5 spaces between lines, and even
tho the font was small, no problem in reading the entire text.  

((FWIW: I'll find the URL of a piece on Hegelian ethics --PDF--
and see if the firefox speech site can grok that!))

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

___
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: can i split a pdf file?

2009-01-26 Thread Polytropon
On Mon, 26 Jan 2009 00:06:18 -0800, Gary Kline kl...@thought.org wrote:
   Thanks, Gents,
 
   But according to one smallish pdf file that I send to a web based
   tool, it was not a real pdf.  Or, more accurately, it (the pdf to 
   speech program) couldn't decode it.

This is a typical problem with poorly engineered PDFs where the
author puts in the text as images (you'll see this stupidity across
the Web, too).

A good tool to check if the PDF file can be (audibly) read is the
use of the tool pdftotext from the port xpdf.

% pdftotext bla.pdf  less bla.txt

Then, even the FF speech plugin should work correctly - as long as
the PDF file contains decodable text. If it's just a bunch of images,
well, what are we expecting, hm? FF-speech: You see a pretty image of
some text... :-)



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


Updates / Upgrades

2009-01-26 Thread Akenner

Hi all,

I have installed FreeBSD 7.1-RELEASE
on two of my systems. One of them (This one I'm using) is a PC I use as 
one of my main desktops. The other I decided on after wanting to keep 
safe with my main one which has important data on it, so I decided to 
use another machine and do an install so I could test out patches and 
updates on it before applying them to this machine so that if something 
happened during the updates I wouldn't lose this machine and could just 
format the other machine if something really crashed or had a really 
huge error, and basically use this machine as production and that one as 
the test for things so I don't break / screw up anything.


Anyway, I used a tool like this:

#update-scan

It gave me a list of ports and things to update and how to do it. Thing 
is, when I took the advice of what the application said, and did what it 
said, it still shows it.


I moved over to the test machine and grabbed the application and ran it 
to see what I could do, and noticed I did miss the first step, so I 
figured that was the problem, and used my test machine to do an update 
for Perl. I saw it had two things to do to upgrade those packages, so I 
did step one, then, did step two.


I figured this would remove it from the list of packages that need an 
upgrade, and after a few hours of downloading some stuff off my FTP 
server (MP3s, no software) I rebooted the machine.


I was surprised to find Perl still listing to do the exact same thing. 
So this time I did this:


portupgrade -a

It said I needed to run the pkgdb thing, so I did.

Once it finished and fixed up a few apps that needed something or other, 
I ran it again:


portupgrade -a

After a while, it started going and I figured everything would be done 
and I could update my main box after checking to be sure that the 
patches didn't break anything.


Trouble is, after the reboot, I noticed that it still listed all of them.

I'm almost certain the problem is me. So my question is, what am I doing 
wrong? I'm no guru or BSD hacker, but I am a competent user of Unix 
systems and can't figure out what I'm doing wrong.


I'm a LITTLE new to doing on the fly upgrades like this I'll admit. 
Before I'd just wait for a new version of FreeBSD to come out, like say 
6.0 - 6.x and just do a fresh install after backing up the small things 
I need and call it a day.


So can someone please either type, copy and paste, or link me, to some 
info on doing updates and upgrades and patches so I can keep my system 
updated?


BOTH machines are running FreeBSD-7.1-RELEASE and both have almost the 
same software installed on them. I'd like to find out because I'm really 
enjoying 7.1, it has to be by far the best release I've used to date.


portupgrade -a used to do all this for me and take a while, but I'm not 
sure what is going on with this one.


Thanks for any help,

-Allen
___
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: Updates / Upgrades

2009-01-26 Thread Da Rock
On Mon, 2009-01-26 at 03:38 -0500, Akenner wrote:
 Hi all,
 
 I have installed FreeBSD 7.1-RELEASE
  on two of my systems. One of them (This one I'm using) is a PC I use as 
 one of my main desktops. The other I decided on after wanting to keep 
 safe with my main one which has important data on it, so I decided to 
 use another machine and do an install so I could test out patches and 
 updates on it before applying them to this machine so that if something 
 happened during the updates I wouldn't lose this machine and could just 
 format the other machine if something really crashed or had a really 
 huge error, and basically use this machine as production and that one as 
 the test for things so I don't break / screw up anything.
 
 Anyway, I used a tool like this:
 
 #update-scan
 
 It gave me a list of ports and things to update and how to do it. Thing 
 is, when I took the advice of what the application said, and did what it 
 said, it still shows it.
 
 I moved over to the test machine and grabbed the application and ran it 
 to see what I could do, and noticed I did miss the first step, so I 
 figured that was the problem, and used my test machine to do an update 
 for Perl. I saw it had two things to do to upgrade those packages, so I 
 did step one, then, did step two.
 
 I figured this would remove it from the list of packages that need an 
 upgrade, and after a few hours of downloading some stuff off my FTP 
 server (MP3s, no software) I rebooted the machine.
 
 I was surprised to find Perl still listing to do the exact same thing. 
 So this time I did this:
 
 portupgrade -a
 
 It said I needed to run the pkgdb thing, so I did.
 
 Once it finished and fixed up a few apps that needed something or other, 
 I ran it again:
 
 portupgrade -a
 
 After a while, it started going and I figured everything would be done 
 and I could update my main box after checking to be sure that the 
 patches didn't break anything.
 
 Trouble is, after the reboot, I noticed that it still listed all of them.
 
 I'm almost certain the problem is me. So my question is, what am I doing 
 wrong? I'm no guru or BSD hacker, but I am a competent user of Unix 
 systems and can't figure out what I'm doing wrong.
 
 I'm a LITTLE new to doing on the fly upgrades like this I'll admit. 
 Before I'd just wait for a new version of FreeBSD to come out, like say 
 6.0 - 6.x and just do a fresh install after backing up the small things 
 I need and call it a day.
 
 So can someone please either type, copy and paste, or link me, to some 
 info on doing updates and upgrades and patches so I can keep my system 
 updated?
 
 BOTH machines are running FreeBSD-7.1-RELEASE and both have almost the 
 same software installed on them. I'd like to find out because I'm really 
 enjoying 7.1, it has to be by far the best release I've used to date.
 
 portupgrade -a used to do all this for me and take a while, but I'm not 
 sure what is going on with this one.
 
 Thanks for any help,
 

It can be tricky at first, and I'm not sure about the update-scan
utility you're using. Check out the handbook and just run the directions
from there:

portsnap fetch
portsnap update (or you can run portsnap fetch update in one go)

then

freebsd-update fetch
freebsd-update install (or all in one as above)

then (assuming you've installed portupgrade as you mentioned above)

portupgrade -a

then reboot.

If this doesn't work post back your errors and we can help you debug. If
there are no errors in running these steps then all is good! :)

If you want to check your programs are up to date then run the portsnap
steps again and run pkg_version -v. The freebsd-update steps will tell
you whether FreeBSD is up to date.

HTH and good luck.



___
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 DUMMYNET: Several pipes after each other

2009-01-26 Thread Sebastian Mellmann
Ian Smith wrote:
On Thu, 22 Jan 2009 08:10:09 +0100 (CET)
  
   So far I've got those rules:
  
   in_if=em0
   out_if=em1
   management_if=em2
   in_ip=100.100.100.1
   out_ip=200.200.200.1
   management_ip=172.16.0.201
   client1_subnet=192.168.5.0/26
   client2_subnet=192.168.6.0/26
   server_subnet=192.168.7.0/24
  
   download_bandwidth=6144Kbit/s
   upload_bandwidth=1024Kbit/s
   delay=0
   queue_size=10

 10 slots ie packets is likely too small a queue size at these rates.
 You want to check the dropped packet stats from 'ipfw pipe show' re
 that; see the section in ipfw(8) about calculating sizes / delays.


I had a look at the ipfw howto on the freebsd site [1], but I'm not 100%
sure how to choose a good value for the queue size.

If I choose the default (50 packets) it means that it takes approx. 100ms
(600kbits / 6144kbits) to fill the queue.
So the question is: Which value to choose for the queue?

 I suggest using 'in recv' and 'out xmit' rather than via for these, for
 the sake of clarity.  'in recv' and 'in via' come to the same thing, as
 only the receive interface is known on inbound packets, but 'out via'
 applies to packets that were *received* on the specified interface as
 well as those going out on that interface after routing, which can lead
 to surprising results sometimes, and being more specific never hurts ..

Thanks for the hint.
I'll change that.

   But when I have a look at the pipes with 'ipfw show' I can only see
   packets go through the pipe 50 and nothing goes through the other pipes
   (which makes sense actually since IPFW work that way?).

 IPFW works that way if you (likely) have net.inet.ip.fw.one_pass=1 .. so
 that packets exiting from pipes aren't seen by the firewall again.  If
 you set one_pass=0, packets are reinjected into the firewall at the rule
 following the pipe (or queue) action, which is what you want to do here.

Actually this is also described in the manpage of ipfw(8).
Shame on me ;-)

 And you'll surely need a much larger queue for this pipe, at 100Mbit/s.


As already asked above:

How do I know the queue is large or small enough for my needs?


 cheers, Ian

Regards,
Sebastian

[1] http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO



___
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: jail devfs openpty

2009-01-26 Thread Peter Vereshagin
You'll never silence the voice of the voiceless, Mel!

Probably that was caused by overall instability of my 7.1 system:
===
# devfs -m /jailpath/dev rule apply path ttyp* unhide
# chroot /jailpath/
# ls /dev
dsp0.1  lpt0mixer0  random  ttyp1   
ttyp3   ttyp5   zero
log lpt0.ctlnullttyp0   ttyp2   
ttyp4   urandom
# script
script: openpty: Resource temporarily unavailable
# exit
exit
# devfs -m /jailpath/dev rule apply path pty* unhide
# chroot /jailpath/
# script
script: openpty: Permission denied
# exit
exit
# devfs -m /jailpath/dev rule apply path * unhide
devfs rule: unknown argument: Desktop
# devfs -m /jailpath/dev rule apply type tty unhide
# chroot /jailpath/
# script
Script started, output file is typescript
# exit

Script done, output file is typescript
# exit
exit
# 
===

Now this seem to work, after the reboot. Although I'd like to ask if I used the 
major/minor numbers for temporary rules when portupgraded the 5/6 systems, what 
kind of rule I should specify to avoid 'openpty' reason of script(1) failure? 
Which tty devices does it use? You may see I try the path pty* and path ttyp* 
without that luck though. Major/minor numbers are gone since some of 6.X.

2009/01/25 17:08:14 -0900 Mel fbsd.questi...@rachie.is-a-geek.net = To 
freebsd-questions@freebsd.org :
M On Sunday 25 January 2009 02:25:17 Peter Vereshagin wrote:
M  Hello,
M 
M  I am doing the portupgrade inside my jail.
M  I see that script(1) have no permission on openpty.
M  I deleted all the devfs rules on tha jail's /dev both by hand and by
M  deleting the ruleset string in master's rc.conf. So i stopped jail and
M  mounted devfs by hand. Started jail. It appears to work, the portupgrade. I
M  suppose that if mounted with /etc/rc.d/jail the devfs has some tweak that
M  makes it different from mounted by hand.
M 
M Are you sure that's the problem?
M When going inside a jail with jexec(8) there is no /dev/tty. You have to 
login 
M using ssh to get fully functional tty's.
M 
M -- 
M Mel
M 
M Problem with today's modular software: they start with the modules
M and never get to the software part.
73! Peter
-- 
http://vereshagin.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: Solaris Compat?

2009-01-26 Thread Wojciech Puchar

I don't want to raise an argument here (on multiple levels, no less...),
but what would the compatibility be between FreeBSD (release) and
Solaris?

Why I ask is Adobe have released a version of flash for Solaris, and I'm
wondering if this might work better than the linux_compat types. I tried


it's nonsense to FreeBSD developers to do workaround just because adobe 
don't want to make FreeBSD binary.


If they don't want to make, then they DONT WANT US to use their product.
They DO HAVE RIGHT to do so, and please respect their rights!

PS. Of course it's nonsense what they do, but again it's their right to do 
stupid things

___
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: jail devfs openpty

2009-01-26 Thread Peter Vereshagin
You'll never silence the voice of the voiceless, Mel!

Sorry the script(1) did work, but stopped since the portupgrade tried it:
===
# portupgrade -varRp
---  Session started at: Mon, 26 Jan 2009 15:58:54 +0400
[Updating the pkgdb format:bdb1_btree in /var/db/pkg ... - 190 packages found 
(-0 +1) . done]
** Port marked as IGNORE: mail/cclient:
is forbidden: multiple vulnerabilities  
http://www.vuxml.org/freebsd/a6713190-dfea-11dd-a765-0030843d3802.html  
http://www.vuxml.org/freebsd/69a20ce4-dfee-11dd-a765-0030843d3802.html
---  Upgrade of mail/courier-imap started at: Mon, 26 Jan 2009 15:59:40 +0400
---  Upgrading 'courier-imap-4.3.1,2' to 'courier-imap-4.4.1,2' 
(mail/courier-imap)
---  Build of mail/courier-imap started at: Mon, 26 Jan 2009 15:59:40 +0400
---  Building '/usr/ports/mail/courier-imap'
script: openpty: Permission denied
===
Same as with script(1) by hand now.
I do all this in chroot. No difference if under gnu screen or in ttyv4.

2009/01/25 17:08:14 -0900 Mel fbsd.questi...@rachie.is-a-geek.net = To 
freebsd-questions@freebsd.org :
M On Sunday 25 January 2009 02:25:17 Peter Vereshagin wrote:
M  Hello,
M 
M  I am doing the portupgrade inside my jail.
M  I see that script(1) have no permission on openpty.
M  I deleted all the devfs rules on tha jail's /dev both by hand and by
M  deleting the ruleset string in master's rc.conf. So i stopped jail and
M  mounted devfs by hand. Started jail. It appears to work, the portupgrade. I
M  suppose that if mounted with /etc/rc.d/jail the devfs has some tweak that
M  makes it different from mounted by hand.
M 
M Are you sure that's the problem?
M When going inside a jail with jexec(8) there is no /dev/tty. You have to 
login 
M using ssh to get fully functional tty's.
M 
M -- 
M Mel
M 
M Problem with today's modular software: they start with the modules
M and never get to the software part.
73! Peter
-- 
http://vereshagin.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: jail init, but another question

2009-01-26 Thread Peter Vereshagin
You'll never silence the voice of the voiceless, Mel!

Yes.
Ruleset name did not resolve into the number. So rc.subr asked for a digit and 
I provided a number that way.
It was too obvious for me to specify the 'devfsrules_' prefix for the case it 
cannot be anything other than devfs rules.
And so it did not resolve by provided meaningful part ( e. g., 'example' ) of 
ruleset name only. Thanks!

2009/01/25 17:06:15 -0900 Mel fbsd.questi...@rachie.is-a-geek.net = To 
freebsd-questions@freebsd.org :
M Something else is wrong. Set rc_debug=YES in /etc/rc.conf then
M /etc/rc.d/jail start example
M to trace how the rulesets are evaluated.

73! Peter
-- 
http://vereshagin.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


how to install all p5-* one shot

2009-01-26 Thread Saifi Khan
Hi all:

There are many PERL packages in ports whose names are prefixed with p5-* .

How does one install all the p5-* packages one shot ?

Is there a way one can do it with the options available in ports
or does one need to write a script to locate all the dir names
starting with p5-* ?

Any pointer in this direction will be appreciated.

-- 
thanks
Saifi.
___
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: jail devfs openpty

2009-01-26 Thread Peter Vereshagin
It appeared to work after rule apply unhide. Will find out more. Just how to 
delete or view the ruleset? Thanks.

2009/01/25 17:08:14 -0900 Mel fbsd.questi...@rachie.is-a-geek.net = To 
freebsd-questions@freebsd.org :
M On Sunday 25 January 2009 02:25:17 Peter Vereshagin wrote:
M  Hello,
M 
M  I am doing the portupgrade inside my jail.
M  I see that script(1) have no permission on openpty.
M  I deleted all the devfs rules on tha jail's /dev both by hand and by
M  deleting the ruleset string in master's rc.conf. So i stopped jail and
M  mounted devfs by hand. Started jail. It appears to work, the portupgrade. I
M  suppose that if mounted with /etc/rc.d/jail the devfs has some tweak that
M  makes it different from mounted by hand.
M 
M Are you sure that's the problem?
M When going inside a jail with jexec(8) there is no /dev/tty. You have to 
login 
M using ssh to get fully functional tty's.
M 
M -- 
M Mel
M 
M Problem with today's modular software: they start with the modules
M and never get to the software part.
73! Peter
-- 
http://vereshagin.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: Solaris Compat?

2009-01-26 Thread Andreas Xanke
On Mon, 26 Jan 2009 13:04:13 +0100 (CET), Wojciech Puchar 
woj...@wojtek.tensor.gdynia.pl wrote:
 it's nonsense to FreeBSD developers to do workaround just because adobe 
 don't want to make FreeBSD binary.
 
 If they don't want to make, then they DONT WANT US to use their product.
 They DO HAVE RIGHT to do so, and please respect their rights!
 
 PS. Of course it's nonsense what they do, but again it's their right to do 
 stupid things

I do share this point of view, but sadly, an open system like
the Web has been polluted and made unusable (or at least has the
tendency to be this way) for those who cannot access this
propretary product / format.

Don't get me wrong, I've played a bit with Flash on FreeBSD,
found it useless and am living happily now without it, without
getting bothered to install strange Plugins or Extensions
all day long. The day Flash will be an open standard and will
be integrated into browsers (such as graphic formats are, or
even other media), then I'll think about it again, for sure.
But as long as something that unimportant hooks so deeply into
the system that it's hard work to create workarounds to use
it (swfdecoder, linux-flash, gnash etc.), it simply isn't
worth thinking about.

Or could you imagine that a company would release some software
that makes it possible to view PNG images within a webpage, but
your OS isn't intended to have support for this, because it would
require the modification of the OS kernel? :-)



-- 
Die Rechtschreibreform ist völlig in Ordnung, wenn man weder
lesen noch schreiben kann. (Loriot)

___
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


overwriting NOT_FOR_ARCHS via /etc/make.conf has no effect

2009-01-26 Thread Anton Shterenlikht
I'm trying to overwrite a Makefile variable via /etc/make.conf
It doesn't seem to work:

# cd /usr/ports/lang/gcc43
# grep NOT Makefile
NOT_FOR_ARCHS=  alpha ia64
# grep -C1 NOT /etc/make.conf
.if ${.CURDIR:M*/lang/gcc4*}
NOT_FOR_ARCHS= ia64
.endif
# make
===  gcc-4.3.3_20090122 does not run on alpha ia64, while you are running 
alpha.
*** Error code 1

Stop in /usr/ports/lang/gcc43.
# 

What am I doing wrong?

many thanks
anton

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


Re: how to install all p5-* one shot

2009-01-26 Thread Herbert J. Skuhra
2009/1/26 Saifi Khan saifi.k...@twincling.org:
 Hi all:

 There are many PERL packages in ports whose names are prefixed with p5-* .

 How does one install all the p5-* packages one shot ?

 Is there a way one can do it with the options available in ports
 or does one need to write a script to locate all the dir names
 starting with p5-* ?

 Any pointer in this direction will be appreciated.

% cd /usr/ports
% find . -name p5\-* | wc -l
3360

Good idea? Then try:

% sudo portmaster -i */p5\-*

- Herbert
___
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: Solaris Compat?

2009-01-26 Thread Da Rock
On Mon, 2009-01-26 at 13:12 +0100, Andreas Xanke wrote:
 On Mon, 26 Jan 2009 13:04:13 +0100 (CET), Wojciech Puchar 
 woj...@wojtek.tensor.gdynia.pl wrote:
  it's nonsense to FreeBSD developers to do workaround just because adobe 
  don't want to make FreeBSD binary.
  
  If they don't want to make, then they DONT WANT US to use their product.
  They DO HAVE RIGHT to do so, and please respect their rights!
  
  PS. Of course it's nonsense what they do, but again it's their right to do 
  stupid things
 
 I do share this point of view, but sadly, an open system like
 the Web has been polluted and made unusable (or at least has the
 tendency to be this way) for those who cannot access this
 propretary product / format.
 
 Don't get me wrong, I've played a bit with Flash on FreeBSD,
 found it useless and am living happily now without it, without
 getting bothered to install strange Plugins or Extensions
 all day long. The day Flash will be an open standard and will
 be integrated into browsers (such as graphic formats are, or
 even other media), then I'll think about it again, for sure.
 But as long as something that unimportant hooks so deeply into
 the system that it's hard work to create workarounds to use
 it (swfdecoder, linux-flash, gnash etc.), it simply isn't
 worth thinking about.
 
 Or could you imagine that a company would release some software
 that makes it possible to view PNG images within a webpage, but
 your OS isn't intended to have support for this, because it would
 require the modification of the OS kernel? :-)

Understandable. Try clipsal.com , or try freeview.com.au - and this is
just a few of the sites and organisations I deal with that don't offer
workarounds (and I have said words to them regarding accessibility).

Unfortunately, some organisations don't believe flash is that
unaccessible.

___
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 install all p5-* one shot

2009-01-26 Thread Saifi Khan
On Mon, Jan 26, 2009 at 12:58 PM, Herbert J. Skuhra h.sku...@gmail.com wrote:
 2009/1/26 Saifi Khan saifi.k...@twincling.org:
 Hi all:

 There are many PERL packages in ports whose names are prefixed with p5-* .

 How does one install all the p5-* packages one shot ?

 Is there a way one can do it with the options available in ports
 or does one need to write a script to locate all the dir names
 starting with p5-* ?

 Any pointer in this direction will be appreciated.

 % cd /usr/ports
 % find . -name p5\-* | wc -l
3360

 Good idea? Then try:

 % sudo portmaster -i */p5\-*

 - Herbert

Thanks Herbert.

I'd did not know about 'portmaster' until you mentioned in your mail.
Wow, so i got cvsup, portsnap and now portmaster :)

-- 
thanks
Saifi.
___
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 install all p5-* one shot

2009-01-26 Thread Johan Hendriks

 2009/1/26 Saifi Khan saifi.k...@twincling.org:
 Hi all:

 There are many PERL packages in ports whose names are prefixed with p5-* .

 How does one install all the p5-* packages one shot ?

 Is there a way one can do it with the options available in ports
 or does one need to write a script to locate all the dir names
 starting with p5-* ?

 Any pointer in this direction will be appreciated.

 % cd /usr/ports
 % find . -name p5\-* | wc -l


 Good idea? Then try:

 % sudo portmaster -i */p5\-*

 - Herbert

Thanks Herbert.

I'd did not know about 'portmaster' until you mentioned in your mail.
Wow, so i got cvsup, portsnap and now portmaster :)

-- 
thanks
Saifi.

I don't think (i am actually sure) that you can not install all the p5-* ports.
A lot of ports conflict with each other. 

So it is better to install the p5-* ports you actually need.
And the good thing about the ports tree is that they will be when installing 
software that require those p5-* ports.

Regards,
Johan Hendriks


No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.13/1915 - Release Date: 25-1-2009 
18:13
___
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: KDE: What a monster!

2009-01-26 Thread Polytropon
Dear list, I'm starting to make myself unpopular today. :-)


On Sun, 25 Jan 2009 14:53:51 +0100 (CET), Wojciech Puchar 
woj...@wojtek.tensor.gdynia.pl wrote:
 fortunately it's only tendency to trendy software like KDE. not for all 
 unix software.

But sadly for the most software that is used for real productivity,
such as media players, programming environments, or even web browsers
and mail clients.



 and definitely NOT for FreeBSD OS inself, that gets 
 same or faster every release on THE SAME machine!

Exactly, that's why I'm such a happy FreeBSD user, or, to be honest,
HAVE BEEN, because I think... well, sometimes I could crash the
stupid box against the wall because things that worked well years
ago when I setup the system with old software aren't possible
with modern software anymore, and that's a thing I cannot
believe. Evolution is good, but what if it's not only about
adding, fixing and optimizing things, but making things impossible,
due to handling or dropping of functionalities? In this
regards, FreeBSD always was / is good: A solid OS base where
certain things can be EXPECTED to work. Up to today, I haven't
found an operating environment that serves me as good as FreeBSD
did in the past.

FreeBSD in the equation of speed:

Hardware
- = speed++
FreeBSD--

And yes, I think I could notice the speed improvement in the
past. Improvements in performance and startup speed are always
welcome, allthough they're not a major issue to me. As long
as it works flawlessly in general, I'm happy. :-)



 it's not unix problem. it's problem of people that like to have their unix 
 be like windows so it is :)

I cannot imagine one (!) reason why I would like to have my UNIX
to be like Windows, I'm happy it NOT like Windows. :-)

(These words from a man who has never used Windows, so I'm not
spoiled with its strange concepts or assumptions about how things
should be done.)



 what exactly software you rebuild and found slower (except KDE/Gnome 
 bloatware) ?

You're inviting me to complain. :-)

Before I will start, I may say that I often heared that KDE is
an excellent development platform, so I tried it out,
especially because of KDEvelop which I found quite interesting
(running it without KDE). KDE and Gnome are simply too much
for my machine - end for me. So much stuff I don't need and
don't want (such as automounting devices, this is - in
terms of security - not wanted on my system). And all that
stuff that comes bundled with it that I even don't know
about... And I think Gnome isn't much better due to Gtk 2
and its huge pile of dependencies. People keep saying that
XFCE 4 would be good for a lightweight desktop, but it uses
Gtk 2, too, so same problem here. Okay, when your weight
is 200kg, then 150kg may be lightweight, but not compared
to mankind's average. :-) KDE wouldn't let me utilize the
keys on my Sun USB Type 6 keyboard anymore.

I've always been a fan of lightweight software (and I MEAN
lightweight), such as WindowMaker, an excellent window manager,
and all the programs that do not have a K or a G in the name. :-)

Now, let's start complaining.

It will be a looong list, and I have to admit that I've not
found the motivation yet to fix the problems that can be fixed,
allthough I'm sure not all of them can be fixed.

Introduction: I've used FreeBSD 5.4-p something since I set it
up some years ago, and up to July 2008 when an inode crashed
my life, the universe, and everything, the system ran fine so
I had no reason to update anything.

Machine is an Intel P4 with 2 GHz and 768 MB SDR-SDRAM (yes,
I know, I'm too mean to buy DDR1-SDRAM for this). GPU is an
ATI Radeon 9200 / RV250 AGP. Sound is CMI.

First I found that compiling lasts much longer. I know that the
new C compiler does much more optimization, but compile times
have almost doubled - remember, we're talking about the same
hardware configuration, no change. Some numbers:

FreeBSD 7
-
buildkernel KERNCONF1:05:25.90  97.2%
1:11:05.53  94.4%
buildworld  3:54:15.31  96.8%
installkernel KERNCONF 0:46.89  63.9%

... make update ...

buildkernel KERNCONF -D USBDEBUG1:58:29.08  64.7%
buildworld buildkernel KERNCONF -D USBDEBUG 6:06:03.90  86.9%
7:19:49.24  78.2%
installkernel KERNCONF 1:11.85  43.1%
buildworld buildkernel KERNCONF 6:01:33.44  90.1%
6:19:33.55  92.8%
7:39:11.57  82.0%
9:12:00.28  65.1%

FreeBSD 5
-
buildworld buildkernel KERNCONF 5:46:42.25  96.4%
buildworld buildkernel KERNCONF 5:46:30.40  95.9%

Re: Solaris Compat?

2009-01-26 Thread Polytropon
On Mon, 26 Jan 2009 13:04:13 +0100 (CET), Wojciech Puchar 
woj...@wojtek.tensor.gdynia.pl wrote:
 it's nonsense to FreeBSD developers to do workaround just because adobe 
 don't want to make FreeBSD binary.
 
 If they don't want to make, then they DONT WANT US to use their product.
 They DO HAVE RIGHT to do so, and please respect their rights!
 
 PS. Of course it's nonsense what they do, but again it's their right to do 
 stupid things

I do share this point of view, but sadly, an open system like
the Web has been polluted and made unusable (or at least has the
tendency to be this way) for those who cannot access this
propretary product / format.

Don't get me wrong, I've played a bit with Flash on FreeBSD,
found it useless and am living happily now without it, without
getting bothered to install strange Plugins or Extensions
all day long. The day Flash will be an open standard and will
be integrated into browsers (such as graphic formats are, or
even other media), then I'll think about it again, for sure.
But as long as something that unimportant hooks so deeply into
the system that it's hard work to create workarounds to use
it (swfdecoder, linux-flash, gnash etc.), it simply isn't
worth thinking about.

Or could you imagine that a company would release some software
that makes it possible to view PNG images within a webpage, but
your OS isn't intended to have support for this, because it would
require the modification of the OS kernel? :-)



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


Re: overwriting NOT_FOR_ARCHS via /etc/make.conf has no effect

2009-01-26 Thread Polytropon
On Mon, 26 Jan 2009 12:55:29 +, Anton Shterenlikht me...@bristol.ac.uk 
wrote:
 I'm trying to overwrite a Makefile variable via /etc/make.conf
 It doesn't seem to work:

This behaviour is correct. The local makefiles have precedence
before the /etc/make.conf settings.



 What am I doing wrong?

You could modify the port's Makefile itself, or create Makefile.local
in the port's dicrectory with your specific settings, but I don't
now if this mechanism is still supported.



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


Re: X11 forwarding through SSH: Can't open display

2009-01-26 Thread Bill Moran
In response to sk89q the.sk...@gmail.com:

 I meant sshd_config.

Do you have the xauth package installed on the remote server?  You don't
need a full X install, but X11 forwarding won't work without xauth
installed.

 On Sun, Jan 25, 2009 at 10:02 PM, Peter Boosten pe...@boosten.org wrote:
  sk89q wrote:
  Hello,
 
  I am using FreeBSD 6.2 and I have been trying to get X11 forwarding
  through SSH to work. I've gotten to the point where the environment
  variable DISPLAY is set, but I get a Can't open display error when
  I attempt to run an X application. The remote server in question does
  not have an X server install.
 
  In /etc/ssh/ssh_config, I have the following lines:
  X11Forwarding yes
  AllowTcpForwarding yes
  UseLogin no
 
 
  Have a look at /etc/ssh/sshd_config of the remote server and restart
  sshd after modification.
 
  Peter
 
  --
  http://www.boosten.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


-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
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: hex editors, disk info

2009-01-26 Thread Alex Karpovic
 That in mind, what's wrong with bpatch?  I've used it for binary patching, it
 works just fine that that (if my first assumption is totally off-base).  You
 download from the device, change any required data, and (if the device allows
 writes) write it back to the device.  Of course, not all devices allow writes.

It's a bit uncomfortable. Just for example: I need to search some
signatures, which could be anywhere in 640Gb disk, and make some
changes around them. And I don't have spare 640+ Gb to copy whole disk
to. And even if I would have enough space, it is painfully slow to
move 640Gb twice just to make ten minutes editing.
___
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


Buildworld error

2009-01-26 Thread Terry ( 1stKMH )



Do you have anything obscure in make.conf ?  When it fails in
succession, does it fail *after* the last point of failure, or is it
randomized?  When was your last c(v)sup?



Hi Glen the error seems randomized I did a fresh cvsup and moved
make.conf out of the way and did all the clean up steps as per the
handbook  this morning and it still failed.
The only thing the error has in common each time is

internal compiler error: in find_idf,

Thanks
___
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


All-in-One Web Application

2009-01-26 Thread Odhiambo Washington
Hello,

I am scratching my head here endlessly.

We have a site where we have installed Joomla+Moodle+Mailman. These are
three different applications.
Isn't there one that is all-in-one (has all these features built int) for
these?
And now that guys are talking Web2.0, would there be one that is compliant?

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
The only time a woman really succeeds in changing a man is when he is a
baby.
 - Natalie Wood
___
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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-26 Thread Doug Poland

per...@pluto.rain.com wrote:

I've got a network running different versions of FreeBSD
(6.3, 7.0) on different architectures (i386, SPARC64).

What I'd like to do is export the ports hierarchy to all machines,
but preserving ports/packages for each version/architecture.
I also want to make rebuilding indexes run as fast as possible.

Right now, I simply exports(5) /usr/ports via NFSv3 ...

...

The following 2 lines on each machine in /etc/make.conf should
fix those problems:
PACKAGES=${PORTSDIR}/packages/${ARCH}
INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}


To speed up building, it may also be useful to set WRKDIRPREFIX
to something like /var/ports or /var/tmp/ports, so that the work
directories are local rather than having to be accessed via NFS.



Thank you very much!

--
Regards,
Doug

___
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: KDE: What a monster!

2009-01-26 Thread n j
Linus Torvalds on KDE4...

[quote]
Q: Another open source project that underwent a big change was KDE
with version 4.0. They released a lot of fundamental architectural
changes with 4.0 and it received some negative reviews. As a KDE user
how has this impacted you?

A: I used to be a KDE user. I thought KDE 4.0 was such a disaster I
switched to GNOME. I hate the fact that my right button doesn't do
what I want it to do. But the whole break everything model is
painful for users and they can choose to use something else.

I realise the reason for the 4.0 release, but I think they did it
badly. They did so many changes it was a half-baked release. It may
turn out to be the right decision in the end and I will re-try KDE,
but I suspect I'm not the only person they lost.

I got the update through Fedora and there was a mismatch from KDE 3 to
KDE 4.0. The desktop was not as functional and it was just a bad
experience for me. I'll revisit it when I reinstall the next machine
which tends to be every six to eight months.

The GNOME people are talking about doing major surgery so it could
also go the other way.
[/quote]

Full story: 
http://www.computerworld.com/action/article.do?command=viewArticleBasictaxonomyName=SoftwarearticleId=9126619taxonomyId=18pageNumber=5

-- 
Nino
___
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: X11 forwarding through SSH: Can't open display

2009-01-26 Thread sk89q
On Mon, Jan 26, 2009 at 6:32 AM, Bill Moran wmo...@potentialtech.com wrote:
 In response to sk89q the.sk...@gmail.com:

 I meant sshd_config.

 Do you have the xauth package installed on the remote server?  You don't
 need a full X install, but X11 forwarding won't work without xauth
 installed.

Yes, I do (at least to my knowledge), but xauth is located at
/usr/local/bin/xauth. sshd wasn't able to find xauth, so I made a
hard link at /usr/X11/bin/xauth to /usr/local/bin/xauth. That
fixed a can't-find-xauth error, and that's where I am now.

 On Sun, Jan 25, 2009 at 10:02 PM, Peter Boosten pe...@boosten.org wrote:
  sk89q wrote:
  Hello,
 
  I am using FreeBSD 6.2 and I have been trying to get X11 forwarding
  through SSH to work. I've gotten to the point where the environment
  variable DISPLAY is set, but I get a Can't open display error when
  I attempt to run an X application. The remote server in question does
  not have an X server install.
 
  In /etc/ssh/ssh_config, I have the following lines:
  X11Forwarding yes
  AllowTcpForwarding yes
  UseLogin no
 
 
  Have a look at /etc/ssh/sshd_config of the remote server and restart
  sshd after modification.
 
  Peter
 
  --
  http://www.boosten.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


 --
 Bill Moran
 http://www.potentialtech.com
 http://people.collaborativefusion.com/~wmoran/

___
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: can i split a pdf file?

2009-01-26 Thread Roland Smith
On Sun, Jan 25, 2009 at 04:18:26PM -0800, Gary Kline wrote:
   Folks,
 
   Is there a way to split a large pdf file into smaller [ say 1MB ]
   chunks?  Or are there open source tools out there that i can
   build?  

Ghostscript (when built with the pdfwrite driver) will copy pages from a PDF:

gs -DNOPAUSE -sDEVICE=pdfwrite -dFirstPage=N -dLastPage=M \
-sOutputFile=outfile.pdf infile.pdf -c quit /dev/null 21

Where N and M are page numbers, and outfile.pdf and infile.pdf
are the output and original filename respectively.

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


pgplvmCyDnbtC.pgp
Description: PGP signature


Link UP/DOWN problem with re0 on FreeBSD 7.1

2009-01-26 Thread FreeBSD

Hi everyone,

Just to put you in context, I applied the following patch to make the 
card available:


SVN rev 186389 on 2008-12-22 00:46:22Z by yongari

Since we don't request reset for rlphy(4), the link state 'UP'
event from mii(4) may not be delivered if valid link was already
established. To address the issue, check current link state after
driving MII_TICK. This should fix a regression introduced in
r185753 on fast ethernet controllers.

---

I don't have any issue related to that anymore. The problem is that I 
get link UP/DOWN a few times per hour on 3 identical machines that I 
dumped/restored. They are all pluged in a Cisco switch that works fine 
for every other PCs.


Jan 26 06:09:15 term005 kernel: re0: link state changed to DOWN
Jan 26 06:09:17 term005 kernel: re0: link state changed to UP

I tried to switch cables, but I got the same result.

There is the pciconf -lv output:

r...@pci0:3:0:0: class=0x02 card=0x02831028 chip=0x816810ec rev=0x02 
hdr=0x00

vendor = 'Realtek Semiconductor'
device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
class  = network
subclass   = ethernet

There is the output of vmstat -i:

interrupt  total   rate
irq18: re0 ehci0++ 63766  0
irq19: atapci0277001  3
cpu0: timer156068748   1961
Total  156409515   1966

Could it be related to the fact that there is re0 and ehci0++ on the 
same IRQ?


Thank you for your help,

Martin
___
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: Buildworld error

2009-01-26 Thread Lowell Gilbert
Terry ( 1stKMH ) te...@firstkmh.co.uk writes:

 Hi Glen the error seems randomized I did a fresh cvsup and moved
 make.conf out of the way and did all the clean up steps as per the
 handbook  this morning and it still failed.
 The only thing the error has in common each time is

 internal compiler error: in find_idf,

If the errors are different each time, it's probably not a software
problem.  Test your RAM.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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 are the Zionist leaders in Israel so happy about the newPresident?

2009-01-26 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chad Perrin wrote:
 On Sun, Jan 25, 2009 at 04:04:15PM +, Anthony M. Rasat wrote:
 Lawrence Auster wrote:
 Bla bla bla Ku Klux Klan crap.
 Why don't you bring your hatred outta here. This is a family-oriented 
 channel.

 Next time, even when you put OOT label on subject, I still will call it crap.

 If you name me Jewish lover, well, I'm Asian, that means I'm a chink. But 
 it's Mr. Chink to you, thank you very much.
 
 Technically, chink is a slur for Chinese -- not Asian in general.
 
 Just tryin' ta help.
 

I was noticing that he's been crapping over the GentooLinux lists also (at the
very least, along with a long list of FreeBSD lists, not just -Questions) and
he's learned to obfuscate his source address.  Not that he couldn't be blocked,
and I (for one) really dislike offering him his pulpit of hate here.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl97rAACgkQz62J6PPcoOk6NgCfUmpfbMCO7ESzGAzl+yUJwAS2
Z/wAoJPjoAD6dXmuEJotYKpkRaP9VOPj
=vI85
-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: hex editors, disk info

2009-01-26 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alex Karpovic wrote:
 That in mind, what's wrong with bpatch?  I've used it for binary patching, it
 works just fine that that (if my first assumption is totally off-base).  You
 download from the device, change any required data, and (if the device allows
 writes) write it back to the device.  Of course, not all devices allow 
 writes.
 
 It's a bit uncomfortable. Just for example: I need to search some
 signatures, which could be anywhere in 640Gb disk, and make some
 changes around them. And I don't have spare 640+ Gb to copy whole disk
 to. And even if I would have enough space, it is painfully slow to
 move 640Gb twice just to make ten minutes editing.

That's an unusual requirement, but folks ought to listen here, because
optimizing such a problem, it's an interesting challenge.  There is NO
established tool which will do such an outre' task well, just because it's so
unusual)  I won't probe into your reasons, although a request so very odd
usually means that there's some misunderstanding at the back of it.

Anyhow, if I were given this task, I really think that the problem is in
localizing the area you need to change, not in changing it.  I'd use whatever
language you feel comfortable with, then using that language (either directly,
or by piping dd or nc to help out) so that you could do a global search for your
target.  Your search could trivially do extra things, like uniquely identifiying
the target area, even dumping surrounding blocks into work file, so you could
follow up with bpatch to actually change things.

Don't expect such a thing to go quickly ... however, this is one of those tasks
that can be made to operate significantly quicker, if you choose an efficient
language and (easily as important) choose a good search/comparison algorithm.
Actually, this sort of thing mgiht well have been given as homework to an
undergrad, a very good learning opportunity indeed.  Lot's of room for
optimization of all kinds, and that task is big enough to really show obvious
results.

Done wrong, with tools bent into shape, this task is really too large to be
reasonably contemplated.  Unless you have a few extra months to use waiting for
results, and you'd have to keep your mitts off the disk in the meanwhile.  Just
not a good idea to take that approach.

 ___
 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

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl97fYACgkQz62J6PPcoOmJzgCePrJCKxJc6y92RNJPa+Nr76GY
dDoAniq7ay6Bb72eVUFVOeyxWo5IPehc
=r9vi
-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: Why are the Zionist leaders in Israel so happy about the newPresident?

2009-01-26 Thread michael



Chuck Robey wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chad Perrin wrote:
  

On Sun, Jan 25, 2009 at 04:04:15PM +, Anthony M. Rasat wrote:


Lawrence Auster wrote:
  

Bla bla bla Ku Klux Klan crap.


Why don't you bring your hatred outta here. This is a family-oriented channel.

Next time, even when you put OOT label on subject, I still will call it crap.

If you name me Jewish lover, well, I'm Asian, that means I'm a chink. But it's 
Mr. Chink to you, thank you very much.
  

Technically, chink is a slur for Chinese -- not Asian in general.

Just tryin' ta help.




I was noticing that he's been crapping over the GentooLinux lists also (at the
very least, along with a long list of FreeBSD lists, not just -Questions) and
he's learned to obfuscate his source address.  Not that he couldn't be blocked,
and I (for one) really dislike offering him his pulpit of hate here.
  

Besides, we all know its the Amish who are really in control.

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl97rAACgkQz62J6PPcoOk6NgCfUmpfbMCO7ESzGAzl+yUJwAS2
Z/wAoJPjoAD6dXmuEJotYKpkRaP9VOPj
=vI85
-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
  

___
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: X11 forwarding through SSH: Can't open display

2009-01-26 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

sk89q wrote:
 On Mon, Jan 26, 2009 at 6:32 AM, Bill Moran wmo...@potentialtech.com wrote:
 In response to sk89q the.sk...@gmail.com:

 I meant sshd_config.
 Do you have the xauth package installed on the remote server?  You don't
 need a full X install, but X11 forwarding won't work without xauth
 installed.
 
 Yes, I do (at least to my knowledge), but xauth is located at
 /usr/local/bin/xauth. sshd wasn't able to find xauth, so I made a
 hard link at /usr/X11/bin/xauth to /usr/local/bin/xauth. That
 fixed a can't-find-xauth error, and that's where I am now.

I think a far more likely thing might be being missed here.  Usually when I'm
surprised when a new system refuses to allow me to remotely open X apps, it's
not the problem of ssh, it's because X11, by default, doesn't open up the port
6000 IP socket to allow remotes to work.  You can easily use netstat, to look
for open sockets 6xxx range, opened by your X server.  If you can't find it,
then some part of your X installation is likely giving the -nolisten tcp
commands when starting up the X server.  I don't know how you open your X, so I
couldn't directly tell you how to fix this.

Being a bit more honest, the X server itself doesn't block the remote ports.
It's all of the startup tools (like startx) which stick in the anti-remote
prejudice.  Giving the fact that it IS a security risk, I guess they're right,
it just means that if you want remote operation, you need to tell X (via
whatever startup method you use) to stop blocking the opening of that port 6000.

 
 On Sun, Jan 25, 2009 at 10:02 PM, Peter Boosten pe...@boosten.org wrote:
 sk89q wrote:
 Hello,

 I am using FreeBSD 6.2 and I have been trying to get X11 forwarding
 through SSH to work. I've gotten to the point where the environment
 variable DISPLAY is set, but I get a Can't open display error when
 I attempt to run an X application. The remote server in question does
 not have an X server install.

 In /etc/ssh/ssh_config, I have the following lines:
 X11Forwarding yes
 AllowTcpForwarding yes
 UseLogin no

 Have a look at /etc/ssh/sshd_config of the remote server and restart
 sshd after modification.

 Peter

 --
 http://www.boosten.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

 --
 Bill Moran
 http://www.potentialtech.com
 http://people.collaborativefusion.com/~wmoran/

 ___
 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

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl98QwACgkQz62J6PPcoOmRaQCglJDR9D5/C1Wp5Q0cnd6Z3bi3
cvMAoI14mmJVzWWhRsJmT0lKsvakVkbu
=BS/x
-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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-26 Thread Doug Poland
On Mon, Jan 26, 2009 at 08:25:37AM -0600, Doug Poland wrote:
 per...@pluto.rain.com wrote:
 I've got a network running different versions of FreeBSD
 (6.3, 7.0) on different architectures (i386, SPARC64).

 What I'd like to do is export the ports hierarchy to all machines,
 but preserving ports/packages for each version/architecture.
 I also want to make rebuilding indexes run as fast as possible.

 Right now, I simply exports(5) /usr/ports via NFSv3 ...
 ...
 The following 2 lines on each machine in /etc/make.conf should
 fix those problems:
 PACKAGES=${PORTSDIR}/packages/${ARCH}
 INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}

It would seem the package building tools (make package, portinstall -p)
do not honor the PACKAGES setting in /etc/make.conf.  The package is
simply deposited in /usr/ports/{category}/{pkgname}.  Is there a way to
force the package builder to use this knob?

-- 
Regards,
Doug
___
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


Hey, you never responded to my friend request on Going

2009-01-26 Thread Stash Magazine

   [track?mailingid=1916messageid=1413databaseid=1329type=openserial=
   1217280870emailid=questi...@freebsd.orguserid=30449extra=]

   [1]Stash Magazine
   San Francisco, CA Hey! I sent you a friend request on [2]Going.com.
   I use going to find cool stuff around the city, get deals, and see
   where my friends are going.
   Do you want to add Stash as a friend?
  
   [3]Yes, add as a friend.
 [4]No, thanks.

   This email was sent to: questi...@freebsd.org
   This email was sent by: Going, Inc. 8 Winter Street, 6th Floor Boston,
   MA 02108 USA
   We respect your right to privacy - [5]view our policy
   This email was sent on behalf of Stash Magazine. If you do not wish to
   receive mail sent from Stash Magazine using going.com, please [6]click
   here.

References

   Visible links
   1. 
http://strongmail.going.com/track?type=clickmailingid=1916messageid=1413databaseid=1329serial=1217280870emailid=questi...@freebsd.orguserid=30449extra=2001http://going.com/profile.php?user_id=aa59603310track=e_ofr_pro
   2. 
http://strongmail.going.com/track?type=clickmailingid=1916messageid=1413databaseid=1329serial=1217280870emailid=questi...@freebsd.orguserid=30449extra=2002http://www.going.com/?track=e_ofr_home
   3. 
http://strongmail.going.com/track?type=clickmailingid=1916messageid=1413databaseid=1329serial=1217280870emailid=questi...@freebsd.orguserid=30449extra=2004http://going.com/join_me/ecoSEAucDO?track=e_ofr_yes
   4. 
http://strongmail.going.com/track?type=clickmailingid=1916messageid=1413databaseid=1329serial=1217280870emailid=questi...@freebsd.orguserid=30449extra=2006http://going.com/join_me/ecoSEAucDO?no=1track=e_ofr_no
   5. 
http://strongmail.going.com/track?type=clickmailingid=1916messageid=1413databaseid=1329serial=1217280870emailid=questi...@freebsd.orguserid=30449extra=2007http://going.com/privacy_policy.php
   6. 
http://strongmail.going.com/track?type=clickmailingid=1916messageid=1413databaseid=1329serial=1217280870emailid=questi...@freebsd.orguserid=30449extra=2008http://going.com/unsub.php?e=questions%40freebsd.orgt=rc=01608191e6174a59bee97728a245366as=aa59603310

   Hidden links:
   7. 
http://strongmail.going.com/track?type=clickmailingid=1916messageid=1413databaseid=1329serial=1217280870emailid=questi...@freebsd.orguserid=30449extra=2000http://going.com/profile.php?user_id=aa59603310track=e_ofr_pro
   8. 
http://strongmail.going.com/track?type=clickmailingid=1916messageid=1413databaseid=1329serial=1217280870emailid=questi...@freebsd.orguserid=30449extra=2003http://going.com/join_me/ecoSEAucDO?track=e_ofr_yes
   9. 
http://strongmail.going.com/track?type=clickmailingid=1916messageid=1413databaseid=1329serial=1217280870emailid=questi...@freebsd.orguserid=30449extra=2005http://going.com/join_me/ecoSEAucDO?no=1track=e_ofr_no
___
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


Dual-head issues w/ the latest Xorg updates

2009-01-26 Thread Geoff Fritz
Seems I've been bitten by the latest Xorg updates that trickled into ports
late last week.

Firstly, I stumbled with the AllowEmptyInput thing, as described in
/usr/ports/UPDATING (20090123 entry).  Fine, that was easy enough.

After that, I found that the sis driver was broken, or at least it resulted
in my card no longer working.  Granted, I have a very old 4MB (or maybe 8MB)
card I snagged at a thrift shop to drive my 2nd monitor.

So I gave up on the sis driver, and tried to run w/ the vesa driver.  No
luck, either.  I can't seem to get that working now.

Either dual-head got tweaked with the latest X updates, or my understanding
of setting up X is extremely deficient.  My guess is the latter.  It's very
frustrating that it just worked, then stopped.  Having this blank CRT in
my field of vision is really tweaking me out.  :)

So, before I get involved in a storm of posting copies of my xorg.conf and log
files, has anyone else had issues with the new Xorg stuff?  Also, is there
a good howto for setting up Xorg with 2 heads and 2 different cards?

In the mean time, I'll be recompiling the whole chain of programs with the
default make options, just to make sure my custom CPUTYPE and optimizations
didn't break stuff.

Thanks.

-- Geoff

P.S. -- If it comes down to posting full config/log files, what's the preferred
 method, inline or as attachments?
___
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: Solaris Compat?

2009-01-26 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Wojciech Puchar wrote:
 I don't want to raise an argument here (on multiple levels, no less...),
 but what would the compatibility be between FreeBSD (release) and
 Solaris?

 Why I ask is Adobe have released a version of flash for Solaris, and I'm
 wondering if this might work better than the linux_compat types. I tried
 
 it's nonsense to FreeBSD developers to do workaround just because adobe
 don't want to make FreeBSD binary.
 
 If they don't want to make, then they DONT WANT US to use their product.
 They DO HAVE RIGHT to do so, and please respect their rights!
 
 PS. Of course it's nonsense what they do, but again it's their right to
 do stupid things

I really, really dislike the notion that any company, in the selfishly sheer
pursuit of profits, should be able to dictate to anyone what that person should
be able to do, giving that it's within the limits of the law.  Not allowing one
to view many sites ISN'T within the moral control of any company, as long as you
don't violate laws in doing it.  Telling me that I should respect some idiot
being able to tell me what I should or should not do with my own personal
equipment (again, as long as you stay legal) is is the worst sort of moral
cowardice.

If you look at what Adobe is doing, they're making it obviously clear that they
don't care about you using their tools, they only don't want you to use the
operating system of your choice.  And you want me to respect that, right?
Sheesh!  Why is it you use FreeBSD?  Isn't it obviously clear that MicroSoft
doesn't want you to?

As long as you stay within the letter of the law, don't be so pusillanimous as
to allow *any* company to dictate your free speech.  As long as you stay within
the law, then Free Speech is precisely what this all comes down to, and my
rights to use whatever operating system I care to.  Same as it's Adobe's right
to refuse to support such a choice, which I agree with.  But they can't tell me
what I can do on my own.

If I misunderstood you, above, then I apologize, but if I correctly read your
meaning, then I'm sure my personal rights are important enough to me, to stay
the course here.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl99qEACgkQz62J6PPcoOkO4wCfZjUdhbszESNHXKrdM8JvxbSS
we0An2zAvnI/0cNM4cxTMrH8Zh/qxkUz
=Unze
-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: overwriting NOT_FOR_ARCHS via /etc/make.conf has no effect

2009-01-26 Thread Mel
On Monday 26 January 2009 05:06:48 Polytropon wrote:
 On Mon, 26 Jan 2009 12:55:29 +, Anton Shterenlikht me...@bristol.ac.uk 
wrote:
  I'm trying to overwrite a Makefile variable via /etc/make.conf
  It doesn't seem to work:

 This behaviour is correct. The local makefiles have precedence
 before the /etc/make.conf settings.

They don't, even though it seems so. The Makefile is *read* 
after /etc/make.conf. The Makefile sets this variable unconditionally, 
therefore cannot be overridden by anything that is read before the Makefile.
If the Makefile defined it like so:
NOT_FOR_ARCHS?=alpha ia64

then /etc/make.conf would work, since the variable is defined at the time the 
Makefile is read.


  What am I doing wrong?

 You could modify the port's Makefile itself, or create Makefile.local
 in the port's dicrectory with your specific settings, but I don't
 now if this mechanism is still supported.

It is and since Makefile.local is read *after* the Makefile, you can override 
the variable there.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: Registry corrupt?

2009-01-26 Thread Mel
On Monday 26 January 2009 03:27:43 Jack L. Stone wrote:
 At 04:27 PM 1.25.2009 -0900, you wrote:
 On Saturday 24 January 2009 04:06:39 Jack L. Stone wrote:
  At 04:33 PM 1.23.2009 +0100, cpghost wrote:
  On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote:
   On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone
 
  BUT, it is executable and using the exact path to the program still
  gives this error:
  /usr/local/bin/fastest_cvsup: not found
 
 file /usr/bin/perl will give you the answer.
 
 --
 Mel

 Yes, know it's perl and here's how I really use fastest_cvsup:
 # /usr/local/bin/cvsup -g -L 2 -h `(fastest_cvsup -q -c us )` \
 # /root/kernels/7.0.src-supfile

 The above finds the fastest fbsd source and cvsup's from it. But, was
 getting fastest_cvsup not found

fastest_cvsup did not find perl. Your /usr/bin/perl is a *broken* symlink to a 
perl version that does not exist anymore, which file /usr/bin/perl would show 
you if you actually did run that command.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: make -jN build with portmaster

2009-01-26 Thread cpghost
On Sun, Jan 25, 2009 at 10:41:05PM -0900, Mel wrote:
 On Sunday 25 January 2009 20:48:22 Doug Barton wrote:
  Josh Carroll wrote:
   What I do is the following via make.conf,
 
  I think this is a good solution. Given that incredible foot-shooting
  power of the -j stuff I am not inclined to add something like this to
  portmaster, not even as an advanced option.

Yes, I understand the problem with that. The make.conf solution
is good enough for now. ;)

 Given the fact that the build target is presumably -j safe (as far as the 
 ports system is concerned), it would be nice to have a BUILD_JOBS in 
 Mk/bsd.port.mk similar to INDEX_JOBS that is already there. Port maintainers 
 then can also set WITHOUT_PARALLEL (or USE_PARALLEL=NO etc) for ports that 
 break by themselves (f.e. www/lynx, editors/vim).
 portmaster should then have no problem setting BUILD_JOBS on request.

That would be absolutely perfect!

At least, big ports (www/firefox3 etc...) that take a long time to
compile could use USE_PARALLEL=YES right now (or the solution with
make.conf) if they are safe with -jN. The gazillion smallish ports
could come later when maintainers have some time to follow up, but
they are not really all that critical.

Memory may fail me, but wasn't there a GSoC project to parallelize
the ports infrastructure? Or was that about building many different
ports simultaneously instead of one port on multiple cores?

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: Wierd Port Problem

2009-01-26 Thread Mel
On Monday 26 January 2009 09:01:37 Jeffrey R. Hellem wrote:
 tried again today :P still no goran your command at the end.. hope it helps

 [r...@server /usr/ports/databases/php5-dba]# make
 ===  PHPizing for php5-dba-5.2.8
 ===   php5-dba-5.2.8 depends on file: /usr/local/bin/phpize - found
 ===   php5-dba-5.2.8 depends on file: /usr/local/bin/autoconf-2.62 - found
 Configuring for:
 PHP Api Version: 20041225
 Zend Module Api No:  20060613
 Zend Extension Api No:   220060519
 ===   php5-dba-5.2.8 depends on shared library: gdbm.3 - found
 ===   php5-dba-5.2.8 depends on shared library: db41.1 - found

snip useless autotools warnings

 ===  Configuring for php5-dba-5.2.8
 [r...@server /usr/ports/databases/php5-dba]# make install

I'm missing a build here. Can you instead of typing make install, type make 
build?
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-26 Thread Mel
On Monday 26 January 2009 08:23:13 Doug Poland wrote:
 On Mon, Jan 26, 2009 at 08:25:37AM -0600, Doug Poland wrote:
  per...@pluto.rain.com wrote:
  I've got a network running different versions of FreeBSD
  (6.3, 7.0) on different architectures (i386, SPARC64).
 
  What I'd like to do is export the ports hierarchy to all machines,
  but preserving ports/packages for each version/architecture.
  I also want to make rebuilding indexes run as fast as possible.
 
  Right now, I simply exports(5) /usr/ports via NFSv3 ...
 
  ...
 
  The following 2 lines on each machine in /etc/make.conf should
  fix those problems:
  PACKAGES=${PORTSDIR}/packages/${ARCH}
  INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}

 It would seem the package building tools (make package, portinstall -p)
 do not honor the PACKAGES setting in /etc/make.conf.  The package is
 simply deposited in /usr/ports/{category}/{pkgname}.  Is there a way to
 force the package builder to use this knob?

make package respects it.

portinstall -p might override it itself in /usr/local/etc/pkgtools.conf.
Hurray for sane defaults.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: Link UP/DOWN problem with re0 on FreeBSD 7.1

2009-01-26 Thread FreeBSD

FreeBSD a écrit :

Hi everyone,

Just to put you in context, I applied the following patch to make the 
card available:


SVN rev 186389 on 2008-12-22 00:46:22Z by yongari

Since we don't request reset for rlphy(4), the link state 'UP'
event from mii(4) may not be delivered if valid link was already
established. To address the issue, check current link state after
driving MII_TICK. This should fix a regression introduced in
r185753 on fast ethernet controllers.

---

I don't have any issue related to that anymore. The problem is that I 
get link UP/DOWN a few times per hour on 3 identical machines that I 
dumped/restored. They are all pluged in a Cisco switch that works fine 
for every other PCs.


Jan 26 06:09:15 term005 kernel: re0: link state changed to DOWN
Jan 26 06:09:17 term005 kernel: re0: link state changed to UP

I tried to switch cables, but I got the same result.

There is the pciconf -lv output:

r...@pci0:3:0:0: class=0x02 card=0x02831028 chip=0x816810ec rev=0x02 
hdr=0x00

vendor = 'Realtek Semiconductor'
device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
class  = network
subclass   = ethernet

There is the output of vmstat -i:

interrupt  total   rate
irq18: re0 ehci0++ 63766  0
irq19: atapci0277001  3
cpu0: timer156068748   1961
Total  156409515   1966

Could it be related to the fact that there is re0 and ehci0++ on the 
same IRQ?


Thank you for your help,

Martin


I just tried with a brand new Dell 2708 switch and the problem is still 
there. I just confirmed that the UP/DOWN occurs every 10 minutes (+- a 
few seconds).


Thanks again,

Martin

___
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


ELF format alternative ?

2009-01-26 Thread Saifi Khan
Hi all:

Curious to know if there are under research or known format other
than ELF format ?

Pls note i'm aware of a.out and COFF, ELF format was developed by wonderful USL.

-- 
thanks
Saifi.
___
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: Link UP/DOWN problem with re0 on FreeBSD 7.1

2009-01-26 Thread Graeme Dargie
If you do a dmesg are you also showing a watchdog time out for the nic ?

I only ask as I am having the exact same problem with the exact same card and I 
have yet to find a solution, if I come across something I will let you know.

Regards
Graeme

-Original Message-
From: FreeBSD [mailto:free...@optiksecurite.com] 
Sent: 26 January 2009 18:58
To: freebsd-questions@freebsd.org
Subject: Re: Link UP/DOWN problem with re0 on FreeBSD 7.1

FreeBSD a écrit :
 Hi everyone,
 
 Just to put you in context, I applied the following patch to make the 
 card available:
 
 SVN rev 186389 on 2008-12-22 00:46:22Z by yongari
 
 Since we don't request reset for rlphy(4), the link state 'UP'
 event from mii(4) may not be delivered if valid link was already
 established. To address the issue, check current link state after
 driving MII_TICK. This should fix a regression introduced in
 r185753 on fast ethernet controllers.
 
 ---
 
 I don't have any issue related to that anymore. The problem is that I 
 get link UP/DOWN a few times per hour on 3 identical machines that I 
 dumped/restored. They are all pluged in a Cisco switch that works fine 
 for every other PCs.
 
 Jan 26 06:09:15 term005 kernel: re0: link state changed to DOWN
 Jan 26 06:09:17 term005 kernel: re0: link state changed to UP
 
 I tried to switch cables, but I got the same result.
 
 There is the pciconf -lv output:
 
 r...@pci0:3:0:0: class=0x02 card=0x02831028 chip=0x816810ec rev=0x02 
 hdr=0x00
 vendor = 'Realtek Semiconductor'
 device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
 class  = network
 subclass   = ethernet
 
 There is the output of vmstat -i:
 
 interrupt  total   rate
 irq18: re0 ehci0++ 63766  0
 irq19: atapci0277001  3
 cpu0: timer156068748   1961
 Total  156409515   1966
 
 Could it be related to the fact that there is re0 and ehci0++ on the 
 same IRQ?
 
 Thank you for your help,
 
 Martin

I just tried with a brand new Dell 2708 switch and the problem is still 
there. I just confirmed that the UP/DOWN occurs every 10 minutes (+- a 
few seconds).

Thanks again,

Martin

___
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: Link UP/DOWN problem with re0 on FreeBSD 7.1

2009-01-26 Thread FreeBSD

Graeme Dargie a écrit :

If you do a dmesg are you also showing a watchdog time out for the nic ?

I only ask as I am having the exact same problem with the exact same card and I 
have yet to find a solution, if I come across something I will let you know.

Regards
Graeme


Not a single time...sorry.



-Original Message-
From: FreeBSD [mailto:free...@optiksecurite.com] 
Sent: 26 January 2009 18:58

To: freebsd-questions@freebsd.org
Subject: Re: Link UP/DOWN problem with re0 on FreeBSD 7.1

FreeBSD a écrit :

Hi everyone,

Just to put you in context, I applied the following patch to make the 
card available:


SVN rev 186389 on 2008-12-22 00:46:22Z by yongari

Since we don't request reset for rlphy(4), the link state 'UP'
event from mii(4) may not be delivered if valid link was already
established. To address the issue, check current link state after
driving MII_TICK. This should fix a regression introduced in
r185753 on fast ethernet controllers.

---

I don't have any issue related to that anymore. The problem is that I 
get link UP/DOWN a few times per hour on 3 identical machines that I 
dumped/restored. They are all pluged in a Cisco switch that works fine 
for every other PCs.


Jan 26 06:09:15 term005 kernel: re0: link state changed to DOWN
Jan 26 06:09:17 term005 kernel: re0: link state changed to UP

I tried to switch cables, but I got the same result.

There is the pciconf -lv output:

r...@pci0:3:0:0: class=0x02 card=0x02831028 chip=0x816810ec rev=0x02 
hdr=0x00

vendor = 'Realtek Semiconductor'
device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
class  = network
subclass   = ethernet

There is the output of vmstat -i:

interrupt  total   rate
irq18: re0 ehci0++ 63766  0
irq19: atapci0277001  3
cpu0: timer156068748   1961
Total  156409515   1966

Could it be related to the fact that there is re0 and ehci0++ on the 
same IRQ?


Thank you for your help,

Martin


I just tried with a brand new Dell 2708 switch and the problem is still 
there. I just confirmed that the UP/DOWN occurs every 10 minutes (+- a 
few seconds).


Thanks again,

Martin

___
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: how to create a DVD backup filesystem?

2009-01-26 Thread regis505

 But this does not (!) make the media mountable! You may see that
 as a disadvantage, but maybe it's not: You can access it now
 directly without needing to mount it, and you can extract from
 it by selection, e. g.
 
   % tar xvjf /dev/cd0 ~/music
 
 to only extract the music/ subtree.
 
 The tar file system is best for interoperability because (if
 I may say this) every UNIX-like OS can read tar, no matter if you
 put it n discs, disks, tapes or even hard disks or USB sticks.


I was curious to tar directly to a blank dvd+rw. I tried:

  tar -cvf /dev/cd1  root0-090107.gz root1-090116.gz
  a root0-090107.gz
  a root1-090116.gz

I got the prompt back but the dvd device stays busy (on the unit, the light
flashes non stop). Any ideas?

Regis

-- 
View this message in context: 
http://www.nabble.com/how-to-create-a-DVD-backup-filesystem--tp21617046p21673928.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
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 create a DVD backup filesystem?

2009-01-26 Thread Wojciech Puchar



I was curious to tar directly to a blank dvd+rw. I tried:

 tar -cvf /dev/cd1  root0-090107.gz root1-090116.gz
 a root0-090107.gz
 a root1-090116.gz

I got the prompt back but the dvd device stays busy (on the unit, the light
flashes non stop). Any ideas?


perform ANY read from the drive and that's all :)
___
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: Solaris Compat?

2009-01-26 Thread Wojciech Puchar

pursuit of profits, should be able to dictate to anyone what that person should


They DO NOT DICTATE ANYTHING. It's quite free market here, you can use 
they product or not. I don't use, mostly because it doesn't run on an OS 
that i use.

___
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: can i split a pdf file?

2009-01-26 Thread Charlie Kester

On Mon 26 Jan 2009 at 00:16:23 PST Polytropon wrote:

On Mon, 26 Jan 2009 00:06:18 -0800, Gary Kline kl...@thought.org wrote:

Thanks, Gents,

But according to one smallish pdf file that I send to a web based
	tool, it was not a real pdf.  Or, more accurately, it (the pdf to 
	speech program) couldn't decode it.


This is a typical problem with poorly engineered PDFs where the
author puts in the text as images (you'll see this stupidity across
the Web, too).


In most cases where I've seen this, it's because they had scanned an
actual printed document.  Many old, out-of-print books are being made
newly available this way, so I'm not inclined to complain.

Unfortunately, OCR software still isn't reliable enough (or, if
reliable, cheap enough) to convert these scanned images to actual text.
___
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


printf and utf-8

2009-01-26 Thread Svein Halvor Halvorsen
As far as I can see, printf is not calculating strings lengths correctly 
when using utf-8 encoding. Either that, or I'm using byte count, and 
can't find the character count :-/


Eg:

$ printf |%-10s| æøå
|æøå|

$ printf |%-10s| 123
|123   |

I'm on 7.1-p2



sv.
___
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: Solaris Compat?

2009-01-26 Thread Da Rock
On Mon, 2009-01-26 at 12:45 -0500, Chuck Robey wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Wojciech Puchar wrote:
  I don't want to raise an argument here (on multiple levels, no less...),
  but what would the compatibility be between FreeBSD (release) and
  Solaris?
 
  Why I ask is Adobe have released a version of flash for Solaris, and I'm
  wondering if this might work better than the linux_compat types. I tried
  
  it's nonsense to FreeBSD developers to do workaround just because adobe
  don't want to make FreeBSD binary.
  
  If they don't want to make, then they DONT WANT US to use their product.
  They DO HAVE RIGHT to do so, and please respect their rights!
  
  PS. Of course it's nonsense what they do, but again it's their right to
  do stupid things
 
 I really, really dislike the notion that any company, in the selfishly sheer
 pursuit of profits, should be able to dictate to anyone what that person 
 should
 be able to do, giving that it's within the limits of the law.  Not allowing 
 one
 to view many sites ISN'T within the moral control of any company, as long as 
 you
 don't violate laws in doing it.  Telling me that I should respect some idiot
 being able to tell me what I should or should not do with my own personal
 equipment (again, as long as you stay legal) is is the worst sort of moral
 cowardice.
 
 If you look at what Adobe is doing, they're making it obviously clear that 
 they
 don't care about you using their tools, they only don't want you to use the
 operating system of your choice.  And you want me to respect that, right?
 Sheesh!  Why is it you use FreeBSD?  Isn't it obviously clear that MicroSoft
 doesn't want you to?
 
 As long as you stay within the letter of the law, don't be so pusillanimous as
 to allow *any* company to dictate your free speech.  As long as you stay 
 within
 the law, then Free Speech is precisely what this all comes down to, and my
 rights to use whatever operating system I care to.  Same as it's Adobe's right
 to refuse to support such a choice, which I agree with.  But they can't tell 
 me
 what I can do on my own.
 
 If I misunderstood you, above, then I apologize, but if I correctly read your
 meaning, then I'm sure my personal rights are important enough to me, to stay
 the course here.

As I said before, I didn't want to start an argument, and Adobe now
don't care what system you use: just that they will only support those
systems designated. If you can get linux flashplayer working on FreeBSD
then thats cool- just don't go whinging to them about how to do it or
fix it if it doesn't work.

My interest here is that they HAVE supported Solaris (Sun's influence
has finally swayed them) which, unless I'm very much mistaken, is a
closer relative of FreeBSD than linux. Any further thoughts on this
front?

___
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: can i split a pdf file?

2009-01-26 Thread Gary Kline
On Mon, Jan 26, 2009 at 09:16:23AM +0100, Polytropon wrote:
 On Mon, 26 Jan 2009 00:06:18 -0800, Gary Kline kl...@thought.org wrote:
  Thanks, Gents,
  
  But according to one smallish pdf file that I send to a web based
  tool, it was not a real pdf.  Or, more accurately, it (the pdf to 
  speech program) couldn't decode it.
 
 This is a typical problem with poorly engineered PDFs where the
 author puts in the text as images (you'll see this stupidity across
 the Web, too).


So what kind of moron is going to photograph pages --or maybe just
get-screenshot-of-this-page and upload it?   Or a Real question:
I read an online pdf of The Art of War from the 1880's [?], and
it was in an old-English or olden-Deutsch type font.  In PDF.  i
have other p.d. texts in pdf and am wondering in there is some
sort of scanner than can take a book-length script and create a
pdf file.  Anybody know?  


 
 A good tool to check if the PDF file can be (audibly) read is the
 use of the tool pdftotext from the port xpdf.
 
   % pdftotext bla.pdf  less bla.txt
 
 Then, even the FF speech plugin should work correctly - as long as
 the PDF file contains decodable text. If it's just a bunch of images,
 well, what are we expecting, hm? FF-speech: You see a pretty image of
 some text... :-)
 

Yeah, that's about right!  I got a bunch of ^L bytes and nothing
else.  Now I'm looking at the file with od -c and, yup, it's and
image. The parts inbetween pages are in ASCII.  Do you know what
MediaBox is?

At least the web article was not an image!  Google had it both in
PDF and HTML.

gary

 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

___
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: printf and utf-8

2009-01-26 Thread Chuck Swiger

On Jan 26, 2009, at 1:58 PM, Svein Halvor Halvorsen wrote:
As far as I can see, printf is not calculating strings lengths  
correctly when using utf-8 encoding. Either that, or I'm using byte  
count, and can't find the character count :-/


printf(1) explicitly states that it works with ASCII and ANSI  
X3.159-1989 (``ANSI C89'') character escapes, and it also notes:


 Multibyte characters are not recognized in format strings (this  
is only a

 problem if `%' can appear inside a multibyte character).

Some platforms have a printf_l(3) which is locale/xlocale-aware, but  
there doesn't seem to be a corresponding CLI utility which understands  
Unicode/UTF8/widechars.


Regards,
--
-Chuck

___
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: can i split a pdf file?

2009-01-26 Thread cpghost
On Mon, Jan 26, 2009 at 02:06:23PM -0800, Gary Kline wrote:
 On Mon, Jan 26, 2009 at 09:16:23AM +0100, Polytropon wrote:
  On Mon, 26 Jan 2009 00:06:18 -0800, Gary Kline kl...@thought.org wrote:
 Thanks, Gents,
   
 But according to one smallish pdf file that I send to a web based
 tool, it was not a real pdf.  Or, more accurately, it (the pdf to 
 speech program) couldn't decode it.
  
  This is a typical problem with poorly engineered PDFs where the
  author puts in the text as images (you'll see this stupidity across
  the Web, too).
 
 
   So what kind of moron is going to photograph pages --or maybe just
   get-screenshot-of-this-page and upload it?

It happens quite frequently nowadays. Those PDFs are usually scanned,
and the scanner software (usually on Windows) assembles all screenshots
into a PDF of images. That's what you find on the Net.

This is not such a bad idea, esp. when it comes to technical textbooks,
which usually contain a lot of diagrams, formulae, tables etc...; since
an OCR software that would be able to reverse all this into LaTeX and
EPS figures has yet to be programmed (that's a difficult task).

   Or a Real question:
   I read an online pdf of The Art of War from the 1880's [?], and
   it was in an old-English or olden-Deutsch type font.  In PDF.  i
   have other p.d. texts in pdf and am wondering in there is some
   sort of scanner than can take a book-length script and create a
   pdf file.  Anybody know?  

It all depends how the PDF is created. Some PDFs encode the fonts
in a special section, and then use text (sometimes compressed
or encrypted), which refers to those fonts. In such a case, you
could extract the pure text from the PDF.

Other PDFs simply encode the book as a set of bitmaps (see above);
and then your only chance is to find an OCR software that would not
only be able to recognize the characters in the bitmaps, but also
to cope with those Fraktur- or other exotic fonts. Some OCR programs
are interactive and trainable, so that you can say: this is an 'S',
and that is a 'T'..., but AFAIK, there's no free and open source
OCR program with this capability (yet).

  A good tool to check if the PDF file can be (audibly) read is the
  use of the tool pdftotext from the port xpdf.
  
  % pdftotext bla.pdf  less bla.txt
  
  Then, even the FF speech plugin should work correctly - as long as
  the PDF file contains decodable text. If it's just a bunch of images,
  well, what are we expecting, hm? FF-speech: You see a pretty image of
  some text... :-)
 
   Yeah, that's about right!  I got a bunch of ^L bytes and nothing
   else.  Now I'm looking at the file with od -c and, yup, it's and
   image. The parts inbetween pages are in ASCII.  Do you know what
   MediaBox is?

So it's a set of images. There's not much you could do about it.

Oh, you can still try to extract the images from the PDF by using the
program 'pdfimages' (part of the graphics/xpdf port); and look at them
individually with an image processor (Gimp etc...). Then run an OCR
program on those images. Try graphics/gocr for example. But it would
still be tedious, to say the least.

   At least the web article was not an image!  Google had it both in
   PDF and HTML.
 
   gary

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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


OT: .ape extension

2009-01-26 Thread Wojciech Puchar
is it any decruncher for unix for this format (it's compressed audio CD, 
from size i think it's kind of lossless compression)

___
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: can i split a pdf file?

2009-01-26 Thread Gary Kline
On Mon, Jan 26, 2009 at 01:36:48PM -0800, Charlie Kester wrote:
 On Mon 26 Jan 2009 at 00:16:23 PST Polytropon wrote:
 On Mon, 26 Jan 2009 00:06:18 -0800, Gary Kline kl...@thought.org wrote:
 Thanks, Gents,
 
 But according to one smallish pdf file that I send to a web based
 tool, it was not a real pdf.  Or, more accurately, it (the pdf to 
 speech program) couldn't decode it.
 
 This is a typical problem with poorly engineered PDFs where the
 author puts in the text as images (you'll see this stupidity across
 the Web, too).
 
 In most cases where I've seen this, it's because they had scanned an
 actual printed document.  Many old, out-of-print books are being made
 newly available this way, so I'm not inclined to complain.
 
 Unfortunately, OCR software still isn't reliable enough (or, if
 reliable, cheap enough) to convert these scanned images to actual text.


You're probably right about the cost/performance idea.  Still,
before I get back to the Last few pages of my thesis, maybe I'll
try feeding parts of my most vanilla image-PDF file to an
opensource OCR program.  I'm pretty sure there are a couple in
ports.  IIRC, though, the images have to be jpegs of tiffs or the
like.  If anybody knows, please give me a shout out!

gary

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

___
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: OT: .ape extension

2009-01-26 Thread David Kelly
On Mon, Jan 26, 2009 at 11:39:19PM +0100, Wojciech Puchar wrote:
 is it any decruncher for unix for this format (it's compressed audio
 CD, from size i think it's kind of lossless compression)

What does file(1) think it is?

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.
___
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: OT: .ape extension

2009-01-26 Thread Wojciech Puchar



On Mon, 26 Jan 2009, David Kelly wrote:


On Mon, Jan 26, 2009 at 11:39:19PM +0100, Wojciech Puchar wrote:

is it any decruncher for unix for this format (it's compressed audio
CD, from size i think it's kind of lossless compression)


What does file(1) think it is?


don't think anything, says data


___
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: OT: .ape extension

2009-01-26 Thread David Kelly
On Mon, Jan 26, 2009 at 11:52:48PM +0100, Wojciech Puchar wrote:
 
 
 On Mon, 26 Jan 2009, David Kelly wrote:
 
 On Mon, Jan 26, 2009 at 11:39:19PM +0100, Wojciech Puchar wrote:
 is it any decruncher for unix for this format (it's compressed audio
 CD, from size i think it's kind of lossless compression)
 
 What does file(1) think it is?
 
 don't think anything, says data

Monkey's Audio: http://www.monkeysaudio.com/

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.
___
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: OT: .ape extension

2009-01-26 Thread Mel
On Monday 26 January 2009 13:39:19 Wojciech Puchar wrote:
 is it any decruncher for unix for this format (it's compressed audio CD,
 from size i think it's kind of lossless compression)

# cd /usr/ports/audio
# grep -l APE */pkg-descr
gnormalize/pkg-descr
optimfrog/pkg-descr
p5-Audio-Musepack/pkg-descr
py-apetag/pkg-descr
py-musepack/pkg-descr
py-mutagen/pkg-descr
py-tagpy/pkg-descr
soundconverter/pkg-descr


-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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


danging dbufs in ZFS v6 , FreeBSD 7.1

2009-01-26 Thread Bryant Eadon

A problem I'm hoping you can solve !

Running on a 64bit platform with 5, 500GB HDDs in a basic raidz configuration 
classically named 'tank', I began copying a file.  During the copy, I lost a 
disk.  Since these are all hot swappable SATA drives, I pulled the one I 
*thought* had died and swapped in a good drive, which powered up and I attempted 
a 'replace'.  The copy was still proceeding... (you see where this is going...)


This wasn't the broken drive I pulled, which I quickly found after the replace 
attempt !  In an effort to put the good drive back into the array, I reconnected 
and rebooted the machine citing possible 'drive disappearance' problems with the 
stunt I just pulled.


Nothing doing.  The kernel hung at :

panic :  dangling dbufs.
dn = 0xff000a49f338
dbuf = 0xff000a4a01e0 

Leading me to believe the array is dead. :-/

I am happy to lose the data that was copied at the time of failure if it's 
possible to recover the rest of the array.


I suppose that the rest of the data remains intact.   Is there a way to rid 
myself of the dangling buffers to get back to a usable state ? (some dd magic ?)


Could I recover by using a newer version of ZFS for FreeBSD ? (v13 instead of v 
v6)

Quickly it moved from :
NAMESTATE READ WRITE CKSUM
tankDEGRADED 0 0 0
  raidz1DEGRADED 0 0 0
da0 ONLINE   0 0 0
da1 UNAVAIL  0   887 0  cannot open
da2 ONLINE   0 0 0
ad5 ONLINE   0 0 0
ad6 ONLINE   0 0 0

to :

NAMESTATE READ WRITE CKSUM
tankUNAVAIL  0 0 0  insufficient replicas
  raidz1UNAVAIL  0 0 0  insufficient replicas
da0 UNAVAIL  0 0 0  cannot open
da1 UNAVAIL  0 0 0  cannot open
da2 ONLINE   0 0 0
ad5 ONLINE   0 0 0
ad6 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


Re: printf and utf-8

2009-01-26 Thread Svein Halvor Halvorsen

Chuck Swiger wrote:

On Jan 26, 2009, at 1:58 PM, Svein Halvor Halvorsen wrote:
As far as I can see, printf is not calculating strings lengths 
correctly when using utf-8 encoding. Either that, or I'm using byte 
count, and can't find the character count :-/


printf(1) explicitly states that it works with ASCII and ANSI 
X3.159-1989 (``ANSI C89'') character escapes, and it also notes:


 Multibyte characters are not recognized in format strings (this is 
only a

 problem if `%' can appear inside a multibyte character).

Some platforms have a printf_l(3) which is locale/xlocale-aware, but 
there doesn't seem to be a corresponding CLI utility which understands 
Unicode/UTF8/widechars.


Thanks for your explanation.

Do you have a suggestion to solve the following problem without using 
printf(1):


I have a text file that I want to print in a box on a terminal from a 
shell script. Now I've padded the lines with spaces to a certain length 
using printf %-70s and appended the box drawing character. Is there 
another simple way that will work with utf-8?



sv.
___
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: printf and utf-8

2009-01-26 Thread Chuck Swiger

On Jan 26, 2009, at 3:05 PM, Svein Halvor Halvorsen wrote:
Do you have a suggestion to solve the following problem without  
using printf(1):


I have a text file that I want to print in a box on a terminal  
from a shell script. Now I've padded the lines with spaces to a  
certain length using printf %-70s and appended the box drawing  
character. Is there another simple way that will work with utf-8?


My first thought was about dialog(1), but I'm not sure whether that  
deals with UTF8 any better...?


--
-Chuck

___
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: OT: .ape extension

2009-01-26 Thread Manolis Kiagias
Mel wrote:
 On Monday 26 January 2009 13:39:19 Wojciech Puchar wrote:
   
 is it any decruncher for unix for this format (it's compressed audio CD,
 from size i think it's kind of lossless compression)
 

 # cd /usr/ports/audio
 # grep -l APE */pkg-descr
 gnormalize/pkg-descr
 optimfrog/pkg-descr
 p5-Audio-Musepack/pkg-descr
 py-apetag/pkg-descr
 py-musepack/pkg-descr
 py-mutagen/pkg-descr
 py-tagpy/pkg-descr
 soundconverter/pkg-descr


   
And audio/aqualung as well.

___
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: printf and utf-8

2009-01-26 Thread Svein Halvor Halvorsen

Chuck Swiger wrote:

On Jan 26, 2009, at 3:05 PM, Svein Halvor Halvorsen wrote:
Do you have a suggestion to solve the following problem without using 
printf(1):


I have a text file that I want to print in a box on a terminal from 
a shell script. Now I've padded the lines with spaces to a certain 
length using printf %-70s and appended the box drawing character. Is 
there another simple way that will work with utf-8?


My first thought was about dialog(1), but I'm not sure whether that 
deals with UTF8 any better...?


No, it doesn't seem to. Also it clears the entire screen to draw the 
box. I only want a small box, and not clear the screen, and I don't want 
a OK-button or any other user interaction. Just print the simple box, 
then whatever follows from the script should print after it.


Nevertheless, thanks for your help and your time!


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


which video card for dual monitor portrait?

2009-01-26 Thread Sean Jensen-grey


I like to use dual monitors in portrait mode.  I am running Freebsd  
7.1 STABLE which uses release 7.3 of Xorg afaik.


What video card runs

 * Multimonitor
 * Rotated

using the built-in xorg bundled with Freebsd 7.1?

I attempted to use an ATI X1650 PRO which has an RV535 core, 
http://en.wikipedia.org/wiki/Radeon_R520#X1650_series

xrandr -o left

resulted in screen0 being rotated 90 degrees to the left but ending up  
on screen1 and very slow.  I assume that the good stuff in xorg for  
these cards is in 7.4 and 7.5 releases.


What cards allow one to run dual monitor (single card dual dvi) in  
portrait mode? I am interested in setups that are currently running.   
Exact make and model of your card along with an xorg.conf would be  
awesome.


Sean




___
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: OT: .ape extension

2009-01-26 Thread Wojciech Puchar

from size i think it's kind of lossless compression)



# cd /usr/ports/audio
# grep -l APE */pkg-descr
gnormalize/pkg-descr
optimfrog/pkg-descr
p5-Audio-Musepack/pkg-descr
py-apetag/pkg-descr
py-musepack/pkg-descr
py-mutagen/pkg-descr
py-tagpy/pkg-descr
soundconverter/pkg-descr



THANKS





And audio/aqualung as well.



___
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 7.1 SMP on IBM x330 Dual Processor server

2009-01-26 Thread Tom Everett
I'm running the stock FreeBSD 7.1 kernel on an IBM x330 machine.  The 
machine has two physical processors but it seems that FreeBSD 7.1 on 
sees one.  I downloaded the kernel source and it seems that the GENERIC 
kernel has SMP installed.  Is there something else I can try?  Thanks in 
advance for your wisdom.


$ sysctl -a | grep cpu
kern.threads.virtual_cpu: 1
kern.ccpu: 0
kern.smp.cpus: 1
kern.smp.maxcpus: 16
debug.cpufreq.verbose: 0
debug.cpufreq.lowest: 0
debug.kdb.stop_cpus: 1
debug.stop_cpus_with_nmi: 1
debug.PMAP1changedcpu: 0
hw.ncpu: 1
hw.acpi.cpu.cx_lowest: C1
machdep.cpu_idle_hlt: 1
machdep.hlt_cpus: 0
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU1
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00%



Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009
   r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) III CPU family  1133MHz (1128.54-MHz 
686-class CPU)

 Origin = GenuineIntel  Id = 0x6b1  Stepping = 1
 
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE

real memory  = 1073659904 (1023 MB)
avail memory = 1036943360 (988 MB)
ACPI APIC Table: IBMSEREMRLD
ioapic1 Version 1.1 irqs 16-31 on motherboard
ioapic0 Version 1.1 irqs 0-15 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: IBM SEREMRLD on motherboard
acpi0: Overriding SCI Interrupt from IRQ 3 to IRQ 30
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x4e8-0x4eb on acpi0
pcib0: ACPI Host-PCI bridge on acpi0
pci0: ACPI PCI bus on pcib0
vgapci0: VGA-compatible display mem 
0xfeb8-0xfebf,0xf000-0xf7ff at device 1.0 on pci0
fxp0: Intel 82559 Pro/100 Ethernet port 0x2200-0x223f mem 
0xfeb7f000-0xfeb7,0xfea0-0xfeaf irq 27 at device 2.0 on pci0

fxp0: Disabling dynamic standby mode in EEPROM
fxp0: New EEPROM ID: 0x48a0
fxp0: EEPROM checksum @ 0x3f: 0xbe76 - 0xbe76
miibus0: MII bus on fxp0
inphy0: i82555 10/100 media interface PHY 1 on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:02:55:c6:69:58
fxp0: [ITHREAD]
fxp1: Intel 82559 Pro/100 Ethernet port 0x2240-0x227f mem 
0xfeb7e000-0xfeb7efff,0xfe90-0xfe9f irq 25 at device 10.0 on pci0

fxp1: Disabling dynamic standby mode in EEPROM
fxp1: New EEPROM ID: 0x48a0
fxp1: EEPROM checksum @ 0x3f: 0x2d79 - 0x2d79
miibus1: MII bus on fxp1
inphy1: i82555 10/100 media interface PHY 1 on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:02:55:c6:69:59
fxp1: [ITHREAD]
isab0: PCI-ISA bridge port 0x440-0x44f at device 15.0 on pci0
isa0: ISA bus on isab0
atapci0: ServerWorks ROSB4 UDMA33 controller port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x700-0x70f at device 15.1 on pci0

ata0: ATA channel 0 on atapci0
ata0: [ITHREAD]
ata1: ATA channel 1 on atapci0
ata1: [ITHREAD]
ohci0: OHCI (generic) USB controller mem 0xfeb7d000-0xfeb7dfff irq 7 
at device 15.2 on pci0

ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: OHCI (generic) USB controller on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 2 ports with 2 removable, self powered
pcib1: ACPI Host-PCI bridge on acpi0
pci1: ACPI PCI bus on pcib1
ahc0: Adaptec aic7892 Ultra160 SCSI adapter port 0x2300-0x23ff mem 
0xe000-0xefff irq 28 at device 3.0 on pci1

ahc0: [ITHREAD]
aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
atapci1: Promise PDC40779 SATA300 controller port 
0x2280-0x22ff,0x2400-0x24ff mem 
0xefffe000-0xefffefff,0xeffc-0xeffd irq 20 at device 5.0 on pci1

atapci1: [ITHREAD]
atapci1: [ITHREAD]
ata2: ATA channel 0 on atapci1
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci1
ata3: [ITHREAD]
ata4: ATA channel 2 on atapci1
ata4: [ITHREAD]
ata5: ATA channel 3 on atapci1
ata5: [ITHREAD]
atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
fdc0: floppy drive controller port 0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: 1440-KB 3.5 drive on fdc0 drive 0
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on 
acpi0

sio0: type 16550A
sio0: [FILTER]
cpu0: ACPI CPU on acpi0
pmtimer0 on isa0
orm0: ISA Option ROMs at iomem 
0xc-0xcafff,0xcb000-0xcc7ff,0xcc800-0xd4fff pnpid ORM on isa0

ppc0: parallel port not found.

Can not set up two ADSL link to provider

2009-01-26 Thread KES
Здравствуйте, Freebsd-questions.

I can not setup two ADSL PPPoE Links to same provider.
Because of imposibility to setup route for second connection
First connection gets:
ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0 mtu 
1492
inet 92.113.94.215 -- 195.5.5.203 netmask 0x

Second can not be established because of:
Jan 27 01:27:55 kes mpd: [UKR_B4] IFACE: Add address 
92.113.94.249/32-195.5.5.203 to ng1
Jan 27 01:27:55 kes mpd: [UKR_B4] IFACE: Adding IPv4 address to ng1 failed: 
File exists

My suggestion is that that FreeBSD can not establish two ptp links
with same gateway, cat it?


please help to resolve problem


-- 
С уважением,
 KES  mailto:kes-...@yandex.ru

___
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: can i split a pdf file?

2009-01-26 Thread Polytropon
On Mon, 26 Jan 2009 14:06:23 -0800, Gary Kline kl...@thought.org wrote:
   So what kind of moron is going to photograph pages --or maybe just
   get-screenshot-of-this-page and upload it? 

The PDF serves as a container for pictural images in this context.
Another idea would be to have separate image files, one file per
page, that you could view at with your favourite image viewer.

The advantage of the PDF container is that you can easily print
a bunch of pages (or, a book).



  Or a Real question:
   I read an online pdf of The Art of War from the 1880's [?], and
   it was in an old-English or olden-Deutsch type font.  In PDF.  i
   have other p.d. texts in pdf and am wondering in there is some
   sort of scanner than can take a book-length script and create a
   pdf file.  Anybody know?  

It's very complicated to handle old fonts using OCR techniques.
It's even quite complicated with today's standard fonts. Allthough
there are (usually expensive) OCR programs with good algorithms,
most documents need some work afterwards. It's not only about
correcting mis-recognized characters, you have to handle hyphenation
and paragraph typesetting as well.

I know that there are scanners that can process a bunch op paper
(sheets of paper) through an automatic feeder, then scan them and
finally have a PDF file ready for FTP download. But there's no
OCR involved, of course.


 I got a bunch of ^L bytes and nothing
   else. 

The Ctrl-L (^L) is the page break character (FF = form feed). The
rest of the file then contains images that are not transformable
into characters.



 Now I'm looking at the file with od -c and, yup, it's and
   image. The parts inbetween pages are in ASCII.  Do you know what
   MediaBox is?

An image container maybe? So every page contains of a MediaBox
container holding one image.



   At least the web article was not an image! 

Don't mind, I know important web pages where the text content 
actually IS an image, and of course theres no alt= or longdesc=
parameter because they're for weenies. :-)





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


Re: OT: .ape extension

2009-01-26 Thread Wojciech Puchar

ports/audio/mac works, thanks

On Mon, 26 Jan 2009, David Kelly wrote:


On Mon, Jan 26, 2009 at 11:52:48PM +0100, Wojciech Puchar wrote:



On Mon, 26 Jan 2009, David Kelly wrote:


On Mon, Jan 26, 2009 at 11:39:19PM +0100, Wojciech Puchar wrote:

is it any decruncher for unix for this format (it's compressed audio
CD, from size i think it's kind of lossless compression)


What does file(1) think it is?


don't think anything, says data


Monkey's Audio: http://www.monkeysaudio.com/

--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.



___
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: can i split a pdf file?

2009-01-26 Thread Polytropon
On Mon, 26 Jan 2009 14:51:14 -0800, Gary Kline kl...@thought.org wrote:
 Still,
   before I get back to the Last few pages of my thesis, maybe I'll
   try feeding parts of my most vanilla image-PDF file to an
   opensource OCR program.  I'm pretty sure there are a couple in
   ports.  IIRC, though, the images have to be jpegs of tiffs or the
   like.  If anybody knows, please give me a shout out!

The best idea is to use a format that does not have artifacts
due to image compression through DCT or similar algorithms,
read: real black-white pictures (1 bit color). JPEG is not
such a format, you can see this by magnifying the surrounding
of text: it is gray and looks dusty.

TIFF, GIF and PNG surely are better formats for feeding images
into an OCR processor.

(Background: Long time ago, I knew a man who did electronics
and printed circuit boards. In order to save hard disk space,
he converted his 1-bit BMP images of the schematics and the
PCB layout to JPEG format - instead of just zipping, raring
or arjing them. He was very unhappy to see them coming out
of the printer so dirty, partially unreadable then allthough
it was a high quality office class laser printer. And when
he took the PCBs out of the acid bath, their previously
photochemical treated surface looked strange, had holes in
the copper, ready to be thrown away. This man was very upset
when he was told about DCT and artifacts. Later on, he used
GIF images and turned happy again.)




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


Re: make -jN build with portmaster

2009-01-26 Thread Eitan Adler
snip
 That would be absolutely perfect!
 
+1
snip
 Memory may fail me, but wasn't there a GSoC project to parallelize
 the ports infrastructure? Or was that about building many different
 ports simultaneously instead of one port on multiple cores?
 
 -cpghost.
 

http://wiki.freebsd.org/SummerOfCode2008#head-1abba39cb7f9d11ebef625f2287dbaebe6daf000
Ready to enter CVS: Probably not.
-- 
Eitan Adler
Security is increased by designing for the way humans actually behave.
-Jakob Nielsen
___
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: Can not set up two ADSL link to provider

2009-01-26 Thread Chuck Swiger

On Jan 26, 2009, at 3:34 PM, KES wrote:

I can not setup two ADSL PPPoE Links to same provider.
Because of imposibility to setup route for second connection
First connection gets:
ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST  
metric 0 mtu 1492

   inet 92.113.94.215 -- 195.5.5.203 netmask 0x

Second can not be established because of:
Jan 27 01:27:55 kes mpd: [UKR_B4] IFACE: Add address  
92.113.94.249/32-195.5.5.203 to ng1
Jan 27 01:27:55 kes mpd: [UKR_B4] IFACE: Adding IPv4 address to ng1  
failed: File exists


You should talk to your network provider and ask them whether they  
want you to do multilink PPP or IEEE 802.3ad link aggregation.  Either  
way, the bonding of the two connections should give you a single  
virtual network interface (tunX for the first, probably, and laggX in  
the second case) which has only a single route.


For example: 
http://www.juniper.net/techpubs/software/erx/junose80/swconfig-physical/html/ethernet-config14.html

...talks about After you configure the LAG bundle, you can route IP  
traffic over it, create a VLAN over it, or route PPPoE traffic over it.


Regards,
--
-Chuck

___
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: can i split a pdf file?

2009-01-26 Thread Polytropon
On Mon, 26 Jan 2009 23:39:06 +0100, cpghost cpgh...@cordula.ws wrote:
 Those PDFs are usually scanned,
 and the scanner software (usually on Windows) assembles all screenshots
 into a PDF of images.

Handy for printing, but not for OCR postprocessing.



 That's what you find on the Net.

On the Web. :-)



 This is not such a bad idea, esp. when it comes to technical textbooks,
 which usually contain a lot of diagrams, formulae, tables etc...; since
 an OCR software that would be able to reverse all this into LaTeX and
 EPS figures has yet to be programmed (that's a difficult task).

As I've already mentioned, scanning the characters is only one part.
Your example of diagrams and formulas is good to illustrate this.
And because LaTeX is the only professional typesetting system
(and no, Word isn't such a tool), it would be really great to
have a tool pdf2tex which would get the characters of the text,
typeset them as in the original (paragraphing, hyphenation etc.),
input embedded pictures as pictures (of course), re-create
formulas so the result would run through pdf-LaTeX and
produce an improved version of the source PDF file.

But that's a task for the next generation of mankind. :-)


 Some PDFs encode the fonts
 in a special section, and then use text (sometimes compressed
 or encrypted), which refers to those fonts. In such a case, you
 could extract the pure text from the PDF.

It's worth mentioning that if the original text has characters
(represented in the additionally stored fonts) that have special
accents or orientations (non-english languages usually), the
target system needs to support them, which it usually does through
the means of UTF-8.



 Other PDFs simply encode the book as a set of bitmaps (see above);
 and then your only chance is to find an OCR software that would not
 only be able to recognize the characters in the bitmaps, but also
 to cope with those Fraktur- or other exotic fonts.

Yes, das Doytsh Uberfrucktoor makes everything unreadable. :-)

It gets even more complicated with hand-written books...



 Some OCR programs
 are interactive and trainable, so that you can say: this is an 'S',
 and that is a 'T'..., but AFAIK, there's no free and open source
 OCR program with this capability (yet).

Wow, never heared of this concept, but really intelligent solution.
If this really works, it still has the disadvantage of needing
much time for training the program, and postprocessing.

It's easier to \usepackage[german]{uberfraktur} to make the text
unreadable again. :-)




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


Re: make -jN build with portmaster

2009-01-26 Thread Mel
On Monday 26 January 2009 14:56:10 Eitan Adler wrote:
 snip

  That would be absolutely perfect!

 +1
 snip

  Memory may fail me, but wasn't there a GSoC project to parallelize
  the ports infrastructure? Or was that about building many different
  ports simultaneously instead of one port on multiple cores?
 
  -cpghost.

 http://wiki.freebsd.org/SummerOfCode2008#head-1abba39cb7f9d11ebef625f2287db
aebe6daf000 Ready to enter CVS: Probably not.

This is different: it allows multiple ports to be built at the same time, not 
1 port with multiple make processes.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: X11 forwarding through SSH: Can't open display

2009-01-26 Thread sk89q
On Mon, Jan 26, 2009 at 9:21 AM, Chuck Robey chu...@telenix.org wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 sk89q wrote:
 On Mon, Jan 26, 2009 at 6:32 AM, Bill Moran wmo...@potentialtech.com wrote:
 In response to sk89q the.sk...@gmail.com:

 I meant sshd_config.
 Do you have the xauth package installed on the remote server?  You don't
 need a full X install, but X11 forwarding won't work without xauth
 installed.

 Yes, I do (at least to my knowledge), but xauth is located at
 /usr/local/bin/xauth. sshd wasn't able to find xauth, so I made a
 hard link at /usr/X11/bin/xauth to /usr/local/bin/xauth. That
 fixed a can't-find-xauth error, and that's where I am now.

 I think a far more likely thing might be being missed here.  Usually when I'm
 surprised when a new system refuses to allow me to remotely open X apps, it's
 not the problem of ssh, it's because X11, by default, doesn't open up the port
 6000 IP socket to allow remotes to work.  You can easily use netstat, to look
 for open sockets 6xxx range, opened by your X server.  If you can't find it,
 then some part of your X installation is likely giving the -nolisten tcp
 commands when starting up the X server.  I don't know how you open your X, so 
 I
 couldn't directly tell you how to fix this.

 Being a bit more honest, the X server itself doesn't block the remote ports.
 It's all of the startup tools (like startx) which stick in the anti-remote
 prejudice.  Giving the fact that it IS a security risk, I guess they're right,
 it just means that if you want remote operation, you need to tell X (via
 whatever startup method you use) to stop blocking the opening of that port 
 6000.

Well, the good news is that it works now. The bad news is that I don't
know why. I haven't made a change to anything (except change /etc/motd
and restart sshd, which I had already previously done numerous times).
Nothing else has been restarted. However, I can say that it was most
likely an issue on the server, because now it works with PuTTY, ssh -X
on Windows, and ssh -X on Ubuntu.

Nevertheless, performance (over the Internet) is pretty bad... so I'll
probably have to look into NX (even though the version of FreeNX in
the ports system presently doesn't support amd64...).

Thanks for everyone's help,
sk89q
___
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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-26 Thread Doug Poland
On Mon, Jan 26, 2009 at 09:21:55AM -0900, Mel wrote:
 On Monday 26 January 2009 08:23:13 Doug Poland wrote:
  On Mon, Jan 26, 2009 at 08:25:37AM -0600, Doug Poland wrote:
   per...@pluto.rain.com wrote:
   I've got a network running different versions of FreeBSD (6.3,
   7.0) on different architectures (i386, SPARC64).
  
   What I'd like to do is export the ports hierarchy to all
   machines, but preserving ports/packages for each
   version/architecture.  I also want to make rebuilding indexes
   run as fast as possible.
  
   Right now, I simply exports(5) /usr/ports via NFSv3 ...
  
   ...
  
   The following 2 lines on each machine in /etc/make.conf should
   fix those problems:
   PACKAGES=${PORTSDIR}/packages/${ARCH}
   INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}
 
  It would seem the package building tools (make package, portinstall
  -p) do not honor the PACKAGES setting in /etc/make.conf.  The
  package is simply deposited in /usr/ports/{category}/{pkgname}.  Is
  there a way to force the package builder to use this knob?
 
 make package respects it.
 
Curious... I tested it on two different machines, and make package did
not put the package in the expected location.  Perhaps I'm missing
something?

 portinstall -p might override it itself in /usr/local/etc/pkgtools.conf.
 Hurray for sane defaults.

I will check that out, thanks.

-- 
Regards,
Doug

___
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: Sharing ports hierarchy via NFS to different arch/versions.

2009-01-26 Thread Mel
On Monday 26 January 2009 16:39:35 Doug Poland wrote:
 On Mon, Jan 26, 2009 at 09:21:55AM -0900, Mel wrote:
  On Monday 26 January 2009 08:23:13 Doug Poland wrote:
   On Mon, Jan 26, 2009 at 08:25:37AM -0600, Doug Poland wrote:
per...@pluto.rain.com wrote:
I've got a network running different versions of FreeBSD (6.3,
7.0) on different architectures (i386, SPARC64).
   
What I'd like to do is export the ports hierarchy to all
machines, but preserving ports/packages for each
version/architecture.  I also want to make rebuilding indexes
run as fast as possible.
   
Right now, I simply exports(5) /usr/ports via NFSv3 ...
   
...
   
The following 2 lines on each machine in /etc/make.conf should
fix those problems:
PACKAGES=${PORTSDIR}/packages/${ARCH}
INDEXFILE=INDEX-${ARCH}-${OSVERSION:C/([0-9]).*/\1/}
  
   It would seem the package building tools (make package, portinstall
   -p) do not honor the PACKAGES setting in /etc/make.conf.  The
   package is simply deposited in /usr/ports/{category}/{pkgname}.  Is
   there a way to force the package builder to use this knob?
 
  make package respects it.

 Curious... I tested it on two different machines, and make package did
 not put the package in the expected location.  Perhaps I'm missing
 something?

Ah, my bad:
Mk/bsd.port.mk:
do-package: ${TMPPLIST}
@if [ -d ${PACKAGES} ]; then \

$PACKAGES has to be created before it respected.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: x11/libXrandr, x11-toolkits/libXmu, graphics/jasper fails to build

2009-01-26 Thread Da Rock
On Mon, 2009-01-26 at 22:04 -0500, Robert Noland wrote:
 On Tue, 2009-01-27 at 11:22 +1000, Da Rock wrote:
  Here's another one:
  
  /bin/sh ../libtool --tag=CC--mode=link cc -D_THREAD_SAFE
  -I/usr/local/include   -D_THREAD_SAFE -I/usr/local/include
  -DMALLOC_0_RETURNS_NULL -O2 -fno-strict-aliasing -pipe  -version-number
  2:1:0 -no-undefined  -o libXrandr.la -rpath /usr/local/lib Xrandr.lo
  XrrConfig.lo XrrCrtc.lo XrrMode.lo  XrrOutput.lo XrrProperty.lo
  XrrScreen.lo -L/usr/local/lib -lX11   -L/usr/local/lib -lXext -lXrender
  -lX11 
  grep: /usr/local/lib/libxcb-xlib.la: No such file or directory
  sed: /usr/local/lib/libxcb-xlib.la: No such file or directory
  libtool: link: `/usr/local/lib/libxcb-xlib.la' is not a valid libtool
  archive
  *** Error code 1
  
  I tried a search myself: ng.
  I tried to find a config switch for libxcb: ng.
  
  Let me know what else you need or what I can do to help here. Obviously
  other ports are dependent on these and are therefore failing as well.
  FWIW this is an upgrade using portupgrade.
 
 This is fallout from the libxcb update.  xcb-xlib no longer exists, you
 need to update everything that depends on libxcb using your preferred
 method.

I'm now aware of that, but I'm trying to do the updates and nothing is
working because they're all still asking for that package. I have to
admit I'm not 100% proficient with updating to handle curl balls like
this; can you supply some pointers as to how to get around this?

Thanks

___
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: x11/libXrandr, x11-toolkits/libXmu, graphics/jasper fails to build

2009-01-26 Thread Da Rock
On Mon, 2009-01-26 at 22:04 -0500, Robert Noland wrote:
 On Tue, 2009-01-27 at 11:22 +1000, Da Rock wrote:
  Here's another one:
  
  /bin/sh ../libtool --tag=CC--mode=link cc -D_THREAD_SAFE
  -I/usr/local/include   -D_THREAD_SAFE -I/usr/local/include
  -DMALLOC_0_RETURNS_NULL -O2 -fno-strict-aliasing -pipe  -version-number
  2:1:0 -no-undefined  -o libXrandr.la -rpath /usr/local/lib Xrandr.lo
  XrrConfig.lo XrrCrtc.lo XrrMode.lo  XrrOutput.lo XrrProperty.lo
  XrrScreen.lo -L/usr/local/lib -lX11   -L/usr/local/lib -lXext -lXrender
  -lX11 
  grep: /usr/local/lib/libxcb-xlib.la: No such file or directory
  sed: /usr/local/lib/libxcb-xlib.la: No such file or directory
  libtool: link: `/usr/local/lib/libxcb-xlib.la' is not a valid libtool
  archive
  *** Error code 1
  
  I tried a search myself: ng.
  I tried to find a config switch for libxcb: ng.
  
  Let me know what else you need or what I can do to help here. Obviously
  other ports are dependent on these and are therefore failing as well.
  FWIW this is an upgrade using portupgrade.
 
 This is fallout from the libxcb update.  xcb-xlib no longer exists, you
 need to update everything that depends on libxcb using your preferred
 method.

I'd also like to point out that I just rebooted and X died in the
hole... :) Missing rgb files and what not

___
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


Adding partitions to gmirror device

2009-01-26 Thread Vladislav Sekulic

Hi!

I'm running FreeBSD 7.1-RELEASE on a couple of Sun X2100 servers, each  
with 2X 250GB SATA drives that I've established a gmirror(8) over,  
following the instructions in section 19.4 of the Handbook.


Now, one of the machines, being transformed into a webserver, needs a  
separate, newly created /var/www partition (its current partitions  
only take up 27G of the total ~238G available).


My dilemma is -- how do I add another partition without hosing the  
system?  It seems to me that there is no other way than to destroy the  
gmirror, create the new partition, then re-create the gmirror.  The  
issue is how to proceed in a safe manner, without destroying any data  
or causing undue hassle (time is of the essence, as always).


My draft plan is as follows, with ad4 and ad6 being the component drives:

  $ sudo gmirror deactivate gm0 /dev/ad6
  $ sudo gmirror deactivate gm0 /dev/ad4
  $ sudo gmirror remove gm0 /dev/ad6
  $ sudo gmirror remove gm0 /dev/ad4

I believe this would result in all metadata associated with the  
gmirror to be wiped, and hence the gmirror to be destroyed, based on  
my potentially faulty reading of the manpage.


Then edit fstab to restore the ``/dev/mirror/gm0s1?'' entries to their  
corresponding ``/dev/ad4s1?'' entries  reboot.


Afterwards, would run ``bsdlabel -e ad4'', then newfs, and finally,  
redo the gmirror sequence (following the steps in section 19.4 of the  
handbook, as before).


Am I missing any critical steps here, or have any redundant steps?  Or  
just not getting it?


Thank you for any pointers!

Vlad

P.S.  Is it possible to operate directly on the gm0 device, i.e., to  
create a partition using it rather than destroying the entire gmirror?


--
Vladislav Sekulic
Research Computing System Administrator
Systems and Networks Research Group
Dept. of Computer Science, University of Toronto
http://www.cs.toronto.edu/~pocsys

___
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: swap_pager complaints but not using swap

2009-01-26 Thread Dieter
In message 200901252247.29775.fbsd.questi...@rachie.is-a-geek.net, Mel writes:
 On Sunday 25 January 2009 04:28:47 Dieter wrote:
   AMD64  FreeBSD 7.0  2 GiB main memory
  
 
  So the machine doesn't normally use swap much at all, but messing with
  the large ISO apparently kicked something out of memory, and the disk
  with the swap partition was already busy writing at the other end of
  the disk.
 
  Do you consider writing a large file to disk a truly unspeakable load?
 
 Just curious, since you're running 7.0: SCHED_4BSD or SCHED_ULE? And if you 
 have a chance to change it, does the scenario persist?

kern.sched.name: 4BSD

Right now I'm trying to collect enough info to fix the Seagate 2700.11
firmware fubar.  Once that is resolved, I plan to update to 7.1.  IIRC
7.1 defaults to ULE.  If not I can try switching.  But my understanding
is that the scheduler pays little if any attention to I/O, a holdover
from the days when CPU was the main thing that needed rationing.  These
days it is just the opposite.  CPUs have gotten much much faster, but
I/O is only slightly faster.
___
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


Nvidia, GDM, Xorg 7.4

2009-01-26 Thread Jeff Molofee
Surprised I don't see more postings, find it hard to believe I'm the 
only one unable to resolve this issue...


Still can't get GDM working (gnome). Machine boots and drops back to 
console. Have tried playing with every setting in xorg.conf I can think 
of, have even tried nuking it completely. System will not boot to GUI. I 
can type startx and X... just fine... screen shows up, everything 
working (mouse/kb, etc). If I do GDM restart/stop, etc... nothing.


I have no idea what the error is in Xorg.0.log that's causing an 
issue... I doesn't seem to me that there is a serious error.


I have tried with x11/nvidia-driver, with driver off nvidia site, with 
nv, and with vesa. I can't get anything to work.


Even more odd, is if I do a X -configure, my xorg.conf file has 32 of 
everything... 32 monitors, 32 drivers, 32 etc... and it will still not boot


FreeBSD 7.1, Xorg 7.4, i386, intel cpu, system running fine before xorg 
7.4, hald running, rc.conf should be fine, nvidia driver was working 
fine with compiz, etc.


Have gone through all the steps in UPDATING, have even tried 
-ignoreABI... nothing working. I should at the very least be able to get 
Vesa or NV to work shouldn't I?


Ports are all up to date with portmanager -u

Have tried reinstall everything to do with xorg, etc (let machine run 
all night rebuilding everything).


As I said before, don't care about 3d right now, would just like to see 
good old gnome once again.


... help :)


Sorry for the log... didn't want to leave anything out in case I'm 
overlooking something.



X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 7.1-STABLE i386 
Current Operating System: FreeBSD nehe 7.1-STABLE FreeBSD 7.1-STABLE #13: Sun 
Jan 25 07:41:34 MST 2009 je...@nehe:/usr/obj/usr/src/sys/NeHe i386
Build Date: 26 January 2009  05:46:26PM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Mon Jan 26 20:24:19 2009
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout X.org Configured
(**) |--Screen Screen0 (0)
(**) |   |--Monitor Monitor0
(**) |   |--Device Card0
(**) |--Input Device Mouse0
(**) |--Input Device Keyboard0
(==) Automatically adding devices
(==) Automatically enabling devices
(==) Including the default font path 
/usr/local/lib/X11/fonts/misc/,/usr/local/lib/X11/fonts/TTF/,/usr/local/lib/X11/fonts/OTF,/usr/local/lib/X11/fonts/Type1/,/usr/local/lib/X11/fonts/100dpi/,/usr/local/lib/X11/fonts/75dpi/.
(**) FontPath set to:
/usr/local/lib/X11/fonts/misc/,
/usr/local/lib/X11/fonts/TTF/,
/usr/local/lib/X11/fonts/OTF,
/usr/local/lib/X11/fonts/Type1/,
/usr/local/lib/X11/fonts/100dpi/,
/usr/local/lib/X11/fonts/75dpi/,
/usr/local/lib/X11/fonts/misc/,
/usr/local/lib/X11/fonts/TTF/,
/usr/local/lib/X11/fonts/OTF,
/usr/local/lib/X11/fonts/Type1/,
/usr/local/lib/X11/fonts/100dpi/,
/usr/local/lib/X11/fonts/75dpi/
(**) ModulePath set to /usr/local/lib/xorg/modules
(WW) AllowEmptyInput is on, devices using drivers 'kbd' or 'mouse' will be 
disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x81b3460
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 4.1
X.Org XInput driver : 2.1
X.Org Server Extension : 1.1
X.Org Font Renderer : 0.6
(II) Loader running on freebsd
(--) Using syscons driver with X support (version 2.0)
(--) using VT number 9

(--) PCI:*(0...@1:0:0) nVidia Corporation G80 [GeForce 8800 GTS] rev 0, Mem @ 
0xcc00/0, 0xb000/0, 0xca00/0, I/O @ 0x9c00/0, BIOS @ 
0x/65536
(II) System resource ranges:
[0] -1  0   0x0010 - 0x3fff (0x3ff0) MX[B]E(B)
[1] -1  0   0x000f - 0x000f (0x1) MX[B]
[2] -1  0   0x000c - 0x000e (0x3) MX[B]
[3] -1  0   0x - 0x0009 (0xa) MX[B]
[4] -1  0   0x - 0x (0x1) IX[B]
[5] -1  0   0x - 0x00ff (0x100) IX[B]
(II) extmod will be loaded. This was enabled by default and also specified in 
the config file.
(II) dbe will be loaded. This was enabled by default and also specified in 
the config file.
(II) glx will be loaded. This was enabled by default and also specified in 
the config file.
(II) freetype will be loaded. This was enabled by default and also specified 
in the config file.
(II) dri will be loaded. This was enabled by default and also specified in 
the config file.
(II) LoadModule: glx

(II) Loading /usr/local/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor=X.Org Foundation

Re: Nvidia, GDM, Xorg 7.4

2009-01-26 Thread Glen Barber
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/131016

-- 
Glen Barber
___
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: KDE: What a monster!

2009-01-26 Thread Jonathan McKeown
On Monday 26 January 2009 17:02:05 n j wrote:
 Linus Torvalds on KDE4...

 [quote]

 A: I used to be a KDE user. I thought KDE 4.0 was such a disaster I
 switched to GNOME. I hate the fact that my right button doesn't do
 what I want it to do. But the whole break everything model is
 painful for users and they can choose to use something else.

 I realise the reason for the 4.0 release, but I think they did it
 badly. They did so many changes it was a half-baked release. It may
 turn out to be the right decision in the end and I will re-try KDE,
 but I suspect I'm not the only person they lost.

I've seen it suggested that KDE4 is faster than KDE3.

I'm running FreeBSD 7.0 - granted, my machine is not brand-new: it's a P4 
1.8GHz with 512MB of RAM and an NVidia GeForce MX4000 (I mention the graphics 
card because the latest NVidia binary driver doesn't support it). KDE3.5 does 
what I want my window manager to do - keeps out of my way and works snappily 
enough that I don't notice it.

I recently installed PCBSD7.02, which uses KDE4.1. It's unusable. For example, 
with only two applications running - the KBreakout game and the Psi 
Jabber/XMPP client - the game was unplayable because each time Psi received 
an incoming chat or event, the game froze for a second or two while KDE 
struggled to open the chat window.

The claim that KDE4 is faster than KDE3 is frankly incredible to me.

Jonathan
___
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: /rescue is huge!!

2009-01-26 Thread Daniel Ajoy

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2004-07/0442.html

This is what's happening to me:

==
In the last episode (Jul 06), Richard Bradley said:
 On Tuesday 06 July 2004 2:36 am, you wrote:
  In the last episode (Jul 06), Richard Bradley said:
   I recently tried to add a user to my FreeBSD box, but was amazed
   to find that the / partition was full! I had a look, and the
   culprit is the /rescue folder, holding 135 statically linked
   binaries of nearly 4Mb each, giving a folder size of 491Mb!
 
  Check the inode number of each file in /rescue (ls -li /rescue).
  You'll notice they're all the same, which means they're all
  hardlinks to the same file. du /rescue should report under 4MB.
 
  Your space is probably being taken up somewhere else.

 That's very strange if true, because since deleting the /rescue
 folder, the used space on / has gone from 550Mb+ to 129Mb. I can't
 check the inodes now, as I have `rm`ed them all!

If at some point you had copied /rescue with cp (instead of a tar pipe
or something else that preserves hardlinks), you would have gotten a
separate file for each link. 

==

my ls looks like this:


ls -li /rescue

total 427594
 26 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 [
 64 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 atacontrol
 65 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 atm
 66 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 atmconfig
 67 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 badsect
 68 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 bsdlabel
 69 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 bunzip2
 70 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 bzcat
 71 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 bzip2
 72 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 camcontrol
 73 -r-xr-xr-x  1 root  wheel  3324376 Jan 12  2007 cat
...


how do I reduce the size of the rescue directory? 

Or, as a last resort, can I safely move it under /usr (which is in a different 
partition)?


Daniel
 
___
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: Nvidia, GDM, Xorg 7.4

2009-01-26 Thread Da Rock
On Tue, 2009-01-27 at 01:23 -0500, Glen Barber wrote:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/131016
 

According to the latest UPDATING (thanks for the reminder Robert) this
shouldn't be a problem anymore. Not that I should talk- my X hasn't
started since I ran portupgrade -a last :D hopefully the portupgrade
-a -rf I'm running currently will have success for me.

Read that and try some of the tips there- in particular have you got any
errors on the RGBPath?

___
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: KDE: What a monster!

2009-01-26 Thread Da Rock
On Tue, 2009-01-27 at 08:31 +0200, Jonathan McKeown wrote:
 On Monday 26 January 2009 17:02:05 n j wrote:
  Linus Torvalds on KDE4...
 
  [quote]
 
  A: I used to be a KDE user. I thought KDE 4.0 was such a disaster I
  switched to GNOME. I hate the fact that my right button doesn't do
  what I want it to do. But the whole break everything model is
  painful for users and they can choose to use something else.
 
  I realise the reason for the 4.0 release, but I think they did it
  badly. They did so many changes it was a half-baked release. It may
  turn out to be the right decision in the end and I will re-try KDE,
  but I suspect I'm not the only person they lost.
 
 I've seen it suggested that KDE4 is faster than KDE3.
 
 I'm running FreeBSD 7.0 - granted, my machine is not brand-new: it's a P4 
 1.8GHz with 512MB of RAM and an NVidia GeForce MX4000 (I mention the graphics 
 card because the latest NVidia binary driver doesn't support it). KDE3.5 does 
 what I want my window manager to do - keeps out of my way and works snappily 
 enough that I don't notice it.
 
 I recently installed PCBSD7.02, which uses KDE4.1. It's unusable. For 
 example, 
 with only two applications running - the KBreakout game and the Psi 
 Jabber/XMPP client - the game was unplayable because each time Psi received 
 an incoming chat or event, the game froze for a second or two while KDE 
 struggled to open the chat window.
 
 The claim that KDE4 is faster than KDE3 is frankly incredible to me.

Wouldn't that be dependent on the Xorg server version and setup? It may
be that some extra features of the video you're using need to be
enabled.

That said I'm not very impressed either (speed, features, etc). It looks
to me like they've gone to compete with Vista and have succeeded there,
but I find some of the little extras and the core of it seem unfinished
somehow. The concept is good (in that it could compete with Vista), but
to be completely successful in that venture even the aesthetics need to
be tidied up.

I'm also ashamed that they released it in a hurry to compete in this
condition to a very sceptical Window$ crowd. If they had of waited and
finished it properly even if it didn't reach the masses before Vista
they may have pulled more disgruntled users from the M$ addiction. Now
most are under the impression that nothing is any better than the crap
they have now so they may as well stick with 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


Re: can i split a pdf file?

2009-01-26 Thread Andrew Robinson
Message: 2
 Date: Sun, 25 Jan 2009 20:20:51 -0500
 From: Chuck Robey chu...@telenix.org
 Subject: Re: can i split a pdf file?
 To: FreeBSD Mailing List freebsd-questions@FreeBSD.ORG
 Message-ID: 497d0ff3.6090...@telenix.org
 Content-Type: text/plain; charset=ISO-8859-1
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Charlie Kester wrote:
  On Sun 25 Jan 2009 at 16:18:26 PST Gary Kline wrote:
 
  Is there a way to split a large pdf file into smaller [ say 1MB ]
  chunks?  Or are there open source tools out there that i can build?  
  
  pdfsam ( http://www.pdfsam.org/ ) does both splits and merges of pdf
  files, but it doesn't seem to be in the FreeBSD ports system.
  
  There is a pdfmerge in /usr/ports/print, but no pdfsplit.
  
 
 It's a very junky way to do it (but the only way I know), use pdf2ps
 to convert the pdf to postscript, then you stand at least a good
 chance of doing the split, which many utilities allow.  You could even
 do it graphically via gv.  The problem with this (and the reason it
 might well fail anyhow) is because some things that pdfs do aren't
 implemented in any standard postscript level I ever heard of.  It
 depends how many of the more recent extensions to pdf are being used.
 I've done this, *sometimes*.
 
 Because the pdf spec is fully published, it might one day allow
 someone to write a splitter, but because the spec is SO enormous,
 maybe they won't, either.  Actually, that's a really good notion ... I
 need to give it some thought.

It's not quite the same thing, but pdfnup from the

/usr/ports/print/pdfjam 

package allows page selections from the contributing pdfs.

http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam

Andrew
 
  -- Charlie
  
  
  ___
  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
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.9 (FreeBSD)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkl9D/MACgkQz62J6PPcoOnxIQCgg+Suf4NpK8TXTNbYZIW0BCrR
 fKYAn3ljinZw9s1fPG39IMpblVNg0H+N
 =mGhJ
 -END PGP SIGNATURE-


-- 
Andrew Robinson  
Department of Mathematics and StatisticsTel: +61-3-8344-6410
University of Melbourne, VIC 3010 Australia Fax: +61-3-8344-4599
http://www.ms.unimelb.edu.au/~andrewpr
http://blogs.mbs.edu/fishing-in-the-bay/ 
___
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: can i split a pdf file?

2009-01-26 Thread Jonathan McKeown
On Monday 26 January 2009 09:17:05 Andrew Robinson wrote:
 Message: 2

  Date: Sun, 25 Jan 2009 20:20:51 -0500
  From: Chuck Robey chu...@telenix.org
  Subject: Re: can i split a pdf file?
  To: FreeBSD Mailing List freebsd-questions@FreeBSD.ORG
  Message-ID: 497d0ff3.6090...@telenix.org
  Content-Type: text/plain; charset=ISO-8859-1
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Charlie Kester wrote:
   On Sun 25 Jan 2009 at 16:18:26 PST Gary Kline wrote:
   Is there a way to split a large pdf file into smaller [ say 1MB ]
   chunks?  Or are there open source tools out there that i can
   build?
[various suggestions including pdfmerge and psnup from ports]

Alternatively, if you have a reasonably complete TeX installation (I'm still 
using teTeX), check whether you have texexec installed - which can extract 
pages from PDFs.

Jonathan
___
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