NIC Support

2009-11-11 Thread Jack Barnett


Is the RealTek RTL8112L PCIe gigabit LAN Controller support in FreeBSD 7.2?
I could not find this in the hardware notes.  Is it listed under another 
name?

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


Re: Cut/Paste with USB mouse inoperative

2009-11-11 Thread Carmel
On Tue, 10 Nov 2009 23:38:27 +0100
Polytropon Polytropon free...@edvax.de replied:

On Tue, 10 Nov 2009 17:13:12 -0500, Carmel carmel...@hotmail.com
wrote:
 'X' has nothing to do with it. It fails to work both in and out of
 'X'. With the old mouse it worked fine.

The moused program offers a diagnostics mode:

   # moused -f -d -p /dev/ums0

Well, the results of that test does not exactly exhilarate me.

# moused -f -d -p /dev/ums0
moused: unable to open /dev/ums0: Device busy

Maybe you can try this and see what really happens when you
press the buttons? The -i option is interesting, too.

 Way more trouble than it is worth. I might just go back to the old
 mouse. Strangely enough, the new mouse works perfectly under Windows
 so I know it is not broken.

If it does work there, but not in FreeBSD, it might have a
strangely constructed firmware which justifies the statement
that it is broken by design... :-)

A common problem in today's society. It reminds me of an old adage:

Just like with unexploded bombs, Blame is best dealt with by passing it
as quickly as possible to someone else.

-- 
Carmel
carmel...@hotmail.com

|===
|===
|===
|===
|

If everything on the road of life seems to
be coming your way, you are in the wrong lane.

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


Opencrypto patch/driver code upload

2009-11-11 Thread Brendan Kennedy
Hi All,

I've a patch to opencrypto and I have a crypto driver that I would
like to present for inclusion with the freebsd 7 release. Could you
give me some pointers on getting that done?
The opencrypto patch is relavent for FreeBSD 8 and 9 also...

Some questions for the driver release:
   Does it necessarily have to
compile if the harware API is not present? Our API is release with the
dev board...
   Is it still possible to have
new code added to FreeBSD 7, or is that now only accepting bug fixes?

Any help/URLs etc is greatly appreciated.

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


ssh-agent and ordering of keys

2009-11-11 Thread Vincent Hoffman
Hi all,
I've a bit of an annoying problem that hopefully someone
here has delt with before.  I have a large(ish) number of ssh keys as i
like to keep things nicely seperated, I also use longish passphrases. To
deal with long pass phrases I have started to use ssh-agent, which is
working nicely but since i have a large number of keys and ssh-agent
doesnt let you specify a particular key for a particular machine (I was
using host and IdentiyFile lines in ~/.ssh/config before) I'm starting
to hit a problem where I'm unable to log in to a machine as I'm hitting
the MaxAuthTries value in sshd_config.  I know i could just bung the
MaxAuthTries value up to 20 or so on all my servers but I dont really
want to, I'd rather a way of specifying which ssh key ssh-agent uses for
a specific host, (like i said it ignores the IdentiyFile lines in the
config file and ignores the -i switch to ssh itself.) Any ideas welcome.



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


Re: ssh-agent and ordering of keys

2009-11-11 Thread Matthias Apitz
El día Wednesday, November 11, 2009 a las 03:09:44PM +, Vincent Hoffman 
escribió:

 Hi all,
 I've a bit of an annoying problem that hopefully someone
 here has delt with before.  I have a large(ish) number of ssh keys as i
 like to keep things nicely seperated, I also use longish passphrases. To
 deal with long pass phrases I have started to use ssh-agent, which is
 working nicely but since i have a large number of keys and ssh-agent
 doesnt let you specify a particular key for a particular machine (I was
 using host and IdentiyFile lines in ~/.ssh/config before) I'm starting
 to hit a problem where I'm unable to log in to a machine as I'm hitting
 the MaxAuthTries value in sshd_config.  I know i could just bung the
 MaxAuthTries value up to 20 or so on all my servers but I dont really
 want to, I'd rather a way of specifying which ssh key ssh-agent uses for
 a specific host, (like i said it ignores the IdentiyFile lines in the
 config file and ignores the -i switch to ssh itself.) Any ideas welcome.

I have never used this, but you could start different ssh-agent(1) and
loading the key(s) you want to use to one or the other and let ssh(1)
ask the dedicated ssh-agent(1) for a given host by some shell wrapping
(i.e. mapping the -i filename to the correct ssh-agent(1) socket);

HIH

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: networking won't come back up until reboot after ISP outage

2009-11-11 Thread umage

On 9. 11. 2009 1:27, umage wrote:

 When the connection goes down and comes back up it will take 5 minutes
 before my FreeBSD gateway box checks the lease and decides if a 
renewal is
 in order. This is automatic. If I am sitting in front of my computer 
and I
 want to speed this up I issue /etc/rc.d/netif restart on the gateway 
and it
 will come up and be happy in about 10 seconds, rather than waiting 
out the 5

 minute time out.

In my case the router does get the renewed ip, as I described earlier. 
However, even after waiting 8+ hours, the system will not recover from 
the outage properly (reason unknown). That's what this thread is all 
about.
When I started the system today, I found that again it had no 
connectivity. I did some checks and then found that 'natd' was not 
running. But this is not happening that frequently, and seems to only 
have started after the last system update. Could be some sort of race 
condition. Is there a logfile that natd writes to, so that I may 
investigate the reason why it is exiting?

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


Re: ssh-agent and ordering of keys

2009-11-11 Thread krad
2009/11/11 Matthias Apitz g...@unixarea.de

 El día Wednesday, November 11, 2009 a las 03:09:44PM +, Vincent Hoffman
 escribió:

  Hi all,
  I've a bit of an annoying problem that hopefully someone
  here has delt with before.  I have a large(ish) number of ssh keys as i
  like to keep things nicely seperated, I also use longish passphrases. To
  deal with long pass phrases I have started to use ssh-agent, which is
  working nicely but since i have a large number of keys and ssh-agent
  doesnt let you specify a particular key for a particular machine (I was
  using host and IdentiyFile lines in ~/.ssh/config before) I'm starting
  to hit a problem where I'm unable to log in to a machine as I'm hitting
  the MaxAuthTries value in sshd_config.  I know i could just bung the
  MaxAuthTries value up to 20 or so on all my servers but I dont really
  want to, I'd rather a way of specifying which ssh key ssh-agent uses for
  a specific host, (like i said it ignores the IdentiyFile lines in the
  config file and ignores the -i switch to ssh itself.) Any ideas welcome.

 I have never used this, but you could start different ssh-agent(1) and
 loading the key(s) you want to use to one or the other and let ssh(1)
 ask the dedicated ssh-agent(1) for a given host by some shell wrapping
 (i.e. mapping the -i filename to the correct ssh-agent(1) socket);

 HIH

matthias
 --
 Matthias Apitz
 t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
 e g...@unixarea.de - w http://www.unixarea.de/
 Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


Im not sure why you have to use loads of different keys other than one of
each type (rsa1, dsa etc). After all if your storing all the private keys in
the same place then its not really more secure
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Ruby Enterprise Edition 1.8.7 Apache / Passenger on FreeBSD 7.2

2009-11-11 Thread Konstantinos Pachnis
This is happening because in freebsd the stack protector is enabled by default.
When you build ruby enterprise edition set to the CFLAGS / CXXFLAGS the 
-fno-stack-protector parameter.

From a security perspective, I don't think that this is the best solution. 

On Nov 10, 2009, at 8:45 PM, Konstantinos Pachnis wrote:

 Hello,
 
 I was trying to use Apache/Passenger with Ruby Enterprise Edition 1.8.7 (both 
 versions) on a FreeBSD 7.2 (i386 and x86_64), and Apache reports the 
 following error:
 
 Apache/2.2.13 (FreeBSD) mod_ssl/2.2.13 OpenSSL/0.9.8e DAV/2 PHP/5.2.11 with 
 Suhosin-Patch Phusion_Passenger/2.2.5 configured -- resuming normal operations
 Fatal error 'Cannot allocate red zone for initial thread' at line 384 in file 
 /usr/src/lib/libthr/thread/thr_init.c (errno = 12)
 
 Has anyone come across to that ?
 
 Thanks in advance,
 Konstantinos

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


cannot boot freebsd

2009-11-11 Thread Jesús Abidan
Hi there, i have a problem here, i installed windows in mi box and i left a
partition for freebsd, i finished install of freebsd and installed the boot
mgr of freebsd but when i reboot only windows boots with f1 pressed? how can
I make the system boots both?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cannot boot freebsd

2009-11-11 Thread Jerry McAllister
On Wed, Nov 11, 2009 at 11:02:35AM -0600, Jesús Abidan wrote:

 Hi there, i have a problem here, i installed windows in mi box and i left a
 partition for freebsd, i finished install of freebsd and installed the boot
 mgr of freebsd but when i reboot only windows boots with f1 pressed? how can
 I make the system boots both?

Not sure all of what you see, but if you literally mean that when
you press F1 it always boots MS-Win, that is probably correct.
You will have to press F2 or maybe F3 (depending in which slice you
installed FreeBSD) to boot FreeBSD.

I suspect you mean something a little different, but if so, 
please elaborate.

jerry


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


Re: cannot boot freebsd

2009-11-11 Thread Neal Hogan
On Wed, Nov 11, 2009 at 11:02 AM, Jesús Abidan jabi...@gmail.com wrote:
 Hi there, i have a problem here, i installed windows in mi box and i left a
 partition for freebsd, i finished install of freebsd and installed the boot
 mgr of freebsd but when i reboot only windows boots with f1 pressed? how can
 I make the system boots both?

What do you mean make the system boot both? At the same time? That's
not going to happen.

Isn't F1 the option for dos/windows? If so, consider your other
options . . . one should be FreeBSD (assuming you did the install
correctly)

http://www.freebsd.org/doc/en/books/handbook/boot-blocks.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


7.2-STABLE X mouse keyboard issues

2009-11-11 Thread stan
I just built a brand new 7.2 STABLE machine, and the xorg package. startx
brings up a nice screen, but neither the mouse, nor the keyboard (both USB)
function in X.

I have not created a /etx/X11/ config file yet. Do I need to do so? If so,
what;s the best way?

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cannot boot freebsd

2009-11-11 Thread Jerry McAllister
On Wed, Nov 11, 2009 at 12:27:13PM -0600, Jesús Abidan wrote:

 i pressed f2 for freebsd and nothing happens... i pressed f1 for windows.
 
 I install freebsd on the first partition and now it occurs the viceversa, i
 cannot boot windows, does it have to be something with the order of the
 partitions? i mean primary, logical o something like this?

MS-Win should optimally be installed on the first primary partition.
This is called 'slice 1' by FreeBSD.   Then FreeBSD should be installed
on slice 2.

If the slices are not to your liking, then you may need to use some 
utility such as Parition Magic 7 (I had trouble with PM-8) or gparted 
to define the primary partitions/slices before you do any of the installs.
But, still, MS-Win should be installed first and  go in the first slice
and FreeBSD later in another slice.  That is because MS-Win doesn't play 
very well if installed later and/or in a different slice.

When you install FreeBSD (after the MS-Win install) select installing
the FreeBSD MBR (not none or default minimum).It should be smart
enough to find both.

I have heard some complaints about MS-Vista and having to do some
other monkeying around to get an MBR to handle it correctly, but I
don't know details and I do not (lucky me) have any Vista machines
to joust with.

jerry


 
 2009/11/11 Jerry McAllister jerr...@msu.edu
 
  On Wed, Nov 11, 2009 at 11:02:35AM -0600, Jesús Abidan wrote:
 
   Hi there, i have a problem here, i installed windows in mi box and i left
  a
   partition for freebsd, i finished install of freebsd and installed the
  boot
   mgr of freebsd but when i reboot only windows boots with f1 pressed? how
  can
   I make the system boots both?
 
  Not sure all of what you see, but if you literally mean that when
  you press F1 it always boots MS-Win, that is probably correct.
  You will have to press F2 or maybe F3 (depending in which slice you
  installed FreeBSD) to boot FreeBSD.
 
  I suspect you mean something a little different, but if so,
  please elaborate.
 
  jerry
 
 
   ___
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to 
  freebsd-questions-unsubscr...@freebsd.org
 

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


advice on setting up new site

2009-11-11 Thread PJ
Hi guys,
I appreciate the help you have given me in the past and present... I am
not competent to handle the project we are emarking on, so let me ask
(offer ?) it here:
We're about to start new enterprise in the food service sector (I hate
the terms industry for anything related to food) which is a totally new
concept - can't reveal at the moment. And we are going to need someone
to implement the site.
So here's what I need to find out:
1. We're looking for someone who would be interested in working on it
and could handle all aspects on FreeBSD (I want to avoid MS and
especially anything not open source - requires programming of whatever
works best -- important: database (probably mysql - seems to be most
popular and our host uses it); will need flash or lots of images 
eventually instructional videos (flash ? or ?)
will need gps tracking of equipment (vehicles); inventory tracking on
daily/weekly basis; invoicing; AR/AP and CC management.
There's no reason why the work can't be done over the Internet... I've
done this before...
Let me know if you're interested and we can discuss methods of working
and payment... etc.
2. I would appreciate some suggestions about Unix programs that could be
applicable to meet our needs.
I look forward to hearing from from you :-)
Questions are welcome ... so are investors ;-)
PJ

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


FFTW + jna + java

2009-11-11 Thread Frank Staals

Hey everyone,

I'm trying to run a java application which uses JNA to use the native 
FFTW libraries. The application was given as a netbeans project which 
was configured for use in Windows. I changed the paths to the windows 
libraries to the FreeBSD versions. However when I try to start the 
application from within netbeans it crashes with the following error 
message:


/libexec/ld-elf.so.1: /usr/local/lib/librfftw.so: Undefined symbol 
fftwnd_create_plan_aux


Has anyone an idea how to fix this ? I'm running FreeBSD 8.0-RC1 on 
amd64 with jdk16, fftw, and jogl installed from ports. I downloaded the 
jna.jar from the jna website ;


FreeBSD Rena.FStaals.LAN 8.0-RC1 FreeBSD 8.0-RC1 #0: Mon Nov  2 13:45:35 
CET 2009 r...@rena.fstaals.lan:/usr/obj/usr/src/sys/RENAKERNEL  amd64


fr...@rena# uname -a
FreeBSD Rena.FStaals.LAN 8.0-RC1 FreeBSD 8.0-RC1 #0: Mon Nov  2 13:45:35 
CET 2009 r...@rena.fstaals.lan:/usr/obj/usr/src/sys/RENAKERNEL  amd64


fr...@rena# pkg_info -Ex jdk
diablo-jdk-1.6.0.07.02_6
jdk-1.6.0.3p4_12

fr...@rena# pkg_info -Ex fftw
fftw-2.1.5_6
fftw3-3.2.2_1

fr...@rena# pkg_info -Ex jogl
jogl-1.1.1

jna.jar version: 3.2.3 downloaded from https://jna.dev.java.net/

The VM-arguments when starting the application :
-Djna.library.path=/usr/local/lib -Djava.libary.path=/usr/local/lib

Anyone an idea what could be causing this, and/or how to fix it ?

--

- Frank


--

- Frank

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


Re: 7.2-STABLE X mouse keyboard issues

2009-11-11 Thread Tim Judd
On 11/11/09, stan st...@panix.com wrote:
 I just built a brand new 7.2 STABLE machine, and the xorg package. startx
 brings up a nice screen, but neither the mouse, nor the keyboard (both USB)
 function in X.

 I have not created a /etx/X11/ config file yet. Do I need to do so? If so,
 what;s the best way?

did you enable hald, and dbus?  did you start them?

did you remove hal support from xorg?


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


Re: cannot boot freebsd

2009-11-11 Thread Jerry McAllister
On Wed, Nov 11, 2009 at 01:22:58PM -0600, Jesús Abidan wrote:

 ok. the slices in freebsd are little tricky, i will check my installation
 and send some feedback later.


??  FreeBSD slices are pretty straight forward.   They are just the
name of the 4 primary divisions of a disk - limited to 4 by BIOS.
MS just calls them primary partitions instead of slices.

The major difference is how they might be subdivided.  MS does what it 
calls logical partitions.  FreeBSD subdivisions are just called partitions.

The fdisk(8) utility creates slices (or primary partitions in MS, though the
FreeBSD fdisk is not very conversant with some of the new MS types so you
may be better off using something else to create primary partitions/slices
if other OSen are being accomodated).   Slices (or primary partitions) are
identified by numbers 1..4.

The bsdlabel(8) utility in FreeBSD is what subdivides a slice in to 
partitions.  It used to be that it was limited to 7 real partitions 
identified with letters a..h with the letter 'c' reserved to describe 
the whole slice and not usable as a real partition.  Partition 'a' is 
normally root mounted as '/' and partition 'b' is used as swap.  These 
two (a  b) are conventions and not enforced, except that some software 
may make these assumptions.My understanding is that the newest
versions of FreeBSD (8.0) modify or remove the limit and you can have
letters above 'h' and thus more subdivisions in a slice, but I haven't
tried that yet.
 
In FreeBSD, to create a filesystem from a partition, you run newfs(8) on it.

jerry

 
 Thanks a lot.
 
 2009/11/11 Jerry McAllister jerr...@msu.edu
 
  On Wed, Nov 11, 2009 at 12:27:13PM -0600, Jesús Abidan wrote:
 
   i pressed f2 for freebsd and nothing happens... i pressed f1 for windows.
  
   I install freebsd on the first partition and now it occurs the viceversa,
  i
   cannot boot windows, does it have to be something with the order of the
   partitions? i mean primary, logical o something like this?
 
  MS-Win should optimally be installed on the first primary partition.
  This is called 'slice 1' by FreeBSD.   Then FreeBSD should be installed
  on slice 2.
 
  If the slices are not to your liking, then you may need to use some
  utility such as Parition Magic 7 (I had trouble with PM-8) or gparted
  to define the primary partitions/slices before you do any of the installs.
  But, still, MS-Win should be installed first and  go in the first slice
  and FreeBSD later in another slice.  That is because MS-Win doesn't play
  very well if installed later and/or in a different slice.
 
  When you install FreeBSD (after the MS-Win install) select installing
  the FreeBSD MBR (not none or default minimum).It should be smart
  enough to find both.
 
  I have heard some complaints about MS-Vista and having to do some
  other monkeying around to get an MBR to handle it correctly, but I
  don't know details and I do not (lucky me) have any Vista machines
  to joust with.
 
  jerry
 
 
  
   2009/11/11 Jerry McAllister jerr...@msu.edu
  
On Wed, Nov 11, 2009 at 11:02:35AM -0600, Jesús Abidan wrote:
   
 Hi there, i have a problem here, i installed windows in mi box and i
  left
a
 partition for freebsd, i finished install of freebsd and installed
  the
boot
 mgr of freebsd but when i reboot only windows boots with f1 pressed?
  how
can
 I make the system boots both?
   
Not sure all of what you see, but if you literally mean that when
you press F1 it always boots MS-Win, that is probably correct.
You will have to press F2 or maybe F3 (depending in which slice you
installed FreeBSD) to boot FreeBSD.
   
I suspect you mean something a little different, but if so,
please elaborate.
   
jerry
   
   
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org
   
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FFTW + jna + java

2009-11-11 Thread Dan Nelson
In the last episode (Nov 11), Frank Staals said:
 
 I'm trying to run a java application which uses JNA to use the native FFTW
 libraries.  The application was given as a netbeans project which was
 configured for use in Windows.  I changed the paths to the windows
 libraries to the FreeBSD versions.  However when I try to start the
 application from within netbeans it crashes with the following error
 message:
 
 /libexec/ld-elf.so.1: /usr/local/lib/librfftw.so: Undefined symbol 
 fftwnd_create_plan_aux

That symbol is defined in libfftw.so; it looks like the librfftw.so builder
forgot to add a link dependency to fftw (if you run ldd
/usr/local/lib/librfftw.so, you can see there are dependencies on libc and
libm, but not fftw).

Depending on how jna access shared libraries, you might be able to work
around it by having jna load the fftw library before rfftw.

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


Problems with FreeBSD assembly

2009-11-11 Thread David Jackson
I am having great difficulty running a very simple assembler program on 
FreeBSD on x86 in my efforts to learn some assembly programming on 
FreeBSD.  I have tried to compile the following with nasm, however i get 
nothing in response when I attempt to run this program:


   section .data
   hello   db  'Hello, World!', 0xa
   hbytes  equ $ - hello

   section .text
   global  _start
   _start:
   pushdword hbytes
   pushdword hello
   pushdword 1
   mov eax,0x4
   int 0x80
   add esp,12

   pushdword 0
   mov eax,0x1
   int 0x80

nasm -f elf -o hello1s.o hello1.s
ld -s -o hello1s hello1s.o

./hello1s prints nothing.

What is wrong here? It should print hello world.
Thanks in advance for   your help, it is greatly appreciated.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: networking won't come back up until reboot after ISP outage

2009-11-11 Thread Michael Powell
umage wrote:

[snip]
 In my case the router does get the renewed ip, as I described earlier.
 However, even after waiting 8+ hours, the system will not recover from
 the outage properly (reason unknown). That's what this thread is all
 about.
 When I started the system today, I found that again it had no
 connectivity. I did some checks and then found that 'natd' was not
 running. But this is not happening that frequently, and seems to only
 have started after the last system update. Could be some sort of race
 condition. Is there a logfile that natd writes to, so that I may
 investigate the reason why it is exiting?

My first gut instinct about your problem was to blame dhclient first. But no 
NATD would definitely be a problem. I am assuming we are talking about IPFW 
and NATD here, and it has been many years since I've used it. I migrated to 
IPFILTER and then on to PF quite some time ago.

Most logging related to IPFW is already present, but IIRC to log NATD you 
need to turn it on, and possibly configure it in syslog.conf should you 
desire the output somewhere other than /var/log/alias.log.

Keep in mind there are two ways to pass options. You can use something like 
natd_flags=-l in /etc/rc.conf. Man natd will provide a list. The second 
method is to place the options in a file such as natd.conf and pull them in 
like natd_flags=-f /etc/natd.conf.

I looked in my notes and here is a snippet from an old /etc/rc.conf:

natd_enable=YES
natd_interface=ppp0
natd_flags=-f /etc/natd.conf

My /etc/natd.conf:

interface ppp0
use_sockets yes
same_ports yes
dynamic yes

You could add a 'log yes' line here; it does the same as the -l described 
above. Note that you might need the 'dynamic yes' switch for an interface 
that changes. In my case I was using it for a ppp dial-up connection, change 
interface as needed.

Sounds like you are narrowing down the culprit(s). Also note that it could 
possibly be a timing issue related to the order things start up. If the NATD 
is attempting to start before the interface has come up it will die. 
Shouldn't happen, but...   YMMV

-Mike
  

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


Problems with freebsd assembly

2009-11-11 Thread David Jackson
I am having great difficulty running a very simple assembler program on 
FreeBSD on x86 in my efforts to learn some assembly programming on 
FreeBSD.  I have tried to compile the following with nasm, however i get 
nothing in response when I attempt to run this program:


  section .data
  hello   db  'Hello, World!', 0xa
  hbytes  equ $ - hello

  section .text
  global  _start
  _start:
  pushdword hbytes
  pushdword hello
  pushdword 1
  mov eax,0x4
  int 0x80
  add esp,12

  pushdword 0
  mov eax,0x1
  int 0x80

nasm -f elf -o hello1s.o hello1.s
ld -s -o hello1s hello1s.o

./hello1s prints nothing.

What is wrong here? It should print hello world.
Thanks in advance for   your help, it is greatly appreciated.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Can I prevent freebsd-update from installing kernel debug files

2009-11-11 Thread Jason Fried
I have a fairly old install and not much room on my ROOT is there a way to
prevent freebsd-update from installing .symbols files.

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


Re: cannot boot freebsd

2009-11-11 Thread Chris Rees
2009/11/11 Jerry McAllister jerr...@msu.edu wrote:
snip

 That is because MS-Win doesn't play
 very well if installed later and/or in a different slice.

Windows behaves fine for me whatever slice it's installed in.

What IS important is that it's installed first, as you said before.
You can choose it to go wherever you like.

By the way, please don't say win to refer to Windows; as RMS has said many times

'[If] you call Windows a win, you are praising it.  If you don't
want to praise Windows, it's better not to call it a win.' [1]


If you must abbreviate it, try w32, or leave off MS- and just write Windows

[1] 
http://markmail.org/message/ncyme3djyujyre6u#query:stallman%20windows%20don%27t%20call%20win32+page:1+mid:ncyme3djyujyre6u+state:results

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problems with FreeBSD assembly

2009-11-11 Thread Mihai Donțu
On Wednesday 11 November 2009 21:43:21 David Jackson wrote:
 I am having great difficulty running a very simple assembler program on
 FreeBSD on x86 in my efforts to learn some assembly programming on
 FreeBSD.  I have tried to compile the following with nasm, however i get
 nothing in response when I attempt to run this program:
 
 section .data
 hello   db  'Hello, World!', 0xa
 hbytes  equ $ - hello
 
 section .text
 global  _start
 _start:
 pushdword hbytes
 pushdword hello
 pushdword 1
 mov eax,0x4
 int 0x80
 add esp,12
 
 pushdword 0
 mov eax,0x1
 int 0x80
 
 nasm -f elf -o hello1s.o hello1.s
 ld -s -o hello1s hello1s.o
 
 ./hello1s prints nothing.
 

I don't think the kernel is the one that initializes the 0, 1 and 2 file 
descriptors (stdin, stdout and stderr). I think you have to open them 
yourself. I will know for sure when my nasm port finishes installing. :)

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


Re: 7.2-STABLE X mouse keyboard issues

2009-11-11 Thread herbert langhans
This can be the notorious HAL. If you dont need it for another reason you may 
compile x11-server again, but switch the hal-support off. Should work well 
then..

Cheers
herb langhans


On Wed, Nov 11, 2009 at 12:25:01PM -0500, stan wrote:
 I just built a brand new 7.2 STABLE machine, and the xorg package. startx
 brings up a nice screen, but neither the mouse, nor the keyboard (both USB)
 function in X.
 
 I have not created a /etx/X11/ config file yet. Do I need to do so? If so,
 what;s the best way?
 
 -- 
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
 A: Top-posting.
 Q: What is the most annoying thing in e-mail?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

-- 
sprachtraining langhans
herbert langhans, warschau
http://www.langhans.com.pl
herbert dot raimund at gmx dot net
+0048 603 341 441

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


atom based servers

2009-11-11 Thread Brian Whalen
I see supermicro and potentially others have atom servers available, 
anyone tried these on freebsd with success?


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


Re: 7.2-STABLE X mouse keyboard issues

2009-11-11 Thread Enno Davids
On Thu, Nov 12, 2009 at 4:25 AM, stan st...@panix.com wrote:

 I just built a brand new 7.2 STABLE machine, and the xorg package. startx
 brings up a nice screen, but neither the mouse, nor the keyboard (both USB)
 function in X.

 I have not created a /etx/X11/ config file yet. Do I need to do so? If so,
 what;s the best way?


This may be the same problem I ran into 2 weeks ago.

The latest builds of X have changed a few defaults. Notably, the man page
for xorg.conf now suggests this.

 Option AllowEmptyInput boolean
   If enabled, don't add the standard keyboard and  mouse
drivers,
   if  there  are  no input devices in the config file.
Enabled by
   default if AutoAddDevices and AutoEnableDevices is enabled,
oth-
   erwise  disabled.   If  AllowEmptyInput is on, devices using
the
   kbd, mouse or vmmouse driver are ignored.

So by default, it now doesn't add input devices. I found that building a
vestigal xorg.conf so I could change that back to no got me my input
devices back.

You may also want to change the DontZap option to get back the Ctrl-Alt-BS
key sequence  to exit the X server.


Enno


--
Enno Davids 03 9583 5474   040 999 2981
enno.dav...@metva.com.au
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


zfs raidz2 marked as UNAVAIL even though only one vdev is missing?

2009-11-11 Thread Steven Schlansker
Hello,
This morning I found that one of my disks was going bad,
so I thought I would replace it (using zpool replace) with
a new disk.  This worked fine, and it was about 1/3 of the way through.
Then, as I was moving things around, I accidentally jostled some of
the cables.  This of course made the system extremely unhappy
and eventually resulted in a kernel panic.
Then when I tried to bring the system back up, it reported the pool
as FAULTED due to missing devices.  Figuring that it just needed
to re-discover the devices and considering that every zpool / 
zfs command was unavailable, I decided to export and re-import
the pool.  However, now the pool is not importable!

The status shows (typed since no SSH access):
pool: universe
id: (uuid)
state: UNAVAIL
action: The pool cannot be imported due to damaged devices or data
config:
universe UNAVAIL insufficient replicas
  raidz2 UNAVAIL corrupted data
replacing DEGRADED
  (uuid) UNAVAIL cannot open
  ad16   ONLINE
ad10  ONLINE
ad8 ONLINE
... five more drives, all ONLINE

To my eye, there should be no reason it can't import.  The drives are all 
marked ONLINE except for the one I know failed.

I can't zpool status -v to see *what* is corrupted because I can't import.
So here I am, stuck, unable to import.  Any suggestions as to how I can recover 
from this situation?

Any way to tell what is corrupted so I can maybe intentionally fail that disk 
and allow a scrub to recreate it?

Thanks for any advice,
Steven Schlansker___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


zfs raidz2 marked as UNAVAIL even though only one vdev is missing?

2009-11-11 Thread Steven Schlansker
Hello,
This morning I found that one of my disks was going bad,
so I thought I would replace it (using zpool replace) with
a new disk.  This worked fine, and it was about 1/3 of the way through.
Then, as I was moving things around, I accidentally jostled some of
the cables.  This of course made the system extremely unhappy
and eventually resulted in a kernel panic.
Then when I tried to bring the system back up, it reported the pool
as FAULTED due to missing devices.  Figuring that it just needed
to re-discover the devices and considering that every zpool /
zfs command was unavailable, I decided to export and re-import
the pool.  However, now the pool is not importable!

The status shows (typed since no SSH access):
pool: universe
id: (uuid)
state: UNAVAIL
action: The pool cannot be imported due to damaged devices or data
config:
universe UNAVAIL insufficient replicas
 raidz2 UNAVAIL corrupted data
   replacing DEGRADED
 (uuid) UNAVAIL cannot open
 ad16   ONLINE
   ad10  ONLINE
   ad8 ONLINE
   ... five more drives, all ONLINE

To my eye, there should be no reason it can't import.  The drives are all 
marked ONLINE except for the one I know failed.

I can't zpool status -v to see *what* is corrupted because I can't import.
So here I am, stuck, unable to import.  Any suggestions as to how I can recover 
from this situation?

Any way to tell what is corrupted so I can maybe intentionally fail that disk 
and allow a scrub to recreate it?

Thanks for any advice,
Steven Schlansker___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: cannot boot freebsd

2009-11-11 Thread Warren Block

On Wed, 11 Nov 2009, Jerry McAllister wrote:


I have heard some complaints about MS-Vista and having to do some
other monkeying around to get an MBR to handle it correctly, but I
don't know details and I do not (lucky me) have any Vista machines
to joust with.


EasyBCD from neosmart.net is an easy and free way to do this.  Install 
Vista, install FreeBSD in another slice/primary partition but leave the 
MBR alone, then install and use EasyBCD from Vista to set booting 
options.  On boot, the machine shows a menu similar to but fancier than 
FreeBSD's boot0.


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


Re: 7.2-STABLE X mouse keyboard issues

2009-11-11 Thread Warren Block

On Wed, 11 Nov 2009, stan wrote:


I just built a brand new 7.2 STABLE machine, and the xorg package. startx
brings up a nice screen, but neither the mouse, nor the keyboard (both USB)
function in X.


The Handbook has an up-to-date section on xorg configuration:

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


I have not created a /etx/X11/ config file yet. Do I need to do so?


With dbus and hal enabled, and one monitor, maybe not.  Try it.


If so, what;s the best way?


Copy the previous xorg.conf, edit to take advantage of new xorg features 
or changes.  You can use X -configure, but the only section that it does 
well is the Device section with all the commented options.


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


Re: Problems with FreeBSD assembly

2009-11-11 Thread Charlie Kester

On Wed 11 Nov 2009 at 11:43:21 PST David Jackson wrote:
I am having great difficulty running a very simple assembler program 
on FreeBSD on x86 in my efforts to learn some assembly programming on 
FreeBSD.  I have tried to compile the following with nasm, however i 
get nothing in response when I attempt to run this program:


  section .data
  hello   db  'Hello, World!', 0xa
  hbytes  equ $ - hello

  section .text
  global  _start
  _start:
  pushdword hbytes
  pushdword hello
  pushdword 1
  mov eax,0x4
  int 0x80
  add esp,12

  pushdword 0
  mov eax,0x1
  int 0x80

nasm -f elf -o hello1s.o hello1.s
ld -s -o hello1s hello1s.o

./hello1s prints nothing.

What is wrong here? It should print hello world.  Thanks in advance
for   your help, it is greatly appreciated.


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

You've seen this part of the handbook, yes?

In particular:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x86-system-calls.html

Calling your attention to the example code shown just before section 11.3.2, which shows 
how to open a file:


open:
pushdword mode
pushdword flags
pushdword path
mov eax, 5
pusheax ; Or any other dword
int 80h
add esp, byte 16

Notice that the system call number (or any other dword) should also be
pushed onto the stack before the int 80h.

So try this:

pushdword hbytes
pushdword hello
pushdword 1 ; stdout
mov eax,0x4
pusheax ; or any other dword
int 0x80
add esp,16  ; don't forget to account for the extra 
dword!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problems with FreeBSD assembly

2009-11-11 Thread Charlie Kester

On Wed 11 Nov 2009 at 17:32:41 PST Charlie Kester wrote:

One more thing:


Notice that the system call number (or any other dword) should also be
pushed onto the stack before the int 80h.


The reason for this is given at the top of the page:

   although the kernel is accessed using int 80h, it is assumed the
   program will call a function that issues int 80h, rather than issuing
   int 80h directly.

So the extra dword pushed onto the stack takes the place of the return
address from the function the kernel expects to have been called.   


And since you're not actually using as a return address, it doesn't
matter what value it actually has.  The kernel doesn't use it for
anything; it just expects it to be there in a properly arranged stack
frame.

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


RE: atom based servers

2009-11-11 Thread David Rawling
-Original Message-
From: Brian Whalen
Sent: Thu 12/11/2009 9:26 AM

I see supermicro and potentially others have atom servers available, 
anyone tried these on freebsd with success?

Brian

Hi Brian

Indeed, I have a FreeBSD 8.0RC1 system running as my primary time
server for the home network. Since it's an Atom 330, it fully
supports 64-bit mode (an opportunity I have grasped with both hands).

The board I happen to be using is an Intel DG945GCLF2 - a clone
board with just 1 DIMM slot and two SATA ports. Everything I need
to have supported Just Worked out of the box.

The server itself is running at a very low load level:

timeserver ~ 15 uptime
 1:00PM  up 6 days, 12:38, 1 user, load averages: 0.00, 0.00, 0.00

I can provide the output of most any other commands if you'd like
to see anything specific. I rather suspect that the Supermicro and
other server-class Atoms will still be using the Intel 945 or
similar chipsets.

Dave.
--
David Rawling
PD Consulting And Security
Email: d...@pdconsec.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org