Re: freebsd - for the win

2010-06-12 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/06/2010 04:33:02, Randal L. Schwartz wrote:
 
 I'm working on a project for my client, and I spent the better part of
 two days trying to get my laptop running OSX to have the right
 combination of BerkeleyDB and Perl modules to build what I wanted.
 Turns out my Perl 5.10.1 install was incompatible with BerkeleyDB on
 OSX, but the macports version 5.8.9 was also in the wrong path, ugh.
 
 Finally, I said hey, freebsd would do better here.
 
 Within a half day, I had a freebsd VMWare image up and running,
 executing precisely the code I wanted, and I was able to take my
 development to the next round.
 
 FreeBSD.  The Ports Just Work.  Nothing else like it.
 

Absolutely.  Especially when you compare it to MacPorts and consider the
disparity in numbers of users between MacOS and FreeBSD.  Given that the
ports is maintained by a bunch of volunteers basically in their spare
time, the fact that it is consistently of good quality and that the
popular packages are generally updated to the latest available versions
within a couple of weeks -- frequently within a few hours --
it's a pretty astonishing accomplishment.

Cheers,

Matthew

Mind you, I am vaguely starting to wonder when perl5.12 is going to hit
the tree...

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

iEYEARECAAYFAkwTMgsACgkQ8Mjk52CukIyLFgCeIck3R37I7mv+ZJZ64KH07jXH
RSUAoJKY6aucSq+3ty+6By4P0xlkbivN
=ZnT/
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How many states can pf sanely handle

2010-06-12 Thread krad
Hi,

I have a dns server that receives a fair amount of traffic. I was
implementing a pf based firewall on it and ran into a few issues. Basically
there is a ridiculously high number of states generated. I just wondered
what are the upper limits of what pf can handle, and what the memory
requirements are?

to get an idea of the traffic levels (this is about 30% of peak time)

# pfctl -z ; sleep 60 ; pfctl -sr -v

pass in quick on bce0 proto udp from dns to any port = domain no state
  [ Evaluations: 284852Packets: 209701Bytes: 13789905States:
0 ]
  [ Inserted: uid 0 pid 95645 ]
pass out quick on bce0 proto udp from any port = domain to dns no state
  [ Evaluations: 309780Packets: 207705Bytes: 56264916States:
0 ]
  [ Inserted: uid 0 pid 95645 ]
pass out quick on bce0 proto udp from any to any port = domain no state
  [ Evaluations: 50734 Packets: 50734 Bytes: 3933868 States:
0 ]
  [ Inserted: uid 0 pid 95645 ]
pass in quick on bce0 proto udp from any port = domain to any no state
  [ Evaluations: 51290 Packets: 48056 Bytes: 9106259 States:
0 ]
  [ Inserted: uid 0 pid 95645 ]

These rules aren't exactly ideal but they do stop an insane amount of states
being generated, as every dns request generates one inbound rule, then
potentially multiple outbound ones depending on whether you get a cache hit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE:resize freebsd slice

2010-06-12 Thread Giorgos Tsiapaliokas
i have a problem while i am trying to restore the dump files..

i followed your instructions but when i give

restore -rf /backup/root.dump i receive the following error:

expected next file 188417,got 4


and the output of ls in the /mnt directory is:
.snap
restoresymtable
terietor


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


Re: resize freebsd slice

2010-06-12 Thread Rolf Nielsen

2010-06-12 15:50, Giorgos Tsiapaliokas skrev:

i have a problem while i am trying to restore the dump files..

i followed your instructions but when i give

restore -rf /backup/root.dump i receive the following error:

expected next file 188417,got 4


and the output of ls in the /mnt directory is:
.snap
restoresymtable
terietor


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





Either you executed dump without the L flag when the filesystem was 
mounted rw or, if you did give the L flag, some file changed while dump 
was creating the snapshot from which to create the dump. When dumping / 
it's ALWAYS safer to have it mounted read only. In my first reply, I 
suggested you boot into single user and create the dump from there.


I've had the same type of message several times, but I've never found 
them to cause any harm. However, I never dump sensitive data from a 
read/write mounted fs. If possible I re-mount it read only, otherwise I 
boot into single user.


And to be rudely honest: HAVE YOU READ ANYTHING ANYONE HAS WRITTEN?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: resize freebsd slice

2010-06-12 Thread Polytropon
On Sat, 12 Jun 2010 04:32:17 +0300, Giorgos Tsiapaliokas terie...@gmail.com 
wrote:
 i have a problem while i am trying to restore the dump files..
 
 i followed your instructions but when i give
 
 restore -rf /backup/root.dump i receive the following error:
 
 expected next file 188417,got 4

This *may* be okay, but it would be good if you would check the
recent mailing list archives; as far as I remember, it has been
discussed in detail (and with examples) about how to clone a
system from one disk to another, also using dump + restore.



 and the output of ls in the /mnt directory is:
 .snap
 restoresymtable
 terietor

I'm not sure what the third entry should be; can you provide
ls -laF /mnt/ and additionally check that your root.dump has
a size corresponding to the occupation of the / partition the
dump was taken from?

Remeber: Only a working backup is a (good) backup.

According to man restore:

Note that restore leaves a file restoresymtable in the root
directory to pass information between incremental restore passes.
This file should be removed when the last incremental has been
restored.

Did you make a full or incremental dump?



 what is going on?




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


RE:resize freebsd slice

2010-06-12 Thread Giorgos Tsiapaliokas
YES i have read what everyone said and yes i gave the L command when i
dumped the / but i didn't mounted / as read-only when i made the dump file.

Did you make a full or incremental dump?

i don't know what u mean but i gave the command:dump -0Lauf
/mnt/hd/FBSD/root.dump /.

the output of the command ls -laF is:



total 1
 drwxr-xr-x 2 root  0 512 Nov 21 2009 ./
 drwxr-xr-x 14 root  0 512 Jun 12 16:51 ../





i have to start the installiation from the begginging right?
the two slices have been merged,my previous system has been erased and my
dump files are corrupted.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: resize freebsd slice

2010-06-12 Thread Polytropon
On Sat, 12 Jun 2010 17:28:49 +0300, Giorgos Tsiapaliokas terie...@gmail.com 
wrote:
 YES i have read what everyone said and yes i gave the L command when i
 dumped the / but i didn't mounted / as read-only when i made the dump file.

That is okay - as long as -L (dump live file system) is given. But
I also do share the opinion to mount the partition I want to dump
as ro, or, more often (due to other technical reasons), don't have
the partition mounted at all, the safest method. (In my case, I'm
booting from a CD or USB stick to enter a simple, but customized
backup environment; partitions of the system aren't mounted, but
that's okay as backup downtime is not an issue. Then, dump files
are written using SSH to a network drive.)


 i don't know what u mean but i gave the command:dump -0Lauf
 /mnt/hd/FBSD/root.dump /.

That's okay, it should have created a usable dump file. Just for
checking, those are the options:
-0: Level 0 dump = full dump
-L: Live dump = create snapshot, then dump from that
-a: Auto-size = write dumpfile until target media is full
-u: Update dumpdates = make entry in /etc/dumpdates
-f: File = which file to dump to.
Looks correct.



 the output of the command ls -laF is:
 
 total 1
  drwxr-xr-x 2 root  0 512 Nov 21 2009 ./
  drwxr-xr-x 14 root  0 512 Jun 12 16:51 ../

Is this the /mnt directory? It appears to be empty - nothing has
been restored to it? That looks wrong (and contradicts the previous
presentation of at least three non-dot entries).

Did you mount your target disk (for the restore) rw into /mnt,
then change into /mnt, and run the restore command from there?

Allow me a final and quite generic note about dumping and restoring:
This is a process handling your precious data. Triple-check everything
you do. It's worth the time and work.



 i have to start the installiation from the begginging right?

I don't think so. If your dump file is intact (check its size -
it should be around 6.5 GB, if I remember correctly).



 the two slices have been merged,my previous system has been erased and my
 dump files are corrupted.

I'm not sure it is corrupted, at least your presentation of the
dump output doesn't seem to indicate that. I assume there's a
problem related to properly restoring the files.



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


Re: freebsd - for the win

2010-06-12 Thread Chad Perrin
On Sat, Jun 12, 2010 at 08:06:52AM +0100, Matthew Seaman wrote:
 
 Absolutely.  Especially when you compare it to MacPorts and consider the
 disparity in numbers of users between MacOS and FreeBSD.  Given that the
 ports is maintained by a bunch of volunteers basically in their spare
 time, the fact that it is consistently of good quality and that the
 popular packages are generally updated to the latest available versions
 within a couple of weeks -- frequently within a few hours --
 it's a pretty astonishing accomplishment.

I don't mean to belittle anyone's accomplishments, of course, but I don't
find it astonishing at all.  FreeBSD's development model is one that
encourages people to develop what they use, and to use what they develop,
and it doesn't exclude people for rules of arbitrary hiring practices.
When your software is developed and/or maintained by way of a more
meritocratic system in which people are eating their own dog food and
the developers/maintainers are self-selected in large part because of
their *interest* in what they develop or maintain, it would be surprising
to me if something like FreeBSD *didn't* end up doing better than
something like MacOS X, which is developed and maintained under an
autocratic model wherein many of the developers and maintainers were
assigned to their respective projects (regardless of interest) after
being hired due to their resume bullet points (regardless of actual
ability).

That's just my perspective.  I suppose yours may differ.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpw78sxaaqIk.pgp
Description: PGP signature


php help, please....

2010-06-12 Thread Gary Kline

a few days ago i got my webserver working.. late last night i
found the following error on my http://www.thought.org page:


Warning: date() [function.date]: It is not safe to rely on the
system's timezone settings. You are *required* to use the
date.timezone setting or the date_default_timezone_set()
function. In case you used any of those methods and you are
still getting this warning, you most likely misspelled the
timezone identifier. We selected 'America/Los_Angeles' for
'PDT/-7.0/DST' instead in
/usr/local/www/apache22/data/randmeditations.php on line 6
  

  as an example of my use of date() is

  $hour = date(H);


can anybody 'splain what suddenly went wrong with my two-year-old 
php script?

gary

ps: FWIW: I am pulling this part from my home page today.  i
figure every 18-30 months pages need updating.  but would shore
like to know wha' happened 



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

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


Re: freebsd - for the win

2010-06-12 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/06/2010 16:38:13, Chad Perrin wrote:
 On Sat, Jun 12, 2010 at 08:06:52AM +0100, Matthew Seaman wrote:

 Absolutely.  Especially when you compare it to MacPorts and consider the
 disparity in numbers of users between MacOS and FreeBSD.  Given that the
 ports is maintained by a bunch of volunteers basically in their spare
 time, the fact that it is consistently of good quality and that the
 popular packages are generally updated to the latest available versions
 within a couple of weeks -- frequently within a few hours --
 it's a pretty astonishing accomplishment.
 
 I don't mean to belittle anyone's accomplishments, of course, but I don't
 find it astonishing at all.  FreeBSD's development model is one that
 encourages people to develop what they use, and to use what they develop,
 and it doesn't exclude people for rules of arbitrary hiring practices.
 When your software is developed and/or maintained by way of a more
 meritocratic system in which people are eating their own dog food and
 the developers/maintainers are self-selected in large part because of
 their *interest* in what they develop or maintain, it would be surprising
 to me if something like FreeBSD *didn't* end up doing better than
 something like MacOS X, which is developed and maintained under an
 autocratic model wherein many of the developers and maintainers were
 assigned to their respective projects (regardless of interest) after
 being hired due to their resume bullet points (regardless of actual
 ability).
 
 That's just my perspective.  I suppose yours may differ.
 

You are entirely correct, as far as MacOS X itself goes, although I
suspect that Apples' core developers are equally as interested in what
they do as FreeBSD's.  (Not least because there is quite a bit of
overlap between those groups.)

MacPorts however is not an official Apple controlled thing (although it
does have Apple's full support).  It's a volunteer project with
maintainers and committers in very much the same roles as the
equivalents for FreeBSD ports.

Given that MacOS X has, what, about 5.8% of the entire world desktop
userbase (compare: Linux 1.2%, FreeBSD not even on the graph according
to Wikipedia:
http://en.wikipedia.org/wiki/Usage_share_of_operating_systems) they have
so many more potential volunteers that even if their volunteering rate
is an order of magnitude less, they'd still come out ahead.

Cheers,

Matthew

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

iEYEARECAAYFAkwTxzcACgkQ8Mjk52CukIxFdQCfUhFjfSJEQeItQTfTNzB3VB7q
Z6oAniJgNZty/3pGatCqYlFrs5PnIJ0Z
=FIZn
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: php help, please....

2010-06-12 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/06/2010 18:26:42, Gary Kline wrote:
 can anybody 'splain what suddenly went wrong with my two-year-old 
 php script?

Simple.  You upgraded to php-5.3.x.  This is a well known gotcha --
php-5.3.x needs to have the timezone set explicitly in
/usr/local/etc/php.ini.  If you haven't got a php.ini, then just copy
one of the sample files, php.ini-production for preference, and edit it
like so (although your timezone is almost certainly not Europe/London,
so substitute accordingly):

% diff -u php.ini-production php.ini
- --- php.ini-production2010-05-31 10:03:32.0 +0100
+++ php.ini 2010-04-27 15:53:52.0 +0100
@@ -1002,7 +1002,7 @@
 [Date]
 ; Defines the default timezone used by the date functions
 ; http://php.net/date.timezone
- -;date.timezone =
+date.timezone = Europe/London

 ; http://php.net/date.default-latitude
 ;date.default_latitude = 31.7667

Cheers,

Matthew

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

iEYEARECAAYFAkwTyKAACgkQ8Mjk52CukIzCegCaAgFCmpJewNjbJJrslNdHGdyq
/fgAnjoCsVwUK/koPT7TzrM26UsXgro3
=06OP
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: php help, please....

2010-06-12 Thread Gary Kline
On Sat, Jun 12, 2010 at 06:49:20PM +0100, Matthew Seaman wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 12/06/2010 18:26:42, Gary Kline wrote:
  can anybody 'splain what suddenly went wrong with my two-year-old 
  php script?
 
 Simple.  You upgraded to php-5.3.x.  This is a well known gotcha --
 php-5.3.x needs to have the timezone set explicitly in
 /usr/local/etc/php.ini.  If you haven't got a php.ini, then just copy
 one of the sample files, php.ini-production for preference, and edit it
 like so (although your timezone is almost certainly not Europe/London,
 so substitute accordingly):
 
 % diff -u php.ini-production php.ini
 - --- php.ini-production  2010-05-31 10:03:32.0 +0100
 +++ php.ini   2010-04-27 15:53:52.0 +0100
 @@ -1002,7 +1002,7 @@
  [Date]
  ; Defines the default timezone used by the date functions
  ; http://php.net/date.timezone
 - -;date.timezone =
 +date.timezone = Europe/London
 
  ; http://php.net/date.default-latitude
  ;date.default_latitude = 31.7667
 
   Cheers,
 
   Matthew



here's what is in my /usr/local/etc/php.ini file as of
moments ago:


[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/Los_Angeles


i hit reload on my broswer and still get the err from date.
the first date is $week = date(w); [[[i think!]]]


then, i tried [again] what Robert suggested, and my problems
vanished.  thanks to you both.

$day = date_default_timezone_set(w);
$hour = date_default_timezone_set(H);
$minutes = date_default_timezone_set(i);
$seconds = date_default_timezone_set(s);


back to my re-editing about my cover artist, one Mr Kalin
pretty soon.  once i've cleaned up my home/homepage!, but it
seems strange that php would simply =change= out from under
me.  well, so to speak.  can you suggest any php list that i
should sub to?  i don't always click around to read the
latest and greatest about lang changes.  or fashions and
trends, :_) LOL, but i do my best to read of this kind of
change.  so any list suggestion would be indeed welcome.

gary,

[jack of N trades and maste r of -1. ]

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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

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


Directory Passwords

2010-06-12 Thread Mike Robins
Hi there, I currently am running a FreeBSD/Samba server for my company
with public shares for all of the employees to keep their work related
documents in.  I'm wondering if it is possible for me to keep these shares
public and add a password to each sub directory in the public share?  This
would mean I could give each department a sub directory that only they
would know the password to and keep the sensitive documents away from
public view.  Any help you could offer would be greatly appreciated, and if
it is not possible, it would be a nifty feature to have for companies like
ours in upcoming releases of FreeBSD.

-- 
Mike Robins
Health  Safety Officer
Vivocore
mi...@cancog.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd - for the win

2010-06-12 Thread Tim Judd
On 6/12/10, Matthew Seaman m.sea...@infracaninophile.co.uk wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 12/06/2010 16:38:13, Chad Perrin wrote:
 On Sat, Jun 12, 2010 at 08:06:52AM +0100, Matthew Seaman wrote:

 Absolutely.  Especially when you compare it to MacPorts and consider the
 disparity in numbers of users between MacOS and FreeBSD.  Given that the
 ports is maintained by a bunch of volunteers basically in their spare
 time, the fact that it is consistently of good quality and that the
 popular packages are generally updated to the latest available versions
 within a couple of weeks -- frequently within a few hours --
 it's a pretty astonishing accomplishment.

 I don't mean to belittle anyone's accomplishments, of course, but I don't
 find it astonishing at all.  FreeBSD's development model is one that
 encourages people to develop what they use, and to use what they develop,
 and it doesn't exclude people for rules of arbitrary hiring practices.
 When your software is developed and/or maintained by way of a more
 meritocratic system in which people are eating their own dog food and
 the developers/maintainers are self-selected in large part because of
 their *interest* in what they develop or maintain, it would be surprising
 to me if something like FreeBSD *didn't* end up doing better than
 something like MacOS X, which is developed and maintained under an
 autocratic model wherein many of the developers and maintainers were
 assigned to their respective projects (regardless of interest) after
 being hired due to their resume bullet points (regardless of actual
 ability).

 That's just my perspective.  I suppose yours may differ.


 You are entirely correct, as far as MacOS X itself goes, although I
 suspect that Apples' core developers are equally as interested in what
 they do as FreeBSD's.  (Not least because there is quite a bit of
 overlap between those groups.)

 MacPorts however is not an official Apple controlled thing (although it
 does have Apple's full support).  It's a volunteer project with
 maintainers and committers in very much the same roles as the
 equivalents for FreeBSD ports.

 Given that MacOS X has, what, about 5.8% of the entire world desktop
 userbase (compare: Linux 1.2%, FreeBSD not even on the graph according
 to Wikipedia:
 http://en.wikipedia.org/wiki/Usage_share_of_operating_systems) they have
 so many more potential volunteers that even if their volunteering rate
 is an order of magnitude less, they'd still come out ahead.


These market statistics are pointless.  The numbers are based on
people reporting their OS and usage.  A system like Microsoft or Apple
can use a unique host id when checking for system updates which can
tabulate this data.  Linux is possible to do same, I don't voluntarily
run linux so I don't know it as much as I do BSD.  However, on BSD, we
have to purposely select, download, configure and use a product to
track, I know there are large corporations that use BSD (in one shape
or form) for their OS, it's just not reported.


I check the market share/statistics every now and then to see what the
trend is, but I consider them very one-sided and personally very
useless to show the actual usage.

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


Re: freebsd - for the win

2010-06-12 Thread Chip Camden
On Jun 12 2010 13:53, Tim Judd wrote:
 
 These market statistics are pointless.  The numbers are based on
 people reporting their OS and usage.  A system like Microsoft or Apple
 can use a unique host id when checking for system updates which can
 tabulate this data.  Linux is possible to do same, I don't voluntarily
 run linux so I don't know it as much as I do BSD.  However, on BSD, we
 have to purposely select, download, configure and use a product to
 track, I know there are large corporations that use BSD (in one shape
 or form) for their OS, it's just not reported.
 
 
 I check the market share/statistics every now and then to see what the
 trend is, but I consider them very one-sided and personally very
 useless to show the actual usage.
 
 My 2 cents.

Call me fatalistic, but I think there is a direct relationship between
FreeBSD's high quality and it's lack of popularity.  If it catered to the
common herd, its compromises would be many.

-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd - for the win

2010-06-12 Thread Charlie Kester

On Sat 12 Jun 2010 at 13:12:55 PDT Chip Camden wrote:


Call me fatalistic, but I think there is a direct relationship between
FreeBSD's high quality and it's lack of popularity.  If it catered to
the common herd, its compromises would be many.



I think we're straying from the original topic, but I agree. 


I worked at Microsoft Developer Support in a previous life, beginning at
the time that Visual C++ and MFC were first introduced.  One of
Microsoft's big selling points was what they called wizards --
basically, a set of simple, dialog-based code-generation tools. What I
observed, over and over again, is that people would use the wizards to
create simple MFC applications and then get hopelessly stuck as soon as
they needed to do something the wizards or the MFC framework didn't
easily provide.  All the wizards had accomplished was to move the point
where people got stuck; they hadn't done anything to increase people's
understanding of how MFC-based code worked or how best to customize it.
What the wizards did accomplish was to bring in a whole bunch of new
customers who were encouraged to think of themselves as MFC programmers,
without requiring them to have even the most elementary competence in
MFC.

I'm reminded of this whenever I see proposals to make the FreeBSD system
install and configuration more graphical and user-friendly.   Same
goes for the ports system.

As one of my old colleagues used to say, There are no shortcuts to the
righthand side of the learning curve.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


detached a mounted ufs filesystem

2010-06-12 Thread Xihong Yin
I accidentally detached my usb external hard drive without umount it. The hard 
driver filesysystem is ufs. Now I can't mount it because I can't see the 
slices. What I get is only da0 and da0a in the /dev directory. Is there a way 
to fix the filesystem?

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


Re: detached a mounted ufs filesystem

2010-06-12 Thread Polytropon
On Sat, 12 Jun 2010 19:46:26 -0400, Xihong Yin x...@gmx.com wrote:
 I accidentally detached my usb external hard drive without
 umount it. The hard driver filesysystem is ufs. Now I can't
 mount it because I can't see the slices. What I get is only
 da0 and da0a in the /dev directory. Is there a way to fix
 the filesystem?

First of all, what does

# fdisk da0

say? Has there already been a try to run fsck for this disk?

Which layout (slices, partitions) should the disk contain?

In case you lost just a partition table, install the program
testdisk from ports or packages.

If you don't have a backup of the data on the disk, keep in mind
that everything you do is basically able to do more damage. If
you have enough hard disk space, make a dd copy of the whole disk
first and continue working with this 1:1 copy.

Before you start using forensic tools, you should try to get
the disk back into action. If this fails, we'll talk about how
to recover files. :-)





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


Re: freebsd - for the win

2010-06-12 Thread Chad Perrin
On Sat, Jun 12, 2010 at 06:43:19PM +0100, Matthew Seaman wrote:
 On 12/06/2010 16:38:13, Chad Perrin wrote:
  
  I don't mean to belittle anyone's accomplishments, of course, but I don't
  find it astonishing at all.  FreeBSD's development model is one that
  encourages people to develop what they use, and to use what they develop,
  and it doesn't exclude people for rules of arbitrary hiring practices.
  When your software is developed and/or maintained by way of a more
  meritocratic system in which people are eating their own dog food and
  the developers/maintainers are self-selected in large part because of
  their *interest* in what they develop or maintain, it would be surprising
  to me if something like FreeBSD *didn't* end up doing better than
  something like MacOS X, which is developed and maintained under an
  autocratic model wherein many of the developers and maintainers were
  assigned to their respective projects (regardless of interest) after
  being hired due to their resume bullet points (regardless of actual
  ability).
 
 You are entirely correct, as far as MacOS X itself goes, although I
 suspect that Apples' core developers are equally as interested in what
 they do as FreeBSD's.  (Not least because there is quite a bit of
 overlap between those groups.)

The MacOS X core developers are pretty much working alone, though, which
does tend to give popular open source projects like FreeBSD a bit of an
advantage in that regard.  I'm also pretty sure that MacOS X doesn't
benefit from the same percentage of core developers who are *personally*
invested the way FreeBSD core developers are.


 
 MacPorts however is not an official Apple controlled thing (although it
 does have Apple's full support).  It's a volunteer project with
 maintainers and committers in very much the same roles as the
 equivalents for FreeBSD ports.

True.  I wonder if the level of volunteer interest is as high for a
proprietary OS.  Do you know of any statistics for that?


 
 Given that MacOS X has, what, about 5.8% of the entire world desktop
 userbase (compare: Linux 1.2%, FreeBSD not even on the graph according
 to Wikipedia:
 http://en.wikipedia.org/wiki/Usage_share_of_operating_systems) they have
 so many more potential volunteers that even if their volunteering rate
 is an order of magnitude less, they'd still come out ahead.

As someone else mentioned, those statistics tend to favor those who
prefer to control their software even after they've distributed it to
others -- *not* open source software, in other words.

. . . and, given that I suspect most people are less interested in
volunteering for supporting a closed source, proprietary system (yes, I'm
aware Darwin is open source, but the OS as a whole is not), I believe it
likely that the volunteer rate is about an order of magnitude or so less
than for FreeBSD (all else being equal).

All of this is guesswork and conjecture, though.  Take it for what it's
worth.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpmIbtNIqBNp.pgp
Description: PGP signature


Re: freebsd - for the win

2010-06-12 Thread Chad Perrin
On Sat, Jun 12, 2010 at 01:12:55PM -0700, Chip Camden wrote:
 
 Call me fatalistic, but I think there is a direct relationship between
 FreeBSD's high quality and it's lack of popularity.  If it catered to the
 common herd, its compromises would be many.

I believe there is such a relationship, too.  I think the obvious way to
interpret this recognition of the relationship is as a causal
relationship where lack of popularity is what (helps/makes) FreeBSD
maintain higher quality, but I think that's mostly the wrong way around.

Rather, it is the focus on quality over quantity that keeps it
unpopular (relative to other OSes, anyway).  I also believe that is the
correct decision, without reservation.  There are things that could be
done to improve FreeBSD's suitability and attractiveness to a wider
audience without sacrificing that focus on quality at all -- that could,
in fact, improve that attractiveness while serving the focus in quality.
Such things tend to get neglected, though, and I think it is in part
because of a negative reaction to the idea that populism involves
sacrifices of quality.

Popularity, per se, does not result in poorer quality.  Populism,
however, does -- and both greater popularity *and* a desire for greater
popularity can create populism.  Note that I'm using the term populism
in a pejorative, apolitical sense, and not in the sense of advocacy for
the rights of the people, et cetera.

Anyway . . . for my OS of choice (FreeBSD at the moment), I'd much rather
err on the side of elitism and quality than on that of egalitarianism and
quantity.  I just find the occasional statement (which I do *not* think
is what you were saying) that we should actively *avoid* popularity for
the sake of quality quite annoying.  I just find the occasional statement
(which I do *not* think is what you were saying) that we should actively
*avoid* popularity for the sake of quality . . . well, I find it quite
annoying.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpu8tdRj56MK.pgp
Description: PGP signature


Re: freebsd - for the win

2010-06-12 Thread Chad Perrin
On Sat, Jun 12, 2010 at 03:51:32PM -0700, Charlie Kester wrote:
 
 I worked at Microsoft Developer Support in a previous life, beginning at
 the time that Visual C++ and MFC were first introduced.  One of
 Microsoft's big selling points was what they called wizards --
 basically, a set of simple, dialog-based code-generation tools. What I
 observed, over and over again, is that people would use the wizards to
 create simple MFC applications and then get hopelessly stuck as soon as
 they needed to do something the wizards or the MFC framework didn't
 easily provide.  All the wizards had accomplished was to move the point
 where people got stuck; they hadn't done anything to increase people's
 understanding of how MFC-based code worked or how best to customize it.
 What the wizards did accomplish was to bring in a whole bunch of new
 customers who were encouraged to think of themselves as MFC programmers,
 without requiring them to have even the most elementary competence in
 MFC.
 
 I'm reminded of this whenever I see proposals to make the FreeBSD system
 install and configuration more graphical and user-friendly.   Same
 goes for the ports system.

I understand that point of view, and I agree as far as it goes.  I find
no particular value in adding gradients and clicky mouse-operated buttons
to an OS installer.  In fact, that sort of thing tends to slow me down
significantly, interfering with the efficiency of the installation
process.

What I *do* find to be of value, however, is improving the installation
process so that it is clearer what is going on at each step and improving
the efficiency of it without damaging its flexibility.  I don't have any
problem with making it easier for a new user to understand and use, as
long as it doesn't interfere with the suitability for experts who don't
care about whooshing noises, 3D animations, helpful cartoon characters,
and the ability to use a mouse where it's not really needed.  In fact, I
think the world would be a better place if more people used FreeBSD,
almost regardless of their levels of technical expertise -- as long as
the OS doesn't start catering to their demands for Clippy and spinning
logos that take three minutes to load.


 
 As one of my old colleagues used to say, There are no shortcuts to the
 righthand side of the learning curve.

True, of course.  I don't know how exactly you mean your statements to
come off, but I feel compelled to point out that this doesn't exclude the
occasional usefulness of giving some shortcuts between one (limited)
learning curve and another (far less limited) learning curve, though, as
we get if the path from MS Windows to FreeBSD (for instance) is made a
little clearer.  This is, after all, why we have things like quick
introductions to programming languages: to help people do something like
learn how to program in Common Lisp after having spent several years
screwing around with VB.NET (for a particularly egregious example).  Such
a move from one learning curve to another can be a real eye-opener, and
might result in eventually producing the next FreeBSD core developer.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpqNjaglYH8G.pgp
Description: PGP signature


Re: freebsd - for the win

2010-06-12 Thread Michelle Konzack
Hello Charlie Kester,

Am 2010-06-12 15:51:32, hacktest Du folgendes herunter:
 I worked at Microsoft Developer Support in a previous life, beginning at
 the time that Visual C++ and MFC were first introduced.

Hahaha, you where Killed by a Microsoft Customer...

And when you knoked at the door of god, he sent you back to earth to do
it better using now FreeBSD...  ;-)

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd - for the win

2010-06-12 Thread Charlie Kester

On Sat 12 Jun 2010 at 18:17:22 PDT Michelle Konzack wrote:

Hello Charlie Kester,

Am 2010-06-12 15:51:32, hacktest Du folgendes herunter:

I worked at Microsoft Developer Support in a previous life, beginning at
the time that Visual C++ and MFC were first introduced.


Hahaha, you where Killed by a Microsoft Customer...

And when you knoked at the door of god, he sent you back to earth to do
it better using now FreeBSD...  ;-)


Yeah, something like that.  I'm doing the Lord's work now.  :)

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


Re: detached a mounted ufs filesystem

2010-06-12 Thread Xihong Yin
'fdisk /dev/da0' output is

*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=14593 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
 start 63, size 234436482 (114470 Meg), flag 80 (active)
 beg: cyl 0/ head 1/ sector 1;
 end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED

I tried 'fsck_ufs /dev/da0', it says

** /dev/da0
Cannot find file system superblock
ioctl (GCINFO): Inappropriate ioctl for device
fsck_ufs: /dev/da0: can't read disk label

I forget what layout the disk has. Normally I used /dev/da0s1d to mount the 
disk.

What the next step should I do?

Thanks,



- Original Message -
From: Polytropon
Sent: 06/12/10 08:16 PM
To: Xihong Yin
Subject: Re: detached a mounted ufs filesystem

On Sat, 12 Jun 2010 19:46:26 -0400, Xihong Yin x...@gmx.com wrote:  I 
accidentally detached my usb external hard drive without  umount it. The hard 
driver filesysystem is ufs. Now I can't  mount it because I can't see the 
slices. What I get is only  da0 and da0a in the /dev directory. Is there a way 
to fix  the filesystem? First of all, what does # fdisk da0 say? Has there 
already been a try to run fsck for this disk? Which layout (slices, partitions) 
should the disk contain? In case you lost just a partition table, install the 
program testdisk from ports or packages. If you don't have a backup of the 
data on the disk, keep in mind that everything you do is basically able to do 
more damage. If you have enough hard disk space, make a dd copy of the whole 
disk first and continue working with this 1:1 copy. Before you start using 
forensic tools, you should try to get the disk back into action. If this fails, 
we'll talk about how to recover files. :-) -- Polytropon M
 agdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... 
___ freebsd-questions@freebsd.org 
mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To 
unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd - for the win

2010-06-12 Thread Brandon Gooch
On Sat, Jun 12, 2010 at 9:00 PM, Charlie Kester corky1...@comcast.net wrote:
 On Sat 12 Jun 2010 at 18:17:22 PDT Michelle Konzack wrote:

 Hello Charlie Kester,

 Am 2010-06-12 15:51:32, hacktest Du folgendes herunter:

 I worked at Microsoft Developer Support in a previous life, beginning at
 the time that Visual C++ and MFC were first introduced.

 Hahaha, you where Killed by a Microsoft Customer...

 And when you knoked at the door of god, he sent you back to earth to do
 it better using now FreeBSD...  ;-)

 Yeah, something like that.  I'm doing the Lord's work now.  :)

Ha ha :) Well, theological debate aside for now, I've always thought
of the BSD license as a sort of ultimate expression of Free Will in
computing...

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


Re: Directory Passwords

2010-06-12 Thread Bob Hall
On Sat, Jun 12, 2010 at 02:52:59PM -0400, Mike Robins wrote:
 Hi there, I currently am running a FreeBSD/Samba server for my company
 with public shares for all of the employees to keep their work related
 documents in.  I'm wondering if it is possible for me to keep these shares
 public and add a password to each sub directory in the public share?  This
 would mean I could give each department a sub directory that only they
 would know the password to and keep the sensitive documents away from
 public view.

Any password known to a group of people quickly becomes public
knowledge. If you really need to restrict access to a share, this won't
do it securely. 

In jobs I've had where it was necessary to restrict access to network
shares, there was a central security server that was aware of me after I
successfully logged on to my computer, and automatically gave me access
to any share that a project manager had given me rights to, while
blocking me from any share to which no project manager had given me
rights. I'm pretty sure you can integrate Samba into such a system, but
how to do it is a Samba related question, not a FreeBSD question.

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