Re: cp -p

2008-02-08 Thread Jonathan McKeown
On Thursday 07 February 2008 20:07, Pietro Cerutti wrote:

 HostServer exports via NFS /www, which belongs to user:www
 (uid=1001, gid=80). The directory has the segid flag set:

 drwsr-xr-x  13 user www 512 Feb 7 00:58 www

 HostClient mounts the exported directory on /share/www. HostClient
 doesn't know anything about gid 80.

 Now, on HostClient, user copies aFile to /share/www using the -p flag of
 cp(1).

  cp -p aFile /share/www/
  ls -l

 -rw---  1 user user  2981888 Feb  7 01:09 /www/aFile

 As shown, the setgid flag of /www hasn't worked.

Hang on - you asked cp to preserve the user and group ownership of the file 
(cp -p). As far as I can see, it's done what you asked it to. I would regard 
any other result as violating the Principle of Least Astonishment.

and on Thursday 07 February 2008 20:48, Chuck Swiger wrote:
 On Feb 7, 2008, at 10:42 AM, Pietro Cerutti wrote:
  From HostClient:
  ls -al /share/
 
  drwxr-sr-x  4 User   www   512 Feb  7 19:23 www
 
  touch /share/www/foo
  ls -l /share/www/foo
 
  -rw-r-  1 user  www  0 Feb  7 19:39 /share/www/foo
 
  (group id works)

 Right, this is the BSD setgid semantics one would expect.

Surely the BSD way is always to inherit group ownership from the directory? 
setgid is only used on SYSV systems to emulate the BSD semantics on a 
per-directory basis - or have I got this completely wrong?

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


Re: cp -p

2008-02-08 Thread Pietro Cerutti
Jonathan McKeown wrote:
 On Thursday 07 February 2008 20:07, Pietro Cerutti wrote:
 
 HostServer exports via NFS /www, which belongs to user:www
 (uid=1001, gid=80). The directory has the segid flag set:

 drwsr-xr-x  13 user www 512 Feb 7 00:58 www

 HostClient mounts the exported directory on /share/www. HostClient
 doesn't know anything about gid 80.

 Now, on HostClient, user copies aFile to /share/www using the -p flag of
 cp(1).

 cp -p aFile /share/www/
 ls -l
 -rw---  1 user user  2981888 Feb  7 01:09 /www/aFile

 As shown, the setgid flag of /www hasn't worked.
 
 Hang on - you asked cp to preserve the user and group ownership of the file 
 (cp -p). As far as I can see, it's done what you asked it to. I would regard 
 any other result as violating the Principle of Least Astonishment.

You are right. I thought that the setgid of the destination directory
had priority over the -p. If it's not the case, then this means that
mv(1) cannot be used across filesystems when one wants to ensure that
the setgid of the target directory does what it's supposed to do. From
man mv(1):

As the rename(2) call does not work across file systems, mv uses cp(1)
and rm(1) to accomplish the move.  The effect is equivalent to:

   rm -f destination_path  \
   cp -pRP source_file destination  \
   rm -rf source_file


Note that mv invokes cp with the -p option. Is there any way to prevent
that?

 Jonathan


-- 
Pietro Cerutti

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



signature.asc
Description: OpenPGP digital signature


rename and chmod (was: cp -p)

2008-02-08 Thread Pietro Cerutti
Ok, my view is getting clearer ;-)


my problem in understanding the semantics of mv, cp -p and the rename(2)
function seems to be related to the terminology used in chmod(1) man page.

This is the explanation of setuid (the same holds for setgid):

Directories with this bit set will force all files and subdirectories
created in them to be owned by the directory owner and not by the uid of
the creating process, if the underlying file system supports this feature

Now, from a logical point of view, why moving a file into a directory
doesn't fall into the created into them case?


-- 
Pietro Cerutti

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



signature.asc
Description: OpenPGP digital signature


Re: pxeboot, TFTP only, NFS MOUNT RPC error: 60, timeout

2008-02-08 Thread Erik Norgaard

Rek Jed wrote:


I also tried building it like that:

# cd /usr/src/sys/boot
# make LOADER_TFTP_SUPPORT=YES  LOADER_NFS_SUPPORT=NO

This builds fine.  I copied it to my jumpstart server and it booted from
tftp after approx 2 min. pause and the NFS MOUNT RPC error: 60.  Can
anyone tell me whats the difference between -DLOADER_TFTP_SUPPORT=YES
and LOADER_TFTP_SUPPORT=YES?


OK, two things remain: Are you sure that it doesn't correctly fetch the 
kernel with tftp and then the kernel tries to mount a root device with nfs?


If the kernel is compiled with the slightest mention of nfs as root 
device it will use nfs, no matter that you have specified otherwise in 
loader.conf. The generic kernel has NFS_ROOT and NFS_CLIENT, since your 
root device is not NFS then you can leave out both. I recall having 
problems leaving in NFS_CLIENT although NFS_ROOT was not included.


Second, the loader is ignorant of which version of FreeBSD you use, it 
will just load whichever kernel you throw at it. I have a loader I used

for 6.1, http://www.locolomo.org/pub/pxeboot/jumpstart.tgz

Hope this helps. If you find any errors or things that have changed 
since I worked with this, let me know and I will update the howto.


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


Re: OT: www search engines

2008-02-08 Thread Wojciech Puchar

address.


And I suppose that if you have a dynamic IP address, even the ISP may
not know, unless they keep records correlating dhcp leases with MAC
addresses or phone lines. I'd be curious to know whether this is done,
just for theoretical reasons.


Polish telecom holds logs of IP allocation for DSLs and dialins
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


rename and chmod (was: cp -p)

2008-02-08 Thread Wouter Oosterveld
  Now, from a logical point of view, why moving a file into a directory
  doesn't fall into the created into them case?
 
  Because (if on the same filesystem) you don't create a new file. You
  just link the file in the destination dir and unlink the file from the
  source dir.

 Exactly. But from a /*logical*/ point of view, shouldn't this case be
 treated /*as if*/ the file was created inside the target directory?

No. This has nothing to do with logics but with your premisses, the
implementation of mv and standards (IEEE Std 1003.2 (``POSIX.2'')).

It just behaves different than you would expect, but that is no logical error.

  Regards,
 
  Wouter


 --
 Pietro Cerutti

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





--
[
  [EMAIL PROTECTED] is binnenkort niet meer,
[EMAIL PROTECTED] is mijn nieuwe email-adres.
]


-- 
[
  [EMAIL PROTECTED] is binnenkort niet meer,
[EMAIL PROTECTED] is mijn nieuwe email-adres.
]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rename and chmod (was: cp -p)

2008-02-08 Thread Wouter Oosterveld
Now, from a logical point of view, why moving a file into a directory
doesn't fall into the created into them case?

Because (if on the same filesystem) you don't create a new file. You
just link the file in the destination dir and unlink the file from the
source dir.

Regards,

Wouter

2008/2/8, Pietro Cerutti [EMAIL PROTECTED]:
 Ok, my view is getting clearer ;-)


 my problem in understanding the semantics of mv, cp -p and the rename(2)
 function seems to be related to the terminology used in chmod(1) man page.

 This is the explanation of setuid (the same holds for setgid):

 Directories with this bit set will force all files and subdirectories
 created in them to be owned by the directory owner and not by the uid of
 the creating process, if the underlying file system supports this feature

 Now, from a logical point of view, why moving a file into a directory
 doesn't fall into the created into them case?


 --
 Pietro Cerutti

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





-- 
[
  [EMAIL PROTECTED] is binnenkort niet meer,
[EMAIL PROTECTED] is mijn nieuwe email-adres.
]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rename and chmod (was: cp -p)

2008-02-08 Thread Pietro Cerutti
Wouter Oosterveld wrote:
 Now, from a logical point of view, why moving a file into a directory
 doesn't fall into the created into them case?
 
 Because (if on the same filesystem) you don't create a new file. You
 just link the file in the destination dir and unlink the file from the
 source dir.

Exactly. But from a /*logical*/ point of view, shouldn't this case be
treated /*as if*/ the file was created inside the target directory?

 
 Regards,
 
 Wouter


-- 
Pietro Cerutti

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



signature.asc
Description: OpenPGP digital signature


Re: pxeboot, TFTP only, NFS MOUNT RPC error: 60, timeout

2008-02-08 Thread Erik Norgaard

Erik Norgaard wrote:

Second, the loader is ignorant of which version of FreeBSD you use, it 
will just load whichever kernel you throw at it. I have a loader I used

for 6.1, http://www.locolomo.org/pub/pxeboot/jumpstart.tgz


Sorry, wrong. This is not a pxeloader. Gosh it's long time since I did 
this, don't even know where my files are.


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


Re: Memory Error using Mailman on FreeBSD. How to debug?

2008-02-08 Thread Lachlan Michael
How big does the mailman process actually get?  top will tell you.

Mailman values don't budge. None of the mailman processes go over about
8.5M, which is what they are during idle time.

 Real puzzler.  I'm surprised not to have at least one process growing,
 though.  Maybe it's not using much CPU and you're not spotting it.

 Try running top, then sorting on size (o size inside top) then try your
 mailman email again.  Make sure the top refresh rate is fast enough.  s
 1 inside top would do that, or even s 0 if desperate.

Following you advice, as far as I can tell, the mailman qrunner process

 /usr/local/bin/python2.5 /usr/local/mailman/bin/qrunner
--runner=IncomingRunner:0:1 -s

is the one that crashes: all other mailman processes are unaffected. I
couldn't see it increase much in size (maybe it went from 8.5M to 12.5M),
then it just bombed and a new process was spawned (easy to tell by the
large increase in PID).

 Other things to try:  Up the stack size
 ulimit -s 262144

 inside the mailman startup.  Again, I've had processes in the past which
 needed this.

 You'd have to check that from a shell (/bin/sh) and first to see that
 your system will allow a bigger value.  If not, I believe that there is
 a sysctl to do that these days but don't have a modern enough system to
 look it up.  A search for MAXSSIZ on google or mail archives may turn it
 up - that's the kernel option but requires a recompile.

Ok, I am going to gradually try different limits. It seems as though setting
kern.maxssiz=256M
and so on in /boot/loader.conf will allow me to increase the limits.
Having to reboot is a pain, though. How far can I go? 512M? (Physical
memory is 1GB)

 Of course, limits may not be the issue at all.  They are a likely
 suspect given your error message, but maybe it's worth checking other
 bits of the mail system.  Can you email a file of the size your are
 trying not through mailman?  Maybe your MTA (sendmail/postfix etc) has a
 limit that somehow causes mailman to get this error.

This is definitely not the case. Users can receive (and send) similar
sized large attachments individually, so the MTA (sendmail in this case)
is not the cause.

 The final suggestion is to try to trace (ktrace, strace from ports) the
 process that is dying, but I suspect mailman forks a new process to deal
 with the email so how you catch it, I don't know.  Many demons have a
 run in foreground without forking option which can be helpful to
 debugging, but I don't know if anything like that is possible in
 mailman.  If you can figure out what mailman actually runs to process
 the email, you could ktrace that from the command line.  Maybe the
 mailman mailing list could give you an incantation to try.

I'll admit it is my first time to try a ktrace, but after noting which
process it was that crashed I could identify the newly spawned PID, and
obtained a ktrace.out (binary) and a kdump  (called
mailman_process_log.txt) when the problems occurs by sending another large
mail attachment.  I'll leave the files up for a couple of days. (Both
files are about 2MB in size)

http://lachlan.lkla.org/tmp/mailman_memory_error/

Not that I can properly interpret the results, but it seems the mail file
is completely read, but whatever happens next causes the memory error.

 52506 python2.5 RET   read 354/0x162
 52506 python2.5 CALL  break(0x8add000)
 52506 python2.5 RET   break 0
 52506 python2.5 CALL  break(0x8cc3000)
 52506 python2.5 RET   break -1 errno 12 Cannot allocate memory

Thanks again for your time and suggestions.


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


Re: Memory Error using Mailman on FreeBSD. How to debug?

2008-02-08 Thread Alex Zbyslaw

Lachlan Michael wrote:


Real puzzler.  I'm surprised not to have at least one process growing,
though.  Maybe it's not using much CPU and you're not spotting it.
   


Following you advice, as far as I can tell, the mailman qrunner process

/usr/local/bin/python2.5 /usr/local/mailman/bin/qrunner
--runner=IncomingRunner:0:1 -s

is the one that crashes: all other mailman processes are unaffected. I
couldn't see it increase much in size (maybe it went from 8.5M to 12.5M),
then it just bombed and a new process was spawned (easy to tell by the
large increase in PID).
 

All I can think us that qrunner asks for such a large amount of memory 
in one go, that it bombs out without ever growing.  That fits with the 
ktrace output as well.  Regretably, I don't think you can tell *how* 
much memory was asked for.  (The normal pattern with out of memory 
errors is for the process to grow and grown and grow and die; but it's 
not the only one). 


Other things to try:  Up the stack size
   ulimit -s 262144

inside the mailman startup.  Again, I've had processes in the past which
needed this.
   


Ok, I am going to gradually try different limits. It seems as though setting
kern.maxssiz=256M
and so on in /boot/loader.conf will allow me to increase the limits.
Having to reboot is a pain, though. How far can I go? 512M? (Physical
memory is 1GB)
 

Certainly not more than physical memory :-)  To be honest, if 256M 
doesn't do it then this probably isn't the problem.  I'm not 
particularly hopeful that this will do it, but in your circumstance I 
would try it. 

At the same time, you could also increase the data size (maxdsiz?) to 
1Gb (yours looks like 0.5Gb, half your physical memory).


My limit settings (also 1Gb) look like:

datasize 1048576 kbytes
stacksize262144 kbytes

which come from trying to set 256Mb and 1024Mb in the kernel config (old 
FreeBSD - no sysctls).


Keep the ulimit -a in the mailman startup script so you can confirm that 
you really get these numbers.



Can you email a file of the size your are
trying not through mailman?  Maybe your MTA (sendmail/postfix etc) has a
limit that somehow causes mailman to get this error.
   



This is definitely not the case. Users can receive (and send) similar
sized large attachments individually, so the MTA (sendmail in this case)
is not the cause.
 

OK - rule that out.  The ktrace showing qrunner failing a break pretty 
much does that too.



The final suggestion is to try to trace (ktrace, strace from ports) the
process that is dying, 


I'll admit it is my first time to try a ktrace, but after noting which
process it was that crashed I could identify the newly spawned PID, and
obtained a ktrace.out (binary) and a kdump  (called
mailman_process_log.txt) when the problems occurs by sending another large
mail attachment.  I'll leave the files up for a couple of days. (Both
files are about 2MB in size)

http://lachlan.lkla.org/tmp/mailman_memory_error/

Not that I can properly interpret the results, but it seems the mail file
is completely read, but whatever happens next causes the memory error.

52506 python2.5 RET   read 354/0x162
52506 python2.5 CALL  break(0x8add000)
52506 python2.5 RET   break 0
52506 python2.5 CALL  break(0x8cc3000)
52506 python2.5 RET   break -1 errno 12 Cannot allocate memory
 

The kdump output is the only useful bit, really.  Your analysis seems 
correct to me.


You are also getting a stack trace from python when it exits with the 
out of memory error.  ktrace is just showing python printing the stuff 
- it may be that the error also ends up in a log file somewhere - don't 
know where mailman logs, sorry.  From that stack trace it should be 
possible to figure out which line of the python is actually causing that 
memory request.  My bet is on one of the cPickle lines, but it would be 
nice to see the stack trace raw so to speak.  Maybe that stack trace 
would help someone on the mailman list suggest something else.



Did you already try sending a different kind of attachment that's the 
same kind of size (a bit bigger would be better).  Maybe it's something 
about the attachment itself that's causing the issue?



As a final resort, if none of the above resolves or leads to clues, I 
would try uninstalling python2.5 and installing python2.4 *just in 
case*.  I'm assuming that you only have python for mailman.  (If you 
have real python users then it's trickier.  You can install multiple  
versions of python but possibly not from ports.  But python always 
compiled cleanly from tarball on FreeBSD for me.  I can offer some help 
with that process if you really need it).



I can't help thinking that 500Kb is a very small attachment and I can't 
really see why it would legitimately cause a request for so much memory 
that your settings aren't handling it.



A quick look at the mailman web site shows that you can run qrunner from 
the command line - couldn't immediately find the man page though.  If 
you could somehow queue up 

Re: How do I get unicode support in python?

2008-02-08 Thread Heiko Wundram (Beenic)
Am Freitag, 8. Februar 2008 15:26:48 schrieb Eric Mesa:
 I'm running a web server with FreeBSD 6.1-RELEASE and python 2.4.3.  I'm
 unable to print any characters outside of ascii.  I have tried this code on
 my Linux computer, which has python 2.5.x and it works - so the code is
 solid.

 What do I need to do to get python on the web server to have unicode
 support?  Is there a module/package I need to import in the 2.4 series?  Or
 is there some package/port I need to install?  Or do I just recompile
 python with some different flags?  (And does that entail any uninstalling
 first?)

For Python to be able to print unicode characters to the console, it must 
know the encoding of the console. Generally, this entails setting up LC_ALL 
and LANG and of course your terminal (emulator) appropriately, and testing 
whether the interpreter sets the correct encoding on startup (which can be 
found as sys.getdefaultencoding()). When the encoding that the interpreter 
uses to print _unicode_-strings cannot encode the unicode characters you 
hand it to the current default encoding, the codec barfs:

[EMAIL PROTECTED] ~]$ python
Python 2.5.1 (r251:54863, Nov  6 2007, 19:02:51)
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd7
Type help, copyright, credits or license for more information.
 import sys
 sys.getdefaultencoding()
'ascii'
 print u\xfa
Traceback (most recent call last):
  File stdin, line 1, in module
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfa' in position 
0: ordinal not in range(128)
 print u\xfa.encode(latin-1)
ú


Basically, the easiest resolution is to do the conversion yourself (like I did 
in the second example). The other possibility is to change the deault 
encoding to something that matches your default console (probably latin-1), 
which you can do in /usr/local/lib/python2x/site.py.

HTH!

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


H.323 gatekeeper what endpoints for FreeBSD

2008-02-08 Thread Matthias Apitz

Hello,

In our company we're using a lot video conferencing over IP,
as point-to-point connections (i.e. each VC system has its own
IP) and MCU allow 3-4... VC in the same session. So far so good.

Some days ago I was asked to make ready our VC to connect to some
University network using a H.323 gatekeeper which will allow
multiple partners in the session, while I'm just calling up the
IP of this H.323 gatekeeper. This was pretty new to me that my
VC allows even this and I was thinking in what to do with that
'new' feature. This brought me to the idea to install on some
FreeBSD host in our company VPN just the gatekeeper (from the ports),
let all other VC just call-in to that central gatekeeper *and*
allow even laptops with a H.323 endpoint software join the session
over H.323.

Does someone has worked with such H.323 endpoints on FreeBSD, for
example with 'cphone' from the ports? What kind of cam could
I make use of?

See also: http://www.gnugk.org/h323-endpoint.html

Thanks in advance for any hint

matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rename and chmod (was: cp -p)

2008-02-08 Thread Jerry McAllister
On Fri, Feb 08, 2008 at 12:30:57PM +0100, Pietro Cerutti wrote:

 Wouter Oosterveld wrote:
  Now, from a logical point of view, why moving a file into a directory
  doesn't fall into the created into them case?
  
  Because (if on the same filesystem) you don't create a new file. You
  just link the file in the destination dir and unlink the file from the
  source dir.
 
 Exactly. But from a /*logical*/ point of view, shouldn't this case be
 treated /*as if*/ the file was created inside the target directory?

Not if you use mv.   If you use cp, then it could.

By definition, mv only moves the pointer/link or whatever it is called
and doesn't change anything else.

jerry

 
  
  Regards,
  
  Wouter
 
 
 -- 
 Pietro Cerutti
 
 PGP Public Key:
 http://gahr.ch/pgp
 


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


Re: A non FreeBSD question.

2008-02-08 Thread Jerry McAllister
On Fri, Feb 08, 2008 at 08:59:22AM +0530,  Anuj Singh wrote:

 Hi,
 It may start flame, Next lines may seem funny but I want to see what
 people think say, sorry i am posting here, just to get an idea. Cause
 i am also one of the open source user/lover and my most of the time
 goes with computers over freebsd/linux.
 
 If someone is away from his cell for around an hour, thus not picking
 the phone, and his colleagues does not knows where is he as he has not
 to give reporting to anyone, it means what's he doing?
 1.From a normal persons point of view.
 2.From the point of view of spouse.

The person is busy somewhere or has the phone turned off.
I don't know any spouses who check every hour -- at least any
spouses in a good marriage relationship.

jerry


 
 Thanks. :-)
 
 Anuj
 ___
 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: A non FreeBSD question.

2008-02-08 Thread Simon Chang
On Feb 7, 2008 10:29 PM, अनुज Anuj Singh [EMAIL PROTECTED] wrote:
 Hi,

irrelevant drivel snipped...

This is completely off-topic.  Either post something on-topic, or do
not post at all.

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

Re: OT: Whats wrong with gmail?

2008-02-08 Thread Colin Brace
Minor but tiresome: no option to use a non-proportional font to view
your messages.

Apparently, an extension called Better Gmail allowed this at one point
but not now.

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


two links

2008-02-08 Thread Suprema Informática Ltda - Leandro

Good morning,

I need active two links of internet, but i don´t know do this.
I have 3 interfaces

internet 1 adsl gateway = 172.168.0.254   -   ip interface = 172.168.0.253
internet 2 adsl gateway = 192.168.1.254   -   ip interface = 192.168.1.253

interface to lan internal = 10.0.0.254

My default gateway is 172.168.0.254.

I need active the second link (192.168.1.254) only access port 22, just 
port 22.



Freebsd 6.3 + ipfw

Sorry my english.

Thanks for all.

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


Re: pf.conf for variable interfaces

2008-02-08 Thread Derek Buttineau


On 2008-Feb-08, at 8:38 AM, Chad Perrin wrote:


I'm setting up PF on a FreeBSD laptop that sometimes uses the wireless
device (iwi0) as its external interface, and sometimes uses the RJ-45
ethernet device (bge0) as its external interface.  Unfortunately, I
haven't figured out yet how to make that happen.

I'd like to be able to have the $ext_if value change depending on  
which
interface is active and being used to connect to the outside world.   
Do I
just need to create two full sets of rules in my pf.conf (or use a  
script
to rewrite that file from scratch each time), even though I'll be  
using
exactly the same rules for PF regardless of which interface I'm  
using, or

is there some simple way to avoid that sort of redundancy?  What am I
overlooking?




You can add a macro that will apply rules to both interfaces  
simultaneously.  i.e.


lan_if = bge0
wi_if = iwi0

ext_if = { lan_if wi_if }

block in on $ext_if all

I know it's not dynamically updating but should suffice.

--
Regards,

Derek Buttineau
Internet Systems Developer
Compu-SOLVE Internet Services
Compu-SOLVE Technologies, Inc

Phone:  705-725-1212 x255
E-Mail:  [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: why does linux-base-f7 exist if the binary compatibility is to a kernel too old to run it? (and how to change that?)

2008-02-08 Thread Vince Hoffman
Steve Franks wrote:
 [EMAIL PROTECTED] /usr/ports/emulators/linux_base-f7]$ sudo make install clean
 ===  linux_base-f7-7 compat.linux.osrelease: 2.4.2 is not supported.
 *** Error code 1
 
 Stop in /usr/ports/emulators/linux_base-f7.
 
 ???

Theres work in progress to update the binary compatibility.
http://wiki.freebsd.org/linux-kernel

I would imagine the linux_base-f7 is useful for testing.


Vince

 
 Thanks,
 Steve
 ___
 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: why does linux-base-f7 exist if the binary compatibility is to a kernel too old to run it? (and how to change that?)

2008-02-08 Thread Pieter de Goeje
On Friday 08 February 2008, Steve Franks wrote:
 But there are sites (such as this one:
 http://www.linux.com/feature/53055) that talk about actually using
 linux_base-fc8 (which I can't even find on 7.0rc1).  How is that
 possible if the kernel is too old for it?

You can upgrade the kernel by setting compat.linux.osrelease to 2.6.16. Note 
that there are still some issues with that version. Look here 
http://wiki.freebsd.org/linux-kernel for more information.

 Steve

-- 
Pieter de Goeje

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


Re: Some ideas for FreeBSD

2008-02-08 Thread Heiko Wundram (Beenic)
Am Freitag, 8. Februar 2008 17:54:03 schrieb [EMAIL PROTECTED]:
 Well, actually, these are file backed swap devices.
 You can do both file and memory backed devices. this
 allows you to have a swap file on the hard disk and
 mount it.

As I already wrote in another part of this thread: please explain to me why it 
should be faster to have a file backed md set up as swap than a dedicated 
swap partition (because there's at least two more levels of indirection 
involved).

I can clearly see the need for file backed swap in special cases (for example, 
where you need RAM desperately, for example for a compile, but cannot add 
another partition to a system), but no matter what, it will never be faster 
than a swap partition. And that was what the original poster of this 
sub-thread suggested (and as such, I took it that he was referring to 
memory-backed mds, because file-backed mds are never faster than raw access 
to a hard-disk).

So, I still stand by my first assessment: the idea to use an md as swap is 
stupid, at least from a performance standpoint.

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


Re: why does linux-base-f7 exist if the binary compatibility is to a kernel too old to run it? (and how to change that?)

2008-02-08 Thread Vince Hoffman
Steve Franks wrote:
 But there are sites (such as this one:
 http://www.linux.com/feature/53055) that talk about actually using
 linux_base-fc8 (which I can't even find on 7.0rc1).  How is that
 possible if the kernel is too old for it?
 

no idea about /usr/port/emulators/linux_base-8 which that article talks
about, its not in my ports tree. but you can use linux_base-f7  if you
set compat.linux.osrelease=2.6.16
however its still a work in progress and wont always work as intended,
for example it works fine on my laptop
[EMAIL PROTECTED] -Ix linux_base
linux_base-f7-7 Base set of packages needed in Linux mode (for
i386/amd64)
[EMAIL PROTECTED] compat.linux.osrelease
compat.linux.osrelease: 2.6.16

and I can use acrobat and other linux binaries, however my desktop at
home would not start acrobat reader using compat.linux.osrelease=2.6.16
and linux_base-f7-7, and I had to go back to linux_base-fc-4_10 and
compat.linux.osrelease: 2.4.2.


Vince

 Steve
 
 On Feb 8, 2008 9:42 AM, Vince Hoffman [EMAIL PROTECTED] wrote:
 Steve Franks wrote:
 [EMAIL PROTECTED] /usr/ports/emulators/linux_base-f7]$ sudo make install 
 clean
 ===  linux_base-f7-7 compat.linux.osrelease: 2.4.2 is not supported.
 *** Error code 1

 Stop in /usr/ports/emulators/linux_base-f7.

 ???
 Theres work in progress to update the binary compatibility.
 http://wiki.freebsd.org/linux-kernel

 I would imagine the linux_base-f7 is useful for testing.


 Vince

 Thanks,
 Steve
 ___
 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]

 
 
 

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


Re: Some ideas for FreeBSD

2008-02-08 Thread [EMAIL PROTECTED]

--- Jason C. Wells [EMAIL PROTECTED] wrote:

 Heiko Wundram (Beenic) wrote:
  Am Donnerstag, 7. Februar 2008 07:32:16 schrieb
 Jason C. Wells:
  Norberto Meijome wrote:
  But I agree with Wojciech..do you really want to
 use swap files?
  One could mount an md filesystem and then use
 that as swap.  That way
  you wouldn't need to use any disc space.  As a
 plus, the performance
  would be way better than disc.
  
  Ahem, sorry, that's just plain stupid. Either the
 md system is backed up by 
  RAM (in which case you don't need the swap anyway;
 why'd you want to access 
  RAM by putting it in a swap on an md in RAM?), or
 it's backed up by swap, in 
  which case you have a chicken and egg problem.
 
 Mmm, yes. That is quite a pickle.  But a chicken or
 an egg would still 
 be inferior to an md backed swap. :)
 
 Regards,
 Jason
 
 ___
 freebsd-questions@freebsd.org mailing list

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

Actually, you can have file backed swap files. I have
done it. However, with more than one swap file, or a
swap file and a swap partition on the same disk, there
ends up being quite a bit of thrashing. This is due
apparently to some interaction between having two
swaps on the same disk but that is jut a guess, i dont
know what the cause is. 

The idea behind having swap files is that swap space
can more easily be expanded and added on the fly. If
your initial swap partition was not big enough it is
more easy to more swap in another file. As well, a
swap file that can grow and shrink, also would allow
you to avoid having a lot of disk space consumed by
unused swap, so he disk space is allocated when
needed, or allow more space to easily be added if you
find out you do not have enough. 

With applications crashing because of swap partition
running out, this would be an important feature, since
more swap space can be allocated in a file which is
easier to do than a partition.

Swap is still important on systems with small amounts
of RAM, FreeBSD should be able to run on some older
hardware too and should not be like Windows where you
have to have 2 GHZ 2 GB of ram to run it. dynamic swap
space makes it more versatile which is a good thing


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: why does linux-base-f7 exist if the binary compatibility is to a kernel too old to run it? (and how to change that?)

2008-02-08 Thread Steve Franks
But there are sites (such as this one:
http://www.linux.com/feature/53055) that talk about actually using
linux_base-fc8 (which I can't even find on 7.0rc1).  How is that
possible if the kernel is too old for it?

Steve

On Feb 8, 2008 9:42 AM, Vince Hoffman [EMAIL PROTECTED] wrote:

 Steve Franks wrote:
  [EMAIL PROTECTED] /usr/ports/emulators/linux_base-f7]$ sudo make install 
  clean
  ===  linux_base-f7-7 compat.linux.osrelease: 2.4.2 is not supported.
  *** Error code 1
 
  Stop in /usr/ports/emulators/linux_base-f7.
 
  ???

 Theres work in progress to update the binary compatibility.
 http://wiki.freebsd.org/linux-kernel

 I would imagine the linux_base-f7 is useful for testing.


 Vince

 
  Thanks,
  Steve
  ___
  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]




-- 
Steve Franks, KE7BTE
Staff Engineer
La Palma Devices, LLC
http://www.lapalmadevices.com
(520) 312-0089
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to get best results from FreeBSD-questions

2008-02-08 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the newcomers), and also those who answer the
questions (the hackers).

   Note that the term hacker has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is cracker, but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for [EMAIL PROTECTED]).  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send how to questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  

Re: Some ideas for FreeBSD

2008-02-08 Thread Jerry McAllister
On Thu, Feb 07, 2008 at 04:09:13PM -0800, Jason C. Wells wrote:

 Heiko Wundram (Beenic) wrote:
 Am Donnerstag, 7. Februar 2008 07:32:16 schrieb Jason C. Wells:
 Norberto Meijome wrote:
 But I agree with Wojciech..do you really want to use swap files?
 One could mount an md filesystem and then use that as swap.  That way
 you wouldn't need to use any disc space.  As a plus, the performance
 would be way better than disc.
 
 Ahem, sorry, that's just plain stupid. Either the md system is backed up 
 by RAM (in which case you don't need the swap anyway; why'd you want to 
 access RAM by putting it in a swap on an md in RAM?), or it's backed up by 
 swap, in which case you have a chicken and egg problem.
 
 Mmm, yes. That is quite a pickle.  But a chicken or an egg would still 
 be inferior to an md backed swap. :)

Huh?
md backed swap is just using memory which, if you hadn't wasted it 
by making it md, it might obviate the need for swap at all - anyway
it would not be a faster system if the md had to be swapped out.  It
just adds another layer of interferrence.

jerry

 
 Regards,
 Jason
 
 ___
 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]


inetd + few ip

2008-02-08 Thread Roman Otsaljuk
how can I specify few ip-addresses inetd listen on? not all. or all
except few?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How do I get unicode support in python?

2008-02-08 Thread Eric Mesa
I'm running a web server with FreeBSD 6.1-RELEASE and python 2.4.3.  I'm
unable to print any characters outside of ascii.  I have tried this code on
my Linux computer, which has python 2.5.x and it works - so the code is
solid.

What do I need to do to get python on the web server to have unicode
support?  Is there a module/package I need to import in the 2.4 series?  Or
is there some package/port I need to install?  Or do I just recompile python
with some different flags?  (And does that entail any uninstalling first?)

Thanks,

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


Re: ports makefile stuff (bsd.lib.mk)

2008-02-08 Thread Jim Stapleton
 Objects are put in OBJDIR. If you have not set MAKEOBJDIRPREFIX in the
 environment, this will default to ${.CURDIR} and give you a warning.

I tried setting MAKEOBJDIRPREFIX as shown in the makefile copy below,
but the libraries are still appearing in the source directory
(src/backends/core) and not in the directory I want them to output to
(src/objs). I tried using OBJDIR instead, but without any success.

I tried all four of these lines, only the last removed the warning,
but it still had the objects built to the source directory.
MAKEOBJDIRPREFIX=$(OBJPATH)
OBJDIRPREFIX=$(OBJPATH)
OBJDIR=$(OBJPATH)
.OBJDIR=$(OBJPATH)

Any suggestions on what I am doing wrong?

Thank you,
-Jim Stapleton

#directories/requirements
#In order of most likely to least likely to change

#what we are building
OBJNAME=vp_backend_core
VERSION=1.0

SRCS=back_end_core.c
HDRS= ../../include/virtual_ports_backend.h
REQLIB=
OBJPATH=../../objs
INCLUDE_PATHS=-I../../include -I/usr/local/include
LIB_PATHS=-L/usr/local/lib -L$(OBJPATH)


#beyond this point *shouldn't* need change between files
CFLAGS+= $(INCLUDE_PATHS)
CXXFLAGS+= $(INCLUDE_PATHS)
LDADD=$(LIB_PATHS) $(REQLIB)

.if defined(DEBUG)
CFLAGS+=-g -D DEBUG
CXXFLAGS+=-g -D DEBUG
.endif

#for bsd.lib.mk
LIB=$(OBJNAME)-$(VERSION)
SHLIB_NAME=$(OBJNAME)-$(VERSION)
INSTALL_PIC_ARCHIVE=1
OTHER=Makefile
MAKEOBJDIRPREFIX=$(OBJPATH)


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


Re: Memory Error using Mailman on FreeBSD. How to debug?

2008-02-08 Thread Mark Sapiro
Alex Zbyslaw wrote:

You are also getting a stack trace from python when it exits with the 
out of memory error.  ktrace is just showing python printing the stuff 
- it may be that the error also ends up in a log file somewhere - don't 
know where mailman logs, sorry.  From that stack trace it should be 
possible to figure out which line of the python is actually causing that 
memory request.  My bet is on one of the cPickle lines, but it would be 
nice to see the stack trace raw so to speak.  Maybe that stack trace 
would help someone on the mailman list suggest something else.


Hi, I'm the Mailman guy on this thread.

From the errors that were reported on [EMAIL PROTECTED], there
are two different manifestations that we've seen, resulting in
different tracebacks (logged in Mailman's 'error' log).

Here's the flow.

With a message of 1.5 to 2 MB in size, the message is piped from the
MTA to Mailman's 'post' script which creates a queue entry which is a
file containing two python pickles. The first just contains the raw
message text and the second is a small bit of metadata about the
message/entry. This process which is a pipe spawned by the MTA works.

Next, Mailman's IncomingRunner picks up the queue entry and hits the
MemoryError exception in the call to cPickle to read the file and
unpickle the raw message. This is before it has done any processing of
the message, so the MemoryError is only related to unpickling the raw
text if the text is large enough.

With a message of 300 to 500 KB, the process is the same, but the
unpickling of the queuue entry into message text and metadata
succeeds. The MemoryError occurs in this case in the Python email
library as it is parsing the message text into an email message
object. This process is known to be a memory hog in that at some point
the entire raw message text and the full message object (which is at
least as big as the message text) will be resident at the same time.
I.e., it takes more than twice as much memory to parse a message as to
store it.

Note that these messages are not really large. Most Mailman
installations can handle much larger messages without problem.


Did you already try sending a different kind of attachment that's the 
same kind of size (a bit bigger would be better).  Maybe it's something 
about the attachment itself that's causing the issue?


In the first case above, it is almost certainly just the size of the
message text. I'm certain the same thing would occur with a simple
text/plain message if it had a 1.5MB body.



As a final resort, if none of the above resolves or leads to clues, I 
would try uninstalling python2.5 and installing python2.4 *just in 
case*.  I'm assuming that you only have python for mailman.  (If you 
have real python users then it's trickier.  You can install multiple  
versions of python but possibly not from ports.  But python always 
compiled cleanly from tarball on FreeBSD for me.  I can offer some help 
with that process if you really need it).


That would be worth a try. There could be a problem in the underlying
Python.

I don't know how FreeBSD packages Mailman, but the source distribution
installs a pythonlib directory in Mailman's tree with its own Python
email library which is compatible with Python back to 2.1, so if this
is the case with FreeBSD, downgrading Python wouldn't change the email
packege, but it still might help.


I can't help thinking that 500Kb is a very small attachment and I can't 
really see why it would legitimately cause a request for so much memory 
that your settings aren't handling it.


Agreed.

A quick look at the mailman web site shows that you can run qrunner from 
the command line - couldn't immediately find the man page though.


bin/qrunner --help


If 
you could somehow queue up the email with Mailman switched off, you 
could run qrunner by hand and then you'd definitely get the python 
backtrace.  Maybe the mailman list, or a mailman admin here, can help 
with that, if you need it.


We see the Python traceback, so we don't need to do that.

-- 
Mark Sapiro [EMAIL PROTECTED]The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

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


Re: why does linux-base-f7 exist if the binary compatibility is to a kernel too old to run it? (and how to change that?)

2008-02-08 Thread Vince Hoffman
Vince Hoffman wrote:
 Steve Franks wrote:
 But there are sites (such as this one:
 http://www.linux.com/feature/53055) that talk about actually using
 linux_base-fc8 (which I can't even find on 7.0rc1).  How is that
 possible if the kernel is too old for it?

 
 no idea about /usr/port/emulators/linux_base-8 which that article talks
 about, its not in my ports tree. but you can use linux_base-f7  if you
 set compat.linux.osrelease=2.6.16

Sorry to answer myself here, but Just looked and it seems
/usr/port/emulators/linux_base-8 was the redhat 8 port (ie ancient) and
has been
removed.(http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/linux_base-8/Attic/Makefile)

 however its still a work in progress and wont always work as intended,
 for example it works fine on my laptop
 [EMAIL PROTECTED] -Ix linux_base
 linux_base-f7-7 Base set of packages needed in Linux mode (for
 i386/amd64)
 [EMAIL PROTECTED] compat.linux.osrelease
 compat.linux.osrelease: 2.6.16
 
 and I can use acrobat and other linux binaries, however my desktop at
 home would not start acrobat reader using compat.linux.osrelease=2.6.16
 and linux_base-f7-7, and I had to go back to linux_base-fc-4_10 and
 compat.linux.osrelease: 2.4.2.
 
 
 Vince
 
 Steve

 On Feb 8, 2008 9:42 AM, Vince Hoffman [EMAIL PROTECTED] wrote:
 Steve Franks wrote:
 [EMAIL PROTECTED] /usr/ports/emulators/linux_base-f7]$ sudo make install 
 clean
 ===  linux_base-f7-7 compat.linux.osrelease: 2.4.2 is not supported.
 *** Error code 1

 Stop in /usr/ports/emulators/linux_base-f7.

 ???
 Theres work in progress to update the binary compatibility.
 http://wiki.freebsd.org/linux-kernel

 I would imagine the linux_base-f7 is useful for testing.


 Vince

 Thanks,
 Steve
 ___
 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]



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


The disk memory size restrictions

2008-02-08 Thread Xinyu Dong
Hello:
RAM disk to root file system.
I would like to use in embedded FreeBSD, and the creation of a 64 MB memory
disk, and all normal, but 128 MB RAM disk at the time of always
automatically restart.
Loader in the configuration file, use or use md_image mfs_root?
How to resolve this problem, thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Some ideas for FreeBSD

2008-02-08 Thread [EMAIL PROTECTED]

--- Jerry McAllister [EMAIL PROTECTED] wrote:

 On Thu, Feb 07, 2008 at 04:09:13PM -0800, Jason C.
 Wells wrote:
 
  Heiko Wundram (Beenic) wrote:
  Am Donnerstag, 7. Februar 2008 07:32:16 schrieb
 Jason C. Wells:
  Norberto Meijome wrote:
  But I agree with Wojciech..do you really want
 to use swap files?
  One could mount an md filesystem and then use
 that as swap.  That way
  you wouldn't need to use any disc space.  As a
 plus, the performance
  would be way better than disc.
  
  Ahem, sorry, that's just plain stupid. Either the
 md system is backed up 
  by RAM (in which case you don't need the swap
 anyway; why'd you want to 
  access RAM by putting it in a swap on an md in
 RAM?), or it's backed up by 
  swap, in which case you have a chicken and egg
 problem.
  
  Mmm, yes. That is quite a pickle.  But a chicken
 or an egg would still 
  be inferior to an md backed swap. :)
 
 Huh?
 md backed swap is just using memory which, if you
 hadn't wasted it 
 by making it md, it might obviate the need for swap
 at all - anyway
 it would not be a faster system if the md had to be
 swapped out.  It
 just adds another layer of interferrence.
 
 jerry
 
  
  Regards,
  Jason
  
  ___
  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]
 


Well, actually, these are file backed swap devices.
You can do both file and memory backed devices. this
allows you to have a swap file on the hard disk and
mount it. 



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to find CPU IDLE Percentage on SMP (Dual processor Host)

2008-02-08 Thread Devanand SP
Hi Everyone,

I am using a FreeBSD version 4.11 for running my BIND. I am in a need of 
setting up an audit for the CPU Utilization on my resolvers and have a query 
about finding the CPU IDLE percentage on a DUAL processor hosts. As the BIND 
binary uses only the first processor, the second CPU most of the time not used 
by BIND. So in this case the in built system utilities like top or sar does 
average the CPU IDLE percentage by adding up the First CPU's IDLE % + Second 
CPU's IDLE % /2. This in turn will give me a wrong result. So can someone 
suggest me on how I can get the right CPU IDLE %?

Thanks.


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: A non FreeBSD question.

2008-02-08 Thread Bill Moran
In response to Jerry McAllister [EMAIL PROTECTED]:

 On Fri, Feb 08, 2008 at 08:59:22AM +0530,  Anuj Singh wrote:
 
  Hi,
  It may start flame, Next lines may seem funny but I want to see what
  people think say, sorry i am posting here, just to get an idea. Cause
  i am also one of the open source user/lover and my most of the time
  goes with computers over freebsd/linux.
  
  If someone is away from his cell for around an hour, thus not picking
  the phone, and his colleagues does not knows where is he as he has not
  to give reporting to anyone, it means what's he doing?
  1.From a normal persons point of view.
  2.From the point of view of spouse.
 
 The person is busy somewhere or has the phone turned off.
 I don't know any spouses who check every hour -- at least any
 spouses in a good marriage relationship.

Bah.  It means he's kayaking:
http://www.potentialtech.com/Cucumber/

I mean, it's kinda tough to answer the phone under those circumstances ...

-- 
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: Some ideas for FreeBSD

2008-02-08 Thread doug

On Fri, 8 Feb 2008, Wojciech Puchar wrote:


It is one thing to add support for a POSIX call into FreeBSD.
That's fine.

It's quite another to break a header or supply hacky 32-bit-only
code in a library or some such just because Linux does the same
brain-dead stuff and the Linux maintainers are too stubborn or
stupid to fix Linux.

don't forget that linux changed from being good unix OS to be windows 
competitor. and it's competing well.


I am only responding to two narrow points so I am only responding to the list. I 
apologize in advance if this is a protocol error.


Linux got (and gets?) a boost from law suit over the name unix that was in 
progress around the advent of the BSDs. Linux seems to, at least initially, done 
a better job of being easier to install. Perhaps in the past even we FreeBSD-ers 
were willing to cede the desktop to other O/S-s. As a result Linux is probably 
more competitive with Windows than FreeBSD is as a desktop. I think that has 
nothing to do with the technical merits of this (or any) discussion.


The other point is when FreeBSD starts swapping to any degree, thrashing is not 
far behind. There is no cure for not having enough memory. Email is not 
generally an interactive endeavor and can probably tolerate much swapping than 
running KDE. Actually running KDE on a 128MB system I know this for a 
absolute fact :)


Swapping systems may have performed better when thrashing started because they 
had lots of controls to say who (or what type of workload) got screwed when 
memory was scarce.

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


RE: PHP - mbstring question

2008-02-08 Thread Darryl Hoar


 Hi Darry,

 cd /usr/ports/lang/php4-extensions  make config

Ensure that you select MBSTRING from the list.

Best Regards,

Kieran

Well,
I screwed up when I installed php4-extensions as I missed
selecting MBSTRING.  So extensions are built and installed.

To fix this, do I have do un-install extensions and then rebuild/
install them again ?

thanks,
Darryl

 Greetings,
 I installed php4 and php4_extensions on my 6.3-release box.
 Tried installing SugarCRM (downloaded from their site as the
 freebsd port is broken).   When installing it generates an error:

 Functions associated with Multi-byte strings PHP extensions (mbstring)
 are needed by application.

 How do I add that ?   Any help greatly appreciated.

 -Darryl

 PHP version 4.4.7
 ___
 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]


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.21/1266 - Release Date: 2/8/2008
10:06 AM


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


is libfontconfig.so part of linux-xorg-libs?

2008-02-08 Thread Steve Franks
I have the latest linux-xorg-libs installed, but I get the following
from a script kicked off from /compat/linux/bin/sh:

   libraries: /usr/X11R6/lib/libfontconfig.so.1: ELF file OS ABI invalid

So, am I just missing that .so, or am I running the linux program
incorrectly or have I misconfigured.  I thought fontconfig was pretty
basic, so I am assuming I have it an am missing something else.

I've just set up linux compat and already got the kernel module loaded
and linprocfs (which was causing another error by it's absence) all
working, so I feel I must be getting close!

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


Re: PHP - mbstring question

2008-02-08 Thread Kieran

Hi Darry,

cd /usr/ports/lang/php4-extensions  make config

Ensure that you select MBSTRING from the list.

Best Regards,

Kieran
- Original Message - 
From: Darryl Hoar [EMAIL PROTECTED]

To: freebsd-questions@freebsd.org
Sent: Friday, February 08, 2008 1:06 PM
Subject: PHP - mbstring question



Greetings,
I installed php4 and php4_extensions on my 6.3-release box.
Tried installing SugarCRM (downloaded from their site as the
freebsd port is broken).   When installing it generates an error:

Functions associated with Multi-byte strings PHP extensions (mbstring)
are needed by application.

How do I add that ?   Any help greatly appreciated.

-Darryl

PHP version 4.4.7
___
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: Memory Error using Mailman on FreeBSD. How to debug?

2008-02-08 Thread Mel
On Friday 08 February 2008 13:41:44 Alex Zbyslaw wrote:
 Lachlan Michael wrote:
 Real puzzler.  I'm surprised not to have at least one process growing,
 though.  Maybe it's not using much CPU and you're not spotting it.
 
 Following you advice, as far as I can tell, the mailman qrunner process
 
  /usr/local/bin/python2.5 /usr/local/mailman/bin/qrunner
 --runner=IncomingRunner:0:1 -s
 
 is the one that crashes: all other mailman processes are unaffected. I
 couldn't see it increase much in size (maybe it went from 8.5M to 12.5M),
 then it just bombed and a new process was spawned (easy to tell by the
 large increase in PID).

 All I can think us that qrunner asks for such a large amount of memory
 in one go, that it bombs out without ever growing.  That fits with the
 ktrace output as well.  Regretably, I don't think you can tell *how*
 much memory was asked for.  (The normal pattern with out of memory
 errors is for the process to grow and grown and grow and die; but it's
 not the only one).

 Other things to try:  Up the stack size
 ulimit -s 262144
 
 inside the mailman startup.  Again, I've had processes in the past which
 needed this.
 
 Ok, I am going to gradually try different limits. It seems as though
  setting kern.maxssiz=256M
 and so on in /boot/loader.conf will allow me to increase the limits.
 Having to reboot is a pain, though. How far can I go? 512M? (Physical
 memory is 1GB)

 Certainly not more than physical memory :-)  To be honest, if 256M
 doesn't do it then this probably isn't the problem.  I'm not
 particularly hopeful that this will do it, but in your circumstance I
 would try it.

 At the same time, you could also increase the data size (maxdsiz?) to
 1Gb (yours looks like 0.5Gb, half your physical memory).

 My limit settings (also 1Gb) look like:

 datasize 1048576 kbytes
 stacksize262144 kbytes

 which come from trying to set 256Mb and 1024Mb in the kernel config (old
 FreeBSD - no sysctls).

 Keep the ulimit -a in the mailman startup script so you can confirm that
 you really get these numbers.

 Can you email a file of the size your are
 trying not through mailman?  Maybe your MTA (sendmail/postfix etc) has a
 limit that somehow causes mailman to get this error.
 
 This is definitely not the case. Users can receive (and send) similar
 sized large attachments individually, so the MTA (sendmail in this case)
 is not the cause.

 OK - rule that out.  The ktrace showing qrunner failing a break pretty
 much does that too.

 The final suggestion is to try to trace (ktrace, strace from ports) the
 process that is dying,
 
 I'll admit it is my first time to try a ktrace, but after noting which
 process it was that crashed I could identify the newly spawned PID, and
 obtained a ktrace.out (binary) and a kdump  (called
 mailman_process_log.txt) when the problems occurs by sending another large
 mail attachment.  I'll leave the files up for a couple of days. (Both
 files are about 2MB in size)
 
 http://lachlan.lkla.org/tmp/mailman_memory_error/
 
 Not that I can properly interpret the results, but it seems the mail file
 is completely read, but whatever happens next causes the memory error.
 
  52506 python2.5 RET   read 354/0x162
  52506 python2.5 CALL  break(0x8add000)
  52506 python2.5 RET   break 0
  52506 python2.5 CALL  break(0x8cc3000)
  52506 python2.5 RET   break -1 errno 12 Cannot allocate memory

 The kdump output is the only useful bit, really.  Your analysis seems
 correct to me.

This looks like classic uninitialized variable to me, as in asking for 
5397590320 memory, cause msgSize was unset. I'd attach gdb with -p flag and 
check how much memory it's asking for.
If that doesn't work for you, maybe you can find out in the python source 
where it is asking for this memory and instead of saying Cannot allocate 
make it say Cannot allocate this many bytes.

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


Re: pxeboot, TFTP only, NFS MOUNT RPC error: 60, timeout

2008-02-08 Thread Christian Laursen
Rek Jed [EMAIL PROTECTED] writes:

 I've been building FreeBSD jumpstart infrastructure and it mostly
 works.  I'm using tftp  to boot off the network in to scripted
 sysinstall.  I compiled the boot loader with tftp support but every
 time I boot it will first try nfs, then timeout after around two
 minutes (it cannot find nfs) and finally boot from tftp.  Is there any
 way that I can make it boot from tftp straight away rather than wait
 for nfs to timeout?

Try unsetting boot.nfsroot.server and boot.nfsroot.path although I'm
not sure that it will avoid the timeout in newer FreeBSD releases.

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


Re: is libfontconfig.so part of linux-xorg-libs?

2008-02-08 Thread Boris Samorodov
On Fri, 8 Feb 2008 12:59:24 -0700 Steve Franks wrote:

 I have the latest linux-xorg-libs installed, but I get the following
 from a script kicked off from /compat/linux/bin/sh:

libraries: /usr/X11R6/lib/libfontconfig.so.1: ELF file OS ABI invalid

Uh, sorry, I just noticed subject, here is an answer:
-
% pkg_info -W /compat/linux/usr/lib/libfontconfig.so.1 
/compat/linux/usr/lib/libfontconfig.so.1 was installed by package 
linux-fontconfig-2.2.3_7
-


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


Re: PHP - mbstring question

2008-02-08 Thread Daniel Bye
On Fri, Feb 08, 2008 at 02:06:45PM -0600, Darryl Hoar wrote:
 Greetings,
 I installed php4 and php4_extensions on my 6.3-release box.
 Tried installing SugarCRM (downloaded from their site as the 
 freebsd port is broken).   When installing it generates an error:
 
 Functions associated with Multi-byte strings PHP extensions (mbstring)
 are needed by application.
 
 How do I add that ?   Any help greatly appreciated.

 # cd /usr/ports/lang/php4-extensions
 # make install

Add mutlibyte (MBSTRING) support in the config dialog, and let the
install continue. 

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpAcWNoU3Rmx.pgp
Description: PGP signature


Re: is libfontconfig.so part of linux-xorg-libs?

2008-02-08 Thread Boris Samorodov
On Fri, 8 Feb 2008 12:59:24 -0700 Steve Franks wrote:

 I have the latest linux-xorg-libs installed, but I get the following
 from a script kicked off from /compat/linux/bin/sh:

libraries: /usr/X11R6/lib/libfontconfig.so.1: ELF file OS ABI invalid

This is really a FreeBSD library. The linux one should be at
/usr/compat/linux/usr/lib/libfontconfig.so.1 and thus may be
displayed as /usr/lib/libfontconfig.so.1.

 So, am I just missing that .so, or am I running the linux program

This may help to find out if you have the needed file:
-
% ls -l /usr/compat/linux/usr/lib/libfontconfig.so*
-

If you have this file than there is two possibilities:
. either your app needs a new libfontconfig (with new API, 2.6 kernel)
  then you may try to use linux_base-f7 (has some known issues for
  now);
. or you may have some non-default environment (see /usr/ports/UPDATING
  for more info on this) which prevents from finding this library
  before a FreeBSD one -- try to remove non-default environment.

 incorrectly or have I misconfigured.  I thought fontconfig was pretty
 basic, so I am assuming I have it an am missing something else.

 I've just set up linux compat and already got the kernel module loaded
 and linprocfs (which was causing another error by it's absence) all
 working, so I feel I must be getting close!

Is this linux application from ports collection?


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


The Complete FreeBSD: errata and addenda

2008-02-08 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

The Complete FreeBSD has been through a total of five editions, including its
predecessor Installing and Running FreeBSD.  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


PHP - mbstring question

2008-02-08 Thread Darryl Hoar
Greetings,
I installed php4 and php4_extensions on my 6.3-release box.
Tried installing SugarCRM (downloaded from their site as the 
freebsd port is broken).   When installing it generates an error:

Functions associated with Multi-byte strings PHP extensions (mbstring)
are needed by application.

How do I add that ?   Any help greatly appreciated.

-Darryl

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


Re: pf.conf for variable interfaces

2008-02-08 Thread Jim Bow

Erik Norgaard wrote:

Chad Perrin wrote:

I'm setting up PF on a FreeBSD laptop that sometimes uses the wireless
device (iwi0) as its external interface, and sometimes uses the RJ-45
ethernet device (bge0) as its external interface.  Unfortunately, I
haven't figured out yet how to make that happen.


How about this:

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


This is nice, but any ideas how to do this if the wireless interface 
is only present some of the time, ie its a pcmcia card?



JimBow
___
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 find CPU IDLE Percentage on SMP (Dual processor Host)

2008-02-08 Thread Dominic Fandrey

Devanand SP wrote:

Hi Everyone,

I am using a FreeBSD version 4.11 for running my BIND. I am in a need of 
setting up an audit for the CPU Utilization on my resolvers and have a query 
about finding the CPU IDLE percentage on a DUAL processor hosts. As the BIND 
binary uses only the first processor, the second CPU most of the time not used 
by BIND. So in this case the in built system utilities like top or sar does 
average the CPU IDLE percentage by adding up the First CPU's IDLE % + Second 
CPU's IDLE % /2. This in turn will give me a wrong result. So can someone 
suggest me on how I can get the right CPU IDLE %?

Thanks.


top -S

will list the idle processes for each CPU separately. I hope this is a valid 
statement for 4.x. I am not certain.

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


Unable to mount partition with ntfs-3g

2008-02-08 Thread Kevin Oberman
I would love to be able to mount my NTFS partition R/W, but the FreeBSD
NTFS support is read-only (or almost read-only), so I installed
fusefs-ntfs which I thought would allow this.

After installation (which also pulled in fusefs-kmod, fusefs-libs, and
libublio), I added fusefs_enable=yes to my rc.conf. Then, after
starting fusefs (which means loading the fuse kernel module), I tried:
# mount -t ntfs-3g /dev/ad0s1 /C
mount: /dev/ad0 : Operation not supported by device

I got the same message for a USB drive on /dev/da0.

Documentation on ntfs-3g is pretty limited. Did I miss something? I
really rather not convert my new USB disk to FAT32 if I don't have to.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751


pgpGnERq4hbHJ.pgp
Description: PGP signature


Re: PHP - mbstring question

2008-02-08 Thread Kieran

Hi Darryl,

You do not need to uninstall the extensions, simply ensure the directory is 
clean (make clean) do a make config and select the correct options. You 
should then do a make install clean. This will allow the installer to not 
take as long rebuilding extensions which are already installed. **sudo is 
not needed but is a good practise**

$ cd /usr/ports/lang/php4-extensions  sudo make clean  sudo make config

Now install the newly configured php4 extensions.
$ sudo make install clean

Best Regards,

Kieran
- Original Message - 
From: Darryl Hoar [EMAIL PROTECTED]

To: 'Kieran' [EMAIL PROTECTED]; freebsd-questions@freebsd.org
Sent: Friday, February 08, 2008 1:50 PM
Subject: RE: PHP - mbstring question






Hi Darry,



cd /usr/ports/lang/php4-extensions  make config



Ensure that you select MBSTRING from the list.



Best Regards,



Kieran


Well,
I screwed up when I installed php4-extensions as I missed
selecting MBSTRING.  So extensions are built and installed.

To fix this, do I have do un-install extensions and then rebuild/
install them again ?

thanks,
Darryl


Greetings,
I installed php4 and php4_extensions on my 6.3-release box.
Tried installing SugarCRM (downloaded from their site as the
freebsd port is broken).   When installing it generates an error:

Functions associated with Multi-byte strings PHP extensions (mbstring)
are needed by application.

How do I add that ?   Any help greatly appreciated.

-Darryl

PHP version 4.4.7
___
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]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.21/1266 - Release Date: 2/8/2008
10:06 AM


___
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: Strange apache logs

2008-02-08 Thread Dragan Jovelic
Below is output of ps aux. Regarding apache configuration, nothing is 
changed there, just installed as-is from ports, only included one 
httpd-vhosts file with number of VirtualHost directives.


$ ps -aux
USERPID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
root 11 92.0  0.0 0 8  ??  RL   Sat05PM 6598:00.73 [idle: cpu0]
root 10 89.0  0.0 0 8  ??  RL   Sat05PM 6498:48.95 [idle: cpu1]
www   92653  0.2  0.6 21960 12280  ??  S 4:47PM   0:00.22 
/usr/local/sbin/httpd -k start
www   92636  0.2  0.6 21976 12304  ??  S 4:46PM   0:00.08 
/usr/local/sbin/httpd -k start
www   92652  0.1  0.6 21932 12264  ??  S 4:47PM   0:00.14 
/usr/local/sbin/httpd -k start
www   92634  0.1  0.6 21948 12272  ??  S 4:46PM   0:00.09 
/usr/local/sbin/httpd -k start

root  0  0.0  0.0 0 0  ??  WLs  Sat05PM   0:00.00 [swapper]
root  1  0.0  0.0   772   260  ??  ILs  Sat05PM   0:01.31 /sbin/init -s
root  2  0.0  0.0 0 8  ??  DL   Sat05PM   0:13.33 [g_event]
root  3  0.0  0.0 0 8  ??  DL   Sat05PM   6:21.41 [g_up]
root  4  0.0  0.0 0 8  ??  DL   Sat05PM   5:49.45 [g_down]
root  5  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.00 [thread taskq]
root  6  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.00 [kqueue taskq]
root  7  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.00 [acpi_task_0]
root  8  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.00 [acpi_task_1]
root  9  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.00 [acpi_task_2]
root 12  0.0  0.0 0 8  ??  WL   Sat05PM   5:30.04 [swi4: 
clock sio]

root 13  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [swi3: vm]
root 14  0.0  0.0 0 8  ??  WL   Sat05PM   6:53.81 [swi1: net]
root 15  0.0  0.0 0 8  ??  DL   Sat05PM   1:20.99 [yarrow]
root 16  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [swi6: 
Giant taskq]

root 17  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [swi5: +]
root 18  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [swi2: cambio]
root 19  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.44 [swi6: 
task queue]

root 20  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [irq9: acpi0]
root 21  0.0  0.0 0 8  ??  WL   Sat05PM  14:30.38 [irq19: 
ohci0 ohci*]

root 22  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.02 [usb0]
root 23  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.00 [usbtask]
root 24  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.02 [usb1]
root 25  0.0  0.0 0 8  ??  WL   Sat05PM  11:40.54 [irq18: 
em0 uhci1]
root 26  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [irq17: 
fwohci0+]

root 27  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.02 [usb2]
root 28  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.02 [usb3]
root 29  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.02 [usb4]
root 30  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [irq14: ata0]
root 31  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [irq15: ata1]
root 32  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.02 [irq1: atkbd0]
root 33  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [swi0: sio]
root 34  0.0  0.0 0 8  ??  DL   Sat05PM   0:01.33 [fdc0]
root 35  0.0  0.0 0 8  ??  WL   Sat05PM   0:00.00 [irq7: ppc0]
root 36  0.0  0.0 0 8  ??  DL   Sat05PM   0:06.14 [pagedaemon]
root 37  0.0  0.0 0 8  ??  DL   Sat05PM   0:00.00 [vmdaemon]
root 38  0.0  0.0 0 8  ??  DL   Sat05PM   8:44.87 [pagezero]
root 39  0.0  0.0 0 8  ??  DL   Sat05PM   0:24.66 [bufdaemon]
root 40  0.0  0.0 0 8  ??  DL   Sat05PM   8:40.45 [syncer]
root 41  0.0  0.0 0 8  ??  DL   Sat05PM   0:33.43 [vnlru]
root 42  0.0  0.0 0 8  ??  DL   Sat05PM   0:08.23 [softdepflush]
root 43  0.0  0.0 0 8  ??  DL   Sat05PM   0:21.53 [schedcpu]
root168  0.0  0.0  1252   620  ??  Is   Sat05PM   0:00.00 adjkerntz -i
root567  0.0  0.0   528   284  ??  Is   Sat05PM   0:00.00 /sbin/devd
root611  0.0  0.0  1376   832  ??  Is   Sat05PM   0:01.24 
/usr/sbin/syslogd -s

root740  0.0  0.1  3524  1796  ??  Is   Sat05PM   0:02.76 /usr/sbin/sshd
root746  0.0  0.1  3484  2180  ??  Ss   Sat05PM   0:06.31 sendmail: 
accepting connections (sendmail)
smmsp   750  0.0  0.1  3384  1924  ??  Is   Sat05PM   0:00.12 sendmail: 
Queue [EMAIL PROTECTED]:30:00 for /var/spool/clientmqueue (s
root756  0.0  0.0  1388   836  ??  Is   Sat05PM   0:00.84 
/usr/sbin/cron -s
root  25914  0.0  0.6 21452 11520  ??  Ss   Sun06PM   3:43.98 
/usr/local/sbin/httpd -k start
root  89210  0.0  0.1  6276  2576  ??  Is3:03PM   0:00.03 sshd: 
editor [priv] (sshd)
editor 89213  0.0  0.1  6252  2596  ??  I 3:04PM   0:00.22 sshd: 
[EMAIL PROTECTED] (sshd)
root  91833  0.0  0.1  6276  2588  ??  Is4:21PM   0:00.03 sshd: 
editor [priv] (sshd)
editor 91836  0.0  0.1  6252  2604  ??  S 4:21PM   

Re: pf.conf for variable interfaces

2008-02-08 Thread Erik Norgaard

Jim Bow wrote:

Erik Norgaard wrote:

How about this:

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


This is nice, but any ideas how to do this if the wireless interface 
is only present some of the time, ie its a pcmcia card?


If the above trick doesn't work, then I don't think there is an easy 
solution, pf fails loading rulesets when an error is encountered, which 
AFAIK would happen if an interface is not present.


An option could be to load rule sets as part of the interface setup. 
That means messing with the scripts in /etc/rc.d.


If you look in netif, then there is as part of the start() routine, a 
part that resyncs ipfilter. You can probably copy/paste this to do the 
same if pf is enabled and add a similar resync command to the pf script.


Just some ideas.

Cheers, Erik

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


Re: Unable to mount partition with ntfs-3g

2008-02-08 Thread Dominic Fandrey

Kevin Oberman wrote:

I would love to be able to mount my NTFS partition R/W, but the FreeBSD
NTFS support is read-only (or almost read-only), so I installed
fusefs-ntfs which I thought would allow this.

After installation (which also pulled in fusefs-kmod, fusefs-libs, and
libublio), I added fusefs_enable=yes to my rc.conf. Then, after
starting fusefs (which means loading the fuse kernel module), I tried:
# mount -t ntfs-3g /dev/ad0s1 /C
mount: /dev/ad0 : Operation not supported by device

I got the same message for a USB drive on /dev/da0.

Documentation on ntfs-3g is pretty limited. Did I miss something? I
really rather not convert my new USB disk to FAT32 if I don't have to.


mount only calls a couple of file systems in the old fashioned way. One of 
them is ntfs. What I did to be able to mount NTFS systems with mount -t 
(obligatory if you want to use fstab to mount), I did the following:


# mv /sbin/mount_ntfs /sbin/mount_ntfs.bak
# ln -s /usr/sbin/mount_ntfs-3g /sbin/mount_ntfs

This is one of my /etc/fstab entries
/dev/ntfs/2vault  /mnt/vault  ntfs  rw,late,gid=5,umask=113,dmask=002  0  0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: why does linux-base-f7 exist if the binary compatibility is to a kernel too old to run it? (and how to change that?)

2008-02-08 Thread Boris Samorodov
On Fri, 8 Feb 2008 09:25:26 -0700 Steve Franks wrote:

 [EMAIL PROTECTED] /usr/ports/emulators/linux_base-f7]$ sudo make install clean
 ===  linux_base-f7-7 compat.linux.osrelease: 2.4.2 is not supported.
 *** Error code 1

 Stop in /usr/ports/emulators/linux_base-f7.

 ???

Besides all other suggestions I'd like to add that /usr/ports/UPDATING
has some additional info.


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


Re: buildworld releng7 exterme performance loss

2008-02-08 Thread Frank Staals

Frank Staals wrote:
[EMAIL PROTECTED] wrote: 

message snipped


As suggested I turned on all.log and also captured the output from 
vmstat -i and top -S as 2 others suggested. From the all.log output I 
don't seem to see anything out of the ordinary if I compare it to a 
snapshot of all.log on my working environment but maybe I am looking 
for the wrong thing ? The same applies for the output of top -S. 
vmstat's output may be more interesting though. In both cases I the 
information was taken just after boot with a login on tty0 and 1 
remote session. vmstat shows the amount of interrupts for my network 
interfaces are a lot higher with todays build compared to my working 
env from 3 weeks ago. There is one difference though: I did a rm -rf 
/usr/obj/* through ssh on the todays build. Could that be the reason 
for the difference or did I find the source of the problem ?


info :

all.log
todays build : http://fstaals.net/junk/rena/all.log.2008.07.02.1140
working env: http://fstaals.net/junk/rena/all.log.stable

top -S output (links so the output is still properly formatted )
todays build: http://fstaals.net/junk/rena/top
working env: http://fstaals.net/junk/rena/top_stable

vmstat -i on todays build:
[EMAIL PROTECTED] cat /root/vmstat
interrupt total rate
irq1: atkbd0 610 2
irq9: acpi0 1 0
irq12: psm0 6 0
irq14: ata0 58 0
irq17: wpi0 bge0+ 151862 706
irq19: cbb0+ 2 0
irq20: uhci0 uhci+ 1 0
irq21: pcm0 uhci1+ 8 0
irq22: ehci0 uhci4 5 0
cpu0: timer 179565 835
cpu1: timer 169770 789
Total 501888 2334

[EMAIL PROTECTED] cat /root/vmstat_stable
interrupt total rate
irq1: atkbd0 130 1
irq9: acpi0 1 0
irq14: ata0 58 0
irq17: wpi0 bge0+ 3544 44
irq19: cbb0+ 2 0
irq20: uhci0 uhci+ 1 0
irq21: pcm0 uhci1+ 7 0
irq22: ehci0 uhci4 5 0
cpu0: timer 155701 1946
cpu1: timer 145928 1824
Total 305377 3817



to see if the values from vmstat were normal I tried a couple things 
again. I once more recompiled the latest sources and disabled my wpi 
wlan interface (since if the vmstat value was incorrect the most obvious 
reason would have been something with wpi I thought. ). Unfortunately 
that didn't help much. Second I again cleared /usr/obj/ through an ssh 
session. The vmstat value for bge0 (my LAN interface) was 160 000. 
Lastly I recompiled my normal sources again and removed /usr/obj/* again 
through ssh. Allthough the number of interrupts is still quite big it is 
only half of the amount it shows with todays sources. So now I am once 
again lost on what to do to determine the cause of my problem:


[EMAIL PROTECTED] vmstat -i
interrupt total rate
irq1: atkbd0 1898 2
irq9: acpi0 1 0
irq12: psm0 84 0
irq14: ata0 58 0
irq17: wpi0 bge0+ 83570 110
irq19: cbb0+ 2 0
irq20: uhci0 uhci+ 3 0
irq21: pcm0 uhci1+ 2217 2
irq22: ehci0 uhci4 5 0
cpu0: timer 1484618 1956
cpu1: timer 1474830 1943
Total 3047286 4014

Anyone ideas ?

--
-Frank Staals


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


Re: Unable to mount partition with ntfs-3g

2008-02-08 Thread Manolis Kiagias


Kevin Oberman wrote:

I would love to be able to mount my NTFS partition R/W, but the FreeBSD
NTFS support is read-only (or almost read-only), so I installed
fusefs-ntfs which I thought would allow this.

After installation (which also pulled in fusefs-kmod, fusefs-libs, and
libublio), I added fusefs_enable=yes to my rc.conf. Then, after
starting fusefs (which means loading the fuse kernel module), I tried:
# mount -t ntfs-3g /dev/ad0s1 /C
mount: /dev/ad0 : Operation not supported by device

I got the same message for a USB drive on /dev/da0.

Documentation on ntfs-3g is pretty limited. Did I miss something? I
really rather not convert my new USB disk to FAT32 if I don't have to.
  


try using the ntfs-3g command directly:

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


Re: pf.conf for variable interfaces

2008-02-08 Thread Chad Perrin
On Fri, Feb 08, 2008 at 02:53:39PM +0100, Erik Norgaard wrote:
 Chad Perrin wrote:
 I'm setting up PF on a FreeBSD laptop that sometimes uses the wireless
 device (iwi0) as its external interface, and sometimes uses the RJ-45
 ethernet device (bge0) as its external interface.  Unfortunately, I
 haven't figured out yet how to make that happen.
 
 How about this:
 
 ext_ifs = { iwi0 bge0 }
 block in quick on ext_ifs all
 pass out quick on ext_ifs all keep state
 ...
 
 
 As long as you don't need statements like iwi0:network which you 
 shouldn't on an endpoint, then I guess this will work.

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

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


Re: pxeboot, TFTP only, NFS MOUNT RPC error: 60, timeout

2008-02-08 Thread Rek Jed

Erik Norgaard wrote:
OK, two things remain: Are you sure that it doesn't correctly fetch 
the kernel with tftp and then the kernel tries to mount a root device 
with nfs?
When I build the pxeloader with LOADER_TFTP_SUPPORT=YES it will fetch 
the kernel from tftp just fine, but after the NFS gracefully times out.  
It will also fetch  mount the root device from tftp ok.  It's just a 
bit annoying that I have to wait 2 extra minutes every time I need to 
install a box (I do this quite often), and look for workarounds for 
something that should just work.  But then, I'm a sysadmin not a 
developer so it might be easy for me to say.  I cannot actually fix it 
myself.
If the kernel is compiled with the slightest mention of nfs as root 
device it will use nfs, no matter that you have specified otherwise in 
loader.conf. The generic kernel has NFS_ROOT and NFS_CLIENT, since 
your root device is not NFS then you can leave out both. I recall 
having problems leaving in NFS_CLIENT although NFS_ROOT was not included.
I don't bother compiling a kernel for this at the moment.   I just 
copied the contents of /boot from a FreeBSD CD to the root of my tftp 
server.  Then I copied the custom build loader files so that I can boot 
from tftp instead of nfs:


boot0
boot1
boot2
loader.conf
loader.rc
mbr
pxeboot

Then I mount the stock mfsroot and copy my install.cfg over to script 
sysinstall.  I've actually got a script that I can use to easily update 
install.cfg when needed.


The idea behind all this is to keep it as simple to setup as possible so 
that me and my fellow network engineers at work can use this on their 
laptops without spending too much time on setting it up.  This way if we 
need to install/re-install a box on a clients site we just rock up, run 
a few commands or a script to set the laptop in jumpstart mode (once the 
main thing has been setup it's just a matter of reconfiguring an 
interface and starting a few services), plug it in to the box, netboot 
and while the box is reinstalling we can have a chat with the client, 
see how things are going, look good and provide a better service.   This 
also means that we always start with a machine that is in a know state.  
It's something that is almost impossible to achieve when installing by 
hand as everyone seems to do it differently.


I'm happy to share my docs once I've ironed it all out and tested properly.


Cheers,


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


Re: why does linux-base-f7 exist if the binary compatibility is to a kernel too old to run it? (and how to change that?)

2008-02-08 Thread Lowell Gilbert
Steve Franks [EMAIL PROTECTED] writes:

 But there are sites (such as this one:
 http://www.linux.com/feature/53055) that talk about actually using
 linux_base-fc8 (which I can't even find on 7.0rc1).  How is that
 possible if the kernel is too old for it?

That was linux_base-8, not linux_base-fc8.
Very different thing.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pf.conf for variable interfaces

2008-02-08 Thread Chad Perrin
I'm setting up PF on a FreeBSD laptop that sometimes uses the wireless
device (iwi0) as its external interface, and sometimes uses the RJ-45
ethernet device (bge0) as its external interface.  Unfortunately, I
haven't figured out yet how to make that happen.

I'd like to be able to have the $ext_if value change depending on which
interface is active and being used to connect to the outside world.  Do I
just need to create two full sets of rules in my pf.conf (or use a script
to rewrite that file from scratch each time), even though I'll be using
exactly the same rules for PF regardless of which interface I'm using, or
is there some simple way to avoid that sort of redundancy?  What am I
overlooking?

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


Re: ports makefile stuff (bsd.lib.mk)

2008-02-08 Thread Jim Stapleton
 first of all, /usr/share/mk/bsd.lib.mk is part of the FreeBSD system make
 files, not just the ports. So if you change something there, you will almost
 certainly break your buildworld and buildkernel.

Depends on what you add, but for the most part, yes, I agree that is likely.

 On Wednesday 06 February 2008 16:49:46 Jim Stapleton wrote:

  1) Initially, this library will actually build several sublibraries.
  To keep my code neat, each library has it's own source directory.

 So you set SUBDIR.

That was background not a question. I managed that part. (I think it
was from the zipped make tutoral suggested by the man page or ports).


 [...]

 Objects are put in OBJDIR. If you have not set MAKEOBJDIRPREFIX in the
 environment, this will default to ${.CURDIR} and give you a warning.

That is exactly what I was looking for. Thank you.

Roughly speaking, under src/, I had backends/[SHLIB_NAME]/,
frontends/[BIN_NAME], objs/, and include/. I wanted to build
everything into objs/, that way I only needs the ldflags to have
-L../../objs, rather than -L../foo -L../bar, where foo and bar
vary from app to app.

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: pf.conf for variable interfaces

2008-02-08 Thread Erik Norgaard

Chad Perrin wrote:

I'm setting up PF on a FreeBSD laptop that sometimes uses the wireless
device (iwi0) as its external interface, and sometimes uses the RJ-45
ethernet device (bge0) as its external interface.  Unfortunately, I
haven't figured out yet how to make that happen.


How about this:

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


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


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


Re: pf.conf for variable interfaces

2008-02-08 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Chad Perrin wrote:
 I'm setting up PF on a FreeBSD laptop that sometimes uses the wireless
 device (iwi0) as its external interface, and sometimes uses the RJ-45
 ethernet device (bge0) as its external interface.  Unfortunately, I
 haven't figured out yet how to make that happen.
 
 I'd like to be able to have the $ext_if value change depending on which
 interface is active and being used to connect to the outside world.  Do I
 just need to create two full sets of rules in my pf.conf (or use a script
 to rewrite that file from scratch each time), even though I'll be using
 exactly the same rules for PF regardless of which interface I'm using, or
 is there some simple way to avoid that sort of redundancy?  What am I
 overlooking?
 

You might be able to use link aggregation to make this work.  See lagg(4)
- -- there's an example in there of automatic fail-over between a wireless
and a wired interface.  Assuming that your wireless and wired interfaces
would all sit on the same network and you can move the IP from one to the
other, it should work.

In pf.conf you'ld need to set:

  ext_if=(lagg0)' 

(The brackets are important if the IP is dynamically assigned and could
change)

Completely untried, but I think this should work.

Cheers,

Matthew

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

iD8DBQFHrGBn3jDkPpsZ+VYRA3UDAKCVRiDc08UWXwe10W0UYpg01hchgACfdFeh
XyqzAidCAgAut5tOtgryUi8=
=FDYK
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Some ideas for FreeBSD

2008-02-08 Thread Jerry McAllister
On Fri, Feb 08, 2008 at 09:16:52AM -0800, [EMAIL PROTECTED] wrote:

 
 --- Jason C. Wells [EMAIL PROTECTED] wrote:
 
  Heiko Wundram (Beenic) wrote:
   Am Donnerstag, 7. Februar 2008 07:32:16 schrieb
  Jason C. Wells:
   Norberto Meijome wrote:
   But I agree with Wojciech..do you really want to
  use swap files?
   One could mount an md filesystem and then use
  that as swap.  That way
   you wouldn't need to use any disc space.  As a
  plus, the performance
   would be way better than disc.
   
   Ahem, sorry, that's just plain stupid. Either the
  md system is backed up by 
   RAM (in which case you don't need the swap anyway;
  why'd you want to access 
   RAM by putting it in a swap on an md in RAM?), or
  it's backed up by swap, in 
   which case you have a chicken and egg problem.
  
  Mmm, yes. That is quite a pickle.  But a chicken or
  an egg would still 
  be inferior to an md backed swap. :)
  
  Regards,
  Jason
  
  ___
  freebsd-questions@freebsd.org mailing list
 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
  
 
 Actually, you can have file backed swap files. I have
 done it. However, with more than one swap file, or a
 swap file and a swap partition on the same disk, there
 ends up being quite a bit of thrashing. This is due
 apparently to some interaction between having two
 swaps on the same disk but that is jut a guess, i dont
 know what the cause is. 
 
 The idea behind having swap files is that swap space
 can more easily be expanded and added on the fly. If
 your initial swap partition was not big enough it is
 more easy to more swap in another file. As well, a
 swap file that can grow and shrink, also would allow
 you to avoid having a lot of disk space consumed by
 unused swap, so he disk space is allocated when
 needed, or allow more space to easily be added if you
 find out you do not have enough. 
 
 With applications crashing because of swap partition
 running out, this would be an important feature, since
 more swap space can be allocated in a file which is
 easier to do than a partition.
 
 Swap is still important on systems with small amounts
 of RAM, FreeBSD should be able to run on some older
 hardware too and should not be like Windows where you
 have to have 2 GHZ 2 GB of ram to run it. dynamic swap
 space makes it more versatile which is a good thing
 

The question here is not whether to have swap, but to have md
as swap.   It seems like that would cause more problems with
speed and probably thrashing that just plain swap partitions
on disk.

Now, the abiliity to use a file as additional swap can be
important because it will allow you to add some swap in a pinch
without reconfiguring your disk or adding disk - which a larger
or additional swap partition would require.   

But, a swap file is not something you want to run with as a matter 
of course.  You want a swap partition.   Writing and reading a
swap partition is optimized for that in a way that writing to a 
file system cannot easily be optimized.

At least that's what my mom told me.

jerry
 
   
 
 Looking for last minute shopping deals?  
 Find them fast with Yahoo! Search.  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
 ___
 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]


portupgrade xorg-server fails

2008-02-08 Thread Alain G. Fabry
Hello,

I'm trying to portupgrade xorg-server but it crashes.

Running FreeBSD 6.2-RELEASE, and xorg-server-1.4_3,1

Initially I ran portupgrade -R xorg-server, it crashed, then I tried as 
explained in UPDATING 20070519

During the upgrade, I get the following error.

xvmc.c: In function `ProcXvMCGetDRInfo':
xvmc.c:574: error: syntax error before rep
xvmc.c:583: error: syntax error before '*' token
xvmc.c:584: error: `xvmcGetDRInfoReq' undeclared (first use in this function)
xvmc.c:584: error: (Each undeclared identifier is reported only once
xvmc.c:584: error: for each function it appears in.)
xvmc.c:587: error: `stuff' undeclared (first use in this function)
xvmc.c:595: error: `rep' undeclared (first use in this function)
xvmc.c:634: error: `xvmcGetDRInfoReply' undeclared (first use in this function)
xvmc.c: At top level:
xvmc.c:657: warning: excess elements in array initializer
xvmc.c:657: warning: (near initialization for `ProcXvMCVector')
*** Error code 1

Stop in /usr/ports/x11-servers/xorg-server/work/xorg-server-1.4/Xext.
*** Error code 1

Stop in /usr/ports/x11-servers/xorg-server/work/xorg-server-1.4.
*** Error code 1

Stop in /usr/ports/x11-servers/xorg-server.
*** Error code 1

Stop in /usr/ports/x11-servers/xorg-server.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.16695.13 
env UPGRADE_TOOL=portupgrade UPGRADE_PORT=xorg-server-1.4_3,1 
UPGRADE_PORT_VER=1.4_3,1 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! x11-servers/xorg-server (xorg-server-1.4_3,1) (compiler error)
---  Packages processed: 1 done, 13 ignored, 0 skipped and 1 failed



What do I need to do to upgrade xorg-server?

Thanks,

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


Re: Unable to mount partition with ntfs-3g

2008-02-08 Thread Dominic Fandrey

Kevin Oberman wrote:

Date: Fri, 08 Feb 2008 23:11:37 +0100
From: Dominic Fandrey [EMAIL PROTECTED]

Kevin Oberman wrote:

I would love to be able to mount my NTFS partition R/W, but the FreeBSD
NTFS support is read-only (or almost read-only), so I installed
fusefs-ntfs which I thought would allow this.

After installation (which also pulled in fusefs-kmod, fusefs-libs, and
libublio), I added fusefs_enable=yes to my rc.conf. Then, after
starting fusefs (which means loading the fuse kernel module), I tried:
# mount -t ntfs-3g /dev/ad0s1 /C
mount: /dev/ad0 : Operation not supported by device

I got the same message for a USB drive on /dev/da0.

Documentation on ntfs-3g is pretty limited. Did I miss something? I
really rather not convert my new USB disk to FAT32 if I don't have to.
mount only calls a couple of file systems in the old fashioned way. One of 
them is ntfs. What I did to be able to mount NTFS systems with mount -t 
(obligatory if you want to use fstab to mount), I did the following:


# mv /sbin/mount_ntfs /sbin/mount_ntfs.bak
# ln -s /usr/sbin/mount_ntfs-3g /sbin/mount_ntfs

This is one of my /etc/fstab entries
/dev/ntfs/2vault  /mnt/vault  ntfs  rw,late,gid=5,umask=113,dmask=002  0  0



Cool! This is exactly what I was looking for. Since mount_ntfs-3g was
installed, I assumed that it would work with nmount, but I guess not.

Thanks very much! I think that this will solve all of my ntfs issues for
a while.


Just remember that you have to recreate the link after you do an installworld.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unable to mount partition with ntfs-3g

2008-02-08 Thread Kevin Oberman
 Date: Fri, 08 Feb 2008 23:11:37 +0100
 From: Dominic Fandrey [EMAIL PROTECTED]
 
 Kevin Oberman wrote:
  I would love to be able to mount my NTFS partition R/W, but the FreeBSD
  NTFS support is read-only (or almost read-only), so I installed
  fusefs-ntfs which I thought would allow this.
  
  After installation (which also pulled in fusefs-kmod, fusefs-libs, and
  libublio), I added fusefs_enable=yes to my rc.conf. Then, after
  starting fusefs (which means loading the fuse kernel module), I tried:
  # mount -t ntfs-3g /dev/ad0s1 /C
  mount: /dev/ad0 : Operation not supported by device
  
  I got the same message for a USB drive on /dev/da0.
  
  Documentation on ntfs-3g is pretty limited. Did I miss something? I
  really rather not convert my new USB disk to FAT32 if I don't have to.
 
 mount only calls a couple of file systems in the old fashioned way. One of 
 them is ntfs. What I did to be able to mount NTFS systems with mount -t 
 (obligatory if you want to use fstab to mount), I did the following:
 
 # mv /sbin/mount_ntfs /sbin/mount_ntfs.bak
 # ln -s /usr/sbin/mount_ntfs-3g /sbin/mount_ntfs
 
 This is one of my /etc/fstab entries
 /dev/ntfs/2vault  /mnt/vault  ntfs  rw,late,gid=5,umask=113,dmask=002  0  0
 

Cool! This is exactly what I was looking for. Since mount_ntfs-3g was
installed, I assumed that it would work with nmount, but I guess not.

Thanks very much! I think that this will solve all of my ntfs issues for
a while.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751


pgpb229eSxRHL.pgp
Description: PGP signature


Re: Desktop Performance Tuning?

2008-02-08 Thread Bruce Cran

Dominic Fandrey wrote:

Bruce Cran wrote:

Wojciech Puchar wrote:

disabling SMP, but it didn't help.

There have been threads on the stable list about jerky  mouse
performance, which may be part of this, but I have really followed it
closely. I'm also wondering whether this might be due to some xorg or
other port change from late 2007 that I only noticed when I started
doing a lot of rebuilding under 7-stable.


does it lag when doing disk I/O or just any case?


I think it's disk I/O: even doing a cvsup makes the desktop start 
lagging on my Athlon XP UP system.


Does setting debug.vfscache=0 make any difference?



Setting debug.vfscache=0 doesn't seem to help.   The issue only seems to 
occur when I'm running the buildworld within a terminal in Xorg.  I 
think it may be a contention issue with the 'nvidia' driver since during 
certain phases of the buildworld I often see top saying something's 
waiting on a lock - and I've spotted nvidia0 waiting on Giant a few 
times.   I'll test using the nv driver instead and see if the problem 
still occurs.


--
Bruce

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


why does linux-base-f7 exist if the binary compatibility is to a kernel too old to run it? (and how to change that?)

2008-02-08 Thread Steve Franks
[EMAIL PROTECTED] /usr/ports/emulators/linux_base-f7]$ sudo make install clean
===  linux_base-f7-7 compat.linux.osrelease: 2.4.2 is not supported.
*** Error code 1

Stop in /usr/ports/emulators/linux_base-f7.

???

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


Re: Unable to mount partition with ntfs-3g

2008-02-08 Thread Kevin Oberman
 Date: Sat, 09 Feb 2008 00:19:26 +0100
 From: Dominic Fandrey [EMAIL PROTECTED]
 
 Kevin Oberman wrote:
  Date: Fri, 08 Feb 2008 23:11:37 +0100
  From: Dominic Fandrey [EMAIL PROTECTED]
 
  Kevin Oberman wrote:
  I would love to be able to mount my NTFS partition R/W, but the FreeBSD
  NTFS support is read-only (or almost read-only), so I installed
  fusefs-ntfs which I thought would allow this.
 
  After installation (which also pulled in fusefs-kmod, fusefs-libs, and
  libublio), I added fusefs_enable=yes to my rc.conf. Then, after
  starting fusefs (which means loading the fuse kernel module), I tried:
  # mount -t ntfs-3g /dev/ad0s1 /C
  mount: /dev/ad0 : Operation not supported by device
 
  I got the same message for a USB drive on /dev/da0.
 
  Documentation on ntfs-3g is pretty limited. Did I miss something? I
  really rather not convert my new USB disk to FAT32 if I don't have to.
  mount only calls a couple of file systems in the old fashioned way. One of 
  them is ntfs. What I did to be able to mount NTFS systems with mount -t 
  (obligatory if you want to use fstab to mount), I did the following:
 
  # mv /sbin/mount_ntfs /sbin/mount_ntfs.bak
  # ln -s /usr/sbin/mount_ntfs-3g /sbin/mount_ntfs
 
  This is one of my /etc/fstab entries
  /dev/ntfs/2vault  /mnt/vault  ntfs  rw,late,gid=5,umask=113,dmask=002  0  0
 
  
  Cool! This is exactly what I was looking for. Since mount_ntfs-3g was
  installed, I assumed that it would work with nmount, but I guess not.
  
  Thanks very much! I think that this will solve all of my ntfs issues for
  a while.
 
 Just remember that you have to recreate the link after you do an
 installworld.

Yes. I already have to do this for other modified stuff. (I install a
new world about every other week.)


Thanks again,
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751


pgpZhKwDi2uYg.pgp
Description: PGP signature


Re: OT: Whats wrong with gmail?

2008-02-08 Thread Modulok
 what is wrong with gmail?

A few interface annoyances, but perhaps nothing. It depends on what
you plan on doing with it. For me it's convenient. It's one less thing
I have to worry about.

 I just cannot bring myself to trust anyone else for email.  Running your
 own server on BSD or Linux is so bloody easy, if you're paranoid about
 email for archival, privacy, or other reasons, just run your own server.

You have already instilled trust in countless thousands. Is it a
problem? Maybe. It depends on how important one feels the
confidentiality of the information is. For Top Secret classified
documents, I would not use plain text gmail or any other plain-text
service. For online shopping accounts and participating in mailing
lists, I do.

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

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

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

What's wrong with gmail? It depends on who you ask.
-Modulok-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Some ideas for FreeBSD

2008-02-08 Thread Jason C. Wells
Oh good heavens.  How do you spell joke in geekish?  I spell it md 
backed swap.


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


RE: Please help in diagnosing these smartmon messages

2008-02-08 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Mel
 Sent: Thursday, February 07, 2008 2:29 PM
 To: freebsd-questions@freebsd.org
 Cc: Andrew Falanga
 Subject: Re: Please help in diagnosing these smartmon messages
 

 Since it's a church disk, you might have better luck with your 
 prayers then 
 most people.

I'd pray the disk is still in warranty!! ;-)

Ted

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


RE: brand-new DVD drives less reliable than crappy old player - fix?

2008-02-08 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Steve Franks
 Sent: Thursday, February 07, 2008 10:55 AM
 To: User Questions
 Subject: brand-new DVD drives less reliable than crappy old player -
 fix?
 
 
 I have a bunch of disks that will play fine in my laptop and TV, but
 not in my freebsd system with a new-ish NEC drive.  Figured it was the
 drive, so I got a new pioneer, same issue - scratch somewhere that
 causes no hiccup on other players makes it tank.  I can't even cp or
 rsync data off them, and these are only minor scratches.  Is there
 anything tunable, or ways  to keep rsync or cp going after an error?
 I get 100MB of the last GB file.  Most annoying.  I know you usually
 want cp to fail if there's read errors, but this is one instance where
 you'd like it to skip and keep going - I assume that's what my dvd
 player does.  These are not commercial disks, so I can't just go out
 and buy a new one, and I was too stupid to make backups, so I have a
 vested interest in a workaround.
 

The newer drives turn the disk faster, so of course there is less time
the laser light is shining on the spot where the data is, and if a
scratch has damaged that spot then optically the bit is not fully 1
way or fully the other, so the voltage out from the laser's eye is
going to be closer to the undefined range.  What is coming out
of the laser's eye is effectively a dirty square wave.  I think
the developers of the faster drives decided to reduce the sampling
window that they look for a logic high or a logic low, so they can
sample the bit closer to the center of the high or low, and also
since the sample time is lower, they make the circuit less tolerant
of bits that are a little less high or a little less low coming
out of the laser's eye.

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


RE: Some ideas for FreeBSD

2008-02-08 Thread Ted Mittelstaedt


 -Original Message-
 From: Wojciech Puchar [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 07, 2008 11:32 PM
 To: Ted Mittelstaedt
 Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
 Subject: RE: Some ideas for FreeBSD
 
 
  It is one thing to add support for a POSIX call into FreeBSD.
  That's fine.
 
  It's quite another to break a header or supply hacky 32-bit-only
  code in a library or some such just because Linux does the same
  brain-dead stuff and the Linux maintainers are too stubborn or
  stupid to fix Linux.
 
 don't forget that linux changed from being good unix OS to be windows 
 competitor. and it's competing well.
 

Ah, something to strive for! :-)

Reason # 1 to be happy with Linux:  It attracts all the morons who
would otherwise fuck up FreeBSD? 

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


Re: Some ideas for FreeBSD

2008-02-08 Thread Predrag Punosevac

Ted Mittelstaedt wrote:
  

-Original Message-
From: Wojciech Puchar [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 07, 2008 11:32 PM
To: Ted Mittelstaedt
Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
Subject: RE: Some ideas for FreeBSD




It is one thing to add support for a POSIX call into FreeBSD.
That's fine.

It's quite another to break a header or supply hacky 32-bit-only
code in a library or some such just because Linux does the same
brain-dead stuff and the Linux maintainers are too stubborn or
stupid to fix Linux.

  
don't forget that linux changed from being good unix OS to be windows 
competitor. and it's competing well.





Ah, something to strive for! :-)

Reason # 1 to be happy with Linux:  It attracts all the morons who
would otherwise fuck up FreeBSD? 


Ted
__

And I pray to stay that way ;-) .

Cheers,
Predrag

I do not know if it is because of the writers strike in Hollywood or 
because of the couple recent posts by Ted but I have more

laugh reading [EMAIL PROTECTED] than watching the Jay Leno show.

_
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: Some ideas for FreeBSD

2008-02-08 Thread Predrag Punosevac

Ted Mittelstaedt wrote:
  

-Original Message-
From: Wojciech Puchar [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 07, 2008 11:32 PM
To: Ted Mittelstaedt
Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
Subject: RE: Some ideas for FreeBSD




It is one thing to add support for a POSIX call into FreeBSD.
That's fine.

It's quite another to break a header or supply hacky 32-bit-only
code in a library or some such just because Linux does the same
brain-dead stuff and the Linux maintainers are too stubborn or
stupid to fix Linux.

  
don't forget that linux changed from being good unix OS to be windows 
competitor. and it's competing well.





Ah, something to strive for! :-)

Reason # 1 to be happy with Linux:  It attracts all the morons who
would otherwise fuck up FreeBSD? 


Ted
  

And I will pray to stay that way ;-)

Predrag

P. S. I do not know if it because of the writers strike in Hollywood or 
because of the last couple posts sent by Ted but
I definitely have more laugh reading massages at freebsd.org than 
watching the Jay Leno show.



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


Problems with WMP54G Wireless Adapter

2008-02-08 Thread Daniel Tate
Even though I am relatively new to FreeBSD I have been able to configure 
most everything flawlessly.
There is only one problem that has needed fixing and that is with my 
wireless adapter from Linksys that use the ral(4) driver.
I have tried using ifconfig, yet I get a response saying that ral 
doesn't exist even though in my kernel I have the appropriate driver.

Also when I try dmesg | grep ral0 nothing comes up.
After all of this I loaded the driver into my kernel using ndisgen(8) 
and I got a response saying that there was a binary error.

When I do pciconf -lv i get this:

[EMAIL PROTECTED]:2:0: class=0x028000 card=0x00551737 chip=0x03011814 rev= 0x00 
hdr=0x00


   vendor = 'Ralink Technology, Corp'
   class= network

I have searched through various forums and even other mail threads but I 
have found nothing of value.

If more information is needed let me know.

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


RAM disk size limit

2008-02-08 Thread Xinyu Dong
Hello:
RAM disk to root file system.
I would like to use in embedded FreeBSD, and the creation of a 64 MB memory
disk, and all normal, but 128 MB RAM disk at the time of always
automatically restart.
Loader in the configuration file, use or use md_image mfs_root?
How to resolve this problem, thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]