Re: Gateway_Enable=NO

2010-11-23 Thread Polytropon
For the rist of not fully understanding your question:

On Tue, 23 Nov 2010 08:55:11 +0400, Lamac Lamaco lamac...@gmail.com wrote:
 Hi. Why FReeBSD working how router, When I have put in /etc/rc.conf
  - Gateway_Enable=NO???
 And by default Gateway_Enable=YES or?

No. The default is

gateway_enable=NO

as you can see in /etc/defaults/rc.conf - and please note
the lowercase letters: The names of the settings are
case-sensitive, so if you write Gateway_Enable, this
will not have ANY effect.

Check out the scripts in /etc/ and /etc/rc.d/ to see
what effects

gateway_enable=YES

will cause.


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


Upgrade from 7.x to 8.x

2010-11-23 Thread Uroš Gruber
Hi,

I was looking for help about this on forum, but a the moment without
and luck. I would like to upgrade one of my servers from 7.2 release
to 8.1 stable. I've done this on other servers and all went well. But
with this one I can't get through. I'm testing all this in virtual
machine where I transfer all data from real server.

Here is my procedure

1. cd /usr/src
2. make update (using RELENG_8)
3. make cleanworld  make cleandir
4. make buildworld
5. make buildkernel

Through here everything works, but from now on I tried manny different
steps but unfortunately I can't make it work.

If I run make installkernel and reboot the server with single user a
new kernel loads ok the only problem I have is that some of  the
programs don't actually work. For example awk

/libexec/ld-elf.so.1: /lib/libm.so.5: version FBSD_1.0 required by /usr/bin/awk

same problem is with ps, more etc.

If I continue to run mergemaster and make installworld nothing really
works, because installworld throws me a bunch of errors because some
of the utilities needed does not work at all.

So I tried other method. After make installworld I put server in
single user mode without restarting (shutdown now). From there I can
continue with

7. mergemaster -p
8. make installworld
9. make delete-old
10. make delete-old-lib
11. mergemaster

Btw I tried reversing order of step 10 and 11 but it make no difference.

Then I reboot the machine and first it looks I'll done my job well but
right after it started complaining about the same thing as with awk
but now with ps etc. and then crash with kldload process. The only
thing that it works is single user mode.

Because of all the problems with buildworld stuff i tried to use
freebsd-update utility but this one failed even more. So I abandon
this idea completely.

I would appreciate some help to successfully upgrade this server.
Fresh install is at the moment no option. Server is running 7.2
release with amd64 kernel.

Best regards

Uros
___
freebsd-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: Upgrade from 7.x to 8.x

2010-11-23 Thread Odhiambo Washington
Forget the manual process. Use tested procedures:
http://people.freebsd.org/~rse/upgrade/freebsd-upgrade-7x-8x.txthttp://people.freebsd.org/%7Erse/upgrade/freebsd-upgrade-7x-8x.txt
I even used those procedures http://people.freebsd.org/%7Erse/upgrade/ to
upgrade one system from 6.4 to 7.x and finally to 8.1.

One thing you should note:
*s/*compat7x-`uname -m`-7.2.702000.200906.1.tbz*/*compat7x-`uname
-m`-7.3.703000.201008.tbz*/g*



On Tue, Nov 23, 2010 at 1:04 PM, Uroš Gruber uros.gru...@gmail.com wrote:

 Hi,

 I was looking for help about this on forum, but a the moment without
 and luck. I would like to upgrade one of my servers from 7.2 release
 to 8.1 stable. I've done this on other servers and all went well. But
 with this one I can't get through. I'm testing all this in virtual
 machine where I transfer all data from real server.

 Here is my procedure

 1. cd /usr/src
 2. make update (using RELENG_8)
 3. make cleanworld  make cleandir
 4. make buildworld
 5. make buildkernel

 Through here everything works, but from now on I tried manny different
 steps but unfortunately I can't make it work.

 If I run make installkernel and reboot the server with single user a
 new kernel loads ok the only problem I have is that some of  the
 programs don't actually work. For example awk

 /libexec/ld-elf.so.1: /lib/libm.so.5: version FBSD_1.0 required by
 /usr/bin/awk

 same problem is with ps, more etc.

 If I continue to run mergemaster and make installworld nothing really
 works, because installworld throws me a bunch of errors because some
 of the utilities needed does not work at all.

 So I tried other method. After make installworld I put server in
 single user mode without restarting (shutdown now). From there I can
 continue with

 7. mergemaster -p
 8. make installworld
 9. make delete-old
 10. make delete-old-lib
 11. mergemaster

 Btw I tried reversing order of step 10 and 11 but it make no difference.

 Then I reboot the machine and first it looks I'll done my job well but
 right after it started complaining about the same thing as with awk
 but now with ps etc. and then crash with kldload process. The only
 thing that it works is single user mode.

 Because of all the problems with buildworld stuff i tried to use
 freebsd-update utility but this one failed even more. So I abandon
 this idea completely.

 I would appreciate some help to successfully upgrade this server.
 Fresh install is at the moment no option. Server is running 7.2
 release with amd64 kernel.

 Best regards

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




-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Damn!!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


32 or 64 bit as server ?

2010-11-23 Thread Eva Kukulies

I'm thinking of renting a hosting server and I have an offer of getting a
FreeBSD 8.1 server. I want to run MySQL 5.x, PHP5, apache2.2 on it and 
I'm asking myself

whether it would matter if I choose 32 of 64 bit ?

--
Christoph
___
freebsd-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: 32 or 64 bit as server ?

2010-11-23 Thread Indexer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 23/11/2010, at 20:22, Eva Kukulies wrote:

 I'm thinking of renting a hosting server and I have an offer of getting a
 FreeBSD 8.1 server. I want to run MySQL 5.x, PHP5, apache2.2 on it and I'm 
 asking myself
 whether it would matter if I choose 32 of 64 bit ?

depends on ram amount, and if you plan to use ZFS. probably not really an issue 
though. Take 64 if you can however.

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

William Brown

pgp.mit.edu



-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)

iQIcBAEBAgAGBQJM674aAAoJEHF16AnLoz6JsEkP/iCnejN17c2gbRoKiDeNPN8h
lvY58GzVrSI9SbUdgKsIgZkcTabXxDG9qAuNeDaST8e5xCwkx4VQYoWJNnOeAPyh
I+6edmdnjb1q2wQVWyauuY/K9n0o5NtcH/L+GjmjpOrvc42EoYwo0AUOekYY20da
mRpyKWZd//fZLEiK1E0efjHBa4JOs0WcTZjg39M2C2aq1UsNIRb87VrzOZzilN/u
FwzzBSdu+Wdyk6HSzJMKjKPVHmJlqI2Q9jogr2oJQghma+MXVv7+HkAeiDi/1qeA
VimQl8+HOH70xDzLHNfS3qmokhwlvlfiarR8/21rSxaeKPSUqpAnJnt+DczmOF5W
RSaM0fw0G5+G0jNovbqavgK/5tGF64PDlMLBgwOYsxprUWyXO1znU5w2WoB7YQVF
dQZnxbLwGvtgpwIxJyTTmIFYgkXhTPi3aHe3P/sEE3ZQpgxRxHOGGONvze1lDOfk
PiS+QYnrZFQAitM8hQh8wXnYlEYymm4TFn6GuSGTWPYDEXcb4p+8wKnyCc6OY8Ut
uQQ9VtL14Xij+9WM4YAGXGTJTZSDC0XmN//98QwHV3j/S68p0kac9tZ6WUJZ7rbK
ygVN6DrJX+Iu188U4+0XXbakDyHBgR1e9JsBpmUSQPi9QkioDZJfEF9EL4O6yGCh
nKjMNKffgwuk0GBXQcag
=1gGy
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 32 or 64 bit as server ?

2010-11-23 Thread krad
On 23 November 2010 09:52, Eva Kukulies e...@kukulies.org wrote:

 I'm thinking of renting a hosting server and I have an offer of getting a
 FreeBSD 8.1 server. I want to run MySQL 5.x, PHP5, apache2.2 on it and I'm
 asking myself
 whether it would matter if I choose 32 of 64 bit ?

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



go for 64 bit, as there are few reasons not to, and lots for
___
freebsd-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: 32 or 64 bit as server ?

2010-11-23 Thread Jerry
On Tue, 23 Nov 2010 10:52:33 +0100
Eva Kukulies e...@kukulies.org articulated:

 I'm thinking of renting a hosting server and I have an offer of
 getting a FreeBSD 8.1 server. I want to run MySQL 5.x, PHP5,
 apache2.2 on it and I'm asking myself
 whether it would matter if I choose 32 of 64 bit ?

I have all three running on an 8.1/64 amd system successfully.

BTW, you sig-delimiter is broken. You are missing a space after the
two leading dashes.

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

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__
Fashion is a form of ugliness so intolerable that we have to alter
it every six months.

Oscar Wilde
___
freebsd-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: 32 or 64 bit as server ?

2010-11-23 Thread Bill Moran
In response to Jerry freebsd.u...@seibercom.net:

 On Tue, 23 Nov 2010 10:52:33 +0100
 Eva Kukulies e...@kukulies.org articulated:
 
  I'm thinking of renting a hosting server and I have an offer of
  getting a FreeBSD 8.1 server. I want to run MySQL 5.x, PHP5,
  apache2.2 on it and I'm asking myself
  whether it would matter if I choose 32 of 64 bit ?
 
 I have all three running on an 8.1/64 amd system successfully.

It was only a few years ago that my advice was Don't got 64 bit unless
you know you need it.

Of course, things are always changing, and at this point in time, my
advice would be only go 32 bit if you _know_ there's something that
won't work in 64 bit.

I can speak personally that we have a multitude of servers running
PHP and Apache 2.2 on 64 bit FreeBSD with no trouble.  I don't use
MySQL, but I have a hard time believing that it's not 64 bit clean.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-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: 32 or 64 bit as server ?

2010-11-23 Thread Tobias
On Tue, Nov 23, 2010 at 7:00 AM, Bill Moran wmo...@potentialtech.comwrote:

 It was only a few years ago that my advice was Don't got 64 bit unless
 you know you need it.

 Of course, things are always changing, and at this point in time, my
 advice would be only go 32 bit if you _know_ there's something that
 won't work in 64 bit.


Could not agree more with your statements above.


 I can speak personally that we have a multitude of servers running
 PHP and Apache 2.2 on 64 bit FreeBSD with no trouble.  I don't use
 MySQL, but I have a hard time believing that it's not 64 bit clean.


Right behind me is my 64-bit FreeBSD 8.1 server that hosts a number of
websites. Apache2, php, perl, mysql, memcache, etc. all run just fine
without any obvious issues.

--Tobias
___
freebsd-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: 32 or 64 bit as server ?

2010-11-23 Thread Bruce Cran
On Tue, 23 Nov 2010 09:00:36 -0500
Bill Moran wmo...@potentialtech.com wrote:

 Of course, things are always changing, and at this point in time, my
 advice would be only go 32 bit if you _know_ there's something that
 won't work in 64 bit.

The only other time I'd recommend installing a 32-bit version is if
you're stuck with a machine with a very limited amount of memory. For
example I'm having to run www/mail/db in only 256MB, so I chose not to
install the 64-bit version which would use more memory.

-- 
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: Got an error: Unknown option DDB_CTF

2010-11-23 Thread Chris Brennan
On Mon, Nov 22, 2010 at 9:58 PM, Weihang Wang weih...@vt.edu wrote:

 Hi,

 Thanks for your reply. Yes, now I still got problems. I have checked the
 release notes of versions later than 6.0, almost every version has not so
 few changes in their network protocols kernel. For example, some functions
 were replaced by others, arguments for a function is not needed in a later
 version, things like that... This will make the transport protocol does not
 work. But if I go through to adapt the protocol to a new version, that would
 be lots of work. Also, that's not what I supposed to do.
 On the other hand, I could not find other kind of instrumenting tools for
 FreeBSD either. E.g., Systemtap, LLtng, Oprofile e.t. which are all for
 Linux kernel.
 In terms of not on real machine, I have thought of using some kind of
 simulator, which could be used to get the performance statistics of the
 kernel. That is, I run the kernel and transport protocol on this simulator,
 and get information from this simulator. But again, not found a simulator
 for FreeBSD...
 BTW, I do not know how to use VM to do this... Could you explain a bit for
 me? Thank you so much.

 Best,
 W.Wang



Don't top post, ruins the flow of reading. VM = Virtual Machine. Grab
yourself a copy of Virtual Box or VMWare for your OS of choice and install
it, the rest is fairly self-explanatory. Once the VM is installed, grab a
few copies of VMWare and install them (If you have enough resources, you can
run more then 1 VM) and see if your code works on newer versions of FreeBSD.
You might be surprised what does still work w/ the compat libs from previous
branches.

Also keep in mind that if your 6x machine is forward-facing (i.e. has
access  to the world) and you happen across a security flaw, you will get
almost no support from the community in fixing it as it's a discontinued
branch and has reach it's EoL (End-of-Life). So you will be left to either
leave the hole alone or attempt to fix it yourself.

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


Re: a gmirror disappears after adding gjournals to its partitions

2010-11-23 Thread CyberLeo Kitsana
On 11/22/2010 10:19 PM, per...@pluto.rain.com wrote:
 krad kra...@gmail.com wrote:
 On 21 November 2010 06:10, per...@pluto.rain.com wrote:
 ...
  manually-created config files, while still in chroot after install
 Fixit# cat /boot/loader.conf
 geom_mirror_load=YES
 geom_journal_load=YES

 vfs.root.mountfrom=ufs:/dev/mirror/gm0a.journal
 vfs.root.mountfrom.options=rw
 ...
  output from kldstat, after booting the newly-installed system --
  and manually mounting the root FS -- showing that geom_mirror.ko
  did get loaded.
 Id Refs AddressSize Name
  16 0xc040 bb5504   kernel
  21 0xc0fb6000 14540geom_journal.ko
  31 0xc0fcb000 16ed4geom_mirror.ko
 ...
 sounds silly but are you loading the gmirror kernel module via
 loader.conf
 
 Yes, I'm even setting geom_mirror_load to YES before setting
 geom_journal_load to YES (although I doubt the order of these
 settings in loader.conf makes any difference).
 
 If the kldstat Id numbers are assigned sequentially, it looks as
 if geom_journal got loaded first and this may somehow be related
 (although I don't entirely see how -- absent geom_mirror to make gm0
 and its partitions visible, I'd think that geom_journal should not
 be able to find its metadata at all).

From what I've found, this is because there is no taste difference
between a bsdlabel on a gmirror and a bsdlabel on a non-mirror.

Since both gmirror and gjournal are greedy (they take exclusive access
of their parent providers upon successful taste, and not upon exclusive
access to their own providers like glabel), the first one to
successfully taste and start is the winner; the other will never get to
taste those devices.

The trick here is to either make the two look different somehow (use a
different geom that stores its metadata at the beginning of the
provider, instead of the end, thus eliminating ambiguity in the bsdlabel
taste), or to make the inner geom avoid the outer devices (hardcode
provider names in metadata). Since you have an outer geom that provides
a static name, hardcoding the name of the gmirror into the gjournal
metadata shouldn't cause anything to break if your disks change places,
either.

http://pb.cyberleo.net/?show=m7fcbcef7

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


libm alternative in ports

2010-11-23 Thread Alexander Best
hi there,

does anybody if there's an alternative for libm in the ports dir? i need it,
because the newest snapshots of mplayer require log2() and log2f(), which the
base libm doesn't support.

cheers.
alex

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


How long laptop battery should live ?

2010-11-23 Thread David DEMELIER
Hello

I just realized that my HP laptop lost the half battery capacity. Take a look :

mark...@melon ~ $ acpiconf -i 0
Design capacity:4400 mAh
Last full capacity: 2132 mAh
Technology: secondary (rechargeable)
Design voltage: 14400 mV
Capacity (warn):200 mAh
Capacity (low): 100 mAh
Low/warn granularity:   100 mAh
Warn/full granularity:  100 mAh
Model number:   Primary
Serial number:  02109 2009/08/11
Type:   LIon
OEM info:   Hewlett-Packard
State:  charging
Remaining capacity: 0%
Remaining time: unknown
Present rate:   3061 mA
Voltage:15751 mV

Design capacity:4400 mAh
Last full capacity: 2132 mAh

I'm guessing if this should be, the laptop has only about 8 months and
I don't use it much on battery, only around one day per week and not
until the battery is empty. If I remember correctly my old laptop
didn't lost so much of capacity in a few months like that.

My question is : how long a battery should live ? is anything could
bring down the battery sooner ?

I hope the next battery wont be too much expensive and will live more..

Cheers,

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


Re: a gmirror disappears after adding gjournals to its partitions

2010-11-23 Thread krad
2010/11/23 CyberLeo Kitsana cyber...@cyberleo.net

 On 11/22/2010 10:19 PM, per...@pluto.rain.com wrote:
  krad kra...@gmail.com wrote:
  On 21 November 2010 06:10, per...@pluto.rain.com wrote:
  ...
   manually-created config files, while still in chroot after install
  Fixit# cat /boot/loader.conf
  geom_mirror_load=YES
  geom_journal_load=YES
 
  vfs.root.mountfrom=ufs:/dev/mirror/gm0a.journal
  vfs.root.mountfrom.options=rw
  ...
   output from kldstat, after booting the newly-installed system --
   and manually mounting the root FS -- showing that geom_mirror.ko
   did get loaded.
  Id Refs AddressSize Name
   16 0xc040 bb5504   kernel
   21 0xc0fb6000 14540geom_journal.ko
   31 0xc0fcb000 16ed4geom_mirror.ko
  ...
  sounds silly but are you loading the gmirror kernel module via
  loader.conf
 
  Yes, I'm even setting geom_mirror_load to YES before setting
  geom_journal_load to YES (although I doubt the order of these
  settings in loader.conf makes any difference).
 
  If the kldstat Id numbers are assigned sequentially, it looks as
  if geom_journal got loaded first and this may somehow be related
  (although I don't entirely see how -- absent geom_mirror to make gm0
  and its partitions visible, I'd think that geom_journal should not
  be able to find its metadata at all).

 From what I've found, this is because there is no taste difference
 between a bsdlabel on a gmirror and a bsdlabel on a non-mirror.

 Since both gmirror and gjournal are greedy (they take exclusive access
 of their parent providers upon successful taste, and not upon exclusive
 access to their own providers like glabel), the first one to
 successfully taste and start is the winner; the other will never get to
 taste those devices.

 The trick here is to either make the two look different somehow (use a
 different geom that stores its metadata at the beginning of the
 provider, instead of the end, thus eliminating ambiguity in the bsdlabel
 taste), or to make the inner geom avoid the outer devices (hardcode
 provider names in metadata). Since you have an outer geom that provides
 a static name, hardcoding the name of the gmirror into the gjournal
 metadata shouldn't cause anything to break if your disks change places,
 either.

 http://pb.cyberleo.net/?show=m7fcbcef7

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

 Furry Peace! - http://.fur.com/peace/


I think what he is saying is slice it up 1st, then mirror the slices, and
slap the journal on top of that
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How long laptop battery should live ?

2010-11-23 Thread Gary Gatten
I just looked into a batt for my daughters dell, her li-on lasted 14 months, 
now on full charge it only lasts 40 mins...  Terrible.  If you can get 2 
years out of a batt ur lucky.  I read some tech docs on li-on cells; if you can 
store at 50% charge in the fridge and when in use don't let it run down 100%.

- Original Message -
From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org
To: FreeBSD Questions freebsd-questions@freebsd.org
Sent: Tue Nov 23 15:34:16 2010
Subject: How long laptop battery should live ?

Hello

I just realized that my HP laptop lost the half battery capacity. Take a look :

mark...@melon ~ $ acpiconf -i 0
Design capacity:4400 mAh
Last full capacity: 2132 mAh
Technology: secondary (rechargeable)
Design voltage: 14400 mV
Capacity (warn):200 mAh
Capacity (low): 100 mAh
Low/warn granularity:   100 mAh
Warn/full granularity:  100 mAh
Model number:   Primary
Serial number:  02109 2009/08/11
Type:   LIon
OEM info:   Hewlett-Packard
State:  charging
Remaining capacity: 0%
Remaining time: unknown
Present rate:   3061 mA
Voltage:15751 mV

Design capacity:4400 mAh
Last full capacity: 2132 mAh

I'm guessing if this should be, the laptop has only about 8 months and
I don't use it much on battery, only around one day per week and not
until the battery is empty. If I remember correctly my old laptop
didn't lost so much of capacity in a few months like that.

My question is : how long a battery should live ? is anything could
bring down the battery sooner ?

I hope the next battery wont be too much expensive and will live more..

Cheers,

-- 
Demelier David
___
freebsd-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

Re: How long laptop battery should live ?

2010-11-23 Thread Julian Fagir
Hi,

 I just looked into a batt for my daughters dell, her li-on lasted 14
 months, now on full charge it only lasts 40 mins...  Terrible.  If you
 can get 2 years out of a batt ur lucky.  I read some tech docs on li-on
 cells; if you can store at 50% charge in the fridge and when in use don't
 let it run down 100%.
in my opinion, there's just one rule: Don't trust anybody.
There are so many people who claim do be professionals, who say totally
contrary things.
On the one hand, there are many 'facts' which are falsely applied to
LiIon-batteries which don't apply. On the other hand, there are many stories
people remember from years long ago or from cheap notebooks without an
'intelligent' battery.

Just to add another story from me: I have two batteries in my notebook, the
one is always drowned to zero before the other one is being used (no, there
are no possibilities to control that in my case). The one being drowned
first, though not that often used that hard (appr once a week) was nearly
dead after 1 1/2 years (6/23Wh), while the other one still has 23/27Wh.


Regards, Julian


signature.asc
Description: PGP signature


Re: libm alternative in ports

2010-11-23 Thread Chris Brennan
On Tue, Nov 23, 2010 at 4:00 PM, Alexander Best arun...@freebsd.org wrote:

 hi there,

 does anybody if there's an alternative for libm in the ports dir? i need
 it,
 because the newest snapshots of mplayer require log2() and log2f(), which
 the
 base libm doesn't support.

 cheers.
 alex


This is what a search of /usr/ports turned up for me  (cd /usr/ports;
make search name=libm | grep -A1 Port file)

Port:libmspack-0.2_1
Path:/usr/ports/archivers/libmspack
--
Port:hs-libmpd-0.4.1
Path:/usr/ports/audio/hs-libmpd
--
Port:libmad-0.15.1b_2
Path:/usr/ports/audio/libmad
--
Port:libmikmod-3.1.11_2
Path:/usr/ports/audio/libmikmod
--
Port:libmodplug-0.8.8.1
Path:/usr/ports/audio/libmodplug
--
Port:libmp3-archive-perl-0.9
Path:/usr/ports/audio/libmp3-archive-perl
--
Port:libmp3splt-0.6
Path:/usr/ports/audio/libmp3splt
--
Port:libmpcdec-1.2.6
Path:/usr/ports/audio/libmpcdec
--
Port:libmpd-0.19.0
Path:/usr/ports/audio/libmpd
--
Port:libmpdclient-2.3
Path:/usr/ports/audio/libmpdclient
--
Port:libmtp-1.0.3
Path:/usr/ports/audio/libmtp
--
Port:libmusicbrainz-2.1.5
Path:/usr/ports/audio/libmusicbrainz
--
Port:libmusicbrainz3-3.0.3
Path:/usr/ports/audio/libmusicbrainz3
--
Port:linux-libmad-0.15.1.b.3.2
Path:/usr/ports/audio/linux-libmad
--
Port:libmicro-0.4.0
Path:/usr/ports/benchmarks/libmicro
--
Port:libmemcache-1.4.0.r2_1
Path:/usr/ports/databases/libmemcache
--
Port:libmemcached-0.44
Path:/usr/ports/databases/libmemcached
--
Port:p5-Memcached-libmemcached-0.21.01
Path:/usr/ports/databases/p5-Memcached-libmemcached
--
Port:py26-pylibmc-1.1.1
Path:/usr/ports/databases/py-pylibmc
--
Port:glibmm-2.24.2_2,1
Path:/usr/ports/devel/glibmm
--
Port:glibmm-reference-2.24.2_5,1
Path:/usr/ports/devel/glibmm-reference
--
Port:libmaa-1.2.0,1
Path:/usr/ports/devel/libmaa
--
Port:libmatheval-1.1.5_3
Path:/usr/ports/devel/libmatheval
--
Port:libmba-0.9.1
Path:/usr/ports/devel/libmba
--
Port:libmcs-0.7.2
Path:/usr/ports/devel/libmcs
--
Port:libmimedir-0.5.1
Path:/usr/ports/devel/libmimedir
--
Port:libmonetra-7.0.4
Path:/usr/ports/devel/libmonetra
--
Port:libmowgli-0.7.1
Path:/usr/ports/devel/libmowgli
--
Port:libmpcbdm-0.0.3
Path:/usr/ports/devel/libmpcbdm
--
Port:libmsocket-0.4_1
Path:/usr/ports/devel/libmsocket
--
Port:libmtrie-1.0.3
Path:/usr/ports/devel/libmtrie
--
Port:libmaitretarot-0.1.98_4
Path:/usr/ports/games/libmaitretarot
--
Port:libmt_client-0.1.98_4
Path:/usr/ports/games/libmt_client
--
Port:libmng-1.0.10_2
Path:/usr/ports/graphics/libmng
--
Port:libmorph-0.1.2_1
Path:/usr/ports/graphics/libmorph
--
Port:linux-f10-libmng-1.0.9
Path:/usr/ports/graphics/linux-f10-libmng
--
Port:linux-f8-libmng-1.0.9_1
Path:/usr/ports/graphics/linux-f8-libmng
--
Port:linux-libmng-1.0.9_2
Path:/usr/ports/graphics/linux-libmng
--
Port:libmapi-0.9_2
Path:/usr/ports/mail/libmapi
--
Port:libmath++-0.0.3
Path:/usr/ports/math/libmath++
--
Port:libmcal-0.7_2
Path:/usr/ports/misc/libmcal
--
Port:libmetalink-0.0.3
Path:/usr/ports/misc/libmetalink
--
Port:libmatroska-1.0.0
Path:/usr/ports/multimedia/libmatroska
--
Port:libmovtar-0.1.3_8
Path:/usr/ports/multimedia/libmovtar
--
Port:libmpeg2-0.5.1
Path:/usr/ports/multimedia/libmpeg2
--
Port:libmpeg3-1.8
Path:/usr/ports/multimedia/libmpeg3
--
Port:gstreamer-plugins-libmms-0.10.20,3
Path:/usr/ports/net/gstreamer-plugins-libmms
--
Port:libmms-0.5_1
Path:/usr/ports/net/libmms
--
Port:libmxp-0.2.4
Path:/usr/ports/net/libmxp
--
Port:libmsn-4.1
Path:/usr/ports/net-im/libmsn
--
Port:libmal-0.44.1
Path:/usr/ports/palm/libmal
--
Port:libmcrypt-2.5.8
Path:/usr/ports/security/libmcrypt
--
Port:libmrss-0.19.2_3
Path:/usr/ports/textproc/libmrss
--
Port:libmicrohttpd-0.4.2
Path:/usr/ports/www/libmicrohttpd
--
Port:graphics/libmovtar
Moved:multimedia/libmovtar
--
Port:graphics/libmpeg2
Moved:multimedia/libmpeg2
--
Port:deskutils/libmrproject
Moved:deskutils/planner
--
Port:audio/libmusepack
Moved:audio/libmpcdec
--
Port:multimedia/gpac-libm4systems
Moved:multimedia/gpac-libgpac
--
Port:net/libmsn
Moved:net-im/libmsn
--
Port:devel/libmusclecard
Moved:
--
Port:graphics/gstreamer-plugins-libmng
Moved:graphics/gstreamer-plugins-libmng80
--
Port:graphics/gstreamer-plugins-libmng80
Moved:
--
Port:net/gstreamer-plugins-libmms80
Moved:net/gstreamer-plugins-libmms
--
Port:devel/libmcve
Moved:devel/libmonetra
--
Port:audio/py-libmpdclient
Moved:
--
Port:multimedia/mpeg4ip-libmp4v2
Moved:multimedia/mp4v2

I'm not exactly sure what your looking for but it may be one of these , hth

Re: How long laptop battery should live ?

2010-11-23 Thread Chris Brennan
On Tue, Nov 23, 2010 at 5:09 PM, Julian Fagir g...@physik.tu-berlin.dewrote:

 Hi,

  I just looked into a batt for my daughters dell, her li-on lasted 14
  months, now on full charge it only lasts 40 mins...  Terrible.  If you
  can get 2 years out of a batt ur lucky.  I read some tech docs on li-on
  cells; if you can store at 50% charge in the fridge and when in use don't
  let it run down 100%.
 in my opinion, there's just one rule: Don't trust anybody.
 There are so many people who claim do be professionals, who say totally
 contrary things.
 On the one hand, there are many 'facts' which are falsely applied to
 LiIon-batteries which don't apply. On the other hand, there are many
 stories
 people remember from years long ago or from cheap notebooks without an
 'intelligent' battery.

 Just to add another story from me: I have two batteries in my notebook, the
 one is always drowned to zero before the other one is being used (no, there
 are no possibilities to control that in my case). The one being drowned
 first, though not that often used that hard (appr once a week) was nearly
 dead after 1 1/2 years (6/23Wh), while the other one still has 23/27Wh.


 Regards, Julian



Li-Ion batteries tend to loose there imprint (the ability to hold a charge)
over time, the more the battery is discharged to 0%, the faster it will
loose that imprint. There really isn't squat you can do about it except buy
a new battery (and yes, make sure it is new, I bought a refurbed HP and the
*full* charge for it when I got it was 20% of it's original capacity (maybe
15-20 minutes), good enough in a pinch but that 20% lasted maybe a month)

As Julian stated ... there are too many people who claim to be professionals
(I'm not one of them), this are just what I have experienced and based on
what I have read. One resource I did find was
http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries...
they seemed to at least present all the information available in a
logical order and it all made sense to me.

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


Re: How long laptop battery should live ?

2010-11-23 Thread Gary Gatten
Ditto, pretty much mirrors what I read.  I forget the site, perhaps Panasonic? 
It was a cell manufacturer and published all sorts of data on different 
chemistry cells. Good info for my EV project too!  And yes, many people sell 
batteries as new who's cells are two years old!  Basically junk before you even 
get it.

- Original Message -
From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org
To: Julian Fagir g...@physik.tu-berlin.de
Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org
Sent: Tue Nov 23 16:26:42 2010
Subject: Re: How long laptop battery should live ?

On Tue, Nov 23, 2010 at 5:09 PM, Julian Fagir g...@physik.tu-berlin.dewrote:

 Hi,

  I just looked into a batt for my daughters dell, her li-on lasted 14
  months, now on full charge it only lasts 40 mins...  Terrible.  If you
  can get 2 years out of a batt ur lucky.  I read some tech docs on li-on
  cells; if you can store at 50% charge in the fridge and when in use don't
  let it run down 100%.
 in my opinion, there's just one rule: Don't trust anybody.
 There are so many people who claim do be professionals, who say totally
 contrary things.
 On the one hand, there are many 'facts' which are falsely applied to
 LiIon-batteries which don't apply. On the other hand, there are many
 stories
 people remember from years long ago or from cheap notebooks without an
 'intelligent' battery.

 Just to add another story from me: I have two batteries in my notebook, the
 one is always drowned to zero before the other one is being used (no, there
 are no possibilities to control that in my case). The one being drowned
 first, though not that often used that hard (appr once a week) was nearly
 dead after 1 1/2 years (6/23Wh), while the other one still has 23/27Wh.


 Regards, Julian



Li-Ion batteries tend to loose there imprint (the ability to hold a charge)
over time, the more the battery is discharged to 0%, the faster it will
loose that imprint. There really isn't squat you can do about it except buy
a new battery (and yes, make sure it is new, I bought a refurbed HP and the
*full* charge for it when I got it was 20% of it's original capacity (maybe
15-20 minutes), good enough in a pinch but that 20% lasted maybe a month)

As Julian stated ... there are too many people who claim to be professionals
(I'm not one of them), this are just what I have experienced and based on
what I have read. One resource I did find was
http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries...
they seemed to at least present all the information available in a
logical order and it all made sense to me.

hth, C-
___
freebsd-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

Re: How long laptop battery should live ?

2010-11-23 Thread Chris Brennan
On Tue, Nov 23, 2010 at 5:41 PM, Gary Gatten ggat...@waddell.com wrote:

 Ditto, pretty much mirrors what I read.  I forget the site, perhaps
 Panasonic? It was a cell manufacturer and published all sorts of data on
 different chemistry cells. Good info for my EV project too!  And yes, many
 people sell batteries as new who's cells are two years old!  Basically junk
 before you even get it.



Top posting is evil, don't do it! Don't give into the evil :D Anyway ...
it's like buying three-year old disposable batteries at the corner store ...
dead in the package
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


new user questions. (Before I back myself into a corner!)

2010-11-23 Thread Dave
If I've not already done so.

Hi.   Sorry, this goes on a bit

New to FreeBSD, but long time served PC nut and user, from the before DOS 
days onwards...

I've not long ago put together a small FreeBSD V8.0 system, primeraly as 
a GPS derrived NTP server, following instructions from here:-
http://blog.doylenet.net/?p=145

The hardware is a small form desktop PC, with a P3/700 CPU, 15G drive, 
but only (at the moment) 256M of RAM.  I have not installed any of the X 
system, it's all command line stuff, only.

It seems to work well, no issues with that, at the moment.

In my original plans, I wanted a headless appliance, and that's what 
I've got, and as above it works fine.

However, I'd like to move some services off another PC (that is in dire 
need of some hardware maintenance) onto this one, and though I've read 
some of the Handbook, and many links from it, I'm still a bit unsure as 
to what best to do.

I'd like to:-
Have a ssh login via LAN available, I believe that's a standard feature, 
but I expressedly disabled that (well, told it not to implement it) when 
I orignaly installed the OS.   Or have a VNC server running.

Have a small web server, again I've read that Apache can do a good job, 
but I don't want (nor need) all it's facilities, in particular I need to 
lock it down so no Put's can happen for a start!  The web pages are 
simple flat form, text and static graphics, with a little client side 
scripting, purely to find the client's local date and time, to select the 
graphic to serve.

Have a FTP server, so I can automate some of the web page graphics 
updates, from other systems that generate the data, and can FTP files 
across the LAN, also of course for general web page maintenance needs.

It'd be nice to have a  VPN endpoint, but not esential, as that is 
currently living on another W2k box.  But in the long term perhaps.  The 
only complication with that, is I need to be able to tunnel a UDP VoIP 
stream over/throug it.  (I currently use Hamachi on Windows for that, it 
works well.)  Also, the other end needs to live on a XP (or later) 
Laptop.

I have done all that on Win2k, Using FileZilla server, and over time 
various web server app's, plus some 3rd party free VPN solutions on 
another machine, but that machine is in dire need of a major hardware 
overhaul, plus I have other plans for it when that is done, so moving the 
server tools to the F'BSD box seem like a good idea at the moment.

I've just spent a couple of hours with the FreeBSD on-line manual 
(Handbook) trying to get a simple FTP server working, but in all honesty, 
I'm out of my depth with that, in some ways, not enough detail, in other 
ways, too much detail.   (A very simple worked example of the various 
.conf files would be nice to see.)

I've found:-
http://forums.freebsd.org/showthread.php?t=591
That sounds in the face of things what I want, but am unsure of the 
implications of doing that.  Is it better (ie, easier for a novice to 
manage) than the native OS based FTP server tool?  I would preffer to 
have FTP login's that are in no way related to any system login users.

Lastly, I have everything so far (on the Win2k box) working well with 
highly non standard (high numbered) ports.   Even thoug it's exposed 
(via port forwarding in the router) to the outside, there is next to no 
noise, (script kiddies, chinese hackers etc) poking arround my back 
passage.

Of all the stuff I've read so far in the FreeBSD handbook, and a few 
other places, not one mention is made (that I can see so far) of how to 
set services for alternative port numbers?

Lastly, as I don't want to break the existing NTP server, I may find 
another PC of similar spec, to mess with, witn some sort of impunity.

Unless there is a compelling argument to, I'd prefer to stick with V8.0 
too.

Advice please (and perhaps a little hand holding.)

Cheers.

Dave B.

PS: I run one of these
http://www.ncdxf.org/beacon/monitors.html


___
freebsd-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: libm alternative in ports

2010-11-23 Thread Alexander Best
On Tue Nov 23 10, Chris Brennan wrote:
 On Tue, Nov 23, 2010 at 4:00 PM, Alexander Best arun...@freebsd.org wrote:
 
  hi there,
 
  does anybody if there's an alternative for libm in the ports dir? i need
  it,
  because the newest snapshots of mplayer require log2() and log2f(), which
  the
  base libm doesn't support.
 
  cheers.
  alex
 
 
 This is what a search of /usr/ports turned up for me  (cd /usr/ports;
 make search name=libm | grep -A1 Port file)

thanks but that doesn't help me very much. i'm looking for a replacement for
/usr/lib/libm.so which features all POSIX defined mathematical abilities. the
one that comes with FreeBSD is missing two vital functions. i know that the one
that comes with netbsd and the one from mac os x have support for these
functions. the FreeBSD developers however don't want to implement them for some
reason.

cheers.
alex

 
 Port:libmspack-0.2_1
 Path:/usr/ports/archivers/libmspack
 --
 Port:hs-libmpd-0.4.1
 Path:/usr/ports/audio/hs-libmpd
 --
 Port:libmad-0.15.1b_2
 Path:/usr/ports/audio/libmad
 --
 Port:libmikmod-3.1.11_2
 Path:/usr/ports/audio/libmikmod
 --
 Port:libmodplug-0.8.8.1
 Path:/usr/ports/audio/libmodplug
 --
 Port:libmp3-archive-perl-0.9
 Path:/usr/ports/audio/libmp3-archive-perl
 --
 Port:libmp3splt-0.6
 Path:/usr/ports/audio/libmp3splt
 --
 Port:libmpcdec-1.2.6
 Path:/usr/ports/audio/libmpcdec
 --
 Port:libmpd-0.19.0
 Path:/usr/ports/audio/libmpd
 --
 Port:libmpdclient-2.3
 Path:/usr/ports/audio/libmpdclient
 --
 Port:libmtp-1.0.3
 Path:/usr/ports/audio/libmtp
 --
 Port:libmusicbrainz-2.1.5
 Path:/usr/ports/audio/libmusicbrainz
 --
 Port:libmusicbrainz3-3.0.3
 Path:/usr/ports/audio/libmusicbrainz3
 --
 Port:linux-libmad-0.15.1.b.3.2
 Path:/usr/ports/audio/linux-libmad
 --
 Port:libmicro-0.4.0
 Path:/usr/ports/benchmarks/libmicro
 --
 Port:libmemcache-1.4.0.r2_1
 Path:/usr/ports/databases/libmemcache
 --
 Port:libmemcached-0.44
 Path:/usr/ports/databases/libmemcached
 --
 Port:p5-Memcached-libmemcached-0.21.01
 Path:/usr/ports/databases/p5-Memcached-libmemcached
 --
 Port:py26-pylibmc-1.1.1
 Path:/usr/ports/databases/py-pylibmc
 --
 Port:glibmm-2.24.2_2,1
 Path:/usr/ports/devel/glibmm
 --
 Port:glibmm-reference-2.24.2_5,1
 Path:/usr/ports/devel/glibmm-reference
 --
 Port:libmaa-1.2.0,1
 Path:/usr/ports/devel/libmaa
 --
 Port:libmatheval-1.1.5_3
 Path:/usr/ports/devel/libmatheval
 --
 Port:libmba-0.9.1
 Path:/usr/ports/devel/libmba
 --
 Port:libmcs-0.7.2
 Path:/usr/ports/devel/libmcs
 --
 Port:libmimedir-0.5.1
 Path:/usr/ports/devel/libmimedir
 --
 Port:libmonetra-7.0.4
 Path:/usr/ports/devel/libmonetra
 --
 Port:libmowgli-0.7.1
 Path:/usr/ports/devel/libmowgli
 --
 Port:libmpcbdm-0.0.3
 Path:/usr/ports/devel/libmpcbdm
 --
 Port:libmsocket-0.4_1
 Path:/usr/ports/devel/libmsocket
 --
 Port:libmtrie-1.0.3
 Path:/usr/ports/devel/libmtrie
 --
 Port:libmaitretarot-0.1.98_4
 Path:/usr/ports/games/libmaitretarot
 --
 Port:libmt_client-0.1.98_4
 Path:/usr/ports/games/libmt_client
 --
 Port:libmng-1.0.10_2
 Path:/usr/ports/graphics/libmng
 --
 Port:libmorph-0.1.2_1
 Path:/usr/ports/graphics/libmorph
 --
 Port:linux-f10-libmng-1.0.9
 Path:/usr/ports/graphics/linux-f10-libmng
 --
 Port:linux-f8-libmng-1.0.9_1
 Path:/usr/ports/graphics/linux-f8-libmng
 --
 Port:linux-libmng-1.0.9_2
 Path:/usr/ports/graphics/linux-libmng
 --
 Port:libmapi-0.9_2
 Path:/usr/ports/mail/libmapi
 --
 Port:libmath++-0.0.3
 Path:/usr/ports/math/libmath++
 --
 Port:libmcal-0.7_2
 Path:/usr/ports/misc/libmcal
 --
 Port:libmetalink-0.0.3
 Path:/usr/ports/misc/libmetalink
 --
 Port:libmatroska-1.0.0
 Path:/usr/ports/multimedia/libmatroska
 --
 Port:libmovtar-0.1.3_8
 Path:/usr/ports/multimedia/libmovtar
 --
 Port:libmpeg2-0.5.1
 Path:/usr/ports/multimedia/libmpeg2
 --
 Port:libmpeg3-1.8
 Path:/usr/ports/multimedia/libmpeg3
 --
 Port:gstreamer-plugins-libmms-0.10.20,3
 Path:/usr/ports/net/gstreamer-plugins-libmms
 --
 Port:libmms-0.5_1
 Path:/usr/ports/net/libmms
 --
 Port:libmxp-0.2.4
 Path:/usr/ports/net/libmxp
 --
 Port:libmsn-4.1
 Path:/usr/ports/net-im/libmsn
 --
 Port:libmal-0.44.1
 Path:/usr/ports/palm/libmal
 --
 Port:libmcrypt-2.5.8
 Path:/usr/ports/security/libmcrypt
 --
 Port:libmrss-0.19.2_3
 Path:/usr/ports/textproc/libmrss
 --
 Port:libmicrohttpd-0.4.2
 Path:/usr/ports/www/libmicrohttpd
 --
 Port:graphics/libmovtar
 Moved:multimedia/libmovtar
 --
 Port:graphics/libmpeg2
 Moved:multimedia/libmpeg2
 --
 Port:deskutils/libmrproject
 Moved:deskutils/planner
 --
 Port:audio/libmusepack
 Moved:audio/libmpcdec
 --
 Port:

Rescan hard drives

2010-11-23 Thread cronfy
Hello,

I am using Adaptec 3405 with FreeBSD 7.3. After hot-swapping some hard
drives and deleting/creating RAID1 mirror I stuck with situation when I can
not work with newly created device.

It is aacd1. Previously it was 1000G drive without RAID. Now it is 300G
RAID1 mirror. But `geom disk list` reports:

Geom name: aacd1
Providers:
1. Name: aacd1
   Mediasize: 999642103808 (931G)
   Sectorsize: 512
   Mode: r0w0e0

Geom name: aacd1
Providers:
1. Name: aacd1
   Mediasize: 299563483136 (279G)
   Sectorsize: 512
   Mode: r0w0e0
   fwsectors: 63
   fwheads: 255

If I delete this RAID1 with arcconf, geom disk list still reports about 931G
drive at aacd1, though it was swapped out from server.

`dmesg | tail` says kernel detected new drive:

aacd1: RAID 1 (Mirror) on aac0
aacd1: 285686MB (585084928 sectors)


But fdisk, bsdlabel, dd and others do not work with aacd1 because of error
message: 'Device not configured'. Also there is old partition table of
previous disk seen in `ls /dev/aacd1*`, tough new disk was not partitioned.

Is there a way to reread connected drives information in FreeBSD? I tried:

# atacontrol list
ATA channel 2:
Master:  no device present
Slave:   no device present
ATA channel 3:
Master:  no device present
Slave:   no device present
ATA channel 4:
Master:  no device present
Slave:   no device present
ATA channel 5:
Master:  no device present
Slave:   no device present

And

# camcontrol devlist
camcontrol: couldn't open /dev/xpt0: No such file or directory

They do not work :(

Would be appreciated for any hint.

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


msk0 interface stops working when downloading

2010-11-23 Thread Andrew Moran

Hey guys,

After banging my head against this for a few hours, I've decided to ask for 
help.  I installed FreeBSD 8.1 amd64 on a Shuttle J1 4100 system (tech 
specs here http://us.shuttle.com/J1_4100.aspx).   I installed from DVD and the 
install went fine.

I notice when I pkg_add -r anything,  the network stops responding. 

Some details:

1) I can reproduce it 100% by downloading a large file. low traffic like 
the SSH connection does not trigger it.   I think it's being triggered by 
traffic above a certain rate. 
2) I can recover by restarting the network interfaces (/etc/rc.d/netif stop;  
/etc/rc.d/netif start)
3) I see no errors in dmesg or /var/log/messages.  Nothing at all.
4) I've tried the following in /etc/sysctl.conf:
net.inet.tcp.tso=0
net.inet.tcp.inflight.enable=0

and in /boot/loader.conf:
hw.pci.enable_msix=0
hw.pci.enable_msi=0
hw.bce.tso_enable=0

But the problem persists.

The interface is identified as:

mskc0: Marvell Yukon 88E8057 Gigabit Ethernet port 0xe800-0xe8ff mem 
0xfebfc000-0xfebf irq 17 at device 0.0 on pci2
msk0: Marvell Technology Group Ltd. Yukon Ultra 2 Id 0xba Rev 0x00 on mskc0
msk0: Ethernet address: 80:ee:73:01:60:7d
miibus0: MII bus on msk0
e1000phy0: Marvell 88E1149 Gigabit PHY PHY 0 on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
mskc0: [ITHREAD]



Does anyone know what could be causing this or how I can resolve it?   Any help 
is appreciated, thanks.


--Andy___
freebsd-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: msk0 interface stops working when downloading

2010-11-23 Thread Garrett Cooper
On Tue, Nov 23, 2010 at 3:25 PM, Andrew Moran amo...@forsythia.net wrote:

 Hey guys,

 After banging my head against this for a few hours, I've decided to ask for 
 help.      I installed FreeBSD 8.1 amd64 on a Shuttle J1 4100 system (tech 
 specs here http://us.shuttle.com/J1_4100.aspx).   I installed from DVD and 
 the install went fine.

 I notice when I pkg_add -r anything,  the network stops responding.

 Some details:

 1) I can reproduce it 100% by downloading a large file.     low traffic like 
 the SSH connection does not trigger it.   I think it's being triggered by 
 traffic above a certain rate.
 2) I can recover by restarting the network interfaces (/etc/rc.d/netif stop;  
 /etc/rc.d/netif start)
 3) I see no errors in dmesg or /var/log/messages.  Nothing at all.
 4) I've tried the following in /etc/sysctl.conf:
 net.inet.tcp.tso=0
 net.inet.tcp.inflight.enable=0

 and in /boot/loader.conf:
 hw.pci.enable_msix=0
 hw.pci.enable_msi=0
 hw.bce.tso_enable=0

 But the problem persists.

 The interface is identified as:

 mskc0: Marvell Yukon 88E8057 Gigabit Ethernet port 0xe800-0xe8ff mem 
 0xfebfc000-0xfebf irq 17 at device 0.0 on pci2
 msk0: Marvell Technology Group Ltd. Yukon Ultra 2 Id 0xba Rev 0x00 on mskc0
 msk0: Ethernet address: 80:ee:73:01:60:7d
 miibus0: MII bus on msk0
 e1000phy0: Marvell 88E1149 Gigabit PHY PHY 0 on miibus0
 e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
 1000baseT-FDX, auto
 mskc0: [ITHREAD]

 Does anyone know what could be causing this or how I can resolve it?   Any 
 help is appreciated, thanks.

1. freebsd-stable is the proper list, not freebsd-current.
2. I have a similar chipset (not the same though) that hasn't had
any issues for a while:

$ pciconf -lv | grep -A 3 msk
ms...@pci0:2:0:0:   class=0x02 card=0x81f81043 chip=0x436411ab
rev=0x12 hdr=0x00
vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
device = 'Yukon PCI-E Gigabit Ethernet Controller (88E8056)'
class  = network
$ devinfo -v | grep -A 3 mskc0
mskc0 pnpinfo vendor=0x11ab device=0x4364 subvendor=0x1043
subdevice=0x81f8 class=0x02 at slot=0 function=0
  msk0
miibus0
  e1000phy0 pnpinfo oui=0x5043 model=0xb rev=0x1 at phyno=0
$ uname -a
FreeBSD orangebox.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r215607M:
Sat Nov 20 21:22:34 UTC 2010
gcoo...@orangebox.local:/usr/obj/usr/src/sys/ORANGEBOX  amd64

Sorry for not grabbing the full dmesg output, but unfortunately I
have BUS_DEBUG turned on for this test box, which blows out my syslog
buffer at boot :).
I've CCed yongari@ for comment.
Thanks,
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: new user questions. (Before I back myself into a corner!)

2010-11-23 Thread Nerius Landys
 I'd like to:-
 Have a ssh login via LAN available, I believe that's a standard feature,
 but I expressedly disabled that (well, told it not to implement it) when
 I orignaly installed the OS.   Or have a VNC server running.

Add the following line:

sshd_enable=YES

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


Re: libm alternative in ports

2010-11-23 Thread Tobias
On Tue, Nov 23, 2010 at 4:15 PM, Alexander Best arun...@freebsd.org wrote:

 On Tue Nov 23 10, Chris Brennan wrote:
  On Tue, Nov 23, 2010 at 4:00 PM, Alexander Best arun...@freebsd.org
 wrote:
 
   hi there,
  
   does anybody if there's an alternative for libm in the ports dir? i
 need
   it,
   because the newest snapshots of mplayer require log2() and log2f(),
 which
   the
   base libm doesn't support.
  
   cheers.
   alex


Can't you just calculate it yourself?
log2(n) = log10(n)/log10(2)?
http://logbase2.blogspot.com/2007/12/log-base-2.html

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


foo; no such thing as a dual-nic atom firewall

2010-11-23 Thread Gary Kline
Maybe someone on-list can help me; after 5+ hours of clicking and
typing, I can't find an atom cpu computer with dual NICs.  I
_thought_ I'd found a computer to replace to Kayak firewall
[pfSense], but nada.

Any wizards on this list have a clue?

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.97a release of Jottings: http://jottings.thought.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: new user questions. (Before I back myself into a corner!)

2010-11-23 Thread Beech Rintoul
On Tuesday 23 November 2010 13:55:51 Dave wrote:

SNIP
 
 Have a small web server, again I've read that Apache can do a good job,
 but I don't want (nor need) all it's facilities, in particular I need to
 lock it down so no Put's can happen for a start!  The web pages are
 simple flat form, text and static graphics, with a little client side
 scripting, purely to find the client's local date and time, to select the
 graphic to serve.

Two good choices for a lightweight webserver would be:

www/cherokee  Easy to configure

www/lighttpd  Also lightweight and easy to configure

 Have a FTP server, so I can automate some of the web page graphics
 updates, from other systems that generate the data, and can FTP files
 across the LAN, also of course for general web page maintenance needs.

ftp/proftpd 

Cheers

Beech


-- 
---
Beech Rintoul - FreeBSD Developer - be...@freebsd.org
/\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail  | http://people.freebsd.org/~beech
 X  - NO Word docs in e-mail | Skype: akbeech
/ \ - http://www.FreeBSD.org/releases/8.0R/announce.html
---





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


Re: new user questions. (Before I back myself into a corner!)

2010-11-23 Thread Kevin Kinsey

Dave wrote:


Hi. Sorry ... snip


Hello, and welcome.  And I made it a bit shorter ;-)

  I'd like to:-
Have a ssh login via LAN available, I believe that's a standard feature, 
but I expressedly disabled that (well, told it not to implement it) when 
I orignaly installed the OS.   Or have a VNC server running.


As someone mentioned:
   sshd_enable=YES
in /etc/rc.conf.  You can then either a] reboot, or b] issue the
following with root privileges:
   /etc/rc.d/sshd start

Have a small web server, again I've read that Apache can do a good job, 
but I don't want (nor need) all it's facilities, in particular I need to 
lock it down so no Put's can happen for a start!  The web pages are 
simple flat form, text and static graphics, with a little client side 
scripting, purely to find the client's local date and time, to select the 
graphic to serve.


I believe Beech had some advice on this.  It's probably pretty good :-)

Have a FTP server, so I can automate some of the web page graphics 
updates, from other systems that generate the data, and can FTP files 
across the LAN, also of course for general web page maintenance needs.


The base system ftpd is run from inetd, a super server which can serve
several small protocols.  Have a look at /etc/inetd.conf.  The first real 
line:

#ftp stream  tcp nowait  root/usr/libexec/ftpd   ftpd -l

   Uncomment that (remove the 'hash'), and save it (you'll have to be root
again, of course).

See if inetd is running:

$ pgrep inetd

If you get a number(PID), it's running.  Otherwise, you'll probably need
to enable it.  Again, you need:
  inetd_enable=YES
in /etc/rc.conf.  Add the line and either a] reboot, or b] issue the
following with root privileges:
   /etc/rc.d/inetd start

Sound familiar?

*IF* inetd was *already running*, all you should have to do is issue:

$ kill -HUP `pgrep inetd`

It'd be nice to have a  VPN endpoint, but not esential, as that is 
currently living on another W2k box.  But in the long term perhaps.  The 
only complication with that, is I need to be able to tunnel a UDP VoIP 
stream over/throug it.  (I currently use Hamachi on Windows for that, it 
works well.)  Also, the other end needs to live on a XP (or later) 
Laptop.


I'll leave vpn to someone more knowledgeable in that area.  AFAIK you'll
have to install a port; /usr/ports/security/openvpn is likely the canonical
program, but, as I say, seek other advice on that fo' shizzle ;-)

I would preffer to 
have FTP login's that are in no way related to any system login users.


I can't help with that either; check the docs on Beech's suggestions,
perhaps.

Lastly, I have everything so far (on the Win2k box) working well with 
highly non standard (high numbered) ports.   Even thoug it's exposed 
(via port forwarding in the router) to the outside, there is next to no 
noise, (script kiddies, chinese hackers etc) poking arround my back 
passage.


Of all the stuff I've read so far in the FreeBSD handbook, and a few 
other places, not one mention is made (that I can see so far) of how to 
set services for alternative port numbers?


That's generally in the configuration file for the server.  This information
might be available in the manpage, if one exists.

For example:

$man sshd | col -bx  ~/sshd.txt
$ grep -c port ~/sshd.txt
22

So, there's at least 22 mentions of port in the sshd manpage.
As it turns out, there's a line in /etc/ssh/sshd_config that gives
it right away:

$ grep -i port /etc/ssh/sshd_config
#Port 22
# Disable legacy (protocol version 1) support in the server for new
#GatewayPorts no

So, remove the comment from the Port 22 line, change the number
from the default 22 (222, perhaps, for memory's sake?) and either a]
reboot, or b] kill -HUP `pgrep sshd`   (sounding REAL familiar now).

Incidentally, one might suggest that running on non-standard ports
is merely security by obscurity.  In the case of sshd, at least, a
better solution might be to only allow key-based authentication; but,
as I said, that's just a suggestion.  I have done such things myself
a time or two ... I kinda think I just delayed the inevitable in that
case, though.

Lastly, as I don't want to break the existing NTP server, I may find 
another PC of similar spec, to mess with, witn some sort of impunity.


Well, as I mention, often you can enable and start these additional
services from the base system with little or no interruption to extant
services at all (which, IMHO, is exactly as a Real Server should work,
take that, M$).  But I suppose we'd certainly understand.  You might
even just get a Live-CD distribution and dink around with that.  AFAIK,
you could run ftpd, inetd, and sshd temporarily on those just to get
a feel for how to administer them.

My $0.02,

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

Re: libm alternative in ports

2010-11-23 Thread Alexander Best
On Tue Nov 23 10, Tobias wrote:
 On Tue, Nov 23, 2010 at 4:15 PM, Alexander Best arun...@freebsd.org wrote:
 
  On Tue Nov 23 10, Chris Brennan wrote:
   On Tue, Nov 23, 2010 at 4:00 PM, Alexander Best arun...@freebsd.org
  wrote:
  
hi there,
   
does anybody if there's an alternative for libm in the ports dir? i
  need
it,
because the newest snapshots of mplayer require log2() and log2f(),
  which
the
base libm doesn't support.
   
cheers.
alex
 
 
 Can't you just calculate it yourself?
 log2(n) = log10(n)/log10(2)?
 http://logbase2.blogspot.com/2007/12/log-base-2.html

thanks a lot for the hint. that might be a temporal solution. i don't think
log2() and log2f() can be implemented that simply, because POSIX defines quite
a few historical bugs which programs rely on.

cheers.
alex

 
 --Tobias

-- 
a13x
___
freebsd-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: new user questions. (Before I back myself into a corner!)

2010-11-23 Thread Charlie Kester

On Tue 23 Nov 2010 at 17:43:32 PST Beech Rintoul wrote:

On Tuesday 23 November 2010 13:55:51 Dave wrote:

SNIP


Have a small web server, again I've read that Apache can do a good job,
but I don't want (nor need) all it's facilities, in particular I need to
lock it down so no Put's can happen for a start!  The web pages are
simple flat form, text and static graphics, with a little client side
scripting, purely to find the client's local date and time, to select the
graphic to serve.


Two good choices for a lightweight webserver would be:

www/cherokee  Easy to configure

www/lighttpd  Also lightweight and easy to configure


Another good one is www/hiawatha  - fast, secure, easy to configure

Despite popular misimpressions, there are many more webservers out there
besides Apache and IIS. It will probably be well worth your time, Dave,
to spend some time at freshports.org, browsing the www category.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How long laptop battery should live ?

2010-11-23 Thread Ian Smith
In freebsd-questions Digest, Vol 338, Issue 3, Message: 12
On Tue, 23 Nov 2010 22:34:16 +0100 David DEMELIER demelier.da...@gmail.com 
wrote:

  I just realized that my HP laptop lost the half battery capacity. Take a 
  look :
  
  mark...@melon ~ $ acpiconf -i 0
  Design capacity: 4400 mAh
  Last full capacity:  2132 mAh
  Technology:  secondary (rechargeable)
  Design voltage:  14400 mV
  Capacity (warn): 200 mAh
  Capacity (low):  100 mAh
  Low/warn granularity:100 mAh
  Warn/full granularity:   100 mAh
  Model number:Primary
  Serial number:   02109 2009/08/11
  Type:LIon
  OEM info:Hewlett-Packard
  State:   charging
  Remaining capacity:  0%
  Remaining time:  unknown
  Present rate:3061 mA
  Voltage: 15751 mV

'Remaining capacity: 0%' should indicate that you ran acpiconf -i0 when 
the battery was fully discharged, and you'd just started charging it?

Was that the case?  Seems a bit strange that the battery would already 
be at 15.75V at start of charge, though the 3A charge rate sounds fair.
Does it come up to showing 100% charged later?

  Design capacity: 4400 mAh
  Last full capacity:  2132 mAh
  
  I'm guessing if this should be, the laptop has only about 8 months and
  I don't use it much on battery, only around one day per week and not
  until the battery is empty. If I remember correctly my old laptop
  didn't lost so much of capacity in a few months like that.

Yes 8 (or 15) months is way too soon to lose half its capacity, even if 
you'd been running it on battery for a lot of the time.  This old Compaq 
laptop's battery (Li-ion, 14.4V) is at least 7 years old, and still runs 
for about 1.5 hours, ie 40-50% capacity, and in a subtropical climate.

  My question is : how long a battery should live ? is anything could
  bring down the battery sooner ?

It could just be a faulty one, but you'd be very lucky to get a battery 
replaced under warranty.  It says it's an HP battery, manufactured only 
15 months ago, so it's unlikely to be a 'shelf life' problem.

  I hope the next battery wont be too much expensive and will live more..

It may be that the little chip inside the battery that counts charge in 
and out has lost track of itself.  This tends to happen more commonly on 
Li-ion batteries that are rarely or never fully discharged, and at least 
some manufacturers including IBM recommend 'conditioning' batteries from 
time to time to correct this.

For example, this year I bought two second-hand IBM Thinkpad T23s whose 
batteries both responded very well to about three full discharge / full 
charge cycles; one now shows about 2/3 of original capacity, up from 
about 1/3, and both batteries were likely already several years old.

To get to full discharge you need to run it right down, beyond where the 
OS would normally shutdown or suspend at somewhere between 5% and 2% of 
capacity.  What I do from that point is start it up in the BIOS Setup, 
turn off anything that would have it shutdown or suspend on low battery, 
and wait till it turns off, completely exhausted.  From the BIOS Setup 
screen there's no danger that this could mess up a filesystem.

Then plug it in and let it fully charge, preferably without running it. 
Once fully charged, turn it on and check its 'Last full capacity' again.  
It may take three or more such full cycles until you see no improvement.

While you're at it, you could actually time how long it runs till fully 
discharged; this also may improve somewhat, but what we're correcting 
here it the battery's own BELIEF in its capacity and state of charge.

HTH, Ian  (please cc me on any reply, I take this list as a digest)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How long laptop battery should live ?

2010-11-23 Thread Adam Vande More
On Tue, Nov 23, 2010 at 10:55 PM, Ian Smith smi...@nimnet.asn.au wrote:

I'm guessing if this should be, the laptop has only about 8 months and
   I don't use it much on battery, only around one day per week and not
   until the battery is empty. If I remember correctly my old laptop
   didn't lost so much of capacity in a few months like that.


 Yes 8 (or 15) months is way too soon to lose half its capacity, even if
 you'd been running it on battery for a lot of the time.  This old Compaq
 laptop's battery (Li-ion, 14.4V) is at least 7 years old, and still runs
 for about 1.5 hours, ie 40-50% capacity, and in a subtropical climate.


As already mentioned in a previous link you can't determine a battery's
expected viability by age alone.  The amount and way you've
charged/discharged the battery will factor into it's performance along with
other things.  You should also consult the owners manual as battery
characteristics will vary some.

IIRC, there where some improvement to HEAD while ago that increased FreeBSD
power usage efficiecy a non-negligible amount.  Perhaps those improvements
where MFC'd already, Google around either way as there are settings to tune
which will decrease power consumption.


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