Re: What's wrong with this code?

2011-12-12 Thread John R. Levine
how about a tiny .so that includes -only- that routine, and a 3-line or so main() that links against -that- .so? not a bad idea. Mentioning O/S release level, and CPU architecture would be a good idea :) Oh sorry, FreeBSD 8.2 release, AMD64 R's, John

Re: What's wrong with this code?

2011-12-12 Thread Robert Bonomi
From: "John Levine" wrote: > > This tiny routine is in a .so loadable module I use. (It's part of the > mailfront SMTP daemon.) > > static const char* date_string(void) > { > static char datebuf[64]; > time_t now = time(0); > struct tm* tm = gmtime(&now); > strftime(datebuf, sizeof date

Re: What's wrong with this code?

2011-12-12 Thread Dan Nelson
In the last episode (Dec 13), John Levine said: > This tiny routine is in a .so loadable module I use. (It's part of the > mailfront SMTP daemon.) > > static const char* date_string(void) > { > static char datebuf[64]; > time_t now = time(0); > struct tm* tm = gmtime(&now); > strftime(dat

What's wrong with this code?

2011-12-12 Thread John Levine
This tiny routine is in a .so loadable module I use. (It's part of the mailfront SMTP daemon.) static const char* date_string(void) { static char datebuf[64]; time_t now = time(0); struct tm* tm = gmtime(&now); strftime(datebuf, sizeof datebuf - 1, "%d %b %Y %H:%M:%S -", tm); retur

Implementation details of altq hfsc scheduler in pf 4.5

2011-12-12 Thread Maxim Khitrov
I've read everything I could find on the topic of configuring hfsc altq in pf (4.5, FreeBSD 9), but I still have no clear idea of how it is actually implemented. I even started looking through the source code, but that might take a while. My main questions are: 1. Difference between 'realtime' and

Re: Installing free bsd

2011-12-12 Thread Edwin L. Culp W.
On Mon, Dec 12, 2011 at 5:48 PM, Noel wrote: > On 12/12/2011 5:05 PM, Jerry McAllister wrote: >  On Mon, Dec 12, 2011 at 04:26:06PM -0600, Daniel Lewis wrote: >>> do direct ftp to disk? And what do you mean by fixate? >> No.  You ftp the file down to the local machine and then use a CD burning >>

Re: Installing free bsd

2011-12-12 Thread Noel
On 12/12/2011 5:05 PM, Jerry McAllister wrote: On Mon, Dec 12, 2011 at 04:26:06PM -0600, Daniel Lewis wrote: >> do direct ftp to disk? And what do you mean by fixate? > No. You ftp the file down to the local machine and then use a CD burning > utility to burn file to the CD. Daniel, An ISO fi

Re: Installing free bsd

2011-12-12 Thread Da Rock
On 12/13/11 09:58, Frank Shute wrote: On Mon, Dec 12, 2011 at 06:05:29PM -0500, Jerry McAllister wrote: First of all, always include the list in a response to something from the list. Other people will be reading and may well know more than me or any other person who responds. eg, don't just

Re: 9.0 install and journaling

2011-12-12 Thread Da Rock
On 12/13/11 04:09, RW wrote: On Sun, 11 Dec 2011 15:42:52 +1000 Da Rock wrote: On 12/11/11 10:23, RW wrote: On Sun, 11 Dec 2011 08:17:41 +1000 Da Rock wrote: SUJ speeds up the check a lot, seconds as opposed to minutes. If something happens to the journal, it falls back to a standard fsck.

Re: Installing free bsd

2011-12-12 Thread Frank Shute
On Mon, Dec 12, 2011 at 06:05:29PM -0500, Jerry McAllister wrote: > > First of all, always include the list in a response to something > from the list. Other people will be reading and may well know > more than me or any other person who responds. eg, don't just > send the follow-on question b

Re: 9.0 install and journaling

2011-12-12 Thread Da Rock
On 12/13/11 06:00, Eric S Pulley wrote: As for one big / partition- linux may be using it: and its their biggest failing! I've had a system lockup due to lack of space. Never a problem with bsd as logs will only fill up var, a user won't break it with filling up usr, etc. And root always stays pr

Re: Installing free bsd

2011-12-12 Thread Jerry McAllister
First of all, always include the list in a response to something from the list. Other people will be reading and may well know more than me or any other person who responds. eg, don't just send the follow-on question back to the one responding. Send it to the list. On Mon, Dec 12, 2011 at 0

Re: Installing free bsd

2011-12-12 Thread Dermidio A.P.
Pierre-Luc Drouin wrote: On Mon, Dec 12, 2011 at 4:00 PM, Jerry McAllister wrote: On Mon, Dec 12, 2011 at 02:36:04PM -0600, Daniel Lewis wrote: Im new to FreeBSD and did a FTP of 8.2 and unzipped to a cd rom. It was an ISO Version. I then FTP the CDROM BOOT file and un zipped it. Unf

connection speed (Rails performance)

2011-12-12 Thread Mage
Hello, it is my second attempt to switch from Gentoo to FreeBSD because: - if you google for FreeBSD you get sexy images of girls in red wear (turn safe search off) - I am a bit tired to upgrade my hardened servers - zfs supposed to work better and faster However I'am stuck at th

Re: PAM confusion

2011-12-12 Thread Reid Linnemann
On Thu, Dec 8, 2011 at 10:45 AM, Michael W. Lucas wrote: > Hi, > > I'm attempting to hook security/pam_ssh_agent_auth into sudo, and have > learned that PAM doesn't work the way I thought it did. > > I'm running FreeBSD-9/i386, with sudo 1.7.2.6. > > My goal is that sudo pass all auth requests bac

Re: Installing free bsd

2011-12-12 Thread Pierre-Luc Drouin
On Mon, Dec 12, 2011 at 4:00 PM, Jerry McAllister wrote: > On Mon, Dec 12, 2011 at 02:36:04PM -0600, Daniel Lewis wrote: > >> Im new to FreeBSD and did a FTP of 8.2 and unzipped to a cd rom. It >> was an ISO Version. I then FTP the CDROM BOOT file and un zipped it. >> Unfortunately It wont auto st

Re: Installing free bsd

2011-12-12 Thread Jerry McAllister
On Mon, Dec 12, 2011 at 02:36:04PM -0600, Daniel Lewis wrote: > Im new to FreeBSD and did a FTP of 8.2 and unzipped to a cd rom. It > was an ISO Version. I then FTP the CDROM BOOT file and un zipped it. > Unfortunately It wont auto start when i put disk in computer startup. > Need support.. Is the

Installing free bsd

2011-12-12 Thread Daniel Lewis
Im new to FreeBSD and did a FTP of 8.2 and unzipped to a cd rom. It was an ISO Version. I then FTP the CDROM BOOT file and un zipped it. Unfortunately It wont auto start when i put disk in computer startup. Need support.. Is the windows format on disk causing problems? _

Re: 9.0 install and journaling

2011-12-12 Thread Eric S Pulley
> > As for one big / partition- linux may be using it: and its their biggest > failing! I've had a system lockup due to lack of space. Never a problem > with bsd as logs will only fill up var, a user won't break it with > filling up usr, etc. And root always stays protected! Its saved my life > a n

Re: PAM configuration to allow passwords from both Unix and Kerberos

2011-12-12 Thread Matt Mullins
On Mon, Dec 12, 2011 at 1:40 AM, Volodymyr Kostyrko wrote: > 10.12.2011 04:22, Matt Mullins wrote: >> auth optional   pam_deny.so >> auth sufficient pam_unix.so no_warn try_first_pass >> auth sufficient pam_krb5.so no_warn try_first_pass > > > Why you just haven't changed the last line to `require

Re: 9.0 install and journaling

2011-12-12 Thread RW
On Sun, 11 Dec 2011 15:42:52 +1000 Da Rock wrote: > On 12/11/11 10:23, RW wrote: > > On Sun, 11 Dec 2011 08:17:41 +1000 > > Da Rock wrote: > > > > > >>> SUJ speeds up the check a lot, seconds as opposed to minutes. If > >>> something happens to the journal, it falls back to a standard > >>> fsck.

Re: ath0 + wlan0 + spa + Apple Airport Extreme => No Joy

2011-12-12 Thread Vincent Hoffman
On 11/12/2011 19:31, Christopher Hilton wrote: > Good day, > > I'm trying to get FreeBSD going on a soekris box with an atheros based D-Link > PCI wifi card. I intend to use this combination to bridge a difficult network > back to ethernet but right now I'm just trying to get the soekris associat

Re: Certain users can't start python

2011-12-12 Thread Michael Ross
Am 12.12.2011, 13:22 Uhr, schrieb Tomasz Kowalczyk : On Monday 12 of December 2011 06:31:46 Michael Ross wrote: Hello, I am ... stuck. I've been trying to setup mercurials web frontend with apache, but apache won't start python. Not as cgi-script, not with mod_python. Investigating, I found

Re: Certain users can't start python

2011-12-12 Thread Tomasz Kowalczyk
On Monday 12 of December 2011 06:31:46 Michael Ross wrote: > Hello, > > I am ... stuck. > > I've been trying to setup mercurials web frontend with apache, > but apache won't start python. > Not as cgi-script, not with mod_python. > > Investigating, I found this not only to be a problem with apac

Re: Certain users can't start python

2011-12-12 Thread Michael Ross
Am 12.12.2011, 11:26 Uhr, schrieb David Demelier : 2011/12/12 Michael Ross : Hello, I am ... stuck. I've been trying to setup mercurials web frontend with apache, but apache won't start python. Not as cgi-script, not with mod_python. Investigating, I found this not only to be a problem wit

Re: Certain users can't start python

2011-12-12 Thread David Demelier
2011/12/12 Michael Ross : > Hello, > > I am ... stuck. > > I've been trying to setup mercurials web frontend with apache, > but apache won't start python. > Not as cgi-script, not with mod_python. > > Investigating, I found this not only to be a problem with apache. > > Situation now: > Users "mich

Re: PAM configuration to allow passwords from both Unix and Kerberos

2011-12-12 Thread Volodymyr Kostyrko
10.12.2011 04:22, Matt Mullins wrote: For my systems, the canonical source of authentication information is a Kerberos server, but I also want to support old-fashioned Unix passwords for a handful of users (including myself) just in case the Kerberos system is unreachable. I'm having a bit of tr

Re: bridging

2011-12-12 Thread saeedeh motlagh
i solve it:) the stp should be running on all interfaces On Mon, Dec 12, 2011 at 11:43 AM, saeedeh motlagh wrote: > yes, with any two interfaces the bridge works well. tcpdump show these > messages when i configure bridge with more than 2 interfaces: > 14:52:57.771505 ARP, Request who-has 192.16

Re[2]: How to boot new kernel

2011-12-12 Thread Igor V. Ruzanov
On Mon, 12 Dec 2011, Коньков Евгений wrote: | | HI, krad. | | How I can figure out the correspondence of bios drive number and | freebsd numbering? | | > | | Have a look at boot.config file you should be able to do something | there | | On Dec 11, 2011 8:57 PM, "Kon'kov Evgenij" <[1]

Re: bridging

2011-12-12 Thread saeedeh motlagh
yes, with any two interfaces the bridge works well. tcpdump show these messages when i configure bridge with more than 2 interfaces: 14:52:57.771505 ARP, Request who-has 192.168.4.157 tell 192.168.4.155, length 46 14:52:57.771519 ARP, Reply 192.168.4.157 is-at 00:0b:ab:4f:d4:2a (oui Unknown), lengt