Re: FreeBSD-like linux distro?

2008-06-11 Thread Heikki Suonsivu



Frank Shute wrote:

I didn't think you'd be having the odd game of Quake on one of your
boxes. But think of it as an added feature! :)


Oh, doom does not require fp, its integer only and on 100MHz Pentium it 
was very smooth!  I did couple of hour-long doom sessions on one of our 
FreeBSD routers while waiting for a bug to regenerate itself in one of 
our pops some time around 1996 :)



I was referring to the 100MHz 486 you looked at.

I'd still get an fpu so you can install a largely unpatched OS of your
choice even if the fpu is redundant beyond installing the OS.

I guess you looked at the Soekris stuff and discounted it. Shame,
because a lot of folks find them useful with *BSD.


The last I checked Soekris boards were using more power.  We use similar 
boards from pcengines.ch for wireless routers.  This application I am 
working on needs a computer with VGA and sound interfaces.



Heikki


Regards,


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


Re: FreeBSD Installation

2008-06-11 Thread _sickfile



Beech Rintoul wrote:
> 
> On Tuesday 23 May 2006 20:44, Afrose Fathima wrote:
>>  Hi,
>> I am trying to install FreeBSD 6.1 on a DELL box.I have dowloaded the
>> 6.1-Release ISO images from
>> ftp://ftp.freebsd.org/pub/FreeBSD/r...ISO-IMAGES/6.1/>/pub/FreeBSD/releases/i386/ISO-IMAGES/6.1/> .
>> Its gives us the ISO's for three CD's bootonly,disc1,disc2.But when we
>> try
>> to install starting with the bootonly disc it misses out on a few screens
>> and also gives messages regarding unavailability of a few packages etc.
>> Also it does not ask for the insertion of the other CDs at any point of
>> the
>> installation.
>>
>> Request for some help as soon as possible.
> 
> The "boot only" is just that with a few tools. If you're installing, you
> want 
> to start with disc1. The FreeBSD Handbook is your friend.
> 
> Beech
> 

I had the same problem installing 6.2 release.
This is mentioned only once in the section 2.13.1 of the handbook. I think
that many beginers tend to go step-by-step on the installation and when
learning something new and this notion should be pointed out somewhat
earlier in chapter 2.

-- 
View this message in context: 
http://www.nabble.com/FreeBSD-Installation-tp4535482p17793141.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


saslauthd exited on signal 11

2008-06-11 Thread D Hill
I have two server installs of FreeBSD 7.0-RELEASE. One is running AMD64 
and the other is running i386.


The one running AMD64 is getting an error at SMTP time of:

  535 5.7.8 Error: authentication failed: generic failure

Once this happens, the saslauthd thread that took the connection causes 
this line to be written in ../messages:


  Jun 12 05:51:01 smtpgate kernel: pid 37374 (saslauthd), uid 0: exited on 
signal 11 (core dumped)


I've looked for the core dump but can't find it anywhere.

Both servers are running identical versions of:

  smtpgate# pkg_info |grep cyrus
  cyrus-sasl-2.1.22_1 RFC  SASL (Simple Authentication and Security Layer)
  cyrus-sasl-saslauthd-2.1.22 SASL authentication server for cyrus-sasl2

Does anyone know if there is an issue with cyrus sasl and/or cyrus 
saslauthd on AMD64? Or is there anything special needed to be done?


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


Re: FreeBSD-like linux distro?

2008-06-11 Thread Brian

Andrew Berry wrote:

Heikki Suonsivu wrote:
The computer I am doing this is not old, it is otherwise brand new, 
but it uses an embedded cpu, a 486 clone as SoC without math.  See 
www.compactpc.com.tw, eBOX 2300SX.  It is very low cost, runs on 
about 3W of power with CF card as mass memory, 128M, 3 USB2, serials, 
sound, etc, it has VESA form factor so you can attach it behind many 
LCD displays, etc. They have beefier models, but this one is cheapest 
and uses least power, latter of which is the more critical 
requirement for us. 
That's a neat system. Are there any retailers in North America which 
sell them individually?


--Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
A lot of peeps use Soekris type boards, that may be an option as well.  
http://www.soekris.com/products.htm. Even the lowest model has these 
specs, including floating pint capability.  
http://www.amd.com/epd/processors/4.32bitcont/14.lan5xxfam/24.lansc520/index.html


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


Re: need mysql help setting passwd

2008-06-11 Thread Gary Kline
On Wed, Jun 11, 2008 at 09:19:26PM -0400, Sahil Tandon wrote:
> Gary Kline <[EMAIL PROTECTED]> wrote:
> 
> > the question is: how do I set the root password on mysql?  this is a 
> > first step in getting phpbb3 up.   i have other CMS tools installed 
> > on aristotle, m jail where my webserver runs.
> > 
> > this failed:
> > 
> > 
> > mysqladmin -u root password
> > mysqladmin: connect to server at 'localhost' failed
> > error: 'Access denied for user 'root'@'localhost' (using password: NO)'
> 
> Start here: http://dev.mysql.com/doc/refman/5.1/en/access-denied.html
> 

Well, gentlemen, I may finally have a clue!  The guy who set up
my networking stuff and whatever database ports there are
did not install mysql50-server. Just the -client side.  This
fellow is the salt-of-the-earth type, ETC, but evidently didn't
get into phpbb or whatever I've been trying to do.

The -server side is building on my serious antique Kayak now.
My thanks to both you guys; the dev.mysql.com site is chock full
of info and should give me a boost when I try again.

gary


> -- 
> Sahil Tandon <[EMAIL PROTECTED]>

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: Question about torrents via console

2008-06-11 Thread Chad Perrin
On Wed, Jun 11, 2008 at 02:08:13PM -0400, Schiz0 wrote:
> On Wed, Jun 11, 2008 at 2:16 PM, Steve Lake <[EMAIL PROTECTED]> wrote:
> >Hi all.  Ok, I'm curious of something.  I've done torrents before via
> > the graphical interface before, but I want to setup a way to download isos
> > and various FOSS apps via bittorrent, but I want to do it via the console so
> > I can start a torrent in screen and then walk away, allowing my server to
> > finish the work without having to leave my main workstation running to do
> > the work like I normally do.  I'm using bittornado right now, and if there's
> > a way to do this, I'd love to know how.
> >
> 
> Look into rTorrent. It's excellent. It's CLI, and runs perfect inside
> a screen session. It supports encryption, prioritization, and all
> other major features of any good client.

I just started using rTorrent recently, and discovered that it's pretty
much exactly what I want from a CLI/console BitTorrent client so far.

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Marvin Minsky: "It's just incredible that a trillion-synapse computer
could actually spend Saturday afternoon watching a football game."


pgpTdYAbjN3Dd.pgp
Description: PGP signature


Re: Problem updating nvidia driver

2008-06-11 Thread Fraser Tweedale
On Wed, Jun 11, 2008 at 11:08:29AM +0200, Leslie Jensen wrote:
> The update of nvidia-driver-169.12 fails on my system.
> ( 7.0-RELEASE-p1 FreeBSD)
> 
> estanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
> -Wmissin
> g-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
> -Wno-pointer-sign -ff
> ormat-extensions -c nvidia_subr.c
> nvidia_subr.c:654: error: conflicting types for 'nv_os_agp_init'
> nv-freebsd.h:406: error: previous declaration of 'nv_os_agp_init' was here
> nvidia_subr.c:739: error: conflicting types for 'nv_os_agp_teardown'
> nv-freebsd.h:407: error: previous declaration of 'nv_os_agp_teardown' 
> was here
> *** Error code 1
> 
> Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-173.14.05/src.
> *** Error code 1
> 
> Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-173.14.05.
> *** Error code 1
> 
> Stop in /usr/ports/x11/nvidia-driver.
> *** Error code 1
> 
> Stop in /usr/ports/x11/nvidia-driver.
> 
> ===>>> make failed for x11/nvidia-driver
> ===>>> Aborting update
> 
> ===>>> Update for nvidia-driver-169.12 failed
> ===>>> Aborting update
> ---
> 
> Any ideas?
> 
> Thanks
> 
> Leslie

FWIW I had major issues with 173.14.05 (X.org crash to syscons at random
and usually immediately when using GLX stuff) and reverted to 169.12 which
is running once again without issue.

Anyhow, I remember experiencing issues like what you're mentioning though
it's a while ago so my memory is hazy.  IIRC, it comes from conflicts
between the Mesa and Nvidia libraries, and there was some voodoo that
seemed to help (though I'm not sure if it's still used), which was to
set `USE_NVIDIA_GL=yes' in /etc/make.conf.

There may also be some library rebuilding needed once that make variable
has been set (libGL and friends).

Disclaimer: the above advice is based on a hazy memory of dealing with
similar issues and may be totally inaccurate and/or snake oil.

frase


pgpFxTalEEk3W.pgp
Description: PGP signature


Re: Poor read() performance, and I can't profile it

2008-06-11 Thread Chuck Swiger

On Jun 11, 2008, at 12:42 PM, Kirk Strauser wrote:
I'm almost ready to give up on this.  I've gone as far as completely  
rewriting the
original C++ program into straightforward C, and still the  
performance is terrible on

FreeBSD versus Linux.


On Linux, GNU libc buffers file data much more extensively than  
FreeBSD's libc does.  It means that doing things like reading a dozen  
bytes or so at a time is not intolerably slow on the former system,  
but that doesn't mean that it's a great idea either.


If your data files are small enough to fit into 2GB of address space,  
try using mmap() and then treat the file(s) as an array of records or  
memoblocks or whatever, and let the VM system deal with paging in the  
parts of the file you need.  Otherwise, don't fread() 1 record at a  
time, read in at least a (VM page / sizeof(record)) number of records  
at a time into a bigger buffer, and then process that in RAM rather  
than trying to fseek in little increments.


(This is the opposite of calling setvbuf() to set the I/O buffer to,  
say, 13 bytes...)


Also, if you're malloc'ing and freeing buf & memohead with every  
iteration of the loop, you're just thrashing the malloc system;  
instead, allocate your buffers once before the loop, and reuse them  
(zeroize or copy new data over the previous results) instead.


Regards,
--
-Chuck

Also note that on the FreeBSD machine, I have enough RAM that to  
buffer the entire
file, and in practice gstat shows that the drives are idle for  
subsequent runs after

the first one.

Right now my code looks a lot like:

  for(recordnum = 0; recordnum < recordcount; recordnum++) {
buf = malloc(recordlength);
fread(buf, recordlength, 1, dbffile);

   /* Do stuff with buf */

   memoblock = getmemoblock(buf);
   /* Skip to the requested block if we're not already there */
if(memoblock != currentmemofileblock) {
currentmemofileblock = memoblock;
fseek(memofile, currentmemofileblock * memoblocksize, SEEK_SET);
}
memohead = malloc(memoblocksize);
fread(memohead, memoblocksize, 1, memofile);
currentmemofileblock++;

   /* Do stuff with memohead */

   free(memohead);
free(buf);
   }

...where recordlength == 13 in this one case.  Given that the whole  
file is buffered in
RAM, the small reads shouldn't make a difference, should they?  I've  
played with
setvbuf() and it shaves off a few percent of runtime, but nothing to  
write home about.


Now, memofile gets quite a lot of seeks.  Again, that shouldn't make  
too much of a
difference if it's already buffered in RAM, should it?  setvbuf() on  
that file that

gets lots of random access actually made performance worse.

What else can I do to make my code run as well on FreeBSD as it does  
on a much wimpier
Linux machine?  I'm almost to the point of throwing in the towel and  
making a Linux
server to do nothing more than run this one program if I can't  
FreeBSD's performance

more on parity, and I honestly never thought I'd be considering that.

I'll gladly give shell access with my code and sample data files if  
anyone is

interested in testing it.
--
Kirk Strauser
___
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]"


Re: Unable to install freebsd on HP Proliant ML30 server

2008-06-11 Thread Damon Blom

pete wright wrote:

On Wed, Jun 11, 2008 at 1:50 PM, Damon Blom <[EMAIL PROTECTED]> wrote:

  

DEBUG generating /etc/fstab file
g-vfs-done():acd0[READ (offset=32768,length=2048)] error=5
error mounting /dev/acd0 on /dist
 input-output error (5)
unable to initialize selected media



looks like you may be running into a problem with your cd-rom.  have
you tried to install via NFS, HTTP or FTP?  You should be able to
select this via sysinstall.

-pete

  

Hi
 Thank's. I thought so too but had same results when I used usb cdrom. 
I had no problem installing kubuntu,

I'll try another installation media.
  Thank's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Java Dilemma

2008-06-11 Thread Camilo Reyes
Unfortunately after updating my portsnap; it did not work. Here is the
error I get: 

$ firefox
INTERNAL ERROR on Browser End: SendRequest: Read of ack failed: 0

System error?:: Unknown error: 0
$ firefox
INTERNAL ERROR on Browser End: SendRequest: Read of ack failed: 0

System error?:: Unknown error: 0

It's interesting to note that you don't have to download the tzupdater
tool from Java (which requires you to create an account with their site).
In order to avoid getting that file just edit the Makefile prior to
running make. This may be necesarry for java to work, but it gave me the
same error with and without that TZ package. Anyway, which firefox
version are your running? I'm using firefox 2.0.0.12.


--- On Tue, 6/10/08, Manolis Kiagias <[EMAIL PROTECTED]> wrote:

> From: Manolis Kiagias <[EMAIL PROTECTED]>
> Subject: Re: Java Dilemma
> To: [EMAIL PROTECTED]
> Cc: freebsd-questions@freebsd.org
> Date: Tuesday, June 10, 2008, 11:03 AM
> Camilo Reyes wrote:
> > I am running a FreeBSD 7.0 system and I'm having
> the hardest time trying
> > to get java to work (I'm sure this has been
> brought up before - but a
> > google search did not reveal anything). My problem is
> that I can't find
> > the JDK US DST Timezone Update Tool - 1.3.0 that it
> mentions on the
> > build (/usr/ports/java/diablo-jre15). I've looked
> on the Java Sun website,
> > and they don't have the correct version, it seems
> they have a newer one.
> > Would this still work??
> >
> > Thanks,
> >
> > Camilo
> > "Bono Vince Malum"
> >
> >
> >   
> 
> I've installed the diablo-jre15 port two days ago (on
> the 8th). I 
> downloaded this:
> 
>  tzupdater-1_3_5-2008b.zip
> 
> And the version of the port is:
> 
> diablo-jre-1.5.0.07.01_10
> 
> Have you used csup/portsnap to update your ports tree? You
> might be 
> trying to compile an older version.


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


RE: generating random passwords

2008-06-11 Thread Ted Mittelstaedt


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jos Chrispijn
> Sent: Wednesday, June 11, 2008 12:29 PM
> To: freebsd-questions@freebsd.org
> Subject: Re: generating random passwords
> 
> 
> Bill Campbell wrote:
> > I much prefer apg which can generate more-or-less pronounceable
> > passwords which it is possible to remember (at least after typing
> > them a few times :-).
> >   
> This is not supposed to be an offense to any author of a password 
> generator, but:
> Never, but never trust any random password generator. You do not know 
> the author, you do not know the algoritm it uses and in worst case 
> scenarion you do not know if there is a millisecond traffic to somewhere 
> that is recording the generated password.

This issue is very easily solved with open source code, as you
can simply read the code before running it.  That is one of the
reasons that most crypto implementations that people trust
to actually keep things private are open source.

> > One of the biggest problems with random passwords is that they
> > end up written on yellow-stickies on the monitor or under the
> > keyboard.
> >   
> You don't need a generated password for that; it is common behaviour for 
> people that aren't involved in any responsibility whatsoever.
> 

Such as people who don't read the source for any password generator
before running it?

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


Re: FreeBSD and User Security

2008-06-11 Thread Jeffrey Goldberg

On Jun 11, 2008, at 9:05 PM, [EMAIL PROTECTED] wrote:


On Wed, Jun 11, 2008 at 08:51:16PM -0500, Jeffrey Goldberg wrote:



The next time I reboot the one server I've got with an
SVM capable processor I'm going to disconnect the power (to make  
sure that
I'm getting a real reboot instead of a spoofed one) and then on  
reboot I

will disable SVM in the BIOS.


How do you know that the bios has not been reflashed by a virus,  
trojan,

or rootkit?


Aghh!!


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


Re: two monitors, two displays, one PC

2008-06-11 Thread Sahil Tandon
John Wynstra <[EMAIL PROTECTED]> wrote:

> In the last 4 months I bought a new monitor to replace the one that clunked 
> out in me.  I am currently using it with an old PS2 type keyboard and mouse 
> attached to a creaky old desktop that will eventually be replaced.  Likely 
> I will want to replace it with a laptop with wifi and a lot more memory and 
> hard drive so that I can take it with me.  Can I still use the old monitor 
> as a second display?

Yes.
  
> Can this be done?  Is it done?  What are the issues?

You can search for FreeBSD + dual monitors on google and find some examples + 
usual pitfalls.

-- 
Sahil Tandon <[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: generating random passwords

2008-06-11 Thread Frank Shute
On Thu, Jun 12, 2008 at 02:17:59AM +0100, RW wrote:
>
> On Wed, 11 Jun 2008 14:53:56 -0400
> Andrew Berry <[EMAIL PROTECTED]> wrote:
> 
> > Zbigniew Szalbot wrote:
> > > Hello,
> > >
> > > Excuse me my ignorance. Is there a utility in FreeBSD that would
> > > allow me to generate random passwords without actually creating any
> > > accounts or modifying existing ones? I am looking for something to
> > > allow me to generate a random string of characters. I know I can
> > > randomly hit the keyboard but if anything like that exists, many
> > > thanks for your advice. :)
> > >
> > > Best regards,
> > I've used pwgen from ports. It sounds similar to the other
> > suggestions.
> 
> There are actually two versions of this in ports: sysutils/pwgen and
> sysutils/pwgen2. The latter is an independent rewrite rather than a
> version 2, and seems to be much more secure. 
> 
> The problem with pwgen is that its PRNG is very weakly seeded, making
> it vulnerable to simple brute-force attacks. As most of the entropy
> comes from the time (in *integer* seconds), it's particularly weak if an
> attacker knows roughly when the password was generated. An attacker with
> local access may even be able to compute the passwords directly. 

Thanks for the heads-up.

> 
> pwgen2 gets random numbers directly from /dev/random, which is how
> it should be. 
> 
> IMO pwgen should be removed from the ports tree, or failing that should
> be patched to use arc4random(), which is self-seeding. I don't really
> see the point in keeping it though.

It would be nice if it could be patched and a portaudit warning issued
for it so users could update.

The patching would be beyond me unfortunately...or fortunately, as I
would likely make it *really* insecure ;)

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


two monitors, two displays, one PC

2008-06-11 Thread John Wynstra
In the last 4 months I bought a new monitor to replace the one that 
clunked out in me.  I am currently using it with an old PS2 type 
keyboard and mouse attached to a creaky old desktop that will eventually 
be replaced.  Likely I will want to replace it with a laptop with wifi 
and a lot more memory and hard drive so that I can take it with me.  Can 
I still use the old monitor as a second display?


Can this be done?  Is it done?  What are the issues?


--
--
 Real name: John L Wynstra
 --
 Apartment 9G
 43-10 Kissena Blvd
 Flushing, N.Y. 11355
 --
 (347) 813-0910 [cell]
 (718) 939-9785 [land]
 --
 [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: FreeBSD and User Security

2008-06-11 Thread dfeustel
On Wed, Jun 11, 2008 at 08:51:16PM -0500, Jeffrey Goldberg wrote:
> On Jun 11, 2008, at 8:08 PM, cpghost wrote:
>
>> On Wed, 11 Jun 2008 19:45:51 -0500
>> Jeffrey Goldberg <[EMAIL PROTECTED]> wrote:
>
>>> First it should consume memory.  A very complete test of memory
>>> through a modified memtest should be able to detect whether system
>>> reported memory is accurate.
>
>> What if memtest already runs within the virtualization box? How can it
>> determine what the "right" amount of memory is supposed to be?
>
> I was assuming that that would be known by the operator.
>
>> And if
>> the virtualizer hot-patched memtest instructions, either on loading it
>> or dynamically while it runs, it  could make it report whatever it
>> liked.
>
> Of course.
>
>>> Secondly, a blue pill would need to be reinserted after a hard
>>> reboot.  Therefore a look at the boot process (of a non-live system)
>>> should be able to see whether there is something that reinserts the
>>> blue pill.
>
>> Yes, but you've got to have a very close look at it, as it won't
>> necessarily appear on the screen -- being caught as well by the
>> virtualizer. And Joanna also has a paper about fooling hardware
>> capture cards into reporting bogus data on her site, so you won't
>> even be able to detect that RAM contains something else upon boot
>> than those hardware capture cards are supposedly reporting.
>
> Yes.  I've now read through some of Rutowska's slides (following the link 
> provided by dfeustel in another post in this thread).
>
>> If all this is as she's described, it is truly brilliant from a
>> technical POV... and a very worrying thought as well.
>
> Yes it is worrying.  The next time I reboot the one server I've got with an 
> SVM capable processor I'm going to disconnect the power (to make sure that 
> I'm getting a real reboot instead of a spoofed one) and then on reboot I 
> will disable SVM in the BIOS.

How do you know that the bios has not been reflashed by a virus, trojan,
or rootkit?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: generating random passwords

2008-06-11 Thread Jeffrey Goldberg

On Jun 11, 2008, at 7:46 PM, Andrew Berry wrote:

Any idea what the name of the project for the Security framework is?  
I can't seem to find anything on Google. I'd love to be able to  
access keychains from OS X on other platforms, without resorting to  
dumping everything to plaintext.


This looks like a good place to start.

 http://developer.apple.com/opensource/security/index.html

I, too, would like my OS X Keychains to be portable.

Cheers,

-j

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


Re: generating random passwords

2008-06-11 Thread Frank Shute
On Wed, Jun 11, 2008 at 02:53:56PM -0400, Andrew Berry wrote:
>
> Zbigniew Szalbot wrote:
>
> >Hello,
> >
> >Excuse me my ignorance. Is there a utility in FreeBSD that would allow 
> >me to generate random passwords without actually creating any accounts 
> >or modifying existing ones? I am looking for something to allow me to 
> >generate a random string of characters. I know I can randomly hit the 
> >keyboard but if anything like that exists, many thanks for your 
> >advice. :)
> >
> >Best regards,
>
> I've used pwgen from ports. It sounds similar to the other suggestions.
> 

I like sysutils/pwgen too.

In it's default state it will give a screenful of semi-pronounceable
passwords from which you pick one. 

It can also be used in a shell script to generate single passwords.

Having the password semi-pronounceable avoids the sticky-note problem
to a large extent as they're easy to learn.

Can also generate gibberish, if that's your choice. Widely tunable.

For password containment i.e all my online passwords, I use a shell
script with gpg and a strong password.

So in theory, I only have to remember my user login and the password
for gpg. In practice, I remember a few more that I use regularly.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


Re: FreeBSD and User Security

2008-06-11 Thread Jeffrey Goldberg

On Jun 11, 2008, at 8:08 PM, cpghost wrote:


On Wed, 11 Jun 2008 19:45:51 -0500
Jeffrey Goldberg <[EMAIL PROTECTED]> wrote:



First it should consume memory.  A very complete test of memory
through a modified memtest should be able to detect whether system
reported memory is accurate.



What if memtest already runs within the virtualization box? How can it
determine what the "right" amount of memory is supposed to be?


I was assuming that that would be known by the operator.


And if
the virtualizer hot-patched memtest instructions, either on loading it
or dynamically while it runs, it  could make it report whatever it
liked.


Of course.


Secondly, a blue pill would need to be reinserted after a hard
reboot.  Therefore a look at the boot process (of a non-live system)
should be able to see whether there is something that reinserts the
blue pill.



Yes, but you've got to have a very close look at it, as it won't
necessarily appear on the screen -- being caught as well by the
virtualizer. And Joanna also has a paper about fooling hardware
capture cards into reporting bogus data on her site, so you won't
even be able to detect that RAM contains something else upon boot
than those hardware capture cards are supposedly reporting.


Yes.  I've now read through some of Rutowska's slides (following the  
link provided by dfeustel in another post in this thread).



If all this is as she's described, it is truly brilliant from a
technical POV... and a very worrying thought as well.


Yes it is worrying.  The next time I reboot the one server I've got  
with an SVM capable processor I'm going to disconnect the power (to  
make sure that I'm getting a real reboot instead of a spoofed one) and  
then on reboot I will disable SVM in the BIOS.


But mostly I'm just in admiration of people who can think of things  
this clever (even if they are very scary and dangerous things).


Thank y'all for a very enlightening discussion.

-j


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


Re: need mysql help setting passwd

2008-06-11 Thread Rodrigo Gonzalez
Gary Kline wrote:
> this failed:
> 
> 
> mysqladmin -u root password
> mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user 'root'@'localhost' (using password: NO)'
> 
> 
> according to my logs it has been about 5 years since i did this last.
> 
> advice please!
> 
> gary
> 
> 
> 
Your mysql server already has a password for user root.

2 options

1 - mysqladmin -u root -p password

Of course I think you dont know current password or you wouldnt be
askingso second option

Read
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-unix

with that steps you will reset root password

Best regards

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


Nanobsd on a CD-ROM

2008-06-11 Thread J. Porter Clark
Is it possible to build a CD-ROM with a bootable NanoBSD on it?
If so, how?

-- 
J. Porter Clark  <[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: generating random passwords

2008-06-11 Thread RW
On Wed, 11 Jun 2008 14:53:56 -0400
Andrew Berry <[EMAIL PROTECTED]> wrote:

> Zbigniew Szalbot wrote:
> > Hello,
> >
> > Excuse me my ignorance. Is there a utility in FreeBSD that would
> > allow me to generate random passwords without actually creating any
> > accounts or modifying existing ones? I am looking for something to
> > allow me to generate a random string of characters. I know I can
> > randomly hit the keyboard but if anything like that exists, many
> > thanks for your advice. :)
> >
> > Best regards,
> I've used pwgen from ports. It sounds similar to the other
> suggestions.

There are actually two versions of this in ports: sysutils/pwgen and
sysutils/pwgen2. The latter is an independent rewrite rather than a
version 2, and seems to be much more secure. 

The problem with pwgen is that its PRNG is very weakly seeded, making
it vulnerable to simple brute-force attacks. As most of the entropy
comes from the time (in *integer* seconds), it's particularly weak if an
attacker knows roughly when the password was generated. An attacker with
local access may even be able to compute the passwords directly. 

pwgen2 gets random numbers directly from /dev/random, which is how
it should be. 

IMO pwgen should be removed from the ports tree, or failing that should
be patched to use arc4random(), which is self-seeding. I don't really
see the point in keeping it though.


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


Re: need mysql help setting passwd

2008-06-11 Thread Sahil Tandon
Gary Kline <[EMAIL PROTECTED]> wrote:

> the question is: how do I set the root password on mysql?  this is a 
> first step in getting phpbb3 up.   i have other CMS tools installed 
> on aristotle, m jail where my webserver runs.
> 
> this failed:
> 
> 
> mysqladmin -u root password
> mysqladmin: connect to server at 'localhost' failed
> error: 'Access denied for user 'root'@'localhost' (using password: NO)'

Start here: http://dev.mysql.com/doc/refman/5.1/en/access-denied.html

-- 
Sahil Tandon <[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: FreeBSD and User Security

2008-06-11 Thread cpghost
On Wed, 11 Jun 2008 19:45:51 -0500
Jeffrey Goldberg <[EMAIL PROTECTED]> wrote:

> On Jun 11, 2008, at 7:17 PM, [EMAIL PROTECTED] wrote:
> 
> > A relatively new security threat known as 'The Blue Pill', based
> > upon hardware, is a class of virtual rootkits that can silently
> > take over Intel and AMD systems. A good site to visit to learn
> > about these virtual
> > rootkits is http://invisiblethings.org/index.html.
> 
> That is simple (in concept) yet absolutely brilliant!  I'm sure that  
> people much smarter that I am have thought about these things more  
> carefully than I have, but I'm not convinced that a blue pill would
> be completely undetectable.
> 
> First it should consume memory.  A very complete test of memory  
> through a modified memtest should be able to detect whether system  
> reported memory is accurate.

What if memtest already runs within the virtualization box? How can it
determine what the "right" amount of memory is supposed to be? And if
the virtualizer hot-patched memtest instructions, either on loading it
or dynamically while it runs, it  could make it report whatever it
liked.

> Secondly, a blue pill would need to be reinserted after a hard  
> reboot.  Therefore a look at the boot process (of a non-live system)  
> should be able to see whether there is something that reinserts the  
> blue pill.

Yes, but you've got to have a very close look at it, as it won't
necessarily appear on the screen -- being caught as well by the
virtualizer. And Joanna also has a paper about fooling hardware
capture cards into reporting bogus data on her site, so you won't
even be able to detect that RAM contains something else upon boot
than those hardware capture cards are supposedly reporting.

If all this is as she's described, it is truly brilliant from a
technical POV... and a very worrying thought as well.

> But even if detection is possible these ways, a Blue Pill would be  
> extremely difficult to detect once inserted, and so the focus would  
> have to be entirely on prevention.
> 
> Again, these are just my first thoughts after looking at this very  
> briefly.  The people who come up with this stuff and do proper  
> analysis are both smarter and more knowledgeable than I am.
> 
> Cheers,
> 
> -j

-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]"


Re: FreeBSD and User Security

2008-06-11 Thread dfeustel
On Wed, Jun 11, 2008 at 07:45:51PM -0500, Jeffrey Goldberg wrote:
> On Jun 11, 2008, at 7:17 PM, [EMAIL PROTECTED] wrote:
>
>> A relatively new security threat known as 'The Blue Pill', based upon
>> hardware, is a class of virtual rootkits that can silently take over
>> Intel and AMD systems. A good site to visit to learn about these virtual
>> rootkits is http://invisiblethings.org/index.html.
>
> That is simple (in concept) yet absolutely brilliant!  I'm sure that people 
> much smarter that I am have thought about these things more carefully than 
> I have, but I'm not convinced that a blue pill would be completely 
> undetectable.

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


need mysql help setting passwd

2008-06-11 Thread Gary Kline

the question is: how do I set the root password on mysql?  this is a 
first step in getting phpbb3 up.   i have other CMS tools installed 
on aristotle, m jail where my webserver runs.

this failed:


mysqladmin -u root password
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'


according to my logs it has been about 5 years since i did this last.

advice please!

gary



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: generating random passwords

2008-06-11 Thread Andrew Berry

Jeffrey Goldberg wrote:

I don't run FreeBSD on desktops so I haven't looked at the various tools 
available.  On OS X, I use 1password which makes excellent use of the OS 
X Keychain system, and has terrific webbrowser integration.  I'm fairly 
sure that the Apple Keychain libraries have been or can be ported to 
FreeBSD, but it might require GnuStep.


Any idea what the name of the project for the Security framework is? I 
can't seem to find anything on Google. I'd love to be able to access 
keychains from OS X on other platforms, without resorting to dumping 
everything to plaintext.


--Andrew


smime.p7s
Description: S/MIME Cryptographic Signature


Re: FreeBSD and User Security

2008-06-11 Thread Jeffrey Goldberg

On Jun 11, 2008, at 7:17 PM, [EMAIL PROTECTED] wrote:


A relatively new security threat known as 'The Blue Pill', based upon
hardware, is a class of virtual rootkits that can silently take over
Intel and AMD systems. A good site to visit to learn about these  
virtual

rootkits is http://invisiblethings.org/index.html.


That is simple (in concept) yet absolutely brilliant!  I'm sure that  
people much smarter that I am have thought about these things more  
carefully than I have, but I'm not convinced that a blue pill would be  
completely undetectable.


First it should consume memory.  A very complete test of memory  
through a modified memtest should be able to detect whether system  
reported memory is accurate.


Secondly, a blue pill would need to be reinserted after a hard  
reboot.  Therefore a look at the boot process (of a non-live system)  
should be able to see whether there is something that reinserts the  
blue pill.


But even if detection is possible these ways, a Blue Pill would be  
extremely difficult to detect once inserted, and so the focus would  
have to be entirely on prevention.


Again, these are just my first thoughts after looking at this very  
briefly.  The people who come up with this stuff and do proper  
analysis are both smarter and more knowledgeable than I am.


Cheers,

-j



--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

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


Re: FreeBSD and User Security

2008-06-11 Thread dfeustel
On Wed, Jun 11, 2008 at 06:53:18PM -0500, Jeffrey Goldberg wrote:
> [mailed and posted]
>
> On Jun 11, 2008, at 4:03 PM, YANSWBVCG wrote:
>
>> It is my understanding that since 1995 all computers must have a
>> hardware back door that permits undetectable access by the government to
>> the computer. This capability can be implemented using System
>> Monitor(Maintenance) Mode which is built into all x86 computers now. It
>> would appear that, if you are connected to the internet, the government
>> has access to your computer.
>
> This is not the place to get into this debate, but I think that someone 
> should state for the record that the vast majority of security experts 
> would disagree with you.

A relatively new security threat known as 'The Blue Pill', based upon
hardware, is a class of virtual rootkits that can silently take over
Intel and AMD systems. A good site to visit to learn about these virtual
rootkits is http://invisiblethings.org/index.html. 

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


Re: mfi freebsd7

2008-06-11 Thread Patrick C
Great info, Kalin.

I have several boxes with LSI controllers, the PERC 5i works
wonderfully with FreeBSD (though the Dell 6850 sucks), and I have a
couple boxes with Supermicro boards with built-in LSI MegaRaid,
however it's done in software. This means that the mfi controller
works fine as individual disks, but will not support any RAID levels
in FreeBSD. You're probably almost as well off using gmirror anyway.

I've started using 3ware cards again after a bit of a hiatus and they
work great, and the FreeBSD support is good.

My next experiment is going to be some HighPoint cards. I'm not sure
at this point I wold trust them with my important data, but what's
cool is they are very inexpensive cards, show up in computer stores
like Fry's, and seem to have pretty decent FreeBSD support for their
size. I'm going to try an 8-port in my desktop (I use it for some
pretty serious MySQL work at times) soon... IMHO if the cards are
decent it'd be nice to reward them for their efforts by putting some
money their way.

-Patrick

2008/6/11 kalin m <[EMAIL PROTECTED]>:
>
> in case somebody gets stuck as i was - here are detailed instruction and the
> CORRECT ORDER in which the needed kernel modules HAVE to be loaded in order
> for the megacli to work properly...
>
> big thanks to Christoph Schug
>
>
>
> Christoph Schug wrote:
>>
>> On Mon, Jun 02, 2008, kalin m wrote:
>>
>>
>>>
>>> thanks Vince...  i didnt wanted to install the linux base because a lot
>>> of kids will be running some 'cool' boards or blogs that probably have cool
>>> linux holes too. but just for the hell of it and for he purpose to get to
>>> the controller i did. it took a while to find the Linux_MegaCli_1.01.09.zip.
>>> it's not on the freebsd site and not on the LSI site (anymore) either..
>>>  anyway after a lot of rpm downloads and patching and variable changing and
>>> fs mountings i get this:
>>>
>>> # /usr/local/sbin/megacli -adpCount
>>>   ERROR:Could not detect controller.
>>>
>>> Controller Count: 0.
>>>
>>
>> From my experience there are some pitfalls when using the
>> sysutils/linux-megacli port. First of all you need the mfi_linux.ko
>> kernel module loaded. Moreover, this module has to be loaded _before_
>> the Linux ABI stuff (linux.ko, linprocfs.ko, linsysfs.ko). So starting
>> with a pretty sane list of loaded kernel modules ...
>>
>> | # kldstat |   Id Refs AddressSize Name
>> |13 0x8010 6eeea8   kernel
>> |21 0x807ef000 14d0 accf_http.ko
>> |31 0xb449f000 1fce nullfs.ko
>> | # kldload mfi_linux.ko
>> | # kldload linprocfs.ko linsysfs.ko
>> | # kldstat |   Id Refs AddressSize Name
>> |1   15 0x8010 6eeea8   kernel
>> |21 0x807ef000 14d0 accf_http.ko
>> |31 0xb449f000 1fce nullfs.ko
>> |71 0xb44a1000 3af  mfi_linux.ko
>> |83 0xb44a2000 18a6alinux.ko
>> |91 0xb44bb000 350c linprocfs.ko
>> |   101 0xb469a000 9d3  linsysfs.ko
>> | # mount -t linprocfs linproc /compat/linux/proc
>> | # mount -t linsysfs  linsys  /compat/linux/sys
>> | # cat /compat/linux/sys/class/scsi_host/host*/proc_name
>> |   megaraid_sas
>> |   megaraid_sas
>>
>> In case you haven't loaded mfi_linux.ko before the other Linux ABI
>> stuff, you will see '(null)' entries here instead of 'megaraid_sas'.
>> Furthermore, the compat.linux.osrelease sysctl should be set to 2.6.12.
>>
>> | # sysctl -w compat.linux.osrelease=2.6.12
>> |   compat.linux.osrelease: 2.4.2 -> 2.6.12
>>
>> If everything is fine, you should be able to query your RAID controller:
>>
>> | # megacli -LDInfo -LALL -aALL | grep ^State:
>> |   State: Optimal
>> |   State: Optimal
>>
>> This has been tested on a Dell PowerEdge 2970 with both an PERC5/i and
>> PERC5/e controller running FreeBSD 7.0/amd64.
>>
>> | # pciconf -lv | grep ^mfi
>> |   [EMAIL PROTECTED]:8:14:0:   class=0x010400 card=0x1f031028 
>> chip=0x00151028
>> rev=0x00 hdr=0x00
>> |   [EMAIL PROTECTED]:15:14:0:  class=0x010400 card=0x1f011028 
>> chip=0x00151028
>> rev=0x00 hdr=0x00
>>
>> -cs
>>
>>
>
> ___
> 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]"


Re: FreeBSD and User Security

2008-06-11 Thread Jeffrey Goldberg

[mailed and posted]

On Jun 11, 2008, at 4:03 PM, YANSWBVCG wrote:


It is my understanding that since 1995 all computers must have a
hardware back door that permits undetectable access by the  
government to

the computer. This capability can be implemented using System
Monitor(Maintenance) Mode which is built into all x86 computers now.  
It
would appear that, if you are connected to the internet, the  
government

has access to your computer.


This is not the place to get into this debate, but I think that  
someone should state for the record that the vast majority of security  
experts would disagree with you.


However, I fully acknowledge that if the National Security Agency or  
GCHQ or the like wanted to break into any one of my systems, I'm sure  
that they could.


But the question wasn't about making a system that could withstand  
something like the NSA but instead about defending against run of the  
mill spyware.  Switching from Windows to FreeBSD would obviously  
improve matters for that kind of attack, but the real answers to the  
original question require an understanding of the nature of the  
threats and the nature of the counter measures far beyond what was  
evident in the question.  After all, most spyware is installed with  
the users' consent (though the user may not know that it is sypware.)


For just about everyone, I recommend pretty much anything written by  
Bruce Schneier.  As as start there is his very brief "How to think  
about security" essay:


 http://www.schneier.com/crypto-gram-0204.html#1

-j


--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

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


Re: FreeBSD and User Security

2008-06-11 Thread YANSWBVCG
On Wed, Jun 11, 2008 at 10:25:32PM +0200, David Naylor wrote:
> Hi All,
> 
> Today I read an article describing how my government had lost ZAR200 000 000 
> from fraud.  This is just under $25 000 000.  The article credited this loss 
> largely due to the use of spyware.  
> 
> My question is how secure is FreeBSD (including KDE, GNOME and XFCE) to 
> attacks, including cracking and spyware.  In addition, is there anyway to 
> prevent a user from executing a program that is not owned by root (i.e. any 
> program installed by the user), this would prevent spyware being installed 
> (assuming root has been properly locked down) and subsequently run.  
> 
> If anyone, in addition, has answers for Linux and *BSD it would be great to 
> know as well.  
> 
> Best Regards
> 
> David

It is my understanding that since 1995 all computers must have a
hardware back door that permits undetectable access by the government to
the computer. This capability can be implemented using System
Monitor(Maintenance) Mode which is built into all x86 computers now. It
would appear that, if you are connected to the internet, the government
has access to your computer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Perl 5.10.0

2008-06-11 Thread Gerard
Just before FBSD-7 was released, I asked if Perl 5.10.0 would be
included in the new version. I was informed that it would not be;
however, it would be released shortly after FBSD-7 was released.

Well, FBSD-7 has been out for a while now; however, I still do not see
the updated version of Perl. Is there any specific reason that it has
not been released?

-- 
Gerard
[EMAIL PROTECTED]

Genius is the talent of a person who is dead.


signature.asc
Description: PGP signature


Re: Question about torrents via console

2008-06-11 Thread RW
On Wed, 11 Jun 2008 14:16:29 -0400
Steve Lake <[EMAIL PROTECTED]> wrote:

>  Hi all.  Ok, I'm curious of something.  I've done torrents
> before via the graphical interface before, but I want to setup a way
> to download isos and various FOSS apps via bittorrent, but I want to
> do it via the console so I can start a torrent in screen and then
> walk away, allowing my server to finish the work without having to
> leave my main workstation running to do the work like I normally do.

You might also consider mldonkey, which does the the file sharing via
a daemon (mlnet) which you can connect to via various methods,
including telnet, a web interface, and several GUI applications. It's
primarily an ed2k client and its BT support isn't very sophisticated,
but it does have the advantage that the daemon will start from rc.d and
run in the background without any manual intervention.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mfi freebsd7

2008-06-11 Thread kalin m


in case somebody gets stuck as i was - here are detailed instruction and 
the CORRECT ORDER in which the needed kernel modules HAVE to be loaded 
in order for the megacli to work properly...


big thanks to Christoph Schug



Christoph Schug wrote:

On Mon, Jun 02, 2008, kalin m wrote:

  
thanks Vince...  i didnt wanted to install the linux base because a lot of 
kids will be running some 'cool' boards or blogs that probably have cool 
linux holes too. but just for the hell of it and for he purpose to get to 
the controller i did. it took a while to find the 
Linux_MegaCli_1.01.09.zip. it's not on the freebsd site and not on the LSI 
site (anymore) either..  anyway after a lot of rpm downloads and patching 
and variable changing and fs mountings i get this:


# /usr/local/sbin/megacli -adpCount
   ERROR:Could not detect controller.

Controller Count: 0.



From my experience there are some pitfalls when using the
sysutils/linux-megacli port. First of all you need the mfi_linux.ko
kernel module loaded. Moreover, this module has to be loaded _before_
the Linux ABI stuff (linux.ko, linprocfs.ko, linsysfs.ko). So starting
with a pretty sane list of loaded kernel modules ...

| # kldstat 
|   Id Refs AddressSize Name

|13 0x8010 6eeea8   kernel
|21 0x807ef000 14d0 accf_http.ko
|31 0xb449f000 1fce nullfs.ko
| # kldload mfi_linux.ko
| # kldload linprocfs.ko linsysfs.ko
| # kldstat 
|   Id Refs AddressSize Name

|1   15 0x8010 6eeea8   kernel
|21 0x807ef000 14d0 accf_http.ko
|31 0xb449f000 1fce nullfs.ko
|71 0xb44a1000 3af  mfi_linux.ko
|83 0xb44a2000 18a6alinux.ko
|91 0xb44bb000 350c linprocfs.ko
|   101 0xb469a000 9d3  linsysfs.ko
| # mount -t linprocfs linproc /compat/linux/proc
| # mount -t linsysfs  linsys  /compat/linux/sys
| # cat /compat/linux/sys/class/scsi_host/host*/proc_name
|   megaraid_sas
|   megaraid_sas

In case you haven't loaded mfi_linux.ko before the other Linux ABI
stuff, you will see '(null)' entries here instead of 'megaraid_sas'.
Furthermore, the compat.linux.osrelease sysctl should be set to 2.6.12.

| # sysctl -w compat.linux.osrelease=2.6.12
|   compat.linux.osrelease: 2.4.2 -> 2.6.12

If everything is fine, you should be able to query your RAID controller:

| # megacli -LDInfo -LALL -aALL | grep ^State:
|   State: Optimal
|   State: Optimal

This has been tested on a Dell PowerEdge 2970 with both an PERC5/i and
PERC5/e controller running FreeBSD 7.0/amd64.

| # pciconf -lv | grep ^mfi
|   [EMAIL PROTECTED]:8:14:0:   class=0x010400 card=0x1f031028 
chip=0x00151028 rev=0x00 hdr=0x00
|   [EMAIL PROTECTED]:15:14:0:  class=0x010400 card=0x1f011028 
chip=0x00151028 rev=0x00 hdr=0x00

-cs

  

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


Re: FreeBSD and User Security

2008-06-11 Thread Roland Smith
On Wed, Jun 11, 2008 at 10:25:32PM +0200, David Naylor wrote:
> Hi All,
> 
> Today I read an article describing how my government had lost ZAR200 000 000 
> from fraud.  This is just under $25 000 000.  The article credited this loss 
> largely due to the use of spyware.  
> 
> My question is how secure is FreeBSD (including KDE, GNOME and XFCE) to 
> attacks, including cracking and spyware. 

That is a very broad question without a simple answer. It depends among
other things on the purpose of the machine and the knowledge of the
administrator. 

E.g, if you are creating a workstation that doesn't run externally
accessible servers you could configure the firewall to block all
incoming new connection requests. That will go a long way toward
safeguarding the machine against network attacks.

There is no way to safeguard a machine that an attacker has physical
access to; he could e.g. steal the harddisk and read your data at his
leisure (unless it is encrypted on-disk, e.g. with geli(8)). Also, no OS
can defend against social engineering attacks. 

I would not worry overly much about spyware.  Most if not all of those
are windows binaries. Also, unix mail clients as a rule do not execute
scripts embedded in mail messages.

> In addition, is there anyway to 
> prevent a user from executing a program that is not owned by root (i.e. any 
> program installed by the user), this would prevent spyware being installed 
> (assuming root has been properly locked down) and subsequently run.  

You could mount /home and other partitions where users have write access
like /tmp with the noexec option. Note that that wouldn't block the execution
of scripts, just binaries.

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


pgpvn8FSPGygZ.pgp
Description: PGP signature


Re: Question about torrents via console

2008-06-11 Thread Luke Dean


   Hi all.  Ok, I'm curious of something.  I've done torrents before via 
the graphical interface before, but I want to setup a way to download isos 
and various FOSS apps via bittorrent, but I want to do it via the console so 
I can start a torrent in screen and then walk away, allowing my server to 
finish the work without having to leave my main workstation running to do the 
work like I normally do.  I'm using bittornado right now, and if there's a 
way to do this, I'd love to know how.


I run bittornado's btlaunchmany.py script through screen (sysutils/screen) 
for the very reason you describe.  It's been working great for years.


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


Re: Is FreeBSD suitable for my thinkpad T61 ?

2008-06-11 Thread Jerry McAllister
On Wed, Jun 11, 2008 at 08:50:36PM +0800, [EMAIL PROTECTED] wrote:

> Hi all,
> 
> I brought a new ThinkPad T61 for work, the hardware is as follows:
> 
> T7300(2GHz), 2GB RAM, 120GB 5400rpm HD, 15.4in 1680x1050 LCD, 128MB nVIDIA 
> Quadro NVS 140M, CDRW/DVDRW, Intel 802.11agn(n-disabled), Bluetooth, Modem, 
> 1Gb Ethernet, UltraNav, Secure chip, Intel Turbo, 9c Li-Ion,
> 
> My current working involves scientific calculation and programming. I'm 
> from a linux background(redhat, debian, ubuntu), but after some googling 
> and comparison, I found FreeBSD more stable and I want to try FreeBSD.  I 
> am tired of a dual-boot system, so I want to just install FreeBSD or 
> another linux distribution(maybe ubuntu) on my notebook.
> 
> My questions are:
> 1) Can FreeBSD work well with my hardware? The display card, CDRW/DVDRW, 
> wireless, Ethernet and battery managment are the most important.
> 
> 2) I have read the FreeBSD Handbook. According to Chapter 10: Linux Binary 
> Compatibility, it seems that FreeBSD lacks support of many commercial 
> softwares such as MATLAB, Oracle, Mathematica. Is the linux binary 
> compatibility stable enough for work ?

It should run FreeBSD just fine.   Check the hardware compatibility
lists to check for specific peripherals.

The Linux compatibility layer worked well.  Should be no problem.

jerry

> 
> Thanks a lot.
> 
> 
> 
> ___
> 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]"


Re: FreeBSD-like linux distro?

2008-06-11 Thread Tijl Coosemans
On Wednesday 11 June 2008 11:54:07 Heikki Suonsivu wrote:
> I need to get something to run on x86 computers which do not
> contain math in hardware, and FreeBSD dropped non-math cpus long
> time ago. NetBSD did the same, so Linux seems to be the only
> possibility.

This is the commit that removed it:
http://lists.freebsd.org/pipermail/cvs-src/2003-July/007431.html

It's probably not that difficult to reintroduce.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD and User Security

2008-06-11 Thread Wojciech Puchar

from fraud.  This is just under $25 000 000.  The article credited this loss
largely due to the use of spyware.

My question is how secure is FreeBSD (including KDE, GNOME and XFCE) to


do not include that programs to FreeBSD. they are not it's part. it's just 
few of thousand programs that can run under FreeBSD.




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


Unable to install freebsd on HP Proliant ML30 server

2008-06-11 Thread Damon Blom

CPU: Intel (R) Xeon (TM) cpu 2.40 gz (2399.93 mhz, 686-class cpu)
 Features =
   Logical CPU's per core:2
   real memory 2047mb
  avail memory 1992mb
MPTable : 
FreeBSD/SMP: Multiprocessor System
   detected: 2 cpu's
 cpu0 (BSP):APIC ID:0
 cpu1(AP):APICID:6
acd0:CDROM at ata0-master UDMA33
da1:I have tried various i386 releases :5.3,6.1,6.2.7.0. 8.0 current iso 
disk1 install disks
Installation proceeds normally, newfs done and then just stops when 
files are to be created

I have tried google but unable to find problem.
thank you for your time.
Damon

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


Re: IPv4 loopback address is missing, why?

2008-06-11 Thread Len Conrad



/etc/hosts :
::1 localhost.mydomain.tld localhost
127.0.0.1 localhost.mydomain.tld localhost

/etc/defaults/rc.conf :
ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.
... but ifconfig always shows no inet:
lo0: flags=8049 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128

so we added to /etc/rc.conf :
ifconfig_lo0="inet 127.0.0.1 netmask 255.0.0.0"
... still not inet4 loopback if (so commented it out).
no errors in /var/log/messages,
dmesg -a shows no error,
... other than services failing to grab ports on 127.0.0.1

thanks
Len


Do you have network_interfaces set to something different than 
"auto" in /etc/rc.conf?


I read this thread but missed that some pkg_add added 
network_interfaces in rc.conf, and left out "lo"


thanks, Yuri

Len


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


FreeBSD and User Security

2008-06-11 Thread David Naylor
Hi All,

Today I read an article describing how my government had lost ZAR200 000 000 
from fraud.  This is just under $25 000 000.  The article credited this loss 
largely due to the use of spyware.  

My question is how secure is FreeBSD (including KDE, GNOME and XFCE) to 
attacks, including cracking and spyware.  In addition, is there anyway to 
prevent a user from executing a program that is not owned by root (i.e. any 
program installed by the user), this would prevent spyware being installed 
(assuming root has been properly locked down) and subsequently run.  

If anyone, in addition, has answers for Linux and *BSD it would be great to 
know as well.  

Best Regards

David


signature.asc
Description: This is a digitally signed message part.


Re: FreeBSD-like linux distro?

2008-06-11 Thread Jon Hamilton

On Wed, June 11, 2008 04:54, Heikki Suonsivu wrote:
> I need to get something to run on x86 computers which do not contain
> math in hardware, and FreeBSD dropped non-math cpus long time ago. NetBSD
> did the same, so Linux seems to be the only possibility.
>
> So, the question:
>
>
> What is the linux distro which is closest to FreeBSD in terms of
> installation and use.  A linux with basic userland and ports(-like) system,
> and quick and easy install like FreeBSD ?

Heikki,

Gentoo (http://www.gentoo.org) is a pretty easy install and is the most
closely aligned Linux distribution I've seen to the "build it from source"
mentality.  It's gotten fancier over the years but still has at its core
the notion of building blocks and doesn't push binary package distribution
the way most seem to these days.  Whether it'll install on an FPU-less
system I don't know.  Might be worth a look.

Please do report back with what you ultimately find works; this is a
source of interest for me and I'm sure others.

-- 
Jon Hamilton
[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: IPv4 loopback address is missing, why?

2008-06-11 Thread Yuri Pankov

Len Conrad wrote:


/etc/hosts :

::1 localhost.mydomain.tld localhost
127.0.0.1 localhost.mydomain.tld localhost


/etc/defaults/rc.conf :

ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.

... but ifconfig always shows no inet:

lo0: flags=8049 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128


so we added to /etc/rc.conf :

ifconfig_lo0="inet 127.0.0.1 netmask 255.0.0.0"

... still not inet4 loopback if (so commented it out).

no errors in /var/log/messages,
dmesg -a shows no error,
... other than services failing to grab ports on 127.0.0.1


thanks
Len


Do you have network_interfaces set to something different than "auto" in 
/etc/rc.conf?



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


Re: IPv4 loopback address is missing, why?

2008-06-11 Thread Len Conrad

and we can do this, too:

ifconfig lo 127.0.0.1 netmask 255.0.0.0 up

then ifconfig shows:

lo0: flags=8049 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00

thanks
Len


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


Re: FreeBSD-like linux distro?

2008-06-11 Thread Frank Shute
On Wed, Jun 11, 2008 at 09:30:17PM +0300, Heikki Suonsivu wrote:
>
> Frank Shute wrote:
> >On Wed, Jun 11, 2008 at 05:06:49PM +0300, Heikki Suonsivu wrote:
> >>Oops, sorry, I was not specific enough:
> >>
> >>FreeBSD 4 or older NetBSD are no go:
> >>
> >>The computer I am doing this is not old, it is otherwise brand new, but 
> >>it uses an embedded cpu, a 486 clone as SoC without math.  See 
> >>www.compactpc.com.tw, eBOX 2300SX.  It is very low cost, runs on about 
> >>3W of power with CF card as mass memory, 128M, 3 USB2, serials, sound, 
> >>etc, it has VESA form factor so you can attach it behind many LCD 
> >>displays, etc. They have beefier models, but this one is cheapest and 
> >>uses least power, latter of which is the more critical requirement for us.
> >>
> >>We would like to use it for certain control applications.  Linux works, 
> >>has been tested, but requires patches (turn math emulation on, add 
> >>support for built-in ethernet, bug workaround).
> >
> >I don't know if this machine is going to be sited on an insecure
> >network or not. If it is, then you'll probably be using ssh. Without
> >a math co-proc to do the crypto, it will be horrendous. I don't even
> >know if ssh would work with an architecture without a maths unit.
> 
> You apparently do not use the source :), go and grep double and float 
> from some of the most common programs you use (games, scientific stuff 
> and crappy UI code excused).

No, I don't use the source :)

I kind of assumed "It must do a lot with numbers, so it will run like
a dog without a co-processor".

> 
> > If it can't work with ssh, then you might be restricting your market.
> 
> ssh does not use any floating point for any crypto algorithm.  Oh, 
> openssh does use doubles, it prints some ratios in some places, such as 
> how many percent of something has been transferred.  It seems to be 
> stirring random numbers as floating point non-exactness does is not a 
> bother there, but that is not used past session init.  There is no 
> human-noticeable effect on normal ssh use.

It was explained to me (off-list) that co-processors work on floats
not ints.

> 
> I was one of the first guinea pigs for original ssh.  We did have plenty 
> of non-math cpus back then, and I did run ssh on non-fpu hardware until 
> two years ago.  We did run backups and configuration tasks over ssh on 
> number of non-fpu computers acting as routers and other servers those 
> days.  Today's games might be different, but that is not what we do on 
> these embedded computers...

I didn't think you'd be having the odd game of Quake on one of your
boxes. But think of it as an added feature! :)

>
> >I think you are punishing yourself unneccesarily by going with a
> >processor without maths. You restrict the software (both OS &
> >application) you can run.
> 
> Applications cannot tell the difference between math emulation and 
> hardware from anything else than performance, so there is no code 
> difference in application layer, and kernel does not do fp at all, other 
> than trapping fpu instructions and emulating them on non-fpu hardware. 
> Kernel itself does not do fp math.
> 
> I do not quite understand where this fear of non-fpu came from, as it 
> made no practical difference just few years ago for anything but 
> scientists in labs and intensive cad/graphics work.  In particular I do 
> not understand why people have an idea that everything uses floating 
> point.  Very few programs do heavy math processing, most common use is 
> to double divide two longs to print out some statistics when program ends.

I used to do a lot of CAD and buying a machine without a co-processor
was considered madness. That's where my prejudice comes from.

> 
> >>The problem with is that while FreeBSD 4 seemed to boot on it, it did 
> >>not recognize any peripherals as they are new.  Old OS's are not really 
> >>what we want, this is not one-off but volume product, it will be 
> >>internet-connected so we need bugfixes and we need support for latest 
> >>chipsets on 802.11 cards etc.
> >>
> >>There is another similar CPU, even slower and less power consuming, I do 
> >>not remember the part number, I think it was about 100 MHz 486 without 
> >>math as well.  This was some manufacturer of microcontrollers.
> >
> >Can't you find a manufacturer that makes something similar with a DX
> >instead? Or can you email this company and ask them how much it would
> >cost to run off X units with a 486DX rather than SX?
> 
> This is not 486, it is System-on-Chip thing.  There are couple of very 
> cheap SoCs, which do not have math, but performance is otherwise 
> adequate for most applications.  They are much faster than 486SX, by 
> 5-10 times factor, so they are becoming popular on embedded devices.

I was referring to the 100MHz 486 you looked at.

I'd still get an fpu so you can install a largely unpatched OS of your
choice even if the fpu is redundant beyond installing the OS.

I guess you looked at the S

Re: IPv4 loopback address is missing, why?

2008-06-11 Thread Len Conrad


/etc/hosts :

::1 localhost.mydomain.tld localhost
127.0.0.1 localhost.mydomain.tld localhost


/etc/defaults/rc.conf :

ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration.

... but ifconfig always shows no inet:

lo0: flags=8049 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128


so we added to /etc/rc.conf :

ifconfig_lo0="inet 127.0.0.1 netmask 255.0.0.0"

... still not inet4 loopback if (so commented it out).

no errors in /var/log/messages,
dmesg -a shows no error,
... other than services failing to grab ports on 127.0.0.1


thanks
Len


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


RE: Problems opening mail on this list

2008-06-11 Thread Bob McConnell
From: Andrew Berry
> 
> Here is a message signed with Thunderbird 2 on Windows (ugh...).
> 
> --Andrew

Andrew,

I received that with no problem. There is also a button in the corner I
have never seen before that reveals the signature on this message is
Valid and Trusted.

In response to your earlier message, I do not have control over which
mail agent I use. That is dictated by the company's IT group. It may
soon be further downgraded to Office 2007, if the rumors I hear are
correct.

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


Re: Flashplugin

2008-06-11 Thread eculp

Quoting "Robert Huff" <[EMAIL PROTECTED]>:



eculp writes:


 I've got a question.  A friend has been loaning me his old laptop
 at work that runs Ubuntu and flash runs fine.  I have not been
 able to make it fail, yet at least. Could there be a clue in
 Ubuntu somewhare?  I'm actually thinking of running it under
 kqemu, if there isn't too much overhead, on my amd64 laptop until
 this gets sorted out.


The "Flashplugin"s in the ports collection are the Linux
versions, which require both a) an interface between the plugin and
the browser and b) the Linux emulation layer.
My last information about Flash9, gleaned from various FreeBSD
mailing lists: the problem is thought to be _somewhere_ between the
plugin and the emulation layer.  This is roughly equivalent to
saying there is a mouse somewhere in .
The current set of permanent pest control experts (the Linux
emulation crew) has considered the matter and decided this is not
worth the time.  As of the time I heard about it, this was in part
because a) Flash9 had tangible problems under Linux and b) even if
they knew what was broken in the plugin the track record of Adobe
being willing to fix it was poor.  (Volunteers for a special mission
should apply on the emulation@ list.)
Don't get me wrong - I'd love to have a working Flash
even under emulation.  But after _years_ of having hopes raised and
dashed I'm pretty much waiting for Flash10 which is supposed to have
an open spec API (ABI??).


Great information, Robert.  Thanks.

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


Re: Poor read() performance, and I can't profile it

2008-06-11 Thread Kirk Strauser
On Wednesday 11 June 2008, Kirk Strauser wrote:
> On Linux:
>
> $ time ./cdbf /tmp/invoice.dbf >/dev/null
> ./cdbf /tmp/invoice.dbf > /dev/null  42.65s user 20.09s system 71% cpu
> 1:28.15 total
>
> On FreeBSD:

Oops!  I left that out:

$ time /tmp/cdbf /var/tmp/invoice.dbf >/dev/null
/tmp/cdbf /var/tmp/invoice.dbf > /dev/null  59.15s user 11.93s system 36% cpu 
3:14.53 
total

Again, Linux is on a boring Dell workstation, FreeBSD is on a far faster Dell 
server 15K 
RPM SCSI drives (even if they don't come into play once the data files are 
buffered).
-- 
Kirk Strauser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: generating random passwords

2008-06-11 Thread Jeffrey Goldberg

On Jun 11, 2008, at 11:35 AM, Bill Campbell wrote:


One of the biggest problems with random passwords is that they
end up written on yellow-stickies on the monitor or under the
keyboard.


I'm going to take this opportunity to preach. Everyone should be using  
a good password management system.  Otherwise people will use either  
weak passwords or will use passwords which are predictable from other  
passwords.  (That is using the same password or variants of the same  
password for many separate realms.)


I don't run FreeBSD on desktops so I haven't looked at the various  
tools available.  On OS X, I use 1password which makes excellent use  
of the OS X Keychain system, and has terrific webbrowser integration.   
I'm fairly sure that the Apple Keychain libraries have been or can be  
ported to FreeBSD, but it might require GnuStep.


On Window's I recommend Password Safe.  In ports, sysutils/pwsafe  
provides a CLI utility that can manage Password Safe data.  And  
security/gorilla provides a tcl/tk GUI for pwsafe.  I've used both on  
OS X, and the work fine, but I much prefer 1password in that  
environment.


I've never looked at things like kwallet or other Unixish password  
management systems.  But once again, I recommend that everyone use a  
proper password management system.


-j


--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

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


Re: Poor read() performance, and I can't profile it

2008-06-11 Thread Kirk Strauser
On Thursday 05 June 2008, Kirk Strauser wrote:

> I was testing the same software on my desktop PC when I noticed that it
> ran *much* faster, and found that it was spending only about 1% as much
> time in the kernel on Linux as it was on FreeBSD.

I'm almost ready to give up on this.  I've gone as far as completely rewriting 
the 
original C++ program into straightforward C, and still the performance is 
terrible on 
FreeBSD versus Linux.  

On Linux:

$ time ./cdbf /tmp/invoice.dbf >/dev/null
./cdbf /tmp/invoice.dbf > /dev/null  42.65s user 20.09s system 71% cpu 1:28.15 
total

On FreeBSD:



Also note that on the FreeBSD machine, I have enough RAM that to buffer the 
entire 
file, and in practice gstat shows that the drives are idle for subsequent runs 
after 
the first one.

Right now my code looks a lot like:

   for(recordnum = 0; recordnum < recordcount; recordnum++) {
buf = malloc(recordlength);
fread(buf, recordlength, 1, dbffile);

/* Do stuff with buf */

memoblock = getmemoblock(buf);
/* Skip to the requested block if we're not already there */
if(memoblock != currentmemofileblock) {
currentmemofileblock = memoblock;
fseek(memofile, currentmemofileblock * memoblocksize, SEEK_SET);
}
memohead = malloc(memoblocksize);
fread(memohead, memoblocksize, 1, memofile);
currentmemofileblock++;

/* Do stuff with memohead */

free(memohead);
free(buf);
}

...where recordlength == 13 in this one case.  Given that the whole file is 
buffered in 
RAM, the small reads shouldn't make a difference, should they?  I've played 
with 
setvbuf() and it shaves off a few percent of runtime, but nothing to write home 
about.

Now, memofile gets quite a lot of seeks.  Again, that shouldn't make too much 
of a 
difference if it's already buffered in RAM, should it?  setvbuf() on that file 
that 
gets lots of random access actually made performance worse.

What else can I do to make my code run as well on FreeBSD as it does on a much 
wimpier 
Linux machine?  I'm almost to the point of throwing in the towel and making a 
Linux 
server to do nothing more than run this one program if I can't FreeBSD's 
performance 
more on parity, and I honestly never thought I'd be considering that.

I'll gladly give shell access with my code and sample data files if anyone is 
interested in testing it.
-- 
Kirk Strauser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD + ZFS on a production server?

2008-06-11 Thread Wojciech Puchar

A broken processor usually results in random crashes, not
silent data corruption.


result in both in my practice. with broken companion chips (chipset) it's 
silent data corruption is common, while crashes can be under specific 
cases. that's from what i've got.



> or even calculate checksum right of wrong data generated by badly
> operating programs.

What do you mean, wrong data generated by programs?  If


wrong data generated by program because of hardware problem.


You usually notice it when it's too late and the last
good backup media was already recycled.


not that bad, but of course - i make backups.

> i think all your cases wasn't disk, but general hardware problems.

In my case it was a disk with media surface errors, and
the disk failed to report the error properly to the OS.
Instead it just returned bad data.


so i am just happy to never having it, while normal disk failures are 
quite common..




> ZFS may help detect it, or it may not. if it helped for you.

Please stop spreading FUD.  There is no "may or may not".
If a disk returns bad data, ZFS _will_ detect it.

please read more carefully. i didn't say it.

i just say that "disk returning bad data" is very rare case, lots of 
other - more frequent - hardware problems will not be detected.


if you like to give lots of CPU power and disk bandwidth for calculation 
of checksums on each read/write - then OK.

if you think you are secured this way - then OK.

i just say it doesn't make lot of protection against bad hardware, not 
worth the expense.


i probably shouldn't type that point as it can be turned off in ZFS.

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


Re: Openvpn on FreeBSD 7

2008-06-11 Thread Oliver Fromme
Andrew Berry wrote:
 > Nejc ?koberne wrote:
 > > 
 > > Why are you using TCP anyway?
 > 
 > I'd been having problems with UDP and QoS a long time ago. I just hadn't 
 > bothered to change it since it was working.

Note that using TCP on top of TCP can cause certain
problems, especially when packets are lost.  There's
a good explanation on this page:

http://sites.inka.de/sites/bigred/devel/tcp-tcp.html

The short story is:  If any packets are lost, the
resend-algorithms of the two TCP layers will start
to interfere with each other, because both have their
own timeouts and will start retransmitting packets
at their respective levels.  This is bad, because it
leads to a snowball effect.

If you can guarantee that there will be zero packet
loss, then TCP is fine.  Otherwise I recommend to
run the VPN on UDP.

Best regards
   Oliver

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

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

"If you think C++ is not overly complicated, just what is a protected
abstract virtual base pure virtual private destructor, and when was the
last time you needed one?"
-- Tom Cargil, C++ Journal
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mounting WD external USB disk

2008-06-11 Thread Wojciech Puchar

[EMAIL PROTECTED] ~]# mount_msdosfs /dev/da0s1 /mnt/
mount_msdosfs: /dev/da0s1: Disk too big, try '-o large' mount option: Invalid 
argument

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


Re: FreeBSD + ZFS on a production server?

2008-06-11 Thread Oliver Fromme
[attribution fixed]

Wojciech Puchar wrote:
 > Oliver Fromme wrote:
 > > Wojciech Puchar wrote:
 > > > 3) a CPU,cache and memory bandwidth hogging "feature" of checksumming all
 > > > blocks. thing that are already done in disk hardware. fortunately you can
 > > > turn this off
 > > 
 > > Obviously you have been lucky to never be a victim of
 > > silent disk corruption (or you just haven't noticed).
 > 
 > what you mean. that disk wrote the data wrong and doesn't detect it on 
 > read? i would mean broken disk processor, it's memory etc.

Correct.  It does happen.

 > possible - as much as broken main processor, main memory, some of chips on 
 > motherboard etc. -

A broken processor usually results in random crashes, not
silent data corruption.  Broken memory will be noticed if
it supports ECC, otherwise it will also result in crashes,
most probably.

 > which will make ZFS calculate checksum wrong on write, 

Even if that happens (without crashes or other things that
you'll notice immediately), the error will be detected by
ZFS and fixed ("healed") if possible, i.e. when running
with redundancy and at least one copy has a good checksum.

(GELI can only detect, but not fix.  ZFS can fix it, too.
I assume in theory it would be possible to make geli co-
operate with gmirror so it could fix bad blocks, too, but
that's just theory.  ZFS is reality.)

 > or even calculate checksum right of wrong data generated by badly 
 > operating programs.

What do you mean, wrong data generated by programs?  If
a program generates wrong output, there's nothing any
file system could do about that.  That's not the file
system's job at all.  The file systems job is to ensure
the integrity of data written to the disk, and ZFS does
exactly that.

 > given the complexity of motherboard+CPU etc. to complexity of disk 
 > hardware, i don't think "silent disk failure" happens often.

Fortunately it doesn't happen often, but it does happen.
And when it happens, you are in really serious trouble.
You usually notice it when it's too late and the last
good backup media was already recycled.

 > i think all your cases wasn't disk, but general hardware problems.

In my case it was a disk with media surface errors, and
the disk failed to report the error properly to the OS.
Instead it just returned bad data.

 > ZFS may help detect it, or it may not. if it helped for you.

Please stop spreading FUD.  There is no "may or may not".
If a disk returns bad data, ZFS _will_ detect it.
Silent corruption _cannot_ happen with ZFS, except if
you disable the checksumming feature intentionally.

 > even without ZFS it WOULD cause problems with programs like random 
 > crashes.

Please elaborate what the problem is, if you think there
is one.

 > personally i often got disk failing the way that it was unable to read or 
 > write giving an error, but never things like that.

As I said:  You were lucky.

 > > You're free to use UFS, of course, and keep suffering
 > > from its shortcomings.
 > 
 > i have to start suffering at first

Many people suffer without knowing.  :-)

I do suffer from UFS' shortcomings on many machines
on which I can't use ZFS (or other file systems) for
various reasons.

Best regards
   Oliver

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

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

With Perl you can manipulate text, interact with programs, talk over
networks, drive Web pages, perform arbitrary precision arithmetic,
and write programs that look like Snoopy swearing.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: generating random passwords

2008-06-11 Thread Jos Chrispijn

Bill Campbell wrote:

I much prefer apg which can generate more-or-less pronounceable
passwords which it is possible to remember (at least after typing
them a few times :-).
  
This is not supposed to be an offense to any author of a password 
generator, but:
Never, but never trust any random password generator. You do not know 
the author, you do not know the algoritm it uses and in worst case 
scenarion you do not know if there is a millisecond traffic to somewhere 
that is recording the generated password.

One of the biggest problems with random passwords is that they
end up written on yellow-stickies on the monitor or under the
keyboard.
  
You don't need a generated password for that; it is common behaviour for 
people that aren't involved in any responsibility whatsoever.


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


Re: Flashplugin

2008-06-11 Thread Robert Huff

eculp writes:

>  I've got a question.  A friend has been loaning me his old laptop
>  at work that runs Ubuntu and flash runs fine.  I have not been
>  able to make it fail, yet at least. Could there be a clue in
>  Ubuntu somewhare?  I'm actually thinking of running it under
>  kqemu, if there isn't too much overhead, on my amd64 laptop until
>  this gets sorted out.

The "Flashplugin"s in the ports collection are the Linux
versions, which require both a) an interface between the plugin and
the browser and b) the Linux emulation layer.
My last information about Flash9, gleaned from various FreeBSD
mailing lists: the problem is thought to be _somewhere_ between the
plugin and the emulation layer.  This is roughly equivalent to
saying there is a mouse somewhere in .
The current set of permanent pest control experts (the Linux
emulation crew) has considered the matter and decided this is not
worth the time.  As of the time I heard about it, this was in part
because a) Flash9 had tangible problems under Linux and b) even if
they knew what was broken in the plugin the track record of Adobe
being willing to fix it was poor.  (Volunteers for a special mission
should apply on the emulation@ list.)
Don't get me wrong - I'd love to have a working Flash
even under emulation.  But after _years_ of having hopes raised and
dashed I'm pretty much waiting for Flash10 which is supposed to have
an open spec API (ABI??).


Robert Huff

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


mounting WD external USB disk

2008-06-11 Thread AN
I'm trying to mount a WD "My Book" external usb hard drive, and am having 
a problem.


My system:
 uname -a
FreeBSD opteron.foo.bar 7.0-STABLE FreeBSD 7.0-STABLE #2: Wed Jun 11 
21:20:59 IDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERNEL 
i386


 camcontrol devlist
  at scbus0 target 0 lun 0 (pass0,cd0)
 at scbus4 target 0 lun 0 (da0,pass1)

Gnome 2.22.1

from /var/log/messages:

Jun 11 21:59:34 opteron kernel: umass0: 0/0, rev 2.00/1.65, addr 2> on uhub4
Jun 11 21:59:34 opteron root: Unknown USB device: vendor 0x1058 product 
0x1100 bus uhub4

Jun 11 21:59:34 opteron kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Jun 11 21:59:34 opteron kernel: da0:  Fixed 
Direct Access SCSI-4 device

Jun 11 21:59:34 opteron kernel: da0: 40.000MB/s transfers
Jun 11 21:59:34 opteron kernel: da0: 476940MB (976773168 512 byte sectors: 
255H 63S/T 60801C)
Jun 11 21:59:34 opteron kernel: GEOM_LABEL: Label for provider da0s1 is 
msdosfs/My Book.
Jun 11 21:59:35 opteron kernel: pid 807 (hald), uid 560: exited on signal 
11

Jun 11 22:02:01 opteron kernel: GEOM_LABEL: Label msdosfs/My Book removed.

I tried a few different commands:

mount -t msdos /dev/da0 /mnt/
mount: Using "-t msdosfs", since "-t msdos" is deprecated.
mount_msdosfs: /dev/da0: : Invalid argument
[EMAIL PROTECTED] ~]# mount_msdosfs /dev/da0 /mnt/
mount_msdosfs: /dev/da0: : Invalid argument
[EMAIL PROTECTED] ~]# mount_msdosfs /dev/da0s1 /mnt/
mount_msdosfs: /dev/da0s1: Disk too big, try '-o large' mount option: 
Invalid argument

[EMAIL PROTECTED] ~]# mount_msdosfs /dev/da0s1a /mnt/
mount_msdosfs: /dev/da0s1a: : No such file or directory
[EMAIL PROTECTED] ~]# mount_msdosfs /dev/da0s1c /mnt/
mount_msdosfs: /dev/da0s1c: : No such file or directory
[EMAIL PROTECTED] ~]# mount_msdosfs -o large /dev/da0s1c /mnt/
mount_msdosfs: /dev/da0s1c: : No such file or directory
[EMAIL PROTECTED] ~]# mount_msdosfs -o large /dev/da0 /mnt/
mount_msdosfs: /dev/da0: : Invalid argument


Any help is appreciated, the exact command would be really helpful.

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


Re: reboot after panic : page fault for two consecutive days now with FreeBSD stable 7.0

2008-06-11 Thread eculp

Quoting "Kris Kennaway" <[EMAIL PROTECTED]>:


eculp wrote:
This is on a relatively new Dell dualcore with 4G of ram running up  
to date stable.  I'm not on site so I have no idea what might be  
provoking these crashes.  In fact in many years of running FreeBSD  
I've not seen something just happen like this.  It is a  
simi-production machine that cvsups daily and builds and installs a  
new world and kernel.  Ports are updated about once a week and  
haven't seen any issues previously.  It has been running 24/7 since  
new, about 8 months.


3 files were generated info, bounds and vmcore.  The info file follows:

Dump header from device /dev/mfid0s1b
 Architecture: i386
 Architecture Version: 2
 Dump Length: 341225472B (325 MB)
 Blocksize: 512
 Dumptime: Wed Jun 11 12:34:24 2008
 Hostname: casasponti.net
 Magic: FreeBSD Kernel Dump
 Version String: FreeBSD 7.0-STABLE #258: Tue Jun 10 05:54:42 CDT 2008
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ENCONTACTO
 Panic String: page fault
 Dump Parity: 2395754794
 Bounds: 2
 Dump Status: good

the vmcore is about 300M so I'm not attaching it;) I could put it  
on line at a moments notice.  I think that what I need is probably  
a crash course on debugging a crash and I really don't know where  
to start since after over 10 years with freebsd I've never needed  
it.  Any help, suggestions, etc. would be greatly appreciated.


See the developers' handbook chapter on kernel debugging.


Thanks Kris.  I did that and I'm assuming that since debugging was not  
enabled in my kernel I got:


/usr/obj/usr/src/sys/ENCONTACTO # kgdb kernel.debug /var/crash/vmcore.2
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Cannot access memory at address 0x0
(kgdb)

I assume it will only work with the new kernel because the  
kernel.debug only got to Cannot access memory at address 0x4b55.   
Which means I have to wait for another crash.


I have already compiled a new kernelwith debuging and will reboot  
tonight to install the kernel and hopefully will never need to test it.


Thanks for your help,

ed



However, panics that "suddenly" start happening frequently on a  
system that has been stable for a while with no OS or workload  
changes made, are usually due to the hardware starting to fail.


Kris



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


Re: Question about torrents via console

2008-06-11 Thread Gonzalo Nemmi
On Wednesday 11 June 2008 15:16:29 Steve Lake wrote:
>  Hi all.  Ok, I'm curious of something.  I've done torrents before
> via the graphical interface before, but I want to setup a way to download
> isos and various FOSS apps via bittorrent, but I want to do it via the
> console so I can start a torrent in screen and then walk away, allowing my
> server to finish the work without having to leave my main workstation
> running to do the work like I normally do.  I'm using bittornado right now,
> and if there's a way to do this, I'd love to know how.
>
>
> Steven Lake
> Owner/Technical Writer
> Raiden's Realm
> www.raiden.net
> Bringing Linux and BSD to the World
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

rtorrent will cover all your needs and more .. 
excellent c++ CLI torrent client.
once you use it, there's no going back .. guaranteed

Blessings
-- 
Gonzalo Nemmi

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


Re: Problems opening mail on this list

2008-06-11 Thread Andrew Berry

Oliver Fromme wrote:

Paul Schmehl wrote:
 > [...]
 > By default, it appears that Mailman does not do content filtering.  It also has 
 > pass rules (if filtering is enabled) for multipart/mixed, multipart/alternative 
 > and text/plain.  So, it's possible that MIMEDefang is the culprit instead.


It's documented in the FreeBSD Handbook:

http://freebsd.org/handbook/eresources.html#ERESOURCES-MAILFILTERING

Best regards
   Oliver
Good find - it looks like Mail is using application/pkcs7-signature, 
while Thunderbird is using , application/x-pkcs7-signature, which is 
allowed. According to http://en.wikipedia.org/wiki/S/MIME#Caveats, 
either is an acceptable mime type. So I guess I should email the list 
admins and ask them to allow that mime type, since they are allowing 
signatures anyways on the list.


--Andrew


smime.p7s
Description: S/MIME Cryptographic Signature


Re: reboot after panic : page fault for two consecutive days now with FreeBSD stable 7.0

2008-06-11 Thread Kris Kennaway

eculp wrote:
This is on a relatively new Dell dualcore with 4G of ram running up to 
date stable.  I'm not on site so I have no idea what might be provoking 
these crashes.  In fact in many years of running FreeBSD I've not seen 
something just happen like this.  It is a simi-production machine that 
cvsups daily and builds and installs a new world and kernel.  Ports are 
updated about once a week and haven't seen any issues previously.  It 
has been running 24/7 since new, about 8 months.


3 files were generated info, bounds and vmcore.  The info file follows:

Dump header from device /dev/mfid0s1b
  Architecture: i386
  Architecture Version: 2
  Dump Length: 341225472B (325 MB)
  Blocksize: 512
  Dumptime: Wed Jun 11 12:34:24 2008
  Hostname: casasponti.net
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 7.0-STABLE #258: Tue Jun 10 05:54:42 CDT 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/ENCONTACTO
  Panic String: page fault
  Dump Parity: 2395754794
  Bounds: 2
  Dump Status: good

the vmcore is about 300M so I'm not attaching it;) I could put it on 
line at a moments notice.  I think that what I need is probably a crash 
course on debugging a crash and I really don't know where to start since 
after over 10 years with freebsd I've never needed it.  Any help, 
suggestions, etc. would be greatly appreciated.


See the developers' handbook chapter on kernel debugging.

However, panics that "suddenly" start happening frequently on a system 
that has been stable for a while with no OS or workload changes made, 
are usually due to the hardware starting to fail.


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


Re: generating random passwords

2008-06-11 Thread Andrew Berry

Zbigniew Szalbot wrote:

Hello,

Excuse me my ignorance. Is there a utility in FreeBSD that would allow 
me to generate random passwords without actually creating any accounts 
or modifying existing ones? I am looking for something to allow me to 
generate a random string of characters. I know I can randomly hit the 
keyboard but if anything like that exists, many thanks for your 
advice. :)


Best regards,

I've used pwgen from ports. It sounds similar to the other suggestions.

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


Re: Problems opening mail on this list

2008-06-11 Thread Oliver Fromme
Paul Schmehl wrote:
 > [...]
 > By default, it appears that Mailman does not do content filtering.  It also 
 > has 
 > pass rules (if filtering is enabled) for multipart/mixed, 
 > multipart/alternative 
 > and text/plain.  So, it's possible that MIMEDefang is the culprit instead.

It's documented in the FreeBSD Handbook:

http://freebsd.org/handbook/eresources.html#ERESOURCES-MAILFILTERING

Best regards
   Oliver

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

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

Perl is worse than Python because people wanted it worse.
-- Larry Wall
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: reboot after panic : page fault for two consecutive days now with FreeBSD stable 7.0

2008-06-11 Thread eculp

Quoting eculp <[EMAIL PROTECTED]>:

This is on a relatively new Dell dualcore with 4G of ram running up  
to date stable.  I'm not on site so I have no idea what might be  
provoking these crashes.  In fact in many years of running FreeBSD  
I've not seen something just happen like this.  It is a  
simi-production machine that cvsups daily and builds and installs a  
new world and kernel.  Ports are updated about once a week and  
haven't seen any issues previously.  It has been running 24/7 since  
new, about 8 months.


3 files were generated info, bounds and vmcore.  The info file follows:

Dump header from device /dev/mfid0s1b
  Architecture: i386
  Architecture Version: 2
  Dump Length: 341225472B (325 MB)
  Blocksize: 512
  Dumptime: Wed Jun 11 12:34:24 2008
  Hostname: casasponti.net
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 7.0-STABLE #258: Tue Jun 10 05:54:42 CDT 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/ENCONTACTO
  Panic String: page fault
  Dump Parity: 2395754794
  Bounds: 2
  Dump Status: good

the vmcore is about 300M so I'm not attaching it;) I could put it on  
line at a moments notice.  I think that what I need is probably a  
crash course on debugging a crash and I really don't know where to  
start since after over 10 years with freebsd I've never needed it.   
Any help, suggestions, etc. would be greatly appreciated.


Forgot I did try to debug but got nowhere:

/usr/obj/usr/src/sys/ENCONTACTO # kgdb kernel.debug /var/crash/vmcore.2
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Cannot access memory at address 0x0
(kgdb)

Ignorance, I'm sure.


Thanks,

ed
___
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]"


reboot after panic : page fault for two consecutive days now with FreeBSD stable 7.0

2008-06-11 Thread eculp
This is on a relatively new Dell dualcore with 4G of ram running up to  
date stable.  I'm not on site so I have no idea what might be  
provoking these crashes.  In fact in many years of running FreeBSD  
I've not seen something just happen like this.  It is a  
simi-production machine that cvsups daily and builds and installs a  
new world and kernel.  Ports are updated about once a week and haven't  
seen any issues previously.  It has been running 24/7 since new, about  
8 months.


3 files were generated info, bounds and vmcore.  The info file follows:

Dump header from device /dev/mfid0s1b
  Architecture: i386
  Architecture Version: 2
  Dump Length: 341225472B (325 MB)
  Blocksize: 512
  Dumptime: Wed Jun 11 12:34:24 2008
  Hostname: casasponti.net
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 7.0-STABLE #258: Tue Jun 10 05:54:42 CDT 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/ENCONTACTO
  Panic String: page fault
  Dump Parity: 2395754794
  Bounds: 2
  Dump Status: good

the vmcore is about 300M so I'm not attaching it;) I could put it on  
line at a moments notice.  I think that what I need is probably a  
crash course on debugging a crash and I really don't know where to  
start since after over 10 years with freebsd I've never needed it.   
Any help, suggestions, etc. would be greatly appreciated.


Thanks,

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


Re: Question about torrents via console

2008-06-11 Thread Andrew Berry

Steve Lake wrote:
Hi all.  Ok, I'm curious of something.  I've done torrents 
before via the graphical interface before, but I want to setup a way 
to download isos and various FOSS apps via bittorrent, but I want to 
do it via the console so I can start a torrent in screen and then walk 
away, allowing my server to finish the work without having to leave my 
main workstation running to do the work like I normally do.  I'm using 
bittornado right now, and if there's a way to do this, I'd love to 
know how. 
At least on Debian, the bittornado port includes the curses interface. 
It was called 'btdownload.curses' I think. It's possible it is all ready 
installed or is available via ports.


Another possibility is to run a GUI client in a VNC session. I do this 
with Azureus and am quite pleased with it.


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


Re: Question about torrents via console

2008-06-11 Thread Chess Griffin

Steve Lake wrote:
Hi all.  Ok, I'm curious of something.  I've done torrents 
before via the graphical interface before, but I want to setup a way to 
download isos and various FOSS apps via bittorrent, but I want to do it 
via the console so I can start a torrent in screen and then walk away, 
allowing my server to finish the work without having to leave my main 
workstation running to do the work like I normally do.  I'm using 
bittornado right now, and if there's a way to do this, I'd love to know 
how.





I have used net-p2p/ctorrent and net-p2p/rtorrent in the past and they 
have worked well.  Both are console bittorrent clients.  I am sure there 
are many others.


--
Chess Griffin
GPG Key:  0x0C7558C3
http://www.chessgriffin.com



signature.asc
Description: OpenPGP digital signature


Re: FreeBSD + ZFS on a production server?

2008-06-11 Thread Wojciech Puchar

Wojciech Puchar wrote:
> 3) a CPU,cache and memory bandwidth hogging "feature" of checksumming all
> blocks. thing that are already done in disk hardware. fortunately you can
> turn this off

Obviously you have been lucky to never be a victim of
silent disk corruption (or you just haven't noticed).


what you mean. that disk wrote the data wrong and doesn't detect it on 
read? i would mean broken disk processor, it's memory etc.


possible - as much as broken main processor, main memory, some of chips on 
motherboard etc. - which will make ZFS calculate checksum wrong on write, 
or even calculate checksum right of wrong data generated by badly 
operating programs.


given the complexity of motherboard+CPU etc. to complexity of disk 
hardware, i don't think "silent disk failure" happens often.


i think all your cases wasn't disk, but general hardware problems.
ZFS may help detect it, or it may not. if it helped for you.

even without ZFS it WOULD cause problems with programs like random 
crashes.



personally i often got disk failing the way that it was unable to read or 
write giving an error, but never things like that.



You're free to use UFS, of course, and keep suffering
from its shortcomings.


i have to start suffering at first
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD and NFSv4

2008-06-11 Thread Oliver Fromme
Konrad Heuer wrote:
 > are there any experiences with FreeBSD being an NFSv4 client out there?
 > 
 > And furthermore, is there any further development of NFSv4 functionality 
 > within FreeBSD to come closer to RFC 3530?

As far as I know (not 100% sure, though), the NFSv4 client
is under active development.  You might have better luck
getting a useful answer on the -fs and/or -hackers lists.

Best regards
   Oliver

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

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

 > Can the denizens of this group enlighten me about what the
 > advantages of Python are, versus Perl ?
"python" is more likely to pass unharmed through your spelling
checker than "perl".
-- An unknown poster and Fredrik Lundh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Effects of CPUTYPE

2008-06-11 Thread Wojciech Puchar

> In my personal opinion, the small gain you get is more than
> overwhelmed by the big pain you get from setting CPUTYPE.

I'm setting CPUTYPE on all of my machines for many years,
without the slightest problems.  No pain at all.  They're
all kinds of different processors, c3-2 (VIA), athlon64,
and so on.  In some cases the difference is very noticable.


exactly like me. i set it everywhere, no problems.

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


Re: FreeBSD-like linux distro?

2008-06-11 Thread Heikki Suonsivu

Frank Shute wrote:

On Wed, Jun 11, 2008 at 05:06:49PM +0300, Heikki Suonsivu wrote:

Oops, sorry, I was not specific enough:

FreeBSD 4 or older NetBSD are no go:

The computer I am doing this is not old, it is otherwise brand new, but 
it uses an embedded cpu, a 486 clone as SoC without math.  See 
www.compactpc.com.tw, eBOX 2300SX.  It is very low cost, runs on about 
3W of power with CF card as mass memory, 128M, 3 USB2, serials, sound, 
etc, it has VESA form factor so you can attach it behind many LCD 
displays, etc. They have beefier models, but this one is cheapest and 
uses least power, latter of which is the more critical requirement for us.


We would like to use it for certain control applications.  Linux works, 
has been tested, but requires patches (turn math emulation on, add 
support for built-in ethernet, bug workaround).


I don't know if this machine is going to be sited on an insecure
network or not. If it is, then you'll probably be using ssh. Without
a math co-proc to do the crypto, it will be horrendous. I don't even
know if ssh would work with an architecture without a maths unit.


You apparently do not use the source :), go and grep double and float 
from some of the most common programs you use (games, scientific stuff 
and crappy UI code excused).


> If it can't work with ssh, then you might be restricting your market.

ssh does not use any floating point for any crypto algorithm.  Oh, 
openssh does use doubles, it prints some ratios in some places, such as 
how many percent of something has been transferred.  It seems to be 
stirring random numbers as floating point non-exactness does is not a 
bother there, but that is not used past session init.  There is no 
human-noticeable effect on normal ssh use.


I was one of the first guinea pigs for original ssh.  We did have plenty 
of non-math cpus back then, and I did run ssh on non-fpu hardware until 
two years ago.  We did run backups and configuration tasks over ssh on 
number of non-fpu computers acting as routers and other servers those 
days.  Today's games might be different, but that is not what we do on 
these embedded computers...



I think you are punishing yourself unneccesarily by going with a
processor without maths. You restrict the software (both OS &
application) you can run.


Applications cannot tell the difference between math emulation and 
hardware from anything else than performance, so there is no code 
difference in application layer, and kernel does not do fp at all, other 
than trapping fpu instructions and emulating them on non-fpu hardware. 
Kernel itself does not do fp math.


I do not quite understand where this fear of non-fpu came from, as it 
made no practical difference just few years ago for anything but 
scientists in labs and intensive cad/graphics work.  In particular I do 
not understand why people have an idea that everything uses floating 
point.  Very few programs do heavy math processing, most common use is 
to double divide two longs to print out some statistics when program ends.


The problem with is that while FreeBSD 4 seemed to boot on it, it did 
not recognize any peripherals as they are new.  Old OS's are not really 
what we want, this is not one-off but volume product, it will be 
internet-connected so we need bugfixes and we need support for latest 
chipsets on 802.11 cards etc.


There is another similar CPU, even slower and less power consuming, I do 
not remember the part number, I think it was about 100 MHz 486 without 
math as well.  This was some manufacturer of microcontrollers.


Can't you find a manufacturer that makes something similar with a DX
instead? Or can you email this company and ask them how much it would
cost to run off X units with a 486DX rather than SX?


This is not 486, it is System-on-Chip thing.  There are couple of very 
cheap SoCs, which do not have math, but performance is otherwise 
adequate for most applications.  They are much faster than 486SX, by 
5-10 times factor, so they are becoming popular on embedded devices.



Heikki



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

Re: Question about torrents via console

2008-06-11 Thread Nerius Landys
F1 (vote yes) to rtorrent.  I have rtorrents running permanently on my
servers, seeding torrent files.  I use screen, just like you suggest.

On Wed, Jun 11, 2008 at 11:08 AM, Schiz0 <[EMAIL PROTECTED]> wrote:

> On Wed, Jun 11, 2008 at 2:16 PM, Steve Lake <[EMAIL PROTECTED]> wrote:
> >Hi all.  Ok, I'm curious of something.  I've done torrents before
> via
> > the graphical interface before, but I want to setup a way to download
> isos
> > and various FOSS apps via bittorrent, but I want to do it via the console
> so
> > I can start a torrent in screen and then walk away, allowing my server to
> > finish the work without having to leave my main workstation running to do
> > the work like I normally do.  I'm using bittornado right now, and if
> there's
> > a way to do this, I'd love to know how.
> >
>
> Look into rTorrent. It's excellent. It's CLI, and runs perfect inside
> a screen session. It supports encryption, prioritization, and all
> other major features of any good client.
>
> http://libtorrent.rakshasa.no/
> ___
> 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]"


Re: Flashplugin

2008-06-11 Thread eculp

Quoting "herbert langhans" <[EMAIL PROTECTED]>:

There are some instructions how you can get the Flashplayer running.  
Not perfect, but it will do in many cases.

http://freebsd.langhans.com.pl/af/index.html


Excellent howto Herb.  My problem is that it seems that firefox-devel  
doesn't work with amd64 but being stubborn, I'm forcing a compile just  
to be sure.  If it doesn't work on my laptop amd64 I will find a i386  
to test on.  Thanks for you work and documentation


Have a great day,

ed



Cheers
herbs

--
*** Herbert Langhans, Warschau
*** Sprachtraining Langhans
*** http://www.langhans.com.pl
*** [EMAIL PROTECTED]
*** NIP 526-229-61-51
*** Regon  014911759
*** Tel. 603 341 441
___
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]"


Re: question about posting to FreeBSD mailing lists

2008-06-11 Thread Oliver Fromme
Hello,

Novembre <[EMAIL PROTECTED]> wrote:
 > The problem is that I don't use any mail client, but the old fashion way of
 > using a web browser to log into my account and read my emails. That's why I
 > asked this question in the first place. Call me paranoid, but I just feel
 > more comfortable that way!
 > So to be more specific, how can I answer to a post from a mailing list from
 > within my, e.g., GMail or Yahoo! mailboxes? Is there any way to use the Raw
 > E-Mail output to send an email from within GMail to the OP and the list so
 > that it's threaded properly as well?

You need to take the "Message-ID" header of the message
that you're replying to, and put it into the "In-Reply-To"
header of your response.  That's what a standard mail
client does when you reply to a message.

The "In-Reply-To" header is used by clients and webmailers
to identify the thread and the order of messages within
that thread.

I've never used Gmail or Yahoo, so I don't know if they
provide a way to manually set the "In-Reply-To" header.
If they don't you're out of luck, I'm afraid.

By the way, I'm in a similar situation:  I'm not subscribed
to the lists, but I read them with a news client via an
NNTP gateway.  That gateway is one-way, i.e. I cannot post
follow-ups to the news groups.  Instead I use the reply-by-
mail function of the news client.  This works well, because
the NNTP gateway sets the "Reply-To" back to the list's
mail address (unless there already was a Reply-To header in
the original mail, which is kept), and I configured my news
client to copy the Message-ID into an In-Reply-To header,
so it works as expected.

Best regards
   Oliver

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

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

I suggested holding a "Python Object Oriented Programming Seminar",
but the acronym was unpopular.
-- Joseph Strout
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question about torrents via console

2008-06-11 Thread Schiz0
On Wed, Jun 11, 2008 at 2:16 PM, Steve Lake <[EMAIL PROTECTED]> wrote:
>Hi all.  Ok, I'm curious of something.  I've done torrents before via
> the graphical interface before, but I want to setup a way to download isos
> and various FOSS apps via bittorrent, but I want to do it via the console so
> I can start a torrent in screen and then walk away, allowing my server to
> finish the work without having to leave my main workstation running to do
> the work like I normally do.  I'm using bittornado right now, and if there's
> a way to do this, I'd love to know how.
>

Look into rTorrent. It's excellent. It's CLI, and runs perfect inside
a screen session. It supports encryption, prioritization, and all
other major features of any good client.

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


Re: Question about torrents via console

2008-06-11 Thread Norman Maurer
rtorrent should work for you

bye
Norman

2008/6/11 Steve Lake <[EMAIL PROTECTED]>:

>Hi all.  Ok, I'm curious of something.  I've done torrents before
> via the graphical interface before, but I want to setup a way to download
> isos and various FOSS apps via bittorrent, but I want to do it via the
> console so I can start a torrent in screen and then walk away, allowing my
> server to finish the work without having to leave my main workstation
> running to do the work like I normally do.  I'm using bittornado right now,
> and if there's a way to do this, I'd love to know how.
>
>
> Steven Lake
> Owner/Technical Writer
> Raiden's Realm
> www.raiden.net
> Bringing Linux and BSD to the World
>
>
> ___
> 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]"


Re: Flashplugin

2008-06-11 Thread eculp

Quoting "Derek Graham" <[EMAIL PROTECTED]>:


Hey all,

I have tried using swfdec-plugin to do flash, but it doesnt seem to work too
well at least with firefox.
One ... I prefer being able to select what flash loads automaticly and
Two ... I like to be able to see the flash video but all it does is freeze

I can't seem to get linux-flashplugin7 anymore due to the restricted status.
Flashplugin9 locks up also, which we all know already. I have heard gnash
doesnt do much better... Anyone have a solution that works halfway?


I've got a question.  A friend has been loaning me his old laptop at  
work that runs Ubuntu and flash runs fine.  I have not been able to  
make it fail, yet at least. Could there be a clue in Ubuntu somewhare?  
 I'm actually thinking of running it under kqemu, if there isn't too  
much overhead, on my amd64 laptop until this gets sorted out.


If anyone has flash9 working dependably under freebsd, please let us know how.

Thanks,

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


Question about torrents via console

2008-06-11 Thread Steve Lake
Hi all.  Ok, I'm curious of something.  I've done torrents before 
via the graphical interface before, but I want to setup a way to download 
isos and various FOSS apps via bittorrent, but I want to do it via the 
console so I can start a torrent in screen and then walk away, allowing my 
server to finish the work without having to leave my main workstation 
running to do the work like I normally do.  I'm using bittornado right now, 
and if there's a way to do this, I'd love to know how.



Steven Lake
Owner/Technical Writer
Raiden's Realm
www.raiden.net
Bringing Linux and BSD to the World


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


Re: Problems opening mail on this list

2008-06-11 Thread Paul Schmehl
--On Wednesday, June 11, 2008 13:13:42 -0400 Andrew Berry 
<[EMAIL PROTECTED]> wrote:



Here is a message signed with Thunderbird 2 on Windows (ugh...).



And it came through fine.

From: Andrew Berry <[EMAIL PROTECTED]>
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
MIME-Version: 1.0
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
micalg=sha1; boundary="ms060103070502080704070506"

--
Paul Schmehl
As if it wasn't already obvious,
my opinions are my own and not
those of my employer.

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


Re: FreeBSD + ZFS on a production server?

2008-06-11 Thread Oliver Fromme
Wojciech Puchar wrote:
 > 3) a CPU,cache and memory bandwidth hogging "feature" of checksumming all 
 > blocks. thing that are already done in disk hardware. fortunately you can 
 > turn this off

Obviously you have been lucky to never be a victim of
silent disk corruption (or you just haven't noticed).
There are other people who didn't have that much luck,
including me.

ZFS' checksumming and self-healing is a blessing.  If
you don't know how it works and call it marketing blah,
then I suggest you read up on it a bit.

And by the way, it doesn't take any significant amount
of CPU power on hardware that is not ancient.  I agree
that ZFS is not suitable to run on ancient hardware.
It isn't designed for that.

You're free to use UFS, of course, and keep suffering
from its shortcomings.

Best regards
   Oliver

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

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

"Python is an experiment in how much freedom programmers need.
Too much freedom and nobody can read another's code; too little
and expressiveness is endangered."
-- Guido van Rossum
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sendmail: stat=Deferred: Can't assign requested address

2008-06-11 Thread Derek Ragona

At 06:36 AM 6/11/2008, jonathan michaels wrote:

greetings all,

firstly, i am not subscribed, please cc: responces, appreciated.

i have been using freebsd v2.2.5-release (as my domains mx host
on a 486dx33 .. that was upgraded after 20 years running with 6
years on v2.2.5  to a p5-133 mhz into which i moved teh whole scsi
harddisk ssubsystem (card and drives) ther it ran v 2.2.5-r
faultlessly untill last january when i cleaned of teh hard
drives reformated averything and installed freebsd v6.2-release
!!

than after a few weeks of settling down and setting up every
thing worked well, as expected, then the sendmail nightmares
started ... basically the system could not send mail anywhere
!!!

cutting long story short, it was basically my having to relearn
teh whole universe .. there were more differences  than i had
planned for and it was an uphill battle relearning essentially
everything i had learned about freebsd over th previous ten
years.

about 3 weeks ago things started to make sence, herebouts,
slowly it is clearing up, as i started to understand sendmail
and getting teh configurations right .. most of teh poorly
configured hosts i've now cleaned up and are working properly,
but, one ...

i have now got one left and like teh linux chappie who i found
on google who had a similar "out of teh blue experience" like
mine, (about 2003) one day sendmail worked then teh veyr next it was
defereing everytingh .. just like here. this chappie had
replaced his nic, i've not done angthiny like that hppen here,
the machine is the machine and no hardware has been changed ??

i donot understand what is going on here .. i've included all
teh differnt bits in teh maillog file

here is teh /var/log/maillog exerpt

Jun  9 00:00:00 reality newsyslog[15991]: logfile turned over

Jun  9 03:01:05 reality sendmail[16485]: grew WorkList for 
/var/spool/clientmqueue to 2000
Jun  9 03:06:36 reality sendmail[17417]: m58H6aGk017417: from=root, 
size=12938, class=0, nrcpts=1, 
msgid=<[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]
Jun  9 03:06:36 reality sendmail[17417]: m58H6aGk017417: to=root, 
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, 
pri=42938, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Can't 
assign requested address
Jun  9 03:06:40 reality sendmail[17475]: m58H6dJG017475: from=root, 
size=137243, class=0, nrcpts=1, 
msgid=<[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]
Jun  9 03:06:40 reality sendmail[17475]: m58H6dJG017475: to=root, 
ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, 
pri=167243, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Can't 
assign requested address


Jun  9 03:06:49 reality sendmail[17463]: grew WorkList for 
/var/spool/clientmqueue to 2000
Jun  9 03:06:49 reality sendmail[17463]: m58H6aGk017417: to=root, 
ctladdr=root (0/0), delay=00:00:13, xdelay=00:00:00, mailer=relay, 
pri=132938, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Can't 
assign requested address
Jun  9 03:06:49 reality sendmail[17463]: m58H6dJG017475: to=root, 
ctladdr=root (0/0), delay=00:00:10, xdelay=00:00:00, mailer=relay, 
pri=257243, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Can't assign 
requested address
Jun  9 03:06:49 reality sendmail[17463]: m57LAP8l013868: to=root, 
delay=19:56:24, xdelay=00:00:00, mailer=relay, pri=3644350, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Can't assign requested address
Jun  9 03:06:49 reality sendmail[17463]: m57LAP8m013868: to=root, 
delay=19:56:24, xdelay=00:00:00, mailer=relay, pri=3768123, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Can't assign requested address
Jun  9 03:06:49 reality sendmail[17463]: m57H6qfr013304: to=root, 
ctladdr=root (0/0), delay=23:59:57, xdelay=00:00:00, mailer=relay, 
pri=4542984, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Can't assign 
requested address
Jun  9 03:06:49 reality sendmail[17463]: m57H6u1Q013363: to=root, 
ctladdr=root (0/0), delay=23:59:53, xdelay=00:00:00, mailer=relay, 
pri=4666757, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Can't assign 
requested address
Jun  9 03:06:49 reality sendmail[17463]: m56MMWd3009824: to=root, 
delay=1+18:44:17, xdelay=00:00:00, mailer=relay, pri=7861512, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Can't assign requested address
Jun  9 03:06:49 reality sendmail[17463]: m56LMVd3009703: to=root, 
delay=1+19:44:17, xdelay=00:00:00, mailer=relay, pri=8054226, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Can't assign requested address
Jun  9 03:06:49 reality sendmail[17463]: m56LMVd4009703: to=root, 
delay=1+19:44:17, xdelay=00:00:00, mailer=relay, pri=8177393, 
relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Can't assign requested address
Jun  9 03:06:49 reality sendmail[17463]: m56ILDAU009315: to=root, 
ctladdr=root (0/0), delay=1+22:45:36, xdelay=00:00:00, mailer=relay, 
pri=8670146, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Can't assign 
requested address
Jun  9 03:06:49 reality sendmail[17463]: m56H6f3Y009045: to=root, 
ctladdr=root (0/0), d

Re: how to determine the date a port is installed

2008-06-11 Thread Peter Pentchev
On Wed, Jun 11, 2008 at 01:40:19PM +0100, Florent Thoumie wrote:
> On Wed, Jun 11, 2008 at 8:31 AM, Peter Pentchev <[EMAIL PROTECTED]> wrote:
> > On Tue, Jun 10, 2008 at 10:41:25PM -0700, Jeremy Chadwick wrote:
> >> On Wed, Jun 11, 2008 at 12:09:33AM -0500, Novembre wrote:
> >> > Two questions:
> >> > 1) Is it possible to determine the date a port/package is installed?
> >>
> >> ls -ld /var/db/pkg/, use the mtime of the directory.
> >>
> >> > 2) How can I delete all the ports/packages installed after a certain 
> >> > date?
> >>
> >> Use a combination of find with the -mtime flag, and pkg_delete.
> >
> > Not really.  This is a bit dangerous.
> >
> > The dangerous part is "the mtime of the directory".  It would be much
> > better to use the mtime of the +CONTENTS file, since it never changes
> > *after* the package has been installed.
> 
> It actually does if you're using portupgrade (and probably
> portmaster), see the @pkgdep entries.
> 
> Use +DESC, +COMMENT or +MTREE_DIRS instead.

Yep.  Sorry.  Any of those would be a better candidate.
I'd simply forgotten about port management tools modifying
the dependencies in-place.

G'luck,
Peter

-- 
Peter Pentchev  [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED]
PGP key:http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Thit sentence is not self-referential because "thit" is not a word.


pgpKsLwZy90xN.pgp
Description: PGP signature


Re: FreeBSD-like linux distro?

2008-06-11 Thread Andrew Berry

Heikki Suonsivu wrote:
The computer I am doing this is not old, it is otherwise brand new, 
but it uses an embedded cpu, a 486 clone as SoC without math.  See 
www.compactpc.com.tw, eBOX 2300SX.  It is very low cost, runs on about 
3W of power with CF card as mass memory, 128M, 3 USB2, serials, sound, 
etc, it has VESA form factor so you can attach it behind many LCD 
displays, etc. They have beefier models, but this one is cheapest and 
uses least power, latter of which is the more critical requirement for 
us. 
That's a neat system. Are there any retailers in North America which 
sell them individually?


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


Re: Openvpn on FreeBSD 7

2008-06-11 Thread Andrew Berry

On 10-Jun-08, at 3:02 AM, Nejc Škoberne wrote:

Actually I don't think you can do the same thing with a tunnel. You have
to use a different IP addresses for the tunnel itself. Have you read the
OpenVPN manual?
Yes, I should have been clearer: With a tunnel, I can still push routes 
and DNS, as long as I'm willing to sacrifice the same IP address.
Yes, I did: 'tcpdump -i tun0'. Nothing shows up on the server, but on 
the client (OS X) I can see the pings being sent.
This means that there is a problem with the OpenVPN connection. Can 
you show

the tail of your logs on both sides?

Here's what I found:

Wed Jun 11 12:49:46 2008 client1/192.168.0.1:53237 MULTI: Learn: 
10.8.0.6 -> client1/192.168.0.1:53237
Wed Jun 11 12:49:46 2008 client1/192.168.0.1:53237 MULTI: primary 
virtual IP for client1/192.168.0.1:53237: 10.8.0.6


This was interesting since that IP wasn't being set by the client. I'd 
been manually setting it to 10.8.0.2, which caused this:


Wed Jun 11 12:50:04 2008 client1/192.168.0.1:53237 MULTI: bad source 
address from client [10.8.0.2], packet dropped
Wed Jun 11 12:50:05 2008 client1/192.168.0.1:53237 MULTI: bad source 
address from client [10.8.0.2], packet dropped
Wed Jun 11 12:50:06 2008 client1/192.168.0.1:53237 MULTI: bad source 
address from client [10.8.0.2], packet dropped
Wed Jun 11 12:50:07 2008 client1/192.168.0.1:53237 MULTI: bad source 
address from client [10.8.0.2], packet dropped


Changing it to 10.8.0.6 allowed the VPN to work over the tunnel. I could 
access the VPN server on .1.


Bridging still doesn't work - and I don't see any traffic over the 
interface either. Unfortunately, my laptop's network card just kicked 
the dust so it's going in for servicing. I might test it out using the 
Windows client on my desktop, but since it's inside the network all 
ready I imagine it would be much harder to test.

proto tcp


Why are you using TCP anyway?
I'd been having problems with UDP and QoS a long time ago. I just hadn't 
bothered to change it since it was working.


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


Re: Static NAT and PAT on FreeBSD 6.2

2008-06-11 Thread Matt Brennan
I have continued to experiment and am still running into the same issues.
Anyone?

-Matt

On Sun, Jun 1, 2008 at 5:33 PM, Matt Brennan <[EMAIL PROTECTED]> wrote:

> Hi All,
>
>  I am running FreeBSD 6.2-release. I have been running PAT via natd
> and ipfw for some time now and it runs great. However, I continue to
> try and employ static NAT on this router, and as soon as I do so all
> other clients lose routing. My natd.conf is as below:
>
> unregistered_only
> use_sockets
> log_ipfw_denied
> redirect_address 10.100.1.2 66.92.79.20
> alias_address 66.92.79.89
>
>  Whenever I run with this configuration all clients except the
> static'ed one lose routing out of the building. I have tried switching
> the order of the alias_address and redirect_address.
>
>  Any help is appreciated.
>
> -Matt
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems opening mail on this list

2008-06-11 Thread Andrew Berry

Here is a message signed with Thunderbird 2 on Windows (ugh...).

--Andrew


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problems opening mail on this list

2008-06-11 Thread Andrew Berry

Ian Smith wrote:

However, what normally happens to attachments to questions@, at least to
digests, is that they get stripped with a note pointing to the original
attachment, as this subsequent message from Chad illustrates:
  
Which makes sense - attachments don't clog up the list, and people can 
download them if they want. What I think is happening is that the 
attachment is being stripped, and Outlook is looking for it since it can 
be inferred that it exists from the MIME type. Of course, the error 
should be that the message can't be authenticated (That's what Mail 
does, and it's just a line, not a modal dialog), and have nothing to do 
with the recipient needing a certificate. But I think it's more general, 
as a PGP signature (which is no different from any other attachment) 
also caused Bob the error. I wonder if *any* scrubbed attachment will 
cause a problem?


I just had to set up another system as my macbook's network card has 
died, so I'll send a signed message with Thunderbird in a minute to see 
if it also causes the error. Bob, if it still causes an error, you 
should seriously look at changing to a mail client which won't cause you 
these problems, since you can't control what users on mailing lists send 
you :).


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


Re: Effects of CPUTYPE

2008-06-11 Thread Oliver Fromme
Jonathan Chen wrote:
 > Mark Ovens wrote:
 > > Trying to identify why I should be having all these problems I've been 
 > > looking for anything that may be specific to my machine. One thing I've 
 > > come up with is the fact that I have CPUTYPE?=athlon-mp in 
 > > /etc/make.conf on both 6.3 and 7.0.
 > 
 > In my personal opinion, the small gain you get is more than
 > overwhelmed by the big pain you get from setting CPUTYPE.

I'm setting CPUTYPE on all of my machines for many years,
without the slightest problems.  No pain at all.  They're
all kinds of different processors, c3-2 (VIA), athlon64,
and so on.  In some cases the difference is very noticable.

Having said that, it's certainly worth trying whether your
problems are gone when you compile without that setting.

Do you have any other unusual settings, such as non-standard
CFLAGS or anything?

BTW, I once was bitten by a similar problem, when building
software failed in strange ways, it turned out I had a bad
variable in my environment that was picked up by some build
scripts.  Maybe it's worth a try to run your ports builds
with a clean environment ("env -"), or try to install
binary packages instead of building ports yourself, in
order to narrow down where the problem is.

Best regards
   Oliver

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

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

"Python tricks" is a tough one, cuz the language is so clean. E.g.,
C makes an art of confusing pointers with arrays and strings, which
leads to lotsa neat pointer tricks; APL mistakes everything for an
array, leading to neat one-liners; and Perl confuses everything
period, making each line a joyous adventure .
-- Tim Peters
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD 7 and Apache 1.3.41 PROBLEM

2008-06-11 Thread Wojciech Puchar

In httpd-error.log
[Wed Jun 11 17:01:04 2008] [info] mod_unique_id: using ip addr 10.10.10.10
[Wed Jun 11 17:01:05 2008] [info] (2)No such file or directory: make_sock: for 
port 80, setsockopt: (SO_ACCEPTFILTER)
[Wed Jun 11 17:01:05 2008] [warn] pid file /var/run/httpd.pid overwritten -- 
Unclean shutdown of previous Apache run?

After hashing out
#LoadModule unique_id_module   libexec/apache/mod_unique_id.so
#AddModule mod_unique_id.c

Apache starts normally

Can anyone explain this?


are you sure you use the same apache version as with 6.*?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is FreeBSD suitable for my thinkpad T61 ?

2008-06-11 Thread herbert langhans
The linux progs run very well, what I can tell with my modest amount of
programs using this mode. BSD uses a seperate directory what contains all
linux-bins and it integrates well. Also the speed is like a normal Linux
distro. Maybe it is a good idea to get an old 20GB harddisk, change it
and give it a try while leaving your old HD with your current
installation intact?

Cheers
herbs


> 2) I have read the FreeBSD Handbook. According to Chapter 10: Linux Binary 
> Compatibility, it seems that FreeBSD lacks support of many commercial 
> softwares such as MATLAB, Oracle, Mathematica. Is the linux binary 
> compatibility stable enough for work ?
> 
> Thanks a lot.
> 
> 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

-- 
*** Herbert Langhans, Warschau
*** Sprachtraining Langhans
*** http://www.langhans.com.pl
*** herbert at langhans.com.pl
*** NIP 526-229-61-51
*** Regon  014911759
*** Tel. 603 341 441
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: intrusion? find is thrashing my disk every time I boot.

2008-06-11 Thread Oliver Fromme
Lowell Gilbert wrote:
 > "Steve Franks" <[EMAIL PROTECTED]> writes:
 > > I'm really no security expert.  I don't leave the system up 24/7, and
 > > I'm on a US DSL connection with a bunch of windows boxes.
 > > 
 > > Seems to be a recent phenomena, I've started experiencing disk
 > > thrashing I can hear across the room.  ps and top report cvslockd has
 > > been responsible for the thrashing (which usually occurs at a specific
 > > time of day (~1 am MST)), but now, find is doing the thrashing at boot
 > > every time (within the last week at least).  Needless to say, I
 > > haven't changed the system in any way during that week.  On windows,
 > > I'd just assume this to be normal behavior, but on FreeBSD, it's got
 > > me worried...
 > > 
 > > I presume the security section of the manual has a good into to
 > > detecting intruders, but first I'm interested if there is a legitimate
 > > reason for find to be torturing my disk.  I don't run much on my
 > > system - apache, cvs, portsnap, ssh, that's about it.
 > 
 > That's not really so little.  I would tend to doubt it's a security
 > issue, but tracking it down is still a good idea.  You should be able
 > to see what user is running the find, using ps(1), and that might give
 > a clue to what the purpose is (but probably not; it'll probably turn
 > out to be root).

This script might be useful for that purpose:

http://www.secnetix.de/olli/scripts/pidtrace

Given the process ID of the "find" process on the command
line, it will print its parent processes all the way up to
init(8).  That way you can easily find out if the "find"
was started by a cron job, by an rc.d script, or something
else.

Best regards
   Oliver

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

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

(On the statement print "42 monkeys" + "1 snake":)  By the way,
both perl and Python get this wrong.  Perl gives 43 and Python
gives "42 monkeys1 snake", when the answer is clearly "41 monkeys
and 1 fat snake".-- Jim Fulton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: generating random passwords

2008-06-11 Thread Wojciech Puchar


One of the biggest problems with random passwords is that they
end up written on yellow-stickies on the monitor or under the
keyboard.


there is no cure for that in FreeBSD. you need some non-computer hardware 
to stop that behaviour ;)

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


Re: Is FreeBSD suitable for my thinkpad T61 ?

2008-06-11 Thread cpghost
On Wed, 11 Jun 2008 14:29:30 + (UTC)
[EMAIL PROTECTED] wrote:

> On Wed, Jun 11, 2008 at 08:50:36PM +0800, [EMAIL PROTECTED] wrote:
> >
> > My current working involves scientific calculation and programming.
> > I'm from a linux background(redhat, debian, ubuntu), but after some
> > googling and comparison, I found FreeBSD more stable and I want to
> > try FreeBSD.  I am tired of a dual-boot system, so I want to just
> > install FreeBSD or another linux distribution(maybe ubuntu) on my
> > notebook.
> >
> 
> If FreeBSD runs on your new T61, you can install the Maxima port as a
> free alternative to MATLAB and Mathematica. Maxima does symbolic math
> and handles tensors. You can run Maxima code that proves that
> Einstein's theory of relativity has a far-reaching logical
> inconsistancy in it because the theory assumes torsion = 0 and
> curvature is nonzero. Non-zero curvature implies torsion also is
> non-zero. See the code in paper 93 at
> http://www.aias.us/index.php?goto=showPageByTitle&pageTitle=Unified_Field_Theory_papers

Maxima is great!

The following may also be quite useful:

  http://www.scipy.org/
  http://code.google.com/p/sympy/
  http://matplotlib.sourceforge.net/

If you prefer an integrated environment, try:

  http://sagemath.org/

-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]"


Re: Is FreeBSD suitable for my thinkpad T61 ?

2008-06-11 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Pietro Cerutti wrote:
| Wojciech Puchar wrote:
| |> tired of a dual-boot system, so I want to just install FreeBSD or
| |> another linux distribution(maybe ubuntu) on my notebook.
| |>
| |> My questions are:
| |> 1) Can FreeBSD work well with my hardware? The display card,
| |> CDRW/DVDRW, wireless, Ethernet and battery managment are the most
| |> important.
| |
| | not sure about display card. but everything else should be OK. it's
| | IBM/Lenovo :)
|
| nVIDIA drivers should support it:
|
| http://www.nvidia.com/object/freebsd_100.14.09.html

err, this is the most up to date :)

http://www.nvidia.com/object/freebsd_173.14.05.html
|
| |
| |> 2) I have read the FreeBSD Handbook. According to Chapter 10: Linux
| |> Binary Compatibility, it seems that FreeBSD lacks support of many
| |> commercial softwares such as MATLAB, Oracle, Mathematica. Is the linux
| |> binary compatibility stable enough for work ?
|
| Linux emulation is stable enough, I would say. I've used it to run
| Mathematica 5 in the past (see handbook).
|
|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhP/yQACgkQwMJqmJVx947A5gCfQ79JCQT/Ms/NhUi5J7zsi/dd
XKYAni1WDmassbnMg5H+Vj9xZPn87Dug
=0Vzp
-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: very strange reaction of the md disks

2008-06-11 Thread Oliver Fromme
Hello,

I don't know why nobody else has given the correct answer
to this (it's should actually be a FAQ).  So I'll try to
give an answer.

The Ghost <[EMAIL PROTECTED]> wrote:
 > Hello,
 > 
 > Maybe I just don't understand something, but anyway, it looks really odd.
 > 
 > I have a machine with 2 Gb RAM with a clean newly-installed
 > FREEBSD-7.0-RELEASE. I make two 300-MB mdconfig disks and populate
 > them, and when the first one was already full and the second one is
 > only half-full, I get a kernel panic "not enough memory".

Use "-t swap" with mdconfig(8), not "-t malloc".

 > [...]
 > I was very surprised to see that one gigabyte of my
 > memory suddenly became used up.

FreeBSD uses all memory for caching, as far as possible.
Free memory is wasted memory.

 > A friend of mine told me that such a panic is really a thing to write
 > a bugreport on it,

No.  It is clearly documented in the mdconfig(8) manpage:
"If the -o reserve option is not set, creating and filling
a large malloc-backed memory disk is a very easy way to
panic a system."

As I said above, you probably don't want a malloc-backed
memory disk (which means it consumes non-pagable kernel
memory), but a swap-backed disk (which is cached in regular
RAM and backed by swap).

If you're absolutely sure you want kernel-malloc for your
memory disk, you need to increase the kmem limit (see
"sysctl vm | grep kmem").

Best regards
   Oliver

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

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

"To this day, many C programmers believe that 'strong typing'
just means pounding extra hard on the keyboard."
-- Peter van der Linden
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: generating random passwords

2008-06-11 Thread Bill Campbell
On Wed, Jun 11, 2008, Roland Smith wrote:
>On Wed, Jun 11, 2008 at 09:20:30AM +0200, Zbigniew Szalbot wrote:
>> Hello,
>> 
>> Excuse me my ignorance. Is there a utility in FreeBSD that would allow 
>> me to generate random passwords without actually creating any accounts 
>> or modifying existing ones? I am looking for something to allow me to 
>> generate a random string of characters. I know I can randomly hit the 
>> keyboard but if anything like that exists, many thanks for your advice. :)
>
>Using FreeBSD's random device:
>tcsh syntax:
>( dd if=/dev/random bs=6 count=1 | openssl base64 > /dev/tty ) > & /dev/null
>
>sh syntax:
>dd if=/dev/random bs=6 count=1 2>/dev/null| openssl base64

I much prefer apg which can generate more-or-less pronounceable
passwords which it is possible to remember (at least after typing
them a few times :-).

One of the biggest problems with random passwords is that they
end up written on yellow-stickies on the monitor or under the
keyboard.

Bill
-- 
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186

With Congress, every time they make a joke it's a law; and every time
they make a law it's a joke.
-- Will Rogers
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is FreeBSD suitable for my thinkpad T61 ?

2008-06-11 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Wojciech Puchar wrote:
|> tired of a dual-boot system, so I want to just install FreeBSD or
|> another linux distribution(maybe ubuntu) on my notebook.
|>
|> My questions are:
|> 1) Can FreeBSD work well with my hardware? The display card,
|> CDRW/DVDRW, wireless, Ethernet and battery managment are the most
|> important.
|
| not sure about display card. but everything else should be OK. it's
| IBM/Lenovo :)

nVIDIA drivers should support it:

http://www.nvidia.com/object/freebsd_100.14.09.html

|
|> 2) I have read the FreeBSD Handbook. According to Chapter 10: Linux
|> Binary Compatibility, it seems that FreeBSD lacks support of many
|> commercial softwares such as MATLAB, Oracle, Mathematica. Is the linux
|> binary compatibility stable enough for work ?

Linux emulation is stable enough, I would say. I've used it to run
Mathematica 5 in the past (see handbook).


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhP/hsACgkQwMJqmJVx944oCQCfQN+mHM2k7RbGnQ45HW8qs/U+
9aQAoN9vDKMqI8DoZAG3tJaJ0YefjX6b
=x7TD
-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]"


  1   2   >