RE: Mass find/replace...

2008-12-05 Thread Marc Coyles
 + not \; or you will fork on every result.
 
 Additionally, is this injected code one long string or broken down
 by the
 mailer? Grep isn't the best way to deal with it. It's pretty easy
 to correct
 with perl, bit trickier if it's multiline, still not too hard:
 
 find /home/horbury -type f -exec \
   perl -pi.bak -e 's,\?/\*\*/eval\(base64_decode\(.*?\?,,s'
 {} +
 

Hi Mel...
S'One long singleline string broken down by the mailer...

?php /**/eval(base64_decode([the huge long string originally quoted]));?

Have tried doing a find and replace using perl, initially just to replace the 
string, leaving an empty base64_decode(), however, one of the ICT Teachers has 
created paths with spaces in, which seemed to throw off the perl I was using... 
will give yours a try later today *fingers crossed*...

If worst comes to worst I can restore from backups, it'll just mean students 
lose a few days of work that they'd submitted thru Moodle (I've been off for a 
day or three, and this appears to have happened on the first day of my absence)

Ta fer the helpful suggestions thus far!

Marc A Coyles - Horbury School ICT Support Team
Mbl: 07850 518106
Land: 01924 282740 ext 730
Helpdesk: 01924 282740 ext 2000


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


Intro to a cool new webb-tv solution

2008-12-05 Thread Daniel Daboczy - DABBER

Dabber Newsletter

Dabber | Newsletter December 2008 Example player | White paper pdf |
IQube our new partner

Hi,

Since our last update, we have prepared a first example of the kind of
online video= solutions we offer. It's a player with an intuitive,
3-dimensional navigat= ion - a cool and easy way to showcase your
online video content:



This is the golden age of online video. More and more of us are
creating it= , watching it and telling our friends all about it.
Mainstream media giants= , organizations of all sizes and individual
Internet users alike are litera= lly setting the online world in
motion. Video on the web is becoming a natu= ral part of our lives,
enabling us to do a lot of different things easier, = faster and
better: discovering what's new and rediscovering the things we'v= e
missed, telling our stories and communicating our brands, realizing our
l= ife-long dreams of having our own TV show and running for president.
Over the last few years, a lot of companies offering online video
platfor= ms have emerged. What separates us from them is who we are.
Whereas most of= our competitors focus on technology and developing the
ultimate one-platfo= rm-fit-all video service, our focus is on every
aspect of the enterprise th= at you would be undertaking; on you
getting exactly the kind of product and= help that you need, at a cost
that you can afford.

Dabber is an Internet start-up, offering online video solutions that
are in= novative, affordable, easy to use and easy to manage. With a
background in the contemporary art scene as well as in web production, we 
combine the latest in technology with an understanding of what
makes = good content.

Daniel Daboczy  Eric Weber, founders

White paper (pdf)

For more information about our services, please download the Dabber
white paper.

IQube is our new partner

We're proud to present IQube as a new partner. IQube is one of the
Nordic r= egion´s leading centres for entrepreneurship and early
stage growth compa= nies. www.iqube.se

Dabber's development continues at rapid pace
We're still in development, but feel free to contact us in the
meanwhile, o= r check out our web site for updates!

www.dabber.tv daniel [at] dabber.tv +46 736 26 9985

To unsubscribe, please forward this email to [EMAIL PROTECTED]

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


RE: Mass find/replace...

2008-12-05 Thread Marc Coyles
 + not \; or you will fork on every result.
 
 Additionally, is this injected code one long string or broken down
 by the
 mailer? Grep isn't the best way to deal with it. It's pretty easy
 to correct
 with perl, bit trickier if it's multiline, still not too hard:
 
 find /home/horbury -type f -exec \
   perl -pi.bak -e 's,\? /\*\*/eval\(base64_decode\(.*?\?,,s' {} +
 

Sadly that didn't work. It created .bak files for everything within 
/home/Horbury recursively, but didn't make any changes - the base64_decode is 
till present. 

Additional point to note: this only needs performing on .php files, not all 
files... 

Would I be correct in guessing it's because the string for perl to search for 
omits a space?

IE: within the files, it's as follows:
?php /**/eval(base64_decode('thestring')); ?

Whereas the perl appears to be looking for:
?php/**/eval(base64_decode(*wildcard*?

Also... how to delete all files ending in .bak recursively? *grin*

I'm presuming it'd be:

Find /home/horbury -type f -name *.bak -exec \
Rm *.bak

???

Ta!
Marc


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


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Wojciech Puchar

I'm just curious to see how it looks for my own sanity's sake. At work,


yes windows is much faster and much easier to use. it was told so many 
times on adverts and you still not understand that?!


there are just strange people there that want to still use unix.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mass find/replace...

2008-12-05 Thread Peter Boosten
Marc Coyles wrote:
 
 I'm presuming it'd be:
 
 Find /home/horbury -type f -name *.bak -exec \
   Rm *.bak
 

find /home/horbury -name *.bak -exec rm {} \;

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 [EMAIL PROTECTED]


Re: Mass find/replace...

2008-12-05 Thread Mel
On Friday 05 December 2008 10:17:46 Marc Coyles wrote:
  + not \; or you will fork on every result.
 
  Additionally, is this injected code one long string or broken down
  by the
  mailer? Grep isn't the best way to deal with it. It's pretty easy
  to correct
  with perl, bit trickier if it's multiline, still not too hard:
 
  find /home/horbury -type f -exec \
  perl -pi.bak -e 's,\? /\*\*/eval\(base64_decode\(.*?\?,,s' {} +

 Sadly that didn't work. It created .bak files for everything within
 /home/Horbury recursively, but didn't make any changes - the base64_decode
 is till present.

 Additional point to note: this only needs performing on .php files, not all
 files...

 Would I be correct in guessing it's because the string for perl to search
 for omits a space?

Nope.

 IE: within the files, it's as follows:
 ?php /**/eval(base64_decode('thestring')); ?

Cause in your original mail I didn't catch the ?php, but the shorthand open. 
So it should be:

's,\?php /\*\*/eval\(base64_decode\(.*?\?,,s'

 Whereas the perl appears to be looking for:
 ?php/**/eval(base64_decode(*wildcard*?

 Also... how to delete all files ending in .bak recursively? *grin*

 I'm presuming it'd be:

 Find /home/horbury -type f -name *.bak -exec \

find /home/horbury -name '*.bak' -delete

-- 
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 [EMAIL PROTECTED]


Re: Mass find/replace...

2008-12-05 Thread Matthew Seaman

-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Peter Boosten wrote:
| Marc Coyles wrote:
| I'm presuming it'd be:
|
| Find /home/horbury -type f -name *.bak -exec \
|   Rm *.bak
|
|
| find /home/horbury -name *.bak -exec rm {} \;
|

find /home/horbury -type f -name '*.bak' -delete

'delete' is a find primitive -- no need to exec any other processes.

Cheers,

Matthew

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

iEYEAREDAAYFAkk4+OAACgkQ3jDkPpsZ+VbPwACfUrggUN1yIPqkq3pgCyy6fFzH
sncAn2WW0XD9l9NgNtK4T2IiMqoyxY6f
=1CX6
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Odhiambo Washington
On Fri, Dec 5, 2008 at 12:24 PM, Wojciech Puchar 
[EMAIL PROTECTED] wrote:

 I'm just curious to see how it looks for my own sanity's sake. At work,


 yes windows is much faster and much easier to use. it was told so many
 times on adverts and you still not understand that?!

 there are just strange people there that want to still use unix.


No one in their right senses would spend time benchmarking  FreeBSD (or any
Unix variant) against Windows (oh, which version?). It's a waste of time.
Let those who use Windows use it and those who like living in a world where
they are allowed to use their brains use Unix.

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Okay guys. This is Kenya. You pay taxes because you feel philanthropic,
unlike our MPs!
-- Kenneth Marende, Speaker, 10th Parilament.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Julien Cigar
What I find mist glaring when one moves from a Linux / FreeBSD system to
a Windows system it's the virtual memory management, with the same
amount of RAM Windows swaps a *lot* more.

Regarding the usability, it's clear that they target different people,
as Windows if mainly used by non-IT people ..

On Fri, 2008-12-05 at 10:24 +0100, Wojciech Puchar wrote:
  I'm just curious to see how it looks for my own sanity's sake. At work,
 
 yes windows is much faster and much easier to use. it was told so many 
 times on adverts and you still not understand that?!
 
 there are just strange people there that want to still use unix.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: [EMAIL PROTECTED]
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52

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


RE: Mass find/replace...

2008-12-05 Thread Marc Coyles
All done n' dusted now - thanks very much for everyone's input...! Have noted 
everything down in the back of my copy of Absolute FreeBSD 2nd Edition (which 
has inherited quite a few additional pages since I bought it).

Now that that's done, I can start to wander thru logs and find who/how...

Cheers!
Marc


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


RE: Mass find/replace...

2008-12-05 Thread Marc Coyles
 All done n' dusted now - thanks very much for everyone's input...!
 Have noted everything down in the back of my copy of Absolute
 FreeBSD 2nd Edition (which has inherited quite a few additional
 pages since I bought it).
 
 Now that that's done, I can start to wander thru logs and find
 who/how...
 
 Cheers!
 Marc
 

Arse - I spoke too soon.

Anyone know any perl to remove blank lines???!
It's left a blank line at top of each PHP file that it performed the action on, 
which has broken things a touch...

marc


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


Re: IPFW Firewall Question

2008-12-05 Thread Polytropon
Often discussed and adviced...

On Thu, 4 Dec 2008 16:26:04 -0800 (PST), G magicman [EMAIL PROTECTED] wrote:
 here is part of the configuration file so far that the Co-lo people put in.
 [...] 
 #!/usr/local/bin/bash

When possible, use the STANDARD form:

#!/bin/sh

Declare #!/usr/local/bin/bash only if you're intentionally
using BASH specifig functionalities that SH doesn't include.
May save you lots of headache.



 2. short of a reboot how do you start stop and restart the  firewall

You can use ipfw's rc.d script:

# /etc/rc.d/ipfw start

# /etc/rc.d/ipfw stop

# /etc/rc.d/ipfw restart


Just a small note, but I hope it will help you.





-- 
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 [EMAIL PROTECTED]


Re: Mass find/replace...

2008-12-05 Thread Mel
On Friday 05 December 2008 11:19:09 Marc Coyles wrote:
  All done n' dusted now - thanks very much for everyone's input...!
  Have noted everything down in the back of my copy of Absolute
  FreeBSD 2nd Edition (which has inherited quite a few additional
  pages since I bought it).
 
  Now that that's done, I can start to wander thru logs and find
  who/how...
 
  Cheers!
  Marc

 Arse - I spoke too soon.

 Anyone know any perl to remove blank lines???!
 It's left a blank line at top of each PHP file that it performed the action
 on, which has broken things a touch...

's/^(.*?)\r?\n\r?\n/$1\n/s' should only replace the first empty line it finds 
in a file and accounts for windows line endings.

Try it out on one file first:
perl -pi.bak 's/^(.*?)\r?\n\r?\n/$1\n/s' filename.php

-- 
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 [EMAIL PROTECTED]


Re: Image Programs

2008-12-05 Thread Polytropon
On Fri, 05 Dec 2008 07:00:43 +0100, Frank Bonnet [EMAIL PROTECTED] wrote:
 G magicman wrote:
  Hello  does anyone know the following
  
  1.  Does Freebsd have a program like Photoshop avail to use a copy-left GNU 
  license type ? and a form of Thumbsplus which allows me to do rudimentary 
  picture manipulations changing file type, cropping etc.  i have all the 3d 
  programs but not these 2 basic ones.
  
  
  Thank you
  
 
 http://www.gimp.org

For now, The Gimp has been suggested many times. I've heard
from users that there's Gimpshop to make The Gimp's excellent
interface look like the one of Photoshop for those users
who want it. Personally, I find the original Gimp interface
isn't as bad as claimed by many users who are spoiled by
the Windows way of doing things. :-)

Furthermore, there's Krita, if you're already using KDE.

For automated image manipulations, ImageMagick and especially
its convert command are very useful and powerful (!) tools.

What about Inkscape? Tried this one?

But finally, for professional use, The Gimp seems to be the
best program availabe at the moment.


-- 
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 [EMAIL PROTECTED]


Re: IPFW Firewall Question

2008-12-05 Thread Mel
On Friday 05 December 2008 01:26:04 G magicman wrote:

 Why because of the following:

 1. Hosts.access  on freebsd works on the Application Layer instead of the
 Network Layer Therefore Hosts.allow/hosts.deny   no longer works the way i
 want and i do not feel like running Sendmail and sshd out of Inetd which
 appearantly is the only way to be able to use hosts.allow/deny

You're right about the application layer, but not about the rest. From 
sshd(8):
 /etc/hosts.allow
 /etc/hosts.deny
 Access controls that should be enforced by tcp-wrappers are
 defined here.  Further details are described in hosts_access(5).

 2. Next openssh doesnot have an AllowHosts directive like the Finnish one
 does it only has an AllowUsers directive so i need to protect the system
 from DDOS attacks

Again, see above.

 and Hacking I already tried to block things using the 
 Sendmail Access file but all that did was choak up the server with moronic
 shit.  And i want to be able to use my sftp program but it opens random
 ports which can not be controlled so i need the Clearaddresses to be able
 to see all ports.

For the firewall, pf user here, so others should help. ;)

-- 
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 [EMAIL PROTECTED]


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Ivan Voras
[EMAIL PROTECTED] wrote:
 Hi,
 
 I don't even know if this has been done before, nor do I know for sure
 if it's a sound comparison. Never the less, someone posted, in response
 to someone else here just a few days ago, some very nice benchmarks
 provided by Kris ?Kenneway? I could be wrong on the last name, it just
 seems to me that's a last name I've seen with Kris frequently (my
 apologies Kris if I'm wrong). Using the URL that the other poster,
 posted, I poked around the other *.html files in that directory, but did
 not find any with FreeBSD pitted against windows.
 
 I'm just curious to see how it looks for my own sanity's sake. At work,
 someone got the grand idea that we should move to Windoze embedded (CE
 and XPe) and it's been quite discouraging I must say, though I must
 admit, it's nice to actually know why Windows is ugly underneath. From a
 programming perspective, it's just not simplistic. Anyway, I digress,
 I'm just curious to see how things compare to Windows on similar
 benchmarks to what Kris provided if its ever been done.

I've done some benchmarking of Windows file system IO (NTFS) using known
tools like bonnie++, blogbench and postmark under cygwin and the results
are abysmal. It might be due to cygwin, and it might not. I've used
Windows Enterprise Server 2003.

You'll probably not find any difference in computational (numeric) tasks
and fairly bad results in tasks that do a lot of system work.



signature.asc
Description: OpenPGP digital signature


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Wojciech Puchar

No one in their right senses would spend time benchmarking  FreeBSD (or any
Unix variant) against Windows (oh, which version?). It's a waste of time.


exactly what i meant.

windows agains wine under FreeBSD?
cygwin under windows against FreeBSD?



Let those who use Windows use it and those who like living in a world where
they are allowed to use their brains use Unix.

EXACTLY what i'm telling everywhere, including that group.

And then i hear about i start flamewars which is nonsense.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Wojciech Puchar

a Windows system it's the virtual memory management, with the same
amount of RAM Windows swaps a *lot* more.


it may be not VM subsystem but memory usage of windoze software. or both.

again - it's too different to be benchmarked

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


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Wojciech Puchar

tools like bonnie++, blogbench and postmark under cygwin and the results
are abysmal. It might be due to cygwin, and it might not. I've used


rather not. all cygwin do is wrapping calls like read, lseek, open, write, 
close to windoze calls.



Windows Enterprise Server 2003.

You'll probably not find any difference in computational (numeric) tasks


unless microsoft is intentionally slowing down all programs or some of 
them to show adventage of their programs.


no i'm not joking. it's not just possible, i'm fairly certain they do it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Mass find/replace...

2008-12-05 Thread Wojciech Puchar




Arse - I spoke too soon.

Anyone know any perl to remove blank lines???!


i don't know perl but

grep -v ^$

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


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Jerry
On Fri, 5 Dec 2008 13:11:22 +0100 (CET)
Wojciech Puchar [EMAIL PROTECTED] wrote:

 tools like bonnie++, blogbench and postmark under cygwin and the
 results are abysmal. It might be due to cygwin, and it might not.
 I've used  

rather not. all cygwin do is wrapping calls like read, lseek, open,
write, close to windoze calls.

 Windows Enterprise Server 2003.

 You'll probably not find any difference in computational (numeric)
 tasks  

unless microsoft is intentionally slowing down all programs or some of 
them to show adventage of their programs.

no i'm not joking. it's not just possible, i'm fairly certain they do
it.

Slightly paranoid aren't we? It reminds me of an article I read several
years ago in which the author claimed that all Virus and
Malware/Trojans were being written by Linux users in an attempt to
discredit Microsoft and then start charging for the use of their
software in a fashion consistent with Microsoft. He went on to claim
that 'open-sore' authors would reap windfall profits. Of course, like
you, he offered no concrete evidence, just idle speculation.

In any case, due to the multitude of flavors of *.nix and Windows
machines, in addition to the thousands of possible configurations,
systems, etc., getting a truly meaningful comparison would be a
monumental undertaking. In any event, it would be obsolete before you
ever finished it.

-- 
Jerry
[EMAIL PROTECTED]

Fortune's Office Door Sign of the Week:

Incorrigible punster -- Do not incorrige.


signature.asc
Description: PGP signature


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Mel
On Friday 05 December 2008 13:58:18 Jerry wrote:
 On Fri, 5 Dec 2008 13:11:22 +0100 (CET)

 Wojciech Puchar [EMAIL PROTECTED] wrote:
  tools like bonnie++, blogbench and postmark under cygwin and the
  results are abysmal. It might be due to cygwin, and it might not.
  I've used
 
 rather not. all cygwin do is wrapping calls like read, lseek, open,
 write, close to windoze calls.
 
  Windows Enterprise Server 2003.
 
  You'll probably not find any difference in computational (numeric)
  tasks
 
 unless microsoft is intentionally slowing down all programs or some of
 them to show adventage of their programs.
 
 no i'm not joking. it's not just possible, i'm fairly certain they do
 it.

 Slightly paranoid aren't we? It reminds me of an article I read several
 years ago in which the author claimed that all Virus and
 Malware/Trojans were being written by Linux users in an attempt to
 discredit Microsoft and then start charging for the use of their
 software in a fashion consistent with Microsoft. He went on to claim
 that 'open-sore' authors would reap windfall profits. Of course, like
 you, he offered no concrete evidence, just idle speculation.

 In any case, due to the multitude of flavors of *.nix and Windows
 machines, in addition to the thousands of possible configurations,
 systems, etc., getting a truly meaningful comparison would be a
 monumental undertaking. In any event, it would be obsolete before you
 ever finished it.

Well, one can find stories like this of course:
http://www.postgis.org/documentation/casestudies/globexplorer/

But I'm sure one can find some of the contrary. It does show the value of the 
benchmark: Is it economically viable to use configuration X vs Y, and 
performance is only one factor of the descision.

-- 
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 [EMAIL PROTECTED]


desperate Newb help

2008-12-05 Thread Warren Liddell
I have been trying for quite a while now to try and get some assistance 
from the various lists, google, forums an even man pages and so far not 
a single piece of advise on how to solve my issue and im getting 
desperate an ready to throw BSD in for goin back to godforbid windows, 
so once i again i ask for some help with why QT refuses to compile 
saying .


I have used the little-endian an big-endian flag an it made no 
difference, so plz someone have the kindness to help.


=

The target system byte order could not be detected!
Turn on verbose messaging (-v) to see the final report.
You can use the -little-endian or -big-endian switch to
./configure to continue.
===  Script configure failed unexpectedly.
Please report the problem to [EMAIL PROTECTED] [maintainer] and attach the
/usr/ports/databases/qt4-sql/work/qt-x11-opensource-src-4.4.1/src/sql/../..//config.log 


including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /usr/ports/databases/qt4-sql.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portinstall.13456.0 env make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
   ! databases/qt4-sql (unknown build error)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Steve Bertrand
Odhiambo Washington wrote:

 No one in their right senses would spend time benchmarking  FreeBSD (or any
 Unix variant) against Windows (oh, which version?). It's a waste of time.
 Let those who use Windows use it and those who like living in a world where
 they are allowed to use their brains use Unix.

Ahem..

Just for the record, I believe that those who like living in a world
where they are allowed to use their brain use whatever OS gets the job
done for a particular task or task set.

Those who are allowed to use their brain, but don't, will often use a
pair of pliers as a hammer, because no matter what, their belief is that
the pliers are the best tool...even when it takes 10 times longer to
bend those pliers in ways that another tool will work with no changes
necessary.

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


Re: IPFW Firewall Question

2008-12-05 Thread Steve Bertrand
G magicman wrote:
 1.  I need help to reconfigure my firewall on the server using BSD's ipfw

What part do you need to reconfigure?

 2. short of a reboot how do you start stop and restart the  firewall

Very, very carefully. Until I gained some extensive experience with
IPFW, I would wrap the firewall restart within a sleep/undo of some sort.

That said, now I use table(s) and set(s), so I can update rules without
having to restart the firewall entirely. Below is an example, that also
will guide you in answering your next two questions. The man page and
Google will explain how to use tables and sets.

To answer your question however, depending on where your firewall script
is, simply execute it at the command line, like this:

# /etc/ipfw.rules 

 Here is what i want :
 
 1. i want all ports open to the ipaddresses in line 4 clearaddresses
 2. I want to be able to control access to port 25 sendmail to be able to deny
   whole A B and C addresses

#!/bin/sh

flush=/sbin/ipfw -q flush
cmd=/sbin/ipfw add
table=/sbin/ipfw table

$flush

# Tables

# Client/infrastructure IPs for allowing access

$table 1 add 208.70.104.0/21
$table 1 add 64.39.160.0/19
$table 1 add 67.158.64.0/20
#...etc

# SMTP ALLOWED OUTBOUND TABLE

$table 2 add 208.70.104.202/32
$table 2 add 208.70.104.203/32
$table 2 add 208.70.104.205/32
#...etc

# Block all inbound and outbound traffic for certain sites
# ...review periodically to see if they are still valid

$table 3 add 91.203.4.146/32# phishing

# set 3 = specific deny/allow by ids
# set 4 = SSH access
# set 29 = for counting/testing traffic patterns
# set 30 = forwarding


# SET 3

# SQL
$cmd 2 set 3 deny all from any to any 1433,1434
# NetBIOS
$cmd 20100 set 3 allow tcp from 208.70.104.0/24 to 208.70.104.0/24
135,139,445,593 keep-state
$cmd 20105 set 3 allow udp from 208.70.104.0/24 to 208.70.104.0/24
135,139,445,593
$cmd 20110 set 3 deny all from any to any 135,139,445,593

# SET 4

$cmd 4 set 4 allow tcp from table(1) to any 22 keep-state
$cmd 40005 set 4 deny tcp from any to any 22

# SET 29

#$cmd 59000 set 29 count log logamount 100 tcp from any to any

# SET 30

$cmd 6 set 30 fwd 208.70.104.3,53 all from any to 209.167.16.10 53
$cmd 60005 set 30 fwd 208.70.106.59,53 all from any to 209.167.16.30 53

$cmd 64998 deny all from table(3) to any
$cmd 64999 deny all from any to table(3)

### end dummy ruleset

...if you want specific rule examples, just let me know.

The above does pretty much what you want it to do. I've purposely left
it up to you to do some further research. Tweaking a non-forgiving
firewall remotely is not something you want to learn the hard way.

The benefit of tables is that you can have one rule, but manually
add/remove specific addresses or prefixes on the fly without having to
reload the rule.

With sets, you can disable an entire block of rules, modify it, and
reload it without restarting IPFW, therefore destroying your existing
established rules.

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


Re: QT4 compilation problem

2008-12-05 Thread Patrick Lamaizière
Le Fri, 05 Dec 2008 23:39:14 +1000,
Warren Liddell [EMAIL PROTECTED] a écrit :

 I have been trying for quite a while now to try and get some
 assistance from the various lists, google, forums an even man pages
 and so far not a single piece of advise on how to solve my issue and
 im getting desperate an ready to throw BSD in for goin back to
 godforbid windows, so once i again i ask for some help with why QT
 refuses to compile saying .
 
 I have used the little-endian an big-endian flag an it made no 
 difference, so plz someone have the kindness to help.

Looks to be a known problem, see
http://mail.kde.org/pipermail/kde-freebsd/2008-December/004094.html

(please, use more accurate subject. Thanks).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: QT4 compilation problem

2008-12-05 Thread Mel
On Friday 05 December 2008 15:15:07 Patrick Lamaizière wrote:
 Le Fri, 05 Dec 2008 23:39:14 +1000,

 Warren Liddell [EMAIL PROTECTED] a écrit :
  I have been trying for quite a while now to try and get some
  assistance from the various lists, google, forums an even man pages
  and so far not a single piece of advise on how to solve my issue and
  im getting desperate an ready to throw BSD in for goin back to
  godforbid windows, so once i again i ask for some help with why QT
  refuses to compile saying .
 
  I have used the little-endian an big-endian flag an it made no
  difference, so plz someone have the kindness to help.

 Looks to be a known problem, see
 http://mail.kde.org/pipermail/kde-freebsd/2008-December/004094.html

Nah, that's called crossposting.

-- 
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 [EMAIL PROTECTED]


DVD cloning tool

2008-12-05 Thread Polytropon
Hi!

I'd like to ask which program is the proper tool to copy
a DVD(+|-)R 1:1 to another media of the same kind? It
would be great if the program would have a good error
tolerance for slightly defective media (which is a usual
problem with cheap DVDs).

I've always used cdrdao read-cd and afterwards cdrdao write
for CD-R, but I cannot use this tool for DVDs, right?

So far I've used growisofs to record pre-mastered ISO
file systems, but I don't want to make it that complicated
(mound source DVD, mkisofs, growisofs / burn this ISO
to destination DVD) if it can be avoided. It's not
neccessary to perform this operation from one drive
to the other, it's okay to have a temporary file
(first read, then burn).



-- 
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 [EMAIL PROTECTED]


IPFilter section in Handbook needs updating

2008-12-05 Thread Dean Weimer
I was just setting up ipfilter and ipmon on a FreeBSD 7 server, and noticed 
that the ipmon and syslog information under the ipfilter section of the 
handbook is incorrect.

The section reads:
-snip-
31.5.7 IPMON Logging
Syslogd uses its own special method for segregation of log data. It uses 
special groupings called facility and level. IPMON in -Ds mode uses 
security as the facility name. All IPMON logged data goes to security The 
following levels can be used to further segregate the logged data if desired:
LOG_INFO - packets logged using the log keyword as the action rather than 
pass or block.
LOG_NOTICE - packets logged which are also passed
LOG_WARNING - packets logged which are also blocked
LOG_ERR - packets which have been logged and which can be considered short
To setup IPFILTER to log all data to /var/log/ipfilter.log, you will need to 
create the file. The following command will do that:
# touch /var/log/ipfilter.log
The syslog function is controlled by definition statements in the 
/etc/syslog.conf file. The syslog.conf file offers considerable flexibility in 
how syslog will deal with system messages issued by software applications like 
IPF.
Add the following statement to /etc/syslog.conf:
security.* /var/log/ipfilter.log
The security.* means to write all the logged messages to the coded file 
location.
To activate the changes to /etc/syslog.conf you can reboot or bump the syslog 
task into re-reading /etc/syslog.conf by running /etc/rc.d/syslogd reload
Do not forget to change /etc/newsyslog.conf to rotate the new log you just 
created above.
-snip-

In trying to configure this I found that ipmon -Dsa doesn't log to security, 
but logs to local0 instead.  Reading the man page for ipmon does in fact state 
this.  However it also list the -L option as being able to change this default 
behavior, I tried ipmon -DSa -L security, it excepts this, but doesn't actually 
change the logging to use security.  It still only outputs to the syslog using 
local0, I also tried using ipmon -DSa -L local7 as well, still outputs to 
local0.  It was easy enough to modify my syslog.conf to output the local0.* as 
well as security.* to the /var/log/security file.  However it would be greatly 
appreciated if someone that actually understands what's going on here could get 
this info updated.  It would have saved me some time, as well as I am sure some 
other people in the future.  Of course it's always possible I am missing 
something simple here that is causing this discrepancy, please do inform me if 
I did.  It's probably worth mentioning that I am starting ipmon using the 
rc.conf file with ipmon_enable=YES and ipmon_flags=-DSa, just in case the 
/etc/rc.d/ipmon script actually changes the default behavior of ipmon in some 
way, though I didn't see anything in it that should.  And ps wwaux | grep ipmon 
does display the process running with the flags exactly as stated on the 
ipmon_flags line of the /etc/rc.conf file.

Thanks,
 Dean Weimer
 Network Administrator
 Orscheln Management Co

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


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Wojciech Puchar

Just for the record, I believe that those who like living in a world
where they are allowed to use their brain use whatever OS gets the job
done for a particular task or task set.


yes it means that. that's why they don't use windows as it's useless for 
them

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


Re: DVD cloning tool

2008-12-05 Thread Wojciech Puchar


I'd like to ask which program is the proper tool to copy
a DVD(+|-)R 1:1 to another media of the same kind? It
would be great if the program would have a good error
tolerance for slightly defective media (which is a usual
problem with cheap DVDs).

I've always used cdrdao read-cd and afterwards cdrdao write
for CD-R, but I cannot use this tool for DVDs, right?

So far I've used growisofs to record pre-mastered ISO
file systems, but I don't want to make it that complicated
(mound source DVD, mkisofs, growisofs / burn this ISO

   

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


Re: DVD cloning tool

2008-12-05 Thread Wojciech Puchar

dd if=/dev/cd0 of=filename.iso bs=2048


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


Re: DVD cloning tool

2008-12-05 Thread Polytropon
On Fri, 5 Dec 2008 09:42:58 -0600, Andrew Gould [EMAIL PROTECTED] wrote:
 If your CD or DVD is loaded (not mounted) at /dev/cd0, the following command
 will create an iso image in the current directory:
 
  dd if=/dev/cd0 of=filename.iso bs=2048
 
 If you want an easy process, you can put this in a script, followed by a
 growisofs command to burn the file to another DVD device, allowing the
 script to overwrite the previous DVD iso file.  Or you could write a script
 where you supply a name for the iso image file to maintain backup images.

Thanks, dd is a good suggestion for ISO data. But what I need
is a 1:1 copy no matter what the DVD actually contains - I know,
I didn't mention this in a clear way, sorry.

For example, the cdrdao command I mentioned before does copy
the source 1:1 to the destination media, for cases such as
- an ISO image (data CD)
- audio tracks (music CD)
- VCD
- SVCD
- video files without ISO enclosing
  (yes, my standalone player runs these, and it's
   easy to mplayer -fs /dev/cd0 to watch a movie
   that is an AVI or MPG file)
- an ISO image *and* audio tracks

I'm searching for the same functionality applyable to DVD,
so I can easily clone video DVDs I made, as well as data DVDs
or DVDs with audio tracks (yes, this works, too).



-- 
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 [EMAIL PROTECTED]


Re: IPFilter section in Handbook needs updating

2008-12-05 Thread Chris


On Dec 5, 2008, at 7:07 AM, Dean Weimer wrote:

I was just setting up ipfilter and ipmon on a FreeBSD 7 server, and  
noticed that the ipmon and syslog information under the ipfilter  
section of the handbook is incorrect.



A couple of years back, I submitted a one liner to some email
address of a documentation maintainer. I just looked on the
site and couldn't find this address. Instead, it said if you have
a change, it suggested putting in a PR. It sounds like it you
should create a diff of the current wording and your recommended
change.

Here is where I was looking:
http://www.freebsd.org/docproj/submitting.html


The section reads:
-snip-
31.5.7 IPMON Logging
Syslogd uses its own special method for segregation of log data. It  
uses special groupings called facility and level. IPMON in -Ds  
mode uses security as the facility name. All IPMON logged data  
goes to security The following levels can be used to further  
segregate the logged data if desired:
LOG_INFO - packets logged using the log keyword as the action  
rather than pass or block.

LOG_NOTICE - packets logged which are also passed
LOG_WARNING - packets logged which are also blocked
LOG_ERR - packets which have been logged and which can be  
considered short
To setup IPFILTER to log all data to /var/log/ipfilter.log, you  
will need to create the file. The following command will do that:

# touch /var/log/ipfilter.log
The syslog function is controlled by definition statements in the / 
etc/syslog.conf file. The syslog.conf file offers considerable  
flexibility in how syslog will deal with system messages issued by  
software applications like IPF.

Add the following statement to /etc/syslog.conf:
security.* /var/log/ipfilter.log
The security.* means to write all the logged messages to the coded  
file location.
To activate the changes to /etc/syslog.conf you can reboot or bump  
the syslog task into re-reading /etc/syslog.conf by running /etc/ 
rc.d/syslogd reload
Do not forget to change /etc/newsyslog.conf to rotate the new log  
you just created above.

-snip-

In trying to configure this I found that ipmon -Dsa doesn't log to  
security, but logs to local0 instead.  Reading the man page for  
ipmon does in fact state this.  However it also list the -L option  
as being able to change this default behavior, I tried ipmon -DSa - 
L security, it excepts this, but doesn't actually change the  
logging to use security.  It still only outputs to the syslog using  
local0, I also tried using ipmon -DSa -L local7 as well, still  
outputs to local0.  It was easy enough to modify my syslog.conf to  
output the local0.* as well as security.* to the /var/log/security  
file.  However it would be greatly appreciated if someone that  
actually understands what's going on here could get this info  
updated.  It would have saved me some time, as well as I am sure  
some other people in the future.  Of course it's always possible I  
am missing something simple here that is causing this discrepancy,  
please do inform me if I did.  It's probably worth mentioning that  
I am starting ipmon using the rc.conf file with ipmon_enable=YES  
and ipmon_flags=-DSa, just in case the /etc/rc.d/ipmon script  
actually changes the default behavior of ipmon in some way, though  
I didn't see anything in it that should.  And ps wwaux | grep ipmon  
does display the process running with the flags exactly as stated  
on the ipmon_flags line of the /etc/rc.conf file.


Thanks,
 Dean Weimer
 Network Administrator
 Orscheln Management Co

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




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


Re: DVD cloning tool

2008-12-05 Thread Wojciech Puchar


Thanks, dd is a good suggestion for ISO data. But what I need


once again please do
man dd

dd reads sector by sector.

it won't work only for audio-sectors on CD , on DVD movies are stored 
using normal 2K sectors

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


Re: DVD cloning tool

2008-12-05 Thread Mel
On Friday 05 December 2008 16:11:12 Polytropon wrote:

 So far I've used growisofs to record pre-mastered ISO
 file systems, but I don't want to make it that complicated
 (mound source DVD, mkisofs, growisofs / burn this ISO
 to destination DVD) if it can be avoided. It's not
 neccessary to perform this operation from one drive
 to the other, it's okay to have a temporary file
 (first read, then burn).

From the manpage:
   To use growisofs to write a pre-mastered ISO-image to a DVD:

growisofs -dvd-compat -Z /dev/dvd=image.iso

   where image.iso represents an arbitrary object in the filesystem,  such
   as  file,  named pipe or device entry. Nothing is growing here and com-
   mand name is not intuitive in this context.

So, while untested by me:
growisofs -dvd-compat -Z /dev/cd1=/dev/cd0
should work.


-- 
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 [EMAIL PROTECTED]


Re: Gnome slow at start up

2008-12-05 Thread Fernando Apesteguía
On Fri, Dec 5, 2008 at 5:58 AM, Mel [EMAIL PROTECTED] wrote:
 On Thursday 04 December 2008 19:51:32 Fernando Apesteguía wrote:
 Hi all,

 I'm running FreeBSD 7.1-BETA 2 and I have some problems with Gnome at start
 up.

 When I type startx, I get the gnome desktop and the nice border-less
 window in which I can see components loading. However, after the
 gnome-panel icon, it seems to stall.
 some time later (around a minute or two) nautilus seems to run and I
 get all the icons at my desktop.

 I have
 dbus_enable=YES
 hald_enable=YES
 in my rc.conf and I can see, both are running.

 I have the entries suggested in
 http://www.freebsd.org/gnome/docs/faq2.html#q20 added to my /etc/hosts
 and I can verify with ping that I don't have any problems with name
 resolution.
 I also have both net.inet.tcp.backhole and net.inet.udp.blackhole set to 0.

 What's the problem? How can I see which process is stalled during start up?

 Does this help?
 http://forums.freebsd.org/showthread.php?t=445

Hi Mel, thanks a lot.

The --purge-delay=5000 and --warn-delay=5000 options for gnome-session
fixed the problem.

However, this triggers another question. Since these options decrease
the default timeouts (3) for clients to connect and clients to
respond respectively, doesn't this mean some process, acting like a
gnome client is stalled or taking too much time to initialize?

Does this worth a PR?

Thanks


 --
 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 [EMAIL PROTECTED]


Re: IPSec + vpn + multicast

2008-12-05 Thread Nikos Vassiliadis
On Wednesday 03 December 2008 17:02:05 nrml nrml wrote:
 Hello,

 I followed the handbook instructions and the ipsec(4) man page to setup
 vpn-over-ipsec for our company's site-to-site connection via our
 dedicated T1. Anyway I have it working but I found that I need to make
 sure that multicast traffic can traverse through the two subnets. I have
 the following options in my kernel:

 FreeBSD somebox.domain.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #1: Fri
 Nov 21 08:11:47 PST 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sysKERNEL  i386 device 
 crypto
 options IPSEC
 options IPSEC_FILTERTUNNEL
 options IPSEC_DEBUG #debug for IP Security
 options IPSEC_NAT_T


The kernel does not support multicast routing by default,
you need to add options MROUTING to your kernel cf. But
then again you have to use something to exchange that routing
information to the other peers, something like XORP.

 ipsec-tools:
...
 Does anyone know how I can accomplish this? The goal is to try and have
 transparency between the two sites

Could you elaborate a bit on transparency between the two sites?

 to and try and get Bonjour working. 

I am not familiar with Bonjour, but it seems that multicast routing
is not the way to go... Maybe you can achieve that same effect using
bridging and packet filtering to block what ever is supposed to be
local traffic.

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


Anyone tried Dspace on FreeBSD?

2008-12-05 Thread Krahmer, Ana
Has anyone here tried running DSpace on FreeBSD?



~~
Ana Krahmer
Programmer/Analyst III
TTU Southwest Collection
Phone: 806-742-9020 x277
Fax: 806-742-3157
If you don't find it in the index,
look very carefully through the
entire catalogue. ~~Sears Consumer Guide
~~

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


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Chad Perrin
On Fri, Dec 05, 2008 at 01:09:36PM +0100, Wojciech Puchar wrote:
 a Windows system it's the virtual memory management, with the same
 amount of RAM Windows swaps a *lot* more.
 
 it may be not VM subsystem but memory usage of windoze software. or both.
 
 again - it's too different to be benchmarked

There's no reason one cannot generate benchmarks comparing the two.  You
just have to choose your benchmark tasks carefully.

Of course, microbenchmarks are usually suspect no matter what systems
you're testing -- whether it's FreeBSD vs. MS Windows, OpenBSD vs. Linux
2.6.x, or Ruby 1.9 vs. Python 3.0, there are always ways to arrange your
benchmark tests to favor whatever you want to favor.  That doesn't change
the fact that FreeBSD vs. MS Windows benchmark tests can be every bit as
(un)useful as any other benchmark tests.  They're not just too
different.

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Quoth C. Hoare: Two ways of constructing software: (1) make it so
simple that there are obviously no bugs, (2) make it so complicated that
there are no obvious bugs. Making it simple is far more difficult.


pgpO7juZPJTwC.pgp
Description: PGP signature


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Bruce Cran
On Fri, 05 Dec 2008 04:30:20 +
[EMAIL PROTECTED] wrote:

 I'm just curious to see how it looks for my own sanity's sake. At
 work, someone got the grand idea that we should move to Windoze
 embedded (CE and XPe) and it's been quite discouraging I must say,
 though I must admit, it's nice to actually know why Windows is ugly
 underneath. From a programming perspective, it's just not simplistic.
 Anyway, I digress, I'm just curious to see how things compare to
 Windows on similar benchmarks to what Kris provided if its ever been
 done.


The userland win32 API might be rather unpleasant but I was surprised
to learn to driver interface in the kernel is actually quite nice, and
isn't too dissimilar to FreeBSD in some ways.  In
terms of performance Windows-based machines have made it into the
Top500 list of supercomputers, so at the high end performance must be
acceptable at least.

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


Re: Gnome slow at start up

2008-12-05 Thread Mel
On Friday 05 December 2008 17:23:10 Fernando Apesteguía wrote:

  http://forums.freebsd.org/showthread.php?t=445

 Hi Mel, thanks a lot.

 The --purge-delay=5000 and --warn-delay=5000 options for gnome-session
 fixed the problem.

 However, this triggers another question. Since these options decrease
 the default timeouts (3) for clients to connect and clients to
 respond respectively, doesn't this mean some process, acting like a
 gnome client is stalled or taking too much time to initialize?

 Does this worth a PR?

Definitely worth a PR or at least gather commonalities in that forum thread, 
cause it happens on different releases and seemingly vanilla systems.
I don't use gnome, so can't help there.

Maybe move it over to the gnome list.
-- 
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 [EMAIL PROTECTED]


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Chad Perrin
On Fri, Dec 05, 2008 at 02:26:50PM +0100, Mel wrote:
 
 Well, one can find stories like this of course:
 http://www.postgis.org/documentation/casestudies/globexplorer/
 
 But I'm sure one can find some of the contrary. It does show the value of the 
 benchmark: Is it economically viable to use configuration X vs Y, and 
 performance is only one factor of the descision.

Actually, the only other story that comes immediately to mind of a
PostgreSQL vs. Oracle comparison is this one:

  http://www.enterprisedb.com/about/news_events/press_releases/06_27_07.do

. . . so, in my experience at least, stories to the contrary are pretty
hard to find.

Of course, that seems to be more about PostgreSQL vs. Oracle than FreeBSD
vs. MS Windows.

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Quoth Thomas McCauley: The measure of a man's real character is what he
would do if he knew he would never be found out.


pgpHGZdFjXqjl.pgp
Description: PGP signature


Re: Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread af300wsm

On Dec 5, 2008 9:34am, Bruce Cran [EMAIL PROTECTED] wrote:

On Fri, 05 Dec 2008 04:30:20 +

[EMAIL PROTECTED] wrote:



 I'm just curious to see how it looks for my own sanity's sake. At

 work, someone got the grand idea that we should move to Windoze

 embedded (CE and XPe) and it's been quite discouraging I must say,

 though I must admit, it's nice to actually know why Windows is ugly

 underneath. From a programming perspective, it's just not simplistic.

 Anyway, I digress, I'm just curious to see how things compare to

 Windows on similar benchmarks to what Kris provided if its ever been

 done.





The userland win32 API might be rather unpleasant but I was surprised

to learn to driver interface in the kernel is actually quite nice, and

isn't too dissimilar to FreeBSD in some ways. In

terms of performance Windows-based machines have made it into the

Top500 list of supercomputers, so at the high end performance must be

acceptable at least.




Very interesting. To be fair, programming is programming. It's not as if a  
struct suddenly became an int because we're using windows. You've just got  
to learn to do it differently. It's just irritating that there's not a  
fork() in windows, VERY irritating. Other things are quite irritating too,  
but like I said, it's not as if C++ suddenly became something different  
because I was working in windows.


To the list, I must say that I wasn't looking to start a holy war. Before  
posting I thought that the message was properly worded to find out if it  
had ever been done and if the results could be easily accessed. I found the  
result sets from Kris quite interesting comparing FreeBSD X against Linux  
X, DragonFlyBSD X and so forth. It was just interesting and I was wondering  
how similar benchmarks would compare. I didn't meant to set anyone off.


Lastly, I think I may have left the impression that perhaps where I work  
they switched from FreeBSD to Windows. Had this been the case, the  
transition would have been far more discouraging to me. FreeBSD is my  
preferred OS. I too prefer the using of my brain to more brain-dead  
OSs. This fact is actually one of the irritants with using Windows now at  
work. I dislike that Visual Studio thinks it knows better than I do and  
that everything is so abstracted that it's hard to get down the ground  
level of what you're doing. And although IntelliSense is nice, still, give  
me gvim any day of the week and twice on Sunday.


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


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Mel
On Friday 05 December 2008 17:45:37 Chad Perrin wrote:
 On Fri, Dec 05, 2008 at 02:26:50PM +0100, Mel wrote:
  Well, one can find stories like this of course:
  http://www.postgis.org/documentation/casestudies/globexplorer/
 
  But I'm sure one can find some of the contrary. It does show the value of
  the benchmark: Is it economically viable to use configuration X vs Y, and
  performance is only one factor of the descision.

 Actually, the only other story that comes immediately to mind of a
 PostgreSQL vs. Oracle comparison is this one:

   http://www.enterprisedb.com/about/news_events/press_releases/06_27_07.do

 . . . so, in my experience at least, stories to the contrary are pretty
 hard to find.

 Of course, that seems to be more about PostgreSQL vs. Oracle than FreeBSD
 vs. MS Windows.

Point being, that a benchmark should never decide or even help decide to 
change software accross the board as a policy.
You may use it as orientation, but in practice the value of said benchmarks is 
low as they rarely represent real workloads.
The deciding process is migrating one and see what happens, what you have to 
do to migrate (it's rarely just the os and takes man hours) and what the 
difference in maintenance and periodic costs is.
Benchmarks are more useful to see what kind of hardware I'd need to run a 
MySQL server with X simultanious connections on FreeBSD and even better if 
the tuning and optimizations for the benchmark are documented.

-- 
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 [EMAIL PROTECTED]


Re: IPFilter section in Handbook needs updating

2008-12-05 Thread G magicman

And incomplete yes i agree that the doc does need to be updated and examples 
(more) need to be added.

--- On Fri, 12/5/08, Dean Weimer [EMAIL PROTECTED] wrote:
From: Dean Weimer [EMAIL PROTECTED]
Subject: IPFilter section in Handbook needs updating
To: freebsd-questions@freebsd.org
Date: Friday, December 5, 2008, 10:07 AM

I was just setting up ipfilter and ipmon on a FreeBSD 7 server, and noticed that
the ipmon and syslog information under the ipfilter section of the handbook is
incorrect.

The section reads:
-snip-
31.5.7 IPMON Logging
Syslogd uses its own special method for segregation of log data. It uses
special groupings called facility and level. IPMON in
-Ds mode uses security as the facility name. All IPMON logged data
goes to security The following levels can be used to further segregate the
logged data if desired:
LOG_INFO - packets logged using the log keyword as the action
rather than pass or block.
LOG_NOTICE - packets logged which are also passed
LOG_WARNING - packets logged which are also blocked
LOG_ERR - packets which have been logged and which can be considered short
To setup IPFILTER to log all data to /var/log/ipfilter.log, you will need to
create the file. The following command will do that:
# touch /var/log/ipfilter.log
The syslog function is controlled by definition statements in the
/etc/syslog.conf file. The syslog.conf file offers considerable flexibility in
how syslog will deal with system messages issued by software applications like
IPF.
Add the following statement to /etc/syslog.conf:
security.* /var/log/ipfilter.log
The security.* means to write all the logged messages to the coded file
location.
To activate the changes to /etc/syslog.conf you can reboot or bump the syslog
task into re-reading /etc/syslog.conf by running /etc/rc.d/syslogd reload
Do not forget to change /etc/newsyslog.conf to rotate the new log you just
created above.
-snip-

In trying to configure this I found that ipmon -Dsa doesn't log to
security, but logs to local0 instead.  Reading the man page for ipmon does in
fact state this.  However it also list the -L option as being able to change
this default behavior, I tried ipmon -DSa -L security, it excepts this, but
doesn't actually change the logging to use security.  It still only outputs
to the syslog using local0, I also tried using ipmon -DSa -L local7 as well,
still outputs to local0.  It was easy enough to modify my syslog.conf to output
the local0.* as well as security.* to the /var/log/security file.  However it
would be greatly appreciated if someone that actually understands what's
going on here could get this info updated.  It would have saved me some time, as
well as I am sure some other people in the future.  Of course it's always
possible I am missing something simple here that is causing this discrepancy,
please do inform me if I did.  It's probably worth mentioning that I am
starting ipmon using the rc.conf file with ipmon_enable=YES and
ipmon_flags=-DSa, just in case the /etc/rc.d/ipmon script actually
changes the default behavior of ipmon in some way, though I didn't see
anything in it that should.  And ps wwaux | grep ipmon does display the process
running with the flags exactly as stated on the ipmon_flags line of the
/etc/rc.conf file.

Thanks,
 Dean Weimer
 Network Administrator
 Orscheln Management Co

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




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


what is umtxn

2008-12-05 Thread Wojciech Puchar
i've got once my asterisk process in umtxn state (as top shows) using 100% 
CPU.


it was still answering calls.

what's umtxn exactly?

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


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread Wojciech Puchar

The userland win32 API might be rather unpleasant but I was surprised
to learn to driver interface in the kernel is actually quite nice, and


whatever ideas/solutions microsoft do it's f..ked up or stolen.
the stolen case is actually better :)


isn't too dissimilar to FreeBSD in some ways.  In
terms of performance Windows-based machines have made it into the
Top500 list of supercomputers, so at the high end performance must be
acceptable at least.

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


Re: named and ntpd start order in rc.d

2008-12-05 Thread RW
On Fri, 21 Nov 2008 16:47:50 -0800
Nerius Landys [EMAIL PROTECTED] wrote:


 I believe that the fix for this is to add a dependency
 to /etc/rc.d/ntpd script, adding named to REQUIRE section in
 comments.  In your opinion, is this a robust fix?  For example the
 line in my /etc/rc.d/ntpd script that looks like so:
 
 # REQUIRE: DAEMON ntpdate cleanvar devfs
 
 would be changed to this:
 
 # REQUIRE: DAEMON ntpdate cleanvar devfs named

This shouldn't be needed as ntpd already requires ntpdate and in
turn ntpdate requires named. The issue is probably  timing - that named
isn't ready.

I have a similar issue with PPP not having connected by the time
ntpdate runs , so I just have a script that runs between named and
ntpdate, and blocks waiting for access.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IPFW Firewall Question

2008-12-05 Thread G magicman


I have tried this it did not work and the Co-Lo people are convinced that sshd 
and sendmail
need to be run out of inetd.conf for this to work

As i said i am used to BSDI  and the Finnish SSHD 

Also here they are using the combined hosts.allow/deny  with the deny inside 
which i never liked
Thank you for your help on this


Garrett

--- On Fri, 12/5/08, Mel [EMAIL PROTECTED] wrote:
From: Mel [EMAIL PROTECTED]
Subject: Re: IPFW Firewall Question
To: freebsd-questions@freebsd.org, [EMAIL PROTECTED]
Date: Friday, December 5, 2008, 6:02 AM

On Friday 05 December 2008 01:26:04 G magicman wrote:

 Why because of the following:

 1. Hosts.access  on freebsd works on the Application Layer instead of the
 Network Layer Therefore Hosts.allow/hosts.deny   no longer works the way
i
 want and i do not feel like running Sendmail and sshd out of Inetd which
 appearantly is the only way to be able to use hosts.allow/deny

You're right about the application layer, but not about the rest. From 
sshd(8):
 /etc/hosts.allow
 /etc/hosts.deny
 Access controls that should be enforced by tcp-wrappers are
 defined here.  Further details are described in hosts_access(5).

 2. Next openssh doesnot have an AllowHosts directive like the Finnish one
 does it only has an AllowUsers directive so i need to protect the system
 from DDOS attacks

Again, see above.

 and Hacking I already tried to block things using the 
 Sendmail Access file but all that did was choak up the server with moronic
 shit.  And i want to be able to use my sftp program but it opens random
 ports which can not be controlled so i need the Clearaddresses to be able
 to see all ports.

For the firewall, pf user here, so others should help. ;)

-- 
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 [EMAIL PROTECTED]


Re: DVD cloning tool

2008-12-05 Thread David Kelly
On Fri, Dec 05, 2008 at 05:18:01PM +0100, Wojciech Puchar wrote:
 
 Thanks, dd is a good suggestion for ISO data. But what I need
 
 once again please do
 man dd
 
 dd reads sector by sector.
 
 it won't work only for audio-sectors on CD , on DVD movies are stored 
 using normal 2K sectors

Agree that dd is good for simple CDs and DVDs but can't say that I know
it will behave on multi-session or multi-format discs.

In years past there was an issue where some drives would return EOF with
the last sector and others would wait until attempt to read past the
last sector yet would return data. So with multiple generations of copy
each generation got one block longer. Know this because 10 years ago
working in a data warehouse I easily won the argument against using
Windows to duplicate/distribute data on CD for lack of a disc verify
utility. These days the Disk Utility in MacOS X automatically verifies.
But back then under FreeBSD I used dd and handled EOF specially in my
shell script.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

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 [EMAIL PROTECTED]


Re: what is umtxn

2008-12-05 Thread Wojciech Puchar

100% CPU.

it was still answering calls.

what's umtxn exactly?


A kernel lock operation.  ``procstat -k PID'' may show more details
about the in-kernel stack of the process that spins on the lock.



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


Re: DVD cloning tool

2008-12-05 Thread Wojciech Puchar


Agree that dd is good for simple CDs and DVDs but can't say that I know
it will behave on multi-session or multi-format discs.


the question was about DVD. dvd are not produced multisession or 
multiformat.


and when copying multisession data DVD, it's much better to copy off all 
files, possible add more and write as single session.


actually it's rarely used. i never recorded even one multisession DVD 
except once to test if it works :)


with CD - you are right, but it was already told that readcd is OK.

unfortunately AFAIK there is no similar tool for DVDs
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DVD cloning tool

2008-12-05 Thread David Kelly
On Fri, Dec 05, 2008 at 08:45:52PM +0100, Wojciech Puchar wrote:
 
 Agree that dd is good for simple CDs and DVDs but can't say that I know
 it will behave on multi-session or multi-format discs.
 
 the question was about DVD. dvd are not produced multisession or 
 multiformat.

The above is contradicted below. *These* DVDs in question are known not
multi-session?

 and when copying multisession data DVD, it's much better to copy off
 all files, possible add more and write as single session.

Depends on what your homework assignment is. In the data center I was
talking about one could make a good argument that the duplicate was to
be multi-session if the original was. We don't know for sure it doesn't
contain a presentation application or something counting on the multiple
sessions.

 actually it's rarely used. i never recorded even one multisession DVD
 except once to test if it works :)

On DVD-R it works badly, can only write 4 or 5 sessions and there is
some huge buffer zone between each session, 200 to 500 MB.

 with CD - you are right, but it was already told that readcd is OK.
 
 unfortunately AFAIK there is no similar tool for DVDs

Thought readcd (out of cdrtools) also knew how to read DVD?

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

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 [EMAIL PROTECTED]


Re: desperate Newb help

2008-12-05 Thread Warren Liddell

I have no idea why 'configure' is run. No configure is run for me at all.
Looks like your ports tree isn't sane. How do you upgrade your 
portstree?


Instead of using portupgrade, could you just execute the following:
make -C /usr/ports/databases/qt4-sql clean build




If youre new to freebsd, pkg_add -r packagename is infinitely easier 
than muddling through port build options.


Brian
Well i have been using freebsd for about a yr an i update my ports via 
svn, but i also maintain a standard copy of the ports tree via csup.


Sadly the same error existed when i tried make -C 
/usr/ports/databases/qt4-sql clean build ... id gladly use pkg_add if 
had the pre-build pkg for QT4-sql vers 4.4.2 or even all the QT4 @ vers 4.5

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


Re: named and ntpd start order in rc.d

2008-12-05 Thread Nerius Landys
 This shouldn't be needed as ntpd already requires ntpdate and in
 turn ntpdate requires named. The issue is probably  timing - that named
 isn't ready.

Actually, the REQUIRE thing in the /etc/rc.d scripts means if the
required service is enabled, start it before this one.  It does not
mean start the required service before this one.

I had ntpd enabled but not ntpdate in my rc.conf.  Therefore the
ntpdate script which requires NETWORK and named did not get run.  As
mentioned earlier, my fix was to run ntpdate at bootup as well as
ntpd.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: named and ntpd start order in rc.d

2008-12-05 Thread RW
On Fri, 5 Dec 2008 13:22:29 -0800
Nerius Landys [EMAIL PROTECTED] wrote:

  This shouldn't be needed as ntpd already requires ntpdate and in
  turn ntpdate requires named. The issue is probably  timing - that
  named isn't ready.  
 
 Actually, the REQUIRE thing in the /etc/rc.d scripts means if the
 required service is enabled, start it before this one.  It does not
 mean start the required service before this one.  

That's not correct. BEFORE  and  REQUIRE are used by rcorder to
determine the ordering of the scripts without checking if they are
enabled. Actually all scripts get run - if you don't enable ntpdate then
rc.d/ntpdate still runs, but doesn't do anything. 

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


Re: named and ntpd start order in rc.d

2008-12-05 Thread Nerius Landys
 That's not correct. BEFORE  and  REQUIRE are used by rcorder to
 determine the ordering of the scripts without checking if they are
 enabled. Actually all scripts get run - if you don't enable ntpdate then
 rc.d/ntpdate still runs, but doesn't do anything.

My mistake.  But then I don't understand why enabling ntpdate in
rc.conf fixed my problem of ntpd's DNS resolver child process not
completing (returning).  My guess was that NETWORK and named were
guaranteed getting run before ntpd if I included ntpdate in rc.conf.
I thought that perhaps NETWORK and named were not getting run before
ntpd in my particular case when I didn't include ntpdate in rc.conf.
But according to your information NETWORK and named scripts would get
run before the ntpd script no matter if ntpdate was enabled in rc.conf
or not (because NETWORK and named are required by ntpdate and ntpdate
is required by ntpd).

So why did enabling ntpdate in rc.conf fix my problem?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DVD cloning tool

2008-12-05 Thread Wojciech Puchar


Thought readcd (out of cdrtools) also knew how to read DVD?


at least some time ago i tried - it doesn't read
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: named and ntpd start order in rc.d

2008-12-05 Thread cpghost

RW wrote:

On Fri, 21 Nov 2008 16:47:50 -0800
Nerius Landys [EMAIL PROTECTED] wrote:

  

I believe that the fix for this is to add a dependency
to /etc/rc.d/ntpd script, adding named to REQUIRE section in
comments.  In your opinion, is this a robust fix?  For example the
line in my /etc/rc.d/ntpd script that looks like so:

# REQUIRE: DAEMON ntpdate cleanvar devfs

would be changed to this:

# REQUIRE: DAEMON ntpdate cleanvar devfs named



This shouldn't be needed as ntpd already requires ntpdate and in
turn ntpdate requires named. The issue is probably  timing - that named
isn't ready.

I have a similar issue with PPP not having connected by the time
ntpdate runs , so I just have a script that runs between named and
ntpdate, and blocks waiting for access.
  

Those timing / start-order issues are getting more and more
annoying, IMHO. On my PPPoE / mpd5 connected systems,
it's the same problem:
* openntpd (from ports) can't start, because named is not ready
* pf can't parse /etc/pf.conf because the ng0 interface is not yet there
etc, etc, etc...

Isn't there a generic way to delay some scripts from starting
until a specific subset is ready (say: networking fully up,
and named ready to reply)? Perhaps some keyword or class
to add to a startup script would be nice to have!

Thanks,
--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 [EMAIL PROTECTED]


QT4.5 packages

2008-12-05 Thread Warren Liddell
Does anyone have or know of where to download the pkg files for the 
various Qt4.5 ports as using pkg_add is the only way im able to add them 
atm.

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


custom kernel

2008-12-05 Thread PJ

I'm somewhat perturbed and feeling like somebody is laughing at me or at
all of us.
It used to be fairly easy to install FBSD, but now it seems to be an 
incredibly complicated task. I have installed and reinstalled a

number of distributions from FBSD 4 or earlier up to the present 7.0.
It used to be sysctl would install the minimal system and then I would
add the necessary programs and build a custom kernel. It was time 
consuming but hardly problematic.

Now, I am trying to build another fresh install of v.7.0 and guess
what, I am doing it on an identical motherboard with the the same
peripherals as another box with the only differences being a cpu of 3ghz
on the older box and 2.4 on the new one (both Pentium 4) and slightly
different HDDs.
I did exactly the same on all installations but now, as previously and
according to the Handbook, make buildkernel KERNCONF=MYKERNEL stops with
errors.
I tried the conf MYKERNEL opption and all it did was point me to the 
compile directory and said not to forget to do make cleandepend  make 
depend. A little strange, that, never had that happen before... but, ok, 
did it. then ran make buildkernel KERNCONF=MYKERNEL and, surprise ! same 
shit.
Now, let me mention that I had previously installed 7.0 on the problem 
computer with no problem then decided I did not need it and got rid of 
it, that is, cleaned the disk and used it to store files.I now 
reconfigured the computer and set it up with 4 disks - 2 80Gb configured 
as Raid1 (mirror) and bootable. Works fine when FBSD installed. Other 
disks not configured or used yet. I installed the minimal system, did 
portsnap extract, installed bash and cvsup-without-gui, set up the 
ports-supfile and the standard-supfile; did cvsup -g -L 2 
standard-supfile and retrived the source files, all of them.I then 
edited :MYKERNEL and started the make buildkernel process. 
wait...wait...wait..

terminates with
linking kernel
uvscom.o (.text+0x293): In function 'uvscom_attach' ;
:undefined reference to 'ucom_attach' etc.
*** Error code 1

did I do something wrong? system is still on and functioning but how do 
I make the custom kernel?


this is my kernel file:

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.7 2008/04/10 22:09:22 
rwatson Exp $


cpu I686_CPU
ident   MYKERNEL

# To statically compile in device wiring instead of /boot/device.hints
#hints  GENERIC.hints   # Default places to look for 
devices.

#makeoptionsDEBUG=-g# Build kernel with gdb(1) debug symbols

options SCHED_4BSD  # 4BSD scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
#optionsINET6   # IPv6 communications protocols
options SCTP# Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
#optionsUFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL# Enable gjournal-based UFS journaling
options MD_ROOT # MD is a potential root device
#optionsNFSCLIENT   # Network Filesystem Client
#optionsNFSSERVER   # Network Filesystem Server
#optionsNFSLOCKD# Network Lock Manager
#optionsNFS_ROOT# NFS usable as /, requires NFSCLIENT
#optionsMSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
#optionsPROCFS  # Process filesystem (requires PSEUDOFS)
#optionsPSEUDOFS# Pseudo-filesystem framework
#optionsGEOM_PART_GPT   # GUID Partition Tables.
#optionsGEOM_LABEL  # Provides labelization
options COMPAT_43TTY# BSD 4.3 TTY compat [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
#optionsKTRACE  # ktrace(1) support
#optionsSTACK   # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
#optionsADAPTIVE_GIANT  # Giant mutex is adaptive.
options STOP_NMI# Stop CPUS using NMI instead of IPI
#options

Re: custom kernel

2008-12-05 Thread Patrick Lamaizière
Le Fri, 05 Dec 2008 20:10:19 -0500,
PJ [EMAIL PROTECTED] a écrit :

 linking kernel
 uvscom.o (.text+0x293): In function 'uvscom_attach' ;
 :undefined reference to 'ucom_attach' etc.
 *** Error code 1
 
 did I do something wrong? system is still on and functioning but how
 do I make the custom kernel?
 
 this is my kernel file:

 #device ucom  # Generic com ttys
 device uvscom # USB serial support for DDI pocket's PHS 

The device uvscom needs ucom...

Anyway you can use the GENERIC kernel and just kldload the
necessary modules.

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


Re: custom kernel

2008-12-05 Thread Michael Powell
PJ wrote:

[snip]

Read carefully:

 uvscom.o (.text+0x293): In function 'uvscom_attach' ;
 :undefined reference to 'ucom_attach' etc.
 *** Error code 1

See further down at bottom.

 did I do something wrong? system is still on and functioning but how do
 I make the custom kernel?

The canonical first thing to do is to see if your system will build GENERIC.
If it does not you have done something to the OS. If GENERIC builds OK
and your custom kernel config will not, there is something broken with your
config file. Remember to cd /usr/obj and rm -rf usr or make clean first. 
Always clean out the stale leftovers prior to build.

 this is my kernel file:
 
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.7 2008/04/10 22:09:22
 rwatson Exp $

I'm at home and only have two GENERIC conf files to look at.
RELENG_7:

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.15 2008/11/24 00:52:26 yongari 
Exp $

RELENG_7_0:

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.2.2.1 2008/02/06 03:24:28 
scottl Exp $

 
 cpu   I686_CPU
 ident MYKERNEL
 
 # To statically compile in device wiring instead of /boot/device.hints
 #hintsGENERIC.hints # Default places to look for 
 devices.
[snip]
 # USB Serial devices
 #device   ucom# Generic com ttys
[snip]
 deviceuvscom  # USB serial support for DDI pocket's 
 PHS
[snip]

Read the error message. It is failing to build uvscom because uvscom
depends on #device ucom and you have ucom commented out. 


-Mike



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


Re: custom kernel

2008-12-05 Thread PJ

Michael Powell wrote:

PJ wrote:

[snip]

Read carefully:


uvscom.o (.text+0x293): In function 'uvscom_attach' ;
:undefined reference to 'ucom_attach' etc.
*** Error code 1


See further down at bottom.


did I do something wrong? system is still on and functioning but how do
I make the custom kernel?


The canonical first thing to do is to see if your system will build GENERIC.
If it does not you have done something to the OS. If GENERIC builds OK
and your custom kernel config will not, there is something broken with your
config file. Remember to cd /usr/obj and rm -rf usr or make clean first. 
Always clean out the stale leftovers prior to build.



this is my kernel file:

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.7 2008/04/10 22:09:22
rwatson Exp $


I'm at home and only have two GENERIC conf files to look at.
RELENG_7:

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.15 2008/11/24 00:52:26 yongari 
Exp $

RELENG_7_0:

# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.2.2.1 2008/02/06 03:24:28 
scottl Exp $

 

cpu I686_CPU
ident   MYKERNEL

# To statically compile in device wiring instead of /boot/device.hints
#hints  GENERIC.hints   # Default places to look for 
devices.

[snip]

# USB Serial devices
#device ucom# Generic com ttys

[snip]

device  uvscom  # USB serial support for DDI pocket's PHS

[snip]

Read the error message. It is failing to build uvscom because uvscom
depends on #device ucom and you have ucom commented out. 



-Mike



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



Can't u;nderstand where this stuff came from... I normally had that 
stuff commented out. I even found the same error on the older, 
functional machine's kernel which had compiled correctly there was 
another error in that kernel at the very beginning - the SCHEDULE_4BSD 
was SCHEDULE_UNO or something like that.. but it was commented 
out...perhaps these glitches happened through some kind of accidental 
typos in vi


Anywasy, I think that will fix things... thank you for the observations.
Phil Jourdan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cups issue, unsupported format

2008-12-05 Thread af300wsm

Hi,

I'm working on getting cups working and I've installed the hplip port and  
the cups program used that to install the printer. At least, there was  
an HPLIP in a list in one of the pages during the setup. My printer is an  
old HP LaserJet 4+ which I've connected through the parallel port. My URI  
for the printer is parallel:/dev/lp0. When I went to do the test page I got  
this error, Unsupported format 'application/postscript'. Here's the  
problem, I chose a driver which, though I don't remember the full string in  
cups, was a 4/5 PCL driver. So, why is it trying to print using postscript?


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


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread RW
On Fri, 5 Dec 2008 19:36:45 +0100 (CET)
Wojciech Puchar [EMAIL PROTECTED] wrote:

  The userland win32 API might be rather unpleasant but I was
  surprised to learn to driver interface in the kernel is actually
  quite nice, and
 
 whatever ideas/solutions microsoft do it's f..ked up or stolen.
 the stolen case is actually better :)

They poached VMX developers from DEC and got sued over it IIRC. From
what I've read it's supposed to be a pretty good hybrid kernel.

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


Re: named and ntpd start order in rc.d

2008-12-05 Thread RW
On Sat, 06 Dec 2008 01:11:38 +0100
cpghost [EMAIL PROTECTED] wrote:

 RW wrote:

  I have a similar issue with PPP not having connected by the time
  ntpdate runs , so I just have a script that runs between named and
  ntpdate, and blocks waiting for access.

 Those timing / start-order issues are getting more and more
 annoying, IMHO. On my PPPoE / mpd5 connected systems,
 it's the same problem:
  * openntpd (from ports) can't start, because named is not ready
  * pf can't parse /etc/pf.conf because the ng0 interface is not yet
 there etc, etc, etc...
 
 Isn't there a generic way to delay some scripts from starting
 until a specific subset is ready (say: networking fully up,
 and named ready to reply)? Perhaps some keyword or class
 to add to a startup script would be nice to have!

I don't think there's a generic solution, but I've pasted my own
script below, I think if you set networkwait_ping_hosts to a
name, rather than IP addresses, it might solve both your
problems. You'll be polling on dns, and then resyncing the pf rules.

$ cat /usr/local/etc/rc.d/networkwait
#!/bin/sh
#
# PROVIDE: networkwait
# REQUIRE: named
# BEFORE:  ntpdate

. /etc/rc.subr

networkwait_enable=${networkwait_enable:-NO}
name=networkwait
rcvar=`set_rcvar`
stop_cmd=:
start_cmd=networkwait_start   


networkwait_start(){

   if [ $networkwait_ping_hosts ] ; then
  host_list=${networkwait_ping_hosts}
   else
  # No hosts supplied - use external nameservers
  host_list=`awk '/^ *nameserver/ {print $2}
' /etc/resolv.conf | grep -E -v '^127\.0+\.0+\.0*1'`
   fi
   echo -n Waiting for network access ... 
   while true ; do
  for inet_host in $host_list ; do
 if ping -nc1  $inet_host 21  /dev/null ; then
echo ping to ${inet_host} succeeded.
# Re-Sync ipfilter and pf in case
# they had failed DNS lookups
/etc/rc.d/ipfilter resync
/etc/rc.d/pf resync
exit 0
 fi
  done
  sleep 5
   done
}

load_rc_config ${name}
run_rc_command $1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sticky mouse pointer on machine with high load

2008-12-05 Thread Yuri
Often when my machine has load is 2 or higher it becomes very visible 
that mouse motion isn't smooth. Mouse moves in a series of quite long jumps.
I believe this effect is especially pronounced when some applications 
read/write a lot of files.


My understanding is that this is because signal from mouse gets stuck in 
the fifo somewhere and not processed by x-server in time.


Is there any solution to this problem?

I never saw such problem on Windows though I didn't touch Windows PC for 
many years now.


Yuri

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


Re: what is umtxn

2008-12-05 Thread RW
On Fri, 05 Dec 2008 21:16:12 +0200
Giorgos Keramidas [EMAIL PROTECTED] wrote:

 On Fri, 5 Dec 2008 19:35:34 +0100 (CET), Wojciech Puchar
 [EMAIL PROTECTED] wrote:
  i've got once my asterisk process in umtxn state (as top shows)
  using 100% CPU.
 
  it was still answering calls.
 
  what's umtxn exactly?
 
 A kernel lock operation.  ``procstat -k PID'' may show more details
 about the in-kernel stack of the process that spins on the lock.
 

What's procstat?  find isn't finding it, neither is make search in
ports. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: what is umtxn

2008-12-05 Thread Bruce Cran
On Sat, Dec 06, 2008 at 03:36:29AM +, RW wrote:

 What's procstat?  find isn't finding it, neither is make search in
 ports. 

It's a new utility that was introduced into -CURRENT in the past year
and seems to have been MFC'd at least to 7.x. It should be in
/usr/bin

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


Re: custom kernel

2008-12-05 Thread Manolis Kiagias
PJ wrote:
 Michael Powell wrote:
 PJ wrote:

 [snip]

 Read carefully:

 uvscom.o (.text+0x293): In function 'uvscom_attach' ;
 :undefined reference to 'ucom_attach' etc.
 *** Error code 1

 See further down at bottom.

 did I do something wrong? system is still on and functioning but how do
 I make the custom kernel?

 The canonical first thing to do is to see if your system will build
 GENERIC.
 If it does not you have done something to the OS. If GENERIC builds OK
 and your custom kernel config will not, there is something broken
 with your
 config file. Remember to cd /usr/obj and rm -rf usr or make clean
 first. Always clean out the stale leftovers prior to build.

 this is my kernel file:

 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.7 2008/04/10 22:09:22
 rwatson Exp $

 I'm at home and only have two GENERIC conf files to look at.
 RELENG_7:

 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.15 2008/11/24
 00:52:26 yongari Exp $

 RELENG_7_0:

 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.2.2.1 2008/02/06
 03:24:28 scottl Exp $

  
 cpuI686_CPU
 identMYKERNEL

 # To statically compile in device wiring instead of /boot/device.hints
 #hintsGENERIC.hints# Default places to look for
 devices.
 [snip]
 # USB Serial devices
 #deviceucom# Generic com ttys
 [snip]
 deviceuvscom# USB serial support for DDI pocket's PHS
 [snip]

 Read the error message. It is failing to build uvscom because uvscom
 depends on #device ucom and you have ucom commented out.

 -Mike



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


 Can't u;nderstand where this stuff came from... I normally had that
 stuff commented out. I even found the same error on the older,
 functional machine's kernel which had compiled correctly there was
 another error in that kernel at the very beginning - the SCHEDULE_4BSD
 was SCHEDULE_UNO or something like that.. but it was commented
 out...perhaps these glitches happened through some kind of accidental
 typos in vi

 Anywasy, I think that will fix things... thank you for the observations.
 Phil Jourdan
Also, to avoid the next frustration:

Either comment out

options SCTP

or, put back in:

options INET6

or it will stop again :) Just a quick observation from reading your
configuration file.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Downgrading Ports

2008-12-05 Thread Benjamin Lee
On 12/04/08 02:53, Marcel Grandemange wrote:
 Good Day Guys.

 Im wondering how can one downgrade ports?
 And I don't mean installed ports (portdowngrade) , I mean the actual 
 ports system.

 I have found the freeradius2 port to be broken and can't install it 
 therefore I would like to downgrade ports to try install an older version.


 Any advise?
 
 See portdowngrade(1) -- it doesn't do what you think it does.  Use it to
 fetch an earlier version of the port and then reinstall it however you wish,
 e.g. using portupgrade(1).
 
 
 [EMAIL PROTECTED] /usr/ports/net/freeradius2]# portdowngrade freeradius2
 
 portdowngrade 0.6 by Heiner Eichmann
 Please note, that nothing is changed in the ports tree
 unless it is explicitly permitted in step 6!
 
 Seeking port freeradius2 ... not found
 [EMAIL PROTECTED] /usr/ports/net/freeradius2]# ls
 Makefiledistinfofiles   pkg-descr   pkg-plist
 work
 
 I have used portdowngrade successfully on ports already installed, but
 doesn't work on a port not installed yet.
 Am I doing something wrong?
 

The port name is 'freeradius' (without the trailing 2):

$ sudo portdowngrade freeradius

portdowngrade 0.6 by Heiner Eichmann
Please note, that nothing is changed in the ports tree
unless it is explicitly permitted in step 6!

Seeking port freeradius ...

Found several matches:
1: net/freeradius
2: net/freeradius-mysql
3: net/freeradius2

Please choose one:


-- 
Benjamin Lee
http://www.b1c1l1.com/



signature.asc
Description: OpenPGP digital signature


Re: UFS partitioning

2008-12-05 Thread perryh
 Dangerous is probably overstating the issue a bit ...

AFAIK the danger is that someone boots the machine with an
installer for some other OS, and that installer treats the
disk as unformatted -- hence obviously containing nothing
important -- because it doesn't have a recognizable MBR.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: QT4.5 packages

2008-12-05 Thread perryh
Warren Liddell [EMAIL PROTECTED] wrote:

 Does anyone have or know of where to download the pkg files
 for the various Qt4.5 ports as using pkg_add is the only way
 im able to add them atm.

You can find many packages for several releases under
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]