KDE4.1 - what is it about avahi-libdns and mDNSResponder

2008-08-13 Thread Odhiambo Washington
Hello Guys,

I am trying to install KDE 4.1 on a FreeBSD 8-CURRENT system that I
have inside VMware.
I am having the installation failing because of conflict btn
avahi-libdns and mDNSResponder - why does KDE 4.1 require both?
I have pkg_deleted either of them but KDE4 still pulls both of them up
and fails due to the conflict.

Advise appreciated.

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Oh My God! They killed init! You Bastards!
 --from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [kde-freebsd] KDE4 libssl conflicts

2008-08-13 Thread Warren Liddell
 You need to clean out the 6.3 versions of various libs/binaries.

 See the delete-old and delete-old-libs targets on /usr/src/Makefile


fixed that issue .. however now kde4 is conflicting with things needed for 
kde3..

Making all in include
===  Installing for tidy-lib-080621.c

===  tidy-lib-080621.c conflicts with installed package(s):
  tidy-2804_2

  They install files into the same place.
  Please remove them first with pkg_delete(1).
*** Error code 1

Stop in /usr/ports/www/tidy-lib.
*** Error code 1

Stop in /usr/ports/www/kdewebdev4.
*** Error code 1

Stop in /usr/ports/x11/kde4.
*** Error code 1

Stop in /usr/ports/x11/kde4.
# pkg_delete tidy-2804_2
pkg_delete: package 'tidy-2804_2' is required by these other packages
and may not be deinstalled:
kde-3.5.8_2
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: KDE4.1 - what is it about avahi-libdns and mDNSResponder

2008-08-13 Thread Dima Panov
On Wednesday 13 August 2008 17:57:17 Odhiambo Washington wrote:
 Hello Guys,

 I am trying to install KDE 4.1 on a FreeBSD 8-CURRENT system that I
 have inside VMware.
 I am having the installation failing because of conflict btn
 avahi-libdns and mDNSResponder - why does KDE 4.1 require both?
 I have pkg_deleted either of them but KDE4 still pulls both of them up
 and fails due to the conflict.

 Advise appreciated.

Try this patch, which fix wrong dependency list:  

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


-- 
Dmitry Red Fox Panov @ Home  FreeBSD since September, 1995
Khabarovsk, Russia  YaIM:redfox_dm | Jabber.org:fluffy | ICQ:1745024

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


Mac RDP (Was: apple mac laptop)

2008-08-13 Thread Andrea Venturoli

John Almberg ha scritto:

I don't think it's far OT, either, since IMHO, Mac desktops and FreeBSD 
servers are the perfect, practical combination for many organizations, 
including my own.


Since there seem to be a lot of expert here...
Does anybody know of a FreeBSD client that can connect to a Mac OS X
(not server) remote desktop?

Last time I tried rdesktop it did not work.

 bye  Thanks
av.

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


Re: freebsd custom distribution

2008-08-13 Thread Vincent Hoffman

Matias Surdi wrote:

Hi everyone,

I'm starting a new project where I would like to distribute the 
software as a distribution, something as pfSense guys do (but mine is 
not targeted to be a firewall).


It would be very appreciated any pointer to some documentation or 
starting point for creating such a custom distro, for example, if I 
have a freeBSD 7 installation where I added some packages plus a 
custom application: How could I create a iso? a liveCD?



Never tried it myself but..
Start by reading the handbook and developers handbook as guidelines. 
Also see things like the contents of /usr/src/tools/tools/nanobsd and 
/usr/src/release/* as well as ports like sysutils/freesbie and 
sysutils/livecd. http://romana.now.ie/writing/customfreebsdiso.html may 
also be useful.


Vince


Thanks a lot.

___
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: Mac RDP (Was: apple mac laptop)

2008-08-13 Thread Vincent Hoffman

Andrea Venturoli wrote:

John Almberg ha scritto:

I don't think it's far OT, either, since IMHO, Mac desktops and 
FreeBSD servers are the perfect, practical combination for many 
organizations, including my own.


Since there seem to be a lot of expert here...
Does anybody know of a FreeBSD client that can connect to a Mac OS X
(not server) remote desktop?

Last time I tried rdesktop it did not work.

according to http://en.wikipedia.org/wiki/Apple_Remote_Desktop you 
should be able to use a VNC client if you have the latest version. Just 
had a go from a linux vnc client with no joy though. It works using a 
mac vnc client though (chicken of the VNC)


Vince


 bye  Thanks
av.

___
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: Nvidia Driver - OpenGL - Compiz

2008-08-13 Thread Andreas Rudisch
On Tue, 12 Aug 2008 21:53:14 -0600
Jeff Molofee [EMAIL PROTECTED] wrote:

 screen. If I go back to the 169 driver, the issues does not occur.
 
 I'm not positive it's OpenGL applications, but it seems any game or GL 
 application I try crashes it instantly. Not even a second to acknowledge 
 the crash... screen goes black and that's it.
 
 I'm running FreeBSD 7.X (RELENG_7), nothing custom in the kernel, Intel 
 6600, GeForce 8800, compiz, gnome, and nothing really fancy.
 
 I've had other tell me to roll back to 169, but no one can tell me why 
 this is happening, if it's a problem for everyone, if there is a fix, etc.

I cannot help you with the information part. But I can confirm, that
this is happening here too. I am running FreeBSD 6.3, GeForce 7600,
compiz and Xfce. Once I start an application using OpenGL, X will crash.

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgpPJgPHHhgTv.pgp
Description: PGP signature


Re: question -updating package + ignore depend

2008-08-13 Thread Mike Clarke
On Wednesday 13 August 2008, m cassar wrote:

 just wanted to mention that firefox3 does not handle addons/plugins
 correctly yet according to ports/UPDATING, so this is still probably
 right for now and i will probably end up installing ff2 anyway.

It handles most of them OK for me with just a little bit of tweaking, 
but some addonss haven't been updated yet to work with Firefox 3 and 
will be automatically disabled until new versions become available.

I had a minor problem with firebug, Firefox disabled it but didn't 
detect that a new version was available and I had to go to the addons 
site and re-install firebug.

I had to create a link 
to /usr/local/diablo-jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so 
in /usr/local/lib/firefox3/plugins.

Apart from that everything seems fine.

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


Re: USB mouse problems.

2008-08-13 Thread Polytropon
On Tue, 12 Aug 2008 16:00:24 +0200, Bernt Hansson [EMAIL PROTECTED] wrote:
 So if I want to use the mouse I have to leave it unconnected until I get
 the login prompt and then connect the mouse.

Just out of curiosity, did you try to use another mouse to
ensure that it's not the mouse's problem?

I have a similar problem since updating to FreeBSD 7 with my
Sun Type 6 USB mouse which is recognized some time after the
system startup has finished. (Same for the Sun USB keyboard.)


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


Re: How to visit U disk?

2008-08-13 Thread Polytropon
On Tue, 12 Aug 2008 08:53:18 +0800, EdwardKing [EMAIL PROTECTED] wrote:
 I want to use U disk which format is FAT32,I don't know how to visit U 
 disk,my dev directory is follows:
 #cd /dev
 #ls
 ...
 usb
 usb0
 usb1
 ...
 
 How to do it?
 Thanks in advance

I just try to guess what you're trying to do: Acces an USB hard
disk? Look out for /dev/da* device files that occur when connecting
the disk, or:

# dmesg | grep ^da

The da* files - direct access - are the special files to access
USB drives.

Then you can mount them as you like (FAT32 - msdosfs):

# mount -t msdosfs /dev/da0s1c /mnt

or something similar. mount_msdosfs allows some options to get
the file attributes correct, read man mount_msdosfs to learn
more about it.


Hope that was the question. :-)


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


Re: Best SMTP Gateway Program and Reporting Tools

2008-08-13 Thread Mike M
On 8/12/2008 at 3:22 PM Josh Kidd wrote:

|I just wanted to pose this question to the list on people's opinions as
|to what the best SMTP Gateway program (ie. Sendmail, Postfix, etc) is
|and what the best log analysis tool for that SMTP program is.
|
|
|
|We are currently using Symantec Mail Security for our  outgoing SMTP
|Gateway but want to employ an open-source solution instead. My problem
|is our main requirement is to have a way to view the logs on a web based
|interface that will allow our system administrators when a customer
|complains they didn't receive an email to be able to go into the logs
|and search by date/time and view the activity for that period to
|determine if the mail went through our system or if it was blocked and
|if so why.
 =

If you need to stay with open source, my opinion is that you should choose an 
excellent open source MTA (I tend towards Postfix).  Your requirement for 
searching the logs is incidental to your main concern - reliable email delivery.

You can then solve the problem above with some simple scripting solutions.

But keep in mind that your first priority is to install a solid MTA.  If you 
don't, then no amount of web-based log file searching will make your life easy.



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


Re: Best SMTP Gateway Program and Reporting Tools

2008-08-13 Thread Zbigniew Szalbot

hi,

Mike M:

If you need to stay with open source, my opinion is that you should
choose an excellent open source MTA (I tend towards Postfix).  Your
requirement for searching the logs is incidental to your main concern
- reliable email delivery.

You can then solve the problem above with some simple scripting
solutions.


Like
$ grep [EMAIL PROTECTED] /var/log/maillog or the like. Really easy, 
especially for admins. I am not one, but even I managed to learn it :)



--
Zbigniew Szalbot
www.LCWords.com


smime.p7s
Description: S/MIME Cryptographic Signature


Quotas via NFS

2008-08-13 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hello,

the handbook (§18.15.4 Quotas over NFS) doesn't seem to be particularly
clear to me.

Here is the situation:

* HOST_A -- web + db server
~  - /usr is mounted with quotas enabled
~[ /dev/ad0s1e /usr ufs rw,userquota 2 2 ]
~  - /usr/local/www is the www root
~  - /usr/local/www is nullfs mounted on /www
~[ /usr/local/www /www nullfs rw 0 0 ]
~  - /www is NFS exported
~[ /www -alldirs -network=x.x.x.x -mask=y.y.y.y ]
~  - rquotad is enabled
~[ root  inetd  892  5  udp4  *:49598  *:* ]

* HOST_B -- ssh/sftp access for a few owners of a subdomain
~  - each owner has its own www root NFS mounted inside its home
~[ HOST_A:/www/hosts/subdomain on /usr/home/owner/www (nfs) ]

Now my problem is:

on HOST_A:
| sudo quota -u owner
Disk quotas for user owner (uid owner_id):
~ Filesystem   usage   quota   limit   grace   files   quota   limit
~  grace
~   /usr3428  921600 1048576 737   0   0


on HOST_B:
| sudo quota -u owner
Disk quotas for user owner (uid owner_id): none

I think I am missing something on how the quota information is exported
via NFS. What I would like to achieve is to allow owners to check
their own quotas on HOST_A, while they can only directly access HOST_B
via SSH.

Thanks

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkii1dIACgkQwMJqmJVx946XQgCgv8NQQJd9tT/1+617D1TRk168
VZMAoIr4L6qP9aihH0UPUpofH7fmAAoy
=G5KV
-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]


Subscribe request result (debian-users ML)

2008-08-13 Thread debian-users-admin
Hi, I am the fml ML manager for the ML [EMAIL PROTECTED].


[EMAIL PROTECTED], Be Seeing You!


If you have any questions or problems,
   please contact [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: question -updating package + ignore depend

2008-08-13 Thread mc
On Wednesday 13 August 2008 09:25:19 Mike Clarke wrote:
 On Wednesday 13 August 2008, m cassar wrote:
  just wanted to mention that firefox3 does not handle addons/plugins
  correctly yet according to ports/UPDATING, so this is still probably
  right for now and i will probably end up installing ff2 anyway.

 It handles most of them OK for me with just a little bit of tweaking,
 but some addonss haven't been updated yet to work with Firefox 3 and
 will be automatically disabled until new versions become available.

 I had a minor problem with firebug, Firefox disabled it but didn't
 detect that a new version was available and I had to go to the addons
 site and re-install firebug.

 I had to create a link
 to /usr/local/diablo-jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so
 in /usr/local/lib/firefox3/plugins.

 Apart from that everything seems fine.

it does look like its working better than last time i used it - guess things 
will iron out eventually. as long as flash works it's fine by me for now ( too 
many nagging about missing plugin)

still i had to install ff2 also for now so that i can update other software 
that have ff2 as a depend.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Max. number of opened files, efficiency

2008-08-13 Thread Laszlo Nagy

How many files can I open under FreeBSD, at the same time?

Problem: I'm making a pivot table, and when I drill down the facts, I 
would like to create a new temporary file for each possible dimension 
value. In most cases, there will be less than 1000 dimension values. I 
tried to open 1000 temporary files and I could do so within one second.


But how efficient is that? What happens when I open 1000 temporary 
files, and write data into them randomly, 10 million times. (avg. 10 000 
write operations per file) Will this be handled efficiently by the OS? 
Is efficiency affected by the underlying filesystem?


I also tried to create 10 000 temporary files, but performance dropped down.

Example in Python:

import tempfile
import time
N = 1
start = time.time()
files = [ tempfile.TemporaryFile() for i in range(N)]
stop = time.time()
print created %s files/second % ( int(N/(stop-start)) )

On my computer this program prints 3814 files/second for N=1000, and  
1561 files/second for N=1.


Thanks,

  Laszlo

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


Re: Max. number of opened files, efficiency

2008-08-13 Thread Bill Moran
In response to Laszlo Nagy [EMAIL PROTECTED]:

 How many files can I open under FreeBSD, at the same time?
 
 Problem: I'm making a pivot table, and when I drill down the facts, I 
 would like to create a new temporary file for each possible dimension 
 value. In most cases, there will be less than 1000 dimension values. I 
 tried to open 1000 temporary files and I could do so within one second.
 
 But how efficient is that? What happens when I open 1000 temporary 
 files, and write data into them randomly, 10 million times. (avg. 10 000 
 write operations per file) Will this be handled efficiently by the OS? 
 Is efficiency affected by the underlying filesystem?
 
 I also tried to create 10 000 temporary files, but performance dropped down.
 
 Example in Python:
 
 import tempfile
 import time
 N = 1
 start = time.time()
 files = [ tempfile.TemporaryFile() for i in range(N)]
 stop = time.time()
 print created %s files/second % ( int(N/(stop-start)) )
 
 On my computer this program prints 3814 files/second for N=1000, and  
 1561 files/second for N=1.

Directories generally start to perform poorly when you put too many files
in them (i.e. the time required to add a new directory entry or find
an existing name in the entry goes up)

If you're going to be making 10s of 1000s of files, I'd recommend making
a tree of directories.  I.e., make directories 1 - 10, then put files
0-999 in directory 1 and files 1000-1999 in directory 2, etc

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


Re: Max. number of opened files, efficiency

2008-08-13 Thread Laszlo Nagy



Directories generally start to perform poorly when you put too many files
in them (i.e. the time required to add a new directory entry or find
an existing name in the entry goes up)

If you're going to be making 10s of 1000s of files, I'd recommend making
a tree of directories.  I.e., make directories 1 - 10, then put files
0-999 in directory 1 and files 1000-1999 in directory 2, etc
  
In fact I do not need any name associated with the file. I just need a 
temporary file object, I would like to access it in read write mode and 
then throw it. For some reason, this kind of temporary file is 
implemented this way (at least in Python):


1. create file name with mkstemp
2. create file object with that name
3. save the file handle number
4. unlink the file name (remove directory entry)
5. return the file handle (that can be closed later)

This is executed each time I create a temporary file. As you can see, 
the number of entries in the tmp directory won't increase at all. (If it 
would be possible, I would create a file without a name for the first time.)


When I close the file handle, the OS will hopefully deallocate the disk 
space because from that point, nothing references the file.


Another interesting (offtopic) question is that I could not open 10 000 
files under Windows XP. Error was too many open file. How to overcome 
this?


Thanks,

  Laszlo

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


RE: Max. number of opened files, efficiency

2008-08-13 Thread Bob McConnell
On Behalf Of Laszlo Nagy

 Another interesting (offtopic) question is that I could not open 10
000 
 files under Windows XP. Error was too many open file. How to
overcome 
 this?

There are various limits on the numbers of handles of different types
available in MS-Windows. Some can be adjusted by adding or changing
registry values and rebooting. Others can only be modified by changing
constants and recompiling. Your best bet to find which this is would be
to do a search on MSDN. Or, if you have an MCSE from the early years, he
might be able to look it up for you.

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


Re: Nvidia Driver - OpenGL - Compiz

2008-08-13 Thread Luke Dean



On Tue, 12 Aug 2008, Jeff Molofee wrote:


Can anyone tell me why, how to fix, or even what is happening on my machine.

I ran the 169.x driver for a long time with no issues at all. I decided to 
upgrade to 173, and noticed instantly that any time I run an OpenGL 
application X crashes instantly. The odd thing is that I am not seeing any 
errors on the screen (maybe going off too fast), and I do not see any errors 
in any of the log files. X shuts down instantly, my machine goes black, X 
starts back up, and I sit here staring at the log in screen. If I go back to 
the 169 driver, the issues does not occur.


I'm not positive it's OpenGL applications, but it seems any game or GL 
application I try crashes it instantly. Not even a second to acknowledge the 
crash... screen goes black and that's it.


I'm running FreeBSD 7.X (RELENG_7), nothing custom in the kernel, Intel 6600, 
GeForce 8800, compiz, gnome, and nothing really fancy.


I've had other tell me to roll back to 169, but no one can tell me why this 
is happening, if it's a problem for everyone, if there is a fix, etc.


Any bits of information would be greatly appreciated.


There should be some useful information in /var/log/Xorg.0.log just after 
X crashes.
If you restart X after the crash, I believe the old log would get 
rotated to /var/log/Xorg.0.log.old


Since x11/nvidia-driver is a binary driver that was linked against a 
specific version of OpenGL, it ships that version of OpenGL as a 
replacement for whatever's on your system at the time.

Maybe your OpenGL applications need to be rebuilt?
I'm not even sure if that suggestion makes sense, but it's something to 
try.

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


Re: usb-serial device

2008-08-13 Thread Oliver Fromme
Michael Lednev wrote:
  Warren Block wrote:
   Michael Lednev wrote:
   
I've obtained USB thermometer and want to make it usable with 
FreeBSD. It identifies itself as:
kernel: ugen0: vendor 0x4348 USB-SER!, rev 1.10/2.50, addr 2

Under Windows it looks like standard COM-port. When I try to use some 
existing drivers like ucycom or uplcom it gives no effect. How can 
this device be used under FreeBSD?
   
   It appears to need the uchcom driver, which is in CURRENT but not yet 
   in 6 or 7. See this thread:
   
   http://lists.freebsd.org/pipermail/freebsd-stable/2008-February/040872.html

  
  Thanks! I'll try to examine it at the weekend.

Did you have any success?  What exactly is the name and
brand of your USB thermometer?

I'm asking because I'm also interested in obtaining an
external thermometer that would work with FreeBSD.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

Whatever happened to the days when hacking started
at the cerebral cortex, and not at the keyboard?
  --  Sid on userfriendly.org by Illiad, 2007-06-20
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Max. number of opened files, efficiency

2008-08-13 Thread Oliver Fromme
Laszlo Nagy wrote:
  In fact I do not need any name associated with the file. I just need a 
  temporary file object, I would like to access it in read write mode and 
  then throw it.

In that case, why do you use physical (i.e. on-disk) files
at all?  You could simply use memory objects.  If you want
to use file semantics (with read() and write() methods etc.),
you can easily do that in Python with memory objects, too.
See the StringIO and cStringIO modules for details.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

We, the unwilling, led by the unknowing,
are doing the impossible for the ungrateful.
We have done so much, for so long, with so little,
we are now qualified to do anything with nothing.
        -- Mother Teresa
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ATi Intel graphics

2008-08-13 Thread Jim
At some point fairly soon, I'll be rebuilding my computer, and I want
three things.

64 Bit for more memory, maybe a bit of performance boost as well -
it's mostly a multimedia machine
decent/good 3D acceleration (better than a GeForce 7300GS - a few
games in WINE in 1920x1080 - yes, believe it or not, the 7300GS
doesn't do /bad/ on many of the games, but it certainly could be
better).
FreeBSD.

I've used Solaris and Linux, and honestly, I'd rather go back to
Windows and use Cygwin for my *nix needs.
I'd rather use FreeBSD for the system than Windows.

64 Bit immediately knocks out the thoughts on using an nVidia card.

Has anyone had much experience with a 3600 series ATi card, it's the
best in the discreet-video category for my target price/performance,
but not listed in the man pages for the Radeon (non-HD) - only the
3400s and the 3800s). Aside from that, going for the really cheap end,
has anyone had much experience with the Intel 4500HD chipsets yet? I'm
lousy with other people's code (barely good with my own), but I could
test if needed, if/when I get the board.

Could anyone give me some of their experiences here? How are your
experiences with these pieces of hardware and their drivers in terms
of stability/reliability (in FreeBSD of course)? Are either of these
setups in a place where a tester would be needed/welcome?

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


Re: Interpreting top, vmstat, and company

2008-08-13 Thread Oliver Fromme
Christopher Cowart wrote:
  What is the difference between the SIZE and RES fields of top?

These are the same as the SIZ and RSS columns in ps(1).

The former is the total virtual size of the process, i.e.
the sum of all pages mapped into the process.  The latter
is the part that is currently resident, i.e. in physical
RAM.  Therefore you have always SIZ = RSS.  If RSS is 0,
it usually means that the process is completely swapped
to disk.

Note that *both* numbers include pages shared with other
processes, such as text pages (that's executable code, not
ASCII text) from binaries and libraries, and shared memory.

  How does this work with a threaded program like apache?

Multiple threads within the same process always share the
memory.  So, as far as the memory consumption is concerned,
it doesn't matter at all if a process is threaded or not,
and how many threads it contains.

  Some sample top output on this host:
  
  Mem: 131M Active, 3754M Inact, 425M Wired, 177M Cache, 214M Buf, 3422M Free
  Swap: 16G Total, 24K Used, 16G Free
  [...]
PID USERNAMETHR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
  32361 root  1  960   106M 16604K select 2   0:02  0.00% httpd
  50687 www   1  200   106M 17196K lockf  0   0:01  0.00% httpd
  
  I'm having a hard time accounting for the 3.8GB of inactive memory

That looks like you have really plenty of RAM.
Basically those numbers mean this:

425 MB of RAM is wired memory.  Most of this (maybe even
all) belongs to the kernel.  Wired means memory pages
that are fixed in physical RAM.  The kernel cannot be
paged to disk (at least not in FreeBSD), so kernel memory
is usually wired.

131 MB of RAM is actively being used by processes.

Everything else is just different kinds of cache.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

Software gets slower faster than hardware gets faster.
-- Niklaus Wirth
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Max. number of opened files, efficiency

2008-08-13 Thread cpghost
On Wed, Aug 13, 2008 at 04:12:39PM +0200, Laszlo Nagy wrote:
 How many files can I open under FreeBSD, at the same time?

% sysctl -a | grep maxfiles
kern.maxfiles: 7880
kern.maxfilesperproc: 7092

But remember that you're already using a few hundred file descriptors,
so usually, you won't have more than 6800 or so open files for your
application... unless you crank up those values (in /etc/sysctl.conf
IIRC)

Your shell may also limit the number of open files (cf openfiles
below):

% limits
Resource limits (current):
  cputime  infinity secs
  filesize infinity kB
  datasize   524288 kB
  stacksize   65536 kB
  coredumpsize infinity kB
  memoryuseinfinity kB
  memorylocked infinity kB
  maxprocesses 3546
  openfiles7092
  sbsize   infinity bytes
  vmemoryuse   infinity kB

 Problem: I'm making a pivot table, and when I drill down the facts, I 
 would like to create a new temporary file for each possible dimension 
 value. In most cases, there will be less than 1000 dimension values. I 
 tried to open 1000 temporary files and I could do so within one second.
 
 But how efficient is that? What happens when I open 1000 temporary 
 files, and write data into them randomly, 10 million times. (avg. 10 000 
 write operations per file) Will this be handled efficiently by the OS? 
 Is efficiency affected by the underlying filesystem?

Wouldn't it be more efficient to use a DBM file (anydbm, bsddb),
indexed by dimension, for this?

You may also want to consider numpy and some modules in scipy
for this kind of computations: IIRC they do have some functions
to efficiently store and read back binary data to/from files.
And numpy (ndarray) does have a nice slice-like syntax too.

 I also tried to create 10 000 temporary files, but performance dropped down.
 
 Example in Python:
 
 import tempfile
 import time
 N = 1
 start = time.time()
 files = [ tempfile.TemporaryFile() for i in range(N)]
 stop = time.time()
 print created %s files/second % ( int(N/(stop-start)) )
 
 On my computer this program prints 3814 files/second for N=1000, and  
 1561 files/second for N=1.
 
 Thanks,
 
Laszlo

Regards,
-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: Cluster Filesystem

2008-08-13 Thread Oliver Fromme
Norberto Meijome wrote:
  Rudi Kramer - MWEB wrote:
   Don't forget about the HAMMER file system which Matthew Dillon over at
   DragonFly BSD is busy working on.  It's not 100% finished but hopefully
   soon and it should be ported to FreeBSD. It  looks to be pretty good
   (Exabytes of space?!!!?)
   
   More info:
   
   Interview with Matthew:
   http://cisx1.uma.maine.edu/~wbackman/bsdtalk/bsdtalk154.mp3
   Website: http://www.dragonflybsd.org/hammer/
   Wiki: http://en.wikipedia.org/wiki/HAMMER
  
  interesting. it mentions mirroring...but clustering? as in,
  having a unique ( or several) namespaces that, when addressed,
  allow you to access any of the nodes that provide storage?

Note that Matt's terminology is a little bit confusing.
What he calls mirroring in HAMMER has nothing to do
with RAID-1 (like gmirror), but it is rather a kind of
replication.  The mirroring feature allows replication
between local and/or remote file systems.  So, yes, it
is intended to support clustering.

Clustering and SSI is the main goal of DragonFly BSD,
after all.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

In my experience the term transparent proxy is an oxymoron (like jumbo
shrimp).  Transparent proxies seem to vary from the distortions of a
funhouse mirror to barely translucent.  I really, really dislike them
when trying to figure out the corrective lenses needed with each of them.
-- R. Kevin Oberman, Network Engineer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to visit U disk?

2008-08-13 Thread Michaël Grünewald

EdwardKing wrote:

Thanks your answer!

I use dmesg | tail
#dmesg | tail

sc0: VGA 16 virtual consoles, flags=0x300
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Timecounter TSC frequency 2194304266 Hz quality 800
Timecounters tick every 1.000 msec
hptrr: no controller detected.
ad0: 5120MB VMware Virtual IDE Hard Drive 0001 at ata0-master UDMA33
acd0: CDROM VMware Virtual IDE CDROM Drive/0001 at ata1-master UDMA33
Waiting 5 seconds for SCSI devices to settle
GEOM_LABEL: Label for provider acd0 is iso9660/FreeBSD_Install.
Trying to mount root from ufs:/dev/ad0s1a


If you issued the command right after you plugged the USB stick in your 
system, it has not been detected. The last line



#mount_msdosfs ufs:/dev/ad0s1a  /mnt
mount_msdosfs ufs:/dev/ad0s1a: : Operation not permitted


Because there is no file ufs:/dev/ad0s1a, note that ufs: is not part of 
the path of the device in the file system.



#mount_msdosfs /dev/ad0s1a  /mnt
mount_msdosfs /dev/ad0s1a: : Operation not permitted


Because the /dev/ad0s1a device is already mounted as the root file system.


#device umass
device: not found


The shell says there is no command `device'.


It seems you would take advantage from reading section «18. Storage» in 
the Handbook, especially section 18.2 that explains thow to recognize 
devices after their names, and section 18.5 that is devoted to USB 
devices. Again, the URL for section 18 is:


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

(Note that top-posting obfuscates the dialog history, so it is best to 
avoid top-posting.)


- Original Message - 
From: Michaël Grünewald [EMAIL PROTECTED]

To: EdwardKing [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2008 1:46 PM
Subject: Re: How to visit U disk?



EdwardKing wrote:

I want to use U disk which format is FAT32,I don't know how to visit
U disk,my dev directory is follows: #cd /dev #ls ... usb usb0 usb1 
...


How to do it? Thanks in advance

After you plug the stick in the system, it is attached by the kernel
which issues some information. This information is visible in the
console, you can also access it with the dmesg utility:

  $ dmesg | tail
  umass0: Sony Storage Media, class 0/0, rev 2.00/1.00, addr 2 on 
uhub4

  da0 at umass-sim0 bus 0 target 0 lun 0
  da0: Sony Storage Media 0100 Removable Direct Access SCSI-0 device
  da0: 40.000MB/s transfers
  da0: 247MB (506880 512 byte sectors: 64H 32S/T 247C)
  GEOM_LABEL: Label for provider da0s1 is msdosfs/USBSTICK.

You can see above example output from my system.
The stick is available here through `/dev/da0s1' or through
`/dev/msdosfs/USBSTICK'.

Not that some environements will automagically mount the stick for you,
usually at some directory under /var/media.

You may also want to read parts of the `Storage section' in the Handbook:

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

--
Cheers,
Michaël


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


make release and sysinstall

2008-08-13 Thread Matias Surdi

Hi again,

Suppose I build my own FreeBSD based distro, as described in release(7). 
How can I script sysinstall or replace it with another installer to 
customize the installation process?



Thanks a lot.

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


Re: Mac RDP (Was: apple mac laptop)

2008-08-13 Thread John Almberg


On Aug 13, 2008, at 5:06 AM, Andrea Venturoli wrote:


John Almberg ha scritto:

I don't think it's far OT, either, since IMHO, Mac desktops and  
FreeBSD servers are the perfect, practical combination for many  
organizations, including my own.


Since there seem to be a lot of expert here...
Does anybody know of a FreeBSD client that can connect to a Mac OS X
(not server) remote desktop?

Last time I tried rdesktop it did not work.


I don't run GUIs on my FreeBSD servers, so I've never had to do  
anything like this. In fact, I would do it the other way around, if I  
had to... run the virtual desktop on the Mac, and log into the  
FreeBSD server.


Not that I actually run X on the server. I just SSH into the box, or  
use a virtual console connection, in case I can't SSH into the box  
(not that that has ever happened...)


-- John

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


Re: ATi Intel graphics

2008-08-13 Thread John Nielsen
On Wednesday 13 August 2008, Jim wrote:
 At some point fairly soon, I'll be rebuilding my computer, and I want
 three things.

 64 Bit for more memory, maybe a bit of performance boost as well -
 it's mostly a multimedia machine
 decent/good 3D acceleration (better than a GeForce 7300GS - a few
 games in WINE in 1920x1080 - yes, believe it or not, the 7300GS
 doesn't do /bad/ on many of the games, but it certainly could be
 better).
 FreeBSD.

You may want to rethink this. The emulators/wine port is i386-only:

%grep -i arch /usr/ports/emulators/wine/Makefile
ONLY_FOR_ARCHS= i386

 I've used Solaris and Linux, and honestly, I'd rather go back to
 Windows and use Cygwin for my *nix needs.
 I'd rather use FreeBSD for the system than Windows.

 64 Bit immediately knocks out the thoughts on using an nVidia card.

 Has anyone had much experience with a 3600 series ATi card, it's the
 best in the discreet-video category for my target price/performance,
 but not listed in the man pages for the Radeon (non-HD) - only the
 3400s and the 3800s). Aside from that, going for the really cheap end,
 has anyone had much experience with the Intel 4500HD chipsets yet? I'm
 lousy with other people's code (barely good with my own), but I could
 test if needed, if/when I get the board.

In my experience the Intel and Radeon drivers for Xorg work very well on 
FreeBSD, but I don't have experience with any of the specific hardware you 
mention.

 Could anyone give me some of their experiences here? How are your
 experiences with these pieces of hardware and their drivers in terms
 of stability/reliability (in FreeBSD of course)? Are either of these
 setups in a place where a tester would be needed/welcome?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATi Intel graphics

2008-08-13 Thread Jim
On Wed, Aug 13, 2008 at 2:06 PM, John Nielsen [EMAIL PROTECTED] wrote:
 On Wednesday 13 August 2008, Jim wrote:
 At some point fairly soon, I'll be rebuilding my computer, and I want
 three things.

 64 Bit for more memory, maybe a bit of performance boost as well -
 it's mostly a multimedia machine
 decent/good 3D acceleration (better than a GeForce 7300GS - a few
 games in WINE in 1920x1080 - yes, believe it or not, the 7300GS
 doesn't do /bad/ on many of the games, but it certainly could be
 better).
 FreeBSD.

 You may want to rethink this. The emulators/wine port is i386-only:

 %grep -i arch /usr/ports/emulators/wine/Makefile
 ONLY_FOR_ARCHS= i386


I was under the impression you could build it with -m32 set in CFLAGS
and CXXFLAGS and it worked fine.

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


Re: stopping less command from garbaging on the screen

2008-08-13 Thread N. Raghavendra
At 2008-08-12T17:07:08-07:00, Krishna Mohan Gundu wrote:

 When less exits the entire page history of the less session remains
 on the screen. How do I prevent less from doing that?

A brute-force method is to repaint the screen before `less', and
to clear it afterwards, which can be done in `tcsh' with

  alias less 'less -c \!*  clear'

However, this makes the screen contents prior to the `less' command
scroll off the top and become invisible.  To avoid this, you can use
termcap(5) instead of the above alias:

  setenv TERMCAP xterm|xterm-color:tc=xterm-xfree86:
  setenv LESS -cs
  setenv PAGER less

See http://www.greenwoodsoftware.com/less/faq.html#tite and
`/etc/termcap'.

 Also are you aware of any articles on the web that summarize the
 behavioral differences like these between linux and freebsd.

I used Debian for several years before moving to FreeBSD some years
ago.  I don't remember particularly making an effort to deal with the
differences between them, so I can't help you there.  FWIW, I found
Matthew Fuller's article `BSD vs Linux' at
http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php
interesting.

Raghavendra.

-- 
N. Raghavendra [EMAIL PROTECTED] | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.

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


HALP PLEASE!!! USB MOUSE JERKINESS SPORADIC MADNESS

2008-08-13 Thread RODNEY ROGER
I ain't sure if this is the right place for these kinds of questions
so here goes it. Every time I'm playing an OpenGL game in X and use
the scrollwheel of my mouse, it seems as though the response time of
the mouse decreases and mouse movements get real slow for a bit and
then go back to normal until I scroll the scrollwheel up or down. I
have /dev/sysmouse in my Xorg.conf. Does anyone have any idea what
might be causing this erratic behavior?

Thanks in advance for any help anyone might be helpful enough to
offer. This problem has been eating me for the past month.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATi Intel graphics

2008-08-13 Thread John Nielsen
On Wednesday 13 August 2008, Jim wrote:
 On Wed, Aug 13, 2008 at 2:06 PM, John Nielsen [EMAIL PROTECTED] wrote:
  On Wednesday 13 August 2008, Jim wrote:
  At some point fairly soon, I'll be rebuilding my computer, and I want
  three things.
 
  64 Bit for more memory, maybe a bit of performance boost as well -
  it's mostly a multimedia machine
  decent/good 3D acceleration (better than a GeForce 7300GS - a few
  games in WINE in 1920x1080 - yes, believe it or not, the 7300GS
  doesn't do /bad/ on many of the games, but it certainly could be
  better).
  FreeBSD.
 
  You may want to rethink this. The emulators/wine port is i386-only:
 
  %grep -i arch /usr/ports/emulators/wine/Makefile
  ONLY_FOR_ARCHS= i386

 I was under the impression you could build it with -m32 set in CFLAGS
 and CXXFLAGS and it worked fine.

You may already know more than I do then; I haven't tried that and my main 
desktop is currently running i386.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Lots of accounting data

2008-08-13 Thread Christopher Cowart
Hello,

I'm playing a game of cat and mouse with process accounting and disk
space. I built some boxes with 9GB /var partitions, rolled them into
production, and after about 4 days of full load, /var filled up.

Looking at the size of /var/account/acct{,.0}, and figuring I'd be
seeing a 200% load increase in about a month, I created a new label from
the large chunk of free space I saved for situations like this. 40GB
mounted to /var/account: usage was down to 20%, and I thought the crisis
was averted.

About a week and a half later, I get a disk full e-mail from nagios and
 +pid 94696 (gzip), uid 0 inumber 6 on /var/account: filesystem full
in my dailies again. My /var/account/acct file was 17GB in size. Add one
rotation before compression and I completely lose that feeling of
cleverness I had when I gave accounting a dedicated 40GB partition.

If you're wondering how I can possibly have this much accounting data,
two `vmstat -f' invocations 100 seconds apart show 32282 forks (an
average of 323 per second). These boxes are running squid with a
redirect script to implement a captive portal. There are generally
several hundred unauthenticated users; all of their http traffic, from
firefox to the little weather widgets and spyware phoning home, gets
proxied through squid and subsquently a redirect script that, among
other things, does some text munging on the URL, and queries various
ipfw tables to determine what context the user is in. Some of this
could be optimized to launch fewer processes, but the code would be less
maintainable.

I only really see two options, neither of which I particularly like:
  * Throw more disk at the problem (but given what I've seen, I don't
like the odds that within a month or two, I'll realize I didn't give
it enough).
  * Turn off accounting on these boxes.

Are these really my only options? Is there any kind of tuning I can be
doing?

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgptwA2Kb9F2S.pgp
Description: PGP signature


Re: Lots of accounting data

2008-08-13 Thread Bill Moran
In response to Christopher Cowart [EMAIL PROTECTED]:

 Hello,
 
 I'm playing a game of cat and mouse with process accounting and disk
 space. I built some boxes with 9GB /var partitions, rolled them into
 production, and after about 4 days of full load, /var filled up.
 
 Looking at the size of /var/account/acct{,.0}, and figuring I'd be
 seeing a 200% load increase in about a month, I created a new label from
 the large chunk of free space I saved for situations like this. 40GB
 mounted to /var/account: usage was down to 20%, and I thought the crisis
 was averted.
 
 About a week and a half later, I get a disk full e-mail from nagios and
  +pid 94696 (gzip), uid 0 inumber 6 on /var/account: filesystem full
 in my dailies again. My /var/account/acct file was 17GB in size. Add one
 rotation before compression and I completely lose that feeling of
 cleverness I had when I gave accounting a dedicated 40GB partition.
 
 If you're wondering how I can possibly have this much accounting data,
 two `vmstat -f' invocations 100 seconds apart show 32282 forks (an
 average of 323 per second). These boxes are running squid with a
 redirect script to implement a captive portal. There are generally
 several hundred unauthenticated users; all of their http traffic, from
 firefox to the little weather widgets and spyware phoning home, gets
 proxied through squid and subsquently a redirect script that, among
 other things, does some text munging on the URL, and queries various
 ipfw tables to determine what context the user is in. Some of this
 could be optimized to launch fewer processes, but the code would be less
 maintainable.
 
 I only really see two options, neither of which I particularly like:
   * Throw more disk at the problem (but given what I've seen, I don't
 like the odds that within a month or two, I'll realize I didn't give
 it enough).
   * Turn off accounting on these boxes.

* Rotate and compress more frequently; and store less history?

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


Re: Lots of accounting data

2008-08-13 Thread Christopher Cowart
Bill Moran wrote:
 In response to Christopher Cowart [EMAIL PROTECTED]:
 I only really see two options, neither of which I particularly like:
   * Throw more disk at the problem (but given what I've seen, I don't
 like the odds that within a month or two, I'll realize I didn't give
 it enough).
   * Turn off accounting on these boxes.
 
 * Rotate and compress more frequently; and store less history?

The compressed history amounts to nothing in comparison (1.5GB per file
as opposed to 17GB). I suppose I could configure our hourly logrotate to
replace the functionality of /etc/periodic/daily/310.accounting. Sounds
like a viable solution to me.

Thanks,

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgp208uNMWxQ6.pgp
Description: PGP signature


Re: Lots of accounting data

2008-08-13 Thread Brie Gordon
On Wed, Aug 13, 2008 at 3:03 PM, Christopher Cowart
[EMAIL PROTECTED] wrote:
 Bill Moran wrote:
 In response to Christopher Cowart [EMAIL PROTECTED]:
 I only really see two options, neither of which I particularly like:
   * Throw more disk at the problem (but given what I've seen, I don't
 like the odds that within a month or two, I'll realize I didn't give
 it enough).
   * Turn off accounting on these boxes.

 * Rotate and compress more frequently; and store less history?

 The compressed history amounts to nothing in comparison (1.5GB per file
 as opposed to 17GB). I suppose I could configure our hourly logrotate to
 replace the functionality of /etc/periodic/daily/310.accounting. Sounds
 like a viable solution to me.

 Thanks,

 --
 Chris Cowart
 Network Technical Lead
 Network  Infrastructure Services, RSSP-IT
 UC Berkeley


Could you dedicate a server to holding logs? (In addition to the compression?)

-- 
Regards,

Brie A. Gordon
A Linux Chica

http://granite.sru.edu/~bag6849/index.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Lots of accounting data

2008-08-13 Thread Dan Nelson
In the last episode (Aug 13), Christopher Cowart said:
 I'm playing a game of cat and mouse with process accounting and disk
 space. I built some boxes with 9GB /var partitions, rolled them into
 production, and after about 4 days of full load, /var filled up.
 
 Looking at the size of /var/account/acct{,.0}, and figuring I'd be
 seeing a 200% load increase in about a month, I created a new label
 from the large chunk of free space I saved for situations like this.
 40GB mounted to /var/account: usage was down to 20%, and I thought
 the crisis was averted.
 
 About a week and a half later, I get a disk full e-mail from nagios
 and +pid 94696 (gzip), uid 0 inumber 6 on /var/account: filesystem
 full in my dailies again. My /var/account/acct file was 17GB in size.
 Add one rotation before compression and I completely lose that
 feeling of cleverness I had when I gave accounting a dedicated 40GB
 partition.
 
 If you're wondering how I can possibly have this much accounting data,
 two `vmstat -f' invocations 100 seconds apart show 32282 forks (an
 average of 323 per second). These boxes are running squid with a
 redirect script to implement a captive portal. There are generally
 several hundred unauthenticated users; all of their http traffic, from
 firefox to the little weather widgets and spyware phoning home, gets
 proxied through squid and subsquently a redirect script that, among
 other things, does some text munging on the URL, and queries various
 ipfw tables to determine what context the user is in. Some of this
 could be optimized to launch fewer processes, but the code would be less
 maintainable.
 
 I only really see two options, neither of which I particularly like:
   * Throw more disk at the problem (but given what I've seen, I don't
 like the odds that within a month or two, I'll realize I didn't give
 it enough).
   * Turn off accounting on these boxes.

 * edit /etc/periodic/daily/310.accounting to keep less historical
   copies of acct.

 * edit /sys/kern/kern_acct.c to not write accounting records for the
   squid userid.

 * Mount a ZFS filessytem on /var/account/ with compression enabled. 
   Even lzjb compression will get you 3:1 compression on the acct
   files; gzip-1 should get you even more.
 
-- 
Dan Nelson
[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: ATi Intel graphics

2008-08-13 Thread Roland Smith
On Wed, Aug 13, 2008 at 02:20:45PM -0400, Jim wrote:
 On Wed, Aug 13, 2008 at 2:06 PM, John Nielsen [EMAIL PROTECTED] wrote:
  On Wednesday 13 August 2008, Jim wrote:
  At some point fairly soon, I'll be rebuilding my computer, and I want
  three things.
 
  64 Bit for more memory, maybe a bit of performance boost as well -
  it's mostly a multimedia machine
  decent/good 3D acceleration (better than a GeForce 7300GS - a few
  games in WINE in 1920x1080 - yes, believe it or not, the 7300GS
  doesn't do /bad/ on many of the games, but it certainly could be
  better).
  FreeBSD.
 
  You may want to rethink this. The emulators/wine port is i386-only:
 
  %grep -i arch /usr/ports/emulators/wine/Makefile
  ONLY_FOR_ARCHS= i386
 
 
 I was under the impression you could build it with -m32 set in CFLAGS
 and CXXFLAGS and it worked fine.

IIRC, all the libraries that WINE depends on also need to be available
in 32 bits. While not impossible nobody has spent any affort on this
because it's easier just to install i386.

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


pgpkQrLKbN4JI.pgp
Description: PGP signature


Re: ATi Intel graphics

2008-08-13 Thread Steve Franks
On Wed, Aug 13, 2008 at 12:16 PM, Roland Smith [EMAIL PROTECTED] wrote:
 On Wed, Aug 13, 2008 at 02:20:45PM -0400, Jim wrote:
 On Wed, Aug 13, 2008 at 2:06 PM, John Nielsen [EMAIL PROTECTED] wrote:
  On Wednesday 13 August 2008, Jim wrote:
  At some point fairly soon, I'll be rebuilding my computer, and I want
  three things.
 
  64 Bit for more memory, maybe a bit of performance boost as well -
  it's mostly a multimedia machine
  decent/good 3D acceleration (better than a GeForce 7300GS - a few
  games in WINE in 1920x1080 - yes, believe it or not, the 7300GS
  doesn't do /bad/ on many of the games, but it certainly could be
  better).
  FreeBSD.
 
  You may want to rethink this. The emulators/wine port is i386-only:
 
  %grep -i arch /usr/ports/emulators/wine/Makefile
  ONLY_FOR_ARCHS= i386
 

 I was under the impression you could build it with -m32 set in CFLAGS
 and CXXFLAGS and it worked fine.

 IIRC, all the libraries that WINE depends on also need to be available
 in 32 bits. While not impossible nobody has spent any affort on this
 because it's easier just to install i386.

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


I suppose it's naive to think that some tool like portupgrade could be
bent to build all the depends with -m32 as well?  I guess you'd wind
up with a bunch of things you didn't want as 32-bit (i.e. XOrg?) being
re-installed as 32bit, right?  I don't suppose there's any
infrastructure for simultaneously installing two versions of a port
(one of the reasons BSD doesn't crash as much as win32, no doubt, and
that we don't usually have .dll/.so hell)...still I might settle for a
32-bit X if I could have 64-bit disk  network still...

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


Re: ATi Intel graphics

2008-08-13 Thread Roland Smith
On Wed, Aug 13, 2008 at 12:17:23PM -0400, Jim wrote:

 Has anyone had much experience with a 3600 series ATi card, it's the
 best in the discreet-video category for my target price/performance,
 but not listed in the man pages for the Radeon (non-HD) - only the
 3400s and the 3800s). Aside from that, going for the really cheap end,
 has anyone had much experience with the Intel 4500HD chipsets yet? I'm
 lousy with other people's code (barely good with my own), but I could
 test if needed, if/when I get the board.

The last ATI chip with full open-source 3D accelleration support is the
2950 (RV280), but 3D and accelleration support for newer chips is
actively being worked on. ATI is even going to provide the developers
with documentation (could be that that has happened by now?). The most
up-to-date info can usually be found on the phoronix.com website, e.g.
http://www.phoronix.com/scan.php?page=news_itempx=NjU0OQ

The driver that you want for ATI cards is xf86-video-ati. But for the
most features you'll have to compile it yourself from the code in a git
repository. You'll probably need an updated DRM driver as well.

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


pgphp9gmT0T6h.pgp
Description: PGP signature


Re: ATi Intel graphics

2008-08-13 Thread Jim
On Wed, Aug 13, 2008 at 3:25 PM, Steve Franks [EMAIL PROTECTED] wrote:
 I suppose it's naive to think that some tool like portupgrade could be
 bent to build all the depends with -m32 as well?  I guess you'd wind
 up with a bunch of things you didn't want as 32-bit (i.e. XOrg?) being
 re-installed as 32bit, right?  I don't suppose there's any
 infrastructure for simultaneously installing two versions of a port
 (one of the reasons BSD doesn't crash as much as win32, no doubt, and
 that we don't usually have .dll/.so hell)...still I might settle for a
 32-bit X if I could have 64-bit disk  network still...

 Steve


Jail. I suspect I could build the base system plus X and copy
everything over to a jailed dir. Once there, I could set -m32 in the
CFLAGS and CXXFLAGS of the system make.conf. Build WINE in the jail,
add a /usr/local... bin32, lib32 and libexec32 to the main (non-jail)
part of the OS, and copy everything there. Then update the path and
libpath for my system... OK, not simple, but it'll be an interesting
experiment.

*Jeremy Clarkson* What could /possibly/ go wrong?

Not really had the issues you mentioned in Windows in the last few
years, but I still prefer FreeBSD - the KDE and Gnome user interfaces
(desktop management) are just much more efficient for getting work
done (for me anyway) than that of Windows, and I can have a lot more
control over my system.

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


Re: ATi Intel graphics

2008-08-13 Thread Josh Carroll
 Jail. I suspect I could build the base system plus X and copy
 everything over to a jailed dir. Once there, I could set -m32 in the
 CFLAGS and CXXFLAGS of the system make.conf. Build WINE in the jail,
 add a /usr/local... bin32, lib32 and libexec32 to the main (non-jail)
 part of the OS, and copy everything there. Then update the path and
 libpath for my system... OK, not simple, but it'll be an interesting
 experiment.

I tried this a while ago with a chroot. I installed 7.0-RELEASE/i386
there, and built ports inside the chroot. You need to also do a few
things to trick things like libtool (and other auto* tools) that your
arch is i386 and not amd64. From memory, I think you need to:

env UNAME_m=i386 make ...

For what it's worth, I got wine (and all depends) built, but it did
not work. It is likely I made a mistake along the way, of course. I
believe the resulting binary was generating a SIGABRT.

Naturally, if you have success doing this, it might be worth
publishing the (excruciating) details.

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


Re: Mac RDP (Was: apple mac laptop)

2008-08-13 Thread Andrea Venturoli

John Almberg ha scritto:

I don't run GUIs on my FreeBSD servers, so I've never had to do anything 
like this. In fact, I would do it the other way around, if I had to... 
run the virtual desktop on the Mac, and log into the FreeBSD server.


Not that I actually run X on the server. I just SSH into the box, or use 
a virtual console connection, in case I can't SSH into the box (not that 
that has ever happened...)


Right, I fully agree: no GUI on the server.

My need here is a bit different though, i.e. maintenance and assistance 
of remote clients.


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


py25_gtk2 misinstalled? (python + gtk)

2008-08-13 Thread Steve Franks
I get the following when I import gtk in python:

ImportError:
/usr/local/lib/python2.5/site-packages/gtk-2.0/gconf.so: Undefined
symbol g_assertion_message_expr

My versions:

python25-2.5.2_1
py25-gtk-2.12.

Ideas?

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


Re: Lots of accounting data

2008-08-13 Thread Christopher Cowart
Dan Nelson wrote:
 I only really see two options, neither of which I particularly like:
   * Throw more disk at the problem (but given what I've seen, I don't
 like the odds that within a month or two, I'll realize I didn't give
 it enough).
   * Turn off accounting on these boxes.
 
  * edit /etc/periodic/daily/310.accounting to keep less historical
copies of acct.
 
  * edit /sys/kern/kern_acct.c to not write accounting records for the
squid userid.
 
  * Mount a ZFS filessytem on /var/account/ with compression enabled. 
Even lzjb compression will get you 3:1 compression on the acct
files; gzip-1 should get you even more.

Thank you for the extra suggestions. 

I've uncovered the root cause of the problem. It's documented in
bin/120293: [patch] sa(8) fails to summarize/truncate accounting data.

It appears that the daily execution of `sa -s -q' is *not* actually
sumarizing the data, and thus not truncating the file. As such,
/var/account/acct is growing without bound -- not being restored to a
size of 0 after the periodic run. This is a bug in sa(8).

Will this patch be MFCd to 7.0 as an errata? Should somebody submit a
request to [EMAIL PROTECTED]

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgp90T19ZbD4H.pgp
Description: PGP signature


Re: Transparent Bridge with VLAN Tagging - How?

2008-08-13 Thread Christopher Cowart
Mike Sweetser - Adhost wrote:
 Hello,
 
 I'm attempting to set up a transparent bridge in FreeBSD 7.0 to
 eventually act as a PF/Snort box, and it needs to be VLAN aware.
 However, I don't seem to be on the right track as far as setting it up.
 
 I have, for instance, VLAN 10 that it needs to be aware of, and this
 network segment is on VLAN 10 from a switch higher up.  I have the
 current setup, but once it's running, I can't ping anything.  bge0 is
 the outside interface, bge1 is inside:
 
 defaultrouter=192.168.1.1
 gateway_enable=YES
 cloned_interfaces=bridge0 vlan0 vlan1
 ifconfig_vlan0=vlan 10 vlandev bge0
 ifconfig_vlan1=vlan 10 vlandev bge1
 ifconfig_bridge0=inet 192.168.1.10 netmask 255.255.0.0 addm bge0 addm
 bge1 addm vlan0 addm vlan1 up
 ifconfig_bge0=up
 ifconfig_bge1=up
 
 What am I doing wrong?

I'm pretty sure you *don't* want to bridge the interfaces with their
parents (vlan0 shouldn't be bridged with bge0 -- if it even works, it
would cause tagged packets to be untagged and retransmitted out the
incoming interface (what cisco calls the native vlan) and vice versa).

I've only bridged vlan interfaces -- not their parents. E.g.:
cloned_interfaces=bridge0 vlan190 vlan590
ifconfig_bge0=up
ifconfig_vlan190=vlan 190 vlandev bge1
ifconfig_vlan590=vlan 590 vlandev bge1
ifconfig_bridge0=addm vlan190 addm vlan590

If you want to bridge the parents, I think it would look like this
(YMMV):
cloned_interfaces=bridge0 vlan10
ifconfig_bge0=up
ifconfig_bge1=up
ifconfig_bridge0=addm bge0 addm bge1
ifconfig_vlan10=vlan 10 vlandev bridge0

I don't know how well if_bridge(4) copes with vlan tags -- I know it
breaks if you bridge a vlan(4) with a gif(4). I also don't know if a
vlan interface will happily accept a bridge parent.

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgpGk1VCg7bG3.pgp
Description: PGP signature


Re: general questions about 7.0 and computer efficiency......

2008-08-13 Thread Gary Kline
On Tue, Aug 12, 2008 at 11:52:38PM +0100, Chris Whitehouse wrote:
 Gary Kline wrote:
 On Tue, Aug 12, 2008 at 12:46:56AM +0100, Chris Whitehouse wrote:
 Hi Gary
 
  Do you build your hardware from the tower case up?  ---Green is 
  in these days; so maybe some of us, or each of us, can
  contribute to a best-of list for those who are going to find a
  local builder or roll their own.  First time I'll be in an in
  group :-)
 
 Yep, any old crap case found on the street will do. With a little care 
 building modern hardware is _really_ easy, it's very hard to mess up as 
 there is only a handful of parts and most things that plug into other 
 things can only do so one way and things that aren't supposed to plug 
 into each other mostly can't. Power supplies provide instant protection, 
 ie won't turn on when there is a problem. My computer has one each of 
 motherboard, hard drive, power supply, optical drive and cpu, plus 2 ram 
 modules and a few cables.

 
 The time consuming part is researching the parts. If you are building 
 servers you might have to dig even deeper, eg
 http://www.worlds-fastest.com/d.pdf/wfw991.pdf
 

I have one firewall running pfSense.  It stands guard between my
modem and my internal server.  I don't understand why the pfSense
box has two NIC's and the mail/web/DNS has only one, but that's
how my LAN guy reconfigured things.

one thing I'm thinking of is to get One fast and lower-power server,
having two jails.  One jail would be as-is with mail/web/DNS and the
other jail would be tao, my main server for years.  When I buy
a reasonably fast ThinkPad, it could run Ubuntu and I could
reconfigure my older boxen for emergencies.

 
  Not that bad if you've got only one box.  My Ubuntu is a bear to
  reboot, sometimes, because the mouse goes nuts every other
  reboot.  
 
 Do you mean it's not that bad that one computer uses 130 instead of 95. 
 I think that is critical to the problem. To think about climate change 
 you have to multiply your negligible contribution by the total number of 
 negligible contributions. Manufacturers are not interested in 'green' so 
 we have to do it for ourselves. 


They are finally waking up!  Especially as their own costs
skyrocket, and as the poor consumers {that's us} start yelping as
our power bills hit the ceiling.  It will be at least a few years
though, so for now, yes, it's our responsibility.


 I have to say it was a bit painful 
 spending £50 on an energy efficient power supply instead of £15 on a 
 standard one, but the other parts aren't any more expensive.
 
 I'll redo my measurements in the next couple of days.
 
 
 It's a good idea to turn computers off at the wall when not using them
 not just shut them down. I was surprised to find mine uses about 25
 watts when shut down. Again the Dells at work use even more. The
 corporate environment must waste so many megawatts...


And of course these costs are passed along.  Borne by not only
the consumer but by the planet.  



 
 For servers my workplace is heading towards fewer physical machines and
 running virtual servers to implement their 'green ICT' policy.
 
 It's great to hear that someone else is thinking about the environmental
 effects.
 
 
 
  I've been thinking about my footprint ever since talking to a
  friend up in Ottawa who was looking into building a hay-bail
  home.  This is [tiny] green [/tiny].  Hay-bail insulation is
  [HUGE] Green [/HUGE].  I told him I was going to buy some land
  north of Nome and plant palm trees! 
 
 I've just come back from the climate camp at Kingsnorth in UK :)
 
 Sorry getting OT again but I do think energy use is an issue that we 
 should be addressing and has to be addressed on an individual basis.


The way I see it, since we {us-[BSD]-geeks} are among the most
savvy folk on the planet, it's make sense for us to be in the
lead on this type of issue.  [volumes left unsaid]

gary

PS:  just spent 20 minutes crawling around beneath desk.  my
bare-bones ubuntu draws between 100 -- 107w.  isling.



 
 Chris
 
 
  gary
 
 
 Chris
 
 
 

-- 
 Gary Kline  [EMAIL PROTECTED]  http://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]


Re: general questions about 7.0 and computer efficiency......

2008-08-13 Thread Steve Franks
On Wed, Aug 13, 2008 at 1:56 PM, Gary Kline [EMAIL PROTECTED] wrote:
 On Tue, Aug 12, 2008 at 11:52:38PM +0100, Chris Whitehouse wrote:
 Gary Kline wrote:
 On Tue, Aug 12, 2008 at 12:46:56AM +0100, Chris Whitehouse wrote:
 Hi Gary
 
  Do you build your hardware from the tower case up?  ---Green is
  in these days; so maybe some of us, or each of us, can
  contribute to a best-of list for those who are going to find a
  local builder or roll their own.  First time I'll be in an in
  group :-)

 Yep, any old crap case found on the street will do. With a little care
 building modern hardware is _really_ easy, it's very hard to mess up as
 there is only a handful of parts and most things that plug into other
 things can only do so one way and things that aren't supposed to plug
 into each other mostly can't. Power supplies provide instant protection,
 ie won't turn on when there is a problem. My computer has one each of
 motherboard, hard drive, power supply, optical drive and cpu, plus 2 ram
 modules and a few cables.


 The time consuming part is researching the parts. If you are building
 servers you might have to dig even deeper, eg
 http://www.worlds-fastest.com/d.pdf/wfw991.pdf


I have one firewall running pfSense.  It stands guard between my
modem and my internal server.  I don't understand why the pfSense
box has two NIC's and the mail/web/DNS has only one, but that's
how my LAN guy reconfigured things.

one thing I'm thinking of is to get One fast and lower-power server,
having two jails.  One jail would be as-is with mail/web/DNS and the
other jail would be tao, my main server for years.  When I buy
a reasonably fast ThinkPad, it could run Ubuntu and I could
reconfigure my older boxen for emergencies.

 
  Not that bad if you've got only one box.  My Ubuntu is a bear to
  reboot, sometimes, because the mouse goes nuts every other
  reboot.

 Do you mean it's not that bad that one computer uses 130 instead of 95.
 I think that is critical to the problem. To think about climate change
 you have to multiply your negligible contribution by the total number of
 negligible contributions. Manufacturers are not interested in 'green' so
 we have to do it for ourselves.


They are finally waking up!  Especially as their own costs
skyrocket, and as the poor consumers {that's us} start yelping as
our power bills hit the ceiling.  It will be at least a few years
though, so for now, yes, it's our responsibility.


 I have to say it was a bit painful
 spending £50 on an energy efficient power supply instead of £15 on a
 standard one, but the other parts aren't any more expensive.

 I'll redo my measurements in the next couple of days.

 
 It's a good idea to turn computers off at the wall when not using them
 not just shut them down. I was surprised to find mine uses about 25
 watts when shut down. Again the Dells at work use even more. The
 corporate environment must waste so many megawatts...


And of course these costs are passed along.  Borne by not only
the consumer but by the planet.  



 
 For servers my workplace is heading towards fewer physical machines and
 running virtual servers to implement their 'green ICT' policy.
 
 It's great to hear that someone else is thinking about the environmental
 effects.
 
 
 
  I've been thinking about my footprint ever since talking to a
  friend up in Ottawa who was looking into building a hay-bail
  home.  This is [tiny] green [/tiny].  Hay-bail insulation is
  [HUGE] Green [/HUGE].  I told him I was going to buy some land
  north of Nome and plant palm trees!

 I've just come back from the climate camp at Kingsnorth in UK :)

 Sorry getting OT again but I do think energy use is an issue that we
 should be addressing and has to be addressed on an individual basis.


The way I see it, since we {us-[BSD]-geeks} are among the most
savvy folk on the planet, it's make sense for us to be in the
lead on this type of issue.  [volumes left unsaid]

gary

PS:  just spent 20 minutes crawling around beneath desk.  my
bare-bones ubuntu draws between 100 -- 107w.  isling.




 Chris

 
  gary
 
 
 Chris
 
 


 --
  Gary Kline  [EMAIL PROTECTED]  http://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]


Good to see some attention paid to this subject.  I complained about a
year ago about the poor support in freebsd for ataidle, and I got
several replies somewhere between indifference, and outright flames,
and this from Europeans, who are regarded as somewhat more enlightened
on the subject...

My 

Re: USB mouse problems.

2008-08-13 Thread Martin Alejandro Paredes Sanchez
El Mar 12 Ago 2008, Bernt Hansson escribió:
 Yes but only if I connect the mouse after the boot process has finished.
 If I have it connected during boot it's not found.
 Moused is started but gives /dev/ums0 not found.

 So if I want to use the mouse I have to leave it unconnected until I get
 the login prompt and then connect the mouse.


leave it disconected and use the command

# usbdevs

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


getaddrinfo() failed in Apache 2.2

2008-08-13 Thread Tamouh H.

Hi,

I'm working on a problem with Apache 2.2 + PHP on FreeBSD 6.1 x86

Recently, we've upgraded from Apache 1.3 to v2.2 , and since then PHP is unable 
to resolve hostnames unless they're specified in /etc/hosts . The error we'd 
get would be:

php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, 
or not known in /home/username/public_html/testphp.php on line 2

This is for a simple ? include(http://www.google.com); ? function. We know it 
is not a DNS problem, because if PHP is setup as a CGI function, it works fine. 
It is only in DSO mode that PHP malfunction like this. We're also having no 
issues with our resolver for mail, ping or any other services.

Some people were pointing out that this is a fault of FreeBSD reaching a 
maximum number of file descriptors. Others said this can't be resolved until 
upgraded to FBSD 6.3 which we are not planning to go through. There are several 
hundred domains hosted on the server, but all was working fine with Apache 1.3.

 Our VNODES are a bit high, but haven't seen any errors:

server# sysctl kern.maxvnodes
kern.maxvnodes: 10
server# sysctl vfs.numvnodes
vfs.numvnodes:  84805

server# sysctl kern.maxfiles
kern.maxfiles: 65536
kern.maxfilesperproc: 32767

Anyone be able to guide me in the right direction here?

Thanks, 

Tamouh


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


Re: [6.3] makewhatis - missing etags.1.gz

2008-08-13 Thread Gilles
On Sat, 09 Aug 2008 12:45:12 +0100, Matthew Seaman
[EMAIL PROTECTED] wrote:
It doesn't.  makewhatis is just having a bad day trying to process
an emacs-related man page that it thinks should be there, but for
some reason it isn't.

Thanks.

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


Re: question -updating package + ignore depend

2008-08-13 Thread Greg Larkin

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

mc wrote:
| On Wednesday 13 August 2008 09:25:19 Mike Clarke wrote:
| On Wednesday 13 August 2008, m cassar wrote:
| just wanted to mention that firefox3 does not handle addons/plugins
| correctly yet according to ports/UPDATING, so this is still probably
| right for now and i will probably end up installing ff2 anyway.
| It handles most of them OK for me with just a little bit of tweaking,
| but some addonss haven't been updated yet to work with Firefox 3 and
| will be automatically disabled until new versions become available.
|
| I had a minor problem with firebug, Firefox disabled it but didn't
| detect that a new version was available and I had to go to the addons
| site and re-install firebug.
|
| I had to create a link
| to /usr/local/diablo-jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so
| in /usr/local/lib/firefox3/plugins.
|
| Apart from that everything seems fine.
|
| it does look like its working better than last time i used it - guess
things
| will iron out eventually. as long as flash works it's fine by me for
now ( too
| many nagging about missing plugin)
|
| still i had to install ff2 also for now so that i can update other
software
| that have ff2 as a depend.

Hi mc,

I was poking around in /usr/ports/Mk/bsd.gecko.mk, figuring that it was
controlling the dependencies in the librsvg2 port.  There's a comment at
the top of the file:

# === USERS =
# To specify which gecko-based backend you prefer, use something like:
#
# WITH_GECKO=   firefox
#
# The valid backends are:
# firefox flock nvu seamonkey thunderbird xulrunner
#
# See below for more details.
# === /USERS 

A little further down, there's this comment:

# USE_GECKO= firefox-devel-firefox
#  This will sed -e 's/firefox/firefox-devel/' on Makefile.in's and
configure
#  if ${GECKO}==firefox-devel

I wonder if something like this would work for librsvg2:

make USE_GECKO=firefox3-firefox install clean

It won't with the current version of the Makefile anyway, since it uses
USE_GECKO= instead of USE_GECKO?=, so it can't be overridden.  It
would be interesting to try making that change and then use the make
command above to see if the www/firefox dependency is replaced with
www/firefox3.

It sounds like you're working with FF2 now anyway, but maybe this will
help sometime in the future.

Regards,
Greg
- --
Greg Larkin
http://www.sourcehosting.net/
http://www.FreeBSD.org/ - The Power To Serve
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIo28m0sRouByUApARAnb9AJ98SitII1kkMgzZGdkEZCZCu8anAQCeKa3E
8meC+iRoy8jdXznPspXBS6I=
=bHlW
-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]


Unable to update transcode port

2008-08-13 Thread Clint Olsen
Hi:

I've not been able to upgrade my transcode port for some time.  It
eventually fails with:

ERROR: requirement failed: cannot link against libavcodec
libavcodec can be found in the following packages:
  FFmpeg  http://www.ffmpeg.org/


  Please see the INSTALL file in the top directory of the
  transcode sources for more information about building
  transcode with this configure script.

  ===  Script configure failed unexpectedly.
  Please report the problem to [EMAIL PROTECTED] [maintainer] and attach
  the /usr/ports/multimedia/transcode/work/transcode-1.0.6/config.log 
including
  the output of the failure of your make command. Also, it might be a good idea
  to provide an overview of all packages installed on your system (e.g. an `ls
  /var/db/pkg`).
  *** Error code 1

  Stop in /usr/ports/multimedia/transcode.
  ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.14149.0 
env UPGRADE_TOOL=portupgrade UPGRADE_PORT=transcode-1.0.5_3 
UPGRADE_PORT_VER=1.0.5_3 make
  ** Fix the problem and try again.
  ** Listing the failed packages (-:ignored / *:skipped / !:failed)
! multimedia/transcode (transcode-1.0.5_3)  (unknown build error)

Thanks,

-Clint

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Cluster Filesystem

2008-08-13 Thread Norberto Meijome
On Wed, 13 Aug 2008 18:57:13 +0200 (CEST)
Oliver Fromme [EMAIL PROTECTED] wrote:

 Note that Matt's terminology is a little bit confusing.
 What he calls mirroring in HAMMER has nothing to do
 with RAID-1 (like gmirror), but it is rather a kind of
 replication.  The mirroring feature allows replication
 between local and/or remote file systems.  So, yes, it
 is intended to support clustering.

Hi Oliver,
yes, i thought that was the case, but is it intended to support distributed
storage? For example, I have 4 storage boxes with 4 TB each, clustered. Say
we keep duplicate copies of all data. When I access , say,
hammer://mycluster/storage , i'd expect 'storage' to be 8 TB .

 Clustering and SSI is the main goal of DragonFly BSD,
 after all.

ok, now that you mention SSI it seems it should do what I clumsily try to
explain :) I should probably start trailing Draco too ;)

cheers,
B
_
{Beto|Norberto|Numard} Meijome

Have the courage to take your own thoughts seriously, for they will shape you.
   Albert Einstein

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to visit U disk?

2008-08-13 Thread EdwardKing
I plug USB and FressBSD shows:
$umass0: vendor 0x0c45 USB Mass Storage Device, class 0/0, rev 1.10/1.00, addr 
2 on uhub0
da0 at umass-sim0 bus 0 target 0 lun 0
da0: USB NAND FLASH DISK 0.20 Removable Direct Access SCSI-2 device
da0:1.000MB/s transfers
da0:125MB (256000 512 byte sectors: 64H 32S/T 125C)
uhub2:vendor 0x0e0f VMware Virtual USB Hub, class 9/0, rev 1.10/1.00, addr 3 
on uhub0
uhub2: 7 ports with 7 removable, self powered

Then I use dmesg:
$dmesg | grep ^da
da0 at umass-sim0 bus 0 target 0 lun 0
da0:USB NAND FLASH DISK 0.20 Removable Direct Access SCSI-2 device
da0:1.000MB/s transfers
da0:125MB (256000 512 byte sectors: 64H 32S/T 125C)

$mount -t msdosfs dev/da0s1c /mnt
mount_msdosfs: /dev/da0s1c: Operation not permitted

$mount -t msdosfs dev/da0 /mnt
mount_msdosfs: /dev/da0: Operation not permitted

Where wrong of visiting USB?

Thanks


- Original Message - 
From: Polytropon [EMAIL PROTECTED]
To: EdwardKing [EMAIL PROTECTED]
Cc: FreeBSD freebsd-questions@freebsd.org
Sent: Wednesday, August 13, 2008 6:34 PM
Subject: Re: How to visit U disk?


 On Tue, 12 Aug 2008 08:53:18 +0800, EdwardKing [EMAIL PROTECTED] wrote:
 I want to use U disk which format is FAT32,I don't know how to visit U 
 disk,my dev directory is follows:
 #cd /dev
 #ls
 ...
 usb
 usb0
 usb1
 ...
 
 How to do it?
 Thanks in advance
 
 I just try to guess what you're trying to do: Acces an USB hard
 disk? Look out for /dev/da* device files that occur when connecting
 the disk, or:
 
 # dmesg | grep ^da
 
 The da* files - direct access - are the special files to access
 USB drives.
 
 Then you can mount them as you like (FAT32 - msdosfs):
 
 # mount -t msdosfs /dev/da0s1c /mnt
 
 or something similar. mount_msdosfs allows some options to get
 the file attributes correct, read man mount_msdosfs to learn
 more about it.
 
 
 Hope that was the question. :-)
 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...


--
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation, its 
subsidiaries and/or its affiliates. If any reader of this communication is not 
the intended recipient, unauthorized use, forwarding, printing, storing, 
disclosure or copying is strictly prohibited, and may be unlawful. If you have 
received this communication in error, please immediately notify the sender by 
return e-mail, and delete the original message and all copies from your system. 
Thank you. 
---

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


Re: megaupload download script

2008-08-13 Thread Norberto Meijome
On Tue, 12 Aug 2008 14:27:04 -0400
Tsu-Fan Cheng [EMAIL PROTECTED] wrote:

   I use service from megaupload, i wonder if there is a script that
 can automatically download each file, one after the other without me
 clicking myself? thank you!!

not sure what megaupload is , but you should google for page scrapers.

if you use firefox,  the FlashGot extension may come in handy.
B

_
{Beto|Norberto|Numard} Meijome

Too strong a strong vision can kill you - you'll walk right over the edge, 
firm in the knowledge of the path in front of you.
   Linus Torvalds

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Intel 802.11agn: Disabling n?

2008-08-13 Thread Razmig K


Hello,

I intend to acquire a notebook with the mentioned wireless option, and I 
understand that its driver, iwn, is still in development stage. I 
spotted a mention to a disabled n in a recent thread: 
http://lists.freebsd.org/pipermail/freebsd-questions/2008-June/176638.html. 
Is there a handy way to do this so that it could be re-enabled once iwn 
becomes available in STABLE? The intention is of course being able to 
use the 802.11abg driver wpi.

Thanks!


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


Your e-ticket is enclosed for this Fri Aug 15th

2008-08-13 Thread Pacha London

   Dear Guest
   As requested by you or your friend, we enclose your complimentary
   e-ticket to this Friday's Twilo party. Extra tickets for friends can
   be bought from Ticketweb.co.uk at £15 + b/f. Link:

   
   So far 524/550 of these have been sold.

   To utilise your e-ticket simply print off this email with your unique
   code (963522-PachComp) and hand into the door to claim Free
   Admittance/Entry* for you.

   See you this Friday at the party

   x Pacha Team

   ---
   Twilo @ Pacha London, Terminus Place, Victoria SW1

   Fri August 15th 2008

   10pm -5am
   --
   Link to see Who is coming so far off facebook
   [1]http://www.new.facebook.com/event.php?eid=34378869832refurl=http%3
   A%2F%2Fwww.new.facebook.com%2Fs.php%3Fq%3Dtwilo%26init%3Dq
   --

   Twilo makes its 2nd appearance at Pacha London, with a distinct US
   House music feel combined with Balaeric , Latino House and the most
   upfront European Electronic music.
   Twilo was the most beloved and, its critics say, most played-out
   nightclub to grace the streets of New York City since the seminal
   Studio 54. Playing host to dozens of legendary DJs from around the
   world, the club was instrumental in popularizing international styles
   of house and trance music within the United States.
   Twilo regularly featured prominent American and European DJs playing
   trance, techno, and house music. Sasha and John Digweed had a monthly
   residency at the club, playing the last Friday of every month. Early
   in 2001 after Sasha suffered an ear injury in a car accident and was
   unable to dj, John Digweed would play the entire 8 hour time slot by
   himself. Other DJs would play frequently such as Paul van Dyk, Carl
   Cox, Robert Fauver, Richie Hawtin aka (Plastikman), Danny Tenaglia,
   Merritt, Jeff Mills, DJ Dan, and Sven Väth. Many of these artists made
   appearances at Twilo before hitting the mainstream.
   Twilo comes to London and encapsulates New York's truely cosmopolitan
   feel with a distinct attitude and vibe of polysexual hedonism. Get
   ready to lose yourself and your inhibitions...Welcome to Twilo
   The Legendary NY party returns to London...
   After the phenominal success of the last party, the legendary NY club
   night returns to Pacha London for some more distinct house sounds.
   Expect even more of a road block as London joins forces with NY.
   Welcome to Twilo...
   DJs:
   Special Surprise NY Guest
   Steve Smart (Kiss 100)
   Shuey Aurora
   Mickey C (im a raver not a saver)
   Charlie Cantanka
   Scott Mochan
   Get Licked
   Helka
   Jason Feist
   Jeremy Cole
   Global Room hosted by Life
   Get ready to lose yourself and your inhibitions...Welcome to Twilo

   Tickets:

   --
   --
*TC Apply:


   All e-tickets must be handed in by 11.30pm to qualify for
   complimentary admission

   This offer is non-transferable and rigid protocol on the door is in
   place to ensure otherwise

   Any e-tickets being claimed after this time qualify for £5 off
   standard entry price and thus serve as a discount voucher

   E-tickets do not guarantee entry by any means

   All rights of admission reserved with Pacha London. Smart Clubwear
   dress code applies.
   [or.cgi?gid=81305pid=25115626adIds=or_id=1107568]
 _

 [2]Subscribe | [3]Update Profile | [4]Unsubscribe

References

   Visible links
   1. 
http://www.new.facebook.com/event.php?eid=34378869832refurl=http%3A%2F%2Fwww.new.facebook.com%2Fs.php%3Fq%3Dtwilo%26init%3Dq
   2. http://www.zinester.com/cgi/gsps.cgi?topic=81305from=na_sub
   3. http://www.zinester.com/cgi/[EMAIL PROTECTED]O3zTeTfs9wG0-T0vFvpGIg
   4. 
http://www.zinester.com/cgi/gsps.cgi?topic=81305email=25115626pswd=O3zTeTfs9wG0-T0vFvpGIgfrom=na_unsub

   Hidden links:
   5. 
http://www.ticketweb.co.uk/user?query=searchregion=xxxcategory=miscsearch=twilox=0y=0
   6. 
http://www.ticketweb.co.uk/user?query=searchregion=xxxcategory=miscsearch=twilox=0y=0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SSH question

2008-08-13 Thread EdwardKing
I use SSH to remote FreeBSD
$ssh  [EMAIL PROTECTED]
password:

Then I SSh to suspend client in that remote machine:
$~
/home/tom: Permission denied

Permission denied? Why? How to do that?


--
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s) is intended only for the use of the intended
recipient and may be confidential and/or privileged of Neusoft Corporation, its 
subsidiaries and/or its affiliates. If any reader of this communication is not 
the intended recipient, unauthorized use, forwarding, printing, storing, 
disclosure or copying is strictly prohibited, and may be unlawful. If you have 
received this communication in error, please immediately notify the sender by 
return e-mail, and delete the original message and all copies from your system. 
Thank you. 
---

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


Re: ATi Intel graphics

2008-08-13 Thread Roland Smith
On Wed, Aug 13, 2008 at 12:25:48PM -0700, Steve Franks wrote:
 On Wed, Aug 13, 2008 at 12:16 PM, Roland Smith [EMAIL PROTECTED] wrote:
 
  IIRC, all the libraries that WINE depends on also need to be available
  in 32 bits. While not impossible nobody has spent any affort on this
  because it's easier just to install i386.
 
  Roland
 
 
 I suppose it's naive to think that some tool like portupgrade could be
 bent to build all the depends with -m32 as well? 

This has been discussed earlier on the list. To summarize (and correct
me if I'm wrong, people) It should be possible to modify the ports
infrastructure to support this, but nobody has volunteered to spend the
effort to make it so, because it's much easier to install the i386
version. 

Very few people actually _need_ to run amd64 (because they regularly run
out of address space on i386), especially on the desktop. 

 I guess you'd wind
 up with a bunch of things you didn't want as 32-bit (i.e. XOrg?) being
 re-installed as 32bit, right? 

Not completely. The X protocol works on 32 and 64 bit machines. But you
would need a 32-bit Xlib (talking to a 64-bit X server).

You can probably see that this would have significant consequences for
the ports infrastructure; having to record both 32- and 64-bit packages,
and the need to know which can work together.

 I don't suppose there's any infrastructure for simultaneously
 installing two versions of a port

Not at the moment, I think.

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


pgp5812AsthJy.pgp
Description: PGP signature


WEP at home

2008-08-13 Thread Chris Chambers
Dear FreeBSD,

I am hoping that I can get your help connecting to a wireless WEP network 
connection. The 
connection is in my home. First off, I would like to say that I HAVE read the 
man pages, the 
handbook and The Complete FreeBSD. Everything up until now has been pretty 
straight 
forward. (I was able to figure out how to pipe my screen output into a file on 
my non 
automounting dos partition).

There must be something basic that I'm missing or not understanding.

I'm running v. 6.3, standard installion.
Here is what I am typing, the output and the contents of my conf files.



ifconfig ath0 up scan

SSIDBSSID  CHAN RATE  S:N   INT CAPS

Laureen 00:1a:c4:09:65:616   54M 18:0   100 EPS 



/boot/loader.conf

wlan_wep_load=YES




/etc/rc.conf


# -- sysinstall generated deltas --
# Wed Aug 13 00:27:32 2008
# Created: Wed Aug 13 00:27:32 2008
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf
keymap=us.iso
usbd_enable=YES

#WIRELESS

ifconfig_ath0=authmode open wepmode mixed DHCP



/etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid=Laureen
scan_ssid=1
key_mgmt=NONE
wep_tx_keyidx=1
wep_key1=1013304023
}



wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf

Trying to associate with 00:1a:c4:09:65:61 (SSID='Laureen' freq=2437 MHz)
Associated with 00:1a:c4:09:65:61
CTRL-EVENT-CONNECTED - Connection to 00:1a:c4:09:65:61 completed (auth)
CTRL-EVENT-TERMINATING - signal 2 received



At this point I thought I was good to go. When I attemped to ping the outside 
world 
(yahoo.com), I was told that ping could not resolve the address.


At first I thought I maybe needed to run namedb, but my reading told me that I 
only need it 
if I'm planning on serving DNS info.


netstat -r

Routing tables
Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
link#2 UC 00   ath0
localhost  localhost  UH  04lo0
... etc.


At this point you're probably thinking that I have to wrong key or something. 
In Windows XP 
the key works and Win tells me that the link is WEP, OPEN, created with DHCP.
I've connected to this network before by doing something very similar, only I 
can't remember 
what I did. Then I had to reinstall FreeBSD because I didn't give it enough 
space on my 
harddrive. I've tried slightly different configurations without success.


Thank you a million!

Chris Chambers

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


postgres: [2-1] FATAL: the database is starting up

2008-08-13 Thread fire jotawski
hi sirs,

apologize me for disturbing the list but i faced the strange problem that i
can not understand every times i boot my machine.
my machine is
[~] # uname -a
FreeBSD makham.serveblog.net 7.0-RELEASE FreeBSD 7.0-RELEASE #4: Wed Jul  2
03:43:34 ICT 2008 root@:/usr/obj/usr/src/sys/SITING  i386
[~] #
and i installed postgres via ports
[~] # pkg_info -Ix postgre
postgresql-client-8.2.7 PostgreSQL database (client)
postgresql-server-8.2.7 The most advanced open-source database available
anywhere
[ ~] #

every time i boot the machine i always get the message that says

postgres[pid]: [2-1] FATAL: the database system is starting

later on after logged in as root, i check for process, i found the
postgresql has been started .  so what the reason for the message at during
start up then.

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


Re: Upgrade v5.x to v7.0

2008-08-13 Thread Vince Sabio

** At 12:14 -0400 on 08/11/2008, Robert Huff wrote:

Vince Sabio writes:


  I am currently running FreeBSD v5.1 (yes, I am a Bad Person(tm)),


Why?


Why am I a Bad Person(tm), or why am I still running v5.1?


and need to update it to v7.0. Questions:


  1. Can I go straight from v5.1 to v7.0? Or do I need to make a
  stop at v6.x?


It is probably technically possible.
However: when jumping major versions, my advice is always If
possible, install from clean disk.


I assume you mean install from a clean CD -- I did that, and it 
worked like a charm. And, for anyone else running v5.x who is 
considering upgrading to v7.0, this seems to be a very good way to do 
it. I downloaded and burned a bootonly.iso, and then ran the upgrade 
via [passive] FTP. Ten or fifteen minutes later, I was booting into 
v7.0.



In either case: remember to save critical config files
(rc.conf, the kernel config, sshd_config, the named directory, etc.)
elsewhere.


The fact that the upgrade worked proves that my backups are in good 
shape -- if they weren't, then the upgrade would have overwritten the 
system disk and then failed. ;-)


__
Vince Sabio  [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: usb-serial device

2008-08-13 Thread Michael Lednev

Oliver Fromme пишет:

Michael Lednev wrote:
  Warren Block wrote:
   Michael Lednev wrote:
   
I've obtained USB thermometer and want to make it usable with 
FreeBSD. It identifies itself as:

kernel: ugen0: vendor 0x4348 USB-SER!, rev 1.10/2.50, addr 2

Under Windows it looks like standard COM-port. When I try to use some 
existing drivers like ucycom or uplcom it gives no effect. How can 
this device be used under FreeBSD?
   
   It appears to need the uchcom driver, which is in CURRENT but not yet 
   in 6 or 7. See this thread:
   
   http://lists.freebsd.org/pipermail/freebsd-stable/2008-February/040872.html 
  
  Thanks! I'll try to examine it at the weekend.


Did you have any success?  What exactly is the name and
brand of your USB thermometer?

I'm asking because I'm also interested in obtaining an
external thermometer that would work with FreeBSD.
  


Not yet. I didn't have chance to try CURRENT and uchcom does not work 
under 6.3

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


Re: SSH question

2008-08-13 Thread Matthew Seaman
EdwardKing wrote:
 I use SSH to remote FreeBSD
 $ssh  [EMAIL PROTECTED]
 password:
 
 Then I SSh to suspend client in that remote machine:
 $~
 /home/tom: Permission denied
 
 Permission denied? Why? How to do that?

What happened here is that you were trying to type an escape code
into ssh -- eg. ~^Z (suspend) or ~. (quit)

However, '~' is actually a fairly common character in normal usage,
so ssh will pass it through to the remote login session unless you
get the escape sequence exactly right.  The ~ character must be the
first thing on a new line, and it must be followed by one of the
known key codes, which you can list by using the ~? escape during a
ssh session.

It seems that you typed something wrong: perhaps you managed to type
~~ which means your shell on the remote machine would receive the ~ character.  
This it would duely expand to be the path to your home
directory.  It then tried to execute that path, but directories are
not executable, resulting in the 'permission denied' message.

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



signature.asc
Description: OpenPGP digital signature