RE: bash while read question

2010-05-06 Thread Evuraan
2010/5/5 CyberLeo Kitsana cyber...@cyberleo.net:
 On 05/05/2010 08:25 PM, Evuraan wrote:
 I cant figure out why the variable in in loop2 does not hike to +1?
 (its a friday, i am dazed, I admit. but this should not be a mystery!)
 any help would be much appreciated.
 snip
 $ cat loop2
 #! /bin/bash

 date  /tmp/somefile
 b=1
 cat /tmp/somefile | while read blah; do
 let b=(b+1)
 done
 echo variable is $b

 This particular syntax executes the 'while' block in a subshell. The
 variables set or altered in the subshell are never propagated back up to
 the parent shell.

duh, i get it now, anytime stuff is piped , a subshell is evoked:

http://tldp.org/LDP/abs/html/subshells.html says,

snip
Redirecting I/O to a subshell uses the | pipe operator, as in ls -al
| (command).
/snip

thanks for the reset..!

 --
 Fuzzy love,
 -CyberLeo


___
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


what does kernel option UWX_TRACE_ENABLE do?

2010-05-06 Thread Anton Shterenlikht
What does kernel option UWX_TRACE_ENABLE do?

I did a quick search on the net, but no help.

many thanks
anton


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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: what does kernel option UWX_TRACE_ENABLE do?

2010-05-06 Thread Anton Yuzhaninov
On Thu, 6 May 2010 10:51:59 +0100, Anton Shterenlikht wrote:
AS What does kernel option UWX_TRACE_ENABLE do?
AS 
AS I did a quick search on the net, but no help.
AS 

from sys/ia64/conf/NOTES

# Build the unwinder with tracing support. This option is used to debug the
# unwinder itself and the glue around it.

-- 
WBR,
 Anton Yuzhaninov

___
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: User cpu time VS system cpu time

2010-05-06 Thread cronfy
Hello,

 I want to understand difference between user CPU time and system CPU
 time in system accounting.
 But keep in mind that kernel time is a broad category - while IO time in
 itself does not count as CPU time, file system operations for example do,
 because they really can be CPU intensive.

Ivan, thanks for the great explanation.

I think that I can measure user filesystem usage with sa - it reports
number of IO operations per user/command. In which other cases kernel
time is used instead of user time for a process? I do not mean all of
them - just that usually occur in practice.

I've noticed that there are moments when system load in top for system
time is very high (60-80% while user load is 15-25%, this produces
very high LA also). All processes that were run at this time show high
kernel time usage, although they usually do not. System is getting
back to normal after Apache restart (I think this is related to Apache
shared memory somehow, but not sure).

This makes me suspect that system time in sa can not be relied on
while measuring user system usage, because it notably varies under
some circumstances for same operations. Am I wrong?


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


LDAP and LDAPS on the same server ?

2010-05-06 Thread Frank Bonnet

Hello

I actually have an Openldap directory server that runs on a FreeBSD box
at 8.0-RELEASE amd64

It runs nicely but I want to add LDAPS service on the SAME server.

Is it possible ? I have generated

cert.crt
cert.csr
cert.key

as instructed in the FreeBSD howto but when I add the following
lines in slapd.conf file it fails to restart

TLSCACertificateFile  /usr/local/etc/openldap/ssl/cert.crt
TLSCertificateFile/usr/local/etc/openldap/ssl/cert.crt
TLSCertificateKeyFile /usr/local/etc/openldap/ssl/cert.key

in ldap.conf file I have the following

#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASEdc=esiee,dc=fr
URI ldap://ldap.esiee.fr ldaps://ldap.esiee.fr

#SIZELIMIT  12
#TIMELIMIT  15
#DEREF  never



What did I missed ?

Thanks for any help

___
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: Addition to BSDstats

2010-05-06 Thread Chris Whitehouse

Marc G. Fournier wrote:

On Wed, 5 May 2010, Randi Harper wrote:


I wouldn't want to add an option to sysinstall for this unless 
bsdstats was part of base.


nobody would appreciate (and outcry would be heavy) if someone were to 
add an 'opt-out phone home script' that they didn't consciously enable ...


The problem with not including bsdstats in sysinstall or some other 
means of bringing it to peoples attention is that it gets forgotten and 
loses its effectiveness. What about a monthly (3 monthly, whatever) 
reminder saying what bsdstats is about and the reasons for installing 
it. Maybe it could go in the monthly list subscription reminder. (And 0T 
I would also include a reminder about Manolis XFCE DVD project)


Chris





Marc G. FournierHub.Org Hosting Solutions S.A.
scra...@hub.org http://www.hub.org

Yahoo:yscrappySkype: hub.orgICQ:7615664MSN:scra...@hub.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




___
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: User cpu time VS system cpu time

2010-05-06 Thread Ivan Voras

On 05/06/10 13:33, cronfy wrote:

Hello,


I want to understand difference between user CPU time and system CPU
time in system accounting.

But keep in mind that kernel time is a broad category - while IO time in
itself does not count as CPU time, file system operations for example do,
because they really can be CPU intensive.


Ivan, thanks for the great explanation.

I think that I can measure user filesystem usage with sa - it reports
number of IO operations per user/command. In which other cases kernel
time is used instead of user time for a process? I do not mean all of
them - just that usually occur in practice.


Everything the kernel does when requested by the user is counted as 
kernel time - file system access, network access, getpid(), 
gettimeofday(), process scheduling, memory management, etc.



I've noticed that there are moments when system load in top for system
time is very high (60-80% while user load is 15-25%, this produces
very high LA also). All processes that were run at this time show high
kernel time usage, although they usually do not. System is getting
back to normal after Apache restart (I think this is related to Apache
shared memory somehow, but not sure).


As I told you before - monitor the top line for the processes you 
suspect and you will get a fairly good idea what they are doing. Look at 
the STATE column.


When you are looking at per-process statistics, the system time is also 
accounted. For example, if a process takes 50% of a CPU, it is possible 
that it takes 25% in userspace and 25% in kernel (the reverse is not 
true - kernel can take system CPU time without it being accounted on 
behalf of processes).



This makes me suspect that system time in sa can not be relied on
while measuring user system usage, because it notably varies under
some circumstances for same operations. Am I wrong?


Everything can be accounted for by enough statistics :)

___
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: LDAP and LDAPS on the same server ?

2010-05-06 Thread Boris Samorodov
On Thu, 06 May 2010 14:15:54 +0200 Frank Bonnet wrote:

 I actually have an Openldap directory server that runs on a FreeBSD box
 at 8.0-RELEASE amd64

 It runs nicely but I want to add LDAPS service on the SAME server.

 Is it possible ? I have generated

 cert.crt
 cert.csr
 cert.key

 as instructed in the FreeBSD howto but when I add the following
 lines in slapd.conf file it fails to restart

 TLSCACertificateFile  /usr/local/etc/openldap/ssl/cert.crt
 TLSCertificateFile/usr/local/etc/openldap/ssl/cert.crt
 TLSCertificateKeyFile /usr/local/etc/openldap/ssl/cert.key

 in ldap.conf file I have the following

 #
 # LDAP Defaults
 #

 # See ldap.conf(5) for details
 # This file should be world readable but not world writable.

 BASE  dc=esiee,dc=fr
 URI   ldap://ldap.esiee.fr ldaps://ldap.esiee.fr

 #SIZELIMIT12
 #TIMELIMIT15
 #DEREFnever

 What did I missed ?

I'm not sure but maybe you should add the following line to
/etc/rc.conf[.local]:
-
slapd_flags='-h ldap:/// ldaps:///'
-

Look at SLAPD(8C) for more details.

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
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: LDAP and LDAPS on the same server ?

2010-05-06 Thread Maciej Milewski
Dnia czwartek, 6 maja 2010 o 14:15:54 Frank Bonnet napisał(a):
 Hello
 
 I actually have an Openldap directory server that runs on a FreeBSD box
 at 8.0-RELEASE amd64
 
 It runs nicely but I want to add LDAPS service on the SAME server.
 
 Is it possible ? I have generated
 
 cert.crt
 cert.csr
 cert.key
 
 as instructed in the FreeBSD howto but when I add the following
 lines in slapd.conf file it fails to restart
 
 TLSCACertificateFile  /usr/local/etc/openldap/ssl/cert.crt
It is certificate of CA(Certificate Authority). I think it should be different 
than your server certificate. If you create self-signed certificate you first 
create your own CA and then issue certificate for the server or clients.

 TLSCertificateFile/usr/local/etc/openldap/ssl/cert.crt
 TLSCertificateKeyFile /usr/local/etc/openldap/ssl/cert.key
 
 in ldap.conf file I have the following
 
 #
 # LDAP Defaults
 #
 
 # See ldap.conf(5) for details
 # This file should be world readable but not world writable.
 
 BASE  dc=esiee,dc=fr
 URI   ldap://ldap.esiee.fr ldaps://ldap.esiee.fr
 
 #SIZELIMIT12
 #TIMELIMIT15
 #DEREFnever
This is used for client side not server side.

 What did I missed ?
slapd_flags in rc.conf?

Maciek
___
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: LDAP and LDAPS on the same server ?

2010-05-06 Thread Frank Bonnet

On 05/06/10 14:34, Boris Samorodov wrote:

On Thu, 06 May 2010 14:15:54 +0200 Frank Bonnet wrote:


I actually have an Openldap directory server that runs on a FreeBSD box
at 8.0-RELEASE amd64



It runs nicely but I want to add LDAPS service on the SAME server.



Is it possible ? I have generated



cert.crt
cert.csr
cert.key



as instructed in the FreeBSD howto but when I add the following
lines in slapd.conf file it fails to restart



TLSCACertificateFile  /usr/local/etc/openldap/ssl/cert.crt
TLSCertificateFile/usr/local/etc/openldap/ssl/cert.crt
TLSCertificateKeyFile /usr/local/etc/openldap/ssl/cert.key



in ldap.conf file I have the following



#
# LDAP Defaults
#



# See ldap.conf(5) for details
# This file should be world readable but not world writable.



BASEdc=esiee,dc=fr
URI ldap://ldap.esiee.fr ldaps://ldap.esiee.fr



#SIZELIMIT  12
#TIMELIMIT  15
#DEREF  never



What did I missed ?


I'm not sure but maybe you should add the following line to
/etc/rc.conf[.local]:
-
slapd_flags='-h ldap:/// ldaps:///'
-

Look at SLAPD(8C) for more details.



Cool ! it works ,

Thanks Boris :-)


___
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


Hardware Compatibility

2010-05-06 Thread David emmel
Hello all,

I have a quick question about server hardware compatibility. We're looking to 
buy a replacement server and the HP ProLiant DL320 G6 E5502 was listed as a 
possible option.
http://h10010.www1.hp.com/wwpc/us/en/sm/WF06b/15351-15351-3328412-241644-241475-3929672-3942218-3942219.html
 

The FreeBSD 8.0-RELEASE hardware list doesn't list the included Smart Array 
B110i SATA RAID controller as compatible so I was wondering if anyone had any 
experience with this hardware.

Alternatively if anyone has recommendations of a different model or brand of 
server that is more compatible in the $2500 range, please let me know. We use 
it for simple web development for a group of 12 people and run samba, apache, 
php, mysql

Thank you for your time,
David


Travel Impressions made the following annotations
-
This message and any attachments are solely for the intended recipient and may 
contain confidential or privileged information.  If you are not the intended 
recipient, any disclosure, copying, use, or distribution of the information 
included in this message and any attachments is prohibited.  If you have 
received this communication in error, please notify us by reply e-mail and 
immediately and permanently delete this message and any attachments.
Thank you.
___
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: Addition to BSDstats

2010-05-06 Thread Robert Huff

Chris Whitehouse writes:

  The problem with not including bsdstats in sysinstall or some
  other means of bringing it to peoples attention is that it gets
  forgotten and loses its effectiveness. What about a monthly (3
  monthly, whatever) reminder saying what bsdstats is about and the
  reasons for installing it. Maybe it could go in the monthly list
  subscription reminder.

As part of the installation process, offer to add a crontab
entry?


Robert Huff

___
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: Addition to BSDstats

2010-05-06 Thread Marc G. Fournier

On Thu, 6 May 2010, Robert Huff wrote:



Chris Whitehouse writes:


 The problem with not including bsdstats in sysinstall or some
 other means of bringing it to peoples attention is that it gets
 forgotten and loses its effectiveness. What about a monthly (3
 monthly, whatever) reminder saying what bsdstats is about and the
 reasons for installing it. Maybe it could go in the monthly list
 subscription reminder.


As part of the installation process, offer to add a crontab
entry?


The problem, as I get from Randi, isn't adding the crontab entry (its not 
required anyway), but that since 300.statistics isn't in 
/etc/periodic/monthly by default, sysinstall would have to do a pkg_add of 
the port to get it installed first, *then* add the appropriate entries to 
both /etc/periodic.conf and /etc/rc.conf so that it runs ...


The latter two are doable, but havin to do a pkg_add seems to be the part 
that is being frowned on ...



Marc G. FournierHub.Org Hosting Solutions S.A.
scra...@hub.org http://www.hub.org

Yahoo:yscrappySkype: hub.orgICQ:7615664MSN:scra...@hub.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: LDAP and LDAPS on the same server ?

2010-05-06 Thread Erik Norgaard

On 06/05/10 14.15, Frank Bonnet wrote:


It runs nicely but I want to add LDAPS service on the SAME server.
Is it possible ?


Yes in fact with OpenLDAP you can have ldap, ldaps and ldap TLS with 
STARTTLS, the latter runs on the standard ldap port.



I have generated

cert.crt
cert.csr
cert.key

as instructed in the FreeBSD howto but when I add the following
lines in slapd.conf file it fails to restart

TLSCACertificateFile  /usr/local/etc/openldap/ssl/cert.crt


You do not need to specify TLSCACertificateFile unless you plan to 
require connecting clients to use a certificate.



TLSCertificateFile/usr/local/etc/openldap/ssl/cert.crt
TLSCertificateKeyFile /usr/local/etc/openldap/ssl/cert.key


You only need to edit your rc.conf adding

slapd_flags='-h ldap:/// ldaps:///'

if you want to have old style ldaps (ldap with ssl) on port 636. Without 
any options OpenLDAP supports TLS on port 389. Unfortunately, common 
programs such as thunderbird does not support TLS for ldap (although it 
/is/ supported for smtp?!)



in ldap.conf file I have the following

#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASEdc=esiee,dc=fr
URI ldap://ldap.esiee.fr ldaps://ldap.esiee.fr


You do not need to edit ldap.conf for the server to start up correctly, 
this is for the client. In order to use ldapmodify (and family) with TLS 
you need to add


TLS_CACERT /path/to/your/CA/certificate.cer

Then you can do

$ ldapmodify -ZZ ...

to connect with TLS.

BR, Erik

--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.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: LDAP and LDAPS on the same server ?

2010-05-06 Thread Frank Bonnet

On 05/06/10 16:26, Erik Norgaard wrote:

On 06/05/10 14.15, Frank Bonnet wrote:


It runs nicely but I want to add LDAPS service on the SAME server.
Is it possible ?


Yes in fact with OpenLDAP you can have ldap, ldaps and ldap TLS with
STARTTLS, the latter runs on the standard ldap port.


I have generated

cert.crt
cert.csr
cert.key

as instructed in the FreeBSD howto but when I add the following
lines in slapd.conf file it fails to restart

TLSCACertificateFile /usr/local/etc/openldap/ssl/cert.crt


You do not need to specify TLSCACertificateFile unless you plan to
require connecting clients to use a certificate.


TLSCertificateFile /usr/local/etc/openldap/ssl/cert.crt
TLSCertificateKeyFile /usr/local/etc/openldap/ssl/cert.key


You only need to edit your rc.conf adding

slapd_flags='-h ldap:/// ldaps:///'

if you want to have old style ldaps (ldap with ssl) on port 636. Without
any options OpenLDAP supports TLS on port 389. Unfortunately, common
programs such as thunderbird does not support TLS for ldap (although it
/is/ supported for smtp?!)


in ldap.conf file I have the following

#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE dc=esiee,dc=fr
URI ldap://ldap.esiee.fr ldaps://ldap.esiee.fr


You do not need to edit ldap.conf for the server to start up correctly,
this is for the client. In order to use ldapmodify (and family) with TLS
you need to add

TLS_CACERT /path/to/your/CA/certificate.cer

Then you can do

$ ldapmodify -ZZ ...

to connect with TLS.

BR, Erik



Thanks for your full detailed answer Erik !


___
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: Magic Jack VOIP telephone

2010-05-06 Thread parv
in message
v2ia14066a01005051253y278a34fez7a135c85fe20d...@mail.gmail.com,
wrote Alejandro Imass thusly...

...
 I [...] just stuck with Skype who now BTW offers international SIP
 services, so I also hooked up Skype + Asterisk. This means you can
 purchase Skype phone # and attach it to your Asterisk and
 everything in FBSD. No Windoze crappy software.

Alejandro, how time  labour intensive is to set up Asterisk on a
daily use laptop?  Could Asterisk not be used by itself for all VoIP
needs per my superficial Asterisk understanding?

Was setting up Asterisk as simple as installing
/usr/ports/net/asterisk-bristuff or /usr/ports/net/asterisk1{2,6}?


  - parv

-- 

___
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: Magic Jack VOIP telephone

2010-05-06 Thread Alejandro Imass
On Thu, May 6, 2010 at 11:32 AM,  p...@pair.com wrote:
 in message
 v2ia14066a01005051253y278a34fez7a135c85fe20d...@mail.gmail.com,
 wrote Alejandro Imass thusly...

 ...
 Alejandro, how time  labour intensive is to set up Asterisk on a
 daily use laptop?  Could Asterisk not be used by itself for all VoIP

Ok, if you don't need dialplans, voicemails, and several extensions,
you don't need asterisk. Just install Skype client on FBSD (you will
need linux emulation to get the Skype client going), and purchase an
actual phone number with your area code from Skype, and some pre-paid
credit. That's it you will be receiving/making call from skype on
FBSD in no time.

Regardiong Asterisk it's actually very easy and without any prior
knowledge I was able in just about 4 days to make a complete
soft-phone based telephone system with 10 ekiga extensions, automated
menu (ivr) and the works (voice mail that is routed via e-mail) - the
works - just by installing from port and reading the free asterisk
book pdf you can download from many places (yes, the book is actually
free as in beer).

 needs per my superficial Asterisk understanding?


Just read the book.

 Was setting up Asterisk as simple as installing
 /usr/ports/net/asterisk-bristuff or /usr/ports/net/asterisk1{2,6}?


Yeap!
Alex


  - parv

 --


___
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: port 22: connection refuused

2010-05-06 Thread Gary Kline

can anybody help me with ne of my last problems: getting ssh Into
my new comuter?  i am able to ssh outside.  need to scp my config
files over.

sshd is running on zen


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: port 22: connection refuused

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 12:21 PM, Gary Kline wrote:
 
 can anybody help me with ne of my last problems: getting ssh Into
 my new comuter?  i am able to ssh outside.  need to scp my config
 files over.
 
 sshd is running on zen
 
 

This generally involves two or three steps:

1) Make sure /etc/rc.conf has this in it:

   sshd_enable=YES

2) Make sure /etc/hosts.allow permits access
   to your machine via ssh.  Something like this:

 sshd: 192.168. a_host-name.com an.ip.add.ress  :ALLOW

   Some people do this:

 sshd: ALL :ALLOW

   That's fine if the machine sits on a trusted LAN, but I don't
   much like this for machines that are internet-facing ... it
   just provides another vector for attack.  So, for such machines,
   I explicitly name the address and names that are permitted ssh access.

3) If you're running a firewall, make sure that the sshd ports
   (22/tcp and 22/udp) are open for those machines/addresses
   you want to connect into your FreeBSD box.


If you are still having trouble,  go to the client machine
and invoke your session like this:

  ssh -v your_freebsd_machine

It will barf out a bunch of interesting information about why the connection
isn't working that may help you figure out what's going on.

Happy Trails,


Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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


Using different IP config than what DHCP provides

2010-05-06 Thread John Levine
I run FreeBSD 8.0 on my laptop, works great, when I take it with me I
open it up, wpa_supplicanr finds a network and DHCP configures it.

On a few networks, though, I want to use a different network setup than
the one that DHCP provides.  Is there any reasonable way to arrange
so that when I'm connected to specific network SSIDs, It runs a config
script I write rather than running dhclient, perhaps with a shim in
front of dhclient?

The situation, in case you're wondering, is that the wifi in most of
the local coffee shops is run by the same ISP that hosts my servers,
and when I'm on their network, I want to set up in my IP range rather
than the default one DHCP offers.  It is a pain to have to kill
dhclient and do the ifconfig and route commands manually.

TIA,
John



___
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: [Help-smalltalk] gst-browser on FreeBSD

2010-05-06 Thread Anselm Strauss
On 05/06/10 07:54, Johan van Selst wrote:
 Anselm Strauss wrote:
 I didn't find any GTK packages coming with the installation, maybe the
 port for FreeBSD is incomplete ...?
 
 Yes, the FreeBSD port installs smalltalk without GTK support (because
 the combination was broken). This has been the default setup for over 6
 years now. I'm not sure how bad it is these days. If you want to test it
 with GTK support, then add gtk20 to the USE_GNOME line and remove the
 --disable-gtk line in the port's Makefile, before compiling and
 installing again. Please let me know if this works for you and what
 system you use (FreeBSD version and architecture).
 
 
 Best regards,
 Johan van Selst

It compiles and installs on FreeBSD 8.0-p2 on amd64. But it segfaults on
start:

- gst-browser
Recompiling classes...
Recompiling class: GTK.GtkRequisition class
Recompiling selector: #sizeof
Recompiling classes...
Recompiling classes...
Recompiling classes...
Recompiling class: GTK.GdkEventButton class
Recompiling selector: #sizeof
Recompiling classes...
Recompiling class: GTK.GdkEventMotion class
Recompiling selector: #sizeof
Recompiling classes...
Recompiling class: GTK.GdkEventConfigure class
Recompiling selector: #sizeof
Recompiling classes...
Recompiling class: GTK.GdkEventKey class
Recompiling selector: #sizeof
Segmentation fault: 11
-

Think I will have to look deeper into it ...

Thanks,
Anselm
___
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: port 22: connection refuused

2010-05-06 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/05/2010 18:32:18, Tim Daneliuk wrote:
 3) If you're running a firewall, make sure that the sshd ports
(22/tcp and 22/udp) are open for those machines/addresses
you want to connect into your FreeBSD box.

Despite what it may say in /etc/services, ssh doesn't use UDP.  It's
purely TCP based.  (No idea why /etc/services usually lists both TCP and
UDP port numbers for services that are pure TCP.  It was probably
something that seemed to be a good idea at the time.)

Cheers,

Matthew

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

iEYEARECAAYFAkvjCNMACgkQ8Mjk52CukIybqwCfchTs9102F56SnZcqj54daL/1
pqsAnR+hWeJNDMUfNQfdAYxED3xjjdhG
=eTao
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: User cpu time VS system cpu time

2010-05-06 Thread Robert Bonomi

 From: cronfy cro...@gmail.com
 Date: Thu, 6 May 2010 15:33:40 +0400
 Subject: Re: User cpu time VS system cpu time

 Hello,

  I want to understand difference between user CPU time and system CPU
  time in system accounting.
  But keep in mind that kernel time is a broad category - while IO time in
  itself does not count as CPU time, file system operations for example do,
  because they really can be CPU intensive.

 Ivan, thanks for the great explanation.

 I think that I can measure user filesystem usage with sa - it reports
 number of IO operations per user/command. In which other cases kernel
 time is used instead of user time for a process? I do not mean all of
 them - just that usually occur in practice.

 I've noticed that there are moments when system load in top for system
 time is very high (60-80% while user load is 15-25%, this produces
 very high LA also). All processes that were run at this time show high
 kernel time usage, although they usually do not. System is getting
 back to normal after Apache restart (I think this is related to Apache
 shared memory somehow, but not sure).

 This makes me suspect that system time in sa can not be relied on
 while measuring user system usage, because it notably varies under
 some circumstances for same operations. Am I wrong?

CPU time tracking is -really- simple to understand.  logically you look
at where the PC is, at regular intervals.  it is in one of 3 types of
locations -- in 'user' space, somewhere 'inside' the kernel itself, *OR* 
in the system 'idle loop'. 

Time spent executing _most_ kernel functions (system calls) is _not_
strictly deterministic -- it depends on what all 'else' the O/S is doing
at the time, as well as that which is 'strictly necessary' to perform 
just the user-initiated action.

take a simple case of appending a block of data to a disk file (Berkeley FFS).
Assume the file pointer is already at EOF -- it may be that the data fits into
the unused part of the last already allocated block for the file, or it
*MAY*NOT*.  If not there is extra work to do -- get a block from the free list,
zero it,  copy the user data into it, and add the block to the block-list 
for that file.  It may be possible to record that block's address in the space
already allocated for the block list, or it MAY NOT.  If not, one has to
get a block from the free list, and add it to the 'meta-data' for the file.
This _may_ necessitate adding a 2nd-level index block, which *MAY* necessitate
adding a 3rd level index block, (and possibly a 4th).

Adding to the 'uncertainty' of the numbers, _between_ sampling intervals
it is possible for an interrupt to occur, be serviced, and control returned
to the lower priority code.  If the interrupt-service duration is _less_ than
the sampling interval, then the interrupt-service time gets counted, as if it
were part of the 'class' of code that was interrupted.  This can result in 
small amounts of what should be 'system' time for one user getting charged 
as time (user -or- system) for a different user.

Similar things can happen when transferring data to/from other kinds of
devices, e.g. printers, terminals, etc.

On a busy system, there can be a variance of 20% or more, between two 
successive runs of the same job.



___
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


Hardware vendor

2010-05-06 Thread Lonnie CasaDeCalvo
Hi,

Can you make a recomondation to a hardware supplier that will preinstall
FreeBSD on there server hardware?
I see some hardware vendors on the website but I am not finding one that
will preinstall and support.

Thanks,
Lonnie CasaDeCalvo
Graphic Systems, Inc.
2632 26th Ave So
Minneapolis, MN 55406
612-721-6100
___
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


Accessing file from windows or to windows

2010-05-06 Thread Jean-Paul Natola

Hi all,

I have a file I need in my bsd box, would it be easier, or is it possible, to 
mount an NTFS share , or should I try to map a directory from the windows box.


TIA,

I have 

Xp
Win7
Win2003 
Win2008 
Freebsd 6.4

thanx   
___
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: Hardware vendor

2010-05-06 Thread Marc G. Fournier


iXSystems (http://www.ixsystems.com/) ... they are a BSD shop,period ...

Been dealing iwth them a couple of years now for production servers, 
haven't been disappointed yet ...


On Thu, 6 May 2010, Lonnie CasaDeCalvo wrote:


Hi,

Can you make a recomondation to a hardware supplier that will preinstall
FreeBSD on there server hardware?
I see some hardware vendors on the website but I am not finding one that
will preinstall and support.

Thanks,
Lonnie CasaDeCalvo
Graphic Systems, Inc.
2632 26th Ave So
Minneapolis, MN 55406
612-721-6100
___
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




Marc G. FournierHub.Org Hosting Solutions S.A.
scra...@hub.org http://www.hub.org

Yahoo:yscrappySkype: hub.orgICQ:7615664MSN:scra...@hub.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: Accessing file from windows or to windows

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 3:47 PM, Jean-Paul Natola wrote:
 
 Hi all,
 
 I have a file I need in my bsd box, would it be easier, or is it possible, to 
 mount an NTFS share , or should I try to map a directory from the windows 
 box.
 
 
 TIA,
 
 I have 
 
 Xp
 Win7
 Win2003 
 Win2008 
 Freebsd 6.4
 
 thanx   


Same machine or two separate machines?

Two separate machines is trivial - share 
a directory on the Win machine and use smbfs
on FBSD to get to it.

For same machine, boot FBSD, and do a mount
with -t ntfs as an arg  well, I don't recall
if 6.4 supported this or not, now that I think about it.


One-time or frequent transfer?

There are tons of other options, especially if you're running
separate machines.  Not all of these are elegant, but they
all will work and have their place for infrequent transfers:

- Email the file to yourself from one OS and retrieve it
  from the other.

- Copy the file to a thumbdrive

- Copy the file to a private website which can then
  be subsequently retrieved by another machine/OS
  image.






Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: Accessing file from windows or to windows

2010-05-06 Thread Jean-Paul Natola


On 5/6/2010 3:47 PM, Jean-Paul Natola wrote:
 
 Hi all,
 
 I have a file I need in my bsd box, would it be easier, or is it possible, to 
 mount an NTFS share , or should I try to map a directory from the windows 
 box.
 
 
 TIA,
 
 I have 
 
 Xp
 Win7
 Win2003 
 Win2008 
 Freebsd 6.4
 
 thanx   


Same machine or two separate machines?

Two separate machines is trivial - share 
a directory on the Win machine and use smbfs
on FBSD to get to it.

For same machine, boot FBSD, and do a mount
with -t ntfs as an arg  well, I don't recall
if 6.4 supported this or not, now that I think about it.


One-time or frequent transfer?

There are tons of other options, especially if you're running
separate machines.  Not all of these are elegant, but they
all will work and have their place for infrequent transfers:

- Email the file to yourself from one OS and retrieve it
  from the other.

- Copy the file to a thumbdrive

- Copy the file to a private website which can then
  be subsequently retrieved by another machine/OS
  image.




Well my book  (absolute BSD) yes its old, says:
writing to an NTFS partition may corrupt the partition - I'm guessing this is 
not the case anymore
and to answer your question; 

1. Its 2 separate machines 
2. As a security standard I have disabled flash drives in the office 
3. It will be a monthly taks
4. No web access on the bsd box

___
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


DNS not working since May 6 2010

2010-05-06 Thread Jonathan Chen

Hi,

I've got a small DNS server on my home network, and ever since May 6, 2010 
(co-incidentally DNSSEC root sign day), lookups on freebsd.org have started 
failing. eg:


  ~,8:36am dig www.freebsd.org a

  ;  DiG 9.6.1-P3  www.freebsd.org a
  ;; global options: +cmd
  ;; connection timed out; no servers could be reached

Lookups on other domains still appear to work, Google, OpenBSD, NetBSD, 
etc. Is anyone else seeing this? How do I fix it?


Cheers.
--
Jonathan Chen jonathan.c...@solnetsolutions.co.nz


Attention:
This email may contain information intended for the sole use of
the original recipient. Please respect this when sharing or
disclosing this email's contents with any third party. If you
believe you have received this email in error, please delete it
and notify the sender or postmas...@solnetsolutions.co.nz as
soon as possible. The content of this email does not necessarily
reflect the views of Solnet Solutions Ltd.

___
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: Accessing file from windows or to windows-

2010-05-06 Thread Jean-Paul Natola


-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Jean-Paul Natola
Sent: Thursday, May 06, 2010 5:13 PM
To: 'Tim Daneliuk'; FreeBSD Mailing List
Subject: RE: Accessing file from windows or to windows



On 5/6/2010 3:47 PM, Jean-Paul Natola wrote:
 
 Hi all,
 
 I have a file I need in my bsd box, would it be easier, or is it possible, to 
 mount an NTFS share , or should I try to map a directory from the windows 
 box.
 
 
 TIA,
 
 I have 
 
 Xp
 Win7
 Win2003 
 Win2008 
 Freebsd 6.4
 
 thanx   


Same machine or two separate machines?

Two separate machines is trivial - share 
a directory on the Win machine and use smbfs
on FBSD to get to it.

For same machine, boot FBSD, and do a mount
with -t ntfs as an arg  well, I don't recall
if 6.4 supported this or not, now that I think about it.


One-time or frequent transfer?

There are tons of other options, especially if you're running
separate machines.  Not all of these are elegant, but they
all will work and have their place for infrequent transfers:

- Email the file to yourself from one OS and retrieve it
  from the other.

- Copy the file to a thumbdrive

- Copy the file to a private website which can then
  be subsequently retrieved by another machine/OS
  image.




Well my book  (absolute BSD) yes its old, says:
writing to an NTFS partition may corrupt the partition - I'm guessing this is 
not the case anymore
and to answer your question; 

1. Its 2 separate machines 
2. As a security standard I have disabled flash drives in the office 
3. It will be a monthly taks
4. No web access on the bsd box

Forgot the main one, when I tried to mount I get the error
mount_smbfs: unable to open connection: syserr = Authentication error
___
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: Accessing file from windows or to windows

2010-05-06 Thread Adam Vande More
On Thu, May 6, 2010 at 4:12 PM, Jean-Paul Natola jnat...@familycareintl.org
 wrote:


 Well my book  (absolute BSD) yes its old, says:
 writing to an NTFS partition may corrupt the partition - I'm guessing
 this is not the case anymore
 and to answer your question;

 1. Its 2 separate machines
 2. As a security standard I have disabled flash drives in the office
 3. It will be a monthly taks
 4. No web access on the bsd box


Since there are a myriad of ways to do this, perhaps it would be better for
you to describe the nature of file usage so the most appropriate method can
be suggested.


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


Re: Accessing file from windows or to windows-

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 4:19 PM, Jean-Paul Natola wrote:
SNIP

 Well my book  (absolute BSD) yes its old, says:
 writing to an NTFS partition may corrupt the partition - I'm guessing this 
 is not the case anymore
 and to answer your question; 
 
 1. Its 2 separate machines 
 2. As a security standard I have disabled flash drives in the office 
 3. It will be a monthly taks
 4. No web access on the bsd box
 
 Forgot the main one, when I tried to mount I get the error
 mount_smbfs: unable to open connection: syserr = Authentication error

This means Windows is looking for login credentials before it will
allow you to access the share. Suppose you are user 'Jean' on your
Windows machine,WINDOZE and you use a password of foo. You want to
get to the Windows share called MYSHARE and mount it locally on your
FBSD box on /mnt. Then the command is:


   mount_smbfs //j...@windoze/MYSHARE /mnt

You'll get prompted for a password and, when you enter it, the mount
will be established.

You can automate this whole business by learning how to populate the
/etc/nsmb.conf file with the right stuff.


-- 

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: Accessing file from windows or to windows

2010-05-06 Thread Diego F. Arias R.
On Thu, May 6, 2010 at 4:01 PM, Jean-Paul Natola jnat...@familycareintl.org
 wrote:

  Thx for the quick reply, one question

 Which one , I have

 Samba3

 Samba33

 Samba34

 Samba4wins
 --


look at samba.org for the lastest stable version and thats it.



-- 
mmm, interesante.
___
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: Accessing file from windows or to windows

2010-05-06 Thread Modulok
In order to 'provide' shares to a windows network you would need to
run a daemon on FreeBSD which provides such services. The most popular
solution is 'samba'. I think the package is called 'samba3'. You
install it, edit its config file, which specifies what to share and
how to share it. You then run the daemon and poof, your windows
machines can access the shares you've configured.

On the other hand, if the windows machines are providing a shared
folder you want to access, you can just mount that share via the
'mount_smbfs' command. For example, if I had a windows computer named
'apollo' with username 'guest' and a folder named 'shared' I wanted to
access, I could do this from my FreeBSD machine:

# As root:
mount_smbfs //gu...@apollo/shared /mnt

I would now have the contents of apollo's 'shared' folder available in
my '/mnt' directory. See 'mount_smbfs(8)' for more.

Other options could involve setting up an SSH client/server on the two
machines and use 'sftp' or 'scp' to transfer files, among others.
-Modulok-

On 5/6/10, Tim Daneliuk tun...@tundraware.com wrote:
 On 5/6/2010 3:47 PM, Jean-Paul Natola wrote:

 Hi all,

 I have a file I need in my bsd box, would it be easier, or is it possible,
 to mount an NTFS share , or should I try to map a directory from the
 windows box.


 TIA,

 I have

 Xp
 Win7
 Win2003
 Win2008
 Freebsd 6.4

 thanx


 Same machine or two separate machines?

 Two separate machines is trivial - share
 a directory on the Win machine and use smbfs
 on FBSD to get to it.

 For same machine, boot FBSD, and do a mount
 with -t ntfs as an arg  well, I don't recall
 if 6.4 supported this or not, now that I think about it.


 One-time or frequent transfer?

 There are tons of other options, especially if you're running
 separate machines.  Not all of these are elegant, but they
 all will work and have their place for infrequent transfers:

 - Email the file to yourself from one OS and retrieve it
   from the other.

 - Copy the file to a thumbdrive

 - Copy the file to a private website which can then
   be subsequently retrieved by another machine/OS
   image.





 
 Tim Daneliuk tun...@tundraware.com
 PGP Key: http://www.tundraware.com/PGP/

 ___
 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: Accessing file from windows or to windows

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 4:12 PM, Jean-Paul Natola wrote:
 
 
 On 5/6/2010 3:47 PM, Jean-Paul Natola wrote:

 Hi all,

 I have a file I need in my bsd box, would it be easier, or is it possible, 
 to mount an NTFS share , or should I try to map a directory from the 
 windows box.


 TIA,

 I have 

 Xp
 Win7
 Win2003 
 Win2008 
 Freebsd 6.4

 thanx   
 
 
 Same machine or two separate machines?
 
 Two separate machines is trivial - share 
 a directory on the Win machine and use smbfs
 on FBSD to get to it.
 
 For same machine, boot FBSD, and do a mount
 with -t ntfs as an arg  well, I don't recall
 if 6.4 supported this or not, now that I think about it.
 
 
 One-time or frequent transfer?
 
 There are tons of other options, especially if you're running
 separate machines.  Not all of these are elegant, but they
 all will work and have their place for infrequent transfers:
 
 - Email the file to yourself from one OS and retrieve it
   from the other.
 
 - Copy the file to a thumbdrive
 
 - Copy the file to a private website which can then
   be subsequently retrieved by another machine/OS
   image.
 
 
 
 
 Well my book  (absolute BSD) yes its old, says:
 writing to an NTFS partition may corrupt the partition - I'm guessing this 
 is not the case anymore
 and to answer your question; 
 
 1. Its 2 separate machines 
 2. As a security standard I have disabled flash drives in the office 
 3. It will be a monthly taks
 4. No web access on the bsd box
 


Quite simple then:

1) Share the directory on the windows machine where the file of interest
   can be found.

2) Use FreeBSD's mount_smbfs command to access the Windows share over
   the network.  Reading and writing over  such a mount has been quite
   reliable in my experience.

BTW, the quote to which you allude above wouldn't be relevant in your
case.  They're talking about a *single* machine that wants to mount
an ntfs partition on the locally-attached hard drive.

I'd be curious to know if it is still the case that ntfs writes are
not reliable in that situation.  There are times when doing this
can be handy on a dual-boot laptop, for example.  'Anyone out there
care to comment on the state of ntfs rw access?


-- 

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: Accessing file from windows or to windows-

2010-05-06 Thread Jean-Paul Natola


-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Tim Daneliuk
Sent: Thursday, May 06, 2010 5:28 PM
To: FreeBSD Mailing List
Subject: Re: Accessing file from windows or to windows-

On 5/6/2010 4:19 PM, Jean-Paul Natola wrote:
SNIP

 Well my book  (absolute BSD) yes its old, says:
 writing to an NTFS partition may corrupt the partition - I'm guessing this 
 is not the case anymore
 and to answer your question; 
 
 1. Its 2 separate machines 
 2. As a security standard I have disabled flash drives in the office 
 3. It will be a monthly taks
 4. No web access on the bsd box
 
 Forgot the main one, when I tried to mount I get the error
 mount_smbfs: unable to open connection: syserr = Authentication error

This means Windows is looking for login credentials before it will
allow you to access the share. Suppose you are user 'Jean' on your
Windows machine,WINDOZE and you use a password of foo. You want to
get to the Windows share called MYSHARE and mount it locally on your
FBSD box on /mnt. Then the command is:


   mount_smbfs //j...@windoze/MYSHARE /mnt

You'll get prompted for a password and, when you enter it, the mount
will be established.

Same error:
milter# mount_smbfs //jnat...@fcisql01/DATA /mnt
Password:
mount_smbfs: unable to open connection: syserr = Authentication error
milter#
___
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: Accessing file from windows or to windows

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 4:30 PM, Modulok wrote:
 In order to 'provide' shares to a windows network you would need to
 run a daemon on FreeBSD which provides such services. The most popular
 solution is 'samba'. I think the package is called 'samba3'. You
 install it, edit its config file, which specifies what to share and
 how to share it. You then run the daemon and poof, your windows
 machines can access the shares you've configured.
 


This is entirely correct, however, judging from the OP's question,
this sounds like real overkill.  mount_smbfs is in the base
FBSD system and does not require a port install to use.

Just my .1 cents worth.

 On the other hand, if the windows machines are providing a shared
 folder you want to access, you can just mount that share via the
 'mount_smbfs' command. For example, if I had a windows computer named
 'apollo' with username 'guest' and a folder named 'shared' I wanted to
 access, I could do this from my FreeBSD machine:
 
 # As root:
 mount_smbfs //gu...@apollo/shared /mnt
 
 I would now have the contents of apollo's 'shared' folder available in
 my '/mnt' directory. See 'mount_smbfs(8)' for more.
 
 Other options could involve setting up an SSH client/server on the two
 machines and use 'sftp' or 'scp' to transfer files, among others.
 -Modulok-
 


Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: port 22: connection refuused

2010-05-06 Thread Gary Kline
On Thu, May 06, 2010 at 12:32:18PM -0500, Tim Daneliuk wrote:
 On 5/6/2010 12:21 PM, Gary Kline wrote:
  
  can anybody help me with ne of my last problems: getting ssh Into
  my new comuter?  i am able to ssh outside.  need to scp my config
  files over.
  
  sshd is running on zen
  
  
 
 This generally involves two or three steps:
 
 1) Make sure /etc/rc.conf has this in it:
 
sshd_enable=YES

Yes; this was my first try.  no diff.
 
 2) Make sure /etc/hosts.allow permits access
to your machine via ssh.  Something like this:
 
  sshd: 192.168. a_host-name.com an.ip.add.ress  :ALLOW
 
Some people do this:
 
  sshd: ALL :ALLOW
 
That's fine if the machine sits on a trusted LAN, but I don't
much like this for machines that are internet-facing ... it
just provides another vector for attack.  So, for such machines,
I explicitly name the address and names that are permitted ssh access.

ok. itried this; have not rebooted yet.  no difference right
now.

 
 3) If you're running a firewall, make sure that the sshd ports
(22/tcp and 22/udp) are open for those machines/addresses
you want to connect into your FreeBSD box.
 


i'm runnning a pfSense computer; pretty sure that things are
sett correctly there.

 
 If you are still having trouble,  go to the client machine
 and invoke your session like this:
 
   ssh -v your_freebsd_machine
 

the files in /etc/ssh were the first thing i thought of
editing.  didn't see many differences between rel 8.0 and my 
current 7.3.  still, here is the verbose output.


pl 14:20 tao [5036] ssh zen
ssh: connect to host zen port 22: Connection refused
pl 14:20 tao [5037] ssh - zen
OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to zen [10.47.0.190] port 22.
debug1: connect to address 10.47.0.190 port 22: Connection
refused
ssh: connect to host zen port 22: Connection refused
pl 14:22 tao [5038]

any idea what the ``needpriv 0'' means?



 It will barf out a bunch of interesting information about why the connection
 isn't working that may help you figure out what's going on.
 
 Happy Trails,
 
 
 Tim Daneliuk tun...@tundraware.com
 PGP Key: http://www.tundraware.com/PGP/
 
 ___
 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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: Accessing file from windows or to windows

2010-05-06 Thread Modulok
 writing to an NTFS partition may corrupt the partition - I'm guessing this 
 is not the case anymore.

That's only when you have directly mounted an NTFS on the local
machine. Like if you jacked a hard drive out of a windows machine and
plugged it into your BSD machine. If you're accessing it across a
network you're never directly accessing the file system. There is
always an intermediary between you and it; the daemon which handles
file i/o requests. Notice: It handles your *requests*; you never
actually access the underlying file system.

On 5/6/10, Modulok modu...@gmail.com wrote:
 In order to 'provide' shares to a windows network you would need to
 run a daemon on FreeBSD which provides such services. The most popular
 solution is 'samba'. I think the package is called 'samba3'. You
 install it, edit its config file, which specifies what to share and
 how to share it. You then run the daemon and poof, your windows
 machines can access the shares you've configured.

 On the other hand, if the windows machines are providing a shared
 folder you want to access, you can just mount that share via the
 'mount_smbfs' command. For example, if I had a windows computer named
 'apollo' with username 'guest' and a folder named 'shared' I wanted to
 access, I could do this from my FreeBSD machine:

 # As root:
 mount_smbfs //gu...@apollo/shared /mnt

 I would now have the contents of apollo's 'shared' folder available in
 my '/mnt' directory. See 'mount_smbfs(8)' for more.

 Other options could involve setting up an SSH client/server on the two
 machines and use 'sftp' or 'scp' to transfer files, among others.
 -Modulok-

 On 5/6/10, Tim Daneliuk tun...@tundraware.com wrote:
 On 5/6/2010 3:47 PM, Jean-Paul Natola wrote:

 Hi all,

 I have a file I need in my bsd box, would it be easier, or is it
 possible,
 to mount an NTFS share , or should I try to map a directory from the
 windows box.


 TIA,

 I have

 Xp
 Win7
 Win2003
 Win2008
 Freebsd 6.4

 thanx


 Same machine or two separate machines?

 Two separate machines is trivial - share
 a directory on the Win machine and use smbfs
 on FBSD to get to it.

 For same machine, boot FBSD, and do a mount
 with -t ntfs as an arg  well, I don't recall
 if 6.4 supported this or not, now that I think about it.


 One-time or frequent transfer?

 There are tons of other options, especially if you're running
 separate machines.  Not all of these are elegant, but they
 all will work and have their place for infrequent transfers:

 - Email the file to yourself from one OS and retrieve it
   from the other.

 - Copy the file to a thumbdrive

 - Copy the file to a private website which can then
   be subsequently retrieved by another machine/OS
   image.





 
 Tim Daneliuk tun...@tundraware.com
 PGP Key: http://www.tundraware.com/PGP/

 ___
 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: Accessing file from windows or to windows-

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 4:32 PM, Jean-Paul Natola wrote:
 
 
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org 
 [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Tim Daneliuk
 Sent: Thursday, May 06, 2010 5:28 PM
 To: FreeBSD Mailing List
 Subject: Re: Accessing file from windows or to windows-
 
 On 5/6/2010 4:19 PM, Jean-Paul Natola wrote:
 SNIP
 
 Well my book  (absolute BSD) yes its old, says:
 writing to an NTFS partition may corrupt the partition - I'm guessing this 
 is not the case anymore
 and to answer your question; 

 1. Its 2 separate machines 
 2. As a security standard I have disabled flash drives in the office 
 3. It will be a monthly taks
 4. No web access on the bsd box

 Forgot the main one, when I tried to mount I get the error
 mount_smbfs: unable to open connection: syserr = Authentication error
 
 This means Windows is looking for login credentials before it will
 allow you to access the share. Suppose you are user 'Jean' on your
 Windows machine,WINDOZE and you use a password of foo. You want to
 get to the Windows share called MYSHARE and mount it locally on your
 FBSD box on /mnt. Then the command is:
 
 
mount_smbfs //j...@windoze/MYSHARE /mnt
 
 You'll get prompted for a password and, when you enter it, the mount
 will be established.
 
 Same error:
 milter# mount_smbfs //jnat...@fcisql01/DATA /mnt
 Password:
 mount_smbfs: unable to open connection: syserr = Authentication error
 milter#
 

This sounds like you have a permissions problem on the Windows share.
In Windows Explorer, right click on the shared directory and look
at Properties-Sharing-Permissions.  Make sure that 'jnatola' has
an account on that machine and that this account is permitted access
to that share.  If that's all waorking, my guess would be you
have the wrong password.

If you can, try accessing the share from another Windows machine
to make sure the share is working properly.



-- 

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: Accessing file from windows or to windows

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 4:36 PM, Modulok wrote:
 writing to an NTFS partition may corrupt the partition - I'm guessing 
 this is not the case anymore.
 
 That's only when you have directly mounted an NTFS on the local
 machine. Like if you jacked a hard drive out of a windows machine and
 plugged it into your BSD machine. If you're accessing it across a
 network you're never directly accessing the file system. There is
 always an intermediary between you and it; the daemon which handles
 file i/o requests. Notice: It handles your *requests*; you never
 actually access the underlying file system.


Yes, I know this.  That was not my question.  My question is that
when you DO attach to a local NTFS partition, has the write 
corruption problem for the NTFS driver been fixed, and if so, as
of what release of FreeBSD?  I know this is now claimed to work
in Linux as for ntfs3 support. 'Just wondering where FreeBSD is
in that evolution, that's all.



Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: port 22: connection refuused

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 4:35 PM, Gary Kline wrote:
 On Thu, May 06, 2010 at 12:32:18PM -0500, Tim Daneliuk wrote:
 On 5/6/2010 12:21 PM, Gary Kline wrote:

 can anybody help me with ne of my last problems: getting ssh Into
 my new comuter?  i am able to ssh outside.  need to scp my config
 files over.

 sshd is running on zen



 This generally involves two or three steps:

 1) Make sure /etc/rc.conf has this in it:

sshd_enable=YES
 
   Yes; this was my first try.  no diff.

 2) Make sure /etc/hosts.allow permits access
to your machine via ssh.  Something like this:

  sshd: 192.168. a_host-name.com an.ip.add.ress  :ALLOW

Some people do this:

  sshd: ALL :ALLOW

That's fine if the machine sits on a trusted LAN, but I don't
much like this for machines that are internet-facing ... it
just provides another vector for attack.  So, for such machines,
I explicitly name the address and names that are permitted ssh access.
 
   ok. itried this; have not rebooted yet.  no difference right
   now.
 

 3) If you're running a firewall, make sure that the sshd ports
(22/tcp and 22/udp) are open for those machines/addresses
you want to connect into your FreeBSD box.

 
 
   i'm runnning a pfSense computer; pretty sure that things are
   sett correctly there.
 

 If you are still having trouble,  go to the client machine
 and invoke your session like this:

   ssh -v your_freebsd_machine

 
   the files in /etc/ssh were the first thing i thought of
   editing.  didn't see many differences between rel 8.0 and my 
   current 7.3.  still, here is the verbose output.
 
 
 pl 14:20 tao [5036] ssh zen
 ssh: connect to host zen port 22: Connection refused
 pl 14:20 tao [5037] ssh - zen
 OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug2: ssh_connect: needpriv 0
 debug1: Connecting to zen [10.47.0.190] port 22.
 debug1: connect to address 10.47.0.190 port 22: Connection
 refused
 ssh: connect to host zen port 22: Connection refused
 pl 14:22 tao [5038]
 
   any idea what the ``needpriv 0'' means?
 
 
 


What's in your /etc/hosts.allow file?


 It will barf out a bunch of interesting information about why the connection
 isn't working that may help you figure out what's going on.

 Happy Trails,

 
 Tim Daneliuk tun...@tundraware.com
 PGP Key: http://www.tundraware.com/PGP/

 ___
 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
 


-- 

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: Accessing file from windows or to windows-CORRECTION

2010-05-06 Thread Jean-Paul Natola

I'd be curious to know if it is still the case that ntfs writes are
not reliable in that situation.  There are times when doing this
can be handy on a dual-boot laptop, for example.  'Anyone out there
care to comment on the state of ntfs rw access?

Sorry I was reading so much I go the commands mixed up, it's the mount_ntfs 
command I was quoting

The windows NT/2000/XP standard filesystem, NTFS, is tightly integrated with 
Microsoft's kernel. To write to an NTFS partition, you must have extensive 
knowledge of how the filesystem works. Unfortunately, since that information is 
not available from Microsoft, you can read NTFS partitions but writing may 
corrupt the partition. The mount command is mount_ntfs(8).

Note: Since Microsoft holds its filesystem interface so dear, and changes it 
regularly, don't count on this for frequent use. Using mount_ntfs can damage 
the filesystem



___
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: port 22: connection refuused

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 4:41 PM, Tim Daneliuk wrote:
 On 5/6/2010 4:35 PM, Gary Kline wrote:
 On Thu, May 06, 2010 at 12:32:18PM -0500, Tim Daneliuk wrote:
 On 5/6/2010 12:21 PM, Gary Kline wrote:

 can anybody help me with ne of my last problems: getting ssh Into
 my new comuter?  i am able to ssh outside.  need to scp my config
 files over.

 sshd is running on zen



 This generally involves two or three steps:

 1) Make sure /etc/rc.conf has this in it:

sshd_enable=YES

  Yes; this was my first try.  no diff.

 2) Make sure /etc/hosts.allow permits access
to your machine via ssh.  Something like this:

  sshd: 192.168. a_host-name.com an.ip.add.ress  :ALLOW

Some people do this:

  sshd: ALL :ALLOW

That's fine if the machine sits on a trusted LAN, but I don't
much like this for machines that are internet-facing ... it
just provides another vector for attack.  So, for such machines,
I explicitly name the address and names that are permitted ssh access.

  ok. itried this; have not rebooted yet.  no difference right
  now.


 3) If you're running a firewall, make sure that the sshd ports
(22/tcp and 22/udp) are open for those machines/addresses
you want to connect into your FreeBSD box.



  i'm runnning a pfSense computer; pretty sure that things are
  sett correctly there.


 If you are still having trouble,  go to the client machine
 and invoke your session like this:

   ssh -v your_freebsd_machine


  the files in /etc/ssh were the first thing i thought of
  editing.  didn't see many differences between rel 8.0 and my 
  current 7.3.  still, here is the verbose output.


 pl 14:20 tao [5036] ssh zen
 ssh: connect to host zen port 22: Connection refused
 pl 14:20 tao [5037] ssh - zen
 OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug2: ssh_connect: needpriv 0
 debug1: Connecting to zen [10.47.0.190] port 22.
 debug1: connect to address 10.47.0.190 port 22: Connection
 refused
 ssh: connect to host zen port 22: Connection refused
 pl 14:22 tao [5038]

  any idea what the ``needpriv 0'' means?



 
 
 What's in your /etc/hosts.allow file?
 


Oh ... one other thing ... make sure sshd is actually running.
If you changed the /etc/rc.conf enable line without either rebooting
or doing a kill -HUP 1, you may not have a running daemon.


-- 

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: Accessing file from windows or to windows-

2010-05-06 Thread Jean-Paul Natola
 will be established.
 
 Same error:
 milter# mount_smbfs //jnat...@fcisql01/DATA /mnt
 Password:
 mount_smbfs: unable to open connection: syserr = Authentication error
 milter#
 

This sounds like you have a permissions problem on the Windows share.
In Windows Explorer, right click on the shared directory and look
at Properties-Sharing-Permissions.  Make sure that 'jnatola' has
an account on that machine and that this account is permitted access
to that share.  If that's all waorking, my guess would be you
have the wrong password.


This is the company wide share everyone has access to it,
It even fails if I use the domain and enterprise admin accounts-

And as I'm typing this, could that be the reason, because im using domain 
accounts?
___
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: Accessing file from windows or to windows-

2010-05-06 Thread Jean-Paul Natola



This is the company wide share everyone has access to it,
It even fails if I use the domain and enterprise admin accounts-

And as I'm typing this, could that be the reason, because im using domain 
accounts?
___

That was it , I was using a domain instead of an account on the local box

Thanks everyone,

At least now I am aware of all the options
___
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: Accessing file from windows or to windows-

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 4:52 PM, Jean-Paul Natola wrote:
 will be established.

 Same error:
 milter# mount_smbfs //jnat...@fcisql01/DATA /mnt
 Password:
 mount_smbfs: unable to open connection: syserr = Authentication error
 milter#

 
 This sounds like you have a permissions problem on the Windows share.
 In Windows Explorer, right click on the shared directory and look
 at Properties-Sharing-Permissions.  Make sure that 'jnatola' has
 an account on that machine and that this account is permitted access
 to that share.  If that's all waorking, my guess would be you
 have the wrong password.
 
 
 This is the company wide share everyone has access to it,
 It even fails if I use the domain and enterprise admin accounts-
 
 And as I'm typing this, could that be the reason, because im using domain 
 accounts?

It could be.  I've never tried mount_smbfs in a Domain, only a Workgroup.
I'm not saying it won't work, I just don't know.  I do know there
is some magic in how SMB passwords get encrypted and that it is possible
for FreeBSD to do it differently than the Win machine and thus the mount
will fail.

One more thing to try would be to create a share that requires NO password
and see what happens then.

-- 

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: Accessing file from windows or to windows-

2010-05-06 Thread Tim Daneliuk
On 5/6/2010 5:06 PM, Jean-Paul Natola wrote:
 
 
 
 This is the company wide share everyone has access to it,
 It even fails if I use the domain and enterprise admin accounts-
 
 And as I'm typing this, could that be the reason, because im using domain 
 accounts?
 ___
 
 That was it , I was using a domain instead of an account on the local box
 
 Thanks everyone,
 
 At least now I am aware of all the options


Where shall we send the bill? :)

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: port 22: connection refuused

2010-05-06 Thread Gary Kline
On Thu, May 06, 2010 at 04:41:21PM -0500, Tim Daneliuk wrote:
 On 5/6/2010 4:35 PM, Gary Kline wrote:
  On Thu, May 06, 2010 at 12:32:18PM -0500, Tim Daneliuk wrote:
  On 5/6/2010 12:21 PM, Gary Kline wrote:
 
  can anybody help me with ne of my last problems: getting ssh Into
  my new comuter?  i am able to ssh outside.  need to scp my config
  files over.
 
  sshd is running on zen
 
 
 
  This generally involves two or three steps:
 
  1) Make sure /etc/rc.conf has this in it:
 
 sshd_enable=YES
  
  Yes; this was my first try.  no diff.
 
  2) Make sure /etc/hosts.allow permits access
 to your machine via ssh.  Something like this:
 
   sshd: 192.168. a_host-name.com an.ip.add.ress  :ALLOW
 
 Some people do this:
 
   sshd: ALL :ALLOW
 
 That's fine if the machine sits on a trusted LAN, but I don't
 much like this for machines that are internet-facing ... it
 just provides another vector for attack.  So, for such machines,
 I explicitly name the address and names that are permitted ssh access.
  
  ok. itried this; have not rebooted yet.  no difference right
  now.
  
 
  3) If you're running a firewall, make sure that the sshd ports
 (22/tcp and 22/udp) are open for those machines/addresses
 you want to connect into your FreeBSD box.
 
  
  
  i'm runnning a pfSense computer; pretty sure that things are
  sett correctly there.
  
 
  If you are still having trouble,  go to the client machine
  and invoke your session like this:
 
ssh -v your_freebsd_machine
 
  
  the files in /etc/ssh were the first thing i thought of
  editing.  didn't see many differences between rel 8.0 and my 
  current 7.3.  still, here is the verbose output.
  
  
  pl 14:20 tao [5036] ssh zen
  ssh: connect to host zen port 22: Connection refused
  pl 14:20 tao [5037] ssh - zen
  OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug2: ssh_connect: needpriv 0
  debug1: Connecting to zen [10.47.0.190] port 22.
  debug1: connect to address 10.47.0.190 port 22: Connection
  refused
  ssh: connect to host zen port 22: Connection refused
  pl 14:22 tao [5038]
  
  any idea what the ``needpriv 0'' means?
  
  
  
 
 
 What's in your /etc/hosts.allow file?
 
   sshd: ALL ALL :ALLOW

i think.  i'm at my main desktop right now.  there were
two ALL strings in the pcbsd /etc/hosts.allow.  the
line was commented out; i just x'd the #.  i'll reboot 
and see if that reinitialized =something=. :_)


 
  It will barf out a bunch of interesting information about why the 
  connection
  isn't working that may help you figure out what's going on.
 
  Happy Trails,
 
  
  Tim Daneliuk tun...@tundraware.com
  PGP Key: http://www.tundraware.com/PGP/
 
  ___
  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
  
 
 
 -- 
 
 Tim Daneliuk tun...@tundraware.com
 PGP Key: http://www.tundraware.com/PGP/
 
 ___
 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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: Accessing file from windows or to windows

2010-05-06 Thread Fbsd1

Jean-Paul Natola wrote:

Hi all,

I have a file I need in my bsd box, would it be easier, or is it possible, to mount an 
NTFS share , or should I try to map a directory from the windows box.


TIA,

I have 


Xp
Win7
Win2003 
Win2008 
Freebsd 6.4


thanx   





Sounds like all your PCs are on a private LAN and this file you want 
access to will only be accessed from the LAN. I have the same setup and 
exchange files between Windows PCs and Freebsd using FTP. I enable the 
builtin FTP server in /etc/inetd.conf. Close FTP's ports to the public 
internet in the firewall. Then run a free shareware FTP client on the 
windows PC or just use the windows internet browser to target the 
Freebsd ftp server. The shareware FTP client method lets me exchange 
both ways, (move a file from win to fbsd and fbsd to win) The windows 
internet browser method is one direction only, (from fbsd to win). I set 
the FTP server up as anonymous so all LAN PCs can download and upload to 
each other using the FTP server as a post and forward service.

___
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: port 22: connection refuused

2010-05-06 Thread Tim Daneliuk
 On 5/6/2010 4:41 PM, Tim Daneliuk wrote:
SNIP

 pl 14:20 tao [5036] ssh zen
 ssh: connect to host zen port 22: Connection refused
 pl 14:20 tao [5037] ssh - zen
 OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
 debug1: Reading configuration data /etc/ssh/ssh_config
 debug2: ssh_connect: needpriv 0
 debug1: Connecting to zen [10.47.0.190] port 22.
 debug1: connect to address 10.47.0.190 port 22: Connection
 refused
 ssh: connect to host zen port 22: Connection refused
 pl 14:22 tao [5038]

 any idea what the ``needpriv 0'' means?


The more I look at this, the more it looks to me like your sshd is not
running at all, isn't running on port 22, or is being blocked by some
kind of firewall.  Just for snicks, I tried to ssh to a machine on our
network that I know does not have an ssh daemon running.  Look at the
results:

  ssh -v sylvester
  OpenSSH_5.4p1 FreeBSD-20100308, OpenSSL 0.9.8k 25 Mar 2009
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug2: ssh_connect: needpriv 0
  debug1: Connecting to sylvester.tundraware.com [192.168.0.102] port 22.
  debug1: connect to address 192.168.0.102 port 22: Connection refused
  ssh: connect to host sylvester.tundraware.com port 22: Connection refused

Look familiar?  :-)

P.S. You are running a VERY old version of OpenSSH.  I believe there
were significant security problems back that far.


Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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


grub2 not in ports?

2010-05-06 Thread C. P. Ghost
Hello,

has someone successfully ported GRUB2[1] to FreeBSD/i386
and FreeBSD/amd64? I see no port sysutils/grub2 in the tree,
even though I know that GRUB2 *can* boot FreeBSD directly
and via chain-loading.

And while we're at it, I'm wondering if there is an effort underway
to make the kernel multiboot-compliant... maybe like NetBSD[2]?

[1]: ftp://alpha.gnu.org/gnu/grub/grub-1.98.tar.gz
[2]: http://mail-index.netbsd.org/port-i386/2010/01/09/msg001747.html

Thanks,
-cpghost.

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


Re: ssh: port 22: connection refuused

2010-05-06 Thread Gary Kline
On Thu, May 06, 2010 at 04:48:30PM -0500, Tim Daneliuk wrote:
 On 5/6/2010 4:41 PM, Tim Daneliuk wrote:
  On 5/6/2010 4:35 PM, Gary Kline wrote:
  On Thu, May 06, 2010 at 12:32:18PM -0500, Tim Daneliuk wrote:
  On 5/6/2010 12:21 PM, Gary Kline wrote:
 
  can anybody help me with ne of my last problems: getting ssh Into
  my new comuter?  i am able to ssh outside.  need to scp my config
  files over.
 
  sshd is running on zen
 
 
 
  This generally involves two or three steps:
 
  1) Make sure /etc/rc.conf has this in it:
 
 sshd_enable=YES
 
 Yes; this was my first try.  no diff.
 
  2) Make sure /etc/hosts.allow permits access
 to your machine via ssh.  Something like this:
 
   sshd: 192.168. a_host-name.com an.ip.add.ress  :ALLOW
 
 Some people do this:
 
   sshd: ALL :ALLOW
 
 That's fine if the machine sits on a trusted LAN, but I don't
 much like this for machines that are internet-facing ... it
 just provides another vector for attack.  So, for such machines,
 I explicitly name the address and names that are permitted ssh access.
 
 ok. itried this; have not rebooted yet.  no difference right
 now.
 
 
  3) If you're running a firewall, make sure that the sshd ports
 (22/tcp and 22/udp) are open for those machines/addresses
 you want to connect into your FreeBSD box.
 
 
 
 i'm runnning a pfSense computer; pretty sure that things are
 sett correctly there.
 
 
  If you are still having trouble,  go to the client machine
  and invoke your session like this:
 
ssh -v your_freebsd_machine
 
 
 the files in /etc/ssh were the first thing i thought of
 editing.  didn't see many differences between rel 8.0 and my 
 current 7.3.  still, here is the verbose output.
 
 
  pl 14:20 tao [5036] ssh zen
  ssh: connect to host zen port 22: Connection refused
  pl 14:20 tao [5037] ssh - zen
  OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug2: ssh_connect: needpriv 0
  debug1: Connecting to zen [10.47.0.190] port 22.
  debug1: connect to address 10.47.0.190 port 22: Connection
  refused
  ssh: connect to host zen port 22: Connection refused
  pl 14:22 tao [5038]
 
 any idea what the ``needpriv 0'' means?
 
 
 
  
  
  What's in your /etc/hosts.allow file?
  
 
 
 Oh ... one other thing ... make sure sshd is actually running.
 If you changed the /etc/rc.conf enable line without either rebooting
 or doing a kill -HUP 1, you may not have a running daemon.
 

i'm like 9.99-bar % sure sshd is up; i did ti the long way by
sh /etc/rc.d/ssh restart 
and so it has to have exec.  i  just poked around on google
and there is some noise about ssh failing from outside.  

i'm downloading a cd of 8.0 (i386)! of the Real-Thing: freebsd.
it should be about an hour.  the main//only reason i messed
with linux was that for reasons unknown [completely], FBSD
messed up on streams.  but in just the past several weeks i'm
able to play audio and video streams here on my old '03 Dell.
i've got 7.3 here, but using firefox3: yes.  i use konqueror
because it has text/speech builtin.  on the kde4, i see that 
konq4 seems ready to play streams.  nutshell, no more going
to/fro.
 
 -- 
 
 Tim Daneliuk tun...@tundraware.com
 PGP Key: http://www.tundraware.com/PGP/
 
 ___
 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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: port 22: connection refuused

2010-05-06 Thread Gary Kline
On Thu, May 06, 2010 at 06:20:47PM -0500, Tim Daneliuk wrote:
  On 5/6/2010 4:41 PM, Tim Daneliuk wrote:
 SNIP
 
  pl 14:20 tao [5036] ssh zen
  ssh: connect to host zen port 22: Connection refused
  pl 14:20 tao [5037] ssh - zen
  OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug2: ssh_connect: needpriv 0
  debug1: Connecting to zen [10.47.0.190] port 22.
  debug1: connect to address 10.47.0.190 port 22: Connection
  refused
  ssh: connect to host zen port 22: Connection refused
  pl 14:22 tao [5038]
 
any idea what the ``needpriv 0'' means?
 
 
 The more I look at this, the more it looks to me like your sshd is not
 running at all, isn't running on port 22, or is being blocked by some
 kind of firewall.  Just for snicks, I tried to ssh to a machine on our
 network that I know does not have an ssh daemon running.  Look at the
 results:
 
   ssh -v sylvester
   OpenSSH_5.4p1 FreeBSD-20100308, OpenSSL 0.9.8k 25 Mar 2009
   debug1: Reading configuration data /etc/ssh/ssh_config
   debug2: ssh_connect: needpriv 0
   debug1: Connecting to sylvester.tundraware.com [192.168.0.102] port 22.
   debug1: connect to address 192.168.0.102 port 22: Connection refused
   ssh: connect to host sylvester.tundraware.com port 22: Connection refused
 
 Look familiar?  :-)


just very slightly!!  i'll grep for sshd from the output of ps.
stranger things, etc, etc.


 
 P.S. You are running a VERY old version of OpenSSH.  I believe there
 were significant security problems back that far.

i'm using whatever is bundled in the 7.3 release.  in ports
its v1.2.33_5 ...


 
 
 Tim Daneliuk tun...@tundraware.com
 PGP Key: http://www.tundraware.com/PGP/
 
 ___
 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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: Addition to BSDstats

2010-05-06 Thread Fbsd1

Marc G. Fournier wrote:

On Thu, 6 May 2010, Robert Huff wrote:



 The problem with not including bsdstats in sysinstall or some
 other means of bringing it to peoples attention is that it gets
 forgotten and loses its effectiveness. Maybe it could go in the 

  monthly subscription list reminder.





I think everyone agrees that bsdstats needs more visibility right from 
the virgin install. Since its not appropriate to include bsdstats in the 
sysinstall program. How about getting the RELEASE team to change the 
content of the default logon message of the day /etc/motd, to advocacy 
installing the bsdstats package. What do you think about this idea?

___
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


where can i dl freebsd?

2010-05-06 Thread Gary Kline

guys, i have tried EVERYTHING i can think of to ssh into my
laptop, 10.47.0.190 ; no joy.  i can ping the IP, and the
resident /usr/snin/sshd is running, but nada.  time to load the
Real Think.

where can i grab 8.0  or even 7.3  for the i386?  c CD doesn't
seem to boot; so i need a dvd

tia,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: where can i dl freebsd?

2010-05-06 Thread Brian Callahan
Check the FreeBSD website? There have been DVD releases since 7.1-RELEASE,
if my memory serves.
___
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: port 22: connection refuused

2010-05-06 Thread Gary Kline
On Thu, May 06, 2010 at 04:41:21PM -0500, Tim Daneliuk wrote:
 On 5/6/2010 4:35 PM, Gary Kline wrote:
  On Thu, May 06, 2010 at 12:32:18PM -0500, Tim Daneliuk wrote:
  On 5/6/2010 12:21 PM, Gary Kline wrote:
 
  can anybody help me with ne of my last problems: getting ssh Into
  my new comuter?  i am able to ssh outside.  need to scp my config
  files over.
 
  sshd is running on zen
 
 
 
  This generally involves two or three steps:
 
  1) Make sure /etc/rc.conf has this in it:
 
 sshd_enable=YES
  
  Yes; this was my first try.  no diff.
 
  2) Make sure /etc/hosts.allow permits access
 to your machine via ssh.  Something like this:
 
   sshd: 192.168. a_host-name.com an.ip.add.ress  :ALLOW
 
 Some people do this:
 
   sshd: ALL :ALLOW
 
 That's fine if the machine sits on a trusted LAN, but I don't
 much like this for machines that are internet-facing ... it
 just provides another vector for attack.  So, for such machines,
 I explicitly name the address and names that are permitted ssh access.
  
  ok. itried this; have not rebooted yet.  no difference right
  now.
  
 
  3) If you're running a firewall, make sure that the sshd ports
 (22/tcp and 22/udp) are open for those machines/addresses
 you want to connect into your FreeBSD box.
 
  
  
  i'm runnning a pfSense computer; pretty sure that things are
  sett correctly there.
  
 
  If you are still having trouble,  go to the client machine
  and invoke your session like this:
 
ssh -v your_freebsd_machine
 
  
  the files in /etc/ssh were the first thing i thought of
  editing.  didn't see many differences between rel 8.0 and my 
  current 7.3.  still, here is the verbose output.
  
  
  pl 14:20 tao [5036] ssh zen
  ssh: connect to host zen port 22: Connection refused
  pl 14:20 tao [5037] ssh - zen
  OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug2: ssh_connect: needpriv 0
  debug1: Connecting to zen [10.47.0.190] port 22.
  debug1: connect to address 10.47.0.190 port 22: Connection
  refused
  ssh: connect to host zen port 22: Connection refused
  pl 14:22 tao [5038]
  
  any idea what the ``needpriv 0'' means?
  
  
  
 
 
 What's in your /etc/hosts.allow file?



# Start by allowing everything (this prevents the rest of the file
# from working, so remove it when you need protection).
# The rules here work on a First match wins basis.
ALL : ALL : allow

that i moused and pasted from my main desktop.


 
 
  It will barf out a bunch of interesting information about why the 
  connection
  isn't working that may help you figure out what's going on.
 
  Happy Trails,
 
  
  Tim Daneliuk tun...@tundraware.com
  PGP Key: http://www.tundraware.com/PGP/
 
  ___
  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
  
 
 
 -- 
 
 Tim Daneliuk tun...@tundraware.com
 PGP Key: http://www.tundraware.com/PGP/
 
 ___
 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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: where can i dl freebsd?

2010-05-06 Thread Gary Kline
On Fri, May 07, 2010 at 12:44:24AM -0400, Brian Callahan wrote:
 Check the FreeBSD website? There have been DVD releases since 7.1-RELEASE,
 if my memory serves.


i'll check again; couldn't find it...



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: port 22: connection refuused

2010-05-06 Thread Tim Daneliuk
On 5/7/2010 12:13 AM, Gary Kline wrote:
SNIP


 What's in your /etc/hosts.allow file?
 
 
 
 # Start by allowing everything (this prevents the rest of the file
 # from working, so remove it when you need protection).
 # The rules here work on a First match wins basis.
 ALL : ALL : allow
 
   that i moused and pasted from my main desktop.
 
 

OK and you've indicated that sshd is running.  A few other thoughts:

1) Is there a firewall running on your machine that could be preventing
   the connection?

2) Is there a firewall running on your *client* machine that could
   be interfering.

3) Log into the FreeBSD machine and see if you can ssh to localhost
   to just to confirm that sshd is working.  If that works, try sshing
   to the same machine using its IP, and then its address to make sure
   DNS is resolving properly.

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: where can i dl freebsd?

2010-05-06 Thread Balázs Mátéffy
Hi,

I smell something fishy here, but whatever, here's a link to the gzipped 8.0
DVD ISO:

ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/8.0/8.0-RELEASE-i386-dvd1.iso.gz

7.3:

ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.3/FreeBSD-7.3-RELEASE-i386-dvd1.iso.gz



On 7 May 2010 07:15, Gary Kline kl...@thought.org wrote:

 On Fri, May 07, 2010 at 12:44:24AM -0400, Brian Callahan wrote:
  Check the FreeBSD website? There have been DVD releases since
 7.1-RELEASE,
  if my memory serves.


 i'll check again; couldn't find it...



 --
  Gary Kline  kl...@thought.org  http://www.thought.org  Public Service
 Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

 ___
 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: Syncache problem in FreeBSD 7.3-PRERELEASE

2010-05-06 Thread Zhenkai Zhu
Sorry for the spam. A correction: the message does NOT only appear when 
I make my code. I copied several here:


May  6 21:50:06 raptors kernel: TCP: [131.179.96.24]:660 to 
[131.179.96.25]:2049 tcpflags 0x10ACK; syncache_expand: Segment failed 
SYNCOOKIE authentication, segment rejected (probably spoofed)

May  6 21:59:00 raptors ntpd[876]: kernel time sync status change 6001
May  6 22:06:48 raptors kernel: TCP: [131.179.96.24]:669 to 
[131.179.96.25]:2049 tcpflags 0x10ACK; syncache_expand: Segment failed 
SYNCOOKIE authentication, segment rejected (probably spoofed)
May  6 22:10:26 raptors kernel: TCP: [131.179.96.24]:743 to 
[131.179.96.25]:2049 tcpflags 0x10ACK; syncache_expand: Segment failed 
SYNCOOKIE authentication, segment rejected (probably spoofed)
May  6 22:11:48 raptors kernel: TCP: [131.179.96.24]:611 to 
[131.179.96.25]:2049 tcpflags 0x10ACK; syncache_expand: Segment failed 
SYNCOOKIE authentication, segment rejected (probably spoofed)
May  6 22:26:03 raptors kernel: TCP: [131.179.96.24]:665 to 
[131.179.96.25]:2049 tcpflags 0x10ACK; syncache_expand: Segment failed 
SYNCOOKIE authentication, segment rejected (probably spoofed)
May  6 22:35:46 raptors kernel: TCP: [131.179.96.24]:708 to 
[131.179.96.25]:2049 tcpflags 0x10ACK; syncache_expand: Segment failed 
SYNCOOKIE authentication, segment rejected (probably spoofed)


Zhenkai



On 05/06/2010 10:40 PM, Zhenkai Zhu wrote:

Hi,

I'm experiencing some problem of syncache (probably).

We have a NFS server which exports everyone's home directory, and I'm 
developing my Qualnet code on another machine (NFS client) under my 
home directory. However, when I make my code, linking takes extremely 
long time (it takes more than 5 minutes while on my laptop it only 
takes 15 seconds). I examed the /var/log/messages on the NFS server 
and it was like this:


May 6 19:51:49 raptors kernel: TCP: [131.179.96.24]:985 to 
[131.179.96.25]:2049 tcpflags 0x10ACK; syncache_expand: Segment 
failed SYNCOOKIE authentication, segment rejected (probably spoofed)


The above message appears every time I make my code ( and only when I 
make my code). I turned on linux binary compatiblity on the NFS client 
because Qualnet needs to be run in that mode.


Here are some more details:  both the NFS server and client  are amd64 
machines. The server has 8 cpus and the client has 16 cpus.


Any one can help me out? Thanks!!!

Zhenkai

For detail info for the NFS server is as following:

kern.ostype: FreeBSD
kern.osrelease: 7.3-PRERELEASE
kern.osrevision: 199506
kern.version: FreeBSD 7.3-PRERELEASE #0: Tue Feb  9 12:59:50 PST 2010
r...@raptors.cs.ucla.edu:/usr/obj/usr/src/sys/RAPTORS

kern.maxvnodes: 10
kern.maxproc: 6164
kern.maxfiles: 12328
kern.argmax: 262144
kern.securelevel: 2
kern.hostname: raptors.cs.ucla.edu
kern.hostid: 2180312168
kern.clockrate: { hz = 1000, tick = 1000, profhz = 2000, stathz = 133 }
kern.posix1version: 200112
kern.ngroups: 16
kern.job_control: 1
kern.saved_ids: 0
kern.boottime: { sec = 1267039765, usec = 441091 } Wed Feb 24 11:29:25 
2010

kern.domainname: uclairlnew
kern.osreldate: 702106
kern.bootfile: /boot/kernel/kernel
kern.maxfilesperproc: 11095
~/info 2185L, 121063C
kern.bootfile: /boot/kernel/kernel
kern.maxfilesperproc: 11095
kern.maxprocperuid: 5547
kern.ipc.maxsockbuf: 262144
kern.ipc.sockbuf_waste_factor: 8
kern.ipc.somaxconn: 128
kern.ipc.max_linkhdr: 16
kern.ipc.max_protohdr: 60
kern.ipc.max_hdr: 76
kern.ipc.max_datalen: 100
kern.ipc.nmbjumbo16: 3200
kern.ipc.nmbjumbo9: 6400
kern.ipc.nmbjumbop: 12800
kern.ipc.nmbclusters: 25600
kern.ipc.piperesizeallowed: 1
kern.ipc.piperesizefail: 0
kern.ipc.pipeallocfail: 0
kern.ipc.pipefragretry: 0
kern.ipc.pipekva: 16384
kern.ipc.maxpipekva: 103321600
kern.ipc.msgseg: 2048
kern.ipc.msgssz: 8
kern.ipc.msgtql: 40

kern.ipc.msgssz: 8
kern.ipc.msgtql: 40
kern.ipc.msgmnb: 2048
kern.ipc.msgmni: 40
kern.ipc.msgmax: 16384
kern.ipc.semaem: 16384
kern.ipc.semvmx: 32767
kern.ipc.semusz: 152
kern.ipc.semume: 10
kern.ipc.semopm: 100
kern.ipc.semmsl: 60
kern.ipc.semmnu: 30
kern.ipc.semmns: 60
kern.ipc.semmni: 10
kern.ipc.semmap: 30
kern.ipc.shm_allow_removed: 0
kern.ipc.shm_use_phys: 0
kern.ipc.shmall: 8192
kern.ipc.shmseg: 128
kern.ipc.shmmni: 192
kern.ipc.shmmin: 1
kern.ipc.shmmax: 33554432
kern.ipc.maxsockets: 25600

kern.ipc.shmmax: 33554432
kern.ipc.maxsockets: 25600
kern.ipc.numopensockets: 74
kern.ipc.nsfbufsused: 0
kern.ipc.nsfbufspeak: 0
kern.ipc.nsfbufs: 0
kern.dummy: 0
kern.ps_strings: 140737488355296
kern.usrstack: 140737488355328
kern.logsigexit: 1
kern.iov_max: 1024
kern.hostuuid: 00020003-0004-0005-0006-000700080009
kern.cam.cam_srch_hi: 0
kern.cam.scsi_delay: 5000
kern.cam.cd.retry_count: 4
kern.cam.cd.changer.max_busy_seconds: 15
kern.cam.cd.changer.min_busy_seconds: 5
kern.cam.da.da_send_ordered: 1
kern.cam.da.default_timeout: 60
kern.cam.da.retry_count: 4
kern.cam.da.0.minimum_cmd_size: 6
kern.cam.da.1.minimum_cmd_size: 6
kern.cam.da.2.minimum_cmd_size: 6


Syncache problem in FreeBSD 7.3-PRERELEASE

2010-05-06 Thread Zhenkai Zhu

Hi,

I'm experiencing some problem of syncache (probably).

We have a NFS server which exports everyone's home directory, and I'm 
developing my Qualnet code on another machine (NFS client) under my home 
directory. However, when I make my code, linking takes extremely long 
time (it takes more than 5 minutes while on my laptop it only takes 15 
seconds). I examed the /var/log/messages on the NFS server and it was 
like this:


May 6 19:51:49 raptors kernel: TCP: [131.179.96.24]:985 to 
[131.179.96.25]:2049 tcpflags 0x10ACK; syncache_expand: Segment failed 
SYNCOOKIE authentication, segment rejected (probably spoofed)


The above message appears every time I make my code ( and only when I 
make my code). I turned on linux binary compatiblity on the NFS client 
because Qualnet needs to be run in that mode.


Here are some more details:  both the NFS server and client  are amd64 
machines. The server has 8 cpus and the client has 16 cpus.


Any one can help me out? Thanks!!!

Zhenkai

For detail info for the NFS server is as following:

kern.ostype: FreeBSD
kern.osrelease: 7.3-PRERELEASE
kern.osrevision: 199506
kern.version: FreeBSD 7.3-PRERELEASE #0: Tue Feb  9 12:59:50 PST 2010
r...@raptors.cs.ucla.edu:/usr/obj/usr/src/sys/RAPTORS

kern.maxvnodes: 10
kern.maxproc: 6164
kern.maxfiles: 12328
kern.argmax: 262144
kern.securelevel: 2
kern.hostname: raptors.cs.ucla.edu
kern.hostid: 2180312168
kern.clockrate: { hz = 1000, tick = 1000, profhz = 2000, stathz = 133 }
kern.posix1version: 200112
kern.ngroups: 16
kern.job_control: 1
kern.saved_ids: 0
kern.boottime: { sec = 1267039765, usec = 441091 } Wed Feb 24 11:29:25 2010
kern.domainname: uclairlnew
kern.osreldate: 702106
kern.bootfile: /boot/kernel/kernel
kern.maxfilesperproc: 11095
~/info 2185L, 121063C
kern.bootfile: /boot/kernel/kernel
kern.maxfilesperproc: 11095
kern.maxprocperuid: 5547
kern.ipc.maxsockbuf: 262144
kern.ipc.sockbuf_waste_factor: 8
kern.ipc.somaxconn: 128
kern.ipc.max_linkhdr: 16
kern.ipc.max_protohdr: 60
kern.ipc.max_hdr: 76
kern.ipc.max_datalen: 100
kern.ipc.nmbjumbo16: 3200
kern.ipc.nmbjumbo9: 6400
kern.ipc.nmbjumbop: 12800
kern.ipc.nmbclusters: 25600
kern.ipc.piperesizeallowed: 1
kern.ipc.piperesizefail: 0
kern.ipc.pipeallocfail: 0
kern.ipc.pipefragretry: 0
kern.ipc.pipekva: 16384
kern.ipc.maxpipekva: 103321600
kern.ipc.msgseg: 2048
kern.ipc.msgssz: 8
kern.ipc.msgtql: 40

kern.ipc.msgssz: 8
kern.ipc.msgtql: 40
kern.ipc.msgmnb: 2048
kern.ipc.msgmni: 40
kern.ipc.msgmax: 16384
kern.ipc.semaem: 16384
kern.ipc.semvmx: 32767
kern.ipc.semusz: 152
kern.ipc.semume: 10
kern.ipc.semopm: 100
kern.ipc.semmsl: 60
kern.ipc.semmnu: 30
kern.ipc.semmns: 60
kern.ipc.semmni: 10
kern.ipc.semmap: 30
kern.ipc.shm_allow_removed: 0
kern.ipc.shm_use_phys: 0
kern.ipc.shmall: 8192
kern.ipc.shmseg: 128
kern.ipc.shmmni: 192
kern.ipc.shmmin: 1
kern.ipc.shmmax: 33554432
kern.ipc.maxsockets: 25600

kern.ipc.shmmax: 33554432
kern.ipc.maxsockets: 25600
kern.ipc.numopensockets: 74
kern.ipc.nsfbufsused: 0
kern.ipc.nsfbufspeak: 0
kern.ipc.nsfbufs: 0
kern.dummy: 0
kern.ps_strings: 140737488355296
kern.usrstack: 140737488355328
kern.logsigexit: 1
kern.iov_max: 1024
kern.hostuuid: 00020003-0004-0005-0006-000700080009
kern.cam.cam_srch_hi: 0
kern.cam.scsi_delay: 5000
kern.cam.cd.retry_count: 4
kern.cam.cd.changer.max_busy_seconds: 15
kern.cam.cd.changer.min_busy_seconds: 5
kern.cam.da.da_send_ordered: 1
kern.cam.da.default_timeout: 60
kern.cam.da.retry_count: 4
kern.cam.da.0.minimum_cmd_size: 6
kern.cam.da.1.minimum_cmd_size: 6
kern.cam.da.2.minimum_cmd_size: 6

kern.cam.da.1.minimum_cmd_size: 6
kern.cam.da.2.minimum_cmd_size: 6
kern.cam.da.3.minimum_cmd_size: 6
kern.cam.da.4.minimum_cmd_size: 6
kern.cam.da.5.minimum_cmd_size: 6
kern.cam.da.6.minimum_cmd_size: 6
kern.cam.da.7.minimum_cmd_size: 6
kern.cam.da.8.minimum_cmd_size: 6
kern.cam.da.9.minimum_cmd_size: 6
kern.cam.da.10.minimum_cmd_size: 6
kern.cam.da.11.minimum_cmd_size: 6
kern.dcons.poll_hz: 100
kern.disks: da11 da10 da9 da8 da7 da6 da5 da4 da3 da2 da1 da0
kern.geom.collectstats: 1
kern.geom.debugflags: 0
kern.geom.label.debug: 0
kern.elf64.fallback_brand: -1
kern.init_shutdown_timeout: 120
kern.init_path: 
/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init:/stand/sysinstall

kern.acct_suspended: 0
kern.acct_configured: 0
kern.acct_chkfreq: 15

kern.acct_configured: 0
kern.acct_chkfreq: 15
kern.acct_resume: 4
kern.acct_suspend: 2






___
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