Piping find into tar...

2011-05-04 Thread Modulok
List,

I've been playing with the find command lately. Is there a way I can pipe the
putput list of files from find, into the tar command to create an archive which
contains the files which find lists? I tried the following, but it didn't work
(obviously).

find -E . '.*\.txt$' -print | tar -cjf result.tgz

Thanks!
-Modulok-
___
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: Piping find into tar...

2011-05-04 Thread Peter Vereshagin
Wake me up when September ends, freebsd-questions!
2011/05/04 01:25:39 -0600 Modulok modu...@gmail.com = To FreeBSD Questions :
M find -E . '.*\.txt$' -print | tar -cjf result.tgz

xargs(1)

?

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Piping find into tar...

2011-05-04 Thread David Demelier

On 04/05/2011 09:25, Modulok wrote:

List,

I've been playing with the find command lately. Is there a way I can pipe the
putput list of files from find, into the tar command to create an archive which
contains the files which find lists? I tried the following, but it didn't work
(obviously).

find -E . '.*\.txt$' -print | tar -cjf result.tgz

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


Hi Modulok,

As Peter said you could try using the xargs command with find. This 
should works as well:


find -E . '.*\.txt$' -print | xargs tar -czf result.tgz
--
David Demelier
___
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: Piping find into tar...

2011-05-04 Thread b. f.
 I've been playing with the find command lately. Is there a way I can pipe the
 putput list of files from find, into the tar command to create an archive 
 which
 contains the files which find lists? I tried the following, but it didn't work
 (obviously).

 find -E . '.*\.txt$' -print | tar -cjf result.tgz

You could use something like:

find -X . -name '*.txt' | xargs tar -cjf result.tgz

or

find . -name '*.txt' -print0 | xargs -0 tar -cjf result.tgz

b.
___
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: Piping find into tar...

2011-05-04 Thread Chris Rees
On 4 May 2011 08:44, b. f. bf1...@googlemail.com wrote:
 I've been playing with the find command lately. Is there a way I can pipe the
 putput list of files from find, into the tar command to create an archive 
 which
 contains the files which find lists? I tried the following, but it didn't 
 work
 (obviously).

 find -E . '.*\.txt$' -print | tar -cjf result.tgz

 You could use something like:

 find -X . -name '*.txt' | xargs tar -cjf result.tgz

 or

 find . -name '*.txt' -print0 | xargs -0 tar -cjf result.tgz

 b.

How about using pax?

find . -depth -print | pax -wd | gzip  archive.tgz

or

find . -depth -print | pax -wd | bzip2  archive.tbz


By the way, in reference to the commands above the -j option is for
bzip2, so the extension should be .tbz o_O

Chris
___
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: Piping find into tar...

2011-05-04 Thread b. f.
On 5/4/11, Chris Rees utis...@gmail.com wrote:
 On 4 May 2011 08:44, b. f. bf1...@googlemail.com wrote:
 I've been playing with the find command lately. Is there a way I can pipe
 the
 putput list of files from find, into the tar command to create an archive
 which
 contains the files which find lists? I tried the following, but it didn't
 work
 (obviously).

 find -E . '.*\.txt$' -print | tar -cjf result.tgz

 You could use something like:

 find -X . -name '*.txt' | xargs tar -cjf result.tgz

 or

 find . -name '*.txt' -print0 | xargs -0 tar -cjf result.tgz

 b.

 How about using pax?

 find . -depth -print | pax -wd | gzip  archive.tgz

 or

 find . -depth -print | pax -wd | bzip2  archive.tbz


 By the way, in reference to the commands above the -j option is for
 bzip2, so the extension should be .tbz o_O

True.  I just reproduced what the OP had.  The archive will still use
bzip2 compression, and bsdtar won't have a problem handling it, but
the name will be misleading.

As you wrote, pax(1) is an option, as are cpio(1) and many others...
You should be able to use -z with pax to avoid the extra pipe and
explicit invocation of gzip in the first case.

b.
___
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: Piping find into tar...

2011-05-04 Thread Modulok
 By the way, in reference to the commands above the -j option is for
bzip2, so the extension should be .tbz o_O

Thanks everyone! I went with the following, because it works regardless of
space characters in filenames. (Thanks for the correction on the extenion. It
should indeed be 'tbz' when using the 'j' flag.)

find -E . -regex '.*\.txt$' -print0 | xargs -0 tar -cjf result.tbz

As for pax, I thought tar could create pax archives too, via the --format pax
option?

Cheers Everyone!
-Modulok-
___
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: Piping find into tar...

2011-05-04 Thread b. f.
On 5/4/11, Modulok modu...@gmail.com wrote:


 As for pax, I thought tar could create pax archives too, via the --format
 pax
 option?

Yes, although I haven't tested it thoroughly.  pax(1) should also be
able to create a number of different archive formats via the -x flag.
I prefer tar(1) (bsdtar/libarchive), because it has more features.

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


Limitting SSH access

2011-05-04 Thread Jack Raats
I have a question concerning SSH op a FreeBSD 7.4-STABLE server.

Is it possible to limit the SSH access? 
I want t o restrict a user to his own home directory. 
So that if he connects to the server with SSH he only can go to his own home 
dir.
Also the same for sftp...

Thanks for your time
Jack Raats
___
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: Limitting SSH access

2011-05-04 Thread Matthew Seaman
On 04/05/2011 10:08, Jack Raats wrote:
 I have a question concerning SSH op a FreeBSD 7.4-STABLE server.
 
 Is it possible to limit the SSH access? 
 I want t o restrict a user to his own home directory. 
 So that if he connects to the server with SSH he only can go to his own home 
 dir.
 Also the same for sftp...
 

I believe you will need to install a version of OpenSSH from ports to
get that functionality.  It's the CHROOT config option in
security/openssh-portable

Cheers

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Piping find into tar...

2011-05-04 Thread Chris Rees
On 4 May 2011 10:42, Modulok modu...@gmail.com wrote:

  By the way, in reference to the commands above the -j option is for
 bzip2, so the extension should be .tbz o_O

 Thanks everyone! I went with the following, because it works regardless of
 space characters in filenames. (Thanks for the correction on the extenion.
It
 should indeed be 'tbz' when using the 'j' flag.)

 find -E . -regex '.*\.txt$' -print0 | xargs -0 tar -cjf result.tbz

 As for pax, I thought tar could create pax archives too, via the --format
pax
 option?

Pax makes tar by default-- It's a great way to make tars with cpio syntax.


 Cheers Everyone!
 -Modulok-
___
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: Piping find into tar...

2011-05-04 Thread kron24

Dne 4.5.2011 11:42, Modulok napsal(a):

By the way, in reference to the commands above the -j option is for

bzip2, so the extension should be .tbz o_O

Thanks everyone! I went with the following, because it works regardless of
space characters in filenames. (Thanks for the correction on the extenion. It
should indeed be 'tbz' when using the 'j' flag.)

find -E . -regex '.*\.txt$' -print0 | xargs -0 tar -cjf result.tbz


When the amount of files is huge then tar will be invoked twice
or more. Thus result.tbz will contain just files from the last invocation.

I consider cpio a better option here.

BR
Oli
___
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: Limitting SSH access

2011-05-04 Thread Balázs Mátéffy
On 4 May 2011 13:35, Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 On 04/05/2011 10:08, Jack Raats wrote:
  I have a question concerning SSH op a FreeBSD 7.4-STABLE server.
 
  Is it possible to limit the SSH access?
  I want t o restrict a user to his own home directory.
  So that if he connects to the server with SSH he only can go to his own
 home dir.
  Also the same for sftp...
 

 I believe you will need to install a version of OpenSSH from ports to
 get that functionality.  It's the CHROOT config option in
 security/openssh-portable

Cheers

Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW


Hello,

It should work with the base openssh on 7.4. Check your version with sshd
-v.
Here, search for chroot(or use google :)):
http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_configsektion=5

Regarding ssh login, I usually use rbash from the ports, that restricts
the user from leaving his or her home directory!

Regards,

Balazs Mateffy.
___
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: Limitting SSH access

2011-05-04 Thread Eric Masson
Jack Raats j...@jarasoft.net writes:

Hello,

 I have a question concerning SSH op a FreeBSD 7.4-STABLE server.

Don't know sshd version in 7.4-STABLE, but if higher or equal to 4.8,
the following link could help :
http://www.debian-administration.org/articles/590

Regards

Éric Masson

-- 
 C'est pas un pingouin mais une hirondelle africaine et sa noix de coco
 Maintenant que vous le dîtes, c'est fort possible, Roland Courbis a des
 faux airs de John Cleese, mais en plus petit.
 -+- fct inwww.le-gnu.net : Une hirondelle ne fait pas le pingouin-+-
___
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: Piping find into tar...

2011-05-04 Thread b. f.
 Dne 4.5.2011 11:42, Modulok napsal(a):
  By the way, in reference to the commands above the -j option is for
  bzip2, so the extension should be .tbz o_O
 
  Thanks everyone! I went with the following, because it works regardless of
  space characters in filenames. (Thanks for the correction on the extenion. 
  It
  should indeed be 'tbz' when using the 'j' flag.)
 
  find -E . -regex '.*\.txt$' -print0 | xargs -0 tar -cjf result.tbz

 When the amount of files is huge then tar will be invoked twice
 or more. Thus result.tbz will contain just files from the last invocation.

 I consider cpio a better option here.

The use of simple patterns permitted by tar(1) or cpio(1) may be a
good choice in some cases, but we were responding to the OP's wish to
use find(1), which is a bit more flexible.  If there were a large
number of files, one could still use find and tar in many cases by
appending to the archive rather than (re)creating it with each tar
invocation, e.g.:

 find . -type f -name '*.txt' -print0 | xargs -0 tar -rvf archive.tar
; bzip2 archive.tar

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


Seeking full-cups/lpd compilant printer

2011-05-04 Thread David Demelier

Hello,

I'm searching a printer that works with cups only (I mean no hplip 
needed no specific vendor driver).


I would like a simple desktop printer with scanner built-in for simple 
copies.


http://www.epson.co.uk/Printers-and-All-In-Ones/Inkjet/Epson-Stylus-SX125

I like this one but the openprinting site says it recommends the epson 
drivers so I don't know if it works without and cups only...


Do you have some good advices ?

--
David Demelier
___
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: Piping find into tar...

2011-05-04 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed May  4 02:26:32 2011
 Date: Wed, 4 May 2011 01:25:39 -0600
 From: Modulok modu...@gmail.com
 To: FreeBSD Questions freebsd-questions@freebsd.org
 Subject: Piping find into tar...

 List,

 I've been playing with the find command lately. Is there a way I can pipe 
 the putput list of files from find, into the tar command to create an 
 archive which contains the files which find lists? I tried the following, 
 but it didn't work
 (obviously).

 find -E . '.*\.txt$' -print | tar -cjf result.tgz

You're asking 'the wrong question'.  

tar _requires_ the filenames to  be listed as parameters to the command.

There are at least four ways to accomplish this, given the specific 
example you show.
 
1) The simplest: tar -cjf result.tbz .*.txt *.txt
2) in-line substitution: tar -cjf result.tbz `find -E . '.*\.txt$' -print` 
3) using the '-T' option:
 find -E . '.*\.txt$' -print0 | tar -c -j --null -T - -f result.tbz
3) using xargs:  
 find -E . '.*\.txt$' -print0 | xargs tar -rjf result.tar; bzip2 result.tar


Options 1) or 2) will fail 'immediately', if the pattern expands to an 
excessively long set of filenames.




___
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: Piping find into tar...

2011-05-04 Thread kron24

Dne 4.5.2011 14:37, b. f. napsal(a):

Dne 4.5.2011 11:42, Modulok napsal(a):

...

find -E . -regex '.*\.txt$' -print0 | xargs -0 tar -cjf result.tbz


When the amount of files is huge then tar will be invoked twice
or more. Thus result.tbz will contain just files from the last invocation.

I consider cpio a better option here.


The use of simple patterns permitted by tar(1) or cpio(1) may be a
good choice in some cases, but we were responding to the OP's wish to
use find(1), which is a bit more flexible.  If there were a large
number of files, one could still use find and tar in many cases by
appending to the archive rather than (re)creating it with each tar
invocation, e.g.:

  find . -type f -name '*.txt' -print0 | xargs -0 tar -rvf archive.tar
; bzip2 archive.tar


Yes, this would work, of course. Anyway, I prefer to use
find ... | cpio ... | bzip2 

I just disputed Modulok's solution find ... | xargs tar -cjf ...
which wouldn't work in some cases.

BR,
Oli
___
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: Piping find into tar...

2011-05-04 Thread Lowell Gilbert
kron24 kro...@gmail.com writes:

 Dne 4.5.2011 11:42, Modulok napsal(a):
 By the way, in reference to the commands above the -j option is for
 bzip2, so the extension should be .tbz o_O

 Thanks everyone! I went with the following, because it works regardless of
 space characters in filenames. (Thanks for the correction on the extenion. It
 should indeed be 'tbz' when using the 'j' flag.)

 find -E . -regex '.*\.txt$' -print0 | xargs -0 tar -cjf result.tbz

 When the amount of files is huge then tar will be invoked twice
 or more. Thus result.tbz will contain just files from the last invocation.

Yes, xargs isn't part of the solution for this case unless you use the
update mode to tar, which will be much slower.  However, tar can read
the file list from a file, which can be stdin if you want.  The
equivalent of the above command would be something like:

find -E . -regex '.*\.txt$' -print0 | tar --null -T - -cjf result.tbz

 I consider cpio a better option here.

The old ways still work very well.

But it's worth noting that on FreeBSD these days, cpio(1) and tar(1) are
both implemented on the same library, so there are very few things that
one can do but the other cannot.
___
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 9.0-RELEASE

2011-05-04 Thread Jerry McAllister
On Tue, May 03, 2011 at 08:48:55PM -0400, Daniel Staal wrote:

 --As of May 3, 2011 5:33:23 PM -0400, Jerry McAllister is alleged to have 
 said:
 
 I don't remember seeing that.
 Anyway, go to the FreeBSD Release Engineering web site for information.
 
 http://www.freebsd.org/releng/index.html
 
 --As for the rest, it is mine.
 
 While that *should* be good advice, the most current 'upcoming releases' it 
 lists are 8.2 and 7.4, both released a couple of months ago now.  (Which it 
 does say, at least.)  So it's really fairly useless at the moment.
 
 Basically, as far as I can tell, 9 and/or 8.3 will come out when they come 
 out.  No sooner and no later.

That is the way I interpret the page.

 eg.  No code freeze.  Open for submissions.

jerry


 
 Daniel T. Staal
 
 ---
 This email copyright the author.  Unless otherwise noted, you
 are expressly allowed to retransmit, quote, or otherwise use
 the contents for non-commercial purposes.  This copyright will
 expire 5 years after the author's death, or in 30 years,
 whichever is longer, unless such a period is in excess of
 local copyright law.
 ---
 ___
 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: Piping find into tar...

2011-05-04 Thread Chris Rees
On 4 May 2011 14:25, Lowell Gilbert 
freebsd-questions-lo...@be-well.ilk.org wrote:

 kron24 kro...@gmail.com writes:

  Dne 4.5.2011 11:42, Modulok napsal(a):
  By the way, in reference to the commands above the -j option is for
  bzip2, so the extension should be .tbz o_O
 
  Thanks everyone! I went with the following, because it works regardless
of
  space characters in filenames. (Thanks for the correction on the
extenion. It
  should indeed be 'tbz' when using the 'j' flag.)
 
  find -E . -regex '.*\.txt$' -print0 | xargs -0 tar -cjf result.tbz
 
  When the amount of files is huge then tar will be invoked twice
  or more. Thus result.tbz will contain just files from the last
invocation.

 Yes, xargs isn't part of the solution for this case unless you use the
 update mode to tar, which will be much slower.  However, tar can read
 the file list from a file, which can be stdin if you want.  The
 equivalent of the above command would be something like:

 find -E . -regex '.*\.txt$' -print0 | tar --null -T - -cjf result.tbz

  I consider cpio a better option here.

 The old ways still work very well.

 But it's worth noting that on FreeBSD these days, cpio(1) and tar(1) are
 both implemented on the same library, so there are very few things that
 one can do but the other cannot.


Why on Earth are people still fooling about contorting tar into weird
shapes

The great thing about pax is It's a drop in replacement for cpio that makes
tar archives; It's designed to be used with find!

Chris
___
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: Seeking full-cups/lpd compilant printer

2011-05-04 Thread Chris Rees
On 4 May 2011 13:58, David Demelier demelier.da...@gmail.com wrote:

 Hello,

 I'm searching a printer that works with cups only (I mean no hplip needed
no specific vendor driver).

 I would like a simple desktop printer with scanner built-in for simple
copies.

 http://www.epson.co.uk/Printers-and-All-In-Ones/Inkjet/Epson-Stylus-SX125

 I like this one but the openprinting site says it recommends the epson
drivers so I don't know if it works without and cups only...

 Do you have some good advices ?


Gutenprint supports nearly every printer under the Sun, is there a problem
using gutenprint-cups?

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


Re: Can I bridge the same subnet across a VPN?

2011-05-04 Thread krad
On 3 May 2011 20:44, Kevin Wilcox kevin.wil...@gmail.com wrote:

 On Tue, May 3, 2011 at 15:19, Geoff Roberts ge...@apro.com.au wrote:

  Is it possible to join two sites with the same subnet across a VPN?

 Yes.

  I have two sites that have the same subnet/mask.
 
  I need these two separated networks to behave as one across a VPN.

 That's understandable. You may want to consider breaking the /24 into
 two /25s, one at each site, and routing the connection instead but
 that's not necessary and you can indeed use a bridge with few issues.

  Happy to use either IPSec or OpenVPN to actually encrypt the traffic.

 We've done it as a demo of what you can do with OpenVPN, it's trivial
 once you get some configuration issues straight in your head (or
 that's how it worked for me).

 To bridge in OpenVPN, take a look at:


 http://openvpn.net/index.php/open-source/documentation/miscellaneous/76-ethernet-bridging.html

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



you can do this with a combination of openvpn (using tap, not tun) and
if_bridge both ends. However I have found it to be flakey and not really
worth the effort. Better to go with a routed solution.
___
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: Limitting SSH access

2011-05-04 Thread krad
On 4 May 2011 12:47, Balázs Mátéffy repcs...@gmail.com wrote:

 On 4 May 2011 13:35, Matthew Seaman m.sea...@infracaninophile.co.uk
 wrote:

  On 04/05/2011 10:08, Jack Raats wrote:
   I have a question concerning SSH op a FreeBSD 7.4-STABLE server.
  
   Is it possible to limit the SSH access?
   I want t o restrict a user to his own home directory.
   So that if he connects to the server with SSH he only can go to his own
  home dir.
   Also the same for sftp...
  
 
  I believe you will need to install a version of OpenSSH from ports to
  get that functionality.  It's the CHROOT config option in
  security/openssh-portable
 
 Cheers
 
 Matthew
 
  --
  Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
   Flat 3
  PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
 
 
 Hello,

 It should work with the base openssh on 7.4. Check your version with sshd
 -v.
 Here, search for chroot(or use google :)):
 http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_configsektion=5

 Regarding ssh login, I usually use rbash from the ports, that restricts
 the user from leaving his or her home directory!

 Regards,

 Balazs Mateffy.
 ___
 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


if you want them to be able to get a shell ether then sftp prompt then you
will have to go for the rbash option. If you chroot the shell to their home
dir they wont have access to any system binaries so wont be able to 'ls' for
example.

Having said that you could build a tree of all the binaries they need along
with all the dependent libraries. This would get a bit cumbersome and
wasteful of disk space for lots of users though. You might be better off
with jails.
___
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: Limitting SSH access

2011-05-04 Thread Chris Rees
On 4 May 2011 16:27, krad kra...@gmail.com wrote:

 On 4 May 2011 12:47, Balázs Mátéffy repcs...@gmail.com wrote:

  On 4 May 2011 13:35, Matthew Seaman m.sea...@infracaninophile.co.uk
  wrote:
 
   On 04/05/2011 10:08, Jack Raats wrote:
I have a question concerning SSH op a FreeBSD 7.4-STABLE server.
   
Is it possible to limit the SSH access?
I want t o restrict a user to his own home directory.
So that if he connects to the server with SSH he only can go to his
own
   home dir.
Also the same for sftp...
   
  
   I believe you will need to install a version of OpenSSH from ports to
   get that functionality.  It's the CHROOT config option in
   security/openssh-portable
  
  Cheers
  
  Matthew
  
   --
   Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
Flat 3
   PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
   JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
  
  
  Hello,
 
  It should work with the base openssh on 7.4. Check your version with
sshd
  -v.
  Here, search for chroot(or use google :)):
  http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_configsektion=5
 
  Regarding ssh login, I usually use rbash from the ports, that
restricts
  the user from leaving his or her home directory!
 
  Regards,
 
  Balazs Mateffy.
  ___
  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
 

 if you want them to be able to get a shell ether then sftp prompt then you
 will have to go for the rbash option. If you chroot the shell to their
home
 dir they wont have access to any system binaries so wont be able to 'ls'
for
 example.

 Having said that you could build a tree of all the binaries they need
along
 with all the dependent libraries. This would get a bit cumbersome and
 wasteful of disk space for lots of users though. You might be better off
 with jails.


Or you could have a special /bin-restricted that you nullfs mount into
~userN/bin.

Chris
___
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: Limitting SSH access

2011-05-04 Thread Peter Vereshagin
Wake me up when September ends, freebsd-questions!
2011/05/04 16:47:33 +0100 Chris Rees utis...@gmail.com = To krad :
CR Is it possible to limit the SSH access?
CR   Regarding ssh login, I usually use rbash from the ports, that
CR restricts
CR Or you could have a special /bin-restricted that you nullfs mount into
CR ~userN/bin.


I personally should like to have a quick recipe on how to create such a limited
set of binaries ( libraries, mans, etc., each mounted with nullfs  read-only to
every such a user's home ) from the 'world' build.
Some options like the rsync I consider to be a must in some cases so this
should include the ports availability, isn't it?

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Limitting SSH access

2011-05-04 Thread Chris Rees
2011/5/4 Peter Vereshagin pe...@vereshagin.org:
 Wake me up when September ends, freebsd-questions!
 2011/05/04 16:47:33 +0100 Chris Rees utis...@gmail.com = To krad :
 CR Is it possible to limit the SSH access?
 CR   Regarding ssh login, I usually use rbash from the ports, that
 CR restricts
 CR Or you could have a special /bin-restricted that you nullfs mount into
 CR ~userN/bin.


 I personally should like to have a quick recipe on how to create such a 
 limited
 set of binaries ( libraries, mans, etc., each mounted with nullfs  read-only 
 to
 every such a user's home ) from the 'world' build.
 Some options like the rsync I consider to be a must in some cases so this
 should include the ports availability, isn't it?



Hehe, big can of worms here. Plenty of opportunity to break out of a
chroot, as well as the fact that it's largely discredited as a
security mechanism [1].

Someone mentioned Jails earlier, probably a better idea.

Chris

[1] http://kerneltrap.org/Linux/Abusing_chroot
___
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: Seeking full-cups/lpd compilant printer

2011-05-04 Thread Roland Smith
On Wed, May 04, 2011 at 02:49:04PM +0200, David Demelier wrote:
 Hello,
 
 I'm searching a printer that works with cups only (I mean no hplip 
 needed no specific vendor driver).

If you buy a printer that understands PostScript, you won't need any extra
drivers.

But;
 
 I would like a simple desktop printer with scanner built-in for simple 
 copies.

To the best of my knowledge, a lot of these all-in-one devices require
windows-only drivers and software to work properly. Unless you are _certain_
that it will work, I think it is better to stay away from them.

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


pgplSYdbLvQfR.pgp
Description: PGP signature


Re: Seeking full-cups/lpd compilant printer

2011-05-04 Thread Polytropon
On Wed, 04 May 2011 14:49:04 +0200, David Demelier demelier.da...@gmail.com 
wrote:
 Hello,
 
 I'm searching a printer that works with cups only (I mean no hplip 
 needed no specific vendor driver).

One word: Postscript. :-)



 I would like a simple desktop printer with scanner built-in for simple 
 copies.

Obtain a used office printer. This will safe you money (as
toner cartridges are cheap for them) and trouble (as they
ususally have a network interface).



 http://www.epson.co.uk/Printers-and-All-In-Ones/Inkjet/Epson-Stylus-SX125

I stopped parsing the URI when encounterin Injket. Do not
use an inkpee printer, it's just too expensive.



 I like this one but the openprinting site says it recommends the epson 
 drivers so I don't know if it works without and cups only...

Vendor-specific drivers are a big problem of home consumer
crap. If there is a foomatic printer filter for the device,
you're lucky, but if it's too new, it won't work, especially
if the printer manufacturer refuses to use standards.



 Do you have some good advices ?

Laser printer. Really. If you require color, choose a color
laser printer. They're cheap these days. Pay attention that
it supports Postscript. If not, look for something that
speaks HP PCL. It's very well supported by the gs (Ghost-
Script) printer filter.

Don't fear to buy _used_ office equipment.

I may say that I have a huge HP Laserjet 4000 duplex at
home, because it serves my needs _here_ well. I don't need
color output, but I love using two-sided printing (for
economical reasons). The printer is networked and runs
it own (!) lpd, so it's a joy to print with it. The printer
is fast, the toner is cheap. It's also very energy-efficient.
I got the printer in a used state, it's (I think) 10 years
old now. I _heavily_ use it.

(I also have a Laserjet 4 that is more than 15 years old
and _still_ in a perfectly working condition!)

Home consumer crap tends to use USB. This limits you in speed
and distance. And whenever you print, it causes system load.
It also tends to break after some use. Also if you do NOT
use it, it also breaks (or forces you to buy new inkpee
ink-tank-and-printing-head-cartridges which are almost as
expensive as the printer).




-- 
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: A possibly odd upgrade question

2011-05-04 Thread andrew clarke
On Wed 2011-05-04 12:50:05 UTC-0400, Chris Brennan (xa...@xaerolimit.net) wrote:

 I have an old PIII running FreeBSD7.3 currently, ports is all kinds of
 screwed up, when I did my first cross-version upgrade from 6.x to 7.x, I
 didn't know I had to rebuild ports, I subsequently upgrades though every
 version upto to 7.3. Ports is still FUBAR, half of them no longer work. So
 my question is this, now I know for the future to upgrade ports after every
 upgrade, is it safe to nuke /usr/local (excluding  /usr/local/home), rebuild
 world/kernel for 8.2 and start with a fresh ports tree?

You only need to rebuild all your ports after a major FreeBSD
upgrade, eg. 6.x to 7.x, or 7.x to 8.x.

Deleting /usr/local is a bit of an extreme step.  You can run
pkg_delete -av to delete all installed ports.

Starting with a fresh ports tree is probably only necessary if your
ports tree is very out of date.  Only because if it's stale it could
take longer to update it with portsnap than to start the tree from
scratch.  Of course deleting an existing ports tree can also take a
while, too.

You shouldn't need to build world  kernel for 8.2 unless you need a
custom kernel or something else peculiar to your setup.  I have no way
of knowing, but I suspect most FreeBSD users just use freebsd-update
these days to install the premade binaries of world  kernel.

 I thought about a clean reinstall but this machine cannot boot from
 USB, both CD-ROM's are dead and have been disconnected to use IDE
 hard-drives and the floppy driver is dead as well.

You could put the boot HDD into another machine with a working CD-ROM,
install it onto that, then put the HDD back into the P3 when you're
done.  There's no requirement that the installation needs to be done
on the same machine it's going to ultimately boot from.

Do you actually need to upgrade to 8.x?  I'm not sure there's much to
gain from putting 8.x on an old P3...

Regards
Andrew
___
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: A possibly odd upgrade question

2011-05-04 Thread Jerry
On Wed, 4 May 2011 12:50:05 -0400
Chris Brennan xa...@xaerolimit.net articulated:

 I have an old PIII running FreeBSD7.3 currently, ports is all kinds of
 screwed up, when I did my first cross-version upgrade from 6.x to
 7.x, I didn't know I had to rebuild ports, I subsequently upgrades
 though every version upto to 7.3. Ports is still FUBAR, half of them
 no longer work. So my question is this, now I know for the future to
 upgrade ports after every upgrade, is it safe to nuke /usr/local
 (excluding  /usr/local/home), rebuild world/kernel for 8.2 and start
 with a fresh ports tree? I thought about a clean reinstall but this
 machine cannot boot from USB, both CD-ROM's are dead and have been
 disconnected to use IDE hard-drives and the floppy driver is dead as
 well. So it would seem an inline/online rebuild is my only upgrade
 solution but with ports in it's current state of FUBAR, it leaves me
 with the question of what to do with that too.
 
 P.S. I've tried a portmaster/portsupgrade of ports, both met
 with disastrous results and with 193 current ports installed, over
 75% of which is broke and isn't used any more ... I need to start over

Chris, when I have had to do major rebuilds, I have found
portmanager to be the best tool. It just seems to work. In any case,
if it were me, I would clean out the /usr/ports/distfiles directory,
update your ports tree, and then update you OS. When you are finished
with that fun chore, run; portmanager -u -l -y -f. Depending on the
number of ports installed, it might take some time though. Obviously,
you need portmanager installed first. By the way, if you know you need
a distfile installed first, something like diablo-jdk or diablo-jre
that require you to have the distfile all ready in
the /usr/ports/distfiles directory prior to attempting to build the
port, then do that prior to updating your system and running
portmanager.

-- 
Jerry ✌
jerry+f...@seibercom.net

Disclaimer: off-list followups get on-list replies, ignored
or reported as Spam. Do not CC this poster.

Please do not ignore the Reply-To header.
__

___
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: A possibly odd upgrade question

2011-05-04 Thread ill...@gmail.com
On 4 May 2011 12:50, Chris Brennan xa...@xaerolimit.net wrote:
  is it safe to nuke /usr/local (excluding  /usr/local/home), rebuild
 world/kernel for 8.2 and start with a fresh ports tree?

Yes, though pkg_delete -af will probably suffice for removing
the ports ( /var/db/pkg/ as well).

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


PowerMath Newsletter

2011-05-04 Thread PowerMath
PowerMath Newsletter  
  
  Mathematics   Made   Easy  
May   2011   

  



Animated Lesson-Shows :
Courses in Arithmetic, Algebra, Geometry, Trigonometry, Pre-Calculus, Calculus, 
Probability and Statistics
covering Middle-School, High-School and University level Mathematics, for 
Students and Instructors.




  

PowerMath   has   been   featured   on



among   others . . .
  
  


Exclusion:
If you no longer wish to receive email from PowerClassroom Software invoke  
deletePlease do NOT reply to this e-mail if you wish to unsubscribe, 
instead use the instructions above.   Any/all information collected from our 
customers will not be sold, shared, or rented. 

___
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: A possibly odd upgrade question

2011-05-04 Thread Chris Brennan
On Wed, May 4, 2011 at 2:26 PM, Jerry je...@seibercom.net wrote:

Chris, when I have had to do major rebuilds, I have found
 portmanager to be the best tool. It just seems to work. In any case,
 if it were me, I would clean out the /usr/ports/distfiles directory,
 update your ports tree, and then update you OS. When you are finished
 with that fun chore, run; portmanager -u -l -y -f. Depending on the
 number of ports installed, it might take some time though. Obviously,
 you need portmanager installed first. By the way, if you know you need
 a distfile installed first, something like diablo-jdk or diablo-jre
 that require you to have the distfile all ready in
 the /usr/ports/distfiles directory prior to attempting to build the
 port, then do that prior to updating your system and running
 portmanager.


The problem here (as I have previously mentioned and further discussed in my
reply to Andrew Clarke) is that the most of the ports won't rebuild for
various reasons. I'm pretty handy, but not brilliant. So instead of asking
for my hand to be held by the mailing list, I thought nuking everything I
installed from ports after moving to 8.x would be the smartest move, then
from there reinstall (from a fresh ports tree) only what I need for the
retasked purpose.
___
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: A possibly odd upgrade question

2011-05-04 Thread Chris Brennan
On Wed, May 4, 2011 at 2:40 PM, ill...@gmail.com ill...@gmail.com wrote:

 On 4 May 2011 12:50, Chris Brennan xa...@xaerolimit.net wrote:
   is it safe to nuke /usr/local (excluding  /usr/local/home), rebuild
  world/kernel for 8.2 and start with a fresh ports tree?

 Yes, though pkg_delete -af will probably suffice for removing
 the ports ( /var/db/pkg/ as well).


Someone else suggested 'pkg_delete -av' ... would -avf then be a safe
assumption?

I want to make sure I have a solid leg to stand on before I start
anything...
___
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: A possibly odd upgrade question

2011-05-04 Thread ill...@gmail.com
On 4 May 2011 15:54, Chris Brennan xa...@xaerolimit.net wrote:
 On Wed, May 4, 2011 at 2:40 PM, ill...@gmail.com ill...@gmail.com wrote:

 On 4 May 2011 12:50, Chris Brennan xa...@xaerolimit.net wrote:
   is it safe to nuke /usr/local (excluding  /usr/local/home), rebuild
  world/kernel for 8.2 and start with a fresh ports tree?

 Yes, though pkg_delete -af will probably suffice for removing
 the ports ( /var/db/pkg/ as well).

 Someone else suggested 'pkg_delete -av' ... would -avf then be a safe
 assumption?
 I want to make sure I have a solid leg to stand on before I start
 anything...

-v is just for verbose.  I honestly don't know if the -f makes
a difference with -a either.  Probably not.

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


rox-fm

2011-05-04 Thread pwnedomina
after installation of rox-filler i noticed i cant select menu item from 
fluxbox? is there anyway to circumvent 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: rox-fm

2011-05-04 Thread Daniel C. Dowse
On  Wed, 04 May 2011 21:01:28 +, pwnedomina pwnedom...@gmail.com wrote:
after installation of rox-filler i noticed i cant select menu item from 
fluxbox? is there anyway to circumvent 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

Hi,

you go in rox  options-compatibility then select the option Pass all
backdrop mouse click to window manager and/or you may have to select the
Black Box Root menu hack, too. 
After that your fluxbox menue should work again.

cheers

-- 
Daniel Dowse

  \\|//
  (o o)
---ooO-(_)-Ooo---
- Wer Morgens verknittert ist, hat Tagsueber mehr Zeit sich zu  -
- enfalten; -
-
- Please send plain ASCII text only.-
- Please reply below quoted text section.   -   
-

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


Re: Can I bridge the same subnet across a VPN?

2011-05-04 Thread David Brodbeck
On Wed, May 4, 2011 at 8:19 AM, krad kra...@gmail.com wrote:
 you can do this with a combination of openvpn (using tap, not tun) and
 if_bridge both ends. However I have found it to be flakey and not really
 worth the effort. Better to go with a routed solution.

The problem I've always found with bridged solutions is they don't
cope well under heavy traffic loads when the VPN link is slower than
the LANs they're bridging between.  And the VPN link is usually slower
if it's over a WAN.  The link tends to get saturated.
___
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: A possibly odd upgrade question

2011-05-04 Thread Chris Whitehouse

On 04/05/2011 20:53, Chris Brennan wrote:

On Wed, May 4, 2011 at 2:26 PM, Jerryje...@seibercom.net  wrote:

Chris, when I have had to do major rebuilds, I have found

portmanager to be the best tool. It just seems to work. In any case,
if it were me, I would clean out the /usr/ports/distfiles directory,
update your ports tree, and then update you OS. When you are finished
with that fun chore, run; portmanager -u -l -y -f. Depending on the
number of ports installed, it might take some time though. Obviously,
you need portmanager installed first. By the way, if you know you need
a distfile installed first, something like diablo-jdk or diablo-jre
that require you to have the distfile all ready in
the /usr/ports/distfiles directory prior to attempting to build the
port, then do that prior to updating your system and running
portmanager.



The problem here (as I have previously mentioned and further discussed in my
reply to Andrew Clarke) is that the most of the ports won't rebuild for
various reasons. I'm pretty handy, but not brilliant. So instead of asking
for my hand to be held by the mailing list, I thought nuking everything I
installed from ports after moving to 8.x would be the smartest move, then
from there reinstall (from a fresh ports tree) only what I need for the
retasked purpose.
___
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

I second Jerry, portmanager is indeed a very effective tool, it's simple 
and thorough and probably has as good a chance of fixing ports issues as 
anything. Or used to, I've been trying out tinderbox so haven't used it 
for a year or so.


If you do use portmanager there are a few tricks you can do to make it 
effectively unattended.


However, doesn't -u -f mean rebuild all dependencies of all ports? In 
which case wouldn't it be just as effective and cleaner for the OP to 
nuke the lot and rebuild, particularly in view of the retasked purpose.


Chris
___
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: A possibly odd upgrade question

2011-05-04 Thread Jerry
On Wed, 04 May 2011 22:51:05 +0100
Chris Whitehouse cwhi...@onetel.com articulated:

 I second Jerry, portmanager is indeed a very effective tool, it's
 simple and thorough and probably has as good a chance of fixing ports
 issues as anything. Or used to, I've been trying out tinderbox so
 haven't used it for a year or so.
 
 If you do use portmanager there are a few tricks you can do to make
 it effectively unattended.
 
 However, doesn't -u -f mean rebuild all dependencies of all ports? In 
 which case wouldn't it be just as effective and cleaner for the OP to 
 nuke the lot and rebuild, particularly in view of the retasked
 purpose.

Yes, from the man pages it states it will rebuild all packages and their
dependencies. I simply include the l so he would have a log file
available if something did go wrong.

In any case, I thought it might save him some trouble rebuilding his
system. There are some ports; however, that will not build correctly
unless the program is first removed from the system. Obviously not a
friendly concept; however, a reality. The OP would have to remove them
first I suppose before doing a force rebuild. Maybe just doing a
pkg_delete -adv would be a better idea.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies, ignored
or reported as Spam. Do not CC this poster.

Please do not ignore the Reply-To header.
__

Getting the job done is no excuse for not following the rules.

Corollary:
Following the rules will not get the job done.
___
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


Laptop Multi-HD partitioning advice (ZFS)

2011-05-04 Thread Daniel Staal


I just got notified my new Thinkpad X220 is on it's way, and I'm thinking 
about the best way to use it.  ;)  Obviously, FreeBSD with ZFS is on top of 
the list.  (De-dup and compression on my space-limited laptop?  Yes, 
please.)


Some relevant vitals (after a couple of upgrades that are also on their 
way):

6GB of RAM
250GB 2.5in HDD
40GB mSATA SSD

I'm planning on installing the patched version of 8.2, with the patches for 
ZFS v28.  My idea at this point is to use the main HDD as the primary 
drive, with the SSD partitioned into a small[1] ZIL-device and a larger 
cache drive.  Since it's a SSD, I don't think disk contention should be an 
issue for that use, and it should speed up both reads and writes.  It might 
even reduce the amount of main-disk use that happens.  (Or at least, make 
it happen in short bursts, and let the drive idle in between.)


I might still upgrade that HDD to something larger than stock.  I could go 
to an SSD there too (and it's on a SATA III connection, so it could be a 
*faster* SSD), but I think I'm more likely to go with more space if I 
decide to upgrade.


Obviously, I'm not afraid of a weird config in this case.  ;)  I'm also not 
trying to optimize hard for space, or for any specific use-case: I tend to 
use a laptop for light-duty when I'm not traveling, then more heavy-duty 
(as well as watching movies, etc) during occasional traveling.  The idea 
here is to let ZFS do the disk optimization.  It'll probably slow down my 
boot times from what could be possible, but I'm hoping ZFS will do things 
like move a movie I'm *currently* watching to the cache drive, and let the 
machine shut down the hard drive.


Two things I'm *not* sure what the best choices for are the swap partition, 
and the boot sector.  Swap could be on the HDD (slow, reduces my apparent 
disk-space), on the SSD (fast, reduces my most valuable disk space), or in 
ZFS (doesn't use dedicated space, but has stability issues under heavy 
load).  Of course I may not ever *need* much swap, as I have a fair amount 
of RAM.  (And I don't care about crash dumps on this box.)


The boot sector doesn't really matter as much; if I go with a dedicated 
swap partition that will probably also hold the boot sector.  Otherwise, 
I'm leaning towards the SSD, as I'm already planning on partitioning that, 
and I'm less likely to pull it out.


Or, of course, there may be other considerations that I've overlooked in 
the rest.  So, I'm looking for wisdom, or other thoughts people have.  ;)


Daniel T. Staal

[1] As per:
http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide#Separate_Log_Devices
ZIL devices will never use more than 1/2 of RAM, at absolute max, and in 
most cases will use significantly less.  Fully upgraded, this machine 
supports 8GB of RAM, so a 4GB ZIL device would be plenty in all cases, and 
would probably be overkill.


---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Can I bridge the same subnet across a VPN?

2011-05-04 Thread Geoff Roberts
Hi David and others,

Thanks for the feedback.

On Thu, 5 May 2011 07:24:13 am David Brodbeck wrote:
 The problem I've always found with bridged solutions is they don't
 cope well under heavy traffic loads when the VPN link is slower than
 the LANs they're bridging between.  And the VPN link is usually slower
 if it's over a WAN.  The link tends to get saturated.

Was this easy to measure, and how did you measure this - dropped packets on 
the bridge interface?

Kind regards,

Geoff

-- 



___
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: rox-fm

2011-05-04 Thread Daniel C. Dowse
On  Wed, 04 May 2011 23:33:18 +, pwnedomina pwnedom...@gmail.com wrote:
Em 04-05-2011 20:49, Daniel C. Dowse escreveu:
 On  Wed, 04 May 2011 21:01:28 +, pwnedominapwnedom...@gmail.com  wrote:
 after installation of rox-filler i noticed i cant select menu item from
 fluxbox? is there anyway to circumvent 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
 Hi,

 you go in rox  options-compatibility then select the option Pass all
 backdrop mouse click to window manager and/or you may have to select the
 Black Box Root menu hack, too.
 After that your fluxbox menue should work again.

 cheers

also, how can i personalise my Eterm console in order to show a string 
choosen by me? eg.
[user@user:~]-cmd here

Hi,

please always check that the recipient is the mailing list and not the one that
answered your question. 

The look of your command prompt depends on what shell you use e.g bash

export PS1='\[\033[32m\][\@][@ \W)$\[\033[0m\]' in your .bashrc would make your
prompt look like 

[01:40 am][@ ~)$

in green color. 

Just use your g00gle foo, and you will sure find a lot of examples for your
kind of shell, to customize your command prompt. 

Daniel Dowse

  \\|//
  (o o)
---ooO-(_)-Ooo---
- Wer Morgens verknittert ist, hat Tagsueber mehr Zeit sich zu  -
- enfalten; -
-
- Please send plain ASCII text only.-
- Please reply below quoted text section.   -   
-

___
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: rox-fm

2011-05-04 Thread Alejandro Imass
On Wed, May 4, 2011 at 7:45 PM, Daniel C. Dowse dcdo...@gmx.net wrote:
 On  Wed, 04 May 2011 23:33:18 +, pwnedomina pwnedom...@gmail.com wrote:
Em 04-05-2011 20:49, Daniel C. Dowse escreveu:
[...]

 please always check that the recipient is the mailing list and not the one 
 that
 answered your question.



Yeah, this is a pain in the ass, and it's really not the OP's fault
entirely.  It's a simple mailman config option but I think it's an
idiosyncrasy thing about open lists, blah, blah, blah. The easiest way
is to ALWAYS HIT REPLY ALL, and the figure out who the mail is going
to. IMHO it should ALWAYS be the list ONLY, but many list admins use
it the way it's set-up here on the general questions list, why tf it
beats me, but it's really annoying.

I wish someone could clearly explain why the reply-to field should
ONLY have the mailing-list address, or at least have as the default
address and not the other way around as it is here!

Best,

--
Alejandro Imass
___
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