Re: Questions about setting bridge

2010-09-09 Thread Adam Vande More
>
> I want to setup a bridge in a ring topology since a break at any point
> along the ring would
> still leave all stations connected. My machine has two nics. In
> /etc/rc.conf, I have:
>
> ifconfig_em0="inet 192.168.1.0  netmask 255.255.255.0"
> cloned_interfaces="bridge0"
> ifconfig_em0="up"
> ifconfig_em1="up"
> ifconfig_bridge0="addm em0 addm em1 up"
> ifconfig_bridge0_alias0="192.168.1.0 netmask 255.255.255.0 up"
>
> I tried to boot my clients using tftpd, but it seems doesn't work if I
> unpluged
> em0. If I run "ifconfig em1 inet 192.168.1.0 netmask 255.255.255.0" then
> my clients can boot via tftpd. But it's not a bridge, right?
> I mean should I configure the same ip for em0, em1, and bridge0?
>

192.168.1.0/24 is not a valid address.  Your addressable hosts are
192.168.1.1 - 192.168.1.254.

I think you want to lagg:

http://www.freebsd.org/doc/handbook/network-aggregation.html

-- 
Adam Vande 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"


wine doesnot work after upgrading to 8.1?

2010-09-09 Thread zaxis

The wine works great when using freebsd 8.0. Yesterday i upgrading FB 8.0 to
8.1, the wine cannot display window without any message even if reinstalling
wine under FB 8.1 .

>uname -a
FreeBSD mybsd.zsoft.com 8.1-RELEASE FreeBSD 8.1-RELEASE #1: Wed Sep  8
09:07:54 CST 2010
r...@mybsd.zsoft.com:/media/G/usr/obj/media/G/usr/src/sys/MYKERNEL  i386

>pkg_info|grep wine
wine-1.3.2_2,1  Microsoft Windows compatibility layer for Unix-like
systems

Any suggestion is appreciated!

-
e^(π⋅i) + 1 = 0
-- 
View this message in context: 
http://old.nabble.com/wine-doesnot-work-after-upgrading-to-8.1--tp29673647p29673647.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Questions about setting bridge

2010-09-09 Thread dave jones
Hello,

I want to setup a bridge in a ring topology since a break at any point
along the ring would
still leave all stations connected. My machine has two nics. In
/etc/rc.conf, I have:

ifconfig_em0="inet 192.168.1.0  netmask 255.255.255.0"
cloned_interfaces="bridge0"
ifconfig_em0="up"
ifconfig_em1="up"
ifconfig_bridge0="addm em0 addm em1 up"
ifconfig_bridge0_alias0="192.168.1.0 netmask 255.255.255.0 up"

I tried to boot my clients using tftpd, but it seems doesn't work if I unpluged
em0. If I run "ifconfig em1 inet 192.168.1.0 netmask 255.255.255.0" then
my clients can boot via tftpd. But it's not a bridge, right?
I mean should I configure the same ip for em0, em1, and bridge0?

Thanks.

Dave.
___
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 recursively symlink every file in a dir

2010-09-09 Thread Chad Perrin
On Thu, Sep 09, 2010 at 08:23:09PM -0400, Garance A Drosehn wrote:
> 
> It looks like my 'lndir' script started out as a copy of a
> script named 'lndir.sh' that the XConsortium had in Oct 1988.

[snip]

> 
> Given that the port is written in C and much more recent, I
> suspect it is the right way to go.  For large directories it
> is much faster than my script.  I should check to see how
> much work it'd be to add my formatting to the C version.
> 
> The 'breakln' script might be something written here at RPI.
> Looks like the last change to it was done in 1993.  It is
> pretty simple:

[snip]

Thanks for the information and the breakln script.

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


pgpxFz1N5xFMQ.pgp
Description: PGP signature


Re: this is probably a little touchy to ask...

2010-09-09 Thread Jason C. Wells

On 09/09/10 14:02, Jules Gilbert wrote:

About Java.  Using java with freebsd/mozilla or another browser.

Some questions:

Is GNU java sufficient?  I need to be able to run a browser with Java.
  No alternative -- and no I don't want to run windoz.

I'm trying to do an 8.1 install.

Does this problem exist with Sun's x86 OS?

Does anyone have a website or even a set of notes as to the right way
to do this.

   

cd /usr/ports/java/jdk
make
make install

Now an opinion.  If Oracle isn't going to help us, we should look
around for an alternative, even inventing something else, something
that isn't Sun/Oracle/Java.

Because this problem has been getting progressively worse for the past
three or four years or so (longer?,) and, look around, it's hurting
the FreeBSD community.
   
Help you with what?  Their silly little distribution policy is annoying. 
It doesn't prevent you from running java.


Regards,
Jason

___
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 recursively symlink every file in a dir

2010-09-09 Thread Garance A Drosehn

At 2:54 PM -0600 9/9/10, Chad Perrin wrote:

On Thu, Sep 09, 2010 at 04:28:59PM -0400, Garance A Drosehn wrote:


 I believe early X11-distributions had a script called "lndir"
 would pretty much do exactly what you want here.  And then
 there was a companion command called "breakln" which would
 remove the symlink and make a copy of the original file to
 replace it.


lndir is in ports:

> pkgsearch lndir
/usr/ports/devel/lndir

I'm not so sure about a "breakln" being anywhere accessible,
other than whatever tools you have handy.



I'd like to see what you have, even if the OP doesn't need
them.  Are they of your own making, or copied from somewhere?


It looks like my 'lndir' script started out as a copy of a
script named 'lndir.sh' that the XConsortium had in Oct 1988.
Over the years I added a number of features to it.  Looking
at the 'lndir' which is installed by the port, it seems to
have added some of those same features, but my script writes
out it's progress in a nicer format (IMO).

Given that the port is written in C and much more recent, I
suspect it is the right way to go.  For large directories it
is much faster than my script.  I should check to see how
much work it'd be to add my formatting to the C version.

The 'breakln' script might be something written here at RPI.
Looks like the last change to it was done in 1993.  It is
pretty simple:


#!/bin/sh
#
#  All the arguments are turned into copies of themselves,
#  and write access is granted to the user.This is good
#  for making exceptions to trees built with lndir.
#
if [ $# = 0 ]; then
  echo "Usage: $0 files..."
  exit
fi

for f in $* ; do
  mv $f $f.tmpln
  cp -p $f.tmpln $f
  rm $f.tmpln
  chmod u+w $f
done

--
Garance Alistair Drosehn =   dros...@rpi.edu
Senior Systems Programmer   or   g...@freebsd.org
Rensselaer Polytechnic Institute; Troy, NY;  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: this is probably a little touchy to ask...

2010-09-09 Thread Randal L. Schwartz
> "Jules" == Jules Gilbert  writes:

Jules> Now an opinion.  If Oracle isn't going to help us, we should look
Jules> around for an alternative, even inventing something else, something
Jules> that isn't Sun/Oracle/Java.

You mean something that looks like Java but isn't Java?

That's precisely what the Oracle v. Google suit is about.  Dangerous
road to go down at this point.

Or do you mean something that isn't even Java, but has a lot of
Java-like features?

I think you're describing "everything else already available in
production".  Plenty of choices.

-- 
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: this is probably a little touchy to ask...

2010-09-09 Thread Adam Vande More
On Thu, Sep 9, 2010 at 4:02 PM, Jules Gilbert wrote:

> About Java.  Using java with freebsd/mozilla or another browser.
>
> Some questions:
>
> Is GNU java sufficient?  I need to be able to run a browser with Java.
>  No alternative -- and no I don't want to run windoz.
>
> I'm trying to do an 8.1 install.
>

Works fine for me as long as you stick with firefox35


> Does anyone have a website or even a set of notes as to the right way
> to do this.
>
> Now an opinion.  If Oracle isn't going to help us, we should look
> around for an alternative, even inventing something else, something
> that isn't Sun/Oracle/Java.
>
> Because this problem has been getting progressively worse for the past
> three or four years or so (longer?,) and, look around, it's hurting
> the FreeBSD community.
>

I believe the FreeBSD Foundation is still accepting donations.
-- 
Adam Vande 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"


this is probably a little touchy to ask...

2010-09-09 Thread Jules Gilbert
About Java.  Using java with freebsd/mozilla or another browser.

Some questions:

Is GNU java sufficient?  I need to be able to run a browser with Java.
 No alternative -- and no I don't want to run windoz.

I'm trying to do an 8.1 install.

Does this problem exist with Sun's x86 OS?

Does anyone have a website or even a set of notes as to the right way
to do this.

Now an opinion.  If Oracle isn't going to help us, we should look
around for an alternative, even inventing something else, something
that isn't Sun/Oracle/Java.

Because this problem has been getting progressively worse for the past
three or four years or so (longer?,) and, look around, it's hurting
the FreeBSD community.
___
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 recursively symlink every file in a dir

2010-09-09 Thread Chad Perrin
On Thu, Sep 09, 2010 at 04:28:59PM -0400, Garance A Drosehn wrote:
> 
> I believe early X11-distributions had a script called "lndir"
> would pretty much do exactly what you want here.  And then
> there was a companion command called "breakln" which would
> remove the symlink and make a copy of the original file to
> replace it.

lndir is in ports:

> pkgsearch lndir
/usr/ports/devel/lndir

I'm not so sure about a "breakln" being anywhere accessible, other than
whatever tools you have handy.


> 
> I don't know if X11 still has these commands (I haven't
> installed X11 in at least 10 years), but I have my own
> versions of them.  Let me know if you can't find them, and
> I'll send you copies of my scripts.

I'd like to see what you have, even if the OP doesn't need them.  Are
they of your own making, or copied from somewhere?

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


pgpO9FBM8t3DL.pgp
Description: PGP signature


Re: how to recursively symlink every file in a dir

2010-09-09 Thread Randal L. Schwartz
> "Randal" == Randal L Schwartz  writes:

Randal> I think null-mounts would do what you're trying to do... as in, as long
Randal> as you're reading, you're reading from the old stuff, but if you ever
Randal> write something new, all the right bits get created in the new dir.

Randal> But I'm new to null-mounts, so I could be wrong.

And I meant "mount_unionfs", not null mounts. :)

-- 
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: how to recursively symlink every file in a dir

2010-09-09 Thread Randal L. Schwartz
> "Aryeh" == Aryeh Friedman  writes:

Aryeh> I want to make it so every file is a seperate symlink in dir2 if and
Aryeh> only if it is a regular file (not a dir) in dir1... the reason is if
Aryeh> the file is unchanged then use symlink but I can rm the symlink and
Aryeh> replace it with a non-symlink:

Are you committed to symlinks?

I think null-mounts would do what you're trying to do... as in, as long
as you're reading, you're reading from the old stuff, but if you ever
write something new, all the right bits get created in the new dir.

But I'm new to null-mounts, so I could be wrong.

-- 
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: how to recursively symlink every file in a dir

2010-09-09 Thread Garance A Drosehn

At 1:24 PM -0400 9/9/10, Aryeh Friedman wrote:

I want to make it so every file is a seperate symlink in dir2 if and
only if it is a regular file (not a dir) in dir1... the reason is if
the file is unchanged then use symlink but I can rm the symlink and
replace it with a non-symlink:

To show the problem I am attempting to solve:

foo: (owned by fred)
arf:
   ack

in barney's account:

ln -s ~foo/ foo
rm foo/arf/ack# Permissioin denied ... it should nuke the symlink
and let me then do something like "touch foo/arf/ack

Note there are over 500 files upto 5 dirs deep in the dir I want to
symlink from the final application is our version control system
(devel/aegis) keeps seperate repos for different source code projects
(for obvious reasons) and we want to make it so in normal operation we
can symlink tne source tree from one project into an other but if we
want to make a local modificiation to the "foreign" source tree all we
have do is (sorry for the aegis commands but I think the idea is
clear):


I believe early X11-distributions had a script called "lndir"
would pretty much do exactly what you want here.  And then
there was a companion command called "breakln" which would
remove the symlink and make a copy of the original file to
replace it.

I don't know if X11 still has these commands (I haven't
installed X11 in at least 10 years), but I have my own
versions of them.  Let me know if you can't find them, and
I'll send you copies of my scripts.

(actually, I'm not 100% sure I got these from X11.  But I got
them from somewhere in the mid-1990's)

--
Garance Alistair Drosehn =   dros...@rpi.edu
Senior Systems Programmer   or   g...@freebsd.org
Rensselaer Polytechnic Institute; Troy, NY;  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: how to recursively symlink every file in a dir

2010-09-09 Thread Giorgos Keramidas
On Thu, 9 Sep 2010 13:24:50 -0400, Aryeh Friedman  
wrote:
> I want to make it so every file is a seperate symlink in dir2 if and
> only if it is a regular file (not a dir) in dir1... the reason is if
> the file is unchanged then use symlink but I can rm the symlink and
> replace it with a non-symlink:
>
> To show the problem I am attempting to solve:
>
> foo: (owned by fred)
> arf:
>ack
>
> in barney's account:
>
> ln -s ~foo/ foo
> rm foo/arf/ack# Permissioin denied ... it should nuke the symlink
> and let me then do something like "touch foo/arf/ack

If you don't mind creating the local directories in one run, and then
symlinking everything else, you can use something like:

cd bar
( cd ~foo ; find . -type d ) | xargs mkdir -p
( cd ~foo ; find . \! -type d ) | while read fname ; do
ln -s ~foo/"$fname" "$fname"
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"


Re: freebsd-update question

2010-09-09 Thread Mark

--- On Thu, 9/9/10, Murray S. Kucherawy  wrote:

> From: Murray S. Kucherawy 
> Subject: freebsd-update question
> To: questi...@freebsd.org
> Date: Thursday, September 9, 2010, 1:40 PM
> Hi,
> 
> I'm reading 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
> in preparation for an update of a 6.2-RELEASE machine in a
> colocation faciilty.  However, that page says 6.3 or
> later is needed to do it via the freebsd-update(8)
> mechanism.
> 
> Are there any references for using freebsd-update for a 6.2
> installation, or am I looking at doing the update from
> source as per
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html?
> 
> Thanks,
> -MSK
> ___
> 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"
> 

Depending on how the computer is used, to bring it up to 8.1 I'd backup data, 
config files, make a list of installed software and do a reinstall. The time it 
takes to build world, merg files and rebuild software a fresh install may be 
quicker than to try the jump from 6.2 to 8.1. YMMV
___
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-update question

2010-09-09 Thread Matthew Seaman
On 09/09/2010 19:40:19, Murray S. Kucherawy wrote:

> I'm reading
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
> in preparation for an update of a 6.2-RELEASE machine in a colocation
> faciilty.  However, that page says 6.3 or later is needed to do it via
> the freebsd-update(8) mechanism.
> 
> Are there any references for using freebsd-update for a 6.2
> installation, or am I looking at doing the update from source as per
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html?

Yes.  6.2 is long out of support, so you will need to use the makeworld
route to get to something more recent.  6.4 is just about to go out of
support -- you should be able to buildworld to that version, and then
use freebsd-update to get to something up to date.  Or just use the
buildworld route to get to the latest (it takes some time for all the
compilation but works reliably) -- you might be able to get to 8.1 in
one step, but I think that's probably unlikely.  You should always be
able to update from the latest version on any major branch to
any version on the next branch, so 6.2 -> 6.4 -> 7.3 -> 8.1 should work.

You will need to rebuild all your ports for a major version upgrade,
although (if it isn't obvious) if you're going to go up two major
versions, you only need to rebuild all the ports once at the end of the
process of updating the system.

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


freebsd-update question

2010-09-09 Thread Murray S. Kucherawy

Hi,

I'm reading 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html 
in preparation for an update of a 6.2-RELEASE machine in a colocation 
faciilty.  However, that page says 6.3 or later is needed to do it via the 
freebsd-update(8) mechanism.


Are there any references for using freebsd-update for a 6.2 installation, 
or am I looking at doing the update from source as per

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html?

Thanks,
-MSK
___
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: installing FreeBSD in VMWare-player

2010-09-09 Thread Matthias Apitz

I could solve the boot problem of the USB key in the older
laptop of my wife by inserting into /boot/loader.conf the line

kern.cam.scsi_delay="1"

(note: set kern.cam.boot_delay did not help)

matthias
-- 
Matthias Apitz
«...una sola vez, que es cuanto basta si se trata de verdades definitivas.»
«...only once, which is enough if it has todo with definite truth.»
José Saramago, Historia del Cerca de Lisboa
___
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 recursively symlink every file in a dir

2010-09-09 Thread Aryeh Friedman
After playing around here is what I came up with (cpio -l never did
the links right):

#!/bin/tcsh
foreach i ( `find ~aegis/fnre/baseline/src/ -type d | grep -v
src/build | cut -f6- -d'/'` )
mkdir $i
end

foreach i ( `find ~aegis/fnre/baseline/src/ -type f -name '*.java' |
grep -v src/build | cut -f6- -d'/'` )
ln -s ~aegis/fnre/baseline/$i $i
end


On Thu, Sep 9, 2010 at 2:13 PM, Joshua Isom  wrote:
> On 9/9/2010 12:24 PM, Aryeh Friedman wrote:
>>
>> I want to make it so every file is a seperate symlink in dir2 if and
>> only if it is a regular file (not a dir) in dir1... the reason is if
>> the file is unchanged then use symlink but I can rm the symlink and
>> replace it with a non-symlink:
>>
>> To show the problem I am attempting to solve:
>>
>> foo: (owned by fred)
>>     arf:
>>        ack
>>
>> in barney's account:
>>
>> ln -s ~foo/ foo
>> rm foo/arf/ack    # Permissioin denied ... it should nuke the symlink
>> and let me then do something like "touch foo/arf/ack
>
> This should give you at least a good start:
>
> find foo/ \( -type d -exec mkdir -p copy/'{}' \; \) -o \( -type f -exec ln
> -s '{}' copy/'{}' \; \)
>
> That'll copy directory foo into copy/foo and the rest is fine.  You'll have
> to tweak the rest as you need but it'll get you started.
> ___
> 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: how to recursively symlink every file in a dir

2010-09-09 Thread Joshua Isom

On 9/9/2010 12:24 PM, Aryeh Friedman wrote:

I want to make it so every file is a seperate symlink in dir2 if and
only if it is a regular file (not a dir) in dir1... the reason is if
the file is unchanged then use symlink but I can rm the symlink and
replace it with a non-symlink:

To show the problem I am attempting to solve:

foo: (owned by fred)
 arf:
ack

in barney's account:

ln -s ~foo/ foo
rm foo/arf/ack# Permissioin denied ... it should nuke the symlink
and let me then do something like "touch foo/arf/ack


This should give you at least a good start:

find foo/ \( -type d -exec mkdir -p copy/'{}' \; \) -o \( -type f -exec 
ln -s '{}' copy/'{}' \; \)


That'll copy directory foo into copy/foo and the rest is fine.  You'll 
have to tweak the rest as you need but it'll get you started.

___
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 recursively symlink every file in a dir

2010-09-09 Thread Arthur Chance

On 09/09/10 18:50, Arthur Chance wrote:

On 09/09/10 18:24, Aryeh Friedman wrote:

I want to make it so every file is a seperate symlink in dir2 if and
only if it is a regular file (not a dir) in dir1... the reason is if
the file is unchanged then use symlink but I can rm the symlink and
replace it with a non-symlink:


cpio -pdl


Ack! Too quick to answer. That hard links, not symlinks. (Useful in its 
own way though.)


cd $SRCDIR; find . -type d | cpio -pd $DESTDIR

will create the directory structure. Linking the files will have to be 
left as an exercise for the reader as I have to go out. I'd use find for 
the job, but I'm sure someone will come up with some Perl.

___
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 recursively symlink every file in a dir

2010-09-09 Thread Aryeh Friedman
Should of mentioned that I was using C as an example we are in fact
using Java and the archives in question are jar's

On Thu, Sep 9, 2010 at 1:50 PM, Arthur Chance  wrote:
> On 09/09/10 18:24, Aryeh Friedman wrote:
>>
>> I want to make it so every file is a seperate symlink in dir2 if and
>> only if it is a regular file (not a dir) in dir1... the reason is if
>> the file is unchanged then use symlink but I can rm the symlink and
>> replace it with a non-symlink:
>
> cpio -pdl
>
>
___
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 recursively symlink every file in a dir

2010-09-09 Thread Arthur Chance

On 09/09/10 18:24, Aryeh Friedman wrote:

I want to make it so every file is a seperate symlink in dir2 if and
only if it is a regular file (not a dir) in dir1... the reason is if
the file is unchanged then use symlink but I can rm the symlink and
replace it with a non-symlink:


cpio -pdl

___
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 recursively symlink every file in a dir

2010-09-09 Thread Aryeh Friedman
I want to make it so every file is a seperate symlink in dir2 if and
only if it is a regular file (not a dir) in dir1... the reason is if
the file is unchanged then use symlink but I can rm the symlink and
replace it with a non-symlink:

To show the problem I am attempting to solve:

foo: (owned by fred)
arf:
   ack

in barney's account:

ln -s ~foo/ foo
rm foo/arf/ack# Permissioin denied ... it should nuke the symlink
and let me then do something like "touch foo/arf/ack

Note there are over 500 files upto 5 dirs deep in the dir I want to
symlink from the final application is our version control system
(devel/aegis) keeps seperate repos for different source code projects
(for obvious reasons) and we want to make it so in normal operation we
can symlink tne source tree from one project into an other but if we
want to make a local modificiation to the "foreign" source tree all we
have do is (sorry for the aegis commands but I think the idea is
clear):

rm src/foreign/foo.c
aenf src/foreign/foo.c
cp ~aegis/foreign/baselins/src/forgein.c
vi src/foreign/foo.c   # to make local modifications

And before someone suggests a ar library we purposely *DO NOT* want
the modified libs to be installed until later
___
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 tell "ls" output date in digital

2010-09-09 Thread Chad Perrin
On Thu, Sep 09, 2010 at 10:29:08AM -0400, Jerry McAllister wrote:
> On Thu, Sep 09, 2010 at 01:11:39PM +, Pala, Santosh wrote:
> 
> > Hi Andrew,
> > 
> > The ls command with -E switch will give the required output. 
> 
> Doesn't for me.
> Says -E is an illegal option.

It works with AT&T's version of ls, apparently.  I'm pretty sure it
doesn't work with either BSD ls or GNU ls, though, so I'm not sure how it
ended up being mentioned in this discussion.


> 
> Running FreeBSd 8.1 stock ls.
> 
> On the other hand,   ls -lD "%F %T %Z"   does nicely.

. . . and you can easily alias that to lsd for easier use (and a
chuckle).

Note that this doesn't work with GNU ls, because Stallman and MacKenzie
in their infinite wisdom decided GNU ls needed -D to produce output
tailored to some Emacs functionality.

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


pgpMfUmonUtkw.pgp
Description: PGP signature


Re: how to tell "ls" output date in digital

2010-09-09 Thread Jerry McAllister
On Thu, Sep 09, 2010 at 01:11:39PM +, Pala, Santosh wrote:

> Hi Andrew,
> 
> The ls command with -E switch will give the required output. 

Doesn't for me.
Says -E is an illegal option.

Running FreeBSd 8.1 stock ls.

On the other hand,   ls -lD "%F %T %Z"   does nicely.

jerry

> 
> Regards,
> Pala.

> 
> From: owner-freebsd-questi...@freebsd.org 
> [owner-freebsd-questi...@freebsd.org] on behalf of andrew clarke 
> [m...@ozzmosis.com]
> Sent: Thursday, September 09, 2010 9:24 PM
> To: Guojun Jin
> Cc: questi...@freebsd.org
> Subject: Re: how to tell "ls" output date in digital
> 
> On Wed 2010-09-08 16:03:20 UTC-0700, Guojun Jin (g...@ubicom.com) wrote:
> 
> > I remember that "ls" can output date in digital like following format
> > before
> >
> > -rw-r--r--  1 user  Domain Users54323 2010-09-08 14:12 crash.log
> >
> > Instead of   Sep 08 2010 or   Sep 08 11:07
> >
> > But I cannot find any option or ENV to do this under FreeBSD (6.X-R).
> >
> > Does anyone have knowledge about this possibility?
> 
> In FreeBSD 7.3 I use /usr/local/bin/gls installed from the
> sysutils/coreutils port, and a tcsh alias for ls:
> 
> ls  gls --time-style=long-iso --color=auto
> 
> 21:23 ozzmo...@blizzard [~]ls -ld /
> drwxr-xr-x 19 root wheel 512 2010-09-05 03:11 /
> 
> 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"
> 
> __
> Disclaimer:  This email message and any attachments are for the sole use of 
> the intended recipient(s) and may contain information that is confidential, 
> legally privileged or otherwise exempt from disclosure under applicable law. 
> If you are not the intended recipient(s) or have received this message in 
> error, you are instructed to immediately notify the sender by return email 
> and required to delete this message from your computer system. This 
> communication does not form any contractual obligation on behalf of the 
> sender, the sender's employer or such employer's parent company, affiliates 
> or subsidiaries.
> ___
> 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: mount NTFS && can't write to it

2010-09-09 Thread Matthias Apitz
El día Thursday, September 09, 2010 a las 08:46:12AM -0500, Ryan Coleman 
escribió:

> the default NTFS driver - a topic of much discussion here in the past two 
> months - does *not* support writing. Check ports for fuse-ntfs.

thanks for the pointer, but this (using it) gave me a PANIC only :-(

btw: do you think that one remember all what was said in the list in the
last monthes? I think that a clear statement should be in the man page
of mount_ntfs(8).

thanks

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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: Any way to force AHCI mode on ICH8?

2010-09-09 Thread Morgan Wesström
On 2010-09-09 13:04, Ivan Voras wrote:
> On 09/09/10 02:10, Morgan Wesström wrote:
>> I run FreeBSD 8.1 on an old Asus P5B-VM motherboard with ICH8. Its AMI
>> BIOS lacks an option to enable AHCI mode. Intel's datasheet for the ICH8
>> family specifies that this feature exists on the ICH8, and the option is
>> available in the BIOS for the identical (apart from form factor) P5B
>> motherboard.
>>
>> http://www.intel.com/Assets/PDF/datasheet/313056.pdf
>>
>> I've contacted Asus support for an updated BIOS but I don't have much
>> hope I will ever see one. Would it be possible to patch the FreeBSD
>> kernel to enable AHCI mode somehow during boot?
> 
> You mean except adding:
> 
> ahci_load="YES"
> 
> to /boot/loader.conf ?
> 

Yes, I meant if there was a way to programmatically switch the ICH8 into
AHCI mode before loading ahci(4). The BIOS on this motherboard only
provides a "legacy" and an "enhanced" option for the SATA controller.
Neither option turns on AHCI mode so ata(4) attaches to the controller.
There's also a JMicron controller, providing an eSATA connector, on this
motherboard. It is AHCI compatible and ahci(4) attaches correctly to it.
It would've been nice to be able to use NCQ and hotplug on the other
SATA connectors too since the ICH8 has those features.

Regards
Morgan
___
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: mount NTFS && can't write to it

2010-09-09 Thread Ryan Coleman
the default NTFS driver - a topic of much discussion here in the past two 
months - does *not* support writing. Check ports for fuse-ntfs.


On Sep 9, 2010, at 8:30 AM, Matthias Apitz wrote:

> 
> Hello,
> 
> I'm mounting an NTFS slice on an external USB drive as:
> 
> # mount -t ntfs /dev/da1s1 /mnt
> 
> I can see the data there with ls(1) but can't create any dir like
> /mnt/dir nor touch a file like /mnt/file (ofc as root).
> It alwaya says /mnt/dir: No such file or directory. 
> 
> The man page of mount_ntfs(8) does not explain what the problem could
> be. This is with 8-CURRENT
> 
> Thx
> 
>   matthias
> -- 
> Matthias Apitz
> t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
> e  - w http://www.unixarea.de/
> Solidarity with the zionistic pirates of Israel?   Not in my  name!
> ¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
> ___
> 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: how to tell "ls" output date in digital

2010-09-09 Thread Pala, Santosh
Hi Andrew,

The ls command with -E switch will give the required output. 

Regards,
Pala.

From: owner-freebsd-questi...@freebsd.org [owner-freebsd-questi...@freebsd.org] 
on behalf of andrew clarke [m...@ozzmosis.com]
Sent: Thursday, September 09, 2010 9:24 PM
To: Guojun Jin
Cc: questi...@freebsd.org
Subject: Re: how to tell "ls" output date in digital

On Wed 2010-09-08 16:03:20 UTC-0700, Guojun Jin (g...@ubicom.com) wrote:

> I remember that "ls" can output date in digital like following format
> before
>
> -rw-r--r--  1 user  Domain Users54323 2010-09-08 14:12 crash.log
>
> Instead of   Sep 08 2010 or   Sep 08 11:07
>
> But I cannot find any option or ENV to do this under FreeBSD (6.X-R).
>
> Does anyone have knowledge about this possibility?

In FreeBSD 7.3 I use /usr/local/bin/gls installed from the
sysutils/coreutils port, and a tcsh alias for ls:

ls  gls --time-style=long-iso --color=auto

21:23 ozzmo...@blizzard [~]ls -ld /
drwxr-xr-x 19 root wheel 512 2010-09-05 03:11 /

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"

__
Disclaimer:  This email message and any attachments are for the sole use of the 
intended recipient(s) and may contain information that is confidential, legally 
privileged or otherwise exempt from disclosure under applicable law. If you are 
not the intended recipient(s) or have received this message in error, you are 
instructed to immediately notify the sender by return email and required to 
delete this message from your computer system. This communication does not form 
any contractual obligation on behalf of the sender, the sender's employer or 
such employer's parent company, affiliates or subsidiaries.
___
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"


mount NTFS && can't write to it

2010-09-09 Thread Matthias Apitz

Hello,

I'm mounting an NTFS slice on an external USB drive as:

# mount -t ntfs /dev/da1s1 /mnt

I can see the data there with ls(1) but can't create any dir like
/mnt/dir nor touch a file like /mnt/file (ofc as root).
It alwaya says /mnt/dir: No such file or directory. 

The man page of mount_ntfs(8) does not explain what the problem could
be. This is with 8-CURRENT

Thx

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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 tell "ls" output date in digital

2010-09-09 Thread andrew clarke
On Thu 2010-09-09 13:11:39 UTC+, Pala, Santosh (santosh_p...@keane.com) 
wrote:

> The ls command with -E switch will give the required output. 

Hmm, not in FreeBSD 7.3:

23:19 ozzmo...@blizzard [~]/bin/ls -E
ls: illegal option -- E
usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwx1] [file ...]

23:19 ozzmo...@blizzard [~]/usr/local/bin/gls -E
/usr/local/bin/gls: invalid option -- 'E'
Try /usr/local/bin/gls --help' for more information.
___
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: Regex Help For Procmail

2010-09-09 Thread Glen Barber
On 9/8/10 12:22 PM, Drew Tomlinson wrote:
[snip]
> # Deliver other email to folder
> :0
> * ^From:.*famous-smoke\.com
> "${HOME}/Maildir/.Shopping/Famous Smoke/Email/"
> 
> Do you see anything I'm missing?
> 

Drew,

I'll give this one final shot.  Try this:

* ^From:(@.*famous-smoke\.com)
"$HOME/Maildir/"

Regards,

-- 
Glen Barber
___
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 tell "ls" output date in digital

2010-09-09 Thread andrew clarke
On Wed 2010-09-08 16:03:20 UTC-0700, Guojun Jin (g...@ubicom.com) wrote:

> I remember that "ls" can output date in digital like following format
> before
> 
> -rw-r--r--  1 user  Domain Users54323 2010-09-08 14:12 crash.log
> 
> Instead of   Sep 08 2010 or   Sep 08 11:07
> 
> But I cannot find any option or ENV to do this under FreeBSD (6.X-R).
> 
> Does anyone have knowledge about this possibility?

In FreeBSD 7.3 I use /usr/local/bin/gls installed from the
sysutils/coreutils port, and a tcsh alias for ls:

ls  gls --time-style=long-iso --color=auto

21:23 ozzmo...@blizzard [~]ls -ld /
drwxr-xr-x 19 root wheel 512 2010-09-05 03:11 /

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: Any way to force AHCI mode on ICH8?

2010-09-09 Thread Ivan Voras

On 09/09/10 02:10, Morgan Wesström wrote:

I run FreeBSD 8.1 on an old Asus P5B-VM motherboard with ICH8. Its AMI
BIOS lacks an option to enable AHCI mode. Intel's datasheet for the ICH8
family specifies that this feature exists on the ICH8, and the option is
available in the BIOS for the identical (apart from form factor) P5B
motherboard.

http://www.intel.com/Assets/PDF/datasheet/313056.pdf

I've contacted Asus support for an updated BIOS but I don't have much
hope I will ever see one. Would it be possible to patch the FreeBSD
kernel to enable AHCI mode somehow during boot?


You mean except adding:

ahci_load="YES"

to /boot/loader.conf ?

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