ls time/date format from ftpd

2008-02-09 Thread Malcolm Kay
The default output from ls in a normal shell on my system
is
mode links owner group size month day time/year filename
corresponding to LANG=C or en_US...
For most other locales month and day are swapped, including 
mine { LANG=en_AU.ISO8859-1 }.

When I access my account from another machine via ftp the 
ls command always reports day before month whether or not
I attempt to set the locale. All this suits my sensibilities
but it upsets MS Windows. Mounting under windows as a network
place MS becomes very confused in trying to interpret directory
listings in which the day precedes the maonth.

Is there someway to force ftpd to report ls according to the
LANG=C default so that I can successfully access through windows.

Any ideas please?

The FreeBSD system is 6.3-Release and the windows W2K.

Malcolm Kay
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Some ideas for FreeBSD

2008-02-09 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of
 [EMAIL PROTECTED]
 Sent: Friday, February 08, 2008 10:53 AM
 To: freebsd-questions@freebsd.org
 Subject: RE: Some ideas for FreeBSD
 
 
 Swapping systems may have performed better when thrashing started 
 because they 
 had lots of controls to say who (or what type of workload) got 
 screwed when 
 memory was scarce.

:-)

I think it was more something of the times - back then, it was
Look Ma, the elephant can dance!

Today, it's more along the lines of which elephant dances the best?

Ted

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


Re: pf.conf for variable interfaces

2008-02-09 Thread Erik Norgaard

Chad Perrin wrote:

How about this:

ext_ifs = { iwi0 bge0 }
block in quick on ext_ifs all
pass out quick on ext_ifs all keep state
...


As long as you don't need statements like iwi0:network which you 
shouldn't on an endpoint, then I guess this will work.


Thanks.  That looks like the answer I wanted.  I don't know why I can't
find any documentation that offers an example of this.  Maybe I'm losing
my Google mojo.


how about man pages? ;-)

man pf.conf is a really good reference.

Cheers, Erik
--
Erik Nørgaard
Ph: +34.666334818   http://www.locolomo.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mv, cp, and sgid on directories (was: cp -p)

2008-02-09 Thread Jonathan McKeown
I think you may be getting too deep into the detail.

Think of the bigger picture:

when I move a file, I don't expect that to change its ownership or 
permissions - it would surprise me if it did;

when I make a copy of a file, I expect to own the copy - after all, what use 
is a private copy I can't do anything with?

FreeBSD generally tries hard not to behave in a surprising way.

The bit that still worries me in this discussion is the sgid bit (pun not 
intended, but I'm not going to delete it now!): as I understand it, creating 
a file has different behaviour on SYSV-derived systems and Berkeley-derived 
systems.

SYSV creates files group-owned by the creator's primary group.
BSD creates files which inherit the group-ownership of the directory they are 
created in.

SYSV behaviour can be changed to BSD behaviour per-directory, by using the 
sgid bit on the directory.
BSD behaviour can't be changed and the sgid bit on a directory is ignored.

Again, could someone confirm whether I'm talking nonsense here?

Jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Problems with WMP54G Wireless Adapter

2008-02-09 Thread Ted Mittelstaedt

I am sorry Daniel, this is a known bug, see here:

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/109227


In src/sys/dev/ral/if_ral_pci.c is:

static const struct ral_pci_ident ral_pci_ids[] = {
{ 0x1814, 0x0201, Ralink Technology RT2560 },
{ 0x1814, 0x0301, Ralink Technology RT2561S },

And your pciconf:

 chip=0x03011814

This would normally force the card to associate with the
ral driver.  The problem however, which is discussed in a
posting here:

http://www.bsdforums.net/forums/showthread.php?t=44385

seems to be that the card you have is using a special
high output version of the Ralink chipset which takes
different firmware - at least, according to the Linux
driver.  In looking through the BSD driver it seems to be
using the same firmware for all of the cards - perhaps the
driver author figured that all of the Ralink chipsets
used the same interface?  Quite often, manufacturers will
release a slightly improved chip and retain the same
interface - the new chip will have a different pci ID
and many times simply adding the pci ID into the existing
driver will get it to work.  That is what appears to have
been done with this particular driver.  Obviously it's not
correct.

What is likely happening is the wrong microcode is loaded
into the card by the driver and the card doesen't boot up,
thus the FreeBSD driver gets no response to it's initialization
sequence after attachment.

I would suggest you add on to the end of the existing PR.
You might also e-mail the driver maintainer.

The one good thing appears that there's been some activity
on this driver in the 7.X series, see here:

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/117655

I would also try downloading the 7.0 beta and try loading that,
it may work.  Perhaps they fixed the driver there.

Otherwise, get a different card.

Ted

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Daniel Tate
 Sent: Friday, February 08, 2008 9:21 PM
 To: freebsd-questions@freebsd.org
 Subject: Problems with WMP54G Wireless Adapter
 
 
 Even though I am relatively new to FreeBSD I have been able to configure 
 most everything flawlessly.
 There is only one problem that has needed fixing and that is with my 
 wireless adapter from Linksys that use the ral(4) driver.
 I have tried using ifconfig, yet I get a response saying that ral 
 doesn't exist even though in my kernel I have the appropriate driver.
 Also when I try dmesg | grep ral0 nothing comes up.
 After all of this I loaded the driver into my kernel using ndisgen(8) 
 and I got a response saying that there was a binary error.
 When I do pciconf -lv i get this:
 
 [EMAIL PROTECTED]:2:0: class=0x028000 card=0x00551737 chip=0x03011814 rev= 
 0x00 
 hdr=0x00
 
 vendor = 'Ralink Technology, Corp'
 class= network
 
 I have searched through various forums and even other mail threads but I 
 have found nothing of value.
 If more information is needed let me know.
 
 Daniel
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mv, cp, and sgid on directories (was: cp -p)

2008-02-09 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Jonathan McKeown wrote:

 The bit that still worries me in this discussion is the sgid bit (pun not 
 intended, but I'm not going to delete it now!): as I understand it, creating 
 a file has different behaviour on SYSV-derived systems and Berkeley-derived 
 systems.
 
 SYSV creates files group-owned by the creator's primary group.
 BSD creates files which inherit the group-ownership of the directory they are 
 created in.
 
 SYSV behaviour can be changed to BSD behaviour per-directory, by using the 
 sgid bit on the directory.
 BSD behaviour can't be changed and the sgid bit on a directory is ignored.
 
 Again, could someone confirm whether I'm talking nonsense here?

That's pretty much correct.  Some SysV-ish systems maintained the concept
of a 'current group' which you could switch your login session to, so
long as you were a member of the group in question and you knew the group
password (if any).  Any files you created would have ownership by your
current UID and GID. That, incidentally, is why there is a password field
in /etc/group at all.  It seems to be pretty much of historical interest
only nowadays -- personally I have never seen a system where group passwords
were ever actually used, and I'm not aware of any utility for manipulating
the passwords in /etc/group.

Anyhow, BSD-ish systems always had a different take on exactly how
group ownership of files and processes should work -- one which didn't
depend on the end user consciously remembering to switch current group
at the appropriate time.

There were various other differences in the way various programs worked in
this area. For instance in early versions of SysV it was possible for a
mortal user to give files away (ie. chown(1) a file they owned to another
user).  Needless to say that was pretty quickly recognised for the
security hole that it is and nowadays anything Unix-like will follow
the POSIX.2 standard where you have to be root to change file ownership.

Cheers,

Matthew

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

iD8DBQFHrZwJ8Mjk52CukIwRCJU5AKCM29geaM6fSjPs8NmTKWbUvhEfrwCeI0+X
FUdibti5cuxquQTDdSETDgA=
=oPMJ
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


JOSEF VESELY; www.freebsd.org access problem

2008-02-09 Thread Josef Vesely
Hi, 

 

I have problem access your web www.freebsd.org http://www.freebsd.org/
from 

couple of my real  virtual computers (VMWARE + WIN XP)

while I have no problem to access from other computers. 

From every computer I can access www.freebsd.cz http://www.freebsd.cz/
without

any problem. 

 

It looks like that your web server do not like these

computers for some reason.   

 

?? Do somebody block access to your website ??

 

I see situation like this first time in my (digital) life.

 

Thank You 

Josef Vesely

  ( IT technician )

 

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


Re: Best practices for managing tweaked ports

2008-02-09 Thread Michaël Grünewald


Le 7 févr. 08 à 23:01, Mel a écrit :


Hi,

On Tuesday 05 February 2008 13:05:12 Michaël Grünewald wrote:


I am seeking for a word in advice in how to automatically tweak some
applications, possibly making packages for them.




The current solution is: I have a post install shell script that  
plugs

my files into appropriate location. This works but there is two
drawbacks:


You're almost there:
- Create a file Makefile.local in the port you need a post-install  
shell

script executed with contents:
PKGINSTALL=/path/to/mycustomizations.sh

This will then be packaged in packages as well.
See pkg_create(1) and in particular -i option, as well as grep
_LATE_PKG_ARGS /usr/ports/Mk/bsd.port.mk

If you wanna do it cleaner, may want to wrap that in:
.if !defined(PKGINSTALL)  !exists(${PKGDIR}/pkg-install)
...
.else
error:
echo Omg they killed kenny
/usr/bin/false
.endif

So that it errors out, if the port starts providing a post-install  
script.


Thank you very much for the that tip!

It seems that this will fail for scripts that have `postinstall', or  
more accurately, that changes may have to be versed in this  
postinstall script, right?

--
Michi

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


Re: inetd + few ip

2008-02-09 Thread Frank Shute
On Fri, Feb 08, 2008 at 04:32:25PM +0200, Roman Otsaljuk wrote:

 how can I specify few ip-addresses inetd listen on? not all. or all
 except few?

Have a look at hosts_access(5) and hosts_options(5).

-- 

 Frank 


 Contact info: http://www.esperance-linux.co.uk/misc/contact.html 

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


Re: pf.conf for variable interfaces

2008-02-09 Thread Chad Perrin
On Sat, Feb 09, 2008 at 11:38:22AM +0100, Erik Norgaard wrote:
 Chad Perrin wrote:
 How about this:
 
 ext_ifs = { iwi0 bge0 }
 block in quick on ext_ifs all
 pass out quick on ext_ifs all keep state
 ...
 
 
 As long as you don't need statements like iwi0:network which you 
 shouldn't on an endpoint, then I guess this will work.
 
 Thanks.  That looks like the answer I wanted.  I don't know why I can't
 find any documentation that offers an example of this.  Maybe I'm losing
 my Google mojo.
 
 how about man pages? ;-)
 
 man pf.conf is a really good reference.

Yeah, I looked through that one.  I didn't read every single word, but I
spent quite a bit of time on it without finding what I was looking for.
The only thing I've found there (now that I know what the solution looks
like in advance) that might have given me a clear hint is this line:

   all_ifs = { $ext_if lo0 }

. . . so thanks for the not-much-help after the fact.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Baltasar Gracian: A wise man gets more from his enemies than a fool from
his friends.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Bad sector on a gstripe

2008-02-09 Thread Alban Hertroys

Hi all,

I'm having trouble locating a bad sector on a gstriped file system.  
Smartd has been nagging about this single bad sector for months now,  
there don't appear to appear any new ones. It's about time I look  
into this...


I got so far that I know the sector number in the partition involved.  
I detailed my attempts after the problem description. I tried newfs- 
ing the filesystem; it's my /tmp - there's nothing of relevance on  
it, but newfs-ing doesn't seem to have marked the sector bad.  
Anything wrong with: newfs -U -o time /dev/stripe/tmp ? I performed  
that from single-user mode after umounting all file-systems.


I tried opening the filesystem with fsdb, but it can't open the  
partition, only the striped file-system - how do I determine which  
sector I'm dealing with on a striped fs? And how do I write to it to  
have it marked as a bad sector?


I'm not sure whether this error means my disk is at the end of its  
life, smartd has been spamming me with this single error about the  
same sector for months now (every half hour!), and it's only the  
third error in the disks' smart log. If I understand the docs of  
smartmontools correctly, this could well be caused by the sector not  
having been written to all this time, which seems plausible to me;  
it's near the end of a mostly empty /tmp...


From the lifetime it appears the disk is nearly two years old  
already, and it's been on pretty much 24/7. Maybe it is time to  
replace it (by a server version probably).


Time for some data.

The disk is an:
Model Family: Seagate Barracuda 7200.7 and 7200.7 Plus family
Device Model: ST3200822A
Serial Number:3LJ020SJ
Firmware Version: 3.01


smartctl says:

Error 3 occurred at disk power-on lifetime: 18356 hours (764 days +  
20 hours)
  When the command that caused the error occurred, the device was  
active or idle

.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 30 ed 61 40  Error: UNC at LBA = 0x0061ed30 = 6417712

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --    
  25 00 20 1f ed 61 40 00  15:42:14.650  READ DMA EXT
  25 00 40 9f e6 61 40 00  15:42:14.419  READ DMA EXT
  25 00 40 df f1 61 40 00  15:42:14.293  READ DMA EXT
  25 00 40 5f e6 61 40 00  15:42:14.049  READ DMA EXT
  25 00 40 5f e9 61 40 00  15:42:13.795  READ DMA EXT


According to fdisk and bsdlabel that's on partition e of slice 1:

# fdisk -s /dev/ad0
/dev/ad0: 387621 cyl 16 hd 63 sec
PartStartSize Type Flags
   1:  63   390716802 0xa5 0x80

So the bad sector is at 6417712 - 63 = 6417649 in /dev/ad0s1.

# bsdlabel /dev/ad0s1
# /dev/ad0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:   52428804.2BSD 2048 16384 32776
  b:  4194304   524288  swap
  c: 3907168020unused0 0 # raw  
part, don't edit

  d:  1048576  47185924.2BSD 2048 16384 8
  e:  1048576  57671684.2BSD 2048 16384 8
  f: 20971520  68157444.2BSD 2048 16384 28552
  g: 362929538 277872644.2BSD 2048 16384 28552

So the bad sector is 6417649 - 5767168 = 650481 in partition /dev/ 
ad0s1e at around 62% of its total size. This is where I started to  
get lost...


I set up partition ad0s1e to be used in /dev/stripe/tmp:

# gstripe list tmp
Geom name: tmp
State: UP
Status: Total=2, Online=2
Type: AUTOMATIC
Stripesize: 4096
ID: 1982480573
Providers:
1. Name: stripe/tmp
   Mediasize: 1073733632 (1.0G)
   Sectorsize: 512
   Mode: r1w1e1
Consumers:
1. Name: ad0s1e
   Mediasize: 536870912 (512M)
   Sectorsize: 512
   Mode: r1w1e2
   Number: 0
2. Name: ad1s1e
   Mediasize: 536870912 (512M)
   Sectorsize: 512
   Mode: r1w1e2
   Number: 1


I tried: (used -r to prevent it marking my FS's dirty while I was  
testing)


# fsdb -r /dev/ad0s1e
** /dev/ad0s1e (NO WRITE)
Cannot find file system superblock

LOOK FOR ALTERNATE SUPERBLOCKS? no

fsdb: cannot set up file system `/dev/ad0s1e'
Exit 1

and:

fsdb -r /dev/stripe/tmp
** /dev/stripe/tmp (NO WRITE)
Examining file system `/dev/stripe/tmp'
Last Mounted on /tmp
current inode: directory
I=2 MODE=40777 SIZE=512
BTIME=Feb  9 12:01:18 2008 [0 nsec]
MTIME=Feb  9 12:54:41 2008 [0 nsec]
CTIME=Feb  9 12:54:41 2008 [0 nsec]
ATIME=Feb  9 13:23:07 2008 [0 nsec]
OWNER=root GRP=wheel LINKCNT=7 FLAGS=0 BLKCNT=4 GEN=7a46458d
fsdb (inum: 2)

I figured the findblk command would give me the inode of the problem  
area (although there won't be one if there are no files in that  
sector I think?), but I'm dealing with sectors striped across two  
disks... I have no idea which block number would be appropriate.  
The disk containing the bad sector is apparently the first in the  
stripe, that much I gathered.


So, how to continue?


Re: JOSEF VESELY; www.freebsd.org access problem

2008-02-09 Thread Bruce Cran

Martin Solar wrote:

I have problem access your web www.freebsd.org http://www.freebsd.org/
from

couple of my real  virtual computers (VMWARE + WIN XP)


I have this problem only with Opera browser. Other browsers are working. 
Which browser are you using ?


I think there might be an issue with Opera and IPv6: since 
www.freebsd.org has an IPv6 record it may be trying to use that and 
failing to fall-back to IPv4 if it can't establish a connection. 
However if .org fails and .cz works with the same browser then I don't 
know what the issue could be, since both of those sites use IPv6.


--
Bruce
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: Whats wrong with gmail?

2008-02-09 Thread Chad Perrin
On Fri, Feb 08, 2008 at 06:12:09PM -0700, Modulok wrote:
 
  I just cannot bring myself to trust anyone else for email.  Running your
  own server on BSD or Linux is so bloody easy, if you're paranoid about
  email for archival, privacy, or other reasons, just run your own server.
 
 You have already instilled trust in countless thousands. Is it a
 problem? Maybe. It depends on how important one feels the
 confidentiality of the information is. For Top Secret classified
 documents, I would not use plain text gmail or any other plain-text
 service. For online shopping accounts and participating in mailing
 lists, I do.

I'm not sure what you mean by online shopping accounts, but if it
involves receiving passwords in email for accounts that can be used to
spend your money, it's probably a bad idea to use unencrypted email.


 
 If one really wants to get paranoid, they had best throw in the towel
 and crawl under a rock now. Do not use commercial operating systems,
 they spy on you. Probably. Is open-source software any different?
 Maybe, maybe not. There is no reason why it should be trusted any more
 than its closed-source counterpart. We can audit the source code.
 Not really. Most people would be incapable of this feat, for even the
 simplest of programs. Even for those who possess the technical prowess
 to accomplish such a feat, do they really have the funding, manpower
 and time to audit every piece of code they come in contact with?
 Obviously not, for if they did, programs would not have bugs.

Open source software doesn't just benefit from an individual ability to
audit source code -- it benefits from a community ability to audit source
code.  If *anyone who wants to* can audit the source code, the chances
that something wrong with it in the sense of intentionally included
spyware will go undetected gets vanishingly small.  This, in turn, means
that the likelihood of people inserting such code into a reasonably
popular open source OS is also vanishingly small.

Meanwhile, with a closed source OS, quite the opposite is the case.
There's no way for customers to really be entirely sure what's in the
source code, generally speaking.  This means not only that the kind of
spyware-like code we're discussing might not be discovered -- it also
means that the vendor can insert such code pretty much with impunity, and
all developers may be subject to nondisclosure agreements with regard to
such code.


 
 Even if one could audit every program they use, what about the
 libraries on which those programs depend? How about the system calls?
 What about the compiler? If it has been tainted it would be quite
 difficult to detect. What about the assemblers? How about the
 low-level firmware? Once you get all of those bits audited, over the
 course of the remainder of your natural born lifespan, you'll be faced
 with the feat of trying to examining the hardware on which the code
 runs. After all, if the hardware cannot be trusted, all the rest is
 moot.

You seem to be saying Since some aspects of security are difficult, we
should never worry about any aspects of security at all.


 
 Security is a very serious business that should not be ignored, but
 too many people get too concerned over all the wrong aspects and miss
 the big picture. Trust is relative and required, despite your tools of
 choice. Even using Linux or BSD, you instill significant trust in a
 great many people, most of whom you do not even know.
 
 What's wrong with gmail? It depends on who you ask.

I can agree with that.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Kent Beck: I always knew that one day Smalltalk would replace Java.  I
just didn't know it would be called Ruby.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


should I change to multicore CPU??

2008-02-09 Thread Tsu-Fan Cheng
Hi,
 I know that freebsd7 has huge improvement on multi-threading
execution. I wonder if I upgrade to 7, would I feel it?? I now own a
amd64/3400+, running 6.3. It's just personal use, download files,
watch movies, etc. I guess it will be faster on multi-core when I run
mencoder to encode movie, but aside from that, will it mike much
difference to me?? thank you!!

TFC
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: JOSEF VESELY; www.freebsd.org access problem

2008-02-09 Thread Martin Solar
 I have problem access your web www.freebsd.org http://www.freebsd.org/
 from
 
 couple of my real  virtual computers (VMWARE + WIN XP)

I have this problem only with Opera browser. Other browsers are working. 
Which browser are you using ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I get unicode support in python?

2008-02-09 Thread Eric Mesa
Message: 12
 Date: Fri, 8 Feb 2008 16:06:50 +0100
 From: Heiko Wundram (Beenic) [EMAIL PROTECTED]
 Subject: Re: How do I get unicode support in python?
 0: ordinal not in range(128)
  print u\xfa.encode(latin-1)
 ú
 

 HTH!

 --
 Heiko Wundram
 Product  Application Development


 --



The .encode solution worked perfectly for me!  I am using it for the page
you get when you fill out the year here:
http://server.ericsbinaryworld.com/viet_zodiac_intro.html
(right now you have to switch to utf-8, I haven't set it to do that
automatically yet)

Thanks again!
-- 
Eric Mesa
http://www.ericsbinaryworld.com
http://server.ericsbinaryworld.com
Do not worry about those things that are outside of your circle of
influence.  For since they are outside of your power to control them it is
simply a waste of time and energy to dwell on them.  Instead, turn your
attention to those things that you can control and grow your influence in
those areas and you will see the effects begin to trickle out to those items
that were previously out of your power to influence. – Eric Mesa inspired
by Covey's 7 Habits of Highly Effective People
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: JOSEF VESELY; www.freebsd.org access problem

2008-02-09 Thread Martin Solar
On Sat, 09 Feb 2008 14:55:27 +, Bruce Cran wrote
 Martin Solar wrote:
  I have problem access your web www.freebsd.org http://www.freebsd.org/
  from
 
  couple of my real  virtual computers (VMWARE + WIN XP)
  
  I have this problem only with Opera browser. Other browsers are working. 
  Which browser are you using ?
 
 I think there might be an issue with Opera and IPv6: since 
 www.freebsd.org has an IPv6 record it may be trying to use that and 
 failing to fall-back to IPv4 if it can't establish a connection. 
 However if .org fails and .cz works with the same browser then I 
 don't know what the issue could be, since both of those sites use IPv6.

I know about that issue. For me is also freebsd.cz not working in Opera. For 
such a pages I am using other browser.

MS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Three wishes of a wannabe developer

2008-02-09 Thread John Almberg

Bon dia, Rui (my wife is Brazillian)


   That is t he case of economics. In the logic of freesoftware I want
   make programs to  fill that vacuum. Well, some of it. What I  
want to

   do are economic model ba sed simulators. I could do it in a
   spreadsheet, but I would rather make a n ice application and  
make it
   available for everyone. For that, both competen cies in the  
economics

   and computing areas are necessary.


I'd suggest looking into a real object oriented language, rather than  
a systems programming language like C, or a glue language like Perl.  
I personally think Smalltalk is a great language for beginners,  
particularly the Squeak version, which is available for free for most  
platforms.


Several reasons:
 - you will learn good habits
 - you will, by necessity, learn and object oriented approach
 - Squeak is a great learning tool, with excellent debugging tools
 - there are some great tutorials and tutorial-like Squeak books
 - there are dozens of general Smalltalk books available used on  
Amazon, for a few bucks each. And the people who write Smalltalk  
books tend to be very smart guys, who will put your feet on the right  
path. Some are a bit dated and are too oriented towards Smalltalk  
platforms that no longer exist, but many of the later ones are fine  
for learning the concepts... I have a whole shelf of Smalltalk books  
that I bought for a few bucks each.
 - they have a very helpful mailing list for beginners -  
[EMAIL PROTECTED] It's a small list, very  
intimate, few posers, mainly people who genuinely want to help.


I'd give myself a good 6 months to a year to learn the basics... you  
can't rush the first step.


Once you get the basic idea behind objects, you might want to branch  
out into Ruby, another great object oriented language. All the  
concept you learned from Smalltalk will carry right over, and since  
many Ruby folk are coming from the procedural world (and really don't  
get objects), you will have a leg up on them.


And Ruby will set you up for using Rails, which is an ideal platform  
for deploying web applications, which will allow you to make your  
economic simulations available to anyone on the net.


Just my two cents.

Brgds: John


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


Re: Three wishes of a wannabe developer

2008-02-09 Thread Jerry McAllister
On Sat, Feb 09, 2008 at 11:01:53AM -0500, John Almberg wrote:

 Bon dia, Rui (my wife is Brazillian)
 
That is t he case of economics. In the logic of freesoftware I want
make programs to  fill that vacuum. Well, some of it. What I  
 want to
do are economic model ba sed simulators. I could do it in a
spreadsheet, but I would rather make a n ice application and  
 make it
available for everyone. For that, both competen cies in the  
 economics
and computing areas are necessary.
 
 I'd suggest looking into a real object oriented language, rather than  
 a systems programming language like C, or a glue language like Perl.  
 I personally think Smalltalk is a great language for beginners,  
 particularly the Squeak version, which is available for free for most  
 platforms.
 
 Several reasons:
  - you will learn good habits
  - you will, by necessity, learn and object oriented approach
  - Squeak is a great learning tool, with excellent debugging tools

Sounds like the main arguments that used to be made for learning Pascal.

Might be good, but not subscribed to by very many.

jerry


  - there are some great tutorials and tutorial-like Squeak books
  - there are dozens of general Smalltalk books available used on  
 Amazon, for a few bucks each. And the people who write Smalltalk  
 books tend to be very smart guys, who will put your feet on the right  
 path. Some are a bit dated and are too oriented towards Smalltalk  
 platforms that no longer exist, but many of the later ones are fine  
 for learning the concepts... I have a whole shelf of Smalltalk books  
 that I bought for a few bucks each.
  - they have a very helpful mailing list for beginners -  
 [EMAIL PROTECTED] It's a small list, very  
 intimate, few posers, mainly people who genuinely want to help.
 
 I'd give myself a good 6 months to a year to learn the basics... you  
 can't rush the first step.
 
 Once you get the basic idea behind objects, you might want to branch  
 out into Ruby, another great object oriented language. All the  
 concept you learned from Smalltalk will carry right over, and since  
 many Ruby folk are coming from the procedural world (and really don't  
 get objects), you will have a leg up on them.
 
 And Ruby will set you up for using Rails, which is an ideal platform  
 for deploying web applications, which will allow you to make your  
 economic simulations available to anyone on the net.
 
 Just my two cents.
 
 Brgds: John
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


libicui18n.so.36 not found, required by evolution

2008-02-09 Thread E. J. Cerejo
Running FBSD 6.3 and after updating the ports where icu was one of the 
ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object 
libicui18n.so.36 not found, required by evolution error, I can see 
that the new version of icu installed libicui18n.so.38.  Is there a 
better way to fix this or should I just symlink libicui18n.so.38 to 
libicui18n.so.36?

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


Re: libicui18n.so.36 not found, required by evolution

2008-02-09 Thread Peter Boosten

Quoting E. J. Cerejo [EMAIL PROTECTED]:


Running FBSD 6.3 and after updating the ports where icu was one of the
ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object
libicui18n.so.36 not found, required by evolution error, I can see
that the new version of icu installed libicui18n.so.38.  Is there a
better way to fix this or should I just symlink libicui18n.so.38 to
libicui18n.so.36?


Rebuild evolution. I did the same with tin.

Peter
--
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: libicui18n.so.36 not found, required by evolution

2008-02-09 Thread Josh Carroll
On Feb 9, 2008 12:17 PM, E. J. Cerejo [EMAIL PROTECTED] wrote:
 Running FBSD 6.3 and after updating the ports where icu was one of the
 ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object
 libicui18n.so.36 not found, required by evolution error, I can see
 that the new version of icu installed libicui18n.so.38.  Is there a
 better way to fix this or should I just symlink libicui18n.so.38 to
 libicui18n.so.36?

I ran into this myself. The best thing to do is rebuild all the ports
that depend on the icu port:

portupgrade -fr icu-3.8.1

That should rebuild all the things linking against libicui18n.so.36
and re-link them against the new libicu.

You could also do this manually with a small shell script to ldd
things in /usr/local/lib and /usr/local/bin and identify things linked
against the old library and then use pkg_which to find which
packages they belong to, and portupgrade/re-install those.

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


openoffice.org-2.4.20080109 pkg working on 6.3

2008-02-09 Thread p9_gkvye

There have been comments about problems with
openoffice freezing when saving or opening files.  It
appears to involve language/locale stuff.  For me, the
following seems to work with the 2.4 package (perhaps
not with 2.3.1_1) on 6.3-RELEASE.

1.  As root, edit /etc/login.conf to set your system
language.  Mine is now:

# diff /etc/login.conf.0 /etc/login.conf
45c45,46
   :umask=022:
---
   :umask=022:\
   :lang=en_US.UTF-8:

2. As root, update the login.conf.db:

# cap_mkdb /etc/login.conf

3. Log out and log in again.

# echo $LANG
en_US.UTF-8

4. As root, force openoffice to use your language (the
-f seems critical):

# openoffice.org-SRC680_m242-setofficelang -a -f en-US

(Note that's en-US, not en_US.)

(The user who's going to run openoffice might need to
do the same thing.  It also might help, if problems
persist, to remove/rename your ~/.openoffice.org2
directory and start fresh.)

Good luck.




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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


Re: libicui18n.so.36 not found, required by evolution

2008-02-09 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

E. J. Cerejo wrote:
 Running FBSD 6.3 and after updating the ports where icu was one of the
 ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object
 libicui18n.so.36 not found, required by evolution error, I can see
 that the new version of icu installed libicui18n.so.38.  Is there a
 better way to fix this or should I just symlink libicui18n.so.38 to
 libicui18n.so.36?

Nope.  Symlinking shlibs of different ABI versions together is the
wrong answer.  There's a reason the ABI version number was bumped,
and it indicates the new shlib is not compatible with the old one.

Formally, the correct fix is:

   # portupgrade -rf icu-\*

or the equivalent in whatever ports management software you prefer.

However this is pretty unfortunate as icu is a basic component that
a large number of packages depend upon.  Expect to spend a long time
compiling.

Oh, and it's a good idea to update as the latest icu fixes some
security problems.  See 

   http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4770
   http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4771

   http://secunia.com/advisories/28575/

Cheers,

Matthew

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

iD8DBQFHreLs8Mjk52CukIwRCMzAAJ9QwaKZ7ee0UziRHHQrgozal//OOwCfQIWz
UlPwgn3phXf8dFtS4HMNPVo=
=q3sG
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: libicui18n.so.36 not found, required by evolution

2008-02-09 Thread E. J. Cerejo
On Saturday 09 February 2008 12:29:16 Matthew Seaman wrote:
 E. J. Cerejo wrote:
  Running FBSD 6.3 and after updating the ports where icu was one of the
  ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object
  libicui18n.so.36 not found, required by evolution error, I can see
  that the new version of icu installed libicui18n.so.38.  Is there a
  better way to fix this or should I just symlink libicui18n.so.38 to
  libicui18n.so.36?

 Nope.  Symlinking shlibs of different ABI versions together is the
 wrong answer.  There's a reason the ABI version number was bumped,
 and it indicates the new shlib is not compatible with the old one.

 Formally, the correct fix is:

# portupgrade -rf icu-\*

 or the equivalent in whatever ports management software you prefer.

 However this is pretty unfortunate as icu is a basic component that
 a large number of packages depend upon.  Expect to spend a long time
 compiling.

 Oh, and it's a good idea to update as the latest icu fixes some
 security problems.  See

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4770
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4771

http://secunia.com/advisories/28575/

   Cheers,

   Matthew

Thanks for the answer but there's no way that I'm going to do that, it's just 
too many apps, pkg_info tells me this:

Information for icu-3.8.1:

Required by:
ORBit2-2.14.12
abiword-gnome-2.4.6_3
alacarte-0.11.3_2
amarok-1.4.8
arts-1.5.8,1
at-spi-1.20.1
atk-1.20.0
avahi-0.6.22
avahi-app-0.6.22_1
bug-buddy-2.20.1
cairomm-1.2.4_1
ccsm-0.6.0
compiz-0.6.2
compiz-fusion-0.6.0
compiz-fusion-plugins-extra-0.6.0
compiz-fusion-plugins-main-0.6.0
compizconfig-backend-gconf-0.6.0_1
compizconfig-python-0.6.0.1
dasher-4.6.1,1
dbus-glib-0.74
deskbar-applet-2.20.3
desktop-file-utils-0.14
eel-2.20.0
ekiga-2.0.11_1
emerald-0.5.2_1
enchant-1.3.0
eog-2.20.4
epiphany-2.20.3
evince-2.20.2
evolution-2.12.3
evolution-data-server-1.12.3_1
evolution-exchange-2.12.3
evolution-webcal-2.12.0
fast-user-switch-applet-2.20.0
file-roller-2.20.3,1
firefox-2.0.0.11_1,1
ftpcube-0.5.1_1
gail-1.20.2
gamin-0.1.9
gcalctool-5.20.2_1,2
gconf-editor-2.20.0,1
gconf2-2.20.1
gdm-2.20.3
gedit-2.20.4
gftp-2.0.18_6
gimp-2.4.3,2
gimp-app-2.4.3,1
gimp-gutenprint-5.1.3_2
gimp-help-0.12
gkrellm-2.3.1_1
glib-2.14.6
glibmm-2.14.2,1
gmime-2.2.15
gmime-sharp-2.2.15
gnash-0.8.1_1
gnome-applets-2.20.1
gnome-control-center-2.20.3
gnome-desktop-2.20.3
gnome-games-2.20.3
gnome-games-extra-data-2.20.0
gnome-icon-theme-2.20.0_1
gnome-keyring-2.20.3
gnome-keyring-manager-2.20.0
gnome-mag-0.14.10
gnome-media-2.20.1
gnome-menus-2.20.3
gnome-mount-0.6_4
gnome-netstatus-2.12.1_4
gnome-nettool-2.20.0,1
gnome-panel-2.20.3
gnome-power-manager-2.20.2
gnome-session-2.20.3
gnome-sharp-2.16.0_4
gnome-speech-0.4.18
gnome-spell-1.0.8
gnome-system-monitor-2.20.2
gnome-system-tools-2.20.0
gnome-terminal-2.18.4
gnome-themes-2.20.2
gnome-themes-extras-2.20_1
gnome-utils-2.20.0.1,1
gnome-vfs-2.20.1
gnome-volume-manager-2.17.0_8
gnome2-2.20.2
gok-1.3.7,1
grip-3.2.0_15
gstreamer-0.10.15
gstreamer-ffmpeg-0.10.3
gstreamer-plugins-0.10.15,3
gstreamer-plugins-a52dec-0.10.6_2,3
gstreamer-plugins-bad-0.10.5_2,3
gstreamer-plugins-cdparanoia-0.10.15_3,3
gstreamer-plugins-core-0.10_9
gstreamer-plugins-dts-0.10.5_3,3
gstreamer-plugins-dvd-0.10.6_1,3
gstreamer-plugins-esound-0.10.6_2,3
gstreamer-plugins-flac-0.10.6_2,3
gstreamer-plugins-gconf-0.10.6_4,3
gstreamer-plugins-gnomevfs-0.10.15_2,3
gstreamer-plugins-good-0.10.6,3
gstreamer-plugins-hal-0.10.6_1,3
gstreamer-plugins-libpng-0.10.6_2,3
gstreamer-plugins-mad-0.10.6_3,3
gstreamer-plugins-mp3-0.10.0
gstreamer-plugins-mpeg2dec-0.10.6_2,3
gstreamer-plugins-ogg-0.10.15_2,3
gstreamer-plugins-pango-0.10.15_2,3
gstreamer-plugins-theora-0.10.15_4,3
gstreamer-plugins-ugly-0.10.6_1,3
gstreamer-plugins-vorbis-0.10.15_3,3
gstreamer-plugins-xvid-0.10.5_1,3
gtk-2.12.7
gtk-engines2-2.12.2
gtk-sharp-2.10.2_1
gtkhtml3-3.16.3
gtkmm-2.12.4
gtksourceview-1.8.5_2
gtksourceview2-2.0.2
gtkspell-2.0.11_5
gucharmap-gnome-1.10.2
gutenprint-base-5.1.3_1
hal-0.5.8.20080203
k3b-1.0.4
kde-windeco-crystal-1.0.4
kde-windeco-neos-0.2b_4
kdeaccessibility-3.5.8
kdeartwork-3.5.8
kdeartwork-xscreensaver-kde-3.5.8
kdebase-3.5.8_1
kdebase-kompmgr-3.5.8
kdeedu-3.5.8
kdegames-3.5.8
kdegraphics-3.5.8_1
kdegraphics-kamera-3.5.8
kdegraphics-kooka-3.5.8
kdegraphics-kuickshow-3.5.8
kdelibs-3.5.8
kdemultimedia-3.5.8
kdemultimedia-xine_artsplugin-3.5.8
kdenetwork-3.5.8
kdepim-3.5.8
kdetoys-3.5.8
kdeutils-3.5.8
koffice-1.6.3_3,2
libIDL-0.8.10
libafterimage-1.15_1
libbonobo-2.20.4
libbonoboui-2.20.0
libcroco-0.6.1
libgail-gnome-1.20.0
libglade2-2.6.2
libgnome-2.20.1.1_1
libgnomecanvas-2.20.1.1
libgnomecups-0.2.2_4,1
libgnomekbd-2.20.0
libgnomeprint-2.18.3
libgnomeprintui-2.18.2
libgnomeui-2.20.1.1
libgpod-0.6.0
libgsf-1.14.7
libgtkhtml-2.11.1
libgtop-2.20.1
libnotify-0.4.4_1
liboobs-2.20.0
libopensync-0.22_1
libpurple-2.3.1_1
librsvg2-2.20.0
libsexy-0.1.11
libsoup-2.2.104

Re: libicui18n.so.36 not found, required by evolution

2008-02-09 Thread Dominic Fandrey

Matthew Seaman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

E. J. Cerejo wrote:

Running FBSD 6.3 and after updating the ports where icu was one of the
ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object
libicui18n.so.36 not found, required by evolution error, I can see
that the new version of icu installed libicui18n.so.38.  Is there a
better way to fix this or should I just symlink libicui18n.so.38 to
libicui18n.so.36?


Nope.  Symlinking shlibs of different ABI versions together is the
wrong answer.  There's a reason the ABI version number was bumped,
and it indicates the new shlib is not compatible with the old one.

Formally, the correct fix is:

   # portupgrade -rf icu-\*

or the equivalent in whatever ports management software you prefer.

However this is pretty unfortunate as icu is a basic component that
a large number of packages depend upon.  Expect to spend a long time
compiling.


The port sysutils/bsdadminscripts installs a script called pkg_libchk that 
will list you all ports that /really/ need to be rebuild. Many of the ports 
depending on icu-\* do so indirectly by linking to a library that links to 
icu, thus it is sufficent to rebuild those directly linking ports. pkg_libchk 
checks for such direct dependencies and will list you the affected ports.

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


Re: script to be executed on system startup.

2008-02-09 Thread RW
On Thu, 7 Feb 2008 19:19:48 +0530
navneet Upadhyay [EMAIL PROTECTED] wrote:

 Hi,
   After putting my script to /etc/rc.d , it gets executed at
 startup and the parameter passed to the script is *faststart .*
 *I want the same script to be executed when system shuts down , how
 can i do that.*

Don't put it in /etc/rc.d/, give it a .sh extension and put it
in /usr/local/etc/rc.d/. It will then get stop/start arguments.

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


Fwd: Three wishes of a wannabe developer

2008-02-09 Thread John Almberg

Several reasons:
 - you will learn good habits
 - you will, by necessity, learn and object oriented approach
 - Squeak is a great learning tool, with excellent debugging tools


Sounds like the main arguments that used to be made for learning  
Pascal.


Might be good, but not subscribed to by very many.



Actually, I did learn Pascal in University :-) A great language for  
learning structured programming. But that was then (the 70s).


We also learned VAX assembler, which is more to my point:

Because I learned VAX assembler first, it was easier for me to learn  
C, which practically mapped directly to the VAX instruction set.  
Knowing that C was nothing more than a glorified assembler kept me  
from making the serious mistakes that people who thought C was a high- 
level language, made.


My argument for Smalltalk is the same: If you learn Smalltalk first,  
then other OO languages will make a lot more sense, and you'll better  
understand the quirks of OO-tolerant languages, like C++ and Perl.


I'm also assuming that Rui's main goals are not vocational. That is,  
he's not trying to learn a language to earn a living. I'm guessing  
he's hoping to learn something new, to get his ideas out there, and  
to have a bit of fun. Smalltalk is easy to learn, and fun.


However, there are lots of ways to skin this cat... this is just my  
opinion.


-- John






Websites for On-line Collectible Dealers

Identry, LLC
John Almberg
(631) 546-5079
[EMAIL PROTECTED]
www.identry.com



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


Re: script to be executed on system startup.

2008-02-09 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

RW wrote:
 On Thu, 7 Feb 2008 19:19:48 +0530
 navneet Upadhyay [EMAIL PROTECTED] wrote:
 
 Hi,
   After putting my script to /etc/rc.d , it gets executed at
 startup and the parameter passed to the script is *faststart .*
 *I want the same script to be executed when system shuts down , how
 can i do that.*
 
 Don't put it in /etc/rc.d/, give it a .sh extension and put it
 in /usr/local/etc/rc.d/. It will then get stop/start arguments.

No need to force it to have a .sh extension in /usr/local/etc/rc.d/
nowadays.  In fact, rather the contrary as a .sh extension causes the
script to be run in the context of the rc process rather than in a 
sub-shell.

In FreeBSD 6.2+ /usr/local/etc/rc.d/ is totally integrated with /etc/rc.d
and treated exactly the same.  The system re-runs rcorder over both of
those directories once it has got to the stage of mounting all the critical
filesystems.  So you can have 3rd party software and schedule it to be
started up earlier than some components of the base system if necessary.

Cheers,

Matthew

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

iD8DBQFHre9u8Mjk52CukIwRCA8GAJwILJQ5CmouTDbcLL0aK6BQFza6BgCeNHMI
ErzMpScJU0pMKJTNNdvzA2c=
=BFq8
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: libicui18n.so.36 not found, required by evolution

2008-02-09 Thread Matthew Seaman
E. J. Cerejo wrote:
 On Saturday 09 February 2008 12:29:16 Matthew Seaman wrote:
 E. J. Cerejo wrote:
 Running FBSD 6.3 and after updating the ports where icu was one of the
 ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object
 libicui18n.so.36 not found, required by evolution error, I can see
 that the new version of icu installed libicui18n.so.38.  Is there a
 better way to fix this or should I just symlink libicui18n.so.38 to
 libicui18n.so.36?
 Nope.  Symlinking shlibs of different ABI versions together is the
 wrong answer.  There's a reason the ABI version number was bumped,
 and it indicates the new shlib is not compatible with the old one.

 Formally, the correct fix is:

# portupgrade -rf icu-\*

 or the equivalent in whatever ports management software you prefer.

 However this is pretty unfortunate as icu is a basic component that
 a large number of packages depend upon.  Expect to spend a long time
 compiling.

 Oh, and it's a good idea to update as the latest icu fixes some
 security problems.  See

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4770
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4771

http://secunia.com/advisories/28575/

  Cheers,

  Matthew
 
 Thanks for the answer but there's no way that I'm going to do that, it's just 
 too many apps, pkg_info tells me this:
 
 Information for icu-3.8.1:
 
 Required by:
 ORBit2-2.14.12
 abiword-gnome-2.4.6_3
 alacarte-0.11.3_2
 amarok-1.4.8
 arts-1.5.8,1
 at-spi-1.20.1
 atk-1.20.0
 avahi-0.6.22
 avahi-app-0.6.22_1
 bug-buddy-2.20.1
 cairomm-1.2.4_1
 ccsm-0.6.0
 compiz-0.6.2
 compiz-fusion-0.6.0
 compiz-fusion-plugins-extra-0.6.0
 compiz-fusion-plugins-main-0.6.0
 compizconfig-backend-gconf-0.6.0_1
 compizconfig-python-0.6.0.1
 dasher-4.6.1,1
 dbus-glib-0.74
 deskbar-applet-2.20.3
 desktop-file-utils-0.14
 eel-2.20.0
 ekiga-2.0.11_1
 emerald-0.5.2_1
 enchant-1.3.0
 eog-2.20.4
 epiphany-2.20.3
 evince-2.20.2
 evolution-2.12.3
 evolution-data-server-1.12.3_1
 evolution-exchange-2.12.3
 evolution-webcal-2.12.0
 fast-user-switch-applet-2.20.0
 file-roller-2.20.3,1
 firefox-2.0.0.11_1,1
 ftpcube-0.5.1_1
 gail-1.20.2
 gamin-0.1.9
 gcalctool-5.20.2_1,2
 gconf-editor-2.20.0,1
 gconf2-2.20.1
 gdm-2.20.3
 gedit-2.20.4
 gftp-2.0.18_6
 gimp-2.4.3,2
 gimp-app-2.4.3,1
 gimp-gutenprint-5.1.3_2
 gimp-help-0.12
 gkrellm-2.3.1_1
 glib-2.14.6
 glibmm-2.14.2,1
 gmime-2.2.15
 gmime-sharp-2.2.15
 gnash-0.8.1_1
 gnome-applets-2.20.1
 gnome-control-center-2.20.3
 gnome-desktop-2.20.3
 gnome-games-2.20.3
 gnome-games-extra-data-2.20.0
 gnome-icon-theme-2.20.0_1
 gnome-keyring-2.20.3
 gnome-keyring-manager-2.20.0
 gnome-mag-0.14.10
 gnome-media-2.20.1
 gnome-menus-2.20.3
 gnome-mount-0.6_4
 gnome-netstatus-2.12.1_4
 gnome-nettool-2.20.0,1
 gnome-panel-2.20.3
 gnome-power-manager-2.20.2
 gnome-session-2.20.3
 gnome-sharp-2.16.0_4
 gnome-speech-0.4.18
 gnome-spell-1.0.8
 gnome-system-monitor-2.20.2
 gnome-system-tools-2.20.0
 gnome-terminal-2.18.4
 gnome-themes-2.20.2
 gnome-themes-extras-2.20_1
 gnome-utils-2.20.0.1,1
 gnome-vfs-2.20.1
 gnome-volume-manager-2.17.0_8
 gnome2-2.20.2
 gok-1.3.7,1
 grip-3.2.0_15
 gstreamer-0.10.15
 gstreamer-ffmpeg-0.10.3
 gstreamer-plugins-0.10.15,3
 gstreamer-plugins-a52dec-0.10.6_2,3
 gstreamer-plugins-bad-0.10.5_2,3
 gstreamer-plugins-cdparanoia-0.10.15_3,3
 gstreamer-plugins-core-0.10_9
 gstreamer-plugins-dts-0.10.5_3,3
 gstreamer-plugins-dvd-0.10.6_1,3
 gstreamer-plugins-esound-0.10.6_2,3
 gstreamer-plugins-flac-0.10.6_2,3
 gstreamer-plugins-gconf-0.10.6_4,3
 gstreamer-plugins-gnomevfs-0.10.15_2,3
 gstreamer-plugins-good-0.10.6,3
 gstreamer-plugins-hal-0.10.6_1,3
 gstreamer-plugins-libpng-0.10.6_2,3
 gstreamer-plugins-mad-0.10.6_3,3
 gstreamer-plugins-mp3-0.10.0
 gstreamer-plugins-mpeg2dec-0.10.6_2,3
 gstreamer-plugins-ogg-0.10.15_2,3
 gstreamer-plugins-pango-0.10.15_2,3
 gstreamer-plugins-theora-0.10.15_4,3
 gstreamer-plugins-ugly-0.10.6_1,3
 gstreamer-plugins-vorbis-0.10.15_3,3
 gstreamer-plugins-xvid-0.10.5_1,3
 gtk-2.12.7
 gtk-engines2-2.12.2
 gtk-sharp-2.10.2_1
 gtkhtml3-3.16.3
 gtkmm-2.12.4
 gtksourceview-1.8.5_2
 gtksourceview2-2.0.2
 gtkspell-2.0.11_5
 gucharmap-gnome-1.10.2
 gutenprint-base-5.1.3_1
 hal-0.5.8.20080203
 k3b-1.0.4
 kde-windeco-crystal-1.0.4
 kde-windeco-neos-0.2b_4
 kdeaccessibility-3.5.8
 kdeartwork-3.5.8
 kdeartwork-xscreensaver-kde-3.5.8
 kdebase-3.5.8_1
 kdebase-kompmgr-3.5.8
 kdeedu-3.5.8
 kdegames-3.5.8
 kdegraphics-3.5.8_1
 kdegraphics-kamera-3.5.8
 kdegraphics-kooka-3.5.8
 kdegraphics-kuickshow-3.5.8
 kdelibs-3.5.8
 kdemultimedia-3.5.8
 kdemultimedia-xine_artsplugin-3.5.8
 kdenetwork-3.5.8
 kdepim-3.5.8
 kdetoys-3.5.8
 kdeutils-3.5.8
 koffice-1.6.3_3,2
 libIDL-0.8.10
 libafterimage-1.15_1
 libbonobo-2.20.4
 libbonoboui-2.20.0
 libcroco-0.6.1
 libgail-gnome-1.20.0
 libglade2-2.6.2
 libgnome-2.20.1.1_1
 libgnomecanvas-2.20.1.1
 libgnomecups-0.2.2_4,1
 libgnomekbd-2.20.0
 libgnomeprint-2.18.3
 libgnomeprintui-2.18.2
 libgnomeui-2.20.1.1
 

Re: Unlock /dev/dsp?

2008-02-09 Thread Alphons Fonz van Werven

Andreas Davour wrote:

I have begin to find it annoying that when I have a Firefox running with 
a page with a youtube link it it, I can't at the same time play a mp3 
file with mplayer. When I try I get an error saying that /dev/dsp is 
busy. Is there a way to make it play me some music anyway?


Perhaps esd (Enlightenment Sound Daemon) might help here.

Alphons

--
VISTA - Viruses Intruders Spyware Trojans Adware

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


Re: Clock stabilization in VMWare hosted machines?

2008-02-09 Thread Peter Boosten

Quoting Shawn Barnhart [EMAIL PROTECTED]:



When you installed the tools, did they require X to be operational?
I'm not planning on running X.


Neither am I, so no X here.

Peter
--
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Clock stabilization in VMWare hosted machines?

2008-02-09 Thread Shawn Barnhart

Peter Boosten wrote:

In my /boot/loader.conf:

kern.hz=100



I rebuilt the kernel with options HZ=100 and this seems to fix it -- 
ntpd sync'd immediately and the clock does not appear to drift.


When you installed the tools, did they require X to be operational?  I'm 
not planning on running X.


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


Re: Clock stabilization in VMWare hosted machines?

2008-02-09 Thread Peter Boosten

Quoting Shawn Barnhart [EMAIL PROTECTED]:


I know this is a major nuisance, but I can't remember how I dealt with
it in the past.  My most recent stab at using ntpd with minpoll 4
polling of a local ntp time source isn't working, the clock drift
prevents any sync from happening (but I'll admit not trying some of the
more aggressive time adjustment options to ntpd).

VMWare's documentation and support leans pretty heavily toward Linux
and I'm not finding a decent recommendation from them.

I rebuilding a kernel with options HZ=100 to see if that makes a
difference, not sure why I remember that helping, but any other
strategies known to work?



In my /boot/loader.conf:

kern.hz=100

In the vmx-file:
tools.synctime = TRUE

I installed the vmware tools and ntpd

That's about all.

ntpdate -d 192.168.23.15:

 9 Feb 20:26:47 ntpdate[45172]: adjust time server 192.168.23.15  
offset 0.057667 sec


Cheers,

Peter

--
http://www.boosten.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: script to be executed on system startup.

2008-02-09 Thread Dominic Fandrey

Matthew Seaman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

RW wrote:

On Thu, 7 Feb 2008 19:19:48 +0530
navneet Upadhyay [EMAIL PROTECTED] wrote:


Hi,
  After putting my script to /etc/rc.d , it gets executed at
startup and the parameter passed to the script is *faststart .*
*I want the same script to be executed when system shuts down , how
can i do that.*

Don't put it in /etc/rc.d/, give it a .sh extension and put it
in /usr/local/etc/rc.d/. It will then get stop/start arguments.


No need to force it to have a .sh extension in /usr/local/etc/rc.d/
nowadays.  In fact, rather the contrary as a .sh extension causes the
script to be run in the context of the rc process rather than in a 
sub-shell.


Though undocumented, this statement is not valid for scripts in 
/usr/local/etc/rc.d. The scripts there are /always/ run in a sub-shell, no 
matter their ending.


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


Clock stabilization in VMWare hosted machines?

2008-02-09 Thread Shawn Barnhart
I know this is a major nuisance, but I can't remember how I dealt with 
it in the past.  My most recent stab at using ntpd with minpoll 4 
polling of a local ntp time source isn't working, the clock drift 
prevents any sync from happening (but I'll admit not trying some of the 
more aggressive time adjustment options to ntpd).


VMWare's documentation and support leans pretty heavily toward Linux and 
I'm not finding a decent recommendation from them.


I rebuilding a kernel with options HZ=100 to see if that makes a 
difference, not sure why I remember that helping, but any other 
strategies known to work?


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


Re: Unlock /dev/dsp?

2008-02-09 Thread Hugo Silva

Andreas Davour wrote:


I have begin to find it annoying that when I have a Firefox running 
with a page with a youtube link it it, I can't at the same time play a 
mp3 file with mplayer. When I try I get an error saying that /dev/dsp 
is busy. Is there a way to make it play me some music anyway?


I use KDE if that matters.

/andreas



dev.pcm.0.play.vchans=4

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


Re: Unlock /dev/dsp?

2008-02-09 Thread Dominic Fandrey

Andreas Davour wrote:


I have begin to find it annoying that when I have a Firefox running with 
a page with a youtube link it it, I can't at the same time play a mp3 
file with mplayer. When I try I get an error saying that /dev/dsp is 
busy. Is there a way to make it play me some music anyway?


I use KDE if that matters.

/andreas



You want to read chapter 7.2.3 of the handbook.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Some ideas for FreeBSD

2008-02-09 Thread Tore Lund
Ted Mittelstaedt wrote:
 Reason # 1 to be happy with Linux:  It attracts all the morons who
 would otherwise fuck up FreeBSD? 

I do wish people would not be happy about missing users.  Being rid of
all the morons means that we are also rid of proper attention from
companies like Adobe and Nvidia.  Some of us see that as a drawback.
-- 
Tore

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


Re: should I change to multicore CPU??

2008-02-09 Thread Ivan Voras

Tsu-Fan Cheng wrote:

Hi,
 I know that freebsd7 has huge improvement on multi-threading
execution. I wonder if I upgrade to 7, would I feel it?? I now own a
amd64/3400+, running 6.3. It's just personal use, download files,
watch movies, etc. I guess it will be faster on multi-core when I run
mencoder to encode movie, but aside from that, will it mike much
difference to me?? thank you!!


No, if you don't need any of the new features in 7.x, you won't feel a 
difference for the described operations. You don't have enough CPUs or 
enough programs that do multithreading operations together with IO to 
notice any difference at all.


Some people say they can feel the difference in desktop applications 
because of the new ULE scheduler, but I very much doubt it, probably a 
psychological thing :)





signature.asc
Description: OpenPGP digital signature


Re: Some ideas for FreeBSD

2008-02-09 Thread Joshua Isom
Here's an idea for FreeBSD that would be practical.  Since having 
several partitions on the same disk is standard for FreeBSD and most 
Unixes, instead of dealing with running out of space on a partition, 
when you have gigs available on another, why not allow one partition to 
create an overflow file on another partition, or perhaps a dedicated 
amount of the swap partition if it's on the same disk, to keep from 
running out of space?  It'd probably have to be limited to one disk, 
but that wouldn't hinder things too much.  Dealing with unmounted 
filesystems would be annoying but probably doable without too much risk 
of problems(could even use the swap partition, and on say /usr just 
have a file for swap?).  The most obvious case of how this could be 
good would be the root partition when you're updating the system, 
especially with debug symbols or perhaps multiple kernels(say a generic 
debug, optimized debug, generic, and optimized?).


The best reason for doing something like this, you can keep the 
partitions for disk optimization and still have the ease of use of a 
single partition like OS X, Ubuntu, or PCBSD.


Maybe this would be good for FreeBSD 8 or 9?

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


Re: Some ideas for FreeBSD

2008-02-09 Thread Jerry McAllister
On Sat, Feb 09, 2008 at 03:51:18PM -0600, Joshua Isom wrote:

 Here's an idea for FreeBSD that would be practical.  Since having 
 several partitions on the same disk is standard for FreeBSD and most 
 Unixes, instead of dealing with running out of space on a partition, 
 when you have gigs available on another, why not allow one partition to 
 create an overflow file on another partition, or perhaps a dedicated 

You can do this alrady.
Just move some directory tree in to the large space and create a synlink.
I do it often.


jerry



 amount of the swap partition if it's on the same disk, to keep from 
 running out of space?  It'd probably have to be limited to one disk, 
 but that wouldn't hinder things too much.  Dealing with unmounted 
 filesystems would be annoying but probably doable without too much risk 
 of problems(could even use the swap partition, and on say /usr just 
 have a file for swap?).  The most obvious case of how this could be 
 good would be the root partition when you're updating the system, 
 especially with debug symbols or perhaps multiple kernels(say a generic 
 debug, optimized debug, generic, and optimized?).
 
 The best reason for doing something like this, you can keep the 
 partitions for disk optimization and still have the ease of use of a 
 single partition like OS X, Ubuntu, or PCBSD.
 
 Maybe this would be good for FreeBSD 8 or 9?
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


US ftp mirrors down?

2008-02-09 Thread James

Hi folks,

I was just trying to csup the sources for releng_6_3 and had some 
issues. ftp10.us.freebsd.org was unlocateable, ftp11 didn't have 
src-all, a bunch of the lower numbered ones were all unresponsive. Could 
someone check that behaviour for me?


Thanks

James
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Some ideas for FreeBSD

2008-02-09 Thread Joshua Isom


On Feb 9, 2008, at 4:01 PM, Jerry McAllister wrote:


On Sat, Feb 09, 2008 at 03:51:18PM -0600, Joshua Isom wrote:


Here's an idea for FreeBSD that would be practical.  Since having
several partitions on the same disk is standard for FreeBSD and most
Unixes, instead of dealing with running out of space on a partition,
when you have gigs available on another, why not allow one partition 
to

create an overflow file on another partition, or perhaps a dedicated


You can do this alrady.
Just move some directory tree in to the large space and create a 
synlink.

I do it often.


jerry



My idea would eliminate that work around and make it automatic.  Who 
actually waits to constantly look at their disk usage and try and 
figure out if they have enough space left on their 512 meg partition 
when they have 200 gigs free on another?  I think most people find out 
they're low on space when they run out trying to do something on that 
partition.






amount of the swap partition if it's on the same disk, to keep from
running out of space?  It'd probably have to be limited to one disk,
but that wouldn't hinder things too much.  Dealing with unmounted
filesystems would be annoying but probably doable without too much 
risk

of problems(could even use the swap partition, and on say /usr just
have a file for swap?).  The most obvious case of how this could be
good would be the root partition when you're updating the system,
especially with debug symbols or perhaps multiple kernels(say a 
generic

debug, optimized debug, generic, and optimized?).

The best reason for doing something like this, you can keep the
partitions for disk optimization and still have the ease of use of a
single partition like OS X, Ubuntu, or PCBSD.

Maybe this would be good for FreeBSD 8 or 9?

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




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


Re: US ftp mirrors down?

2008-02-09 Thread Kieran

Hi James,

I just tried cvsuping from cvsup10.us.freebsd.org for releng_6_3 and it
worked fine. I am assuming you had a typo below as you should not be
cvsuping from an ftp.

Best Regards,

Kieran
- Original Message - 
From: James [EMAIL PROTECTED]

To: FreeBSD-questions@FreeBSD.org
Sent: Saturday, February 09, 2008 3:08 PM
Subject: US ftp mirrors down?



Hi folks,

I was just trying to csup the sources for releng_6_3 and had some issues. 
ftp10.us.freebsd.org was unlocateable, ftp11 didn't have src-all, a bunch 
of the lower numbered ones were all unresponsive. Could someone check that 
behaviour for me?


Thanks

James
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




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


Re: US ftp mirrors down?

2008-02-09 Thread James

Kieran wrote:

Hi James,

I just tried cvsuping from cvsup10.us.freebsd.org for releng_6_3 and it
worked fine. I am assuming you had a typo below as you should not be
cvsuping from an ftp.

Best Regards,

Kieran


No, I've always csupped from the ftp sites. Usually works just fine.

Though apparently I should be using the cvsup sites. Whoops!

James
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: US ftp mirrors down?

2008-02-09 Thread Predrag Punosevac

James wrote:

Hi folks,

I was just trying to csup the sources for releng_6_3 and had some 
issues. ftp10.us.freebsd.org was unlocateable, ftp11 didn't have 
src-all, a bunch of the lower numbered ones were all unresponsive. 
Could someone check that behaviour for me?


Thanks

James
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
I got mirror 10 without problems. Nine and eleven didn't work. I didn't 
check other.

Best,
Predrag
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


DEVICE_POLLING IF_EM CPU usage

2008-02-09 Thread Daniel Dias Gonçalves

Hi,

I activated polling in 8 interfaces em0... em7 (ifconfig em* polling) to 
carry through performance tests, when activating, it had a significant 
reduction of CPU usage, load average measured of 0,50, 0,69, 0,52 for 
0,43, 0,39, 0,21 and the CPU usage (SNMP Graphic) measured of 35% for 
5%. Passed some hours I disactivated polling (ifconfig em* - polling) 
and CPU usage continues low.

Somebody could explain this to me?

Some information:

FreeBSD 6.3-RELEASE

CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3200.13-MHz 686-class CPU)
Logical CPUs per core: 2
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
SMP: AP CPU #1 Launched!

Interfaces if_em:
  vendor = 'Intel Corporation'
  device = '82546EB Dual Port Gigabit Ethernet Controller'


Thanks.

Daniel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


hundreds of duplicate messages from mailserver...

2008-02-09 Thread Gary Kline

Hi People,

I wrote to the KDE list about Kmail endlessly updating 
itself and adding and bunches of messages to my INBOX
on my mailserver.  Someone responded that it was 
probably not a KMail problem, but a server problem.  That
seems probably since evolution and mutt also have these 
duplications.  So far, I'm seeing  between 5 and 20 copies
of most mails.

I did not set up the imap stuff; the networking volunteer did
that.  I am running dovecot in my jail aristotle.thought.org
on the host sage.though.org. aristotle also hosts  my DNS and
web server.   (FWIW, I'm still using my 400MHz Kayak with plenty
of disk and about 0.5GB RAM for sage.  I monitor the load; 
it's reasonable.)  

My questions: are there any mail-server types amongst us who have
any idea where I can began tracking this problem?  We're using
procmail to put certain mail in various directories under kmail.
I haven't used procmail since the early 90's and don't remember
very much about it.  ...I won't hypothesize any further and further
confuse things.  Just hope that somebody onlist can help me sort 
this out.

gary


-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


projectm questions

2008-02-09 Thread Chris Whitehouse

Hello

Sorry for the long post, this is my first try at installing from source 
and I'm not sure how much info I need to give. I'm trying to get 
projectm (http://projectm.sourceforge.net/) working on FreeBSD. First 
step is install libprojectm. The INSTALL file said install glew, ftgl 
and cmake so I did them from ports. I then ran cmake which ran with no 
errors so I ran make. I got:


In file included from /home/chrisw/Desktop/libprojectM-1.01/MoodBar.cpp:22:
/usr/include/malloc.h:3:2: error: #error malloc.h has been replaced 
by stdlib.h

*** Error code 1

I replaced #include malloc.h with #include stdlib.h in MoodBar.cpp 
and that allowed make to continue.


Question 1: did I break things?

Next I got
Linking CXX shared library libprojectM.so
/usr/bin/ld: cannot find -lGLEW
*** Error code 1

Stop in /usr/home/chrisw/Desktop/libprojectM-1.01.

After a bit of poking around I found
ln -s /usr/local/lib/libGLEW.a /usr/lib/libGLEW.a
fixed it. I also had to do
ln -s /usr/local/lib/libftgl.a /usr/lib/libftgl.a
ln -s /usr/local/lib/libfreetype.a /usr/lib/libfreetype.a

Well that's alright for a fix but
Question 2: what do I have to do to get that to work automatically?

So the above fixes got libprojectm installed. Next job is install 
projectm itself. README says read INSTALL. INSTALL says

Install libprojectM 1.0 and XMMS, then:

cmake . -DCMAKE_BUILD_TYPE=RELEASE
make
make install

You may need to type ccmake . and change the PREFIX if your system 
prefers /usr instead of /usr/local.


But there is also a file called README~. This has extensive instructions 
which boil down to

./configure
make
make install

Question 3: Which instructions do I use?

However README~ also says I need to firstly install SDL-1.3.0 or later.
Question 4: How do I install this in such a way that it doesn't 
interfere with the installed sdl-1.2 but can be found by projectm in 
/usr/local?


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


gicu, gimp...

2008-02-09 Thread Mitja
Hi!

After update to ICU 3.8.1 there were some problem but after rebuilt of glib 
everything works okay again. Today I tried to update GIMP and there are again 
problem with ICU, need to be version 3.6:

/libexec/ld-elf.so.1: Shared object libicui18n.so.36 not found, required 
by gdk-pixbuf-csource
gmake[2]: *** [gimp-tool-cursors.h] Error 1
gmake[2]: Leaving directory 
`/usr/ports/graphics/gimp-app/work/gimp-2.4.4/cursors'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/gimp-app/work/gimp-2.4.4'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/graphics/gimp-app.
*** Error code 1

Stop in /usr/ports/graphics/gimp-app.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.32005.0 
env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gimp-app-2.4.3,1 
UPGRADE_PORT_VER=2.4.3,1 make
** Fix the problem and try again.
---  Skipping 'graphics/py-gimp' (py25-gimp-app-2.4.3) because a requisite 
package 'gimp-app-2.4.3,1' (graphics/gimp-app) failed (specify -k to force)
---  Skipping 'graphics/gimp' (gimp-2.4.3,2) because a requisite 
package 'py25-gimp-app-2.4.3' (graphics/py-gimp) failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
- ftp/curl (marked as IGNORE)
! graphics/gimp-app (gimp-app-2.4.3,1)  (unknown build error)
* graphics/py-gimp (py25-gimp-app-2.4.3)
* graphics/gimp (gimp-2.4.3,2) 



-- 
Without adventure, civilization is in full decay.
-- Alfred North Whitehead
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gicu, gimp...

2008-02-09 Thread [EMAIL PROTECTED]
On 09/02/2008, Mitja [EMAIL PROTECTED] wrote:
 Hi!

 After update to ICU 3.8.1 there were some problem but after rebuilt of glib
 everything works okay again. Today I tried to update GIMP and there are again
 problem with ICU, need to be version 3.6:

 /libexec/ld-elf.so.1: Shared object libicui18n.so.36 not found, required
 by gdk-pixbuf-csource
 gmake[2]: *** [gimp-tool-cursors.h] Error 1
 gmake[2]: Leaving directory
 `/usr/ports/graphics/gimp-app/work/gimp-2.4.4/cursors'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/usr/ports/graphics/gimp-app/work/gimp-2.4.4'
 gmake: *** [all] Error 2
 *** Error code 2

 Stop in /usr/ports/graphics/gimp-app.
 *** Error code 1

 Stop in /usr/ports/graphics/gimp-app.
 ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.32005.0
 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=gimp-app-2.4.3,1
 UPGRADE_PORT_VER=2.4.3,1 make
 ** Fix the problem and try again.
 ---  Skipping 'graphics/py-gimp' (py25-gimp-app-2.4.3) because a requisite
 package 'gimp-app-2.4.3,1' (graphics/gimp-app) failed (specify -k to force)
 ---  Skipping 'graphics/gimp' (gimp-2.4.3,2) because a requisite
 package 'py25-gimp-app-2.4.3' (graphics/py-gimp) failed (specify -k to force)
 ** Listing the failed packages (-:ignored / *:skipped / !:failed)
 - ftp/curl (marked as IGNORE)
 ! graphics/gimp-app (gimp-app-2.4.3,1)  (unknown build error)
 * graphics/py-gimp (py25-gimp-app-2.4.3)
 * graphics/gimp (gimp-2.4.3,2) 

My solution was to issue:
portupgrade -ufr icu

While likely not the most elegant, it completed
without error and everything /seems/ to work
fine.

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


7.0 RC2

2008-02-09 Thread Chris
I see that the ISO is there!

-- 
Best regards,
Chris

Han Solo:
Not a bad bit of rescuing, huh? You know, sometimes
I amaze even myself.
Princess Leia:
That doesn't sound too hard.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Some ideas for FreeBSD

2008-02-09 Thread [EMAIL PROTECTED]
On 09/02/2008, Joshua Isom [EMAIL PROTECTED] wrote:

 On Feb 9, 2008, at 4:01 PM, Jerry McAllister wrote:

  On Sat, Feb 09, 2008 at 03:51:18PM -0600, Joshua Isom wrote:
 
  Here's an idea for FreeBSD that would be practical.  Since having
  several partitions on the same disk is standard for FreeBSD and most
  Unixes, instead of dealing with running out of space on a partition,
  when you have gigs available on another, why not allow one partition
  to
  create an overflow file on another partition, or perhaps a dedicated
 
  You can do this alrady.
  Just move some directory tree in to the large space and create a
  synlink.


 My idea would eliminate that work around and make it automatic.  Who
 actually waits to constantly look at their disk usage and try and
 figure out if they have enough space left on their 512 meg partition
 when they have 200 gigs free on another?

I certainly do not want some brain-dead algorithm
stuffing up every slice on my system because some
other brain-dead algorithm decided to fill /tmp

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


Re: script to be executed on system startup.

2008-02-09 Thread RW
On Sat, 09 Feb 2008 18:22:39 +
Matthew Seaman [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 RW wrote:
  On Thu, 7 Feb 2008 19:19:48 +0530
  navneet Upadhyay [EMAIL PROTECTED] wrote:
  
  Hi,
After putting my script to /etc/rc.d , it gets executed at
  startup and the parameter passed to the script is *faststart .*
  *I want the same script to be executed when system shuts down , how
  can i do that.*
  
  Don't put it in /etc/rc.d/, give it a .sh extension and put it
  in /usr/local/etc/rc.d/. It will then get stop/start arguments.
 
 No need to force it to have a .sh extension in /usr/local/etc/rc.d/
 nowadays.  In fact, rather the contrary as a .sh extension causes the
 script to be run in the context of the rc process rather than in a 
 sub-shell.
 
 In FreeBSD 6.2+ /usr/local/etc/rc.d/ is totally integrated
 with /etc/rc.d and treated exactly the same.  The system re-runs
 rcorder over both of those directories once it has got to the stage
 of mounting all the critical filesystems.

There's a bit more to it than that I think. 

As I understand it, local scripts that contain a # PROVIDE line are
integrated into rcorder, local scripts  that don't have that line, but
end in .sh, are executed from  /etc/rc.d/localpkg in the old-style.
AFAIK local scripts that have neither are ignored.

So in short, a user script that simply responds to start/stop needs to
go /usr/local/etc/rc.d/, and it does need a .sh extension.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 7.0 RC2

2008-02-09 Thread User Ota
On Sat, Feb 09, 2008 at 08:13:27PM -0600, Chris wrote:
 I see that the ISO is there!

Not updated on the site yet! :P

Wonder what's new in this RC release, gonna test it in vmware and maybe 
qemu :D

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


Re: projectm questions

2008-02-09 Thread perryh
 Linking CXX shared library libprojectM.so
 /usr/bin/ld: cannot find -lGLEW
 *** Error code 1
 ...
 After a bit of poking around I found
 ln -s /usr/local/lib/libGLEW.a /usr/lib/libGLEW.a
 fixed it. I also had to do
 ln -s /usr/local/lib/libftgl.a /usr/lib/libftgl.a
 ln -s /usr/local/lib/libfreetype.a /usr/lib/libfreetype.a

 Well that's alright for a fix but
 Question 2: what do I have to do to get that to work automatically?

Lose the symlinks, and instead figure out how to add
  -L/usr/local/lib
to the link command line so that the linker looks for
libs there as well as in /usr/lib.

You might find the FreeBSD porter's handbook helpful.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


rmuser problem

2008-02-09 Thread Lubomir Matousek
Dear list, 

I have the following problem when using rmuser (freebsd 6.2)

--
rmuser -v hana
Matching password entry:

hana:*:1091:1092::0:0:/usr/home/hana:/usr/sbin/nologin

Is this the entry you wish to remove? yes
Remove user's home directory (/usr/home/hanka)? yes
Removing crontab for (hana):.
Removing at(1) jobs owned by (hana): 0 removed.
Removing IPC mechanismsipcs: sysctlbyname: kern.ipc.shmmax: No such file or
directory
ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory
ipcs: sysctlbyname: kern.ipc.shmmax: No such file or directory
.
Terminating all processes owned by (hana): -KILL signal sent to 0 processes.
Removing files owned by (hana) in /tmp: 0 removed.
Removing files owned by (hana) in /var/tmp: 0 removed.
Removing mail spool(s) for (hana): /var/mail/hana.
Removing user (hana) (including home directory) from the system: Done.
---

The problem started, when I accidentaly deleted /usr/home directory and I
had to create a new one. I checked /etc/password file and the direcory
existed before using rmuser. Can anybody help please?


Lubos




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


Re: Three wishes of a wannabe developer

2008-02-09 Thread cpghost
On Sat, Feb 09, 2008 at 11:01:53AM -0500, John Almberg wrote:
 I'd suggest looking into a real object oriented language, rather than a 
 systems programming language like C, or a glue language like Perl. I 
 personally think Smalltalk is a great language for beginners, particularly 
 the Squeak version, which is available for free for most platforms.

Yummy, it's a long time since I've used Smalltalk. It's still fun
today, even though more from an academic point of view than real life
programming. It certainly was different, compared to Common Lisp I've
heavily used to hack in back then, and I kind of regret that both
Smalltalk and Lisp have fallen out of favor nowadays for real projects.

 Once you get the basic idea behind objects, you might want to branch out 
 into Ruby, another great object oriented language. All the concept you 
 learned from Smalltalk will carry right over, and since many Ruby folk are 
 coming from the procedural world (and really don't get objects), you will 
 have a leg up on them.
 
 And Ruby will set you up for using Rails, which is an ideal platform for 
 deploying web applications, which will allow you to make your economic 
 simulations available to anyone on the net.

Personally, I do prefer Python and I write hybrid Python/C and
Python/C++ projects for a living (using SWIG and to a lesser extent
Boost.Python or its frontends). For web development, which I can't
avoid entirely, though I'd wish I could, I'm using Django, or some
other custom mix of Python building blocks. In some rare cases,
it has to be Zope-based, but this I do really positively hate! ;)

Ruby and Rails are also good places to start and excellent object
oriented languages. Whether you go the Python or Ruby route is really
a matter of taste: both routes do have interesting things to show and
are definitely worth a try (or two).

 Just my two cents.
 
 Brgds: John

-cpghost.

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


Re: Unlock /dev/dsp?

2008-02-09 Thread Ian Smith
On Sat, 9 Feb 2008 20:17:48 +0100 (CET) Andreas Davour [EMAIL PROTECTED] 
wrote:

  I have begin to find it annoying that when I have a Firefox running with 
  a page with a youtube link it it, I can't at the same time play a mp3 
  file with mplayer. When I try I get an error saying that /dev/dsp is 
  busy. Is there a way to make it play me some music anyway?
  
  I use KDE if that matters.

See sound(4) .. you want to set up some virtual channels, eg in
/etc/sysctl.conf (though you can set them manually meanwhile)

hw.snd.verbose=2
hw.snd.pcm0.vchans=4
hw.snd.maxautovchans=4

smithi on paqi% ls -lrt /dev/dsp*
crw-rw-rw-  1 root  wheel   30,  11 Nov 28 01:27 /dev/dspr0.0
crw-rw-rw-  1 root  wheel   30, 0x00050005 Nov 28 01:27 /dev/dspW0.5
crw-rw-rw-  1 root  wheel   30, 0x00040005 Nov 28 01:27 /dev/dspW0.4
crw-rw-rw-  1 root  wheel   30, 0x00030005 Nov 28 01:27 /dev/dspW0.3
crw-rw-rw-  1 root  wheel   30, 0x00020005 Nov 28 01:27 /dev/dspW0.2
crw-rw-rw-  1 root  wheel   30, 0x00010005 Nov 28 01:27 /dev/dspW0.1
crw-rw-rw-  1 root  wheel   30,   5 Nov 28 01:27 /dev/dspW0.0
crw-rw-rw-  1 root  wheel   30, 0x00050003 Nov 28 01:27 /dev/dsp0.5
crw-rw-rw-  1 root  wheel   30, 0x00040003 Nov 28 01:27 /dev/dsp0.4
crw-rw-rw-  1 root  wheel   30, 0x00030003 Nov 28 01:27 /dev/dsp0.3
crw-rw-rw-  1 root  wheel   30, 0x00020003 Nov 28 01:27 /dev/dsp0.2
crw-rw-rw-  1 root  wheel   30, 0x00010003 Nov 28 01:27 /dev/dsp0.1
crw-rw-rw-  1 root  wheel   30,   3 Feb 10 15:06 /dev/dsp0.0

If you use the KDE sound setup, you could specify say /dev/dsp0.2 for
KDE noises.  Other programs (mplayer, xmms ..) will use a free channel,
and you can run as many others as you like (if you like cacophony :)

You can run 'cat /dev/sndstat' to see what's using what.

cheers, Ian

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


rc.d scripts not being run at shutdown.

2008-02-09 Thread RW

Afer putting in some extra logging to check something, I've just noticed
that my rc.d scripts are not being run at shutdown. 

By way of confirmation, my entropy file, which is written out by an
rc.d script, has not been written to for a week (I shut-down most
nights). I don't recall doing anything then. 

I'm running an up-to-date i386 RELENG_7_0.

Is anyone seeing anything similar?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: libicui18n.so.36 not found, required by evolution

2008-02-09 Thread E. J. Cerejo
On Saturday 09 February 2008 13:02:58 Dominic Fandrey wrote:
 Matthew Seaman wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA256
 
  E. J. Cerejo wrote:
  Running FBSD 6.3 and after updating the ports where icu was one of the
  ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object
  libicui18n.so.36 not found, required by evolution error, I can see
  that the new version of icu installed libicui18n.so.38.  Is there a
  better way to fix this or should I just symlink libicui18n.so.38 to
  libicui18n.so.36?
 
  Nope.  Symlinking shlibs of different ABI versions together is the
  wrong answer.  There's a reason the ABI version number was bumped,
  and it indicates the new shlib is not compatible with the old one.
 
  Formally, the correct fix is:
 
 # portupgrade -rf icu-\*
 
  or the equivalent in whatever ports management software you prefer.
 
  However this is pretty unfortunate as icu is a basic component that
  a large number of packages depend upon.  Expect to spend a long time
  compiling.

 The port sysutils/bsdadminscripts installs a script called pkg_libchk that
 will list you all ports that /really/ need to be rebuild. Many of the ports
 depending on icu-\* do so indirectly by linking to a library that links to
 icu, thus it is sufficent to rebuild those directly linking ports.
 pkg_libchk checks for such direct dependencies and will list you the
 affected ports. ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

I just tried that but unfortunately pkg_libchk didn't work.  It didn't pick up 
any application when I have a bunch failling to start because of this 
library.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


PF firewall NAT and Windows IPSEC tunnel

2008-02-09 Thread Nerius Landys
Howdy folks.  I have several computers behind a FreeBSD router (NAT
192.168.0.x using OpenBSD's PF) .  One of those computers is a Windows
machine which is using software called Cisco Systems VPN Client to connect
to some other computers outside of our internal network.  Our connection to
the outside world is DHCP via cable modem.  I can connect the Windows
machine directly to the cable modem, bypassing the FreeBSD router entirely;
the VPN works fine in this case.  However, when I try going through the
FreeBSD router I get dropped VPN connections after four to eight minutes;
the VPN works fine only when it first connects and for five minutes
thereafter.

  Secure VPN Connection terminated locally by the client.
  Reason 412: The remote peer is no longer responding.

We contacted the administrator on the other side and he said to do the
following:

  The following ports should be allowed through the local firewall:
  UDP port 500, port 1
  ESP all ports
  AH all ports


My original /etc/pf.conf:

  ext_if=fxp0
  int_if=fxp3
  internal_net=192.168.0.0/24
  nat on $ext_if from $internal_net to any - ($ext_if)

and I added these three lines (the Windows machine is 192.168.0.3):

  rdr on $ext_if proto udp from any to ($ext_if) port {500,1} -
192.168.0.3
  rdr on $ext_if proto esp from any to ($ext_if) - 192.168.0.3
  rdr on $ext_if proto ah from any to ($ext_if) - 192.168.0.3

But the VPN connections still get dropped after five minutes.  Any ideas?

I'm also running a bridge between several network interfaces.
My /etc/sysctl.conf looks like this:

  net.link.ether.bridge.enable=1
  net.link.ether.bridge.config=em0,em1,fxp1,fxp2,fxp3

The interesting lines from /etc/rc.conf are:

  ifconfig_fxp0=DHCP
  ifconfig_fxp3=inet 192.168.0.254 netmask 255.255.255.0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Three wishes of a wannabe developer

2008-02-09 Thread User Ota
On Sat, Feb 09, 2008 at 09:12:40PM -0700, cpghost wrote:
 On Sat, Feb 09, 2008 at 11:01:53AM -0500, John Almberg wrote:
  I'd suggest looking into a real object oriented language, rather than a 
  systems programming language like C, or a glue language like Perl. I 
  personally think Smalltalk is a great language for beginners, particularly 
  the Squeak version, which is available for free for most platforms.
 
 Yummy, it's a long time since I've used Smalltalk. It's still fun
 today, even though more from an academic point of view than real life
 programming. It certainly was different, compared to Common Lisp I've
 heavily used to hack in back then, and I kind of regret that both
 Smalltalk and Lisp have fallen out of favor nowadays for real projects.
 
  Once you get the basic idea behind objects, you might want to branch out 
  into Ruby, another great object oriented language. All the concept you 
  learned from Smalltalk will carry right over, and since many Ruby folk are 
  coming from the procedural world (and really don't get objects), you will 
  have a leg up on them.
  
  And Ruby will set you up for using Rails, which is an ideal platform for 
  deploying web applications, which will allow you to make your economic 
  simulations available to anyone on the net.
 
 Personally, I do prefer Python and I write hybrid Python/C and
 Python/C++ projects for a living (using SWIG and to a lesser extent
 Boost.Python or its frontends). For web development, which I can't
 avoid entirely, though I'd wish I could, I'm using Django, or some
 other custom mix of Python building blocks. In some rare cases,
 it has to be Zope-based, but this I do really positively hate! ;)
 
 Ruby and Rails are also good places to start and excellent object
 oriented languages. Whether you go the Python or Ruby route is really
 a matter of taste: both routes do have interesting things to show and
 are definitely worth a try (or two).
 
  Just my two cents.
  
  Brgds: John
 

This might be off topic a bit, but personally once you wrap your head 
around objects and topics like polymorphism, basically you should be 
able to master any object-oriented language -- be it Perl or C++ or 
Java.

If you've done C++ before, one idea you can try for an object oriented 
language is C#.  I found C# really easy to use, being managed code and 
all; and the beauty of it is with the miracle of Mono you don't need to 
be in Windows to use it (or you can, without the use of Visual C#).  I 
found it a great starting point, and because of C# I extended my 
knowledge with OOP languages and began using Perl, among other things, 
to do things I wouldn't normally consider with something like VB or 
doing C/C++.


Russell Doucette.

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


The FreeBSD Diary: 2008-01-20 - 2008-02-09

2008-02-09 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


Re: US ftp mirrors down?

2008-02-09 Thread [EMAIL PROTECTED]
On 09/02/2008, James [EMAIL PROTECTED] wrote:
 Kieran wrote:
  Hi James,
 
  I just tried cvsuping from cvsup10.us.freebsd.org for releng_6_3 and it
  worked fine. I am assuming you had a typo below as you should not be
  cvsuping from an ftp.


 No, I've always csupped from the ftp sites. Usually works just fine.

 Though apparently I should be using the cvsup sites. Whoops!


Well, it is just a URL.  I would think, though that
some ftp do not have cvsup and vice versa.

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


Re: libicui18n.so.36 not found, required by evolution

2008-02-09 Thread Dominic Fandrey

E. J. Cerejo wrote:

On Saturday 09 February 2008 13:02:58 Dominic Fandrey wrote:

Matthew Seaman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

E. J. Cerejo wrote:

Running FBSD 6.3 and after updating the ports where icu was one of the
ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object
libicui18n.so.36 not found, required by evolution error, I can see
that the new version of icu installed libicui18n.so.38.  Is there a
better way to fix this or should I just symlink libicui18n.so.38 to
libicui18n.so.36?

Nope.  Symlinking shlibs of different ABI versions together is the
wrong answer.  There's a reason the ABI version number was bumped,
and it indicates the new shlib is not compatible with the old one.

Formally, the correct fix is:

   # portupgrade -rf icu-\*

or the equivalent in whatever ports management software you prefer.

However this is pretty unfortunate as icu is a basic component that
a large number of packages depend upon.  Expect to spend a long time
compiling.

The port sysutils/bsdadminscripts installs a script called pkg_libchk that
will list you all ports that /really/ need to be rebuild. Many of the ports
depending on icu-\* do so indirectly by linking to a library that links to
icu, thus it is sufficent to rebuild those directly linking ports.
pkg_libchk checks for such direct dependencies and will list you the
affected ports.


I just tried that but unfortunately pkg_libchk didn't work.  It didn't pick up 
any application when I have a bunch failling to start because of this 
library.




Are you willing to help me detect the problem?

If so, can you run
# pkg_libchk -m

This turns the false positive checking mechanism off and thus should list 
all ports that currently don't work, plus some that work but don't rely on 
the system to find their libraries, like OpenOffice.

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