RE: Firefox won't start

2008-09-19 Thread Wayne Sierke
On Thu, 2008-09-18 at 16:25 -0400, Joe Tseng wrote:
 You got it!!!  I type in firefox3 in the terminal and the prompt comes 
 right back.
 
Does it run sufficiently to return a version?

%firefox3 -version
Mozilla Firefox 3.0.1, Copyright (c) 1998 - 2008 mozilla.org

Try starting firefox in safe mode: 

%firefox3 -safe-mode

Use the -help option to see other command-line options:

%firefox3 -help

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


Re: mount msdosfs with hal

2008-09-19 Thread Dominique Goncalves
Hi,

On Fri, Sep 19, 2008 at 1:58 AM, ronggui [EMAIL PROTECTED] wrote:
 Dear all,

 I want to use hal to auttomount the windows fat32 partition with
 gnome. after setting gnome_enable=YES, hal automount it, but there
 is a problem. hal seems to execute mount_msdosfs /dev/xxx
 /mountpoint, so the encoding is not handled correctly.
 If I mount it manually, it should be mount_msdosfs -D=CP936
 -L=zh_CN.eucCN /dev/xxx /mountpoint. So my question is how to set the
 things right? I think I need to modify some fdi files, but just can
 not figure out.

You need to add '-L=zh_CN.eucCN'  in
/system/storage/default_options/vfat/mount_options with gedit.
I use this key to add '-o large' to mount correctly my msdosfs
partition of  500GB and it works.

Hope this helps


 Thanks in advance. Best


 --
 HUANG Ronggui, Wincent
 Tel: (00852) 3442 3832
 Ph.D. Candidate, CityU of HK
 Master of sociology, Fudan University, China
 Bachelor of Social Work, Fudan University, China
 Personal homepage: http://ronggui.huang.googlepages.com/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


Regards.

-- 
There's this old saying: Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OO 2.4.1 package problem

2008-09-19 Thread Mike Clarke
On Thursday 18 September 2008, Ghirai wrote:

 Alright, installed from ports, and it's working as it should.
 And it only took about 4 hours.

Four hours sounds very good. Out of curiosity what hardware was that on? 
When I tried a bit over a year ago it ran for nearly 2 days before 
failing with an error. That was on a low powered system with a Duron 
1600 and only 750 MB memory. Now that I've got a 2.5GHz Athlon X2 4850e 
and 2 GB memory it might be worth another try.

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


Re: NTP on 7.1 BETA amd64 odd behaviour

2008-09-19 Thread Oliver Fromme
Mel [EMAIL PROTECTED] wrote:
  On Thursday 18 September 2008 16:44:40 Nash Nipples wrote:
   thanks for the new /etc/rc.d/ntpd
   ...
   
rc_flags=-c ${ntpd_config} ${ntpd_flags}
   
   ...
   what we can learn from it is that on 7.1 BETA your rc.conf.local file
   should look like this
   
   ntpd_config=/etc/ntpd.conf
   ntpd_flags=-p /var/run/ntpd.pid
   
   hope that explains
   Nash
  
  Almost.
  Look at /etc/defaults/rc.conf:
  ntpd_config=/etc/ntp.conf # ntpd(8) configuration file
  ntpd_sync_on_start=NO # Sync time on ntpd startup, even if offset 
  is 
  high
  ntpd_flags=-p /var/run/ntpd.pid -f /var/db/ntpd.drift
  # Flags to ntpd (if enabled).
  
  99% of the cases you don't need ntpd_flags. Only if you want the drift file 
  in 
  a different location or use one of the more obscure options.

In fact it might even be considered a bug that
-f /var/db/ntpd.drift is included in the default
flags.  If someone wants to override the default
location of the drift file, it is much better to
specify it in the ntp.conf file.

Best regards
   Oliver

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

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

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


Re: OO 2.4.1 package problem

2008-09-19 Thread Ghirai
On Fri, 19 Sep 2008 09:33:05 +0100
Mike Clarke [EMAIL PROTECTED] wrote:

 On Thursday 18 September 2008, Ghirai wrote:
 
  Alright, installed from ports, and it's working as it should.
  And it only took about 4 hours.
 
 Four hours sounds very good. Out of curiosity what hardware was that
 on? When I tried a bit over a year ago it ran for nearly 2 days
 before failing with an error. That was on a low powered system with a
 Duron 1600 and only 750 MB memory. Now that I've got a 2.5GHz Athlon
 X2 4850e and 2 GB memory it might be worth another try.
 
 -- 
 Mike Clarke


I'm running an Intel C2D E6550 at 2.33GHz, but i overclocked it to
3.1GHz, and 2GB of RAM.

I had all the dependencies already in place from the package install
attempt (including Diablo JDK and SDK, which i installed from packages
btw), so 4 hours was just the OO port itself.

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


Re: FreeBSD installation doesn't work

2008-09-19 Thread Oliver Fromme
Matthew Seaman wrote:
  Mel wrote:
   that's aside from the fact that the root partition '/' always has to be 
   the 
   first partition, for the simple reason that everything else is mounted on 
   top 
   of it.
  
  It's not the partition device names that determine the mount order, but
  the order of the entries in /etc/fstab.

Actually not even the order in /etc/fstab matters.  You can
place the root file system last and it will still work.
The important thing is that the root file system must be
partition a in the label, because this is hardcoded in
the boot loader (and probably in a few other places, too).

The boot loader then hands the location of the root file
system to the kernel.  (However, it is possible to override
it, so in fact you can have a root file system different
from the file system containing /boot.  This is how booting
with rootfs on ZFS works.)

Later in the process, the /etc/rc script (and its children
in /etc/rc.d/*) uses information from /etc/fstab to locate
the root file system for fsck and to remount it read/write.
Of course it is identified by its mountpoint (/), not by
the position of the entry within /etc/fstab.

So the order in /etc/fstab really doesn't matter.
Just make sure that your root file system is partition a.

Best regards
   Oliver

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

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

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


buildworld error with 7.1 BETA

2008-09-19 Thread Leslie Jensen

make -j 4 buildworld

gives after a while the following

gzip -cn /usr/src/usr.sbin/zic/zdump/../zdump.8  zdump.8.gz
cc -O2 -fno-strict-aliasing -pipe  -DTM_GMTOFF=tm_gmtoff 
-DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS -DHAVE_LONG_DOUBLE 
-DTZDIR=\/usr/share/zoneinfo\ -Demkdir=mkdir 
-I/usr/src/usr.sbin/zic/zdump/.. 
-I/usr/src/usr.sbin/zic/zdump/../../../lib/libc/stdtime   -o zdump 
zdump.o ialloc.o scheck.o

=== usr.sbin/zzz (all)
gzip -cn /usr/src/usr.sbin/zzz/zzz.8  zzz.8.gz
1 error
*** Error code 2
1 error
*** Error code 2
1 error

Suggestions?

/Leslie

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


Re: buildworld error with 7.1 BETA

2008-09-19 Thread Nash Nipples
 make -j 4 buildworld
 
 gives after a while the following
 
 gzip -cn /usr/src/usr.sbin/zic/zdump/../zdump.8 
 zdump.8.gz
 cc -O2 -fno-strict-aliasing -pipe  -DTM_GMTOFF=tm_gmtoff 
 -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS -DHAVE_LONG_DOUBLE 
 -DTZDIR=\/usr/share/zoneinfo\
 -Demkdir=mkdir 
 -I/usr/src/usr.sbin/zic/zdump/.. 
 -I/usr/src/usr.sbin/zic/zdump/../../../lib/libc/stdtime  
 -o zdump 
 zdump.o ialloc.o scheck.o
 === usr.sbin/zzz (all)
 gzip -cn /usr/src/usr.sbin/zzz/zzz.8  zzz.8.gz
 1 error
 *** Error code 2
 1 error
 *** Error code 2
 1 error
 
 Suggestions?
 
 /Leslie
 

i could almost see this coming. seems pretty much like hardware. 

just try to run make one more time. not cleaning anything just type the same 
make command after fail without extra activity. 

if it fails again check if you have filled your disks up and you might want to 
`ls /usr/src/usr.sbin/zzz/zzz.8` to see if its really there
 


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


Re: FreeBSD installation doesn't work

2008-09-19 Thread Oliver Fromme
Oliver Fromme [EMAIL PROTECTED] wrote:
  Matthew Seaman wrote:
   Mel wrote:
that's aside from the fact that the root partition '/' always has to be 
the 
first partition, for the simple reason that everything else is mounted 
on top 
of it.
   
   It's not the partition device names that determine the mount order, but
   the order of the entries in /etc/fstab.
  
  Actually not even the order in /etc/fstab matters.  You can
  place the root file system last and it will still work.

Uhm, just to be sure:  We are talking about the *root* file
system here.

Of course, the order of the *remaining* file systems in
/etc/fstab (without noauto flag) *does* matter, because
this is the order in which they are mounted by the RC
scripts.  Only the root file system is special.

Best regards
   Oliver

PS:  BTW, Mel, your email address doesn't work.  I get
bounces from your mail server.

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

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

People still program in C.  People keep writing shell scripts.  *Most*
people don't realize the shortcomings of the tools they are using because
they a) don't reflect on their workflows and they are b) too lazy to check
out alternatives to realize there is help. -- Simon 'corecode' Schubert
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: buildworld error with 7.1 BETA

2008-09-19 Thread Leslie Jensen



Nash Nipples skrev:

make -j 4 buildworld

gives after a while the following

gzip -cn /usr/src/usr.sbin/zic/zdump/../zdump.8 
zdump.8.gz
cc -O2 -fno-strict-aliasing -pipe  -DTM_GMTOFF=tm_gmtoff 
-DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS -DHAVE_LONG_DOUBLE 
-DTZDIR=\/usr/share/zoneinfo\
-Demkdir=mkdir 
-I/usr/src/usr.sbin/zic/zdump/.. 
-I/usr/src/usr.sbin/zic/zdump/../../../lib/libc/stdtime  
-o zdump 
zdump.o ialloc.o scheck.o

=== usr.sbin/zzz (all)
gzip -cn /usr/src/usr.sbin/zzz/zzz.8  zzz.8.gz
1 error
*** Error code 2
1 error
*** Error code 2
1 error

Suggestions?

/Leslie



i could almost see this coming. seems pretty much like hardware. 

just try to run make one more time. not cleaning anything just type the same make command after fail without extra activity. 


if it fails again check if you have filled your disks up and you might want to 
`ls /usr/src/usr.sbin/zzz/zzz.8` to see if its really there
 


It fails again!
Disks are not full and the file is there.

:df -H
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s4a520M224M254M47%/
devfs  1.0k1.0k  0B   100%/dev
/dev/ad4s4g 33G1.3G 29G 4%/home
/dev/ad4s4e520M 14k478M 0%/tmp
/dev/ad4s4f 52G5.5G 42G11%/usr
/dev/ad4s4d5.2G177M4.6G 4%/var

I had 7.0 on the machine before and when upgrading to 7.0-p4 everything 
went smootly. Do you really think it's hardware?


/Leslie


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


kernel upgrades

2008-09-19 Thread Joe Tseng

I'm still new to FreeBSD (coming from CentOS/Ubuntu) so this might be
something totally obvious to others...  I know I can update ports by using
portsnap fetch/extract/update - does this update the kernel source as well?
How do I apply this new code?

- Joe 


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


Re: Firefox won't start

2008-09-19 Thread Sergey Zaharchenko
Hello Joe!

Thu, Sep 18, 2008 at 03:21:11PM -0400 you wrote:

 I recently did a ports update and after a bit of effort I got firefox3
 to compile with no errors.  But now when I either select Firefox from
 the menu or start it from a terminal window nothing happens.  Firefox
 does not start and there's no indication of any problems.  When I use ps
 to see if it's hung I see nothing.  Ideas?

Been there. Destroying ~/.mozilla (which had the right permissions) did
it for me.

-- 
DoubleF
No virus detected in this message. Ehrm, wait a minute...
/kernel: pid 56921 (antivirus), uid 32000: exited on signal 9
Oh yes, no virus:)


pgpX0ReJ90N9Y.pgp
Description: PGP signature


Re: Mystical Server Shutdown.

2008-09-19 Thread matt donovan
On Thu, Sep 18, 2008 at 8:52 PM, Grant Peel [EMAIL PROTECTED] wrote:

 Hi H, and Matt, and all,

 I had instigated all.log, and here is what happened at 04:08 EDT this
 morning...any clues you see here?

 ...
 Sep 18 04:04:08 defiant named[601]: unexpected RCODE (SERVFAIL) resolving '
 examplewhole.com/NS/IN': 192.168.0.3#53
 Sep 18 04:08:14 defiant syslogd: restart
 Sep 18 04:08:14 defiant syslogd: kernel boot file is /boot/kernel/kernel
 Sep 18 04:08:14 defiant kernel: Copyright (c) 1992-2007 The FreeBSD
 Project.
 ...

 Lastlog shows nothing of note...


 mssclien ftp  bas7-london14-1  Thu Sep 18 08:58 - 09:04
  (00:05)
 reboot   ~ Thu Sep 18 04:08
 ringette ftp  CPE001310e9a482  Thu Sep 18 00:10 - 00:11
  (00:00)

 -Grant






 - Original Message - From: H.fazaeli [EMAIL PROTECTED]
 To: Grant Peel [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Sent: Thursday, September 18, 2008 5:31 AM
 Subject: Re: Mystical Server Shutdown.




 If you applied all the Matthew's suggestions and it is still a
 mystery, and if server's shutdown is clean, look for a
 a (buggy) user land process that sends SIGUSR2 signal
 to init(1).


 Matthew Seaman wrote:

 Grant Peel wrote:

 Hi all,

 I started getting watchmouse errors about on pf my servers not
 responding. There is a DRAC on the machine, and the sensor data was all
 good. When I got the machine back up and running, I seen this in lastlog:

 client1 ftp  hostname1here  Wed Sep 17 17:02 - shutdown
 (00:46)
 client2 ftp  hostname2here  Wed Sep 17 17:02 - shutdown
 (00:46)
 client2 ftp  hostname2here  Wed Sep 17 17:02 - shutdown
 (00:46)
 client3 ftp  hostname3here  Wed Sep 17 17:01 - 17:06 (00:04)


 Should I be worried about seeing 'shutdown' in an ftp line of last?


 That just means the ftp user was still logged in at the time the
 system shut down.

  If not, how would you suggest I find the process or program that issued
 the shutdown command?


 Read the system logs, basically.  /var/log/messages or /var/log/all.log
 (if you've enabled it).  The shutdown(8) command will always write
 syslog messages when invoked.  halt(8) or reboot(8) will write a
 'shutdown'
 record into wtmp (ie. look at 'last shutdown') but don't log anything
 to syslog.

 However, you're quite likely to find that there is nothing in the log
 or wtmp files to explain what happened.  All this means is that the
 system went down suddenly -- perhaps power dropped out momentarily, or
 a thermal cutout tripped or the system panic'd for one of any number of
 reasons.  You'ld be able to detect log file traces showing fsck(8)
 being run on the root f/s following any of those sort of unclean
 shutdowns, and if the system panic'd then you may well have a core dump
 sitting in /var/db/crash -- depends whether you've enabled that
 functionality or not.

Cheers,

Matthew


 --


 Best regards.

 Hooman Fazaeli [EMAIL PROTECTED]
 Sepehr S. T. Co. Ltd.

 Web: http://www.sepehrs.com
 Tel: (9821)88975701-2
 Fax: (9821)88983352




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



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

looks like this line looks like this line Sep 18 04:04:08 defiant
named[601]: unexpected RCODE (SERVFAIL) resolving 'examplewhole.com/NS/IN':
192.168.0.3#53 http://192.168.0.3/#53

and I really need to get off the gmail web interface
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel upgrades

2008-09-19 Thread Andreas Rudisch
On Fri, 19 Sep 2008 07:03:25 -0400
Joe Tseng [EMAIL PROTECTED] wrote:

 I know I can update ports by using portsnap fetch/extract/update - 
 does this update the kernel source as well?

No, it does not.

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

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


pgpRjcBSLa6w3.pgp
Description: PGP signature


Re: kernel upgrades

2008-09-19 Thread Ivan Voras
Joe Tseng wrote:
 I'm still new to FreeBSD (coming from CentOS/Ubuntu) so this might be
 something totally obvious to others...  I know I can update ports by using
 portsnap fetch/extract/update - does this update the kernel source as well?

No, you need to do two things:

1) copy /usr/share/examples/cvsup/standard-supfile somewhere, and edit
it to fetch the right version of the sources from the right server. If
you want to get exactly the version you have installed, you only need to
change the server. Look for the line starting with *default host= and
find a host near you from this page:
http://www.freebsd.org/doc/en/books/handbook/cvsup.html
2) run csup your-supfile - this will fetch kernel and base system
sources (note that utilities like ls, top, sendmail etc. are not
ports in FreeBSD; also note that the cvsup client integrated into the
base system in all recent versions of FreeBSD is csup not cvsup.

 How do I apply this new code?

Read here:
http://www.freebsd.org/doc/en/books/handbook/kernelconfig.html and
here:http://www.freebsd.org/doc/en/books/handbook/makeworld.html

In short:

# cd /usr/src
# make buildworld  make kernel  make installworld  mergemaster -U
 reboot




signature.asc
Description: OpenPGP digital signature


ipf filter by user/group

2008-09-19 Thread Yury Michurin
Hello,
I'm quite new to ipf, Is there an option of filtering packets by user/group?

What i want to accomplish is:
1. Block users from group 'users' to make outbound connections
2. Count traffic for users: alpha, beta, gamma

If i can't accomplish that with ipf, what other firewall you suggest?


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


ntpd and GPS

2008-09-19 Thread Tom Storey
Hi all,

Ive been toying with setting up my old Garmin GPS12 as a reference for a
server (FreeBSD 6.2) running ntpd, but Ive run into an issue.

Ive searched around a bit and cant find an answer, perhaps because there
isnt one.

Is there any way I can set ntpd to expect a $GPRMC string every 2 seconds,
which is the frequency at which the GPS12 transmits them?

Alternatively, does anyone know how to make the GPS12 transmit a $GPRMC
string every second?

If there is a better place I can post this, please let me know.

Thanks,
Tom

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


rsync colon in filename to MSWin fails

2008-09-19 Thread Anton Shterenlikht
I cannot trasfer a file with a colon via rsync to a Win box.
I've rsync-3.0.4 on the FBSD (sending side) and rsync-2.6.9
under cygwin on Win (receiving side). I'm not sure what the
error message means:

% rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]:
rsync: rename /cygdrive/c/Documents and Settings/mexas/My 
Documents/work/.http:__en.wikipedia.org_favicon.ico.8dBX2K - 
http:__en.wikipedia.org_favicon.ico: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 
23) at main.c(1040) [sender=3.0.4]

Note the extra dot before the file name, and extra suffix at the
end. Is this the expected behaviour?

However, to another FBSD box transfer is fine:

% rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]:
%

Is this something to do with Windows, or old rsync version on cygwin?

Even more bizzare, I get the same error even if I --exclude all
such files from transfer.

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 928 8233 
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 [EMAIL PROTECTED]


Re: ipf filter by user/group

2008-09-19 Thread Yury Michurin
Sorry for the mistake, i meant pf, the openbsd's packet filter.

On Fri, Sep 19, 2008 at 2:39 PM, Yury Michurin [EMAIL PROTECTED]wrote:

 Hello,
 I'm quite new to ipf, Is there an option of filtering packets by
 user/group?

 What i want to accomplish is:
 1. Block users from group 'users' to make outbound connections
 2. Count traffic for users: alpha, beta, gamma

 If i can't accomplish that with ipf, what other firewall you suggest?


 Thank you for your time,
 Yury.

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


PAM_AUTHTOK_RECOVER_ERR

2008-09-19 Thread Berk Gulenler
Hi,

I'm trying to install pam_ldap 1.84 to FreeBSD version 6.3 AMD64. But
I'm getting this error message from gmake compiler. I think the problem
is an undeclared function. About this any help would be appreciated.

Related log:

GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for amd64-portbld-freebsd6.3
Reading makefiles...
Reading makefile `Makefile'...
Reading makefile `.deps/md5.P' (search path) (don't care) (no ~
expansion)...
Reading makefile `.deps/pam_ldap.P' (search path) (don't care) (no ~
expansion)...
Updating makefiles
 Considering target file `.deps/pam_ldap.P'.
  File `.deps/pam_ldap.P' does not exist.
  Looking for an implicit rule for `.deps/pam_ldap.P'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/pam_ldap.P.S'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/pam_ldap.P.c'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/pam_ldap.P.o'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/pam_ldap.P.s'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/pam_ldap.P,v'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/RCS/pam_ldap.P,v'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/RCS/pam_ldap.P'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/s.pam_ldap.P'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/SCCS/s.pam_ldap.P'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/pam_ldap.P.S'.
  Looking for a rule with intermediate file `.deps/pam_ldap.P.S'.
   Avoiding implicit rule recursion.
   Trying pattern rule with stem `pam_ldap.P.S'.
   Trying implicit prerequisite `.deps/pam_ldap.P.S,v'.
   Trying pattern rule with stem `pam_ldap.P.S'.
   Trying implicit prerequisite `.deps/RCS/pam_ldap.P.S,v'.
   Trying pattern rule with stem `pam_ldap.P.S'.
   Trying implicit prerequisite `.deps/RCS/pam_ldap.P.S'.
   Trying pattern rule with stem `pam_ldap.P.S'.
   Trying implicit prerequisite `.deps/s.pam_ldap.P.S'.
   Trying pattern rule with stem `pam_ldap.P.S'.
   Trying implicit prerequisite `.deps/SCCS/s.pam_ldap.P.S'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/pam_ldap.P.c'.
  Looking for a rule with intermediate file `.deps/pam_ldap.P.c'.
   Avoiding implicit rule recursion.
   Trying pattern rule with stem `pam_ldap.P'.
   Trying implicit prerequisite `.deps/pam_ldap.P.w'.
   Trying pattern rule with stem `pam_ldap.P.c'.
   Trying implicit prerequisite `.deps/pam_ldap.P.c,v'.
   Trying pattern rule with stem `pam_ldap.P.c'.
   Trying implicit prerequisite `.deps/RCS/pam_ldap.P.c,v'.
   Trying pattern rule with stem `pam_ldap.P.c'.
   Trying implicit prerequisite `.deps/RCS/pam_ldap.P.c'.
   Trying pattern rule with stem `pam_ldap.P.c'.
   Trying implicit prerequisite `.deps/s.pam_ldap.P.c'.
   Trying pattern rule with stem `pam_ldap.P.c'.
   Trying implicit prerequisite `.deps/SCCS/s.pam_ldap.P.c'.
   Trying pattern rule with stem `pam_ldap.P'.
   Trying implicit prerequisite `.deps/pam_ldap.P.w'.
   Looking for a rule with intermediate file `.deps/pam_ldap.P.w'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `pam_ldap.P.w'.
Trying implicit prerequisite `.deps/pam_ldap.P.w,v'.
Trying pattern rule with stem `pam_ldap.P.w'.
Trying implicit prerequisite `.deps/RCS/pam_ldap.P.w,v'.
Trying pattern rule with stem `pam_ldap.P.w'.
Trying implicit prerequisite `.deps/RCS/pam_ldap.P.w'.
Trying pattern rule with stem `pam_ldap.P.w'.
Trying implicit prerequisite `.deps/s.pam_ldap.P.w'.
Trying pattern rule with stem `pam_ldap.P.w'.
Trying implicit prerequisite `.deps/SCCS/s.pam_ldap.P.w'.
  Trying pattern rule with stem `pam_ldap.P'.
  Trying implicit prerequisite `.deps/pam_ldap.P.o'.
  Looking for a rule with intermediate file `.deps/pam_ldap.P.o'.
   Avoiding implicit rule recursion.
   Trying pattern rule with stem `pam_ldap.P'.
   Rejecting impossible implicit prerequisite `.deps/pam_ldap.P.c'.
   Trying pattern rule with stem `pam_ldap.P'.
   Rejecting impossible implicit prerequisite `.deps/pam_ldap.P.S'.
   Trying pattern rule with stem `pam_ldap.P'.
   Trying implicit prerequisite `.deps/pam_ldap.P.s'.
   Trying pattern rule with stem `pam_ldap.P.o'.
   Trying implicit prerequisite `.deps/pam_ldap.P.o,v'.
   Trying pattern rule with stem `pam_ldap.P.o'.
   Trying implicit prerequisite `.deps/RCS/pam_ldap.P.o,v'.
   Trying pattern rule with stem `pam_ldap.P.o'.
   Trying implicit prerequisite `.deps/RCS/pam_ldap.P.o'.
   

Re: buildworld error with 7.1 BETA

2008-09-19 Thread Nash Nipples
  just try to run make one more time. not cleaning
 anything just type the same make command after fail without
 extra activity. 
  
  if it fails again check if you have filled your disks
 up and you might want to `ls /usr/src/usr.sbin/zzz/zzz.8` to
 see if its really there
   
 
 It fails again!
 Disks are not full and the file is there.

no its less likely to be a hardware error. there are cases when it breaks into 
an error and then after you restart the whole procedure it goes fine and breaks 
somewhere closer to finish.

i think you can try to update the source code once again. maybe the fix is 
coming. 
or you can try to run make in /usr/src/usr.sbin/zzz/ to make sure there is no 
errors
or you can try to run make in /usr/src/etc/ which should be the next bus stop 
in the building world proccess.

hope someone else knows (probably from [EMAIL PROTECTED])

nash

original message:
--


make -j 4 buildworld

gives after a while the following

gzip -cn /usr/src/usr.sbin/zic/zdump/../zdump.8  zdump.8.gz
cc -O2 -fno-strict-aliasing -pipe  -DTM_GMTOFF=tm_gmtoff
-DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS -DHAVE_LONG_DOUBLE
-DTZDIR=\/usr/share/zoneinfo\ -Demkdir=mkdir
-I/usr/src/usr.sbin/zic/zdump/..
-I/usr/src/usr.sbin/zic/zdump/../../../lib/libc/stdtime   -o zdump
zdump.o ialloc.o scheck.o
=== usr.sbin/zzz (all)
gzip -cn /usr/src/usr.sbin/zzz/zzz.8  zzz.8.gz
1 error
*** Error code 2
1 error
*** Error code 2
1 error

Suggestions?

/Leslie


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


Re: kernel upgrades

2008-09-19 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joe Tseng wrote:
 I'm still new to FreeBSD (coming from CentOS/Ubuntu) so this might be
 something totally obvious to others...  I know I can update ports by using
 portsnap fetch/extract/update - does this update the kernel source as well?
 How do I apply this new code?
 
 - Joe

Hi Joe,

Welcome to the FreeBSD world!  I am also a Linux convert and have had
great success with FreeBSD over the past several years.

I use the freebsd-update utility
(http://www.freebsd.org/cgi/man.cgi?query=freebsd-updateapropos=0sektion=0manpath=FreeBSD+7.0-RELEASEformat=html)
to perform binary upgrades on the servers that I manage.

Be aware that it only supports upgrading GENERIC kernels.  If you have a
custom kernel, read the bottom of this post for information about how
freebsd-update handles that:
http://www.mavetju.org/mail/view_message.php?list=freebsd-stableid=2642739

You can use freebsd-update to upgrade FreeBSD minor releases as well as
major releases.  Check out these blog postings for more information:

http://www.daemonology.net/blog/2007-11-10-freebsd-minor-version-upgrade.html
http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html

Best of luck, and post back to this mailing list with additional
questions that you might have.

Best regards,
Greg
- --
Greg Larkin

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

iD8DBQFI06m00sRouByUApARAmpSAJ9VbW/J8u20IfU1ze5NnK1ftYgwiwCgxARM
fnckD+dNqFAeHaLIxQuH8Ck=
=ZkmK
-END PGP SIGNATURE-

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


Re: buildworld error with 7.1 BETA

2008-09-19 Thread [EMAIL PROTECTED]
2008/9/19 Leslie Jensen [EMAIL PROTECTED]:
 make -j 4 buildworld

 gives after a while the following

 gzip -cn /usr/src/usr.sbin/zic/zdump/../zdump.8  zdump.8.gz
 cc -O2 -fno-strict-aliasing -pipe  -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone
 -DSTD_INSPIRED -DPCTS -DHAVE_LONG_DOUBLE -DTZDIR=\/usr/share/zoneinfo\
 -Demkdir=mkdir -I/usr/src/usr.sbin/zic/zdump/..
 -I/usr/src/usr.sbin/zic/zdump/../../../lib/libc/stdtime   -o zdump zdump.o
 ialloc.o scheck.o
 === usr.sbin/zzz (all)
 gzip -cn /usr/src/usr.sbin/zzz/zzz.8  zzz.8.gz
 1 error
 *** Error code 2
 1 error
 *** Error code 2
 1 error

 Suggestions?

Build without -j so the error message is sensible.

That should always be the first thing you strip out on failure,
and before you even bother to report. :)

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


Re: ipf filter by user/group

2008-09-19 Thread Andrew Gould
On Fri, Sep 19, 2008 at 8:04 AM, Yury Michurin [EMAIL PROTECTED]wrote:

 Sorry for the mistake, i meant pf, the openbsd's packet filter.

 On Fri, Sep 19, 2008 at 2:39 PM, Yury Michurin [EMAIL PROTECTED]
 wrote:

  Hello,
  I'm quite new to ipf, Is there an option of filtering packets by
  user/group?
 
  What i want to accomplish is:
  1. Block users from group 'users' to make outbound connections
  2. Count traffic for users: alpha, beta, gamma
 
  If i can't accomplish that with ipf, what other firewall you suggest?
 
 
  Thank you for your time,
  Yury.
 


Check out authpf, which is part of pf:
http://www.openbsd.org/faq/pf/authpf.html

Users have to login as an authpf user via ssh.  Once the authpf user is
logged in, pf does it's filtering based upon the authpf user's IP address.

You can create a ruleset for each authpf user.  authpf users without their
own ruleset use the a default ruleset.

I hope this helps.

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


Problem report not showing up?

2008-09-19 Thread Philip Semanchuk

Hi all,
I submitted a problem report using send-pr a few days ago. send-pr  
completed without any errors, but I haven't seen any evidence of my  
problem report in the FreeBSD bug list (http://www.freebsd.org/cgi/query-pr-summary.cgi 
) or on the bugs mailing list. Can I assume it's in a review queue to  
determine whether or not it's legit, or should I assume it is lost and  
resubmit it?


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


Re: buildworld error with 7.1 BETA

2008-09-19 Thread Leslie Jensen


Nash Nipples skrev:

just try to run make one more time. not cleaning

anything just type the same make command after fail without
extra activity. 

if it fails again check if you have filled your disks

up and you might want to `ls /usr/src/usr.sbin/zzz/zzz.8` to
see if its really there
 

It fails again!
Disks are not full and the file is there.


no its less likely to be a hardware error. there are cases when it breaks into 
an error and then after you restart the whole procedure it goes fine and breaks 
somewhere closer to finish.

i think you can try to update the source code once again. maybe the fix is coming. 
or you can try to run make in /usr/src/usr.sbin/zzz/ to make sure there is no errors

or you can try to run make in /usr/src/etc/ which should be the next bus stop 
in the building world proccess.

When doing make in /usr/src/etc/ I got an error stating that it could 
not build /etc/mail/.submit.mc.


It turned out that I had made a typo in /etc/make.conf. Sorry!

Thanks for all your suggestions, it helped me find the error.

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


freebsd 7.1 - Good luck

2008-09-19 Thread Fian Dracestar
When FreeBSD support ethernet type Gigabit ? and chipset sis (new) / all new 
hardware
Thanks 
Good Luck your project FreeBSD 7.1


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


Re: mount msdosfs with hal

2008-09-19 Thread ronggui
You mean by gconf-editor? It is very strange. When I add
-L=zh_CN.eucCN to the key, it won't mount any msdosfs anymore.

PS: the default mount_option is [longnames, -u=]

Thanks.

On Fri, Sep 19, 2008 at 3:05 PM, Dominique Goncalves
[EMAIL PROTECTED] wrote:
 Hi,

 On Fri, Sep 19, 2008 at 1:58 AM, ronggui [EMAIL PROTECTED] wrote:
 Dear all,

 I want to use hal to auttomount the windows fat32 partition with
 gnome. after setting gnome_enable=YES, hal automount it, but there
 is a problem. hal seems to execute mount_msdosfs /dev/xxx
 /mountpoint, so the encoding is not handled correctly.
 If I mount it manually, it should be mount_msdosfs -D=CP936
 -L=zh_CN.eucCN /dev/xxx /mountpoint. So my question is how to set the
 things right? I think I need to modify some fdi files, but just can
 not figure out.

 You need to add '-L=zh_CN.eucCN'  in
 /system/storage/default_options/vfat/mount_options with gedit.
 I use this key to add '-o large' to mount correctly my msdosfs
 partition of  500GB and it works.

 Hope this helps


 Thanks in advance. Best


 --
 HUANG Ronggui, Wincent
 Tel: (00852) 3442 3832
 Ph.D. Candidate, CityU of HK
 Master of sociology, Fudan University, China
 Bachelor of Social Work, Fudan University, China
 Personal homepage: http://ronggui.huang.googlepages.com/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


 Regards.

 --
 There's this old saying: Give a man a fish, feed him for a day. Teach
 a man to fish, feed him for life.




-- 
HUANG Ronggui, Wincent
Tel: (00852) 3442 3832
Ph.D. Candidate, CityU of HK
Master of sociology, Fudan University, China
Bachelor of Social Work, Fudan University, China
Personal homepage: http://ronggui.huang.googlepages.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PAM_AUTHTOK_RECOVER_ERR

2008-09-19 Thread Dan Nelson
In the last episode (Sep 19), Berk Gulenler said:
 I'm trying to install pam_ldap 1.84 to FreeBSD version 6.3 AMD64. But
 I'm getting this error message from gmake compiler. I think the
 problem is an undeclared function. About this any help would be
 appreciated.
 
 Related log:
 
 gcc -DHAVE_CONFIG_H   -I/usr/local/include -DLDAP_REFERRALS -DLDAP_DEPRECATED 
 -DPIC -D_REENTRANT  -g -O2 -Wall -fPIC -c pam_ldap.c
 pam_ldap.c:3569: error: `PAM_AUTHTOK_RECOVER_ERR' undeclared (first use in 
 this function)
 pam_ldap.c:3569: error: (Each undeclared identifier is reported only once
 pam_ldap.c:3569: error: for each function it appears in.)

Are you building the security/pam_ldap port?  That should build with no
errors.

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


two nics each with dsl and the third for LAN and am not able to get any milage out of one dsl.

2008-09-19 Thread eculp
I just inherited a second dsl line and don't have a server to connect  
it too so I have it connected to a third nic that I have in the Dell  
that has the first dsl connection and the LAN.  I have been running pf  
on the two nics with nat and squid in transparent proxy mode without  
any issues. My problem is that I haven't come up with a way to really  
take advantage of the new dsl to reduce traffic on the first.  I'm not  
even dreaming of load balancing just sharing some of the load.


I had thought about trying to get squid to use the second connection  
but my feeble attempts at redirecting it haven't made much sense nor  
have they worked. Most of our traffic is outgoing rather than  
incoming, if that helps.


I'm sure someone else must have a similar setup and are doing better  
than I.  Anything is better than nothing. Basically, I think and hope  
that I am just drowning in a glass of water.


Thanks for any suggestions.

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


Segmentation fault when free

2008-09-19 Thread Unga
Hi all

I'm running FreeBSD 7 on i386. I have a C program compiled with gcc 4.2.1 
20070719.

Logically my program is:

char *a;
char *b;
char *c;

while (cond)
{
 a = f1(); /* malloc() and send a string */
 b = f2(); /* malloc() and send a string */

 c = (char *) malloc(strlen(a) + strlen(b) + 1);
 c[0] = '\0';

 strcat(c, a);
 strcat(c, b);

 free(a);
 free(b);
}

When it executes free(b), my program exits with Segmentation fault: 11. The 
free(a) executes well.

The problem is with free(b). Even swap free(b) first and free(a) next, it still 
crashes at free(b).

If I comment out free() lines, further down the program, first few characters 
of one string get dropped when executes a completely unrelated line.

How could I bit more narrow down the problem? 

Many thanks in advance.

Kind regards
Unga








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


Realtek 8111C?

2008-09-19 Thread Sebastian

Hi,

I'd like to confirm my understanding of current status on this NIC. It 
seems, based on some searching, the current Realtek driver in FreeBSD 
doesn't support the 8111C, and that although the vendor-supplied driver 
_may_ work for older 5.x and 6.0 releases (if one can get it compiled, I 
couldn't), it doesn't work in 6.3 or 7. So the RTL8111C is effectively 
not supported. True?


I picked up a nice little Atom board to use as a low-power NAS, and 
unfortunately just assumed the onboard Realtek NIC was supported. 
Unfortunately I don't have a PCI slot on this mobo to use a different NIC.


Is anyone working on this driver?  :)

Thanks

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


Re: rsync colon in filename to MSWin fails

2008-09-19 Thread Giorgos Keramidas
On Fri, 19 Sep 2008 13:37:50 +0100, Anton Shterenlikht [EMAIL PROTECTED] 
wrote:
 I cannot trasfer a file with a colon via rsync to a Win box.
 I've rsync-3.0.4 on the FBSD (sending side) and rsync-2.6.9
 under cygwin on Win (receiving side). I'm not sure what the
 error message means:

 % rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]:
 rsync: rename /cygdrive/c/Documents and Settings/mexas/My 
 Documents/work/.http:__en.wikipedia.org_favicon.ico.8dBX2K - 
 http:__en.wikipedia.org_favicon.ico: No such file or directory (2)
 rsync error: some files/attrs were not transferred (see previous errors) 
 (code 23) at main.c(1040) [sender=3.0.4]

 Note the extra dot before the file name, and extra suffix at the
 end. Is this the expected behaviour?

Yes, this is the expected broken behavior of Windows.  The ':' character
cannot be used in a normal filename in Windows.  The bug goes way back,
when DOS developers chose to use ':' to denote 'drive names'.

 However, to another FBSD box transfer is fine:

 % rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]:
 %

UNIX only reserves '/' as the path separator (and in some cases the '\0'
character for the end-of-fiename string marker).  So the ':' character
is valid for file names or directory names.

 Is this something to do with Windows, or old rsync version on cygwin?

Yes, it has to do with Windows.

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


Re: Realtek 8111C?

2008-09-19 Thread Jerry
On Fri, 19 Sep 2008 09:17:44 -0700
Sebastian [EMAIL PROTECTED] wrote:

 Hi,
 
 I'd like to confirm my understanding of current status on this NIC.
 It seems, based on some searching, the current Realtek driver in
 FreeBSD doesn't support the 8111C, and that although the
 vendor-supplied driver _may_ work for older 5.x and 6.0 releases (if
 one can get it compiled, I couldn't), it doesn't work in 6.3 or 7. So
 the RTL8111C is effectively not supported. True?
 
 I picked up a nice little Atom board to use as a low-power NAS, and 
 unfortunately just assumed the onboard Realtek NIC was supported. 
 Unfortunately I don't have a PCI slot on this mobo to use a different
 NIC.
 
 Is anyone working on this driver?  :)

Have you checked this out:

http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html


-- 
Jerry
[EMAIL PROTECTED]

Soldiers who wish to be a hero
Are practically zero,
But those who wish to be civilians,
They run into the millions.


signature.asc
Description: PGP signature


kill -KILL fails to kill process

2008-09-19 Thread Steve Franks
Which I thought was impossible.  Neophyte question, no doubt, but
googling was less than helpful (which probably means I'm fubar, no
doubt).  Anyway, I have a certain common X app (xmms) that likes to
hang (since my last buildworld, it seems) when when it's right about
to open a file-choosing dialog.  The only way to get rid of it is to
reboot.  Now, given the behavior, I'd have to suspect something
underlying as the true source of the problem, but shouldn't kill kill
it anyway - I mean, isn't there some way to kill a process that's
stuck waiting on a child process?  I haven't figured out how to ps
-ax grep | some neublous file dialog process yet...so I'm sort of
stuck wanting to kill the parent...

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


Re: freebsd 7.1 - Good luck

2008-09-19 Thread Oliver Fromme
Fian Dracestar [EMAIL PROTECTED] wrote:
  When FreeBSD support ethernet type Gigabit ?

FreeBSD supports gigabit ethernet for quite a lot of years
already.  It even supports several 10-gigabit ethernet
interfaces.

  and chipset sis (new)

I've recently updated a SiS chipset based machine (not
exactly new, though), and it works very well with FreeBSD.
From dmesg output:

agp0: SiS 730 host to AGP bridge on hostb0
atapci0: SiS 730 UDMA100 controller port [...] at device 0.1 on pci0
sis0: SiS 900 10/100BaseTX port [...] at device 1.1 on pci0

I'm using an intel fxp(4) NIC in that box, though, not the
onboard sis(4), so I can't tell for sure whether the latter
works.

If you want to get support information about a specific SiS
chipset, you need to give us more information.  If you've
already installed FreeBSD, the output from pciconf -lv
and the contents of /var/run/dmesg.boot would be a good
start.

Best regards.
   Oliver

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

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

Clear perl code is better than unclear awk code; but NOTHING
comes close to unclear perl code  (taken from comp.lang.awk FAQ)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kill -KILL fails to kill process

2008-09-19 Thread Andrew Falanga
On Fri, Sep 19, 2008 at 11:41 AM, Steve Franks [EMAIL PROTECTED] wrote:
 Which I thought was impossible.  Neophyte question, no doubt, but
 googling was less than helpful (which probably means I'm fubar, no
 doubt).  Anyway, I have a certain common X app (xmms) that likes to
 hang (since my last buildworld, it seems) when when it's right about
 to open a file-choosing dialog.  The only way to get rid of it is to
 reboot.  Now, given the behavior, I'd have to suspect something
 underlying as the true source of the problem, but shouldn't kill kill
 it anyway - I mean, isn't there some way to kill a process that's
 stuck waiting on a child process?  I haven't figured out how to ps
 -ax grep | some neublous file dialog process yet...so I'm sort of
 stuck wanting to kill the parent...


I remember the first time this happened to me.  I was stunned.  I
thought kill -9 (or kill -KILL) would kill any process.  Even the
manual page for kill, kill(1), says that this signal is non-catchable,
non-ignorable.  In my experience, there's only one condition that will
cause this (perhaps those more experienced here than I know of
others).  This can happen when your process blocks on pending file
I/O.  The process opens a file descriptor, could even be a socket, and
leaves it marked as blocking.  The kernel then blocks the process
while awaiting I/O in the buffers.  In this blocked state, the signal
is prevented from being delivered.  If you left the process open long
enough, perhaps assuming it's not completely hung, the process would
get what it's waiting for (hopefully), then move on.  At that very
moment, the kill signal would be delivered and the process would die
(as you wanted it to so very long ago when you delivered that signal
to it).

I don't run xmms so perhaps some other kind soul here will know what's
going on.  However, that's why your process didn't die.

Andy

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


Re: Realtek 8111C?

2008-09-19 Thread Oliver Fromme
Sebastian [EMAIL PROTECTED] wrote:
  I'd like to confirm my understanding of current status on this NIC. It 
  seems, based on some searching, the current Realtek driver in FreeBSD 
  doesn't support the 8111C, and that although the vendor-supplied driver 
  _may_ work for older 5.x and 6.0 releases (if one can get it compiled, I 
  couldn't), it doesn't work in 6.3 or 7. So the RTL8111C is effectively 
  not supported. True?
  
  I picked up a nice little Atom board to use as a low-power NAS, and 
  unfortunately just assumed the onboard Realtek NIC was supported. 
  Unfortunately I don't have a PCI slot on this mobo to use a different NIC.

What vendor ID and product ID, exactly?
(pciconf -lv will tell.)

I'm asking because the re(4) driver seem to contain
support for several different chips that are all
identified as 8111C, but work slightly differently.
So it is important to know whether your version of
that NIC is already covered, or whether it has a
product ID that the driver doesn't know about yet.

As far as I can tell from the repository history,
the driver is well maintained.

Best regards
   Oliver

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

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

One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone to bind them.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kill -KILL fails to kill process

2008-09-19 Thread Chuck Swiger

On Sep 19, 2008, at 10:41 AM, Steve Franks wrote:

The only way to get rid of it is to
reboot.  Now, given the behavior, I'd have to suspect something
underlying as the true source of the problem, but shouldn't kill kill
it anyway - I mean, isn't there some way to kill a process that's
stuck waiting on a child process?


Delivery of signals can be delayed if the process is blocked in a  
system call, until that call completes and returns control to the  
process in userland.  That includes kill -9, unfortunately...


--
-Chuck

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


Re: kill -KILL fails to kill process

2008-09-19 Thread Oliver Fromme
Steve Franks wrote:
  Which I thought was impossible.  Neophyte question, no doubt, but
  googling was less than helpful (which probably means I'm fubar, no
  doubt).  Anyway, I have a certain common X app (xmms) that likes to
  hang (since my last buildworld, it seems) when when it's right about
  to open a file-choosing dialog.  The only way to get rid of it is to
  reboot.  Now, given the behavior, I'd have to suspect something
  underlying as the true source of the problem, but shouldn't kill kill
  it anyway - I mean, isn't there some way to kill a process that's
  stuck waiting on a child process?  I haven't figured out how to ps
  -ax grep | some neublous file dialog process yet...so I'm sort of
  stuck wanting to kill the parent...

If you can't kill a process (even with SIGKILL), it means
that the process currently can't be put on the run queue,
because only processes that are able to run can receive
signals.  Given that, such a situation usually has one of
these three reasons:

1.  The process hangs in disk wait (flag D in ps' STAT
column).  This often means there's a hardware problem
with your disk or controller (or a driver bug), or a
network problem if you use NFS.

2.  The process was suspended (SIGSTOP).  In this case
there is the flag T in ps' STAT column.  Try sending
a SIGCONT to the process.

3.  The process terminated, but the parent process failed
to pick up the exit code.  In this case, the process
needs to retain an entry in the process table (shown
by ps) in order to record the exit code until it is
picked up, even though the process itself is gone.
Such a dead entry in the process table is called a
zombie process.  In ps' STAT column there is the Z
flag.  This usually indicates a programming error
(a.k.a. bug) in the parent process.  You can get rid
of the zombie by killing the parent process.  Then the
zombie will be inherited by the next process in the
hierarchy (up to the init process 1 if required) which
will then pick up the exit code and release the process
entry.

There can be other reasons on occasion, but those three are
the most common ones.  Simply look at the STAT column in
the ps(1) output for the process in question.  It will tell
you the reason why the process is stuck.

Best regards
   Oliver

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

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

Passwords are like underwear.  You don't share them,
you don't hang them on your monitor or under your keyboard,
you don't email them, or put them on a web site,
and you must change them very often.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Realtek 8111C?

2008-09-19 Thread Warren Block

On Fri, 19 Sep 2008, Sebastian wrote:

I'd like to confirm my understanding of current status on this NIC. It seems, 
based on some searching, the current Realtek driver in FreeBSD doesn't 
support the 8111C, and that although the vendor-supplied driver _may_ work 
for older 5.x and 6.0 releases (if one can get it compiled, I couldn't), it 
doesn't work in 6.3 or 7. So the RTL8111C is effectively not supported. True?


A new MSI P45 Neo3-FR motherboard with an 8111C shows it working with 
7.1-PRERELEASE.  The support for the 8111C is pretty new (July in CVS), 
but so far it seems okay with this instance.


uname -a:

FreeBSD lightning 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Fri Sep 19 
18:48:47 MDT 2008 root@:/usr/obj/usr/src/sys/GENERIC  i386


dmesg:

re0: RealTek 8168/8168B/8168C/8168CP/8111B/8111C/8111CP PCIe Gigabit Ethernet port 0xd800-0xd8ff mem 
0xfdfff000-0xfdff,0xfdfe-0xfdfe irq 17 at device 0.0 on pci4


pciconf -lv:

[EMAIL PROTECTED]:4:0:0: class=0x02 card=0x514c1462 chip=0x816810ec 
rev=0x02 hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
class  = network
subclass   = ethernet

ifconfig:

re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=389bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC
ether 00:1d:92:f4:02:38
inet 10.0.0.213 netmask 0xff00 broadcast 10.0.0.255
media: Ethernet autoselect (100baseTX full-duplex)
status: active

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


xorg gfx card: amd64+xvideo+decent 2d performance

2008-09-19 Thread Peter Schuller
Hey,

I've been trying to find anything that fits the bill. My only
requirements are:

* That it works with amd64 (on FreeBSD, obviously).
* That it supports Xvideo.
* That it has decent 2D performance.
* That it works with wide screen resolutions (so I guess basically
  modern hardware + modern driver).

Unfortunately, the 'nv' driver has significant performance issues so
nVidia cards are out. I love what ATI is doing with the radeonhd
driver, but no Xvideo yet.

I know Matrox used to be a good bet, but apparantly modern cards
require binary blobs. I hear good things about Intel chipsets, but
then I cannot find any cards that have them (only integrated on
motherboards, which puts too much of a constraint on the choice of
motherboard).

Anyone got any recommendations?

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller [EMAIL PROTECTED]'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org



pgpCf9QdpgTXd.pgp
Description: PGP signature


Re: Segmentation fault when free

2008-09-19 Thread Nash Nipples



--- On Fri, 9/19/08, Unga [EMAIL PROTECTED] wrote:

 From: Unga [EMAIL PROTECTED]
 Subject: Segmentation fault when free
 To: freebsd-questions@freebsd.org
 Date: Friday, September 19, 2008, 9:17 AM
 Hi all
 
 I'm running FreeBSD 7 on i386. I have a C program
 compiled with gcc 4.2.1 20070719.
 
 Logically my program is:
 
 char *a;
 char *b;
 char *c;
 
 while (cond)
 {
  a = f1(); /* malloc() and send a string */
  b = f2(); /* malloc() and send a string */
 
  c = (char *) malloc(strlen(a) + strlen(b) + 1);
  c[0] = '\0';
 
  strcat(c, a);
  strcat(c, b);
 
  free(a);
  free(b);
 }
 
 When it executes free(b), my program exits with
 Segmentation fault: 11. The free(a) executes well.
 
 The problem is with free(b). Even swap free(b) first and
 free(a) next, it still crashes at free(b).
 
 If I comment out free() lines, further down the program,
 first few characters of one string get dropped when executes
 a completely unrelated line.
 
 How could I bit more narrow down the problem? 
 
 Many thanks in advance.
 
 Kind regards
 Unga
 
 

im affraid i didnt implement your request correctly but the program below did 
not crash my server under root in 60 seconds

#include stdio.h
#include stdlib.h
#include string.h

char *a;
char *b;
char *c;

char *abd = Hi, im a string 1\0;
char *bbd = Hey, im a string 2\0;

char *f1(void){
  char *ab;
  ab = malloc(strlen (abd));
  memcpy(ab, abd, strlen(abd));
  printf(f1(): %s\n, ab);
  return ab;
}

char *f2(void){
  char *bb;
  bb = malloc(strlen (bbd));
  memcpy(bb, bbd, strlen(bbd));
  printf(f1(): %s\n, bb);
  return bb;
}

int
main(void)
{

while (1)
{

a = f1(); /* malloc() and send a string */
b = f2(); /* malloc() and send a string */

c = (char *) malloc(strlen(a) + strlen(b) + 1);
c[0] = '\0';

strcat(c, a);
strcat(c, b);

free(a);
free(b);
}
}


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


Encrypted disk on a server

2008-09-19 Thread skx
I have a headless FreeBSD server at home serving as NAS, http server, 
proxy, vpn server, etc. Due to the way network infrastructure is 
organized the server is located in an easily accessible place (actually 
outside my apartment) and I am afraid it might be stolen. It's a cheap 
old PC, so I am mostly worried about data stored on it. 

What is the most convenient way of securing this data (besides moving the 
machine :)? Encrypting the whole disk? How would I provide the password? 
I am not a geek, so I would prefer a how-to or an easier solution than a 
lightweight sshd on /boot about which I read on the web. Maybe 
encrypting /home is enough? How to move current installation to the 
secured environment? 

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


Re: Encrypted disk on a server

2008-09-19 Thread Wojciech Puchar

organized the server is located in an easily accessible place (actually
outside my apartment) and I am afraid it might be stolen. It's a cheap
old PC, so I am mostly worried about data stored on it.

What is the most convenient way of securing this data (besides moving the
machine :)? Encrypting the whole disk? How would I provide the password?


geli is a tool for this. you may encrypt whole disk or partition.

if you are not in place, configure your system so it will do minimal boot 
with sshd available, then you ssh, do geli attach, type password, and run 
script that fsckmount the encrypted partition and start services 
depending of it's data


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


Re: kill -KILL fails to kill process

2008-09-19 Thread Steve Franks
 If you can't kill a process (even with SIGKILL), it means
 that the process currently can't be put on the run queue,
 because only processes that are able to run can receive
 signals.  Given that, such a situation usually has one of
 these three reasons:

Clearly and I/O block is my specific problem, given the behavior.

That term signal in the man page did seem like kill is not the
brute-force method for making a process go away.  Suprising no one has
cooked up something more 'lethal'...

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


Re: kernel upgrades

2008-09-19 Thread Sean Cavanaugh



--
From: Joe Tseng [EMAIL PROTECTED]
Sent: Friday, September 19, 2008 7:03 AM
To: freebsd-questions@freebsd.org
Subject: kernel upgrades


I'm still new to FreeBSD (coming from CentOS/Ubuntu) so this might be
something totally obvious to others...  I know I can update ports by using
portsnap fetch/extract/update - does this update the kernel source as 
well?

How do I apply this new code?

- Joe
If you are using the GENERIC kernel, just use freebsd-update to get any 
updates for the OS. otherwise I would use CVS to update kernel source code. 
can get the STABLE branch then 


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


Re: mount msdosfs with hal

2008-09-19 Thread Dominique Goncalves
Hi,

On Fri, Sep 19, 2008 at 5:31 PM, ronggui [EMAIL PROTECTED] wrote:
 You mean by gconf-editor? It is very strange. When I add
 -L=zh_CN.eucCN to the key, it won't mount any msdosfs anymore.

My bad, yes of course it's with gconf-editor.

I've just tried with -L=fr_FR.ISO8859-15 and also with L=zh_CN.eucCN
and it's still mounting.

$ gconftool-2 --get /system/storage/default_options/vfat/mount_options
[longnames,-u=,large,-L=fr_FR.ISO8859-15]

from my /var/log/messages:
Sep 19 23:15:25 FreeGnome kernel: GEOM_LABEL: Label for provider da0s1
is msdosfs/JETDISK.
Sep 19 23:15:31 FreeGnome gnome-keyring-daemon[1724]: adding removable
location: volume_uuid_33D4_B30C at /usr/home/media/JETDISK___

$ mount|grep msdosfs
/dev/msdosfs/JETDISK on /usr/home/media/JETDISK__ (msdosfs, local, nosuid)

I'm not sure what's going on in your case sorry. You could try to
report your problem at freebsd-gnome@ mailing list but read
http://www.freebsd.org/gnome/docs/halfaq.html#q4 before.

Don't know if it makes a difference but I use gnome 2.23.92.

 PS: the default mount_option is [longnames, -u=]

 Thanks.

 On Fri, Sep 19, 2008 at 3:05 PM, Dominique Goncalves
 [EMAIL PROTECTED] wrote:
 Hi,

 On Fri, Sep 19, 2008 at 1:58 AM, ronggui [EMAIL PROTECTED] wrote:
 Dear all,

 I want to use hal to auttomount the windows fat32 partition with
 gnome. after setting gnome_enable=YES, hal automount it, but there
 is a problem. hal seems to execute mount_msdosfs /dev/xxx
 /mountpoint, so the encoding is not handled correctly.
 If I mount it manually, it should be mount_msdosfs -D=CP936
 -L=zh_CN.eucCN /dev/xxx /mountpoint. So my question is how to set the
 things right? I think I need to modify some fdi files, but just can
 not figure out.

 You need to add '-L=zh_CN.eucCN'  in
 /system/storage/default_options/vfat/mount_options with gedit.
 I use this key to add '-o large' to mount correctly my msdosfs
 partition of  500GB and it works.

 Hope this helps


 Thanks in advance. Best


 --
 HUANG Ronggui, Wincent
 Tel: (00852) 3442 3832
 Ph.D. Candidate, CityU of HK
 Master of sociology, Fudan University, China
 Bachelor of Social Work, Fudan University, China
 Personal homepage: http://ronggui.huang.googlepages.com/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


 Regards.

 --
 There's this old saying: Give a man a fish, feed him for a day. Teach
 a man to fish, feed him for life.




 --
 HUANG Ronggui, Wincent
 Tel: (00852) 3442 3832
 Ph.D. Candidate, CityU of HK
 Master of sociology, Fudan University, China
 Bachelor of Social Work, Fudan University, China
 Personal homepage: http://ronggui.huang.googlepages.com/


Regards.

-- 
There's this old saying: Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: two nics each with dsl and the third for LAN and am not able to get any milage out of one dsl.

2008-09-19 Thread Nash Nipples

 I just inherited a second dsl line and don't have a
 server to connect  
 it too so I have it connected to a third nic that I have in
 the Dell  
 that has the first dsl connection and the LAN.  I have been
 running pf  
 on the two nics with nat and squid in transparent proxy
 mode without  
 any issues. My problem is that I haven't come up with a
 way to really  
 take advantage of the new dsl to reduce traffic on the
 first.  I'm not  
 even dreaming of load balancing just sharing some of the
 load.
 
 I had thought about trying to get squid to use the second
 connection  
 but my feeble attempts at redirecting it haven't made
 much sense nor  
 have they worked. Most of our traffic is outgoing rather
 than  
 incoming, if that helps.
 
 I'm sure someone else must have a similar setup and are
 doing better  
 than I.  Anything is better than nothing. Basically, I
 think and hope  
 that I am just drowning in a glass of water.
 
 Thanks for any suggestions.
 
 ed

it all well depends on how many wires you need to make your boss happy.
if you feel like u can be replaced with a router maybe you should start making 
half-way websites rather than doing 2 way internet connections.
but there is a shoe for every foot. i actually admire the creativity of the pf 
coders. i hope you have at least 2 gateways. please don't drown.
http://www.openbsd.org/faq/pf/pools.html


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


Re: ntpd and GPS

2008-09-19 Thread Bob Johnson
On 9/19/08, Tom Storey [EMAIL PROTECTED] wrote:
 Hi all,

 Ive been toying with setting up my old Garmin GPS12 as a reference for a
 server (FreeBSD 6.2) running ntpd, but Ive run into an issue.


Is it possible the issue isn't what you think it is?

 Ive searched around a bit and cant find an answer, perhaps because there
 isnt one.

I once (years ago) had a Garmin GPS working with ntpd, so it's
reasonable to believe it can be done again, unless support for that
capability was dropped (which I doubt). Unfortunately, it was long
enough ago that I don't remember what I did. It's possible I used the
1 PPS output without NMEA sentences, but that's not my recollection.


 Is there any way I can set ntpd to expect a $GPRMC string every 2 seconds,
 which is the frequency at which the GPS12 transmits them?


 Alternatively, does anyone know how to make the GPS12 transmit a $GPRMC
 string every second?

I'm almost certain you can't. The complete set of all NMEA sentences
takes more than one second at the default 4800 baud, so IIRC it
outputs sentences only on odd seconds, and perhaps the older units are
too slow to compute a fix once per second. Two things that may work
around this are to turn off everything except the GPRMC sentence:

 $PGRMO,,2
 $PGRMO,GPRMC,1

and perhaps free up some CPU time (for faster position calculation) by
(oddly enough) reducing the output data rate to 1200 bps:

 $PGRMC,,1,

but I don't think that will actually work. To go back to 4800 bps, use
3 instead of 1. I think there are 11 commas after the C in that
command, but my eyes aren't so sharp any more.

There is a Linux driver for the Garmin proprietary protocol. Don't
know if it is distributed in a FreeBSD version. Try
http://jensar.us/~bob/garmin/


 If there is a better place I can post this, please let me know.

This is probably a good place for this question, but if you don't get
a better answer, try the archives of the time nuts mailing list
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts which
unfortunately appears to be down right now. General info about that
group is at http://www.leapsecond.com/time-nuts.htm

If that yields nothing, you might post your question to the Time Nuts
list, time-nuts @ febo.com. It is probably a FAQ for them, but they
will be polite about it. And I had hoped to once again stick an old
Garmin on an NTP server, so I'll be curious to know if this turns out
to be insurmountable.

Good luck,

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


Re: PAM_AUTHTOK_RECOVER_ERR

2008-09-19 Thread Dan Nelson
In the last episode (Sep 19), Berk Gulenler said:
  Dan Nelson wrote:
 
 In the last episode (Sep 19), Berk Gulenler said:
 I'm trying to install pam_ldap 1.84 to FreeBSD version 6.3 AMD64. But
 I'm getting this error message from gmake compiler. I think the
 problem is an undeclared function. About this any help would be
 appreciated.
 
 Related log:
 
 gcc -DHAVE_CONFIG_H   -I/usr/local/include -DLDAP_REFERRALS 
 -DLDAP_DEPRECATED -DPIC -D_REENTRANT  -g -O2 -Wall -fPIC -c pam_ldap.c
 pam_ldap.c:3569: error: `PAM_AUTHTOK_RECOVER_ERR' undeclared (first use in 
 this function)
 pam_ldap.c:3569: error: (Each undeclared identifier is reported only once
 pam_ldap.c:3569: error: for each function it appears in.)
 
 Are you building the security/pam_ldap port?  That should build with no
 errors.
 
No I'm not trying to build it from port tree because the ports
says my openldap version is not compatible with pam_ldap (a new
version is required). But I have to use an older version of
openldap so, I'm trying to compile pam_ldap for my self. Thanks.

Try editing /etc/make.conf and put

WANT_OPENLDAP_VER=23

and see if the port builds.

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


geli and soft-updates

2008-09-19 Thread Vinny

Hi,

I'm wondering if soft-updates on UFS2 should be enabled
on a geli provided disk, da1.eli, for example.  That is,
should I use -U:

newfs -U /dev/da1.eli

or not use -U?

newfs /dev/da1.eli

Will -U help with crash corruption protection on a geli
provider?  Does my question make sense?

Thanks for your experiences/expertise.
Vinny

P.S. Anyone running ZFS on multiple geli providers?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: xorg gfx card: amd64+xvideo+decent 2d performance

2008-09-19 Thread Warren Block

On Fri, 19 Sep 2008, Peter Schuller wrote:


I've been trying to find anything that fits the bill. My only
requirements are:

* That it works with amd64 (on FreeBSD, obviously).
* That it supports Xvideo.
* That it has decent 2D performance.
* That it works with wide screen resolutions (so I guess basically
 modern hardware + modern driver).

Unfortunately, the 'nv' driver has significant performance issues so
nVidia cards are out. I love what ATI is doing with the radeonhd
driver, but no Xvideo yet.


At present, it looks like at least some R5xx chipsets are supported by 
both radeon and radeonhd.  One of those might be a good compromise.  Or 
you could stick to the earlier chipsets that are only in radeon 
(R3xx/R4xx).  I don't know how current this chart is:


http://www.x.org/wiki/RadeonFeature


I know Matrox used to be a good bet, but apparantly modern cards
require binary blobs.


The latest experimental Matrox drivers no longer need a blob.  However, 
Matrox seems to have wandered away from the general-purpose video card 
market.  AGP and PCI cards are available used, PCI-X versions harder to 
find and more expensive, and driver updates are much less likely than a 
more mainstream card.


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


Re: Realtek 8111C?

2008-09-19 Thread Da Rock

On Fri, 2008-09-19 at 13:21 -0600, Warren Block wrote:
 On Fri, 19 Sep 2008, Sebastian wrote:
 
  I'd like to confirm my understanding of current status on this NIC. It 
  seems, 
  based on some searching, the current Realtek driver in FreeBSD doesn't 
  support the 8111C, and that although the vendor-supplied driver _may_ work 
  for older 5.x and 6.0 releases (if one can get it compiled, I couldn't), it 
  doesn't work in 6.3 or 7. So the RTL8111C is effectively not supported. 
  True?
 
 A new MSI P45 Neo3-FR motherboard with an 8111C shows it working with 
 7.1-PRERELEASE.  The support for the 8111C is pretty new (July in CVS), 
 but so far it seems okay with this instance.
 
 uname -a:
 
 FreeBSD lightning 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Fri Sep 19 
 18:48:47 MDT 2008 root@:/usr/obj/usr/src/sys/GENERIC  i386
 
 dmesg:
 
 re0: RealTek 8168/8168B/8168C/8168CP/8111B/8111C/8111CP PCIe Gigabit 
 Ethernet port 0xd800-0xd8ff mem 
 0xfdfff000-0xfdff,0xfdfe-0xfdfe irq 17 at device 0.0 on pci4
 
 pciconf -lv:
 
 [EMAIL PROTECTED]:4:0:0: class=0x02 card=0x514c1462 chip=0x816810ec 
 rev=0x02 hdr=0x00
  vendor = 'Realtek Semiconductor'
  device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
  class  = network
  subclass   = ethernet
 
 ifconfig:
 
 re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
 options=389bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC
   ether 00:1d:92:f4:02:38
   inet 10.0.0.213 netmask 0xff00 broadcast 10.0.0.255
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active

I have used the compiled driver on 6.3 with success- but then I've used
the driver linked in a post to drivers list. 7.0 is a no go.

7.1 support may be due to the request made in the drivers list that I
mentioned.

Other than that, good luck!

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


geli authentication algo and newfs weirdness

2008-09-19 Thread Vinny

Hello Everyone,

I've been reading up on geli and decided I wanted to
use data authentication.  This involves the -a switch
on the geli init command.  Here's what I've found:

= No authentication (the disk size is correct @ 152G):

the/root{143}~# geli init  da1
Enter new passphrase:
Reenter new passphrase:
the/root{144}~# geli attach da1
Enter passphrase:

the/root{147}~# newfs -N /dev/da1.eli
/dev/da1.eli: 152627.8MB (312581804 sectors) block size 16384, fragment 
size 2048

using 831 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376512, 752864, ...

the/root{148}~# newfs  /dev/da1.eli
/dev/da1.eli: 152627.8MB (312581804 sectors) block size 16384, fragment 
size 2048

using 831 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376512, 752864, 1129216, ...

= With hmac/sha256 (or any other) authentication
(small disk size 76G) :

the/root{156}~# geli init -a hmac/sha256 /dev/da1
Enter new passphrase:
Reenter new passphrase:
the/root{157}~#
the/root{157}~# geli attach da1
Enter passphrase:

the/root{159}~# newfs -N /dev/da1.eli
/dev/da1.eli: 76313.9MB (156290900 sectors) block size 16384, fragment 
size 2048

using 416 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376512, 752864, ...

the/root{163}~# newfs  /dev/da1.eli
/dev/da1.eli: 76313.9MB (156290900 sectors) block size 16384, fragment 
size 2048

using 416 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
newfs: can't read old UFS1 superblock: read error from block device: 
Invalid argument


the/root{110}~# geli dump -v da1
Metadata on da1:
 magic: GEOM::ELI
   version: 3
 flags: 0x10
 ealgo: AES-CBC
keylen: 128
 aalgo: HMAC/SHA256
  provsize: 160041885696
sectorsize: 512
  keys: 0x01
iterations: 67988
  Salt: c708

=

Anyone know what I've done wrong?  Is data authentication working?

Thanks!
Vinny

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


Re: Segmentation fault when free

2008-09-19 Thread Unga
--- On Sat, 9/20/08, Nash Nipples [EMAIL PROTECTED] wrote:

 From: Nash Nipples [EMAIL PROTECTED]
 Subject: Re: Segmentation fault when free
 To: freebsd-questions@freebsd.org
 Date: Saturday, September 20, 2008, 4:14 AM
 --- On Fri, 9/19/08, Unga [EMAIL PROTECTED] wrote:
 
  From: Unga [EMAIL PROTECTED]
  Subject: Segmentation fault when free
  To: freebsd-questions@freebsd.org
  Date: Friday, September 19, 2008, 9:17 AM
  Hi all
  
  I'm running FreeBSD 7 on i386. I have a C program
  compiled with gcc 4.2.1 20070719.
  
  Logically my program is:
  
  char *a;
  char *b;
  char *c;
  
  while (cond)
  {
   a = f1(); /* malloc() and send a string */
   b = f2(); /* malloc() and send a string */
  
   c = (char *) malloc(strlen(a) + strlen(b) + 1);
   c[0] = '\0';
  
   strcat(c, a);
   strcat(c, b);
  
   free(a);
   free(b);
  }
  
  When it executes free(b), my program exits with
  Segmentation fault: 11. The free(a) executes well.
  
  The problem is with free(b). Even swap free(b) first
 and
  free(a) next, it still crashes at free(b).
  
  If I comment out free() lines, further down the
 program,
  first few characters of one string get dropped when
 executes
  a completely unrelated line.
  
  How could I bit more narrow down the problem? 
  
  Many thanks in advance.
  
  Kind regards
  Unga
  
  
 
 im affraid i didnt implement your request correctly but the
 program below did not crash my server under root in 60
 seconds
 
 #include stdio.h
 #include stdlib.h
 #include string.h
 
 char *a;
 char *b;
 char *c;
 
 char *abd = Hi, im a string 1\0;
 char *bbd = Hey, im a string 2\0;
 
 char *f1(void){
   char *ab;
   ab = malloc(strlen (abd));
   memcpy(ab, abd, strlen(abd));
   printf(f1(): %s\n, ab);
   return ab;
 }
 
 char *f2(void){
   char *bb;
   bb = malloc(strlen (bbd));
   memcpy(bb, bbd, strlen(bbd));
   printf(f1(): %s\n, bb);
   return bb;
 }
 
 int
 main(void)
 {
 
 while (1)
 {
 
 a = f1(); /* malloc() and send a string */
 b = f2(); /* malloc() and send a string */
 
 c = (char *) malloc(strlen(a) + strlen(b) + 1);
 c[0] = '\0';
 
 strcat(c, a);
 strcat(c, b);
 
 free(a);
 free(b);
 }
 }
 

Hi thank you very much for your reply and the test case.

That is, in a trivial case like this, free() works well. Hopefully free() works 
well in all cases too.

But my main program is 1900 lines, f1() and f2() are in a 2200 lines second 
file. The f1() and f2() calls some functions from a 500 lines third file. The 
main program call another function, f3(), from 2nd file, pass pointers to two 
functions f4(), f5() of main program. The while loop iterate more than one 
million times. Its quite a complex situation.

There must be an error somewhere else. I noted free() causes lot of troubles. 
It is easy to write complex programs if you just let to leak memory. But in my 
case, since the program iterate millions of times, if I let to leak, I'm sure 
it will run out of RAM.

So the question is, if you were to encounter this issue, how would you approach 
it and find the culprit? 

I'm using pretty basic tools to write complex programs. I use Kate to write 
programs, Makefiles to compile, use GCC, and use ddd in case of a trouble.

Best regards
Unga




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


Re: ntpd and GPS

2008-09-19 Thread Tom Storey

Thanks Bob.

I did a bit more reading, and it seems that I can turn on additional  
sentences in the driver. Ive been studying the NMEA output and there  
are two sentences which will give  time figures across two subsequent  
seconds, so I tried enabling those (mode 6 in the server statement),  
but still no dice. I can see all of the correct sentences being picked  
up in ntpq using the clocklist command, but it just doesnt seem to  
want to work. Essentially my GPS reference just sits like this:


building# ntpq -p
 remote   refid  st t when poll reach   delay
offset  jitter
= 
= 
= 
= 
= 
= 

 resolv.internod 128.250.33.242   2 u   72  256   17   19.343
36.263  37.083
 sparky.services 131.203.16.6 2 u   64  256   17   24.882 
0.279  18.807
 GPS_NMEA(0) .GPS.0 l-   6400.000 
0.000 4000.00


Which I assume means nope, not working.

Is PPS absolutely neccessary? The GPS12 doesnt have PPS, so perhaps  
this is my issue? The output of NMEA seems to happen every 1.5  
seconds, but there are 3 sentences which output a time figure, so I  
figured I'd enable the two furthest apart in the hope that they may  
coincide with different seconds, and hopefully ntpd would be able to  
work it out from that. I even tried enabling all 3 of them (mode 7),  
but still nothing.


Anyway, Im looking at grabbing a Garmin GPS18 LVC, they are only just  
over $100 so no biggie. People have reported wide success with this  
device, so I think I'll still with what is known to work and go from  
there.


Cheers,
Tom

On 20/09/2008, at 8:09 AM, Bob Johnson wrote:


On 9/19/08, Tom Storey [EMAIL PROTECTED] wrote:

Hi all,

Ive been toying with setting up my old Garmin GPS12 as a reference  
for a

server (FreeBSD 6.2) running ntpd, but Ive run into an issue.



Is it possible the issue isn't what you think it is?

Ive searched around a bit and cant find an answer, perhaps because  
there

isnt one.


I once (years ago) had a Garmin GPS working with ntpd, so it's
reasonable to believe it can be done again, unless support for that
capability was dropped (which I doubt). Unfortunately, it was long
enough ago that I don't remember what I did. It's possible I used the
1 PPS output without NMEA sentences, but that's not my recollection.



Is there any way I can set ntpd to expect a $GPRMC string every 2  
seconds,

which is the frequency at which the GPS12 transmits them?



Alternatively, does anyone know how to make the GPS12 transmit a  
$GPRMC

string every second?


I'm almost certain you can't. The complete set of all NMEA sentences
takes more than one second at the default 4800 baud, so IIRC it
outputs sentences only on odd seconds, and perhaps the older units are
too slow to compute a fix once per second. Two things that may work
around this are to turn off everything except the GPRMC sentence:

$PGRMO,,2
$PGRMO,GPRMC,1

and perhaps free up some CPU time (for faster position calculation) by
(oddly enough) reducing the output data rate to 1200 bps:

$PGRMC,,1,

but I don't think that will actually work. To go back to 4800 bps, use
3 instead of 1. I think there are 11 commas after the C in that
command, but my eyes aren't so sharp any more.

There is a Linux driver for the Garmin proprietary protocol. Don't
know if it is distributed in a FreeBSD version. Try
http://jensar.us/~bob/garmin/



If there is a better place I can post this, please let me know.


This is probably a good place for this question, but if you don't get
a better answer, try the archives of the time nuts mailing list
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts which
unfortunately appears to be down right now. General info about that
group is at http://www.leapsecond.com/time-nuts.htm

If that yields nothing, you might post your question to the Time Nuts
list, time-nuts @ febo.com. It is probably a FAQ for them, but they
will be polite about it. And I had hoped to once again stick an old
Garmin on an NTP server, so I'll be curious to know if this turns out
to be insurmountable.

Good luck,

-- Bob Johnson
  [EMAIL PROTECTED]


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


NOOOOooooo

2008-09-19 Thread Jack Barnett



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

Re: ntpd and GPS

2008-09-19 Thread Tom Storey
Ok, it was nothing like what I was thinking. Turns out my GPS didnt  
have a fix on anything. It was getting signals, but no fix. :-)


Now that I have it mounted on a pole outside, hey presto:

building# ntpq -p
 remote   refid  st t when poll reach   delay
offset  jitter
= 
= 
= 
= 
= 
= 

+resolv.internod 128.250.33.242   2 u   50   64  377   18.121
-1.127  14.549
*sparky.services 131.203.16.6 2 u   56   64  377   21.275
-9.704  15.235
 GPS_NMEA(0) .GPS.0 l3   6410.000   
-442.78   0.002


Cheers for your help. I'll keep tweaking it now until I get it working  
just right (jitter is incrementing and Im sure thats not a good thing).


Tom


On 20/09/2008, at 8:09 AM, Bob Johnson wrote:


On 9/19/08, Tom Storey [EMAIL PROTECTED] wrote:

Hi all,

Ive been toying with setting up my old Garmin GPS12 as a reference  
for a

server (FreeBSD 6.2) running ntpd, but Ive run into an issue.



Is it possible the issue isn't what you think it is?

Ive searched around a bit and cant find an answer, perhaps because  
there

isnt one.


I once (years ago) had a Garmin GPS working with ntpd, so it's
reasonable to believe it can be done again, unless support for that
capability was dropped (which I doubt). Unfortunately, it was long
enough ago that I don't remember what I did. It's possible I used the
1 PPS output without NMEA sentences, but that's not my recollection.



Is there any way I can set ntpd to expect a $GPRMC string every 2  
seconds,

which is the frequency at which the GPS12 transmits them?



Alternatively, does anyone know how to make the GPS12 transmit a  
$GPRMC

string every second?


I'm almost certain you can't. The complete set of all NMEA sentences
takes more than one second at the default 4800 baud, so IIRC it
outputs sentences only on odd seconds, and perhaps the older units are
too slow to compute a fix once per second. Two things that may work
around this are to turn off everything except the GPRMC sentence:

$PGRMO,,2
$PGRMO,GPRMC,1

and perhaps free up some CPU time (for faster position calculation) by
(oddly enough) reducing the output data rate to 1200 bps:

$PGRMC,,1,

but I don't think that will actually work. To go back to 4800 bps, use
3 instead of 1. I think there are 11 commas after the C in that
command, but my eyes aren't so sharp any more.

There is a Linux driver for the Garmin proprietary protocol. Don't
know if it is distributed in a FreeBSD version. Try
http://jensar.us/~bob/garmin/



If there is a better place I can post this, please let me know.


This is probably a good place for this question, but if you don't get
a better answer, try the archives of the time nuts mailing list
https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts which
unfortunately appears to be down right now. General info about that
group is at http://www.leapsecond.com/time-nuts.htm

If that yields nothing, you might post your question to the Time Nuts
list, time-nuts @ febo.com. It is probably a FAQ for them, but they
will be polite about it. And I had hoped to once again stick an old
Garmin on an NTP server, so I'll be curious to know if this turns out
to be insurmountable.

Good luck,

-- Bob Johnson
  [EMAIL PROTECTED]


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