Re: linux cp -u question

2010-05-28 Thread Polytropon
On Thu, 27 May 2010 18:41:21 +0200, Coert lgro...@waagmeester.co.za wrote:
 Hello all,
 
 Is there a FreeBSD equivalent for the linux cp -u ?
 
 http://linux.die.net/man/1/cp (-u, --update)


Check out cpdup (available via ports or packages).



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


portsnap and portupgrade question

2010-05-27 Thread Coert

Hello all,

Thanks for the awesome OS!
I am a Linux user and I just started using FreeBSD. It is awesome, and 
the Handbook as well!


I am following Chapter 24 of the Handbook to update my system.

First I completed the freebsd-update
Then I ran portupgrade -av
Then I ran portsnap.

When I decided what to make PACKAGESITE I picked 8.0-RELEASE (not STABLE 
or CURRENT). I also mirrored the entire 20GB i386 8.0-RELEASE package 
set. I live in South-Africa and my ADSL is slow and expensive, so having 
the whole collection locally 'helps' :)


Now here is my question.
After I ran portsnap fetch extract, I ran portupgrade and got quite a 
fright. What does portsnap want to download? 8.0-RELEASE or STABLE?
I did not mirror the ports because that would be really big, so it will 
cost me a lot of time to upgrade with portupgrade.


Is there a way to do this with the binary packages instead? Or am I 
doing something wrong?


Any pointers for this n00b would be greatly appreciated!

Regards,
Coert

___
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: Cloning question

2010-05-27 Thread Giorgos Keramidas
On Wed, 26 May 2010 22:33:16 -0400, Steve Bertrand st...@ipv6canada.com wrote:
 I've written a few howto's on backup/restore/cloning in the past, but
 now I have a question that I hope to have quickly answered.

 I'm not looking for criticism on my approach, only on whether it will
 work. With that said, I'll lay out my scenario and my questions.

 Scenario:

 - live web server (300 domains), shut the box down and booted up a copy
 of the system on new hardware

 - changed the normal system items (nic, fstab etc)

 - new box is running fine under old system, but I need to transfer the
 old system data (all of it...*all* data) to the new disk sub-structure

 - new box has RAID card, but not compatible w/FBSD

 - new box has had RAID card disabled, so new disks show up as standard
 adX drives

 Questions:

 - while running the 'new' box under the 'old' system, can I:
 --- atacontrol create RAID1 ad4 ad6
 --- fdisk
 --- label: to items under /mnt, as to prepare for copy

 - stop all services (or go into single-user), and dump each slice from
 orig to new

 ...if so, please advise of the dump command that I'd be using.

 Normally I'd use rsync, but this situation can sustain some downtime to
 ensure a complete and utter mirror.

If you want to use dump/restore to copy the root partition from ad0s1a
to ad4s1a you can use:

# newfs -L NEWROOT /dev/ad4s1a
# mount -t ufs /dev/ufs/NEWROOT /mnt
# cd /mnt
# dump -0auL -C 32 -f - / | restore -rf -

When this is run in single-user mode, the partiion mounted at /mnt
should have a copy of the root filesystem.  Repeat the dump-restore pipe
for other filesystems, e.g.:

# newfs -L NEWDATA /dev/ad4s2a
# mount -t ufs /dev/ufs/NEWDATA /mnt/data
# cd /mnt/data
# dump -0auL -C 32 -f - /data | restore -rf -

# newfs -L NEWHOME /dev/ad4s3a
# mount -t ufs /dev/ufs/NEWHOME /mnt/home
# cd /mnt/home
# dump -0auL -C 32 -f - /home | restore -rf -

...

When you have dumped all your filesystems to properly mounted graft
points under /mnt, update /mnt/etc/fstab and boot the new disk.

___
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: portsnap and portupgrade question

2010-05-27 Thread Polytropon
On Thu, 27 May 2010 08:23:58 +0200, Coert lgro...@waagmeester.co.za wrote:
 First I completed the freebsd-update
 Then I ran portupgrade -av
 Then I ran portsnap.

It's a bit confusing to me. Why do you first update your installed
ports, then the ports database? I would thing it would make more
sense in reverse order, i. e.

1. freebsd-update
   This updates your operating system in binary way.

2. portsnap
   This brings your ports tree up to date

3. portupgrade -av
   This updates your installed ports.

If you don't have much ports installed, or when you're just
beginning to install a system, perform steps 1 and 2 first,
then install portupgrade (or portmaster, another great tool),
and then install everything else. This way you will receive
the latest versions of the ports. If you wish to upgrade your
installed system, perform steps 1, 2 and 3 in the proper manner.



 When I decided what to make PACKAGESITE I picked 8.0-RELEASE (not STABLE 
 or CURRENT).

As you updated your system with freebsd-update to follow the
-RELEASE-p- branch, this is valid.



 Now here is my question.
 After I ran portsnap fetch extract, I ran portupgrade and got quite a 
 fright. What does portsnap want to download? 8.0-RELEASE or STABLE?

The portsnap program does usually download the latest version of
the ports collection. Remember that ports do always get updated,
there basically is no -RELEASE, -STABLE or -CURRENT branch for the
ports as it is for the OS.



 I did not mirror the ports because that would be really big, so it will 
 cost me a lot of time to upgrade with portupgrade.

The ports tree itself is not that big - but installed applications
can be. A portupgrade -av call would only upgrade your installed
packages, not all that exist in ports tree.



 Is there a way to do this with the binary packages instead? Or am I 
 doing something wrong?

Yes, see the excellent documentation in man portupgrade: There
are the -P and -PP switches (and -p might be interesting to you,
too, to store and maybe transfer upgraded packages to other
systems).

Additionally, there's pkg_add -r to install binary packages. You
can either install Latest or those refering to -RELEASE, depending
on what PACKAGESITE or PACKAGEROOT are set; refer to man pkg_add
for a better explaination.





-- 
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: portsnap and portupgrade question

2010-05-27 Thread Coert

Polytropon wrote:

On Thu, 27 May 2010 08:23:58 +0200, Coert lgro...@waagmeester.co.za wrote:

First I completed the freebsd-update
Then I ran portupgrade -av
Then I ran portsnap.


It's a bit confusing to me. Why do you first update your installed
ports, then the ports database? I would thing it would make more
sense in reverse order, i. e.

1. freebsd-update
   This updates your operating system in binary way.

2. portsnap
   This brings your ports tree up to date

3. portupgrade -av
   This updates your installed ports.

If you don't have much ports installed, or when you're just
beginning to install a system, perform steps 1 and 2 first,
then install portupgrade (or portmaster, another great tool),
and then install everything else. This way you will receive
the latest versions of the ports. If you wish to upgrade your
installed system, perform steps 1, 2 and 3 in the proper manner.



When I decided what to make PACKAGESITE I picked 8.0-RELEASE (not STABLE 
or CURRENT).


As you updated your system with freebsd-update to follow the
-RELEASE-p- branch, this is valid.




Now here is my question.
After I ran portsnap fetch extract, I ran portupgrade and got quite a 
fright. What does portsnap want to download? 8.0-RELEASE or STABLE?


The portsnap program does usually download the latest version of
the ports collection. Remember that ports do always get updated,
there basically is no -RELEASE, -STABLE or -CURRENT branch for the
ports as it is for the OS.



I did not mirror the ports because that would be really big, so it will 
cost me a lot of time to upgrade with portupgrade.


The ports tree itself is not that big - but installed applications
can be. A portupgrade -av call would only upgrade your installed
packages, not all that exist in ports tree.



Is there a way to do this with the binary packages instead? Or am I 
doing something wrong?


Yes, see the excellent documentation in man portupgrade: There
are the -P and -PP switches (and -p might be interesting to you,
too, to store and maybe transfer upgraded packages to other
systems).

Additionally, there's pkg_add -r to install binary packages. You
can either install Latest or those refering to -RELEASE, depending
on what PACKAGESITE or PACKAGEROOT are set; refer to man pkg_add
for a better explaination.








Hello Polytropon,

The order of operations makes sense. I ran it that way now

I checked the man page, and the -PP option is indeed what I am looking for.

What I do see though, portupgrade is attempting to download the STABLE 
packages and not RELEASE.


I have read nearly all of Chapter 24, and I looked at Chapter 4 as well.
And I have scrunged through portsnap and portupgrade's man pages, but I 
can not yet find a way to force it to use RELEASE.


I apologize if this is maybe a stupid noob thing

Should I maybe not have used portsnap, so as to keep to ports tree that 
came with the release?


Is there a way to get the original release ports tree back?

Or should I maybe just be using STABLE?

Here is what I get when I run portupgrade -PPanv

---  Checking for the latest package of 'net/rsync'
---  Found a package of 'net/rsync': 
/var/packages/FreeBSD/8.0-release-i386/Latest/rsync.tbz (rsync-3.0.6)

---  Fetching the package(s) for 'rsync-3.0.7' (net/rsync)
---  Fetching rsync-3.0.7
++ Will try the following sites in the order named:
ftp://ftp.FreeBSD.org//pub/FreeBSD/ports/i386/packages-8.0-release/
---  Invoking a command: /usr/bin/fetch -o 
'/var/tmp/portupgradeINlbeDr0/rsync-3.0.7.tbz' 
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tbz'
fetch: 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tbz: 
File unavailable (e.g., file not found, no access)

** The command returned a non-zero exit status: 1
** Failed to fetch 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tbz
---  Invoking a command: /usr/bin/fetch -o 
'/var/tmp/portupgradeINlbeDr0/rsync-3.0.7.tgz' 
'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tgz'
fetch: 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tgz: 
File unavailable (e.g., file not found, no access)

** The command returned a non-zero exit status: 1
** Failed to fetch 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tgz

** Failed to fetch rsync-3.0.7
---  Listing the results (+:done / -:ignored / *:skipped / !:failed)
! rsync-3.0.7   (fetch error)
---  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
---  Fetching the latest package(s) for 'rsync' (net/rsync)
---  Fetching rsync
++ Will try the following sites in the order named:
ftp://ftp.FreeBSD.org//pub/FreeBSD/ports/i386/packages-8.0-release/
---  Invoking a command: /usr/bin/fetch -o 
'/var/tmp/portupgradeDlJGIGWL/rsync.tbz' 
'ftp://ftp.FreeBSD.org/pub/FreeBSD

top memory usage question

2010-05-27 Thread Coert

Hello all,

Just a question, on Linux the output of top's memory usage looks like this:

Mem:   2075424k total,  1760848k used,   314576k free,   151872k buffers
Swap:  4192924k total,0k used,  4192924k free,  1214052k cached


on FreeBSD:

Mem: 48M Active, 945M Inact, 190M Wired, 112M Buf, 804M Free
Swap: 4063M Total, 4063M Free


I have looked at the respective man pages, and googled.
Where can I find out what Active, Inactive, and Wired mean?


Thank you,
Coert
___
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: portsnap and portupgrade question

2010-05-27 Thread Polytropon
On Thu, 27 May 2010 10:26:49 +0200, Coert lgro...@waagmeester.co.za wrote:
 I checked the man page, and the -PP option is indeed what I am looking for.

The -PP option forces packages. Keep in mind that it *may* happen
that there isn't a package for a specific port, or a package uses
the default options of a port (see make config) that won't fit
your particular requirements.



 What I do see though, portupgrade is attempting to download the STABLE 
 packages and not RELEASE.

I think it will use the packages that correspond to the version
actually present in your ports tree. If you updated your ports
tree using portsnap, it's newer than RELEASE.



 I have read nearly all of Chapter 24, and I looked at Chapter 4 as well.
 And I have scrunged through portsnap and portupgrade's man pages, but I 
 can not yet find a way to force it to use RELEASE.

Just keep your ports tree as it came from the installation CD
or DVD. It will then be in the state of RELEASE unless you
update it (by portsnap or make update).



 I apologize if this is maybe a stupid noob thing

No need.



 Should I maybe not have used portsnap, so as to keep to ports tree that 
 came with the release?

If you want to track RELEASE for your operating system anyway
(by freebsd-update), it's okay to stay with the ports tree
in the state of RELEASE.

In this case, you can even omit using portupgrade for upgrading,
simply because there is nothing to upgrade. :-)

If you decide to make a release switch, e. g. from 8.0 to 8.1,
it's a good chance to use portupgrade -va at this point in
time - after getting the ports tree.



 Is there a way to get the original release ports tree back?

Yes. First, delete /usr/ports. Then get the ports tree from the
installation CD or DVD, e. g. by using the sysinstall program.
If you want, you can remove everything except the system itself
and start all over (of course, only ports will be affected, the
system won't). You can obtain the -RELEASE ports tree also from
the Internet, download it, and install it. But if you already
have installation media, I think it's the easiest way to use
this via sysinstall.



 Or should I maybe just be using STABLE?

You have to decide this. If you plan to install once, then use,
you can easily go with -RELEASE and its original ports tree. If
you think you will want or need to randomly or periodically
upgrade all your applications, go with -STABLE. Keep in mind
you can't track -STABLE with freebsd-update - there are other
means to do this (read man freebsd-update's first paragraph
for an explaination why).



 Here is what I get when I run portupgrade -PPanv
 [...]
 ** No package available: net/rsync

Why not use pkg_add -r rsync here, with PACKAGESITE / PACKAGEROOT
set to the RELEASE subtree on the FreeBSD FTP server? The pkg_add
program is intended to be used with binary packages. If you mix
using pkg_add and portupgrade (which is possible), don't forget
to keep your installed package database up to date (pkgdb -aF).




-- 
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: top memory usage question

2010-05-27 Thread RW
On Thu, 27 May 2010 11:52:15 +0200
Coert lgro...@waagmeester.co.za wrote:

 Hello all,
 
 Just a question, on Linux the output of top's memory usage looks like
 this:
 
 Mem:   2075424k total,  1760848k used,   314576k free,   151872k
 buffers Swap:  4192924k total,0k used,  4192924k free,
 1214052k cached
 
 
 on FreeBSD:
 
 Mem: 48M Active, 945M Inact, 190M Wired, 112M Buf, 804M Free
 Swap: 4063M Total, 4063M Free

This is missing Cache

 I have looked at the respective man pages, and googled.
 Where can I find out what Active, Inactive, and Wired mean?


Active, Inact, Cache , and Free are all part of the same VM lifecycle.
When the system need to allocate memory it comes from cache or free.

Wired memory wont be paged-out.
___
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: portsnap and portupgrade question

2010-05-27 Thread Coert

Polytropon wrote:

On Thu, 27 May 2010 10:26:49 +0200, Coert lgro...@waagmeester.co.za wrote:

I checked the man page, and the -PP option is indeed what I am looking for.


The -PP option forces packages. Keep in mind that it *may* happen
that there isn't a package for a specific port, or a package uses
the default options of a port (see make config) that won't fit
your particular requirements.



What I do see though, portupgrade is attempting to download the STABLE 
packages and not RELEASE.


I think it will use the packages that correspond to the version
actually present in your ports tree. If you updated your ports
tree using portsnap, it's newer than RELEASE.




I have read nearly all of Chapter 24, and I looked at Chapter 4 as well.
And I have scrunged through portsnap and portupgrade's man pages, but I 
can not yet find a way to force it to use RELEASE.


Just keep your ports tree as it came from the installation CD
or DVD. It will then be in the state of RELEASE unless you
update it (by portsnap or make update).




I apologize if this is maybe a stupid noob thing


No need.



Should I maybe not have used portsnap, so as to keep to ports tree that 
came with the release?


If you want to track RELEASE for your operating system anyway
(by freebsd-update), it's okay to stay with the ports tree
in the state of RELEASE.

In this case, you can even omit using portupgrade for upgrading,
simply because there is nothing to upgrade. :-)

If you decide to make a release switch, e. g. from 8.0 to 8.1,
it's a good chance to use portupgrade -va at this point in
time - after getting the ports tree.




Is there a way to get the original release ports tree back?


Yes. First, delete /usr/ports. Then get the ports tree from the
installation CD or DVD, e. g. by using the sysinstall program.
If you want, you can remove everything except the system itself
and start all over (of course, only ports will be affected, the
system won't). You can obtain the -RELEASE ports tree also from
the Internet, download it, and install it. But if you already
have installation media, I think it's the easiest way to use
this via sysinstall.




Or should I maybe just be using STABLE?


You have to decide this. If you plan to install once, then use,
you can easily go with -RELEASE and its original ports tree. If
you think you will want or need to randomly or periodically
upgrade all your applications, go with -STABLE. Keep in mind
you can't track -STABLE with freebsd-update - there are other
means to do this (read man freebsd-update's first paragraph
for an explaination why).




Here is what I get when I run portupgrade -PPanv
[...]
** No package available: net/rsync


Why not use pkg_add -r rsync here, with PACKAGESITE / PACKAGEROOT
set to the RELEASE subtree on the FreeBSD FTP server? The pkg_add
program is intended to be used with binary packages. If you mix
using pkg_add and portupgrade (which is possible), don't forget
to keep your installed package database up to date (pkgdb -aF).






Thankyou Polytropon.

It is working perfectly now.
I have the RELEASE ports tree back, and my system is at 8.0-RELEASE-p3 
thanks to freebsd-update.




Regards,
Coert
___
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


linux cp -u question

2010-05-27 Thread Coert

Hello all,

Is there a FreeBSD equivalent for the linux cp -u ?

http://linux.die.net/man/1/cp (-u, --update)

Rgds,
Coert
___
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: linux cp -u question

2010-05-27 Thread Lord Of Hyphens
rsync is almost certainly a better solution.

On Thu, May 27, 2010 at 11:41 AM, Coert lgro...@waagmeester.co.za wrote:

 Hello all,

 Is there a FreeBSD equivalent for the linux cp -u ?

 http://linux.die.net/man/1/cp (-u, --update)

 Rgds,
 Coert
 ___
 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




-- 
Nothing unreal exists. - Kiri-kin-tha's First Law of Metaphysics.
___
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


Cloning question

2010-05-26 Thread Steve Bertrand
I've written a few howto's on backup/restore/cloning in the past, but
now I have a question that I hope to have quickly answered.

I'm not looking for criticism on my approach, only on whether it will
work. With that said, I'll lay out my scenario and my questions.

Scenario:

- live web server (300 domains), shut the box down and booted up a copy
of the system on new hardware

- changed the normal system items (nic, fstab etc)

- new box is running fine under old system, but I need to transfer the
old system data (all of it...*all* data) to the new disk sub-structure

- new box has RAID card, but not compatible w/FBSD

- new box has had RAID card disabled, so new disks show up as standard
adX drives

Questions:

- while running the 'new' box under the 'old' system, can I:
--- atacontrol create RAID1 ad4 ad6
--- fdisk
--- label: to items under /mnt, as to prepare for copy

- stop all services (or go into single-user), and dump each slice from
orig to new

...if so, please advise of the dump command that I'd be using.

Normally I'd use rsync, but this situation can sustain some downtime to
ensure a complete and utter mirror.

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


bash-static question..

2010-05-23 Thread B. Cook
I was compiling and saw this message..

cc  -DPROGRAM='bash' -DCONF_HOSTTYPE='amd64'
-DCONF_OSTYPE='freebsd8.0' -DCONF_MACHTYPE='amd64-portbld-freebsd8.0'
-DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/locale'
-DPACKAGE='bash' -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib
 -I/usr/local/include -O2 -pipe -fno-strict-aliasing -c y.tab.c
/Users/chet/src/bash/src/parse.y: In function 'report_syntax_error':
/Users/chet/src/bash/src/parse.y:5486: warning: assignment discards
qualifiers from pointer target type


/Users/chet.. thats very osx'y .. is that a problem?

it compiles fine.. 'just not sure if references to things that don't exist
are ok..

:P

___
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


tricky perl question - ascending order

2010-05-23 Thread Jozsi Vadkan
or maybe in bash..
script/one liner e.g.: input: http://pastebin.com/raw.php?i=pMZPEsMZ

i want to make this output from it:
http://pastebin.com/raw.php?i=kH8VxT0A


So from the input, i want to make an ascendant order, how many things
are under a SOMETHING-XX

Does anyone has any perl magic in the pocket, how to do this? :D

Thank you very, very much..:\

___
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: tricky perl question - ascending order

2010-05-23 Thread Randal L. Schwartz
 Jozsi == Jozsi Vadkan jozsi.avad...@gmail.com writes:

Jozsi So from the input, i want to make an ascendant order, how many things
Jozsi are under a SOMETHING-XX

So you just want paragraphs ordered by line count?

Something like this, untested:

perl -00 'print map $_-[0], sort { $a-[1] = $b-[1] } map [$_, tr/\n//], 
' input output

Keywords: Schwartzian Transform, paragraph mode.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
mer...@stonehenge.com URL: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: tricky perl question - ascending order

2010-05-23 Thread Jozsi Vadkan
The solution [i asked Randal L. Schwartz, because i didn't worked, and
he said he just forgot the -e, now it works!!]:

perl -00 -e 'print map $_-[0], sort { $a-[1] = $b-[1] } map [$_,
tr/\n//], '  before.txt  after.txt

Thank you!!


  Jozsi == Jozsi Vadkan jozsi.avad...@gmail.com writes:
 
 Jozsi So from the input, i want to make an ascendant order, how many things
 Jozsi are under a SOMETHING-XX
 
 So you just want paragraphs ordered by line count?
 
 Something like this, untested:
 
 perl -00 'print map $_-[0], sort { $a-[1] = $b-[1] } map [$_, tr/\n//], 
 ' input output
 
 Keywords: Schwartzian Transform, paragraph mode.
 

___
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


question regarding FTP_PROXY

2010-05-22 Thread Dino Vliet
Hi freebsd folks,

I'm having troubles installing some ports because I'm behind a restrictive pf 
firewall. I've heard that this could
be circumvented if I use a ftp_proxy. I have this debian server that can access 
ftp sites and I installed vsftp on
that and checked I can get to that box with ftp.

However, if I try this command from my freebsd box:

fetch: ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-4.0.3.tar.gz

I get:

Not logged in

My ftp proxy environment variable in .profile is:

FTP_PROXY=ftp://ftp:f...@192.168.2.101:21 (also tried with only 
ftp://192.168.2.101:21 but no luck)
export FTP_PROXY

Can anyone help me with this?
Thanks
Dino



  
___
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: question regarding FTP_PROXY

2010-05-22 Thread Alberto Mijares
On Sat, May 22, 2010 at 6:07 AM, Dino Vliet dino_vl...@yahoo.com wrote:
 Hi freebsd folks,

 I'm having troubles installing some ports because I'm behind a restrictive pf 
 firewall. I've heard that this could
 be circumvented if I use a ftp_proxy. I have this debian server that can 
 access ftp sites and I installed vsftp on
 that and checked I can get to that box with ftp.

 However, if I try this command from my freebsd box:

 fetch: ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-4.0.3.tar.gz

 I get:

 Not logged in

 My ftp proxy environment variable in .profile is:

 FTP_PROXY=ftp://ftp:f...@192.168.2.101:21 (also tried with only 
 ftp://192.168.2.101:21 but no luck)
 export FTP_PROXY


I think you should set FTP_LOGIN and FTP_PASSWORD whith propper
credential, or set them whithin the URL.

See man(3) fetch.

Regards


Alberto Mijares
___
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


ipfilter rules question

2010-05-18 Thread Anton Shterenlikht
I'm using ipfilter on -current.

Here's a fragment of the outgoing rules:

# ipfstat -on

*skip*
@14 pass out quick on bge0 proto udp from any to any port = 8649 keep state
*skip*
@18 pass out log first quick on bge0 all


And I see these ipmon entries in /var/log/ipfilter.log:

ipmon[765]: 00:01:04.242290 bge0 @0:18 p 137.222.187.221,10280 - 
239.2.11.71,8649 PR udp len 20 96 OUT multicast
ipmon[765]: 00:01:09.702391 5x bge0 @0:18 p 137.222.187.221,10280 - 
239.2.11.71,8649 PR udp len 20 92 OUT multicast
ipmon[765]: 00:01:24.062025 7x bge0 @0:18 p 137.222.187.221,10280 - 
239.2.11.71,8649 PR udp len 20 92 OUT multicast

I don't understand why these packets are not
sent via rule 14. Is rule 14 not matched?
Or I'm missing someting else?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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


Question not found in FAQs or other documentation

2010-05-15 Thread jon

To whom it concerns,

I am a relatively basic/amateur computer user and I just noticed  
today that my recent servers lists Free BSD.


I do not knowingly connect to any outside servers and am concerned  
that any server has been connected to my computer.


My question is: how can I prevent this server from ever connecting to  
my computer again? And anything else I can do to delete this server,  
this connection


I have an Apple powerbook G4 running Mac OS X 10.4.11.

I would most appreciate a response. Thank you kindly for your time,

Jon
___
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: Question not found in FAQs or other documentation

2010-05-15 Thread Jon Radel

On 5/15/10 5:57 PM, jon wrote:


To whom it concerns,
Not us, really.  This strikes me much more as a Mac OS or local network 
support issue.


I am a relatively basic/amateur computer user and I just noticed today 
that my recent servers lists Free BSD.
Your recent servers list where?  We need more details.  I suspect you 
mean Finder-Connect to Server-Recent Servers, but that's just an 
educated guess.


I do not knowingly connect to any outside servers and am concerned 
that any server has been connected to my computer.
You really need to determine what computer on your network(s) identifies 
itself with the name Free BSD if you wish to track this down.  If you 
dislike the fact that Mac OS X tries to list other computers on your 
local network, I'd strongly urge you to go into System Preferences and 
make sure that all sharing services are turned off and that the firewall 
is turned on with the most locked down set of options.


However, keep in mind that Mac OS X likes to list other local computers 
which make file services available over AFP or SMB, and this does *not* 
mean that the other computers are connecting to your laptop (although it 
doesn't rule it out either).


My question is: how can I prevent this server from ever connecting to 
my computer again? And anything else I can do to delete this server, 
this connection


I've seen nothing in your description to indicate that there is a 
current connection of any type.  If it bugs you, what about hitting the 
clear recent servers button, should that exist in 10.4.  (I have 
nothing older than 10.5 to look at.)  And make sure that *your* sharing 
is off and firewall is on.

I have an Apple powerbook G4 running Mac OS X 10.4.11.


Upgrade to Mac OS 10.5.8 if your hardware supports it.  It's still 
getting more attention from Apple.



--

--Jon Radel
j...@radel.com




Re: Question not found in FAQs or other documentation

2010-05-15 Thread Bob Hall
On Sat, May 15, 2010 at 05:57:35PM -0400, jon wrote:
 To whom it concerns,
 
 I am a relatively basic/amateur computer user and I just noticed  
 today that my recent servers lists Free BSD.
 
 I do not knowingly connect to any outside servers and am concerned  
 that any server has been connected to my computer.
 
 My question is: how can I prevent this server from ever connecting to  
 my computer again? And anything else I can do to delete this server,  
 this connection

Out of curiosity, I looked in the Recent Servers list in a couple of
Macs that I have, and the only thing I could find were local file
servers. A server is a process that accepts requests for services.
Typically, they don't iniciate connections. As near as I can tell from
the Mac documentation, the Recent Servers list is a list of servers
that you've connected to, and nothing more.

I suggest clicking on the item in your Recent Servers list and finding
out what you connect to. If you have any further questions you should
post them in a Mac forum, since the question of which servers you've
been connected to really has nothing to do with the Free BSD operating
system.

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


rookie question about PACKAGESITE

2010-05-11 Thread Coert

Hello all,

I started using FreeBSD about a week ago, and I really like the system. 
Have been using Linux for the last few years.


One noob question though, according to the Handbook on Packages and 
Ports, I can use packages for either RELEASE, STABLE, or CURRENT.


How exactly would this compare to Linux?
Is it that CURRENT is like Fedora(bleeding-edge and somewhat unstable), 
and STABLE is like RedHat Enterprise Linux (older versions of software, 
but very stable)?


Which one should I use? I am currently using RELEASE.
I am not looking for bleeding edge. I'm after stability.

Kind regards,
Coert
___
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: rookie question about PACKAGESITE

2010-05-11 Thread Ross Cameron
Hey hey Coert
Nice to see another GLUG member on here.

The link below will answer you're question.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html

In general give the FreeBSD Handbook a read, in my concerted little
opinion it is the gold standard in how any operating system should be
documented.



On Tue, May 11, 2010 at 1:42 PM, Coert lgro...@waagmeester.co.za wrote:
 Hello all,

 I started using FreeBSD about a week ago, and I really like the system. Have
 been using Linux for the last few years.

 One noob question though, according to the Handbook on Packages and Ports, I
 can use packages for either RELEASE, STABLE, or CURRENT.

 How exactly would this compare to Linux?
 Is it that CURRENT is like Fedora(bleeding-edge and somewhat unstable), and
 STABLE is like RedHat Enterprise Linux (older versions of software, but very
 stable)?

 Which one should I use? I am currently using RELEASE.
 I am not looking for bleeding edge. I'm after stability.

 Kind regards,
 Coert
 ___
 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




-- 
Opportunity is most often missed by people because it is dressed in
overalls and looks like work.
Thomas Alva Edison
Inventor of 1093 patents, including:
The light bulb, phonogram and motion pictures.
___
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: rookie question about PACKAGESITE

2010-05-11 Thread RW
On Tue, 11 May 2010 13:42:52 +0200
Coert lgro...@waagmeester.co.za wrote:

 Hello all,
 
 I started using FreeBSD about a week ago, and I really like the
 system. Have been using Linux for the last few years.
 
 One noob question though, according to the Handbook on Packages and 
 Ports, I can use packages for either RELEASE, STABLE, or CURRENT.

Current is bleeding edge, STABLE branches are stable development
branches, but these all relate to the base system. As far as packages
are concerned, they should be be built for the base system version you
are using - you can mostly get away with using  STABLE packages on
releases, but it can cause problems.

If you want to keep to keep packages up-to-date between releases,
update via ports.
___
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: bash while read question

2010-05-06 Thread Evuraan
2010/5/5 CyberLeo Kitsana cyber...@cyberleo.net:
 On 05/05/2010 08:25 PM, Evuraan wrote:
 I cant figure out why the variable in in loop2 does not hike to +1?
 (its a friday, i am dazed, I admit. but this should not be a mystery!)
 any help would be much appreciated.
 snip
 $ cat loop2
 #! /bin/bash

 date  /tmp/somefile
 b=1
 cat /tmp/somefile | while read blah; do
 let b=(b+1)
 done
 echo variable is $b

 This particular syntax executes the 'while' block in a subshell. The
 variables set or altered in the subshell are never propagated back up to
 the parent shell.

duh, i get it now, anytime stuff is piped , a subshell is evoked:

http://tldp.org/LDP/abs/html/subshells.html says,

snip
Redirecting I/O to a subshell uses the | pipe operator, as in ls -al
| (command).
/snip

thanks for the reset..!

 --
 Fuzzy love,
 -CyberLeo


___
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


bash while read question

2010-05-05 Thread Evuraan
I cant figure out why the variable in in loop2 does not hike to +1?
(its a friday, i am dazed, I admit. but this should not be a mystery!)
any help would be much appreciated.


$ cat loop1
#! /bin/bash

date  /tmp/somefile
b=1
while read blah; do
let b=(b+1)
done   /tmp/somefile
echo variable is $b

$ cat loop2
#! /bin/bash

date  /tmp/somefile
b=1
cat /tmp/somefile | while read blah; do
let b=(b+1)
done
echo variable is $b


$ ./loop1
variable is 2

$ ./loop2
variable is 1
___
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: bash while read question

2010-05-05 Thread CyberLeo Kitsana
On 05/05/2010 08:25 PM, Evuraan wrote:
 I cant figure out why the variable in in loop2 does not hike to +1?
 (its a friday, i am dazed, I admit. but this should not be a mystery!)
 any help would be much appreciated.
 snip
 $ cat loop2
 #! /bin/bash
 
 date  /tmp/somefile
 b=1
 cat /tmp/somefile | while read blah; do
 let b=(b+1)
 done
 echo variable is $b

This particular syntax executes the 'while' block in a subshell. The
variables set or altered in the subshell are never propagated back up to
the parent shell.

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
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: ziz a dumb question?

2010-05-02 Thread Chris Whitehouse

Polytropon wrote:

On Sat, 01 May 2010 11:59:52 +0100, Chris Whitehouse cwhi...@onetel.com wrote:

Seriously? Or joking? How did you measure it?


Well... erm... in fact... I didn't measure anything, I just
utilized the numbers. :-) Modern PCs come with a 700 W power
supply (and more), and the specs for my AS/400e 9406-170 say
654 W with expansion unit (326 W without), measured kVA values
(according to manual) are similar. Weight is 70.5 kg, and
size is two big towers side by side.


Well plenty of people have replied since so no more to add   , except 
you may well win on watts per kilogram   :)






My 2 year old desktop uses 
60-100 watts depending on how hard it's working.


Sounds like a notebook / laptop class computer.


No it really is a desktop, AMD 3500+ dual core, onboard graphics, but 
not including the screen.






10 disks and lots of 
noise must use a few watts, though size and weight wouldn't have that 
much influence per se :)


But it's more than 10 years old, too old to seriously
measure something! :-)


but seriously its worth measuring if you want to control your energy 
use. I measured electricity use of my  work computer, a standard dell 
machine. Consumption while in (Windows) shutdown mode is one third of 
'in use' consumption and it is in use for about one quarter of the time. 
 So if I don't turn it off at the mains (wall) socket it uses as much 
electricity  while not in use as while in use.  Getting anyone to take 
notice in a corporate environment is impossible but that's another story 
   sigh!


Chris

ps sorry OP, getting a bit OT




___
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: ziz a dumb question?

2010-05-01 Thread Gary Kline
yo; it's late here [even i've wimped out:: no-ooo-ooo!]
so i'll reply come morning.  ('sall ready 'tomorrow':)

-g


On Sat, May 01, 2010 at 05:20:55AM +0200, Polytropon wrote:
 On Fri, 30 Apr 2010 20:03:50 -0700, Gary Kline kl...@thought.org wrote:
  On Sat, May 01, 2010 at 04:19:13AM +0200, Polytropon wrote:
   On Fri, 30 Apr 2010 18:57:08 -0700, Gary Kline kl...@thought.org wrote:
i've never been anything near the extreme-green movement.  i
figured that newer computers/cpus/etc would be more efficient
than what came before. 
   
   Oh, you mean that a modern desktop PC consumes as much power
   as my old AS/400e with 10 hard disk drives - as loud a a common
   PC, 2 times as big and 4 times as heavy? :-)
   
  
  Yeah, gee-whiz :)
 
 Incorrect values: 4 times as big and 8 times as heavy - but
 the same power consumption. :-)
 
 
 
  i've thought about this for at Least ten years why not
  have 4 CRT's or xterminals hanging off one very beefy
  machine?  but do they have anything with graphics and
  keyboard + mouse that can work via one USB port/jack? 
 
 Don't confuse my use of network terminal with classic serial
 terminals. Look, for example, at the devices AXEL builds, or
 already present for many years: Sun Ray terminals. They also
 have audio I/O, card reader, and USB connectors (where the
 keyboard and mouse usually are connected). A regular monitor
 (maybe with speakers) makes it a full-featured workstation.
 But no data users can mess around with, and its power requirements
 are really low.
 
 Our university's library had many of them, and I liked them
 because they were completely silent (in difference to the
 boring beige PC boxes they scattered around the library).
 
 You can find specs of an AXEL terminal as exemple here:
 
   http://www.axel.com/usa2/prod_ax3.html?mv2_pos=1
 
 They're calling it thin client, but it's terminal. A box
 where you plug in a screen and a keyboard and connect it
 to a network IS a terminal. :-)
 
 
 
  i'm
  sure my wasted cycles could be put to very good use. 
 
 Today's average users are treating their high-end HPC PCs
 as worse typewriters, so there are enough cycles to use. :-)
 
 
 
  but it 
  would mean haning off a second display/kybd/mouse.  
 
 Which is no problem using network terminals, everything you need
 is a LAN (or maybe even WLAN) connection.
 
 Still, multiple GPUs is possible, but results in a major raise
 of power consumption (because you have to use a modern GPU).
 Multiple input devices is no problem via USB.
 
 
 
  the ARM/A-9 chip looks great.  its a RISC chip that is super
  efficient.  gang four A9's in one package:: low power and at
  least 2GHZ   the only drawback is that the a9 is only
  32bits.  So we cannot try to calcale the 7th root of
  infinity, :-) 
 
 ARM is an efficient platform in terms of energy, and I think
 it will be more and more important in the future, especially
 if you consider the mobile devices market. And when it's good
 at running on battery, it's good on running on AC power. When
 the industry comes up with extra new energy efficient PC
 hardware, we already know that it existed for years. :-)
 
 
 
  i mean, come-on-people, get real.  4G of ram
  ought to be Plenty!!  
 
 Hey, 640 kB should be enough for everyone. :-)
 
 
 
  i'm trying to// or i'm =thinking about= getting rid of my
  pfSense machine.  i used ifp for *yesrs* with no breakins.
  So NOBODY got into my poetry!!
 
 That's what they want to make you believe. :-)
 
 
 
  according to my /var/log/foo.log files, the only crackins
  were from kiddie-scripters.  i squashed them.   
 
 By using means of blocking for known script-kiddie sources, you
 can get rid of a lot of useless traffic - and possible trouble.
 
 
 
 
 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

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

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


Solved - Atheros AR9285 on FreeBSD-8 [WAS: Re: Wireless networking question]

2010-05-01 Thread S Roberts
Hello Chip,

On Fri, 30 Apr 2010 18:03:21 -0700
Chip Camden sterl...@camdensoftware.com wrote:

 On Apr 30 2010 13:39, S Roberts wrote:
  Hello Chip,
Good to hear from you..,
  
  On Thu, 29 Apr 2010 15:52:13 -0700
  Chip Camden sterl...@camdensoftware.com wrote:
  
   On Apr 26 2010 22:00, Carl Chave wrote:
 More info:  I found the following in the output of pciconf
 -vl:


 no...@pci0:2:0:0:       class=0x028000 card=0x10891a3b
 chip=0x002b168c rev=0x01 hdr=0x00 vendor     = 'Atheros
 Communications Inc.' class      = network

From here:
http://www.pcidatabase.com/vendor_details.php?id=174

   
   It looks like someone has already patched 8.0-STABLE:
   
   http://forums.freebsd.org/showthread.php?t=6310highlight=Atheros+AR9285
   
   The link to the .diff file 404's now, though.  How can I get a
   copy?
   
   Or maybe I should just upgrade to STABLE?
   
  
  Well.., personally, I'd ping the patch author to confirm, but Yes,
  bumping to next STABLE would be the preferred option myself..,
  
  Regards,
  
  S Roberts
 
 Just for closure:  upgrading to 8.0-STABLE went smoothly, and the
 wireless device works!
 

Excellent - good to hear you got it all working.

For posterity, I've updated the Subject Line so that others may benefit
from this..,

Regards,

S Roberts

 Thanks for the help.
 

___
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: ziz a dumb question?

2010-05-01 Thread Chris Whitehouse

Polytropon wrote:

On Fri, 30 Apr 2010 20:03:50 -0700, Gary Kline kl...@thought.org wrote:

On Sat, May 01, 2010 at 04:19:13AM +0200, Polytropon wrote:

On Fri, 30 Apr 2010 18:57:08 -0700, Gary Kline kl...@thought.org wrote:

i've never been anything near the extreme-green movement.  i
figured that newer computers/cpus/etc would be more efficient
than what came before. 

Oh, you mean that a modern desktop PC consumes as much power
as my old AS/400e with 10 hard disk drives - as loud a a common
PC, 2 times as big and 4 times as heavy? :-)


Yeah, gee-whiz :)


Incorrect values: 4 times as big and 8 times as heavy - but
the same power consumption. :-)


Seriously? Or joking? How did you measure it? My 2 year old desktop uses 
60-100 watts depending on how hard it's working. 10 disks and lots of 
noise must use a few watts, though size and weight wouldn't have that 
much influence per se :)


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: ziz a dumb question?

2010-05-01 Thread Polytropon
On Sat, 01 May 2010 11:59:52 +0100, Chris Whitehouse cwhi...@onetel.com wrote:
 Seriously? Or joking? How did you measure it?

Well... erm... in fact... I didn't measure anything, I just
utilized the numbers. :-) Modern PCs come with a 700 W power
supply (and more), and the specs for my AS/400e 9406-170 say
654 W with expansion unit (326 W without), measured kVA values
(according to manual) are similar. Weight is 70.5 kg, and
size is two big towers side by side.



 My 2 year old desktop uses 
 60-100 watts depending on how hard it's working.

Sounds like a notebook / laptop class computer.



 10 disks and lots of 
 noise must use a few watts, though size and weight wouldn't have that 
 much influence per se :)

But it's more than 10 years old, too old to seriously
measure something! :-)




-- 
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: ziz a dumb question?

2010-05-01 Thread Erik Trulsson
On Sat, May 01, 2010 at 03:55:43PM +0200, Polytropon wrote:
 On Sat, 01 May 2010 11:59:52 +0100, Chris Whitehouse cwhi...@onetel.com 
 wrote:
  Seriously? Or joking? How did you measure it?
 
 Well... erm... in fact... I didn't measure anything, I just
 utilized the numbers. :-) Modern PCs come with a 700 W power
 supply (and more)

Some modern PCs come with such hefty power supplies.  Most come with
far more modest power supplies.
A typical modern PC (not one equipped with the absolutely fastest CPU
and graphics card, but rather one intended for office use) normally
draw less than 200W under load.

If you take a modern PC optimized for low power consumption (such as a
laptop) it will draw less than 50W under load.  (For really low-power
computers it will be less than 30W.)


, and the specs for my AS/400e 9406-170 say
 654 W with expansion unit (326 W without), measured kVA values
 (according to manual) are similar. Weight is 70.5 kg, and
 size is two big towers side by side.
 
 
 
  My 2 year old desktop uses 
  60-100 watts depending on how hard it's working.
 
 Sounds like a notebook / laptop class computer.
 
 
 
  10 disks and lots of 
  noise must use a few watts, though size and weight wouldn't have that 
  much influence per se :)
 
 But it's more than 10 years old, too old to seriously
 measure something! :-)
 
 
 
 
 -- 
 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

-- 
Insert your favourite quote here.
Erik Trulsson
ertr1...@student.uu.se
___
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: ziz a dumb question?

2010-05-01 Thread David Rawling

On 1/05/2010 11:55 PM, Polytropon wrote:

On Sat, 01 May 2010 11:59:52 +0100, Chris Whitehousecwhi...@onetel.com  wrote:
   

Seriously? Or joking? How did you measure it?
 

Well... erm... in fact... I didn't measure anything, I just
utilized the numbers. :-) Modern PCs come with a 700 W power
supply (and more), and the specs for my AS/400e 9406-170 say
654 W with expansion unit (326 W without), measured kVA values
(according to manual) are similar. Weight is 70.5 kg, and
size is two big towers side by side.
   
You seem to be assuming that a desktop PC draws 100% of its rated 
current all the time, which I'm happy to say is not the case. Unlike the 
AS400, where the PSU is sized specifically for the system, a PC power 
supply is sized for a specific output. Vendors and assemblers are free 
to choose whatever PSU they wish. Also, CPUs and GPUs now lower their 
core voltage and clock speed if the extra performance is not required. 
The 45W (or 65W, 73W, 90W, 125W) quoted by CPU vendors is the amount of 
power they are reasonably expected to draw under heavy load, not the 
idle or average draw.

My 2 year old desktop uses
60-100 watts depending on how hard it's working.
 

Sounds like a notebook / laptop class computer.
   

I can assure you it is not. I can show the following examples:

Core 2 Duo E7400 (about 3GHz), single 7200rpm disk, embedded graphics 
and network - 44W to 60W depending on what's happening at the time. 
Adding a discrete GPU (I don't recall the model, but knowing me it's 
probably a low-end ATI 3000 series) adds 10-30W, again depending on load.


Another Core 2 system, an E5200 I think, with 2 x 7200rpm notebook 
disks, 4GB, embedded graphics and network is also measured at around 45W.


I have an overclocked E6300 (running at 2.66GHz, so a 25% overclock), 
3GB of RAM, 2 x 7200rpm desktop drives, and a GeForce 7600 that pulls 
140W. Note that overclocking generally disables power saving features 
and increases power use (linear with clock, square with voltage).


Servers tend to be worse - I have a matched pair of Acer servers with 
single 3GHz P4 class Xeons, 2GB of RAM, 3 x 7200rpm disks and dual NICs. 
Those systems pull 220W and they're the next ones I'm ditching for 
something that uses less power!


All the numbers above are measurements before the PSU input (using the 
Australian version of the Kill-A-Watt) so include the losses due to 
the PSU itself.


To go back to Gary's question, however, I would suggest that the new 
Core i3 series of processors, along with a new board, will use 
substantially less power than is marked on the PSU, especially if he is 
not continually encoding video, rendering animation or designing the 
next Sydney Harbour Bridge (replace with your own national monument if 
desired). I use this in my HTPC, and it's quite capable of supporting 
two XBox media extenders and encoding 576p video in close enough to real 
time, all simultaneously; while doing so it's probably using less than 
110W of electricity.


Dave.

--
David Rawling
Principal Consultant

PD Consulting And Security
Mob: +61 412 135 513
Email: d...@pdconsec.net

___
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: ziz a dumb question?

2010-05-01 Thread Lowell Gilbert
Polytropon free...@edvax.de writes:

 On Sat, 01 May 2010 11:59:52 +0100, Chris Whitehouse cwhi...@onetel.com 
 wrote:
 Seriously? Or joking? How did you measure it?

 Well... erm... in fact... I didn't measure anything, I just
 utilized the numbers. :-) Modern PCs come with a 700 W power
 supply (and more), and the specs for my AS/400e 9406-170 say
 654 W with expansion unit (326 W without), measured kVA values
 (according to manual) are similar. Weight is 70.5 kg, and
 size is two big towers side by side.

Knowing the capacity of the power supply (in this case, 700 watts)
doesn't tell you any more about how much power it's using right now 
than knowing my car's top speed would tell you anything about how 
long it takes me to drive to work.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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: ziz a dumb question?

2010-05-01 Thread Chad Perrin
On Sun, May 02, 2010 at 03:58:36AM +1000, David Rawling wrote:
 
 Servers tend to be worse - I have a matched pair of Acer servers with 
 single 3GHz P4 class Xeons, 2GB of RAM, 3 x 7200rpm disks and dual NICs. 
 Those systems pull 220W and they're the next ones I'm ditching for 
 something that uses less power!

. . . and they still draw significantly less power than an LCD television
plus DVR, even if you add in the power draw of an LCD monitor.

If you're really concerned about power consumption, make sure that you
look for the bottleneck, just as you would when trying to get better
performance out of your computer or your network.  Even if your computer
is drawing a whole lot of power, you might be better off replacing your
television and DVR unit with a computer than replacing the computer with
another computer that draws less power.

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


pgpKJqK5gsPcO.pgp
Description: PGP signature


Re: ziz a dumb question?

2010-05-01 Thread Gary Kline
On Sat, May 01, 2010 at 05:20:55AM +0200, Polytropon wrote:
 On Fri, 30 Apr 2010 20:03:50 -0700, Gary Kline kl...@thought.org wrote:
  On Sat, May 01, 2010 at 04:19:13AM +0200, Polytropon wrote:
   On Fri, 30 Apr 2010 18:57:08 -0700, Gary Kline kl...@thought.org wrote:
i've never been anything near the extreme-green movement.  i
figured that newer computers/cpus/etc would be more efficient
than what came before. 
   
   Oh, you mean that a modern desktop PC consumes as much power
   as my old AS/400e with 10 hard disk drives - as loud a a common
   PC, 2 times as big and 4 times as heavy? :-)
   
  
  Yeah, gee-whiz :)
 
 Incorrect values: 4 times as big and 8 times as heavy - but
 the same power consumption. :-)
 
 
 
  i've thought about this for at Least ten years why not
  have 4 CRT's or xterminals hanging off one very beefy
  machine?  but do they have anything with graphics and
  keyboard + mouse that can work via one USB port/jack? 
 
 Don't confuse my use of network terminal with classic serial
 terminals. Look, for example, at the devices AXEL builds, or
 already present for many years: Sun Ray terminals. They also
 have audio I/O, card reader, and USB connectors (where the
 keyboard and mouse usually are connected). A regular monitor
 (maybe with speakers) makes it a full-featured workstation.
 But no data users can mess around with, and its power requirements
 are really low.
 
 Our university's library had many of them, and I liked them
 because they were completely silent (in difference to the
 boring beige PC boxes they scattered around the library).
 
 You can find specs of an AXEL terminal as exemple here:
 
   http://www.axel.com/usa2/prod_ax3.html?mv2_pos=1
 
 They're calling it thin client, but it's terminal. A box
 where you plug in a screen and a keyboard and connect it
 to a network IS a terminal. :-)
 

i'll check it out when i'm using evo or kmail.  i'm using my
olden mutt rt now.  with me, one issue is that i just bought
a 20 widescreen that i use [via KVA] for most of my
computers.  o/wise, i like the idea.  sure save on power;
maybe even help save the Earth, altho it may be too late.

 
 
  i'm
  sure my wasted cycles could be put to very good use. 
 
 Today's average users are treating their high-end HPC PCs
 as worse typewriters, so there are enough cycles to use. :-)
 

yeah, you can put that in a do-loop ...   i do more
reading/research theses days, so not even a fancy
typewriter!!

 
 
  but it 
  would mean haning off a second display/kybd/mouse.  
 
 Which is no problem using network terminals, everything you need
 is a LAN (or maybe even WLAN) connection.


i do have a [TINY] LAN.  i use ssh mostly, but kvm too.

 
 Still, multiple GPUs is possible, but results in a major raise
 of power consumption (because you have to use a modern GPU).
 Multiple input devices is no problem via USB.
 
 
 
  the ARM/A-9 chip looks great.  its a RISC chip that is super
  efficient.  gang four A9's in one package:: low power and at
  least 2GHZ   the only drawback is that the a9 is only
  32bits.  So we cannot try to calcale the 7th root of
  infinity, :-) 
 
 ARM is an efficient platform in terms of energy, and I think
 it will be more and more important in the future, especially
 if you consider the mobile devices market. And when it's good
 at running on battery, it's good on running on AC power. When
 the industry comes up with extra new energy efficient PC
 hardware, we already know that it existed for years. :-)
 


at the linux meeting last month someone mentioned that the
ARM chip might be a good place for the linux/free-OS types to
do major work.  the parts for the A9 are already available.
or almost.  it wouldn't take much to build a very effivirnt 
pc-class box.  max it out with 4g of ram, and maybe 64g of
SSD.  linux, bsd, save-the-earth lowpower?   it is coming;
just a matter of who wants to be a zillionaire... .


 
 
  i mean, come-on-people, get real.  4G of ram
  ought to be Plenty!!  
 
 Hey, 640 kB should be enough for everyone. :-)
 

lolololol.  (best laugh this week)


 
 
  i'm trying to// or i'm =thinking about= getting rid of my
  pfSense machine.  i used ifp for *yesrs* with no breakins.
  So NOBODY got into my poetry!!
 
 That's what they want to make you believe. :-)
 
 
 
  according to my /var/log/foo.log files, the only crackins
  were from kiddie-scripters.  i squashed them.   
 
 By using means of blocking for known script-kiddie sources, you
 can get rid of a lot of useless traffic - and possible trouble.
 
 

i ran my script every few hours for 6, 8 months, then finally
had no more hits.  there is a finite number of those
kiddies:)

gary


 
 
 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user 

Re: ziz a dumb question?

2010-05-01 Thread Gary Kline
On Sun, May 02, 2010 at 03:58:36AM +1000, David Rawling wrote:
 On 1/05/2010 11:55 PM, Polytropon wrote:
 On Sat, 01 May 2010 11:59:52 +0100, Chris Whitehousecwhi...@onetel.com  
 wrote:


[[  ]]

 
 Core 2 Duo E7400 (about 3GHz), single 7200rpm disk, embedded graphics 
 and network - 44W to 60W depending on what's happening at the time. 
 Adding a discrete GPU (I don't recall the model, but knowing me it's 
 probably a low-end ATI 3000 series) adds 10-30W, again depending on load.


interesting that a 2-core is about what my ibm thinkpad
3.08ghz is rated at.  it's from '05, used, natch, and i had
ram and a harddrive upgrade.  just my 0.02cents' worth.

 
 Another Core 2 system, an E5200 I think, with 2 x 7200rpm notebook 
 disks, 4GB, embedded graphics and network is also measured at around 45W.
 
 I have an overclocked E6300 (running at 2.66GHz, so a 25% overclock), 
 3GB of RAM, 2 x 7200rpm desktop drives, and a GeForce 7600 that pulls 
 140W. Note that overclocking generally disables power saving features 
 and increases power use (linear with clock, square with voltage).
 
 Servers tend to be worse - I have a matched pair of Acer servers with 
 single 3GHz P4 class Xeons, 2GB of RAM, 3 x 7200rpm disks and dual NICs. 
 Those systems pull 220W and they're the next ones I'm ditching for 
 something that uses less power!


i leave most of my boxen running 24/7, so it adds up.  when
my new 2005 custom-built 2.8ghz box died last fall, i hauled
it out.  i did have to buy the new Dell Core Duo (or
whatever); that was months of head banging and begging
favors.  and because my kvm wires are not plugged in
correctly, i can't get to the server to (1) add X11 + KDE and
(2) do anything graphic with ~kline on that system.  

so waiting for somebody i can ask to come over and figure out
what's going on.  THEN, i'll add my backup 2- or 4-core box
as a server backup and to run pc-bsd on.  

 
 All the numbers above are measurements before the PSU input (using the 
 Australian version of the Kill-A-Watt) so include the losses due to 
 the PSU itself.
 
 To go back to Gary's question, however, I would suggest that the new 
 Core i3 series of processors, along with a new board, will use 
 substantially less power than is marked on the PSU, especially if he is 
 not continually encoding video, rendering animation or designing the 
 next Sydney Harbour Bridge (replace with your own national monument if 
 desired). I use this in my HTPC, and it's quite capable of supporting 
 two XBox media extenders and encoding 576p video in close enough to real 
 time, all simultaneously; while doing so it's probably using less than 
 110W of electricity.
 

:-) more decoding than ecoding since i watch a lot of public
tv streams.  because the house is only around 15meter above
sea level, i'm keep an eye out for how how the sound rises
here in seattle.  i'm thinking of planting some palm trees
and retiring to Nome eventually... .  (do you hear these
idjots who still believe the earth if flat and that global
warming is a commie plot || whatever?  ...i just snap off the
radio!)

thanks for the core i3 series advice, dave. i'll surf around.

gary



:wq

 Dave.
 
 -- 
 David Rawling
 Principal Consultant
 
 PD Consulting And Security
 Mob: +61 412 135 513
 Email: d...@pdconsec.net
 
 ___
 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

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

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


Re: ziz a dumb question?

2010-05-01 Thread Gary Kline
On Sat, May 01, 2010 at 12:32:49PM -0600, Chad Perrin wrote:
 On Sun, May 02, 2010 at 03:58:36AM +1000, David Rawling wrote:
  
  Servers tend to be worse - I have a matched pair of Acer servers with 
  single 3GHz P4 class Xeons, 2GB of RAM, 3 x 7200rpm disks and dual NICs. 
  Those systems pull 220W and they're the next ones I'm ditching for 
  something that uses less power!
 
 . . . and they still draw significantly less power than an LCD television
 plus DVR, even if you add in the power draw of an LCD monitor.
 
 If you're really concerned about power consumption, make sure that you
 look for the bottleneck, just as you would when trying to get better
 performance out of your computer or your network.  Even if your computer
 is drawing a whole lot of power, you might be better off replacing your
 television and DVR unit with a computer than replacing the computer with
 another computer that draws less power.



hmm.  a year++ ago i bought a hidef tv for around $1K.
(remember, guys, your wives are going to want [[order you]]
to buy a $zillion wood enclousure.  whatever it's called.  
20' long stand, cabinet+shelves.  plus this totally useless
But pricey thing on top that runs across the cabinets.  so
yeah, we got rid of our olden 400w tv set and vcr.)

in short, do it because it's thhe right thing, not
necessarily the most cost effective thing.  
 
 -- 
 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]



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

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


Re: ziz a dumb question?

2010-05-01 Thread Chad Perrin
On Sat, May 01, 2010 at 03:33:29PM -0700, Gary Kline wrote:
 
   hmm.  a year++ ago i bought a hidef tv for around $1K.
   (remember, guys, your wives are going to want [[order you]]
   to buy a $zillion wood enclousure.  whatever it's called.  
   20' long stand, cabinet+shelves.  plus this totally useless
   But pricey thing on top that runs across the cabinets.  so
   yeah, we got rid of our olden 400w tv set and vcr.)
 
   in short, do it because it's thhe right thing, not
   necessarily the most cost effective thing.  

Well, of course (and the wooden enclosure is usually an entertainment
center).  I was speaking of the most value per purchase in terms of
power consumption, not dollars spent.  How much you're actually spending
is for you to sort out.

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


pgp0EXmaaDsSY.pgp
Description: PGP signature


Re: Wireless networking question

2010-04-30 Thread S Roberts
Hello Chip,
  Good to hear from you..,

On Thu, 29 Apr 2010 15:52:13 -0700
Chip Camden sterl...@camdensoftware.com wrote:

 On Apr 26 2010 22:00, Carl Chave wrote:
   More info:  I found the following in the output of pciconf -vl:
  
  
   no...@pci0:2:0:0:       class=0x028000 card=0x10891a3b
   chip=0x002b168c rev=0x01 hdr=0x00 vendor     = 'Atheros
   Communications Inc.' class      = network
  
  From here:
  http://www.pcidatabase.com/vendor_details.php?id=174
  
 
 It looks like someone has already patched 8.0-STABLE:
 
 http://forums.freebsd.org/showthread.php?t=6310highlight=Atheros+AR9285
 
 The link to the .diff file 404's now, though.  How can I get a copy?
 
 Or maybe I should just upgrade to STABLE?
 

Well.., personally, I'd ping the patch author to confirm, but Yes,
bumping to next STABLE would be the preferred option myself..,

Regards,

S Roberts

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


Re: Wireless networking question

2010-04-30 Thread Chip Camden
On Apr 30 2010 13:39, S Roberts wrote:
 Hello Chip,
   Good to hear from you..,
 
 On Thu, 29 Apr 2010 15:52:13 -0700
 Chip Camden sterl...@camdensoftware.com wrote:
 
  On Apr 26 2010 22:00, Carl Chave wrote:
More info:  I found the following in the output of pciconf -vl:
   
   
no...@pci0:2:0:0:       class=0x028000 card=0x10891a3b
chip=0x002b168c rev=0x01 hdr=0x00 vendor     = 'Atheros
Communications Inc.' class      = network
   
   From here:
   http://www.pcidatabase.com/vendor_details.php?id=174
   
  
  It looks like someone has already patched 8.0-STABLE:
  
  http://forums.freebsd.org/showthread.php?t=6310highlight=Atheros+AR9285
  
  The link to the .diff file 404's now, though.  How can I get a copy?
  
  Or maybe I should just upgrade to STABLE?
  
 
 Well.., personally, I'd ping the patch author to confirm, but Yes,
 bumping to next STABLE would be the preferred option myself..,
 
 Regards,
 
 S Roberts

Just for closure:  upgrading to 8.0-STABLE went smoothly, and the
wireless device works!

Thanks for the help.

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


ziz a dumb question?

2010-04-30 Thread Gary Kline
i've never been anything near the extreme-green movement.  i
figured that newer computers/cpus/etc would be more efficient
than what came before.  still, getting-real, i checked out the
power stats for the various chipsets.   right now, everybody is
racing for efficiency.  not here yet.


i'm thinking of buying another dell dual-core and using it as a
backup Sever.  DNS, web, mail.  also it would function as my new
tao.  if the freebsd.ORG wants my present dell, 2.4ghz
computer, great.  i'll ship it off on my dime.   what i'm
wondering is:: how good is this PC-BSD at being a server?  i
mean, if it's good at being a toy [to listen to A/V STreams and
other less-nerdy things], it probably can't be that solid on
handling DNS ... at least not as well as FreeBSD.  If anybody
onlist has messed around with PC-BSD for *server* stuff, i'd be
very interested in hearing about it.

tia, y'all

gary



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

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


Re: ziz a dumb question?

2010-04-30 Thread Polytropon
On Fri, 30 Apr 2010 18:57:08 -0700, Gary Kline kl...@thought.org wrote:
 i've never been anything near the extreme-green movement.  i
 figured that newer computers/cpus/etc would be more efficient
 than what came before. 

Oh, you mean that a modern desktop PC consumes as much power
as my old AS/400e with 10 hard disk drives - as loud a a common
PC, 2 times as big and 4 times as heavy? :-)



 right now, everybody is
 racing for efficiency.  not here yet.

I would say racing for efficiency will start if people do
recognize that in many settings, networked terminals are a
much better solution than one full-featured modern PC per
desk. At the moment, industry is just trying to sell energy
efficiency to those who are interested in it, but they get
the same crap as anybody else, but more expensive. :-)



 what i'm
 wondering is:: how good is this PC-BSD at being a server?  i
 mean, if it's good at being a toy [to listen to A/V STreams and
 other less-nerdy things], it probably can't be that solid on
 handling DNS ... at least not as well as FreeBSD. 

Basically, it's still FreeBSD under the hood, so you can
run the basic services. Of course, you will have to install
them in either of the non-supported ways (i. e. PBI packages
usually won't be available for server-centered applications),
via pkg_add or by ports.

Because GUI operations vs. DNS workload won't be an issue
in terms of resource consumption, you probably will be lucky.
Serving web pages and maybe streams, and other server stuff
will be possible, too. PC-BSD performs acceptably even under
load.



 If anybody
 onlist has messed around with PC-BSD for *server* stuff, i'd be
 very interested in hearing about it.

In any case, check ports and firewall. PC-BSD intends to make
the experience to the user as comfortable as possible. This,
sadly, means to abandon well intended means of security. So
there may (!) be something that makes your machine interesting
for attackers - allthough you don't participate in 99.998% of
market share. :-)

I've tested PC-BSD on some occiassions, but I never really
used it for anything that would allow me to call it a server,
so I can't be more specific.




-- 
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: ziz a dumb question?

2010-04-30 Thread Gary Kline
On Sat, May 01, 2010 at 04:19:13AM +0200, Polytropon wrote:
 On Fri, 30 Apr 2010 18:57:08 -0700, Gary Kline kl...@thought.org wrote:
  i've never been anything near the extreme-green movement.  i
  figured that newer computers/cpus/etc would be more efficient
  than what came before. 
 
 Oh, you mean that a modern desktop PC consumes as much power
 as my old AS/400e with 10 hard disk drives - as loud a a common
 PC, 2 times as big and 4 times as heavy? :-)
 

Yeah, gee-whiz :)

 
 
  right now, everybody is
  racing for efficiency.  not here yet.
 
 I would say racing for efficiency will start if people do
 recognize that in many settings, networked terminals are a
 much better solution than one full-featured modern PC per
 desk. At the moment, industry is just trying to sell energy
 efficiency to those who are interested in it, but they get
 the same crap as anybody else, but more expensive. :-)
 


i've thought about this for at Least ten years why not
have 4 CRT's or xterminals hanging off one very beefy
machine?  but do they have anything with graphics and
keyboard + mouse that can work via one USB port/jack?  i'm
sure my wasted cycles could be put to very good use.  but it 
would mean haning off a second display/kybd/mouse.  

the ARM/A-9 chip looks great.  its a RISC chip that is super
efficient.  gang four A9's in one package:: low power and at
least 2GHZ   the only drawback is that the a9 is only
32bits.  So we cannot try to calcale the 7th root of
infinity, :-)  i mean, come-on-people, get real.  4G of ram
ought to be Plenty!!  
 
 
  what i'm
  wondering is:: how good is this PC-BSD at being a server?  i
  mean, if it's good at being a toy [to listen to A/V STreams and
  other less-nerdy things], it probably can't be that solid on
  handling DNS ... at least not as well as FreeBSD. 
 
 Basically, it's still FreeBSD under the hood, so you can
 run the basic services. Of course, you will have to install
 them in either of the non-supported ways (i. e. PBI packages
 usually won't be available for server-centered applications),
 via pkg_add or by ports.
 
 Because GUI operations vs. DNS workload won't be an issue
 in terms of resource consumption, you probably will be lucky.
 Serving web pages and maybe streams, and other server stuff
 will be possible, too. PC-BSD performs acceptably even under
 load.
 


i'm trying to// or i'm =thinking about= getting rid of my
pfSense machine.  i used ifp for *yesrs* with no breakins.
So NOBODY got into my poetry!!


 
 
  If anybody
  onlist has messed around with PC-BSD for *server* stuff, i'd be
  very interested in hearing about it.
 
 In any case, check ports and firewall. PC-BSD intends to make
 the experience to the user as comfortable as possible. This,
 sadly, means to abandon well intended means of security. So
 there may (!) be something that makes your machine interesting
 for attackers - allthough you don't participate in 99.998% of
 market share. :-)


according to my /var/log/foo.log files, the only crackins
were from kiddie-scripters.  i squashed them.   
 
 I've tested PC-BSD on some occiassions, but I never really
 used it for anything that would allow me to call it a server,
 so I can't be more specific.
 
 

thanks for your POV.  any others?  it may be that using
PC-BSD would mean that pfSense would be wise.  i'm just tired
of having to use Linux for fun stuff, and it frequently
breaks, and relying on FreeBSD too.
 
 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

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

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


Re: ziz a dumb question?

2010-04-30 Thread Polytropon
On Fri, 30 Apr 2010 20:03:50 -0700, Gary Kline kl...@thought.org wrote:
 On Sat, May 01, 2010 at 04:19:13AM +0200, Polytropon wrote:
  On Fri, 30 Apr 2010 18:57:08 -0700, Gary Kline kl...@thought.org wrote:
   i've never been anything near the extreme-green movement.  i
   figured that newer computers/cpus/etc would be more efficient
   than what came before. 
  
  Oh, you mean that a modern desktop PC consumes as much power
  as my old AS/400e with 10 hard disk drives - as loud a a common
  PC, 2 times as big and 4 times as heavy? :-)
  
 
   Yeah, gee-whiz :)

Incorrect values: 4 times as big and 8 times as heavy - but
the same power consumption. :-)



   i've thought about this for at Least ten years why not
   have 4 CRT's or xterminals hanging off one very beefy
   machine?  but do they have anything with graphics and
   keyboard + mouse that can work via one USB port/jack? 

Don't confuse my use of network terminal with classic serial
terminals. Look, for example, at the devices AXEL builds, or
already present for many years: Sun Ray terminals. They also
have audio I/O, card reader, and USB connectors (where the
keyboard and mouse usually are connected). A regular monitor
(maybe with speakers) makes it a full-featured workstation.
But no data users can mess around with, and its power requirements
are really low.

Our university's library had many of them, and I liked them
because they were completely silent (in difference to the
boring beige PC boxes they scattered around the library).

You can find specs of an AXEL terminal as exemple here:

http://www.axel.com/usa2/prod_ax3.html?mv2_pos=1

They're calling it thin client, but it's terminal. A box
where you plug in a screen and a keyboard and connect it
to a network IS a terminal. :-)



 i'm
   sure my wasted cycles could be put to very good use. 

Today's average users are treating their high-end HPC PCs
as worse typewriters, so there are enough cycles to use. :-)



 but it 
   would mean haning off a second display/kybd/mouse.  

Which is no problem using network terminals, everything you need
is a LAN (or maybe even WLAN) connection.

Still, multiple GPUs is possible, but results in a major raise
of power consumption (because you have to use a modern GPU).
Multiple input devices is no problem via USB.



   the ARM/A-9 chip looks great.  its a RISC chip that is super
   efficient.  gang four A9's in one package:: low power and at
   least 2GHZ   the only drawback is that the a9 is only
   32bits.  So we cannot try to calcale the 7th root of
   infinity, :-) 

ARM is an efficient platform in terms of energy, and I think
it will be more and more important in the future, especially
if you consider the mobile devices market. And when it's good
at running on battery, it's good on running on AC power. When
the industry comes up with extra new energy efficient PC
hardware, we already know that it existed for years. :-)



 i mean, come-on-people, get real.  4G of ram
   ought to be Plenty!!  

Hey, 640 kB should be enough for everyone. :-)



   i'm trying to// or i'm =thinking about= getting rid of my
   pfSense machine.  i used ifp for *yesrs* with no breakins.
   So NOBODY got into my poetry!!

That's what they want to make you believe. :-)



   according to my /var/log/foo.log files, the only crackins
   were from kiddie-scripters.  i squashed them.   

By using means of blocking for known script-kiddie sources, you
can get rid of a lot of useless traffic - and possible trouble.





-- 
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: Wireless networking question

2010-04-29 Thread Chip Camden
On Apr 26 2010 22:00, Carl Chave wrote:
  More info:  I found the following in the output of pciconf -vl:
 
 
  no...@pci0:2:0:0:       class=0x028000 card=0x10891a3b chip=0x002b168c 
  rev=0x01 hdr=0x00
     vendor     = 'Atheros Communications Inc.'
     class      = network
 
 From here:
 http://www.pcidatabase.com/vendor_details.php?id=174
 

It looks like someone has already patched 8.0-STABLE:

http://forums.freebsd.org/showthread.php?t=6310highlight=Atheros+AR9285

The link to the .diff file 404's now, though.  How can I get a copy?

Or maybe I should just upgrade to STABLE?

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


Re: Wireless networking question

2010-04-27 Thread Chip Camden
On Apr 26 2010 22:00, Carl Chave wrote:
  More info:  I found the following in the output of pciconf -vl:
 
 
  no...@pci0:2:0:0:       class=0x028000 card=0x10891a3b chip=0x002b168c 
  rev=0x01 hdr=0x00
     vendor     = 'Atheros Communications Inc.'
     class      = network
 
 From here:
 http://www.pcidatabase.com/vendor_details.php?id=174
 
 0x002b is Atheros AR9285 Wireless LAN 802.11 a/b/g/n Controller
 ___

Thanks!  That's a great resource.

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


Re: Wireless networking question

2010-04-26 Thread Chip Camden
On Apr 25 2010 22:15, Kevin Kinsey wrote:
 
 Let me preface my commentary with I'm way out of my league, so #include
 disclaimer.h and all that ...
 
 For starters, in re: above, didn't someone suggest libpciaccess as the
 source for scanpci?  I can't tell if you are misunderstanding what S
 Roberts suggested, or I am misunderstanding what you are responding.
 
 I'm pretty sure there's some misunderstanding here, though.

Thanks for your response, Kevin.  I did try rebuilding libpciaccess, to
no avail.  I also searched elsewhere.
 
 I thought we had pciconf output that stated it was an Atheros chipset?
 In that case, it would be the Azurewave, right?  I'd suspect it might
 be supported under ath(4), but you'd wanna read the manpage and possibly
 even the source for any kind of confirmation on that; the manpage does
 specifically say that adapters based on the AR5005VL aren't supported.
 However, the manpage might be slightly out-of-date, also.

Yes, pciconf says Atheros.  I guess that does rule out Intel, and I see
from a little searching that at least some Azurewave devices use an
Atheros chipset.  I, too, am a little out of my depth in this region,
as is probably obvious from my posts.
 
 The other thing I recall seeing is that a new variant of a supported
 chipset comes out, and the driver code doesn't recognize it even though
 it might work well.  Used to be something like a VENDOR_ID string in
 the source files; I don't know if it's still the case, but if it was,
 some people have been able to hack their own device support in rare
 cases simply by adding the new info to the driver file and recompiling
 it, but you'd want someone with a lot more $OS_foo than I have to help
 out with that (or tell you if it's even possible).  This is open-source
 stuff; you might even get sam@ 's attention and get help from the writer
 himself if you're wearing your lucky sneakers.
 
Yes, I've seen that done with video drivers.  Perhaps I'll give it a go
with the ath or uath driver, neither of which work for me out of the box
(so to speak).

Thanks again.

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


Re: Wireless networking question

2010-04-26 Thread Carl Chave
 More info:  I found the following in the output of pciconf -vl:


 no...@pci0:2:0:0:       class=0x028000 card=0x10891a3b chip=0x002b168c 
 rev=0x01 hdr=0x00
    vendor     = 'Atheros Communications Inc.'
    class      = network

From here:
http://www.pcidatabase.com/vendor_details.php?id=174

0x002b is Atheros AR9285 Wireless LAN 802.11 a/b/g/n Controller
___
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: Question. Multi Boot

2010-04-25 Thread Da Rock
On Sun, 2010-04-18 at 11:10 -0500, Jorge Biquez wrote:
 Hello all.
 I hope this question does not sound so stupid. I have read archives 
 and do gogled searches but would like , if possible, to hear comments 
 based on experience.
 
 I have a machine, pentium D 2.4mhz 2gb RAM, 160DD HD XP Pro. As I 
 mentuioned in other post I installed FreeBSD 7.3 under a virtual 
 machine using vmware. It works fine but seems it is too much for the 
 machine since when I am running it the machine is very slow. I have 
 that FB installation running without graphical interface since that's 
 why I need then.
 
 Now I would like to have a graphical interface running to learn to 
 use eclipse and continue with my PHP/Mysql development learning. I 
 know that if I continue under VMware the windows machine will be even 
 more slow so I decided that I would have this machine running with a 
 multi boot schema and choose when to boot under FreeBSd, Windows and 
 later with Linux (looking for a job and in some companies asked me to 
 have the basics of any distribution). The most important is that I 
 need to be able to continue having that actual windows partition 
 without loosing anything or changing anything.
 
 What do you think, based on experince, is the safest way to accomplish this?

Not quite the exact answer you may be looking for, but why don't you
flip the tables a bit and run Window$ as the virtual machine on the
FreeBSD as a host?

From my experience it actually works much faster, and Window$ doesn't
see any penalties at all. I haven't done it in quite some time, but that
did work a treat at the time- no reason it should have changed.

___
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: Wireless networking question

2010-04-25 Thread Chip Camden
On Apr 24 2010 23:51, S Roberts wrote:
 
 I believe its been bundled into the  libpciaccess port:
 http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libpciaccess/
 

Doesn't seem to be there, and google isn't being helpful.  A search of
freshports.org didn't turn up anything either.  Searching freebsd.org
only shows our conversation.

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


Re: Wireless networking question

2010-04-25 Thread Kevin Kinsey

Chip Camden wrote:

On Apr 24 2010 23:51, S Roberts wrote:

I believe its been bundled into the  libpciaccess port:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libpciaccess/



Doesn't seem to be there, and google isn't being helpful.  A search of
freshports.org didn't turn up anything either.  Searching freebsd.org
only shows our conversation.



Likely your ports tree is rather out-of-date?  The port directory
is at /usr/ports/devel/libpciacess, and the import date on the Makefile
is May 2008.

Or, perhaps ports aren't installed?  Try:

$pkg_add -r \ 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/Packages-8-stable/devel/libpciaccess-0.10.6_1.tbz


Kevin Kinsey
___
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: Wireless networking question

2010-04-25 Thread S Roberts
Hello Chip,

On Sun, 25 Apr 2010 12:10:40 -0700
Chip Camden sterl...@camdensoftware.com wrote:

 On Apr 24 2010 23:51, S Roberts wrote:
  
  I believe its been bundled into the  libpciaccess port:
  http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libpciaccess/
  
 
 Doesn't seem to be there, and google isn't being helpful.  A search of
 freshports.org didn't turn up anything either.  Searching freebsd.org
 only shows our conversation.
 

Hmmm.., you sure your ports system is installed / up-to-date there?

Do you have any of the docs that would have shipped with the notebook?
If not, I searched ASUS, and found a link to the English version manual
here:
http://support.asus.com/download/download.aspx?SLanguage=en-usproduct=3model=K72Ftype=mapf_type=19

I've not downloaded it, so please see if there's anything that can
assist. There **are** other resources at the ASUS site - you just have
to use the menu on the right to select your particular model and review
the list of resources that gets returned..,

Hope this helps..,

Regards,

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


Re: Wireless networking question

2010-04-25 Thread Chip Camden
On Apr 25 2010 21:26, S Roberts wrote:
 
 Hmmm.., you sure your ports system is installed / up-to-date there?
 
 Do you have any of the docs that would have shipped with the notebook?
 If not, I searched ASUS, and found a link to the English version manual
 here:
 http://support.asus.com/download/download.aspx?SLanguage=en-usproduct=3model=K72Ftype=mapf_type=19
 
 I've not downloaded it, so please see if there's anything that can
 assist. There **are** other resources at the ASUS site - you just have
 to use the menu on the right to select your particular model and review
 the list of resources that gets returned..,
 
 Hope this helps..,
 
 Regards,
 
 S Roberts

Thanks for the attempt to help, but ports are up-to-date.  I'm on
8.0-RELEASE amd64 -- maybe scanpci isn't available on amd64?

The download for the manual is exactly the same as the paper manual that
came with the notebook.  It gives very little technical information.  On
the web site, all I could find is that it's 802.11n capable, which I
already knew from the sales pamphlet.

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


Re: Wireless networking question

2010-04-25 Thread Chip Camden
On Apr 25 2010 16:18, Chip Camden wrote:
 On Apr 25 2010 21:26, S Roberts wrote:
  
  Hmmm.., you sure your ports system is installed / up-to-date there?
  
  Do you have any of the docs that would have shipped with the notebook?
  If not, I searched ASUS, and found a link to the English version manual
  here:
  http://support.asus.com/download/download.aspx?SLanguage=en-usproduct=3model=K72Ftype=mapf_type=19
  
  I've not downloaded it, so please see if there's anything that can
  assist. There **are** other resources at the ASUS site - you just have
  to use the menu on the right to select your particular model and review
  the list of resources that gets returned..,
  
  Hope this helps..,
  
  Regards,
  
  S Roberts
 
 Thanks for the attempt to help, but ports are up-to-date.  I'm on
 8.0-RELEASE amd64 -- maybe scanpci isn't available on amd64?
 
 The download for the manual is exactly the same as the paper manual that
 came with the notebook.  It gives very little technical information.  On
 the web site, all I could find is that it's 802.11n capable, which I
 already knew from the sales pamphlet.
 

OK -- searching the ASUS site for Windows 7 64bit docs (that's what came
on it), I find three possibilities for the wireless device:

1. Intel 1000
2. Intel 6200
3. Azurewave

Looks like both of the first two are addressed by driver iwn on OpenBSD,
but not on FreeBSD.  The third one I don't see anywhere.  Looking here:

http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers#FreeBSD

Looks like that page was last updated for FreeBSD on April 25.
In any case, I tried iwn, and that doesn't work.

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


Re: Wireless networking question

2010-04-25 Thread Kevin Kinsey

Chip Camden wrote:

On Apr 25 2010 16:18, Chip Camden wrote:

On Apr 25 2010 21:26, S Roberts wrote:

Hmmm.., you sure your ports system is installed / up-to-date there?

Do you have any of the docs that would have shipped with the notebook?
If not, I searched ASUS, and found a link to the English version manual
here:
http://support.asus.com/download/download.aspx?SLanguage=en-usproduct=3model=K72Ftype=mapf_type=19

I've not downloaded it, so please see if there's anything that can
assist. There **are** other resources at the ASUS site - you just have
to use the menu on the right to select your particular model and review
the list of resources that gets returned..,


Thanks for the attempt to help, but ports are up-to-date.  I'm on
8.0-RELEASE amd64 -- maybe scanpci isn't available on amd64?


Let me preface my commentary with I'm way out of my league, so #include
disclaimer.h and all that ...

For starters, in re: above, didn't someone suggest libpciaccess as the
source for scanpci?  I can't tell if you are misunderstanding what S
Roberts suggested, or I am misunderstanding what you are responding.

I'm pretty sure there's some misunderstanding here, though.


The download for the manual is exactly the same as the paper manual that
came with the notebook.  It gives very little technical information.  On
the web site, all I could find is that it's 802.11n capable, which I
already knew from the sales pamphlet.


OK -- searching the ASUS site for Windows 7 64bit docs (that's what came
on it), I find three possibilities for the wireless device:

1. Intel 1000
2. Intel 6200
3. Azurewave

Looks like both of the first two are addressed by driver iwn on OpenBSD,
but not on FreeBSD.  The third one I don't see anywhere.  Looking here:

http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers#FreeBSD

Looks like that page was last updated for FreeBSD on April 25.
In any case, I tried iwn, and that doesn't work.


I thought we had pciconf output that stated it was an Atheros chipset?
In that case, it would be the Azurewave, right?  I'd suspect it might
be supported under ath(4), but you'd wanna read the manpage and possibly
even the source for any kind of confirmation on that; the manpage does
specifically say that adapters based on the AR5005VL aren't supported.
However, the manpage might be slightly out-of-date, also.

The other thing I recall seeing is that a new variant of a supported
chipset comes out, and the driver code doesn't recognize it even though
it might work well.  Used to be something like a VENDOR_ID string in
the source files; I don't know if it's still the case, but if it was,
some people have been able to hack their own device support in rare
cases simply by adding the new info to the driver file and recompiling
it, but you'd want someone with a lot more $OS_foo than I have to help
out with that (or tell you if it's even possible).  This is open-source
stuff; you might even get sam@ 's attention and get help from the writer
himself if you're wearing your lucky sneakers.

Kevin Kinsey
___
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


Wireless networking question

2010-04-24 Thread Chip Camden
A new notebook (ASUS K72F) has integrated wireles networking.  The technical
specifications are sadly lacking, so I don't know what chipset.  The
wired ethernet appears to use uath, but that's not working as a wlandev.
Since most everything else is Intel, I figured it could be an Intel
chipset, and since it supports 802.11n, I think its probably in the
6000 series.  I tried all the Intel drivers that are listed here:

http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers#FreeBSD

And none of them appeared to work.  Looking a little further down, it
seems that the Intel 6000 is supported by iwn on OpenBSD, but not on
FreeBSD.  But I could be barking up the entirely wrong tree.

Can anyone shed some light here?  Is there any way to query the hardware,
short of opening the box (which will void the warranty)?

TIA 

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


Re: Wireless networking question

2010-04-24 Thread S Roberts
Hello Chip,
 
On Sat, 24 Apr 2010 13:39:47 -0700
Chip Camden sterl...@camdensoftware.com wrote:

 A new notebook (ASUS K72F) has integrated wireles networking.  The
 technical specifications are sadly lacking, so I don't know what
 chipset.  The wired ethernet appears to use uath, but that's not
 working as a wlandev. Since most everything else is Intel, I figured
 it could be an Intel chipset, and since it supports 802.11n, I think
 its probably in the 6000 series.  I tried all the Intel drivers that
 are listed here:
 
 http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers#FreeBSD
 
snipped
 
 Can anyone shed some light here?  Is there any way to query the
 hardware, short of opening the box (which will void the warranty)?
 

Easiest option would be to run a livecd of another more populous *nix
flavour and see what it makes of the hardware.

Needless to say, if you're so bold, you **can** always load windows
and let window tell you what it is ;-)

Regards,

S Roberts

 TIA 
 

___
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: Wireless networking question

2010-04-24 Thread Chip Camden
On Apr 24 2010 13:39, Chip Camden wrote:
 A new notebook (ASUS K72F) has integrated wireles networking.  The technical
 specifications are sadly lacking, so I don't know what chipset.  The
 wired ethernet appears to use uath, but that's not working as a wlandev.
 Since most everything else is Intel, I figured it could be an Intel
 chipset, and since it supports 802.11n, I think its probably in the
 6000 series.  I tried all the Intel drivers that are listed here:
 
 http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers#FreeBSD
 
 And none of them appeared to work.  Looking a little further down, it
 seems that the Intel 6000 is supported by iwn on OpenBSD, but not on
 FreeBSD.  But I could be barking up the entirely wrong tree.
 
 Can anyone shed some light here?  Is there any way to query the hardware,
 short of opening the box (which will void the warranty)?
 
 TIA 
 
 -- 
 Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.com
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

More info:  I found the following in the output of pciconf -vl:


no...@pci0:2:0:0:   class=0x028000 card=0x10891a3b chip=0x002b168c rev=0x01 
hdr=0x00
vendor = 'Atheros Communications Inc.'
class  = network
a...@pci0:3:0:0:class=0x02 card=0x18201043 chip=0x10631969 rev=0xc0 
hdr=0x00
vendor = 'Attansic (Now owned by Atheros)'
class  = network
subclass   = ethernet


Looks like the first entry show here is my wireless (guessing), because
alc0 is my wired.  Any ideas from that what driver I should be using?
I've tried 'ifconfig wlan0 create wlandev ath0', as well as ath1..9 and
uath0..9, and I always get:

ifconfig: SIOCIFCREATE2: Device not configured

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


Re: Wireless networking question

2010-04-24 Thread Chip Camden
On Apr 24 2010 21:55, S Roberts wrote:
snip
 Easiest option would be to run a livecd of another more populous *nix
 flavour and see what it makes of the hardware.
 
 Needless to say, if you're so bold, you **can** always load windows
 and let window tell you what it is ;-)
 
 Regards,
 
 S Roberts
 

The really sad thing is that notebook this came with Windows on it.  Next time,
I'll make sure I write down everything in Device Manager *before* I wipe
Windows off the hard drive.

Thanks for the response.

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


Re: Wireless networking question

2010-04-24 Thread S Roberts
Hello Chip,

On Sat, 24 Apr 2010 14:00:29 -0700
Chip Camden sterl...@camdensoftware.com wrote:

 On Apr 24 2010 13:39, Chip Camden wrote:
  A new notebook (ASUS K72F) has integrated wireles networking.  The
  technical specifications are sadly lacking, so I don't know what
  chipset.  The wired ethernet appears to use uath, but that's not
  working as a wlandev. Since most everything else is Intel, I
  figured it could be an Intel chipset, and since it supports
  802.11n, I think its probably in the 6000 series.  I tried all the
  Intel drivers that are listed here:
  
  http://en.wikipedia.org/wiki/Comparison_of_open_source_wireless_drivers#FreeBSD
  
  And none of them appeared to work.  Looking a little further down,
  it seems that the Intel 6000 is supported by iwn on OpenBSD, but
  not on FreeBSD.  But I could be barking up the entirely wrong tree.
  
  Can anyone shed some light here?  Is there any way to query the
  hardware, short of opening the box (which will void the warranty)?
  
  TIA 
snipped
 
 More info:  I found the following in the output of pciconf -vl:
 
 
 no...@pci0:2:0:0: class=0x028000 card=0x10891a3b
 chip=0x002b168c rev=0x01 hdr=0x00 vendor = 'Atheros
 Communications Inc.' class  = network
 a...@pci0:3:0:0:  class=0x02 card=0x18201043
 chip=0x10631969 rev=0xc0 hdr=0x00 vendor = 'Attansic (Now owned
 by Atheros)' class  = network
 subclass   = ethernet
 

Not a whole lot there..,

Does scanpci -v tell you any more details about the hardware?

Regards,

S Roberts

 
 Looks like the first entry show here is my wireless (guessing),
 because alc0 is my wired.  Any ideas from that what driver I should
 be using? I've tried 'ifconfig wlan0 create wlandev ath0', as well as
 ath1..9 and uath0..9, and I always get:
 
 ifconfig: SIOCIFCREATE2: Device not configured
 

___
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: Wireless networking question

2010-04-24 Thread Chip Camden
On Apr 24 2010 22:07, S Roberts wrote:
 
 Not a whole lot there..,
 
 Does scanpci -v tell you any more details about the hardware?
 
 Regards,
 
 S Roberts
 

I don't seem to have scanpci on my system, nor do I see it in the ports
tree -- where would I find it?

Thanks

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


Re: Wireless networking question

2010-04-24 Thread S Roberts
Hello Chip,

On Sat, 24 Apr 2010 15:00:34 -0700
Chip Camden sterl...@camdensoftware.com wrote:

 On Apr 24 2010 22:07, S Roberts wrote:
  
  Not a whole lot there..,
  
  Does scanpci -v tell you any more details about the hardware?
  
  Regards,
  
  S Roberts
  
 
 I don't seem to have scanpci on my system, nor do I see it in the
 ports tree -- where would I find it?
 

I believe its been bundled into the  libpciaccess port:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libpciaccess/

Hope that helps..,

Regards,

S Roberts

 Thanks
 

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


pf icmp6 question

2010-04-23 Thread Baginski Darren
Hi!

Could please someone explain me the difference between

pass quick inet6 proto icmp6 all keep state   - IPv6 works only within 
switch collision domain 

AND

pass quick proto icmp6 all keep state  - IPv6 works globaly for whole 
internet


IPv6 is staticaly set everywhere, none of routers or servers have stateless IPs.

Thank you!


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


question about FreeBSD installing

2010-04-21 Thread 王跃辉
hi
I have a problem when I try to install FreeBSD as client OS on a Linux
OS. following the instruction I find that I can't open the website of
www.fsmware.com to finish some download work. it seems that the dns server
don't support the address in China Mainland. do you have any way to solve
the problem?

-- 
-thanks
-yuehui
___
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: question about FreeBSD installing

2010-04-21 Thread Michael Powell
王跃辉 wrote:

 hi
 I have a problem when I try to install FreeBSD as client OS on a Linux
 OS. 

Sorry, but this does not make any sense to me. How are you trying to install 
FreeBSD on Linux? FreeBSD is an operating system, not an application.

 following the instruction I find that I can't open the website of
 www.fsmware.com to finish some download work. 

If you want to learn how to install FreeBSD you should start with The 
Handbook:

English: 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html

another alternative:
http://www.freebsd.org/doc/zh_CN.GB2312/books/handbook/index.html

You may notice there is no mention of any downloading from www.fsmware.com. 
Perhaps the instructions you are trying to follow are incorrect? The 
Handbook might be better as it is the official documentation for FreeBSD.

 it seems that the dns server
 don't support the address in China Mainland. do you have any way to solve
 the problem?
 

Nope. It is a problem with government politics in China and not FreeBSD 
related.

-Mike


___
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: question about FreeBSD installing

2010-04-21 Thread Don Brearley
Hello!

I presume you are talking about running FreeBSD as a guest OS in Xen or
the like.

Let me point you to this URL, it contains a lot of useful information on
what you're seeking.
The fsmware.com website seems down, and has been for awhile.  The
documentation is
just out of date.

http://wiki.freebsd.org/AdrianChadd

Take Care!

- Don



 王跃辉 wyh1...@gmail.com 04/21/10 10:21 AM 
hi
I have a problem when I try to install FreeBSD as client OS on a
Linux
OS. following the instruction I find that I can't open the website of
www.fsmware.com to finish some download work. it seems that the dns
server
don't support the address in China Mainland. do you have any way to
solve
the problem?

-- 
-thanks
-yuehui
___
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: question about FreeBSD installing

2010-04-21 Thread Don Brearley
 王跃辉 wyh1...@gmail.com 04/21/10 10:21 AM 
hi
   I have a problem when I try to install FreeBSD as client OS on a
Linux
OS. following the instruction I find that I can't open the website of
www.fsmware.com to finish some download work. it seems that the dns
server
don't support the address in China Mainland. do you have any way to
solve
the problem?

-- 
-thanks
-yuehui
___
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


Sorry for my previous top-post, was a mistake!

I forgot to mention, check out this website as well, it has instructions
for running 8.0
in paravirtualization mode in Xen. 

http://www.ita.com.ua/eng/articles.htm?id=34

- Don
___
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: question about FreeBSD installing

2010-04-21 Thread Ross Cameron
On Wed, Apr 21, 2010 at 5:35 PM, Michael Powell nightre...@hotmail.com wrote:
 王跃辉 wrote:

 hi
     I have a problem when I try to install FreeBSD as client OS on a Linux
 OS.

 Sorry, but this does not make any sense to me. How are you trying to install
 FreeBSD on Linux? FreeBSD is an operating system, not an application.

It's quite simple, he wants to host a virtualized FreeBSD ontop of a
Linux server OS.

 following the instruction I find that I can't open the website of
 www.fsmware.com to finish some download work.
 it seems that the dns server
 don't support the address in China Mainland. do you have any way to solve
 the problem?

Uhm no idea where the www.fsmware.com domain comes into anything,...
sorry cant help here.

 Nope. It is a problem with government politics in China and not FreeBSD
 related.

Actually nothing to do with Chinese politics, the http server attached
to the hostname www.fsmware.com is genuinely down.
___
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: question about FreeBSD installing

2010-04-21 Thread Bruce Cran
On Wednesday 21 April 2010 16:50:20 Ross Cameron wrote:
 On Wed, Apr 21, 2010 at 5:35 PM, Michael Powell nightre...@hotmail.com 
wrote:
  王跃辉 wrote:
  hi
  I have a problem when I try to install FreeBSD as client OS on a
  Linux OS.
  
  Sorry, but this does not make any sense to me. How are you trying to
  install FreeBSD on Linux? FreeBSD is an operating system, not an
  application.
 
 It's quite simple, he wants to host a virtualized FreeBSD ontop of a
 Linux server OS.
 
  following the instruction I find that I can't open the website of
  www.fsmware.com to finish some download work.
  it seems that the dns server
  don't support the address in China Mainland. do you have any way to
  solve the problem?
 
 Uhm no idea where the www.fsmware.com domain comes into anything,...
 sorry cant help here.

It's mentioned in several places, including the Handbook:

http://www.freebsd.org/doc/en/books/handbook/virtualization-guest.html

Download the FreeBSD domU kernel for Xen 3.0 and disk image from 
http://www.fsmware.com/;

I'd be happy to host the files that used to be on that site if it would help - 
it would be good to get the broken links fixed because I came across the same 
problem and ended up having to create a Xen image manually.

-- 
Bruce Cran
___
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: Question. Multi Boot

2010-04-20 Thread Dánielisz László
Actually you can find now some cheap HDDs so the safest way is to install 
BSD/Linux on a second one, but if you can't buy another HDD then backup all the 
important date and install BSD with bsd loader on your HDD, after making some 
free, unformatted space on it.




From: Kruppa, Peter Ulrich pukru...@googlemail.com
To: Jorge Biquez jbiq...@icsmx.com
Cc: freebsd-questions@freebsd.org
Sent: Sun, April 18, 2010 6:50:04 PM
Subject: Re: Question. Multi Boot

Am 18.04.2010 18:10, schrieb Jorge Biquez:
 Hello all.
 I hope this question does not sound so stupid. I have read archives and do 
 gogled searches but would like , if possible, to hear comments based on 
 experience.
 
 I have a machine, pentium D 2.4mhz 2gb RAM, 160DD HD XP Pro. As I mentuioned 
 in other post I installed FreeBSD 7.3 under a virtual machine using vmware. 
 It works fine but seems it is too much for the machine since when I am 
 running it the machine is very slow. I have that FB installation running 
 without graphical interface since that's why I need then.
 
 Now I would like to have a graphical interface running to learn to use 
 eclipse and continue with my PHP/Mysql development learning. I know that if I 
 continue under VMware the windows machine will be even more slow so I decided 
 that I would have this machine running with a multi boot schema and choose 
 when to boot under FreeBSd, Windows and later with Linux (looking for a job 
 and in some companies asked me to have the basics of any distribution). The 
 most important is that I need to be able to continue having that actual 
 windows partition without loosing anything or changing anything.
 
 What do you think, based on experince, is the safest way to accomplish this?
Since Windows isn't very cooperative with other operating systems, leave it 
where it is, buy a second hard disk and install FreeBSD (and Linux) on it. The 
FreeBSD bootmanager will be able to boot Windows but Windows will not boot any 
FreeBSD or Linux.

Good Luck

Uli.


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

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



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


Question. Multi Boot

2010-04-18 Thread Jorge Biquez

Hello all.
I hope this question does not sound so stupid. I have read archives 
and do gogled searches but would like , if possible, to hear comments 
based on experience.


I have a machine, pentium D 2.4mhz 2gb RAM, 160DD HD XP Pro. As I 
mentuioned in other post I installed FreeBSD 7.3 under a virtual 
machine using vmware. It works fine but seems it is too much for the 
machine since when I am running it the machine is very slow. I have 
that FB installation running without graphical interface since that's 
why I need then.


Now I would like to have a graphical interface running to learn to 
use eclipse and continue with my PHP/Mysql development learning. I 
know that if I continue under VMware the windows machine will be even 
more slow so I decided that I would have this machine running with a 
multi boot schema and choose when to boot under FreeBSd, Windows and 
later with Linux (looking for a job and in some companies asked me to 
have the basics of any distribution). The most important is that I 
need to be able to continue having that actual windows partition 
without loosing anything or changing anything.


What do you think, based on experince, is the safest way to accomplish this?

Thanks in advance

Jorge Biquez

___
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


Question. Multi Boot

2010-04-18 Thread Jorge Biquez

Hello all.
I hope this question does not sound so stupid. I have read archives 
and do gogled searches but would like , if possible, to hear comments 
based on experience.


I have a machine, pentium D 2.4mhz 2gb RAM, 160DD HD XP Pro. As I 
mentuioned in other post I installed FreeBSD 7.3 under a virtual 
machine using vmware. It works fine but seems it is too much for the 
machine since when I am running it the machine is very slow. I have 
that FB installation running without graphical interface since that's 
why I need then.


Now I would like to have a graphical interface running to learn to 
use eclipse and continue with my PHP/Mysql development learning. I 
know that if I continue under VMware the windows machine will be even 
more slow so I decided that I would have this machine running with a 
multi boot schema and choose when to boot under FreeBSd, Windows and 
later with Linux (looking for a job and in some companies asked me to 
have the basics of any distribution). The most important is that I 
need to be able to continue having that actual windows partition 
without loosing anything or changing anything.


What do you think, based on experince, is the safest way to accomplish this?

Thanks in advance

Jorge Biquez

___
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: Question. Multi Boot

2010-04-18 Thread Kruppa, Peter Ulrich

Am 18.04.2010 18:10, schrieb Jorge Biquez:

Hello all.
I hope this question does not sound so stupid. I have read archives 
and do gogled searches but would like , if possible, to hear comments 
based on experience.


I have a machine, pentium D 2.4mhz 2gb RAM, 160DD HD XP Pro. As I 
mentuioned in other post I installed FreeBSD 7.3 under a virtual 
machine using vmware. It works fine but seems it is too much for the 
machine since when I am running it the machine is very slow. I have 
that FB installation running without graphical interface since that's 
why I need then.


Now I would like to have a graphical interface running to learn to use 
eclipse and continue with my PHP/Mysql development learning. I know 
that if I continue under VMware the windows machine will be even more 
slow so I decided that I would have this machine running with a multi 
boot schema and choose when to boot under FreeBSd, Windows and later 
with Linux (looking for a job and in some companies asked me to have 
the basics of any distribution). The most important is that I need to 
be able to continue having that actual windows partition without 
loosing anything or changing anything.


What do you think, based on experince, is the safest way to accomplish 
this?
Since Windows isn't very cooperative with other operating systems, leave 
it where it is, buy a second hard disk and install FreeBSD (and Linux) 
on it. The FreeBSD bootmanager will be able to boot Windows but Windows 
will not boot any FreeBSD or Linux.


Good Luck

Uli.



Thanks in advance

Jorge Biquez

___
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: Question. Multi Boot

2010-04-18 Thread Warren Block

On Sun, 18 Apr 2010, Jorge Biquez wrote:


Hello all.
I hope this question does not sound so stupid. I have read archives and do 
gogled searches but would like , if possible, to hear comments based on 
experience.


I have a machine, pentium D 2.4mhz 2gb RAM, 160DD HD XP Pro. As I mentuioned 
in other post I installed FreeBSD 7.3 under a virtual machine using vmware. 
It works fine but seems it is too much for the machine since when I am 
running it the machine is very slow. I have that FB installation running 
without graphical interface since that's why I need then.


I've tried VMWare player with FreeBSD 7, albeit on a faster machine. 
Text mode was fine, never tried xorg.  A P4 should be adequate, but 
there may be other things going on in the background like Windows 
antivirus scanning.


VirtualBox seems to work very well on Windows, and it's certainly worth 
a try before reorganizing your disk for multibooting.


Now I would like to have a graphical interface running to learn to use 
eclipse and continue with my PHP/Mysql development learning. I know that if I 
continue under VMware the windows machine will be even more slow so I decided 
that I would have this machine running with a multi boot schema and choose 
when to boot under FreeBSd, Windows and later with Linux (looking for a job 
and in some companies asked me to have the basics of any distribution). The 
most important is that I need to be able to continue having that actual 
windows partition without loosing anything or changing anything.


What do you think, based on experince, is the safest way to accomplish this?


Safest would be still be the VM; little chance of damaging the host disk 
data when the VM has no direct access to it.


For multiboot: back up entire Windows hard drive including a separate dd 
copy of the MBR, resize Windows partition to make room using partition 
software of your choice, test to make sure Windows still works.  Back up 
again.


Install FreeBSD, creating new partition/slice, leaving room for a Linux 
partition, and installing the FreeBSD boot manager.


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


Re: Question. Multi Boot

2010-04-18 Thread Jon Radel


On 4/18/10 12:50 PM, Kruppa, Peter Ulrich wrote:
Since Windows isn't very cooperative with other operating systems, 
leave it where it is, buy a second hard disk and install FreeBSD (and 
Linux) on it. The FreeBSD bootmanager will be able to boot Windows but 
Windows will not boot any FreeBSD or Linux.
I would agree that is the safest way to proceed, although the 
repartitioning of the hard disk as outlined by somebody else would 
certainly work.  However, even here I would urge you to have a complete 
backup that you have verified is usable before you start.  Makes that 
sinking feeling in your stomach when you realize you've just partitioned 
the wrong drive much less ugly.  :-)


--Jon Radel
___
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: Question. Multi Boot

2010-04-18 Thread Jorge Biquez

At 05:04 p.m. 18/04/2010, you wrote:


On 4/18/10 12:50 PM, Kruppa, Peter Ulrich wrote:
Since Windows isn't very cooperative with other operating systems, 
leave it where it is, buy a second hard disk and install FreeBSD 
(and Linux) on it. The FreeBSD bootmanager will be able to boot 
Windows but Windows will not boot any FreeBSD or Linux.
I would agree that is the safest way to proceed, although the 
repartitioning of the hard disk as outlined by somebody else would 
certainly work.  However, even here I would urge you to have a 
complete backup that you have verified is usable before you 
start.  Makes that sinking feeling in your stomach when you realize 
you've just partitioned the wrong drive much less ugly.  :-)


--Jon Radel
___


Hello all.

Thanks for your comments.

The disk I have, actually has around 90GB of free space (more I 
guess). I will do repartition with Norton and will leave 2 partitions 
of 40GB for each extra OS. I then will install FB on the first one to 
have the boot manager there and later Linux on the other partition. I 
guess that could work. I hope so.


Thanks for your time.

JB

___
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


crypt question/server hotel

2010-04-17 Thread Jozsi Vadkan
I want to put my server in a server hotel.

But: I don't trust my server hotel owner.

What can I do?


I can crypt my partition/hdd's that contains the data. Ok.
But: then my operating system will not be encrypted. Not Ok.


If I crypt my operating system too, then when a reboot comes,
I have to type a password to decrypt. But my server will be at 
a server hotel I can't directly use a keyboard [no service cpu]. 



What can I do [on technical side] to ensure a little more security 
to my server [e.g: crypt my partition/slice/whatever, that has the 
operating system, but without the type password problem]

Thank you for any tips/help.

___
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: crypt question/server hotel

2010-04-17 Thread Chuck Swiger
On Apr 17, 2010, at 1:49 AM, Jozsi Vadkan wrote:
 I want to put my server in a server hotel.
 
 But: I don't trust my server hotel owner.
 
 What can I do?

Find a different hotel owner.

There is no good protection against someone with physical access to the 
machine.  Even using disk encryption and a human-entered password depends on 
you trusting the physical machine to not be bugged with a keystroke logger in 
the keyboard, BIOS, etc.

Regards,
-- 
-Chuck

___
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


licence question

2010-04-14 Thread M. Aschhoff
hey there,

hope everythings all right?
i´m using your devil image on my website.
www.little-devil.de
someone tould me that this image is not under bsd licence.
am i allowed to use this image?
i´ll would be pleased to use it.
this is my private website i´m providing free software.
thank you very much.
hope to hear from you soon.

bye

greetings from germany

mathias a.
___
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: licence question

2010-04-14 Thread Terrence Koeman
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of M. Aschhoff
 Sent: Wednesday, April 14, 2010 4:22 PM
 To: freebsd-questions@freebsd.org
 Subject: licence question
 
 hey there,
 
 hope everythings all right?
 i´m using your devil image on my website.
 www.little-devil.de
 someone tould me that this image is not under bsd licence.
 am i allowed to use this image?
 i´ll would be pleased to use it.
 this is my private website i´m providing free software.
 thank you very much.
 hope to hear from you soon.
 

See: http://www.mckusick.com/beastie/mainpage/copyright.html

-- 
Regards,
T. Koeman, MTh/BSc/BPsy; Technical Monk

MediaMonks B.V. (www.mediamonks.com)
Please quote all replies in correspondence.


smime.p7s
Description: S/MIME cryptographic signature


Re: licence question

2010-04-14 Thread Polytropon
On Wed, 14 Apr 2010 16:22:26 +0200, M. Aschhoff knex...@googlemail.com 
wrote:
 hey there,
 
 hope everythings all right?
 i´m using your devil image on my website.
 www.little-devil.de
 someone tould me that this image is not under bsd licence.
 am i allowed to use this image?
 i´ll would be pleased to use it.
 this is my private website i´m providing free software.
 thank you very much.
 hope to hear from you soon.

http://www.freebsd.org/copyright/daemon.html

See the bottom of the page reading Permission to use the
daemon and so on.



 greetings from germany

Greetings from Germany to Germany. :-)



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


Question about fstab

2010-04-14 Thread Дмитрий Бехтерев
Hello all!
I want use redundant scheme for booting my OS. For instance I have two ufs
slices and each of them keep /boot folder. For example, I want use fstab
like that:
# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/ad6s1b noneswapsw  0   0
/dev/ad6s1a /bootdirufs rw  1   1
/dev/ad4s1a/mnt/bootdirufs rw  1   1
That scheme will work unless one of ufs slices go out. After that I just
select bootable disk in BIOS and reboot. But during boot process I have got
error that one of slices can't be mounted. It's not convinient. How can I
get decision?
Thank all.
___
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: Question about fstab

2010-04-14 Thread Adam Vande More
2010/4/14 Дмитрий Бехтерев dbehte...@gmail.com

 Hello all!
 I want use redundant scheme for booting my OS.


Most would use gmirror, zfs mirror, or a hardware based solution instead of
your approach.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.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


Re: dovecot/jail question

2010-04-13 Thread perikillo
I have: (Samba+LDAP = PDC + Dovecot+Postix ) ---JailA
(amavisd-new+spamassassin+clamd --spam gateway )  ---JailB

   FreeBSD 8.0 Release.

 My src.conf for my jails:

 WITHOUT_AMD=yes
WITHOUT_APM=yes
WITHOUT_ASSERT_DEBUG=yes
WITHOUT_ATM=yes
WITHOUT_AUTHPF=yes
WITHOUT_BIND=yes
WITHOUT_BLUETOOTH=yes
WITHOUT_BOOT=yes
WITHOUT_CALENDAR=yes
WITHOUT_CDDL=yes
WITHOUT_CTM=yes
WITHOUT_CVS=yes
WITHOUT_DICT=yes
WITHOUT_EXAMPLES=yes
WITHOUT_FLOPPY=yes
WITHOUT_FREEBSD_UPDATE=yes
WITHOUT_GAMES=yes
WITHOUT_GPIB=yes
WITHOUT_HTML=yes
WITHOUT_INET6=yes
WITHOUT_IPFILTER=yes
WITHOUT_IPFW=yes
WITHOUT_IPX=yes
WITHOUT_JAIL=yes
WITHOUT_KVM=yes
WITHOUT_LPR=yes
WITHOUT_MAIL=yes
WITHOUT_MAN=yes
WITHOUT_NCP=yes
WITHOUT_NDIS=yes
WITHOUT_NTP=yes
WITHOUT_PF=yes
WITHOUT_PMC=yes
WITHOUT_PPP=yes
WITHOUT_PROFILE=yes
WITHOUT_QUOTAS=yes
WITHOUT_RCMDS=yes
WITHOU_RCS=yes
WITHOUT_SHAREDOCS=yes
WITHOUT_TELNET=yes
WITHOUT_USB=yes
WITHOUT_WIRELESS=yes
WITHOUT_WPA_SUPPLICANT_EAPOL=yes

  Running without a issue, Greetings!!!

On Wed, Jan 20, 2010 at 1:34 PM, Michael Grimm trash...@odo.in-berlin.dewrote:

 Sam Fourman Jr. sfour...@gmail.com wrote:
  On Tue, Jan 19, 2010 at 4:18 PM, Jim stapleton...@gmail.com wrote:

  First, Thanks all for the help with my previous sendmail question.
  I rebuilt the jail without postfix and that at least seems happy.
 
  So does this mean that you can NOT run postfix in a FreeBSD 8 Jail?
 
  I didn't know this, I just assumed postfix in a Jail would work. if
  possible could someone confirm this?

 I can confirm that Postfix, Dovecot, and Squirrelmail do run in jails,
 and I do assume that almost every mailing system will do as well.

 Regards,
 Michael
 --
 to let
 ___
 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: make delete-old question (removing old binaries)

2010-04-04 Thread Bruce Cran
On Saturday 03 April 2010 11:04:37 Ihsan Junaidi Ibrahim wrote:
 Hi folks,
 
 I've rebuild my world with NO_MAIL (in src.conf) and a few other NO_
 options however I noticed that related binaries are not removed
 entirely i.e. mailwrapper when I ran make delete-old /
 delete-old-libs. I can see that the old binaries have a timestamp
 older than the binaries rebuilt by the make world process.
 
 [anggerik:/usr/sbin]# ls -l mailwrapper
 -r-xr-xr-x  1 root  wheel  7808 Nov 21 22:31 mailwrapper
 [anggerik:/usr/sbin]# ls -l trac
 traceroute*  traceroute6*
 [anggerik:/usr/sbin]# ls -l traceroute
 -r-sr-xr-x  1 root  wheel  28240 Apr  3 08:54 traceroute
 
 Is this simply a cosmetic issue and I can just remove those binaries
 manually or if not so, is there a special configs needed to remove
 them.
 
 Apologize if this question has been asked before.

You should  be using WITHOUT_ versions of the options - see src.conf(5). Files 
won't be removed unless they're listed in ObsoleteFiles.inc, and it's 
typically not been kept up-to-date. This is being fixed in -CURRENT but for 
just now you can remove the binaries manually.

-- 
Bruce Cran
___
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


make delete-old question (removing old binaries)

2010-04-03 Thread Ihsan Junaidi Ibrahim
Hi folks,

I've rebuild my world with NO_MAIL (in src.conf) and a few other NO_
options however I noticed that related binaries are not removed
entirely i.e. mailwrapper when I ran make delete-old /
delete-old-libs. I can see that the old binaries have a timestamp
older than the binaries rebuilt by the make world process.

[anggerik:/usr/sbin]# ls -l mailwrapper
-r-xr-xr-x  1 root  wheel  7808 Nov 21 22:31 mailwrapper
[anggerik:/usr/sbin]# ls -l trac
traceroute*  traceroute6*
[anggerik:/usr/sbin]# ls -l traceroute
-r-sr-xr-x  1 root  wheel  28240 Apr  3 08:54 traceroute

Is this simply a cosmetic issue and I can just remove those binaries
manually or if not so, is there a special configs needed to remove
them.

Apologize if this question has been asked before.

--
Thank you for your time,
Ihsan Junaidi Ibrahim
___
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 Instalation question

2010-03-31 Thread Jerry McAllister
On Tue, Mar 30, 2010 at 11:48:54PM +0200, Polytropon wrote:

 On Tue, 30 Mar 2010 17:41:53 -0300 (CLST), pvida...@uc.cl wrote:
  Hello. I am interested in installing FreeBSD OS on my Notebook, which has at
  this time Windows 7 with a hard disk partitioned into 2 primary partition 
  (C:
  and D:).
  I read the installation instructions, but I was clear:
  How can I install FreeBSD OS on partition D: without deleting the contents 
  of
  C: (Windows 7 and other files) so you can choose when starting the OS with 
  my
  Notebook which to work (Windows 7 or FreeBSD)?
  Thank you!
 
 During the installation (usually involving the sysinstall
 installation program), you are entering the slice editor.
 This is where primary partitions are mentioned. Delete
 the partition corresponding to the drive letter D:, I
 would assume it's the second one on the disk. Then create
 a new slice for the (now) free space and make it a FreeBSD
 slice. After that, you can install the FreeBSD boot manager.
 I'm not familiar with Windows, so I would assume that
 it won't harm the Windows installation on the disk if
 you add this boot manager. After that, you continue in
 the normal way partitioning your FreeBSD slice, selecting
 things to install, and so on.

I think all you have to do is select that slice and let sysinstall
(via fdisk) set it to a FreeBSD type file system and then go ahead
and install on it.  That will wipe out everything previously in the
slice and install FreeBSD there.   During install, tell it to install 
the FreeBSD MBR.


There is some new problem with Win-7 boot manager that I haven't learned 
about yet.   MS puts some extra boot manager stuff in.  I think how
to get around it is documented.   You will have to look that up.

jerry

 
 The FreeBSD boot manager will then allow you to select
 to boot FreeBSD or Windows at system startup.
 
 Before:
 
   { [ Windows partition C: ]  [ Windows partition D: ] }
 
 First step in slice editor (delete second Windows partition):
 
   { [ Windows partition C: ]  -free- }
 
 Second step in slice editor (create FreeBSD slice):
   
   { [ Windows partition C: ]  [ FreeBSD] }
 
 Third step, after slice editor (install boot manager):
 
   {M[ Windows partition C: ]  [ FreeBSD] }
 
 Keep an eye on which partition you mark active inside the slice
 editor. As I said, I'm not familiar with how Windows handles
 things, and I'm not a multi-booter, so excuse me for being quite
 generic in my answer. :-)
 
 Don't miss the excellent documentation in the FreeBSD handbook,
 esp. ch. 2.6, to be found here:
 
 http://www.freebsd.org/doc/en/books/handbook/install-steps.html
 
 
 
 -- 
 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
___
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 Instalation question

2010-03-30 Thread pvidales
Hola. Estoy interesado en instalar el SO FreeBSD en mi Notebook, el cual tiene
en este momento Windows 7 con un disco duro particionado en 2 (C: y D:).
Leí las instrucciones de instalación, pero no me quedó claro lo siguiente:
Como puedo instalar FreeBSD en la particion D: sin borrar el contenido de C:
(Windows 7 y otros archivos) de manera que pueda elegir al momento de iniciar
mi Notebook el SO con el cual trabajar (Windows 7 o FreeBSD)?
Gracias !!

Hello. I am interested in installing FreeBSD OS on my Notebook, which has at
this time Windows 7 with a hard disk partitioned into 2 primary partition (C:
and D:).
I read the installation instructions, but I was clear:
How can I install FreeBSD OS on partition D: without deleting the contents of
C: (Windows 7 and other files) so you can choose when starting the OS with my
Notebook which to work (Windows 7 or FreeBSD)?
Thank you!

Pablo Vidales Sáez
Santiago, Chile

___
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 Instalation question

2010-03-30 Thread Polytropon
On Tue, 30 Mar 2010 17:41:53 -0300 (CLST), pvida...@uc.cl wrote:
 Hello. I am interested in installing FreeBSD OS on my Notebook, which has at
 this time Windows 7 with a hard disk partitioned into 2 primary partition (C:
 and D:).
 I read the installation instructions, but I was clear:
 How can I install FreeBSD OS on partition D: without deleting the contents of
 C: (Windows 7 and other files) so you can choose when starting the OS with my
 Notebook which to work (Windows 7 or FreeBSD)?
 Thank you!

During the installation (usually involving the sysinstall
installation program), you are entering the slice editor.
This is where primary partitions are mentioned. Delete
the partition corresponding to the drive letter D:, I
would assume it's the second one on the disk. Then create
a new slice for the (now) free space and make it a FreeBSD
slice. After that, you can install the FreeBSD boot manager.
I'm not familiar with Windows, so I would assume that
it won't harm the Windows installation on the disk if
you add this boot manager. After that, you continue in
the normal way partitioning your FreeBSD slice, selecting
things to install, and so on.

The FreeBSD boot manager will then allow you to select
to boot FreeBSD or Windows at system startup.

Before:

{ [ Windows partition C: ]  [ Windows partition D: ] }

First step in slice editor (delete second Windows partition):

{ [ Windows partition C: ]  -free- }

Second step in slice editor (create FreeBSD slice):

{ [ Windows partition C: ]  [ FreeBSD] }

Third step, after slice editor (install boot manager):

{M[ Windows partition C: ]  [ FreeBSD] }

Keep an eye on which partition you mark active inside the slice
editor. As I said, I'm not familiar with how Windows handles
things, and I'm not a multi-booter, so excuse me for being quite
generic in my answer. :-)

Don't miss the excellent documentation in the FreeBSD handbook,
esp. ch. 2.6, to be found here:

http://www.freebsd.org/doc/en/books/handbook/install-steps.html



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


Re: FreeBSD Instalation question

2010-03-30 Thread Dima Panov
On Wednesday 31 March 2010 08:48:54 Polytropon wrote:
 On Tue, 30 Mar 2010 17:41:53 -0300 (CLST), pvida...@uc.cl wrote:
  Hello. I am interested in installing FreeBSD OS on my Notebook, which has
  at this time Windows 7 with a hard disk partitioned into 2 primary
  partition (C: and D:).
  I read the installation instructions, but I was clear:
  How can I install FreeBSD OS on partition D: without deleting the
  contents of C: (Windows 7 and other files) so you can choose when
  starting the OS with my Notebook which to work (Windows 7 or FreeBSD)?
  Thank you!
 
 During the installation (usually involving the sysinstall
 installation program), you are entering the slice editor.
 This is where primary partitions are mentioned. Delete
 the partition corresponding to the drive letter D:, I
 would assume it's the second one on the disk. Then create
 a new slice for the (now) free space and make it a FreeBSD
 slice. After that, you can install the FreeBSD boot manager.
 I'm not familiar with Windows, so I would assume that
 it won't harm the Windows installation on the disk if
 you add this boot manager. After that, you continue in
 the normal way partitioning your FreeBSD slice, selecting
 things to install, and so on.
 
 The FreeBSD boot manager will then allow you to select
 to boot FreeBSD or Windows at system startup.
 
 Before:
 
   { [ Windows partition C: ]  [ Windows partition D: ] }
 
 First step in slice editor (delete second Windows partition):
 
   { [ Windows partition C: ]  -free- }
 
 Second step in slice editor (create FreeBSD slice):
 
   { [ Windows partition C: ]  [ FreeBSD] }
 
 Third step, after slice editor (install boot manager):
 
   {M[ Windows partition C: ]  [ FreeBSD] }
 
 Keep an eye on which partition you mark active inside the slice
 editor. As I said, I'm not familiar with how Windows handles
 things, and I'm not a multi-booter, so excuse me for being quite
 generic in my answer. :-)
 
 Don't miss the excellent documentation in the FreeBSD handbook,
 esp. ch. 2.6, to be found here:
 
 http://www.freebsd.org/doc/en/books/handbook/install-steps.html

Just one note.

Usually Windows7 have additional hidden 100M boot partition first, than own 
system 
partition (Drive C:), don't be missed.


-- 
Dima Red Fox Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018
Khabarovsk, Russia  | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29
k...@freebsd Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995
Twitter.com:fluffy_khv | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024
___
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


Question about expr

2010-03-27 Thread Manish Jain


Hello all,

I am used to the normal GNU-version of expr (also available on Solaris) 
and much prefer it over the FreeBSD version. The GNU version allows 
internal commands like length, substring and others which make it much 
easier to work with. Is there any way I can replace FreeBSD's native 
expr with the GNU version ? Since I believe expr does not normally ship 
as a shell-builtin, I don't think the shell can of much help in the matter.


Actually, I think it might not be a bad idea to place a port of GNU-expr 
in the ports directory. This would allow a lot a scripts to be readily 
portable to multiple environments.


Thanks for any help.


Regards

Manish Jain
invalid.poin...@gmail.com

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


Re: Question about expr

2010-03-27 Thread Dan Nelson
In the last episode (Mar 27), Manish Jain said:
 I am used to the normal GNU-version of expr (also available on Solaris)
 and much prefer it over the FreeBSD version.  The GNU version allows
 internal commands like length, substring and others which make it much
 easier to work with.  Is there any way I can replace FreeBSD's native expr
 with the GNU version ?  Since I believe expr does not normally ship as a
 shell-builtin, I don't think the shell can of much help in the matter.
 
 Actually, I think it might not be a bad idea to place a port of GNU-expr 
 in the ports directory. This would allow a lot a scripts to be readily 
 portable to multiple environments.

It's part of the coreutils package.  If you install the sysutils/coreutils
port, you can symlink /bin/expr over to it (or make a copy).  I don't know
if it's 100% compatible with BSD expr, though, so you may end up breaking
scripts in the base system.

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


Re: Question about expr

2010-03-27 Thread Manish Jain

Dan Nelson wrote:

In the last episode (Mar 27), Manish Jain said:

I am used to the normal GNU-version of expr (also available on Solaris)
and much prefer it over the FreeBSD version.  The GNU version allows
internal commands like length, substring and others which make it much
easier to work with.  Is there any way I can replace FreeBSD's native expr
with the GNU version ?  Since I believe expr does not normally ship as a
shell-builtin, I don't think the shell can of much help in the matter.

Actually, I think it might not be a bad idea to place a port of GNU-expr 
in the ports directory. This would allow a lot a scripts to be readily 
portable to multiple environments.


It's part of the coreutils package.  If you install the sysutils/coreutils
port, you can symlink /bin/expr over to it (or make a copy).  I don't know
if it's 100% compatible with BSD expr, though, so you may end up breaking
scripts in the base system.



Hello Dan,

Thanks for the info. But I don't intend to symlink /bin/expr over to it. 
Instead I'll just create an alias in bash's profile and my scripts.


That should let core scripts execute with /bin/expr and my scripts to 
use the GNU-version. Which actually leads me to second question :


When you execute a script, it will automatically pick up the exports in 
.bash_profile. But even if you manually source bash's profile at the 
start of your script, only the exports get picked up and the aliases are 
ignored. Is there some way to fix this so that I don't have to set an 
alias for expr at the top each time I write a script ?



Thanks  Regards

Manish Jain
invalid.poin...@gmail.com

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


Re: Question about expr

2010-03-27 Thread perryh
Manish Jain invalid.poin...@gmail.com wrote:
 When you execute a script ...  the aliases are 
 ignored. Is there some way to fix this ...

Search for expand_aliases in the bash manpage.
___
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


multicore processing question

2010-03-17 Thread Zepeda, Herbey
Hi, 

I'm relatively new to FreeBSD and have had a hard time get to the right 
information relating multicore processing. I hope someone can give me some 
pointers.

I have a two core processor and FreeBSD (latest stable release).

Question:

If I have a c program that creates child processes with fork and exec (in a non 
blocking way), will the child processes be executed by FreeBSD in parallel 
using the different cores without me having to do special synchronization 
arrangements to my program?

Will I need threads instead of processes? 

thanks
Statement of Confidentiality: The information in this message is privileged and 
confidential and it is intended only for the use of the individual or entity 
named above. If the reader of this message is not the intended recipient, you 
are hereby notified that you are prohibited from disseminating, distributing, 
or copying the information contained in this message. If you have received this 
message in error, please notify the sender immediately and destroy all copies 
of the original message.

___
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: multicore processing question

2010-03-17 Thread Adam Vande More
On Wed, Mar 17, 2010 at 1:02 PM, Zepeda, Herbey herbey.zep...@atg.in.govwrote:

 Hi,

 I'm relatively new to FreeBSD and have had a hard time get to the right
 information relating multicore processing. I hope someone can give me some
 pointers.

 I have a two core processor and FreeBSD (latest stable release).

 Question:

 If I have a c program that creates child processes with fork and exec (in a
 non blocking way), will the child processes be executed by FreeBSD in
 parallel using the different cores without me having to do special
 synchronization arrangements to my program?


Well probably...processes are automatically on SMP kernels so a basic
example is if you have 2 cores and 2 processes which are each utilizing 100%
of cpu time, then each process would be assigned to a separate core.
However in practice executions states are much more complicated and both
processes may be assigned to a single core under certain conditions eg one
is in a sleep state.  The short story is this is all handled automatically,
and many applications run just fine without any further tweaking


 Will I need threads instead of processes?


Really depends on your need, but in general properly creating threaded safe
applications is significantly harder(at least to my understanding, I don't
do it).  If you need to use this route, you can check out
http://www.osnews.com/story/22152/Apple_Releases_Grand_Central_Dispatch_as_Open_Source

It's available on FreeBSD.

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


RE: multicore processing question

2010-03-17 Thread Gary Gatten
Thanks for posting the link to GCD.  Interesting info is always welcomed!

Gary


-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Adam Vande More
Sent: Wednesday, March 17, 2010 2:17 PM
To: Zepeda, Herbey
Cc: freebsd-questions@freebsd.org
Subject: Re: multicore processing question

On Wed, Mar 17, 2010 at 1:02 PM, Zepeda, Herbey herbey.zep...@atg.in.govwrote:

 Hi,

 I'm relatively new to FreeBSD and have had a hard time get to the right
 information relating multicore processing. I hope someone can give me some
 pointers.

 I have a two core processor and FreeBSD (latest stable release).

 Question:

 If I have a c program that creates child processes with fork and exec (in a
 non blocking way), will the child processes be executed by FreeBSD in
 parallel using the different cores without me having to do special
 synchronization arrangements to my program?


Well probably...processes are automatically on SMP kernels so a basic
example is if you have 2 cores and 2 processes which are each utilizing 100%
of cpu time, then each process would be assigned to a separate core.
However in practice executions states are much more complicated and both
processes may be assigned to a single core under certain conditions eg one
is in a sleep state.  The short story is this is all handled automatically,
and many applications run just fine without any further tweaking


 Will I need threads instead of processes?


Really depends on your need, but in general properly creating threaded safe
applications is significantly harder(at least to my understanding, I don't
do it).  If you need to use this route, you can check out
http://www.osnews.com/story/22152/Apple_Releases_Grand_Central_Dispatch_as_Open_Source

It's available on FreeBSD.

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





font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

___
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


<    5   6   7   8   9   10   11   12   13   14   >