Re: perl qstn...

2010-04-05 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/04/2010 02:55:44, Chad Perrin wrote:
> 3. lazy evaluation, where the (result) is not evaluated until it is
> needed, which gives the interpreter plenty of time to notice there's
> an "unless" immediately following it
> 
> Obviously, the "real" answer in the case of Ruby and Perl falls somewhere
> around 1.5, but 3 is still a believable-sounding excuse, and perfectly
> acceptable to me.

perl (and ruby) are byte-compiled languages, not interpreted languages
(like sh).  All ordering variations on if and unless statements should
end up using pretty much the same sequence of opcodes once parsed and
compiled.

Cheers,

Matthew

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

iEYEARECAAYFAku61VIACgkQ8Mjk52CukIwLPQCfXW15dHTRMRfIENyT//OrzzAz
qYAAnjYjiRsS2jq9XaJ2xN15sM1BDc6K
=3PnR
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Finding port dependants

2010-04-05 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/04/2010 02:04:16, Aiza wrote:
> The ports make file tree is so very large now a days (21491 ports).
> Doing portsnap to download the complete ports system just to install 3
> ports is massive over kill. I have been doing package installs because
> the resources consumed in disk space (inodes used) and no compile time
> is such a time saver. But there are times when ports have no package or
> the package is not up to date. What I am looking for is a method to find
> the dependents and their dependents of the selected port. Then search
> the package system to determine which have no packages. Install all the
> packages and cvs only the make files for the ports lacking packages. I
> have script to fetch only the make files for the selected port.
> 
> So question is, does the ports index which I can download by it's self
> using portsnap contain the info to find all the dependents of a port?

In principle, yes, you should be able to use the INDEX to extract only a
port and its dependencies rather than downloading the whole ports tree.
 Remember you will need the *build* dependencies as well.  Not to
mention everything under /usr/ports/Mk and quite probably everything
with a name in CAPS under /usr/ports.

However, be aware that you will be confined to using just the /default/
port options: if you try and customize things, you'll change the
dependency graph and the standard INDEX won't match any more.

On the whole though, most people don't make any more than a cursory
attempt to implement something like this.  The amount of hassle just
isn't worth it.  The ports tree is not that huge in the grand scheme of
things -- without the distfiles it takes up about half a GB, and about
140,000 files or directories.  That's comparable to what some of the
larger ports (eg. OpenOffice: 1.9GB and 76,000 files once extracted) use
for their sources alone.  If you're running out of inodes that suggests
you didn't create the file system with the standard 4k per inode ratio.

Cheers,

Matthew

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

iEYEARECAAYFAku61DUACgkQ8Mjk52CukIwiUACeP9wGoDlfmCa1PPfm6GAVkJpk
K+kAn0VSl0kWnYAI4HpvQtqsTvq+9rCV
=ME8H
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ttyu0 link down

2010-04-05 Thread Sabine Baer
On Mon, Apr 05, 2010 at 08:59:15PM -0500, Jay Hall wrote:
 
[...]
 
> Using cu -l /dev/ttyu0 I receive a message stating "link down".
   ^
Shouldn't that be  /dev/cua0 instead?

$ less /etc/ttys|grep mgetty
cuau0  "/usr/local/sbin/mgetty"unknown on insecure 

Sabine

-- 
Good fences make good neighbours.   (N.N.)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How customized can an mfsroot be?

2010-04-05 Thread Tim Judd
On 4/5/10, Peter Steele  wrote:
>>If FreeBSD cannot write to /tmp or /var on boot, it automatically creates a
>> MFS filesystems for those mountpoints
>>and mounts them during boot.  You don't need to do anything.
>>
>>It works as the same readonly compactflash environments out there.
>
> D'oh! Man, wish I had known that. I just tried it and it worked fine. So I
> should have no problem converting my cloning process over to an iso/cd
> media. Definitely glad I don't have to mess around with a mfsroot
> environment.
>
> Thanks for the tip!
>
> Peter


Mistakes often lead to the greatest discoveries.  I had made a CD,
thinking I'd have to go through the same process of an mfsroot.
Booted the sucker, no errors, and I was about to fall over.  Since
then, I have learned the mfs_root (which has it's benefits, no
doubt...) method.


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


Re: perl qstn...

2010-04-05 Thread Chad Perrin
On Mon, Apr 05, 2010 at 05:36:32PM +0100, RW wrote:
> 
> IMO this is a bad mistake that other languages were quite right not to
> copy - a test shouldn't come after a block of code unless it's evaluated
> after the block (as in repeat...until) 

There are more things in heav'n and earth, Horatio, than are dreamt of by
designers of eagerly evaluated prefix notation languages.

Actually, I'd think that using "unless" that way would be right up the
alley of the users of most programming languages, since "unless" is here
just being used the same way as an infix notation operator with very high
precedence.  If you want to get rigorous about it, I'd prefer this
approach:

unless (condition) (result)

. . . where it uses strict prefix notation.  I know that some people
think postfix notation is the bee's knees because of implementation
reasons, but frankly, implementation should be something we never have to
see, in my opinion -- unless we're actually implementing it.  Computers
are for scut work; humans are for idea work.

Failing strict prefix notation, I'm okay with the way Perl and Ruby use
"unless".  This:

(result) unless (condition)

. . . could be explained away as fitting with any of:

1. conforming to natural language expectations, thus leaving
implementation scut-work to the realm of the computer

2. infix notation with very high precedence for "unless"

3. lazy evaluation, where the (result) is not evaluated until it is
needed, which gives the interpreter plenty of time to notice there's
an "unless" immediately following it

Obviously, the "real" answer in the case of Ruby and Perl falls somewhere
around 1.5, but 3 is still a believable-sounding excuse, and perfectly
acceptable to me.

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


pgpKFRwk4tO9r.pgp
Description: PGP signature


RE: How customized can an mfsroot be?

2010-04-05 Thread Peter Steele
>If FreeBSD cannot write to /tmp or /var on boot, it automatically creates a 
>MFS filesystems for those mountpoints
>and mounts them during boot.  You don't need to do anything.
>
>It works as the same readonly compactflash environments out there.

D'oh! Man, wish I had known that. I just tried it and it worked fine. So I 
should have no problem converting my cloning process over to an iso/cd media. 
Definitely glad I don't have to mess around with a mfsroot environment.

Thanks for the tip!

Peter

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


ttyu0 link down

2010-04-05 Thread Jay Hall

Ladies and Gentlemen,

Earlier today, I had to dial into a server to check a link from both  
sides (a router was down).  This evening, when I connected to the  
server I am not able to connect to the modem.


From dmesg
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]


Using cu -l /dev/ttyu0 I receive a message stating "link down".

I have issued a kill -HUP 1 to restart the ttys and receive the same  
message.  The same thing happens when rebooting the server.


Trying to open the port with minicom, I receive the following message

minicom: cannot open /dev/cuau0: Operation not permitted

If I change the port to /dev/ttyu0, I receive the following message

minicom: cannot open /dev/ttyu0: Permission denied

Permissions on /dev/ttyu0 and /dev/cuau0 are as follows

crw---  1 root  wheel0,  41 Apr  5 20:03 /dev/ttyu0
crw-rw  1 uucp  dialer0,  44 Apr  5 20:03 /dev/cuau0

Is this a hardware issue or am I missing something else?

Thanks,


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


Finding port dependants

2010-04-05 Thread Aiza
The ports make file tree is so very large now a days (21491 ports). 
Doing portsnap to download the complete ports system just to install 3 
ports is massive over kill. I have been doing package installs because 
the resources consumed in disk space (inodes used) and no compile time 
is such a time saver. But there are times when ports have no package or 
the package is not up to date. What I am looking for is a method to find 
the dependents and their dependents of the selected port. Then search 
the package system to determine which have no packages. Install all the 
packages and cvs only the make files for the ports lacking packages. I 
have script to fetch only the make files for the selected port.


So question is, does the ports index which I can download by it's self 
using portsnap contain the info to find all the dependents of a port?


Is there some software I can use to do this?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: example C code for reading db hash files

2010-04-05 Thread C. P. Ghost
On Tue, Apr 6, 2010 at 2:24 AM, Jim Sander  wrote:

> Thank you - but unfortunately, that doesn't help (it was the first place I
> checked actually) - I assume because of historical changes, but possibly
> because I'm missing something obvious.
>
>
> http://www.oracle.com/technology/documentation/berkeley-db/db/api_reference/C/dbopen.html
>vs.
> man 3 dbopen
>
> Things are *completely* different. Is the "stock BSD" db.h different than
> the Oracle db.h ?


Yes, they are.

According to
  /usr/src/lib/libc/db/README

"This is version 1.85 of the Berkeley DB code."

The BDB version on the Oracle site is A LOT younger than 1.85,
and has a very different API _and_ .db file format.

Before you decide which API to use, you should make sure that
you're reading the right .db file. file(1) will tell you what kind of
.db file it is.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How customized can an mfsroot be?

2010-04-05 Thread Tim Judd
On 4/5/10, Peter Steele  wrote:
>> But ... why are you constricting yourself to use mfs_root?  I have many
>> times ran FreeBSD completely from CDrom, which
>>will give you all 700 (or a DVD, 4.3G) usable space.
>>
>>I'd be happy to help, if you have questions.  but please direct the
>> questions to the mailing list.
>
> The reason I was doing it this way was because I didn't know how to provide
> the CD-ROM environment a writeable file system for /tmp and /var. Obviously
> these have to be setup as some kind of ram based file system. What's the
> trick?
>
>


If FreeBSD cannot write to /tmp or /var on boot, it automatically
creates a MFS filesystems for those mountpoints and mounts them during
boot.  You don't need to do anything.

It works as the same readonly compactflash environments out there.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: How customized can an mfsroot be?

2010-04-05 Thread Peter Steele
> But ... why are you constricting yourself to use mfs_root?  I have many times 
> ran FreeBSD completely from CDrom, which
>will give you all 700 (or a DVD, 4.3G) usable space.
>
>I'd be happy to help, if you have questions.  but please direct the questions 
>to the mailing list.

The reason I was doing it this way was because I didn't know how to provide the 
CD-ROM environment a writeable file system for /tmp and /var. Obviously these 
have to be setup as some kind of ram based file system. What's the trick?

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


Re: How customized can an mfsroot be?

2010-04-05 Thread Tim Judd
On 4/5/10, Peter Steele  wrote:
> We have a USB boot stick based cloning process that we're considering
> porting to a DVD based media. I'm not sure though that it's possible due to
> the restrictions I've seen in the mfsroot environment we'd have to use. For
> example, in our USB disk procedure, we create partitions using gpart and set
> up mirroring for the OS partitions. We even recognize 3Ware controllers and
> automatically create logical RAID sets from the available drives. In some
> earlier work I did with a pxe boot server a couple of years ago, I know that
> I could not setup mirrors via sysinstall and I assume that hasn't changed in
> FreeBSD 8. Is it possible to customize the mfsroot environment to run a
> larger variety of commands to allow us to duplicate the cloning process we
> use with USB boot sticks or is this project likely not doable?
>


I'm working through my own livecd boot mechanism currently.

>From my experience, there is a limit on how much space you can fit
into the kernel.. for modules.  mfs_root is considered a module.

Based on previous projects such as freesbie, mfsbsd, etc, you can run
between a 50-100MB compressed mfs_root to find how much data you can
store on that medium.  But ... why are you constricting yourself to
use mfs_root?  I have many times ran FreeBSD completely from CDrom,
which will give you all 700 (or a DVD, 4.3G) usable space.


I'd be happy to help, if you have questions.  but please direct the
questions to the mailing list.



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


Re: example C code for reading db hash files

2010-04-05 Thread Jim Sander
Thank you - but unfortunately, that doesn't help (it was the first  
place I checked actually) - I assume because of historical changes,  
but possibly because I'm missing something obvious.


http://www.oracle.com/technology/documentation/berkeley-db/db/ 
api_reference/C/dbopen.html

vs.
man 3 dbopen

Things are *completely* different. Is the "stock BSD" db.h different  
than the Oracle db.h ?




On Apr 5, 2010, at 7:06 PM, C. P. Ghost wrote:


On Mon, Apr 5, 2010 at 10:28 PM, Jim Sander  wrote:
Is there a handy C code reference or examples for db files? (google  
has not been kind to me) I have a tied hash from Perl using  
DB_File, and need read only access in a C program.


You mean a reference... like this?

http://www.oracle.com/technology/documentation/berkeley-db/db/ 
index.html


There are C, C++ and other bindings for the Berkeley DB,
each of which comes with some examples.
Use the bindings you feel most comfortable with.

-cpghost.

--
Cordula's Web. http://www.cordula.ws/


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


Re: example C code for reading db hash files

2010-04-05 Thread C. P. Ghost
On Mon, Apr 5, 2010 at 10:28 PM, Jim Sander  wrote:

> Is there a handy C code reference or examples for db files? (google has not
> been kind to me) I have a tied hash from Perl using DB_File, and need read
> only access in a C program.
>

You mean a reference... like this?

http://www.oracle.com/technology/documentation/berkeley-db/db/index.html

There are C, C++ and other bindings for the Berkeley DB,
each of which comes with some examples.
Use the bindings you feel most comfortable with.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Intel D945GSE vs Zotac ION ITX (was: Support for Zotac MB with nVidia ION chipset)

2010-04-05 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Mon Apr  5 16:34:40 2010
> Date: Tue, 6 Apr 2010 07:34:05 +1000
> From: Peter Jeremy 
> To: Jeremie Le Hen 
> Cc: freebsd-questions@freebsd.org, freebsd-hardw...@freebsd.org
> Subject: Re: Intel D945GSE vs Zotac ION ITX (was: Support for Zotac MB with
>  nVidia ION chipset)
>
>
> --n8g4imXOkfNTN/H1
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> On 2010-Apr-05 12:20:12 +0200, Jeremie Le Hen  wrote:
> >Nonetheless I'm a little worried by what you said about the lack of ECC.
> >Computers has been used for years before ECC came out and obviously they
> >worked :).
>
> Not really.  Most early computers had fairly extensive error detecting
> hardware.

Depends on what machines you're talking about.  One fairly well-known supe-r
computer class architecture from the mid 1960s ran without *any* error checking
in the CPU *or* main memory.  Dr. Seymour Cray analyzed things and concluded the
significant extra component count for just doing 'parity' checking, let alone
ECC made for a net _reduction_ in overall system reliability, *IF* the machine 
was run under very tightly controlled operating conditions -- the big ones being
extremely stable power and a very limited temperature range.  So, he specified
the design to tight tolerances, and ran truely 'naked' hardward. Scary, but 
true.
And, it worked.

This was also a machine where, at any given moment, a fair part of the data in
the CPU was 'in the wires' ("in transit" from one part of the CPU to another),
and significant parts of the wiring harness had to be of _just_the_right_length_
(speed-of-light considerations) for the box to work.  

Incidentally, this computer COULD NOT ADD two numbers together. Literally!!
It performed addition by 'complement and subtract'.  Yeah, it -sounds- silly,
but there were valid architectural reasons for it.



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


Re: Intel D945GSE vs Zotac ION ITX (was: Support for Zotac MB with nVidia ION chipset)

2010-04-05 Thread Peter Jeremy
On 2010-Apr-05 12:20:12 +0200, Jeremie Le Hen  wrote:
>Nonetheless I'm a little worried by what you said about the lack of ECC.
>Computers has been used for years before ECC came out and obviously they
>worked :).

Not really.  Most early computers had fairly extensive error detecting
hardware.  Early microprocessors didn't because the novelty of getting
an entire on a CPU on a chip was enough.  Most 486 based PCs supported
parity RAM but maufacturers and end-users found they could save pennies
by leaving the parity bits off.

ECC support was a requirement for building servers with microprocessors
and some support has trickled down to the desktop.  It hasn't been
really popular because wider memory costs more and most people want the
fastest, cheapest system possible to make their games render faster.
Occasional glitches don't matter.

With the current generation of CPUs, Intel appear to have made a
marketing decision to not support ECC on their desktop CPUs - if you
want ECC, you need to user a server-grade CPU (with a much greater
profit margin).  AMD have gone the other way and have have ECC support
in all their x64 chips except mobile ones.  You are still at the mercy
of motherboard manufacturers who decide to not include the tracks
between the DIMM sockets and the CPU.

>  Do you really think it might happen to be a problem?

There's no way to know.  Definitely, the added error checking in ZFS
have resulted in a number of "ZFS kept reporting errors and I found I
actually had bad hardware even though I've been using it for years"
reports.

>  Would an Intel board would compensate for this?

No.  The memory controller is embedded in the Atom and doesn't support
ECC.  If you decide to go the ECC path, you need to pick a different CPU.

-- 
Peter Jeremy


pgpVvDasCr3Le.pgp
Description: PGP signature


Re: ftp giving url but i want the IP address

2010-04-05 Thread RW
On Mon, 05 Apr 2010 13:10:37 -0500
Walter  wrote:

> On 4/5/10 10:08 AM -0500, Walter wrote:

> >If, by "host-specific url" you mean the name associated with
> >the IP address, you should be able to get the IP address by
> >using the "host" command.
> >  
> >
> "host xxx" does the trick. 

FWIW dig is a little cleaner for scripts

$ dig +short freebsd.org
69.147.83.40


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


example C code for reading db hash files

2010-04-05 Thread Jim Sander
Is there a handy C code reference or examples for db files? (google  
has not been kind to me) I have a tied hash from Perl using DB_File,  
and need read only access in a C program.


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


RE: How customized can an mfsroot be?

2010-04-05 Thread Peter Steele
>It sounds like http://mfsbsd.vx.sk/ would be helpful to you.
>(I havent used it yet due to lack of time but it looks good.)

Hmmm, that just might do the trick. I'll check it out, thanks.

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


Re: svn commit problems with sourceforge due to svn

2010-04-05 Thread Dominic Fandrey
On 05/04/2010 15:31, Marcin Wisnicki wrote:
> On Mon, 05 Apr 2010 13:26:16 +, Marcin Wisnicki wrote:
> 
>> On Mon, 05 Apr 2010 10:08:36 +0200, Dominic Fandrey wrote:
>>
>>>
>>> It seems svn is linked to both the base system version of OpenSSL
>>> (0.9.8k) and the package (1.0.0):
 ldd /usr/local/bin/svn |grep ssl
>>> libssl.so.7 => /usr/local/lib/libssl.so.7 (0x801c8f000) libssl.so.6 =>
>>> /usr/lib/libssl.so.6 (0x803242000)
>>
>>
>>> Does someone know a workaround/fix?
>>
>> Deinstall openssl package and rebuild svn.
>>
> 
> Also if the problem is reproducible - that is, svn being linked to both
> versions of openssl if package is installed, you should definitely file
> a bug against devel/subversion port.

I have libmapped .so.6 to .so.7, which works (so I forced the port
instead of the base install). It doesn't work the other way.

I don't think svn is directly linked to both versions of OpenSSL,
I think SVN is linked to one and a linked library is linked to the
other version of OpenSSL.

Regards

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How customized can an mfsroot be?

2010-04-05 Thread Vincent Hoffman
On 05/04/2010 18:03, Peter Steele wrote:
> We have a USB boot stick based cloning process that we're considering porting 
> to a DVD based media. I'm not sure though that it's possible due to the 
> restrictions I've seen in the mfsroot environment we'd have to use. For 
> example, in our USB disk procedure, we create partitions using gpart and set 
> up mirroring for the OS partitions. We even recognize 3Ware controllers and 
> automatically create logical RAID sets from the available drives. In some 
> earlier work I did with a pxe boot server a couple of years ago, I know that 
> I could not setup mirrors via sysinstall and I assume that hasn't changed in 
> FreeBSD 8. Is it possible to customize the mfsroot environment to run a 
> larger variety of commands to allow us to duplicate the cloning process we 
> use with USB boot sticks or is this project likely not doable?
>
>   
It sounds like http://mfsbsd.vx.sk/ would be helpful to you.
(I havent used it yet due to lack of time but it looks good.)

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

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


csup vs cvs

2010-04-05 Thread doug
Yesterday I was updating an 8.0 stable system to pick up a change I specifically 
needed. The change was MFC'd Apr 4th at 11:38. I waited until about 8PM and ran 
cvs from cvsup2.FreeBSD.org. When the change was not there, I waited until Apr 
5th, a bit after midnight. When I still did not pick up the change, I updated 
from a cvs repository.


My question is how are the mirrors updated (cvsup2 specifically I guess). In 
general is using csup and cvs equivalent processes for non developers?.


_
Douglas Denault
http://www.safeport.com
d...@safeport.com
Voice: 301-217-9220
  Fax: 301-217-9277
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: SSH root login with keys only

2010-04-05 Thread Marcin Wisnicki
On Mon, 05 Apr 2010 12:38:01 -0500, Peggy Wilkins wrote:

> On Mon, Apr 5, 2010 at 4:17 AM, Vincent Hoffman 
> wrote:
>>
>> However a note later in the default sshd_config file regarding the
>> UsePAM setting says
>> 'Depending on your PAM configuration,
>>  PAM authentication via ChallengeResponseAuthentication may bypass
>> the setting of "PermitRootLogin without-password".'
> 
> That PAM comment in sshd_config got my attention a number of years ago,
> so I did a lot of testing of various sshd/pam settings to try and
> understand what could happen and to try and make some sense out of it.
> 
> My configurations:
> 
> in /etc/ssh/sshd_config:
> PermitRootLogin without-password
> UsePAM yes

Hmm.. indeeed it seems to work just fine

> 
> I haven't gone so far as to check source code to see why this works as
> it does.  I'm guessing that PAM may allow passwords for root via
> something that isn't pam_unix since by design PAM can allow anything.
> But when using pam_unix, at least, it does observe the without-password
> setting for root.
> 

I've followed the code and it looks like when 'without-password' is enabled
then whatever password you entered will be replaced with "\b\n\r\177INCORRECT"
in auth-pam.c:1175 before calling pam with a hope that it is not really your
password ;)

But I've tried worst case scenario (auth sufficient pam_permit.so) and it seems
even that will be denied as there is an extra check in auth-pam.c:779 so it will
fail anyway:

fatal: Internal error: PAM auth succeeded when it should have failed

So it seems it is in fact perfectly safe to use such combination of options.

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


Re: [ HEADS UP ] Ports unstable for the next 10 days

2010-04-05 Thread Garrett Cooper
On Mon, Apr 5, 2010 at 12:05 PM, Antonio Olivares
 wrote:
> Ion-Mihai,
>
> Does this fix the following issue?
>
> I have installed FreeBSD 8.0 and updated it to current p2
>
>  I try to use konqueror and I get
>
>  There was an error loading the module About-Page for Konqueror.
>  The diagnostics is:
>  Cannot load library /usr/local/kde4/lib/kde4/konq_aboutpage.so:
>  (Shared object "libjpeg.so.10" not found, required by "libkhtml.so.7")
>
> Other programs like kile and k3b don't work because of the same
> message or others.  I did not know about this, otherwise I would not
> have tried to install these programs in the first place, till the
> coast was clear :(
>
> Thanks though, I saw the message a little bit late :(

Nope. You need to update all of jpeg. See UPDATING for more
details (but substitute this for the portmaster directions: "
portmaster -r 'jpeg-*' ".
HTH,
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: [ HEADS UP ] Ports unstable for the next 10 days

2010-04-05 Thread Antonio Olivares
Ion-Mihai,

Does this fix the following issue?

I have installed FreeBSD 8.0 and updated it to current p2

 I try to use konqueror and I get

 There was an error loading the module About-Page for Konqueror.
 The diagnostics is:
 Cannot load library /usr/local/kde4/lib/kde4/konq_aboutpage.so:
 (Shared object "libjpeg.so.10" not found, required by "libkhtml.so.7")

Other programs like kile and k3b don't work because of the same
message or others.  I did not know about this, otherwise I would not
have tried to install these programs in the first place, till the
coast was clear :(

Thanks though, I saw the message a little bit late :(

Regards,

Antonio




On 4/5/10, Ion-Mihai Tetcu  wrote:
> Just a status update:
>
> PNG and cURL are in, and png fall-outs are believed to be fixed.
>
> Xorg update has gone through an -exp run on Pointy and our xorg team is
> working on fixing the approx. 60 ports with problems.
>
> I will begin -exp runs for Gnome and KDE updates tonight or tomorrow
> morning.
>
>
> Packages status:
> - i386:
>   - 6 after png and curl
>   - 7 after png and curl
>   - an 8 incremental build is in progress and should be shortly finished
>   - 9 pacakges are from middle March
> - amd64:
>   - 6 packages are post png and curl
>   - 7 build is in progress and will be finished tomorrow
>   - 8 last build was done in the middle of the png update/fixes; we
> won't run an other before Xorg, KDE and Gnome go in (for lack of
> resources).
>   - 9 build in progress (with sources that are believed to fix the zlib
> problem).
>
>
> In other words, if you wish to update without waiting for Xorg, Gnome
> and KDE now it's a good moment.
>
>
> HTH,
>
> --
> IOnut - Un^d^dregistered ;) FreeBSD "user"
>   "Intellectual Property" is   nowhere near as valuable   as "Intellect"
> FreeBSD committer -> ite...@freebsd.org, PGP Key ID 057E9F8B493A297B
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: theme

2010-04-05 Thread Polytropon
On Mon, 5 Apr 2010 11:41:19 -0400, tristan  wrote:
> In some FreeBSD pictures, i see a dock at the bottom. how do i get this?

When reading "a dock", NeXT-oriented window managers such as
WindowMaker come into mind (which I am traditionally using,
but with the dock on the right).

Others may see XFCE (version 3) and Xfce (version 4) which
both have a dock, allthough it may be named differently.

If you're thinking about a dock as Mac OS X implements it, you
can do this with the Avant Window Navigator (AWN).

I'm currently trying to do *this* with FreeBSD:

http://xubuntublog.wordpress.com/2008/02/15/design-your-own-desktop-with-xfce-44-part-2/

Maybe it gives you some inspiration or further hints.


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


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread S Roberts
Hello Warren,

On Mon, 5 Apr 2010 12:04:19 -0600 (MDT)
Warren Block  wrote:

> On Mon, 5 Apr 2010, S Roberts wrote:
> 
> > This is a new, windows 7 preinstalled machine that came with **NO**
> > windows 7 install disks.
> 
> It's nice to make the first boot of a factory-fresh system from a
> backup CD like clonezilla and back up all of the partitions on the
> drive. That's before allowing them to boot into the manufacturer
> Windows setup.
> 

I can imagine.

The machine was set up with the windows 7 install on half of the disk,
and is already set up with the work-related commercial apps (visio, ip
comm, borland, etc) that I can't get away from, so I am where I am at
the moment as far as the window 7 section of this dual-boot plan is
concerned.

From where I sit, with (at least) three PRs already in for
sysinstall's broken boot manager config, and with one going back as far
as 2005, its not looking likely that anyone is interested in fixing this
problem anytime soon.

Thanks.

Regards,

S Roberts

> (PS: please trim your responses.  Thanks.)
> 
> -Warren Block * Rapid City, South Dakota USA
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"

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


Re: [ HEADS UP ] Ports unstable for the next 10 days

2010-04-05 Thread Ion-Mihai Tetcu
Just a status update:

PNG and cURL are in, and png fall-outs are believed to be fixed.

Xorg update has gone through an -exp run on Pointy and our xorg team is
working on fixing the approx. 60 ports with problems.

I will begin -exp runs for Gnome and KDE updates tonight or tomorrow
morning.


Packages status:
- i386: 
  - 6 after png and curl
  - 7 after png and curl
  - an 8 incremental build is in progress and should be shortly finished
  - 9 pacakges are from middle March
- amd64:
  - 6 packages are post png and curl
  - 7 build is in progress and will be finished tomorrow
  - 8 last build was done in the middle of the png update/fixes; we
won't run an other before Xorg, KDE and Gnome go in (for lack of
resources).
  - 9 build in progress (with sources that are believed to fix the zlib
problem).


In other words, if you wish to update without waiting for Xorg, Gnome
and KDE now it's a good moment.


HTH,

-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> ite...@freebsd.org, PGP Key ID 057E9F8B493A297B


signature.asc
Description: PGP signature


Re: ftp giving url but i want the IP address

2010-04-05 Thread Walter

Greg Larkin wrote:


Instead of standard ftpd, give lukemftpd a try.  I tested it briefly,
and failures are reported like so:

: FTP LOGIN FAILED FROM 192.168.xxx.yyy

Finally, instead of writing your own parsing script, sshguard monitors
your FTP logs, SSH logs and other services that you want to protect with
pf auto-blocking: http://www.freshports.org/security/sshguard/

Hope that helps,
Greg
 


sshguard sounds like what I'm building!  Their's isn't as simple as
mine is, but that's natural for a mature product.  I'll give it a look
and maybe pick it up.  Thanks!

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


Re: ftp giving url but i want the IP address

2010-04-05 Thread Walter

On 4/5/10 10:08 AM -0500, Walter wrote:


Walter,

I do some similar sounding things for my gateway just to
keep the logs from filling up with attack drivel. But it's
not quite the same problem as your question, so I don't do
what I'm about to recommend - it's more complex, involving
several formats, IPv4 and IPv6.

If, by "host-specific url" you mean the name associated with
the IP address, you should be able to get the IP address by
using the "host" command.
 


"host xxx" does the trick.  Thanks.  But another user has
suggested a ready-built package, which I'll look into before
coding it to work in my program.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread Warren Block

On Mon, 5 Apr 2010, S Roberts wrote:


This is a new, windows 7 preinstalled machine that came with **NO**
windows 7 install disks.


It's nice to make the first boot of a factory-fresh system from a backup 
CD like clonezilla and back up all of the partitions on the drive. 
That's before allowing them to boot into the manufacturer Windows setup.


(PS: please trim your responses.  Thanks.)

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ftp giving url but i want the IP address

2010-04-05 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Walter wrote:
> Greg Larkin wrote:
> 
>> Hi Walter,
>>
>> Did you send a HUP signal to inetd so it rereads the config file?
>>
>> kill -HUP `cat /var/run/inetd.pid`
>>
>> Hope that helps,
>> Greg
>>  
>>
> I actually rebooted (after a boo-boo).  So, Yes, inetd was
> restarted.

Ok, just wanted to make sure.  After quickly reviewing the ftpd code, I
didn't see a way to disable hostname lookups.

Instead of standard ftpd, give lukemftpd a try.  I tested it briefly,
and failures are reported like so:

: FTP LOGIN FAILED FROM 192.168.xxx.yyy

Finally, instead of writing your own parsing script, sshguard monitors
your FTP logs, SSH logs and other services that you want to protect with
pf auto-blocking: http://www.freshports.org/security/sshguard/

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLuiKI0sRouByUApARAsr8AJ9ga+GSfIYzIU0+v6tDx9OIIHzkhQCdH5bY
Sv/zbtezw0kL/EYGmWmbmFk=
=6RL/
-END PGP SIGNATURE-

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


Re: SSH root login with keys only

2010-04-05 Thread Peggy Wilkins
On Mon, Apr 5, 2010 at 4:17 AM, Vincent Hoffman  wrote:

> I missed the rest of this thread so sorry its its been said already. As
> far as I knew the directive
> PermitRootLogin without-password
> in /etc/ssh/sshd_config
> should accomplish what was requested.
>
> However a note later in the default sshd_config file regarding the
> UsePAM setting says
> 'Depending on your PAM configuration,
>  PAM authentication via ChallengeResponseAuthentication may bypass
> the setting of "PermitRootLogin without-password".'

That PAM comment in sshd_config got my attention a number of years
ago, so I did a lot of testing of various sshd/pam settings to try and
understand what could happen and to try and make some sense out of it.

My configurations:

in /etc/ssh/sshd_config:
PermitRootLogin without-password
UsePAM yes

in /etc/pam.d/sshd:
# auth: open policy: allow OPIE, ldap, and unix password
authsufficient  pam_opie.so no_warn no_fake_prompts
authrequisite   pam_opieaccess.so   no_warn allow_local
authsufficient  /usr/local/lib/pam_ldap.so
no_warn try_first_pass
authrequiredpam_unix.so no_warn try_first_pass

Using this configuration I have thoroughly tested on both FreeBSD-7
and (more recently) FreeBSD-8 and root is allowed in via ssh with
public key auth only; typing the unix password at it gets permission
denied for keyboard-interactive.  Non-root users are allowed in via
either LDAP password or local unix password as expected.

I haven't configured OPIE for root, but it wouldn't bother me if it
worked for root in this setup since its design addresses why passwords
are insecure in the first place.

I use this in production on all my systems and haven't changed any
other of FreeBSD's default configurations for sshd.

I haven't gone so far as to check source code to see why this works as
it does.  I'm guessing that PAM may allow passwords for root via
something that isn't pam_unix since by design PAM can allow anything.
But when using pam_unix, at least, it does observe the
without-password setting for root.

As always YMMV, but I am happy with this tested setup and so I use it
with confidence.

Peggy Wilkins
Sysadmin, The University of Chicago Library
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: How to create a "base" distribution set?

2010-04-05 Thread Peter Steele
>I use   make distributionin /usr/src
>to create the rest of the /etc files.

That seems to be exactly what I need. Thanks!

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


why use diablo JDK/JRE ?

2010-04-05 Thread Robert Huff

Masoom Shaikh writes:

>  what is the need for FreeBSD Foundation to maintain dialbo JDK/JRE
>  binaries when packages for openjdk are available on ftp servers ?
>  
>  
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/java/openjdk-7.0.86.tbz
>  
>  stupid me, never realized, just assumed that openjdk binaries cannot
>  be distributed
>  I always used to download diablo, then build openjdk :(
>  such a waste of time/effort

As far as I know, openjdk does not provide browser plugins.
If that's not a problem 


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


How customized can an mfsroot be?

2010-04-05 Thread Peter Steele
We have a USB boot stick based cloning process that we're considering porting 
to a DVD based media. I'm not sure though that it's possible due to the 
restrictions I've seen in the mfsroot environment we'd have to use. For 
example, in our USB disk procedure, we create partitions using gpart and set up 
mirroring for the OS partitions. We even recognize 3Ware controllers and 
automatically create logical RAID sets from the available drives. In some 
earlier work I did with a pxe boot server a couple of years ago, I know that I 
could not setup mirrors via sysinstall and I assume that hasn't changed in 
FreeBSD 8. Is it possible to customize the mfsroot environment to run a larger 
variety of commands to allow us to duplicate the cloning process we use with 
USB boot sticks or is this project likely not doable?


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


Re: How to create a "base" distribution set?

2010-04-05 Thread Tim Judd
On 4/5/10, Peter Steele  wrote:
> One of the distribution sets that comes on a standard release DVD is "base".
> This includes the core set of binaries as well as the files under /etc and a
> few other text files. Running "make installworld" doesn't collect everything
> that's needed. Is there a make option to gather all of the files? I assume
> something like "make release" might do that but I don't want to run a full
> release build, I just want to create the base distribution set.
>

I use   make distributionin /usr/src
to create the rest of the /etc files.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


why use diablo JDK/JRE ?

2010-04-05 Thread Masoom Shaikh
what is the need for FreeBSD Foundation to maintain dialbo JDK/JRE
binaries when packages for openjdk are available on ftp servers ?

ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/java/openjdk-7.0.86.tbz

stupid me, never realized, just assumed that openjdk binaries cannot
be distributed
I always used to download diablo, then build openjdk :(
such a waste of time/effort
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: SSH root login with keys only

2010-04-05 Thread Modulok
You should also consider posting your patch and related content to,
'freebsd-hack...@freebsd.org'.

-Modulok-


On 4/5/10, Marcin Wisnicki  wrote:
> On Mon, 05 Apr 2010 10:01:08 +0100, Matthew Seaman wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On 04/04/2010 22:04:35, Marcin Wisnicki wrote:
>>> Is it possible to configure sshd such that both conditions are met:
>>>
>>> 1. Root will be able to login only by using keys 2. Normal users will
>>> still be able to use pam/keyboard-interactive
>>
>> Only by running two instances of sshd on different ports / IP numbers.
>>
>
> Thanks for all reponses.
> I've finally solved it by configuring PAM to deny root.
> Unfortunately all of pam modules in base system that can do it,
> deny login only in "account" phase which is too late for sshd.
> I've modified pam_securetty to also provide "auth" facility.
>
> For anyone interested, here is a patch:
>
> --- /usr/src/lib/libpam/modules/pam_securetty/pam_securetty.c 2010-02-18
> 00:12:28.0 +0100
> +++ pam_securetty/pam_securetty.c 2010-04-05 04:47:21.0 +0200
> @@ -45,2 +45,3 @@
>
> +#define PAM_SM_AUTH
>  #define PAM_SM_ACCOUNT
> @@ -54,2 +55,24 @@
>  PAM_EXTERN int
> +pam_sm_authenticate(pam_handle_t *pamh, int flags,
> +int argc, const char *argv[])
> +{
> + const char *user;
> + int r;
> +
> + if ((r = pam_get_user(pamh, &user, NULL)) != PAM_SUCCESS)
> + return (r);
> +
> + return (pam_sm_acct_mgmt(pamh, flags, argc, argv));
> +}
> +
> +PAM_EXTERN int
> +pam_sm_setcred(pam_handle_t *pamh __unused, int flags __unused,
> +int argc __unused, const char *argv[] __unused)
> +{
> +
> + return (PAM_SUCCESS);
> +}
> +
> +
> +PAM_EXTERN int
>  pam_sm_acct_mgmt(pam_handle_t *pamh __unused, int flags __unused,
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: perl qstn...

2010-04-05 Thread RW
On Mon, 05 Apr 2010 09:57:17 +0100
Matthew Seaman  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 

> I've always found that 'unless' makes a great deal of sense when used
> in the alternate syntax:
> 
> do_foo()
> unless $condition ;
> 
> As far as I know, perl and its descendant ruby are the only
> programming languages that let you put the condition test after the
> action, 

IMO this is a bad mistake that other languages were quite right not to
copy - a test shouldn't come after a block of code unless it's evaluated
after the block (as in repeat...until) 

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


Re: theme

2010-04-05 Thread Modulok
Could you post a link to an example image?

It sounds like you're describing the features of a window manager of
some sort, in which case that would be a separate program. Examples of
window managers/desktop environments would include fluxbox, gnome,
awesome, kde, etc. It could be any one of them, depending on what the
author of the said picture was using.

-Modulok-

On 4/5/10, tristan  wrote:
> In some FreeBSD pictures, i see a dock at the bottom. how do i get this?
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


How to create a "base" distribution set?

2010-04-05 Thread Peter Steele
One of the distribution sets that comes on a standard release DVD is "base". 
This includes the core set of binaries as well as the files under /etc and a 
few other text files. Running "make installworld" doesn't collect everything 
that's needed. Is there a make option to gather all of the files? I assume 
something like "make release" might do that but I don't want to run a full 
release build, I just want to create the base distribution set.

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


Re: ftp giving url but i want the IP address

2010-04-05 Thread Walter

Greg Larkin wrote:


Hi Walter,

Did you send a HUP signal to inetd so it rereads the config file?

kill -HUP `cat /var/run/inetd.pid`

Hope that helps,
Greg
 


I actually rebooted (after a boo-boo).  So, Yes, inetd was
restarted.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


theme

2010-04-05 Thread tristan
In some FreeBSD pictures, i see a dock at the bottom. how do i get this?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread S Roberts
Hello Masoom,

On Mon, 5 Apr 2010 20:56:39 +0530
Masoom Shaikh  wrote:

> On Mon, Apr 5, 2010 at 7:13 PM, S Roberts 
> wrote:
> > Hello Masoom,
> >
> > On Mon, 5 Apr 2010 18:54:12 +0530
> > Masoom Shaikh  wrote:
> >
> >> On Mon, Apr 5, 2010 at 6:45 PM, S Roberts
> >>  wrote:
> >> > Hi Masoom,
> >> >   Good to hear from you..,
> >> >
> >> > On Mon, 5 Apr 2010 18:32:57 +0530
> >> > Masoom Shaikh  wrote:
> >> >
> >> >> On Sun, Apr 4, 2010 at 2:52 PM, Stacey Roberts
> >> >>  wrote:
> >> >> > Hello Leslie,
> >> >> >      Good to hear from you..,
> >> >> >
> >> >> > On Sun, 04 Apr 2010, Leslie Jensen wrote:
> >> >> >>
> >> >> >> http://www.mail-archive.com/freebsd-questions@freebsd.org/msg229158.html
> >> >> >>
> >> >> >> /Leslie
> >> >> >>
> >> >> >
> >> >> > I had a look at the thread - thanks..,
> >> >> >
> >> >> > The documentation for EasyBCD documentation itself states that
> >> >> > its compatible with windows vista - there's nowhere that
> >> >> > actually states that it supports windows 7.
> >> >>
> >> >> I have been using EasyBCD on Win7 + FBSD8 for some 6+ months now
> >> >>
> >> >
> >> > That's great to hear.., Can you confirm that you started off
> >> > with a pre-installed windows 7 machine / single disk and then
> >> > **added** FreeBSD, please?
> >>
> >> Win7 was not pre-installed. I have three partitions,
> >> part1(c:) - NTFS
> >> part2(d:) - FAT32
> >> part3 - UFS2, not visible to Win7, visible in Disk Management
> >> console as free space
> >>
> >> Win7 is installed on part1, part2 is data drive so that bot OSes
> >> can read/write do not want to use fusefs
> >>
> >> first install Win7, then FreeBSD, then boot in Win7 and use
> >> EasyBCD to add FreeBSD as another entry
> >> remember to advise FreeBSD to not touch MBR.
> >>
> >
> > Understood. So for your installation of FreeBSD, selecting "None
> > Leave Master Boot Record untouched" actually did work - and you did
> > **NOT** find that sysinstall still went ahead and messed with the
> > mbr?
> >
> > Sorry for the questions, but I recall a recent thread where a few
> > people confirmed that this option does not behave as expected,
> > and folks ended up with broken windows mbrs.
> 
> yes,
> http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056100.html
> thread is actually correct, for me it is fresh install, in your case
> it is little tricky to get it straight for a fresh install you can
> install FreeBSD first then Win7, and then use EasyBSD. done.
> 

Wiping the machine as you suggest is not an option. 

This is a new, windows 7 preinstalled machine that came with **NO**
windows 7 install disks.

> i guess, i have done that too. i.e. installed FreeBSD after Win7, then
> used Win7 CD to repair
> but take care, it can fail with that irritating send, don't send
> dialog box
> 

I'd have like to have known this earlier.., I wasn't set to start until
later this evening, so I guess its good to have found this out now.

> so here is one trick if you got guts to try :). I recently got saved
> with this trick
> 
> you have Win7 pre-installed, now free up some space and let FreeBSD
> install, select the option "do not touch mbr". Next boot you will find
> Win7 gone. Boot from Win7 CD and let it install at same location where
> it is/was installed. Setup will warn you of already existing
> installation. It might additionally say that it will move old
> installation to "Windows.old" folder. Ignore this warning and let
> setup continue. If I remember correctly the second option is
> Extracting Windows Files(percentage). Let it come to second step and
> execute it for a 5 mins, then cancel the setup, ignore all warning and
> it will undo all changes, but by that time it will already have fixed
> the bootloader problem. After you cancel setup, give it all time it
> needs to undo, don't force reboot/power down.
> 
> hope this will enable you too install FreeBSD, a great development
> environment have fun!
> 

As I said above, the machine did not come with windows 7 installation
media included.

W Block earlier referred to the sysinstall mbr issue as a "rare bug",
but if you have yourself encountered this bug 6 months ago, then it
would appear to have been broken for a long time.

A search of PRs show;
Mon, 26 Sep 2005 14:37:58 GMT: bin/86600: sysinstall(8): Sysinstall
boot manager screen is misleading

Tue, 26 Feb 2008 09:03:41 -0800 (PST): bin/121124: sysinstall(8):
FreeBSD 6.3 installation deletes MBR partition

Sat, 20 Dec 2008 00:11:51 GMT: bin/129771: sysinstall(8): 7.1 RC1
sysinstalls installs boot0 even when told not to

I've been managing FreeBSD servers for years now, so I guess this type
of issue did slip through my attention gap - even so, going by the
earliest date there, seems like this ball has been dropping for a long
time :-/

Thanks for the suggestions, Masoom.

Regards,

S Roberts

> >
> > Thanks again, Masoom.
> >
> > Regards,
> >
> > S Roberts
> >
> >> have fun!!
> >>
> >> >
> >> > Tell me something - Which of the 3 FreeBSD

Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread Leslie Jensen



so here is one trick if you got guts to try :). I recently got saved
with this trick

you have Win7 pre-installed, now free up some space and let FreeBSD
install, select the option "do not touch mbr". Next boot you will find
Win7 gone. Boot from Win7 CD and let it install at same location where
it is/was installed. Setup will warn you of already existing
installation. It might additionally say that it will move old
installation to "Windows.old" folder. Ignore this warning and let
setup continue. If I remember correctly the second option is
Extracting Windows Files(percentage). Let it come to second step and
execute it for a 5 mins, then cancel the setup, ignore all warning and
it will undo all changes, but by that time it will already have fixed
the bootloader problem. After you cancel setup, give it all time it
needs to undo, don't force reboot/power down.

hope this will enable you too install FreeBSD, a great development environment
have fun!


I would use the fixboot command to fix this, or boot from PartedMagic CD 
and set the boot flag on that partition.


/Leslie

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


Re: Compiling

2010-04-05 Thread Mikle Krutov
On Mon, Apr 05, 2010 at 10:35:05AM -0400, tristan wrote:
> How would i go about compiling the FreeBSD source code (to build my own) in 
> an Ubuntu machine? (windows 7 is also available). What programs do i need? 
> Were can i download the source code?
Why do even need this?
Also, i doubt any one had such an expirience before.


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


Re: Compiling

2010-04-05 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/04/2010 15:35:05, tristan wrote:
> How would i go about compiling the FreeBSD source code (to build my
> own) in an Ubuntu machine? (windows 7 is also available). What
> programs do i need? 

Really you need FreeBSD already installed if you want to compile FreeBSD
from source.  If you've got a spare partition of about 5GB or more[*]
then you can install there, boot into FreeBSD and away you go.
Everything you need to know about doing that is described in the
handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

If you haven't got a spare partition then vmware or VirtualBox or some
other virtualization solution are alternatives.  However, if you want to
use that to do a v-to-p migration, be aware that you'll probably want to
re-tune the kernel to better match the physical, and it may well be a
lot less hassle just to install directly on the physical server.

> Were can i download the source code?

ftp.freebsd.org and mirrors all round the world.  It's also available on
the installation .iso images.  Although you will find it considerably
more useful to use csup(1) or freebsd-update(1) from a FreeBSD box to
grab more recent patch-levels.

Cheers,

Matthew

[*] which is enough to install FreeBSD and still have a usable amount of
space left over -- quart-in-a-pint-pot types will no doubt follow up
explaining how they've managed to install FreeBSD on something
unfeasibly small.

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

iEYEARECAAYFAku6BdIACgkQ8Mjk52CukIzbGgCfRfntqD5plPb62wJhWgykMWlG
EhcAnjo7Kp3bUFzPEYvhEmkcVbvgtmHm
=84zK
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ftp giving url but i want the IP address

2010-04-05 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Walter wrote:
> I want to parse ftp error messages in auth.log and use the
> ip address in inserting a block into ipfw.  It works, except
> when ftpd spits out the host-specific url rather than the ip.
> Adding "-h" to the ftpd command in inet.conf didn't help.
> Can someone tell me how to do this, or point me to code
> (C) to convert it?
> 
> Thanks.  I'm off-list so please reply directly.
> 
> Walter
> ___

Hi Walter,

Did you send a HUP signal to inetd so it rereads the config file?

kill -HUP `cat /var/run/inetd.pid`

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLugXR0sRouByUApARAv00AJ9Ci0rwzG4cMBTQr9d50Lk4T6iXwwCgrtoJ
p8rszot7YctmhKv0B2QpraE=
=E9/c
-END PGP SIGNATURE-

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


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread Masoom Shaikh
On Mon, Apr 5, 2010 at 7:13 PM, S Roberts  wrote:
> Hello Masoom,
>
> On Mon, 5 Apr 2010 18:54:12 +0530
> Masoom Shaikh  wrote:
>
>> On Mon, Apr 5, 2010 at 6:45 PM, S Roberts 
>> wrote:
>> > Hi Masoom,
>> >   Good to hear from you..,
>> >
>> > On Mon, 5 Apr 2010 18:32:57 +0530
>> > Masoom Shaikh  wrote:
>> >
>> >> On Sun, Apr 4, 2010 at 2:52 PM, Stacey Roberts
>> >>  wrote:
>> >> > Hello Leslie,
>> >> >      Good to hear from you..,
>> >> >
>> >> > On Sun, 04 Apr 2010, Leslie Jensen wrote:
>> >> >>
>> >> >> http://www.mail-archive.com/freebsd-questions@freebsd.org/msg229158.html
>> >> >>
>> >> >> /Leslie
>> >> >>
>> >> >
>> >> > I had a look at the thread - thanks..,
>> >> >
>> >> > The documentation for EasyBCD documentation itself states that
>> >> > its compatible with windows vista - there's nowhere that actually
>> >> > states that it supports windows 7.
>> >>
>> >> I have been using EasyBCD on Win7 + FBSD8 for some 6+ months now
>> >>
>> >
>> > That's great to hear.., Can you confirm that you started off with a
>> > pre-installed windows 7 machine / single disk and then **added**
>> > FreeBSD, please?
>>
>> Win7 was not pre-installed. I have three partitions,
>> part1(c:) - NTFS
>> part2(d:) - FAT32
>> part3 - UFS2, not visible to Win7, visible in Disk Management console
>> as free space
>>
>> Win7 is installed on part1, part2 is data drive so that bot OSes can
>> read/write do not want to use fusefs
>>
>> first install Win7, then FreeBSD, then boot in Win7 and use EasyBCD to
>> add FreeBSD as another entry
>> remember to advise FreeBSD to not touch MBR.
>>
>
> Understood. So for your installation of FreeBSD, selecting "None Leave
> Master Boot Record untouched" actually did work - and you did **NOT**
> find that sysinstall still went ahead and messed with the mbr?
>
> Sorry for the questions, but I recall a recent thread where a few
> people confirmed that this option does not behave as expected,
> and folks ended up with broken windows mbrs.

yes, http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056100.html
thread is actually correct,
for me it is fresh install, in your case it is little tricky to get it straight
for a fresh install you can install FreeBSD first then Win7, and then
use EasyBSD. done.

i guess, i have done that too. i.e. installed FreeBSD after Win7, then
used Win7 CD to repair
but take care, it can fail with that irritating send, don't send dialog box

so here is one trick if you got guts to try :). I recently got saved
with this trick

you have Win7 pre-installed, now free up some space and let FreeBSD
install, select the option "do not touch mbr". Next boot you will find
Win7 gone. Boot from Win7 CD and let it install at same location where
it is/was installed. Setup will warn you of already existing
installation. It might additionally say that it will move old
installation to "Windows.old" folder. Ignore this warning and let
setup continue. If I remember correctly the second option is
Extracting Windows Files(percentage). Let it come to second step and
execute it for a 5 mins, then cancel the setup, ignore all warning and
it will undo all changes, but by that time it will already have fixed
the bootloader problem. After you cancel setup, give it all time it
needs to undo, don't force reboot/power down.

hope this will enable you too install FreeBSD, a great development environment
have fun!

>
> Thanks again, Masoom.
>
> Regards,
>
> S Roberts
>
>> have fun!!
>>
>> >
>> > Tell me something - Which of the 3 FreeBSD boot manager options did
>> > you select, please?
>>
>> don't let FreeBSD touch your MBR, Win7 won't like that
>>
>> >
>> > Thanks!
>> >
>> > Regards,
>> >
>> > S Roberts
>> >
>> >
>> >> >
>> >> > Or, am I missing something?
>> >> >
>> >> > I noted that the link by the responder in the thread also refers
>> >> > to a document that is based on windows vista, but will review
>> >> > this as well.
>> >> >
>> >> > Thanks!
>> >> >
>> >> > Regards,
>> >> >
>> >> > S Roberts
>> >> >
>> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> > Hello,
>> >> >> > Sorry if this has been asked before, but can some point me to
>> >> >> > where I can find info on installing FreeBSD-8 to a windows-7
>> >> >> > pre-installed machine (single disk) in a dual-boot set up,
>> >> >> > please?
>> >> >> >
>> >> >> > Any assistance is appreciated.
>> >> >> >
>> >> >> > Thanks.
>> >> >> >
>> >> >> > Regards,
>> >> >> >
>> >> >> > S Roberts
>> >> >> > ___
>> >> >> > freebsd-questions@freebsd.org mailing list
>> >> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> >> >> > To unsubscribe, send any mail to
>> >> >> > "freebsd-questions-unsubscr...@freebsd.org"
>> >> >> >
>> >> >>
>> >> >>
>> >> > ___
>> >> > freebsd-questions@freebsd.org mailing list
>> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> >> > To unsubscribe, send any mail to
>> >> > "freebsd-questions-unsubscr...@

Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread S Roberts
Hello Warren,
  Great to hear from you..,

On Mon, 5 Apr 2010 09:10:47 -0600 (MDT)
Warren Block  wrote:

> On Mon, 5 Apr 2010, S Roberts wrote:
> > Hello Masoom,
> >
>  I have been using EasyBCD on Win7 + FBSD8 for some 6+ months now
> >>>
> >>> That's great to hear.., Can you confirm that you started off with
> >>> a pre-installed windows 7 machine / single disk and then **added**
> >>> FreeBSD, please?
> 
> EasyBCD worked for me on a preinstalled Vista machine, adding FreeBSD
> 8. And of course Vista is just Win7 alpha.
> 

Understood - only realized this over the past 24 hours.,

> >> Win7 is installed on part1, part2 is data drive so that bot OSes
> >> can read/write do not want to use fusefs
> >>
> >> first install Win7, then FreeBSD, then boot in Win7 and use
> >> EasyBCD to add FreeBSD as another entry
> >> remember to advise FreeBSD to not touch MBR.
> >>
> >
> > Understood. So for your installation of FreeBSD, selecting "None
> > Leave Master Boot Record untouched" actually did work - and you did
> > **NOT** find that sysinstall still went ahead and messed with the
> > mbr?
> 
> No problem for me.
> 
> > Sorry for the questions, but I recall a recent thread where a few
> > people confirmed that this option does not behave as expected,
> > and folks ended up with broken windows mbrs.
> 
> There's a relatively rare bug in sysinstall, but even if there
> wasn't, you should still back up the existing MBR and the whole
> Windows partition before you add another OS.
> 
> For backup, you can use the FreeBSD livefs and dd, but clonezilla or 
> partimage are faster.  Clonezilla automatically saves a separate copy
> of the MBR, AFAIR.
> 

That's excellent information. I was unsure of the status of
sysinstall's integrity as far as the efficacy of these option
selections.

Will have a go shortly.

Regards,

S Roberts

> http://www.clonezilla.org/
> http://sysresccd.org/Main_Page
> 
> -Warren Block * Rapid City, South Dakota USA
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"

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


Compiling

2010-04-05 Thread tristan
How would i go about compiling the FreeBSD source code (to build my own) in an 
Ubuntu machine? (windows 7 is also available). What programs do i need? Were 
can i download the source code?

smime.p7s
Description: S/MIME cryptographic signature


Re: perl qstn...

2010-04-05 Thread parv
in message <867homm1qf@red.stonehenge.com>, wrote Randal L.
Schwartz thusly...
>
> > "Matthew" == Matthew Seaman
> >  writes:
>
> Matthew> As far as I know, perl and its descendant ruby are the
> Matthew> only programming languages that let you put the
> Matthew> condition test after the action, despite this being
> Matthew> exceeding familiar in human languages.
>
> Except, we old-timers remember that Larry Wall directly lifted this
> from RSTS-E BASIC-PLUS, which he had used at Pacific University as a
> student.  Having hacked BASIC-PLUS myself around the same time, I
> recognized it instantly.
>
> BASIC-PLUS went further though, allowing them to be nested.  So
> you'd end up with monstrosities like:

"Beauty is in the eye ...",  or, perhaos you would prefer "Only a
mother would ...".


> PRINT a
>   IF a % 3 = 2
> FOR a = b TO b+7
>   FOR b = 0 TO 90 STEP 10;

Oh Randal, don't tease me please about the lack of such loveliness in
perl.


  - parv

-- 

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


Re: ftp giving url but i want the IP address

2010-04-05 Thread Programmer In Training
On 04/05/10 10:08, Walter wrote:
> I want to parse ftp error messages in auth.log and use the
> ip address in inserting a block into ipfw.  It works, except
> when ftpd spits out the host-specific url rather than the ip.
> Adding "-h" to the ftpd command in inet.conf didn't help.
> Can someone tell me how to do this, or point me to code
> (C) to convert it?
> 
> Thanks.  I'm off-list so please reply directly.
> 
> Walter

Would it be possible to wrapper everything in a script that uses a
single ping (ping -c 1) to pull the resulting IP address from the
output? For example:

ping -c 1 google.com
PING google.com (74.125.47.103): 56 data bytes
64 bytes from 74.125.47.103: icmp_seq=0 ttl=53 time=111.391 ms

--- google.com ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 111.391/111.391/111.391/0.000 ms

seeing how that's the standard output for ping, couldn't you use grep
and a regex to grab the IP either from the parenthesis or that first
line? Of course there might be an easier way and/or better tool than
ping to do this.

CCing the list to get a discussion going as I imagine such a script
could have other uses.

-- 
Yours In Christ,

PIT
Emails are not formal business letters, whatever businesses may want.
Original content copyright under the OWL http://owl.apotheon.org
Please do not CC me. If I'm posting to a list it is because I am subscribed.



signature.asc
Description: OpenPGP digital signature


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread Warren Block

On Mon, 5 Apr 2010, S Roberts wrote:

Hello Masoom,


I have been using EasyBCD on Win7 + FBSD8 for some 6+ months now


That's great to hear.., Can you confirm that you started off with a
pre-installed windows 7 machine / single disk and then **added**
FreeBSD, please?


EasyBCD worked for me on a preinstalled Vista machine, adding FreeBSD 8. 
And of course Vista is just Win7 alpha.



Win7 is installed on part1, part2 is data drive so that bot OSes can
read/write do not want to use fusefs

first install Win7, then FreeBSD, then boot in Win7 and use EasyBCD to
add FreeBSD as another entry
remember to advise FreeBSD to not touch MBR.



Understood. So for your installation of FreeBSD, selecting "None Leave
Master Boot Record untouched" actually did work - and you did **NOT**
find that sysinstall still went ahead and messed with the mbr?


No problem for me.


Sorry for the questions, but I recall a recent thread where a few
people confirmed that this option does not behave as expected,
and folks ended up with broken windows mbrs.


There's a relatively rare bug in sysinstall, but even if there wasn't, 
you should still back up the existing MBR and the whole Windows 
partition before you add another OS.


For backup, you can use the FreeBSD livefs and dd, but clonezilla or 
partimage are faster.  Clonezilla automatically saves a separate copy of 
the MBR, AFAIR.


http://www.clonezilla.org/
http://sysresccd.org/Main_Page

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


ftp giving url but i want the IP address

2010-04-05 Thread Walter

I want to parse ftp error messages in auth.log and use the
ip address in inserting a block into ipfw.  It works, except
when ftpd spits out the host-specific url rather than the ip.
Adding "-h" to the ftpd command in inet.conf didn't help.
Can someone tell me how to do this, or point me to code
(C) to convert it?

Thanks.  I'm off-list so please reply directly.

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


Re: perl qstn...

2010-04-05 Thread Randal L. Schwartz
> "Matthew" == Matthew Seaman  writes:

Matthew> As far as I know, perl and its descendant ruby are the only
Matthew> programming languages that let you put the condition test after
Matthew> the action, despite this being exceeding familiar in human
Matthew> languages.

Except, we old-timers remember that Larry Wall directly lifted this from
RSTS-E BASIC-PLUS, which he had used at Pacific University as a student.
Having hacked BASIC-PLUS myself around the same time, I recognized it
instantly.

BASIC-PLUS went further though, allowing them to be nested.  So you'd
end up with monstrosities like:

PRINT a
  IF a % 3 = 2
FOR a = b TO b+7
  FOR b = 0 TO 90 STEP 10;

Thankfully, Larry limited Perl's statement modifiers to precisely one
level. :)

Just another old geezer,

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
 http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Intel D945GSE vs Zotac ION ITX (was: Support for Zotac MB with nVidia ION chipset)

2010-04-05 Thread Dan Naumov
On Mon, Apr 5, 2010 at 1:20 PM, Jeremie Le Hen  wrote:
> Nonetheless I'm a little worried by what you said about the lack of ECC.
> Computers has been used for years before ECC came out and obviously they
> worked :).  Do you really think it might happen to be a problem?  Would
> an Intel board would compensate for this?  Dan, have you ever
> experienced weird problems that could be explained by bitflips?

Personally, I haven't had any issues, but then again on the ZFS scale
of things, both my current pool size (2 TB) and projected pool size
when I add more disks (6 TB) is pretty small. If this was a heavily
used machine with a 10 TB pool or bigger, I would definately give
strong consideration to ECC.

> For the records, I've found an interesting and very recent post about
> someone running OpenSolaris on this Supermicro motherboard [1].  He uses
> a thumbdrive for the operating system and with four drives connected
> onto it, the whole system sucks 41 watts when idle (27 without any HDD,
> which is twice as the Intel D945GSE

The power draw (from the wall) for the Supermicro X7SPA-H without any
disks attached is as following:

26W - During boot.
24W - IDLE at console
28W - Full load

This is with a 80+ rated Corsair 400CX PSU. Sadly, I did not have the
opportunity to measure the power draw with powerd enabled. The D945GSE
is unsuitable for use as a ZFS NAS due to it's severe feature
limitations when compared against the X7SPA-H, of biggest concern
would be the limitation of RAM, followed by the amount of native SATA
ports, followed by the fact that you only get a PCI-E x1 (both
physical formfactor and speed-wise) slot for expansion, while most
controller cards are either 4x or 8x, meaning they simply wouldn't
physically fit into the slot.

Singlecore 1,6Ghz Diamondville Atom VS Dualcore 1,66Ghz Pineview Atom
1 RAM socket supporting a max of 1GB VS 2 RAM sockets supporting a max
of 4GB (note that X7SPA-H uses SO-DIMMs, not regular DIMMs)
2 SATA ports vs 6 SATA ports
1 Realtec NIC vs 2 x Intel NIC
PCI-E x1 Slot VS PCI-E x4 Slot (in x16 form factor) for expansion


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


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread S Roberts
Hello Masoom,

On Mon, 5 Apr 2010 18:54:12 +0530
Masoom Shaikh  wrote:

> On Mon, Apr 5, 2010 at 6:45 PM, S Roberts 
> wrote:
> > Hi Masoom,
> >   Good to hear from you..,
> >
> > On Mon, 5 Apr 2010 18:32:57 +0530
> > Masoom Shaikh  wrote:
> >
> >> On Sun, Apr 4, 2010 at 2:52 PM, Stacey Roberts
> >>  wrote:
> >> > Hello Leslie,
> >> >      Good to hear from you..,
> >> >
> >> > On Sun, 04 Apr 2010, Leslie Jensen wrote:
> >> >>
> >> >> http://www.mail-archive.com/freebsd-questions@freebsd.org/msg229158.html
> >> >>
> >> >> /Leslie
> >> >>
> >> >
> >> > I had a look at the thread - thanks..,
> >> >
> >> > The documentation for EasyBCD documentation itself states that
> >> > its compatible with windows vista - there's nowhere that actually
> >> > states that it supports windows 7.
> >>
> >> I have been using EasyBCD on Win7 + FBSD8 for some 6+ months now
> >>
> >
> > That's great to hear.., Can you confirm that you started off with a
> > pre-installed windows 7 machine / single disk and then **added**
> > FreeBSD, please?
> 
> Win7 was not pre-installed. I have three partitions,
> part1(c:) - NTFS
> part2(d:) - FAT32
> part3 - UFS2, not visible to Win7, visible in Disk Management console
> as free space
> 
> Win7 is installed on part1, part2 is data drive so that bot OSes can
> read/write do not want to use fusefs
> 
> first install Win7, then FreeBSD, then boot in Win7 and use EasyBCD to
> add FreeBSD as another entry
> remember to advise FreeBSD to not touch MBR.
> 

Understood. So for your installation of FreeBSD, selecting "None Leave
Master Boot Record untouched" actually did work - and you did **NOT**
find that sysinstall still went ahead and messed with the mbr?

Sorry for the questions, but I recall a recent thread where a few
people confirmed that this option does not behave as expected,
and folks ended up with broken windows mbrs.

Thanks again, Masoom.

Regards,

S Roberts

> have fun!!
> 
> >
> > Tell me something - Which of the 3 FreeBSD boot manager options did
> > you select, please?
> 
> don't let FreeBSD touch your MBR, Win7 won't like that
> 
> >
> > Thanks!
> >
> > Regards,
> >
> > S Roberts
> >
> >
> >> >
> >> > Or, am I missing something?
> >> >
> >> > I noted that the link by the responder in the thread also refers
> >> > to a document that is based on windows vista, but will review
> >> > this as well.
> >> >
> >> > Thanks!
> >> >
> >> > Regards,
> >> >
> >> > S Roberts
> >> >
> >> >
> >> >>
> >> >>
> >> >>
> >> >> > Hello,
> >> >> > Sorry if this has been asked before, but can some point me to
> >> >> > where I can find info on installing FreeBSD-8 to a windows-7
> >> >> > pre-installed machine (single disk) in a dual-boot set up,
> >> >> > please?
> >> >> >
> >> >> > Any assistance is appreciated.
> >> >> >
> >> >> > Thanks.
> >> >> >
> >> >> > Regards,
> >> >> >
> >> >> > S Roberts
> >> >> > ___
> >> >> > freebsd-questions@freebsd.org mailing list
> >> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> >> > To unsubscribe, send any mail to
> >> >> > "freebsd-questions-unsubscr...@freebsd.org"
> >> >> >
> >> >>
> >> >>
> >> > ___
> >> > freebsd-questions@freebsd.org mailing list
> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> > To unsubscribe, send any mail to
> >> > "freebsd-questions-unsubscr...@freebsd.org"
> >> >
> >
> >
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"

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


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread S Roberts
Hello Masoom,

On Mon, 5 Apr 2010 18:54:12 +0530
Masoom Shaikh  wrote:

> On Mon, Apr 5, 2010 at 6:45 PM, S Roberts 
> wrote:
> > Hi Masoom,
> >   Good to hear from you..,
> >
> > On Mon, 5 Apr 2010 18:32:57 +0530
> > Masoom Shaikh  wrote:
> >
> >> On Sun, Apr 4, 2010 at 2:52 PM, Stacey Roberts
> >>  wrote:
> >> > Hello Leslie,
> >> >      Good to hear from you..,
> >> >
> >> > On Sun, 04 Apr 2010, Leslie Jensen wrote:
> >> >>
> >> >> http://www.mail-archive.com/freebsd-questions@freebsd.org/msg229158.html
> >> >>
> >> >> /Leslie
> >> >>
> >> >
> >> > I had a look at the thread - thanks..,
> >> >
> >> > The documentation for EasyBCD documentation itself states that
> >> > its compatible with windows vista - there's nowhere that actually
> >> > states that it supports windows 7.
> >>
> >> I have been using EasyBCD on Win7 + FBSD8 for some 6+ months now
> >>
> >
> > That's great to hear.., Can you confirm that you started off with a
> > pre-installed windows 7 machine / single disk and then **added**
> > FreeBSD, please?
> 
> Win7 was not pre-installed. I have three partitions,
> part1(c:) - NTFS
> part2(d:) - FAT32
> part3 - UFS2, not visible to Win7, visible in Disk Management console
> as free space
> 
> Win7 is installed on part1, part2 is data drive so that bot OSes can
> read/write do not want to use fusefs
> 
> first install Win7, then FreeBSD, then boot in Win7 and use EasyBCD to
> add FreeBSD as another entry
> remember to advise FreeBSD to not touch MBR.
> 

Understood. So for your installation of FreeBSD, selecting "None Leave
Master Boot Record untouched" actually did work - and you did **NOT**
find that sysinstall still went ahead and messed with the mbr?

Sorry for the questions, but I recall a recent thread where a few
people confirmed that this option does not behave as expected,
and folks ended up with broken windows mbrs.

Thanks again, Masoom.

Regards,

S Roberts

> have fun!!
> 
> >
> > Tell me something - Which of the 3 FreeBSD boot manager options did
> > you select, please?
> 
> don't let FreeBSD touch your MBR, Win7 won't like that
> 
> >
> > Thanks!
> >
> > Regards,
> >
> > S Roberts
> >
> >
> >> >
> >> > Or, am I missing something?
> >> >
> >> > I noted that the link by the responder in the thread also refers
> >> > to a document that is based on windows vista, but will review
> >> > this as well.
> >> >
> >> > Thanks!
> >> >
> >> > Regards,
> >> >
> >> > S Roberts
> >> >
> >> >
> >> >>
> >> >>
> >> >>
> >> >> > Hello,
> >> >> > Sorry if this has been asked before, but can some point me to
> >> >> > where I can find info on installing FreeBSD-8 to a windows-7
> >> >> > pre-installed machine (single disk) in a dual-boot set up,
> >> >> > please?
> >> >> >
> >> >> > Any assistance is appreciated.
> >> >> >
> >> >> > Thanks.
> >> >> >
> >> >> > Regards,
> >> >> >
> >> >> > S Roberts
> >> >> > ___
> >> >> > freebsd-questions@freebsd.org mailing list
> >> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> >> > To unsubscribe, send any mail to
> >> >> > "freebsd-questions-unsubscr...@freebsd.org"
> >> >> >
> >> >>
> >> >>
> >> > ___
> >> > freebsd-questions@freebsd.org mailing list
> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> > To unsubscribe, send any mail to
> >> > "freebsd-questions-unsubscr...@freebsd.org"
> >> >
> >
> >
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"

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


Re: svn commit problems with sourceforge due to svn

2010-04-05 Thread Marcin Wisnicki
On Mon, 05 Apr 2010 13:26:16 +, Marcin Wisnicki wrote:

> On Mon, 05 Apr 2010 10:08:36 +0200, Dominic Fandrey wrote:
> 
>> 
>> It seems svn is linked to both the base system version of OpenSSL
>> (0.9.8k) and the package (1.0.0):
>>> ldd /usr/local/bin/svn |grep ssl
>>  libssl.so.7 => /usr/local/lib/libssl.so.7 (0x801c8f000) libssl.so.6 =>
>>  /usr/lib/libssl.so.6 (0x803242000)
> 
> 
>> Does someone know a workaround/fix?
> 
> Deinstall openssl package and rebuild svn.
> 

Also if the problem is reproducible - that is, svn being linked to both
versions of openssl if package is installed, you should definitely file
a bug against devel/subversion port.

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


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread Masoom Shaikh
On Mon, Apr 5, 2010 at 6:45 PM, S Roberts  wrote:
> Hi Masoom,
>   Good to hear from you..,
>
> On Mon, 5 Apr 2010 18:32:57 +0530
> Masoom Shaikh  wrote:
>
>> On Sun, Apr 4, 2010 at 2:52 PM, Stacey Roberts
>>  wrote:
>> > Hello Leslie,
>> >      Good to hear from you..,
>> >
>> > On Sun, 04 Apr 2010, Leslie Jensen wrote:
>> >>
>> >> http://www.mail-archive.com/freebsd-questions@freebsd.org/msg229158.html
>> >>
>> >> /Leslie
>> >>
>> >
>> > I had a look at the thread - thanks..,
>> >
>> > The documentation for EasyBCD documentation itself states that its
>> > compatible with windows vista - there's nowhere that actually
>> > states that it supports windows 7.
>>
>> I have been using EasyBCD on Win7 + FBSD8 for some 6+ months now
>>
>
> That's great to hear.., Can you confirm that you started off with a
> pre-installed windows 7 machine / single disk and then **added**
> FreeBSD, please?

Win7 was not pre-installed. I have three partitions,
part1(c:) - NTFS
part2(d:) - FAT32
part3 - UFS2, not visible to Win7, visible in Disk Management console
as free space

Win7 is installed on part1, part2 is data drive so that bot OSes can read/write
do not want to use fusefs

first install Win7, then FreeBSD, then boot in Win7 and use EasyBCD to
add FreeBSD as another entry
remember to advise FreeBSD to not touch MBR.

have fun!!

>
> Tell me something - Which of the 3 FreeBSD boot manager options did you
> select, please?

don't let FreeBSD touch your MBR, Win7 won't like that

>
> Thanks!
>
> Regards,
>
> S Roberts
>
>
>> >
>> > Or, am I missing something?
>> >
>> > I noted that the link by the responder in the thread also refers to
>> > a document that is based on windows vista, but will review this as
>> > well.
>> >
>> > Thanks!
>> >
>> > Regards,
>> >
>> > S Roberts
>> >
>> >
>> >>
>> >>
>> >>
>> >> > Hello,
>> >> > Sorry if this has been asked before, but can some point me to
>> >> > where I can find info on installing FreeBSD-8 to a windows-7
>> >> > pre-installed machine (single disk) in a dual-boot set up,
>> >> > please?
>> >> >
>> >> > Any assistance is appreciated.
>> >> >
>> >> > Thanks.
>> >> >
>> >> > Regards,
>> >> >
>> >> > S Roberts
>> >> > ___
>> >> > freebsd-questions@freebsd.org mailing list
>> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> >> > To unsubscribe, send any mail to
>> >> > "freebsd-questions-unsubscr...@freebsd.org"
>> >> >
>> >>
>> >>
>> > ___
>> > freebsd-questions@freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> > To unsubscribe, send any mail to
>> > "freebsd-questions-unsubscr...@freebsd.org"
>> >
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: svn commit problems with sourceforge due to svn

2010-04-05 Thread Marcin Wisnicki
On Mon, 05 Apr 2010 10:08:36 +0200, Dominic Fandrey wrote:

> Hello,
> 
> I'd like to commit my new release of sysutils/automounter to the
> sourceforge svn repository, so that I can branch the release.
> 
> Unfortunately there seems to be a problem with OpenSSL: svn: Commit
> failed (details follow):
> svn: OPTIONS of
> 'https://bsdadminscripts.svn.sourceforge.net/svnroot/bsdadminscripts/automounter':
> SSL negotiation failed: SSL disabled due to library version mismatch
> (https://bsdadminscripts.svn.sourceforge.net)
> 
> It seems svn is linked to both the base system version of OpenSSL
> (0.9.8k) and the package (1.0.0):
>> ldd /usr/local/bin/svn |grep ssl
>   libssl.so.7 => /usr/local/lib/libssl.so.7 (0x801c8f000) libssl.so.6 =>
>   /usr/lib/libssl.so.6 (0x803242000)
> 
> I have no idea which version of OpenSSL is used by SF.

It does not matter.

> 
> Does someone know a workaround/fix?

Deinstall openssl package and rebuild svn.

Alternatively you could try mapping one of them to another in libmap.conf(5),
but it may not work or cause troubles.

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


Re: SSH root login with keys only

2010-04-05 Thread Marcin Wisnicki
On Mon, 05 Apr 2010 10:01:08 +0100, Matthew Seaman wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 04/04/2010 22:04:35, Marcin Wisnicki wrote:
>> Is it possible to configure sshd such that both conditions are met:
>> 
>> 1. Root will be able to login only by using keys 2. Normal users will
>> still be able to use pam/keyboard-interactive
> 
> Only by running two instances of sshd on different ports / IP numbers.
> 

Thanks for all reponses.
I've finally solved it by configuring PAM to deny root.
Unfortunately all of pam modules in base system that can do it,
deny login only in "account" phase which is too late for sshd.
I've modified pam_securetty to also provide "auth" facility.

For anyone interested, here is a patch:

--- /usr/src/lib/libpam/modules/pam_securetty/pam_securetty.c   2010-02-18 
00:12:28.0 +0100
+++ pam_securetty/pam_securetty.c   2010-04-05 04:47:21.0 +0200
@@ -45,2 +45,3 @@
 
+#define PAM_SM_AUTH
 #define PAM_SM_ACCOUNT
@@ -54,2 +55,24 @@
 PAM_EXTERN int
+pam_sm_authenticate(pam_handle_t *pamh, int flags,
+int argc, const char *argv[])
+{
+   const char *user;
+   int r;
+
+   if ((r = pam_get_user(pamh, &user, NULL)) != PAM_SUCCESS)
+   return (r);
+
+   return (pam_sm_acct_mgmt(pamh, flags, argc, argv));
+}
+
+PAM_EXTERN int
+pam_sm_setcred(pam_handle_t *pamh __unused, int flags __unused,
+int argc __unused, const char *argv[] __unused)
+{
+
+   return (PAM_SUCCESS);
+}
+
+
+PAM_EXTERN int
 pam_sm_acct_mgmt(pam_handle_t *pamh __unused, int flags __unused,

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


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread S Roberts
Hi Masoom,
   Good to hear from you..,

On Mon, 5 Apr 2010 18:32:57 +0530
Masoom Shaikh  wrote:

> On Sun, Apr 4, 2010 at 2:52 PM, Stacey Roberts
>  wrote:
> > Hello Leslie,
> >      Good to hear from you..,
> >
> > On Sun, 04 Apr 2010, Leslie Jensen wrote:
> >>
> >> http://www.mail-archive.com/freebsd-questions@freebsd.org/msg229158.html
> >>
> >> /Leslie
> >>
> >
> > I had a look at the thread - thanks..,
> >
> > The documentation for EasyBCD documentation itself states that its
> > compatible with windows vista - there's nowhere that actually
> > states that it supports windows 7.
> 
> I have been using EasyBCD on Win7 + FBSD8 for some 6+ months now
> 

That's great to hear.., Can you confirm that you started off with a
pre-installed windows 7 machine / single disk and then **added**
FreeBSD, please?

Tell me something - Which of the 3 FreeBSD boot manager options did you
select, please?

Thanks!

Regards,

S Roberts


> >
> > Or, am I missing something?
> >
> > I noted that the link by the responder in the thread also refers to
> > a document that is based on windows vista, but will review this as
> > well.
> >
> > Thanks!
> >
> > Regards,
> >
> > S Roberts
> >
> >
> >>
> >>
> >>
> >> > Hello,
> >> > Sorry if this has been asked before, but can some point me to
> >> > where I can find info on installing FreeBSD-8 to a windows-7
> >> > pre-installed machine (single disk) in a dual-boot set up,
> >> > please?
> >> >
> >> > Any assistance is appreciated.
> >> >
> >> > Thanks.
> >> >
> >> > Regards,
> >> >
> >> > S Roberts
> >> > ___
> >> > freebsd-questions@freebsd.org mailing list
> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> > To unsubscribe, send any mail to
> >> > "freebsd-questions-unsubscr...@freebsd.org"
> >> >
> >>
> >>
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscr...@freebsd.org"
> >

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


Re: FreeBSD-8 Dual Booting With Pre-Installed Windows 7?

2010-04-05 Thread Masoom Shaikh
On Sun, Apr 4, 2010 at 2:52 PM, Stacey Roberts
 wrote:
> Hello Leslie,
>      Good to hear from you..,
>
> On Sun, 04 Apr 2010, Leslie Jensen wrote:
>>
>> http://www.mail-archive.com/freebsd-questions@freebsd.org/msg229158.html
>>
>> /Leslie
>>
>
> I had a look at the thread - thanks..,
>
> The documentation for EasyBCD documentation itself states that its
> compatible with windows vista - there's nowhere that actually states that it
> supports windows 7.

I have been using EasyBCD on Win7 + FBSD8 for some 6+ months now

>
> Or, am I missing something?
>
> I noted that the link by the responder in the thread also refers to a
> document that is based on windows vista, but will review this as well.
>
> Thanks!
>
> Regards,
>
> S Roberts
>
>
>>
>>
>>
>> > Hello,
>> > Sorry if this has been asked before, but can some point me to where I
>> > can find info on installing FreeBSD-8 to a windows-7 pre-installed
>> > machine (single disk) in a dual-boot set up, please?
>> >
>> > Any assistance is appreciated.
>> >
>> > Thanks.
>> >
>> > Regards,
>> >
>> > S Roberts
>> > ___
>> > freebsd-questions@freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> > To unsubscribe, send any mail to
>> > "freebsd-questions-unsubscr...@freebsd.org"
>> >
>>
>>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: under X, frozen keys, no mouse

2010-04-05 Thread Masoom Shaikh
On Mon, Apr 5, 2010 at 5:47 PM, Henry Olyer  wrote:
> I see:
>
> Setting master
> xclock: not found
> Dropping master
>
> While the root screen has:
>
> drm0:   on vgapci0
>
> vgapci0: child drm0 requested pci_enable_busmaster
>
> info:  [drm]  AGP at 0xf000 128NB
>
> info:  [drm]  Initialized i915 1.6.0
>
>
> I have:
>
> hald_enable=YES
>
> in the boot up conf file (/boot/loader.conf)

this line was advised to be placed in /etc/rc.conf, NOT /boot/loader.conf
or you did a typo while writing this mail ?

>
> and
>
> Option "AutoAddDevice" Off
>
> Option "IgnoreEmptyInput" Off
>
> in the xorg.conf file
>
>
>
>
>
>
>
>
>
>
>
> On Mon, Apr 5, 2010 at 2:41 AM, Masoom Shaikh 
> wrote:
>>
>> On Mon, Apr 5, 2010 at 8:24 AM, Henry Olyer  wrote:
>> > I installed FBSD 7.3 on an older Compaq box.  It has a built-in video
>> > card,
>> > this isn't a top of the line superfast machine.
>> >
>> > But it is important for me to press it into service.
>> >
>> > I tried using a couple of Option lines in xorg.conf, but no luck.
>> >
>> > so now my questions...
>> >
>> > Will FBSD 7.3 make use of xf86cfg or some such program.  I ask because
>> > the X
>> > --configure command has never worked for me;  Not on any of five
>> > different
>> > machines I've put FBSD on.
>> >
>> > I'm not trying to do a sophisticated install either -- and though I've
>> > decided against running OpenBSD, the default install put's up X
>> > perfectly...  (Why??)
>> >
>> > wish I knew more...
>> > ___
>> > freebsd-questions@freebsd.org mailing list
>> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> > To unsubscribe, send any mail to
>> > "freebsd-questions-unsubscr...@freebsd.org"
>> >
>>
>> add this line to your rc.conf
>> hald_enable="YES"
>> and restart your machine
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: under X, frozen keys, no mouse

2010-04-05 Thread Henry Olyer
I see:

Setting master
xclock: not found
Dropping master

While the root screen has:

drm0:   on vgapci0

vgapci0: child drm0 requested pci_enable_busmaster

info:  [drm]  AGP at 0xf000 128NB

info:  [drm]  Initialized i915 1.6.0


I have:

hald_enable=YES

in the boot up conf file (/boot/loader.conf)

and

Option "AutoAddDevice" Off

Option "IgnoreEmptyInput" Off

in the xorg.conf file











On Mon, Apr 5, 2010 at 2:41 AM, Masoom Shaikh wrote:

> On Mon, Apr 5, 2010 at 8:24 AM, Henry Olyer  wrote:
> > I installed FBSD 7.3 on an older Compaq box.  It has a built-in video
> card,
> > this isn't a top of the line superfast machine.
> >
> > But it is important for me to press it into service.
> >
> > I tried using a couple of Option lines in xorg.conf, but no luck.
> >
> > so now my questions...
> >
> > Will FBSD 7.3 make use of xf86cfg or some such program.  I ask because
> the X
> > --configure command has never worked for me;  Not on any of five
> different
> > machines I've put FBSD on.
> >
> > I'm not trying to do a sophisticated install either -- and though I've
> > decided against running OpenBSD, the default install put's up X
> > perfectly...  (Why??)
> >
> > wish I knew more...
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
> >
>
> add this line to your rc.conf
> hald_enable="YES"
> and restart your machine
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Intel D945GSE vs Zotac ION ITX (was: Support for Zotac MB with nVidia ION chipset)

2010-04-05 Thread Jeremie Le Hen
Hi Dan, Peter,

Thank you for your enlightening replies.

On Mon, Apr 05, 2010 at 10:40:35AM +1000, Peter Jeremy wrote:
> On 2010-Apr-04 23:54:55 +0200, Jeremie Le Hen  wrote:
> >Yeah, you are right.  I should have mentionned that I do not want
> >necessarily a high-performance NAS, it's for home use so my premary
> >concern is the low power consumption.  This is why I want an Atom-based
> >motherboard.
> 
> Unfortunately, FreeBSD has some issues with low memory handling that
> make FreeBSD/i386 a bad choice for ZFS.  You would be far better off
> running amd64 with as much RAM as you can fit onto the board.  (And
> this is one case where you want amd64 even if you don't have >4GB RAM).
> Note that this doesn't mean you can't use an Atom - some Atoms include
> EM64T - you just need to check.
> 
> IMO, the biggest disadvantage of using an Atom in a ZFS NAS is the
> lack of ECC support on the Atom.  ZFS can detect bitflips in the
> I/O sustem but you can still get screwed by a bitflip in RAM.
> 
> >I'm still not sure about which motherboard to buy actually.  After some
> >additional reading, my leaning seems to go towards Intel's one as it is
> >less expensive and consumes half the power of the Zotac's one (13W with
> >a HDD [2] vs. 25W [3]).
> 
> I'd recommend against buying anything with the Atom combined with a 945.
> Whilst the Atom is low-power, the 945 isn't.  That is also an older
> motherboard using an older, superseded Atom.  I suggest you look for
> motherboards built around the new Pinetrail Atoms (which _do_ support
> EM46T and hence can run amd64).
> 
> Supermicro make a number of potentially suitable boards:
> http://www.supermicro.com/products/motherboard/ATOM/ICH9/X7SPA.cfm
> this is pricier but supports remote management - other options at:
> http://www.supermicro.com/products/motherboard/Atom/
> 
> If you want an Intel MB, search for BOXD510MO

I think I will go for the Supermicro X7SPA-H.  It seems a better
hardware although it consumes more power.

Nonetheless I'm a little worried by what you said about the lack of ECC.
Computers has been used for years before ECC came out and obviously they
worked :).  Do you really think it might happen to be a problem?  Would
an Intel board would compensate for this?  Dan, have you ever
experienced weird problems that could be explained by bitflips?

For the records, I've found an interesting and very recent post about
someone running OpenSolaris on this Supermicro motherboard [1].  He uses
a thumbdrive for the operating system and with four drives connected
onto it, the whole system sucks 41 watts when idle (27 without any HDD,
which is twice as the Intel D945GSE, but I guess this is the price for
better performance).  Now, it seems that OpenSolaris unfortunately has
some problems with this hardware, but according to Dan, FreeBSD runs
correctly on it.

Thanks again for your help.

Regards,

[1] http://sorenragsdale.livejournal.com/19875.html
-- 
Jeremie Le Hen

Humans are born free and equal.  But some are more equal than others.
Coluche
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


RE: USB disk boot issues

2010-04-05 Thread Peter Steele
>You can try to solve the problem by:
>-
># echo "kern.cam.boot_delay=1" >> /boot/loader.conf
>-

We've put a pretty sizeable delay already directly in the kernel. There is now 
a noticeable pause before the mount root step is about to be performed. We 
don't see the problem often now, but even with this delay it still occasionally 
happens. The problem is that when a system is rebooted programmatically there 
isn't anyone around to go to the console and reboot manually. It would be nice 
to be able to reboot a system and have confidence it will actually reboot...

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


Re: Configuring IPFW IP range [FreeBSD-questions] {offlist}

2010-04-05 Thread Carmel NY
On Sun, 4 Apr 2010 19:11:42 -0500 (CDT), Robert Bonomi
 articulated:

> > From owner-freebsd-questi...@freebsd.org  Sun Apr  4 08:12:11 2010
> > Date: Sun, 4 Apr 2010 09:11:47 -0400
> > From: Carmel NY 
> > To: freebsd-questions@freebsd.org
> > Subject: Configuring IPFW IP range
> >
> > This is my first attempt at configuring IPFW. I have it up and
> > running; however, I am not quite sure how to accomplish configuring
> > it to block an IP range.
> >
> > Assume an IP range: 219.128.0.0 to 219.137.255.255
> >
> > That is an actual range: CHINANET Guangdong province network
> >
> > I want to block the entire range. I am not sure how to do it in
> > IPFW. I have read the 'man' pages; however, I am not getting the
> > syntax correct since I cannot get the range added.
> >
> 
> CIDR ranges have to: (a) start on a 'power of 2' address, (b) be a
> 'power of two' in size, and (c) be no larger than the 'power of 2'
> factor for the starting address.  This range is _not_ that way [fails
> (b)], so you'll have to do it with multiple entries.
> 
> i.e., one for "219.128.0.0/13" which will catch 219.128.0.0 -
> 219.135.255.255 and a 2nd for "219.136.0.0/15" which will catch
> 219.136.0.0 - 219.137.255.255
> 
> Life can get messier, when rule 3 comes into play,  consider the block
> 219.130.0.0 to 219.139.255.255
> 
> 219.130.0.0 is on a /15 boundary, so that's the max block size you
> can use for tht starting address.
>219.130.0.0/15   catches 219.130.0.0 - 219.131.255.255
> next, you can start with 219.132.0.0, which is a /14, and block a /14
> wth 219.132.0.0/14   catches 219.132.0.0 - 219.135.255.255
> now, 219.136.0.0 is a /13  so you could block that big with just more
> rule, if needed, (BUT, you only need another /14, to cover the
> remainder of the group of 10 /16s that the initial block includes.
> thus, lastly: 219.136.0.0/14   catches 219.136.0.0 - 219.139.255.255

Thanks! It was suggested that I try 'ipcalc' by another poster. I did,
and it works excellently. In any case, I do have to familiarize myself
more fully with IP addressing.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


setting sendmail.mc options?

2010-04-05 Thread Jeff Hamann
I'm sure this isn't the correct place for this question, but I'm not sure where 
to go as I only use my FreeBSD Unleashed to admin my sendmail. 

I'm a newbie at this and could use a little help. 

I'm trying to configure sendmail, using the freebsd port, to only relay mail 
once a day (I hate emails every few minutes), and if possible to hold outbound 
mail in the que (I think there's some que) until some fixed time (like 7am) so 
that all my mail is transferred then. 

I've tried adding:

#sendmail_flags="-bp -q480m" and
#sendmail_flags="-q120m"

after my 

sendmail_enable="YES"

and that didn't seem to work. 

I've tried adding the following to my .mc file, 

define( 'confMIN_QUEUE_AGE', '360m' ) 

to my mc files. I then typed, "make, make install, make restart" from command 
line and it doesn't seem to change the behavior.

I'm sure this is a trivial config, but I'm a newbie at this and could use a 
little help. 


Thanks,
Jeff.


Jeff Hamann, PhD
PO Box 1421
Corvallis, Oregon 97339-1421
541-754-2457
jeff.hamann[at]forestinformatics[dot]com
http://www.forestinformatics.com

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


Re: SSH root login with keys only

2010-04-05 Thread Vincent Hoffman
On 05/04/2010 10:17, Vincent Hoffman wrote:
> On 05/04/2010 10:01, Matthew Seaman wrote:
>   
>> On 04/04/2010 22:04:35, Marcin Wisnicki wrote:
>> 
>>> Is it possible to configure sshd such that both conditions are met:
>>>   
>> 
>>> 1. Root will be able to login only by using keys
>>> 2. Normal users will still be able to use pam/keyboard-interactive
>>>   
>> Only by running two instances of sshd on different ports / IP numbers.
>>
>> 
> I missed the rest of this thread so sorry its its been said already. As
> far as I knew the directive
> PermitRootLogin without-password
> in /etc/ssh/sshd_config
> should accomplish what was requested.
>
> However a note later in the default sshd_config file regarding the
> UsePAM setting says
> 'Depending on your PAM configuration,
>  PAM authentication via ChallengeResponseAuthentication may bypass
> the setting of "PermitRootLogin without-password".'
>
> So I'd be interested to know if by default this is the case.
>
>   
And sure enough when I have a look in the archive, my suggestion has
been discussed at length. sorry for noise.

Vince

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

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


Re: SSH root login with keys only

2010-04-05 Thread Vincent Hoffman
On 05/04/2010 10:01, Matthew Seaman wrote:
> On 04/04/2010 22:04:35, Marcin Wisnicki wrote:
> > Is it possible to configure sshd such that both conditions are met:
>
> > 1. Root will be able to login only by using keys
> > 2. Normal users will still be able to use pam/keyboard-interactive
>
> Only by running two instances of sshd on different ports / IP numbers.
>
I missed the rest of this thread so sorry its its been said already. As
far as I knew the directive
PermitRootLogin without-password
in /etc/ssh/sshd_config
should accomplish what was requested.

However a note later in the default sshd_config file regarding the
UsePAM setting says
'Depending on your PAM configuration,
 PAM authentication via ChallengeResponseAuthentication may bypass
the setting of "PermitRootLogin without-password".'

So I'd be interested to know if by default this is the case.


Vince


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


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


Re: SSH root login with keys only

2010-04-05 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/04/2010 22:04:35, Marcin Wisnicki wrote:
> Is it possible to configure sshd such that both conditions are met:
> 
> 1. Root will be able to login only by using keys
> 2. Normal users will still be able to use pam/keyboard-interactive

Only by running two instances of sshd on different ports / IP numbers.

Cheers,

Matthew

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

iEYEARECAAYFAku5ptQACgkQ8Mjk52CukIzONACeNdDCGVl8z+aqYx2s3N1IhMXx
hOMAn0uQJYWRaOLeUR+Nz6npMyKz2hws
=V0EV
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: perl qstn...

2010-04-05 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/04/2010 19:48:14, Alejandro Imass wrote:
> But honestly pun aside unless(){} is far more readable than if(!){}
> and _especially_ if you are programming in an exception manner as you
> correctly point out. Every language should have an unless construct.

I've always found that 'unless' makes a great deal of sense when used
in the alternate syntax:

do_foo()
unless $condition ;

As far as I know, perl and its descendant ruby are the only programming
languages that let you put the condition test after the action, despite
this being exceeding familiar in human languages.

Cheers,

Matthew

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

iEYEARECAAYFAku5pe0ACgkQ8Mjk52CukIxiwwCfVV5FD7gYil3eIG67Cgh14Hlt
hnkAnRRggI9Eq13y9eWJYFNzSOMNX546
=5jSW
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: USB disk boot issues

2010-04-05 Thread Boris Samorodov
On Thu, 1 Apr 2010 07:38:53 -0500 Peter Steele wrote:

> We clone systems from specially prepared USB flash sticks and this all works 
> well, except that occasionally the flash stick fails to boot. It fails at the 
> "mount root" step, saying that it cannot mount the specified root partition. 
> We use a labeled partition on the disk to make it device independent, so we 
> have something like

> /dev/label/usbroot  /ufsrw 1  1

> in our fstab. When it fails it doesn't recognize this device, and even ? 
> doesn't list it as one of the available devices. If we reboot, it's likely 
> the problem won't occur again. It seems to be some kind of timing issue. Is 
> this a known problem?

You can try to solve the problem by:
-
# echo "kern.cam.boot_delay=1" >> /boot/loader.conf
-

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


svn commit problems with sourceforge due to svn

2010-04-05 Thread Dominic Fandrey
Hello,

I'd like to commit my new release of sysutils/automounter to
the sourceforge svn repository, so that I can branch the release.

Unfortunately there seems to be a problem with OpenSSL:
svn: Commit failed (details follow):
svn: OPTIONS of 
'https://bsdadminscripts.svn.sourceforge.net/svnroot/bsdadminscripts/automounter':
 SSL negotiation failed: SSL disabled due to library version mismatch 
(https://bsdadminscripts.svn.sourceforge.net)

It seems svn is linked to both the base system version of OpenSSL
(0.9.8k) and the package (1.0.0):
> ldd /usr/local/bin/svn |grep ssl
libssl.so.7 => /usr/local/lib/libssl.so.7 (0x801c8f000)
libssl.so.6 => /usr/lib/libssl.so.6 (0x803242000)

I have no idea which version of OpenSSL is used by SF.

Does someone know a workaround/fix?

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"