From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 9 04:47:36 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDA3716A420 for ; Sun, 9 Oct 2005 04:47:35 +0000 (GMT) (envelope-from kjelderg@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CCC643D45 for ; Sun, 9 Oct 2005 04:47:35 +0000 (GMT) (envelope-from kjelderg@gmail.com) Received: by qproxy.gmail.com with SMTP id o12so77985qba for ; Sat, 08 Oct 2005 21:47:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MpnPvz2ysJym+ujKvj5eKu9VZhwtGq6/bgpda2Auz1xprySH7ekkuNA/wGDu6mdcPgDe+XgScpRK4b+crS+Uf9cravSrXXn+I4dEatPWoJK1hIONrzUKR72ZgPtywSCTlkCmWqFX92pKUcuQrmaDI83wGGR+a5LOzbDl9ctZf3o= Received: by 10.65.40.18 with SMTP id s18mr2382900qbj; Sat, 08 Oct 2005 21:47:34 -0700 (PDT) Received: by 10.65.35.19 with HTTP; Sat, 8 Oct 2005 21:47:34 -0700 (PDT) Message-ID: Date: Sun, 9 Oct 2005 04:47:34 +0000 From: Eric Kjeldergaard To: Arne Schwabe In-Reply-To: <430E02DE.2050002@rfc2549.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <430E02DE.2050002@rfc2549.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Vertikal and Horizontal Scroll of (mighty) mice X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eric Kjeldergaard List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 04:47:36 -0000 On 8/25/05, Arne Schwabe wrote: > Hi, > > I just got myself myself a shiny white Mighty Mouse from Apple. > > I now have the Problem that Wheel if the scrolling to left and right. > I fixed this by teaching ums.c to prefer WHEEL over Z but it would be > nice to support both wheel and z axis scrolling. I checked the mouse(4) > but the dataformat there does not even support a forth axis. Hacking > ums.c to map z axis to buttons 7 and 8 would be possible, but not a > clean solution. Another Option would be to add a z2 axis or something > tothe SYSMOUSE format. > > What are your opinion? moused supports horizontal scrolling using 2 and -2 instead of 1 and -1 as values for the zaxis. xorg handles it similarly so for x to do horizontal and vertical, it should have something like Option "Buttons" "7" Option "ZAxisMapping" "4 5 6 7" Hope that helps, Eric -- If I write a signature, my emails will appear more personalised. From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 9 08:20:23 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CAA716A423 for ; Sun, 9 Oct 2005 08:20:23 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A8B543D45 for ; Sun, 9 Oct 2005 08:20:20 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id j998KI2f083678; Sun, 9 Oct 2005 12:20:18 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id j998KItb083677; Sun, 9 Oct 2005 12:20:18 +0400 (MSD) (envelope-from yar) Date: Sun, 9 Oct 2005 12:20:18 +0400 From: Yar Tikhiy To: Maxim Konovalov Message-ID: <20051009082017.GB81198@comp.chem.msu.su> References: <20051008134703.GA25960@comp.chem.msu.su> <20051008175423.B33867@mp2.macomnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051008175423.B33867@mp2.macomnet.net> User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org Subject: Re: SENDMAIL_MC & making world X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 08:20:23 -0000 On Sat, Oct 08, 2005 at 05:55:54PM +0400, Maxim Konovalov wrote: > On Sat, 8 Oct 2005, 17:47+0400, Yar Tikhiy wrote: > > I'd like to set SENDMAIL_MC in my /etc/make.conf files conditionally > > so that it is not set when I'm making {build,install}world. I > > upgrade several machines over NFS from a single build server, and > > of course installworld breaks if SENDMAIL_MC differs from what was > > set during buildworld. At the same time, I'd like to have SENDMAIL_MC > > set for the rest of the time on the machines because `hostname` is > > not a suitable way to construct the .mc names on them due to local > > setup peculiarities. Any ideas how to achieve this effect? > > It is possible to override make.conf location via __MAKE_CONF variable > and use different make.conf at the build,installworld stages. > Perhaps that suits your needs. Uh-huh, two make.conf's instead of one don't look like a great burden. Even better, I can put the buildworld-stage make.conf in src or obj shared over NFS to build clients, and I'll no more have to keep the local copies on clients in sync with that of the build server! Thanks for the cool idea! -- Yar From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 9 17:16:25 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 821EC16A41F for ; Sun, 9 Oct 2005 17:16:25 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from mail.vivodinet.gr (mail3.vivodinet.gr [80.76.39.13]) by mx1.FreeBSD.org (Postfix) with SMTP id B9CEA43D5C for ; Sun, 9 Oct 2005 17:16:20 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: (qmail 1052 invoked from network); 9 Oct 2005 17:16:16 -0000 Received: from dslcustomer-222-89.vivodi.gr (HELO flame.pc) (83.171.222.89) by 0 with SMTP; 9 Oct 2005 17:16:16 -0000 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id j99HFEbQ002561; Sun, 9 Oct 2005 20:15:14 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id j99HFC42002560; Sun, 9 Oct 2005 20:15:12 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Sun, 9 Oct 2005 20:15:12 +0300 From: Giorgos Keramidas To: Yar Tikhiy Message-ID: <20051009171512.GA2523@flame.pc> References: <20051008134703.GA25960@comp.chem.msu.su> <20051008175423.B33867@mp2.macomnet.net> <20051009082017.GB81198@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051009082017.GB81198@comp.chem.msu.su> Cc: hackers@freebsd.org Subject: Re: SENDMAIL_MC & making world X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 17:16:25 -0000 On 2005-10-09 12:20, Yar Tikhiy wrote: >On Sat, Oct 08, 2005 at 05:55:54PM +0400, Maxim Konovalov wrote: >>On Sat, 8 Oct 2005, 17:47+0400, Yar Tikhiy wrote: >>> I'd like to set SENDMAIL_MC in my /etc/make.conf files conditionally >>> so that it is not set when I'm making {build,install}world. I >>> upgrade several machines over NFS from a single build server, and of >>> course installworld breaks if SENDMAIL_MC differs from what was set >>> during buildworld. At the same time, I'd like to have SENDMAIL_MC >>> set for the rest of the time on the machines because `hostname` is >>> not a suitable way to construct the .mc names on them due to local >>> setup peculiarities. Any ideas how to achieve this effect? >> >> It is possible to override make.conf location via __MAKE_CONF >> variable and use different make.conf at the build,installworld >> stages. Perhaps that suits your needs. > > Uh-huh, two make.conf's instead of one don't look like a great burden. > Even better, I can put the buildworld-stage make.conf in src or obj > shared over NFS to build clients, and I'll no more have to keep the > local copies on clients in sync with that of the build server! Thanks > for the cool idea! *EXACTLY* I've always found __MAKE_CONF very useful, but it's not documented in the ``obvious'' places (i.e. the manpage). I think I should add at least a note about it in the manpage of make From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 9 17:31:10 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFE1516A41F; Sun, 9 Oct 2005 17:31:10 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id D516C43D45; Sun, 9 Oct 2005 17:31:09 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id j99HV7oE010480; Sun, 9 Oct 2005 21:31:07 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id j99HV7gd010479; Sun, 9 Oct 2005 21:31:07 +0400 (MSD) (envelope-from yar) Date: Sun, 9 Oct 2005 21:31:06 +0400 From: Yar Tikhiy To: Giorgos Keramidas Message-ID: <20051009173106.GB9137@comp.chem.msu.su> References: <20051008134703.GA25960@comp.chem.msu.su> <20051008175423.B33867@mp2.macomnet.net> <20051009082017.GB81198@comp.chem.msu.su> <20051009171512.GA2523@flame.pc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051009171512.GA2523@flame.pc> User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org Subject: Re: SENDMAIL_MC & making world X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 17:31:11 -0000 On Sun, Oct 09, 2005 at 08:15:12PM +0300, Giorgos Keramidas wrote: > > I've always found __MAKE_CONF very useful, but it's not documented in > the ``obvious'' places (i.e. the manpage). I think I should add at > least a note about it in the manpage of make FWIW, we have make.conf(5) manpage already, and __MAKE_CONF seems to belong to it better than to make(1). make(1) xrefs make.conf(5) already. I think I can do the job if you are busy with something else currently. -- Yar From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 10 03:02:49 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB5FC16A41F; Mon, 10 Oct 2005 03:02:49 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 702FE43D45; Mon, 10 Oct 2005 03:02:49 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id j9A30USS013397; Sun, 9 Oct 2005 21:00:30 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 09 Oct 2005 21:01:32 -0600 (MDT) Message-Id: <20051009.210132.13313527.imp@bsdimp.com> To: yar@comp.chem.msu.su From: "M. Warner Losh" In-Reply-To: <20051009173106.GB9137@comp.chem.msu.su> References: <20051009082017.GB81198@comp.chem.msu.su> <20051009171512.GA2523@flame.pc> <20051009173106.GB9137@comp.chem.msu.su> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 09 Oct 2005 21:00:31 -0600 (MDT) Cc: hackers@freebsd.org, keramida@freebsd.org Subject: Re: SENDMAIL_MC & making world X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 03:02:50 -0000 In message: <20051009173106.GB9137@comp.chem.msu.su> Yar Tikhiy writes: : On Sun, Oct 09, 2005 at 08:15:12PM +0300, Giorgos Keramidas wrote: : > : > I've always found __MAKE_CONF very useful, but it's not documented in : > the ``obvious'' places (i.e. the manpage). I think I should add at : > least a note about it in the manpage of make : : FWIW, we have make.conf(5) manpage already, and __MAKE_CONF seems : to belong to it better than to make(1). make(1) xrefs make.conf(5) : already. I think I can do the job if you are busy with something : else currently. __MAKE_CONF should be documented in make(1) since it is in /usr/share/mk/sys.mk and global to the entire system for all make jobs (not just those controlled by buildworld). It should also be in make.conf(5). Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 10 11:55:44 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0075B16A420; Mon, 10 Oct 2005 11:55:43 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 958A643D46; Mon, 10 Oct 2005 11:55:40 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id j9ABtMFN065646; Mon, 10 Oct 2005 15:55:23 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id j9ABtI8t065637; Mon, 10 Oct 2005 15:55:18 +0400 (MSD) (envelope-from yar) Date: Mon, 10 Oct 2005 15:55:18 +0400 From: Yar Tikhiy To: "M. Warner Losh" Message-ID: <20051010115518.GC63395@comp.chem.msu.su> References: <20051009082017.GB81198@comp.chem.msu.su> <20051009171512.GA2523@flame.pc> <20051009173106.GB9137@comp.chem.msu.su> <20051009.210132.13313527.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051009.210132.13313527.imp@bsdimp.com> User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org, keramida@freebsd.org Subject: Re: SENDMAIL_MC & making world X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 11:55:44 -0000 On Sun, Oct 09, 2005 at 09:01:32PM -0600, M. Warner Losh wrote: > In message: <20051009173106.GB9137@comp.chem.msu.su> > Yar Tikhiy writes: > : On Sun, Oct 09, 2005 at 08:15:12PM +0300, Giorgos Keramidas wrote: > : > > : > I've always found __MAKE_CONF very useful, but it's not documented in > : > the ``obvious'' places (i.e. the manpage). I think I should add at > : > least a note about it in the manpage of make > : > : FWIW, we have make.conf(5) manpage already, and __MAKE_CONF seems > : to belong to it better than to make(1). make(1) xrefs make.conf(5) > : already. I think I can do the job if you are busy with something > : else currently. > > __MAKE_CONF should be documented in make(1) since it is in > /usr/share/mk/sys.mk and global to the entire system for all make jobs > (not just those controlled by buildworld). It should also be in > make.conf(5). Agreed. sys.mk is somewhere between make(1) and make.conf(5), so __MAKE_CONF belongs to both until we decide some day we need manpages for our *.mk files. And make.conf(5) contains an incorrect statement that /etc/make.conf applies to system builds only. I'll fix this. -- Yar From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 10 05:15:10 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F80A16A420 for ; Mon, 10 Oct 2005 05:15:10 +0000 (GMT) (envelope-from lists@mawer.org) Received: from mail22.syd.optusnet.com.au (mail22.syd.optusnet.com.au [211.29.133.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96C5C43D46 for ; Mon, 10 Oct 2005 05:15:09 +0000 (GMT) (envelope-from lists@mawer.org) Received: from [127.0.0.1] (c220-237-120-88.thorn1.nsw.optusnet.com.au [220.237.120.88]) by mail22.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j9A5F43d028521 for ; Mon, 10 Oct 2005 15:15:07 +1000 Message-ID: <4349F8E6.1030406@mawer.org> Date: Mon, 10 Oct 2005 15:15:18 +1000 From: Antony Mawer User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 10 Oct 2005 12:55:58 +0000 Subject: Bonsai-style interface (cvs change history) for FreeBSD CVS? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 05:15:10 -0000 Hi, I thought this might be the most appropriate place to raise this - I was wondering whether or not there was any chance of a Bonsai (http://www.mozilla.org/projects/bonsai/) interface to the FreeBSD CVS repository. I was going to have a look at doing this locally and trying to hook it into CVSup (normally it ties into the CVS server to track commits as they are made), but if it were available as a public resource then I would imagine this would be to benefit of others as well. Is there any possibility and/or interest in the FreeBSD project setting up an interface? Is there something similar already out there? I know the commit mailing lists, but have in the past found Bonsai a more capable tool for monitoring/locating commits and determining how large and how wide-reaching the changes were. If this is the wrong list, then please redirect this message as appropriate. Please CC me in any responses as I am not subscribed to this list. Regards Antony From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 10 13:56:36 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2507D16A41F; Mon, 10 Oct 2005 13:56:36 +0000 (GMT) (envelope-from rob@hudson-trading.com) Received: from daemon.mistermishap.net (167-49.nyc.dsl.access.net [166.84.167.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC63A43D5D; Mon, 10 Oct 2005 13:56:35 +0000 (GMT) (envelope-from rob@hudson-trading.com) Received: from daemon.mistermishap.net (localhost.mistermishap.net [127.0.0.1]) by daemon.mistermishap.net (8.12.9/8.12.9) with ESMTP id j9ADuYmU042633; Mon, 10 Oct 2005 09:56:34 -0400 (EDT) (envelope-from rob@hudson-trading.com) Received: from localhost (rob@localhost) by daemon.mistermishap.net (8.12.9/8.12.9/Submit) with ESMTP id j9ADuYxk042630; Mon, 10 Oct 2005 09:56:34 -0400 (EDT) X-Authentication-Warning: daemon.mistermishap.net: rob owned process doing -bs Date: Mon, 10 Oct 2005 09:56:34 -0400 (EDT) From: Rob Watt X-X-Sender: rob@daemon.mistermishap.net To: Don Lewis In-Reply-To: <200510080608.j9868bZi034671@gw.catspoiler.org> Message-ID: <20051010095330.C42520@daemon.mistermishap.net> References: <200510080608.j9868bZi034671@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: rob@hudson-trading.com, mikep@hudson-trading.com, jason@hudson-trading.com, freebsd-hackers@FreeBSD.org Subject: Re: freebsd-5.4-stable panics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 13:56:36 -0000 Don, On Fri, 7 Oct 2005, Don Lewis wrote: > Both HEAD and RELENG_6 have been patched. I've tested the following > patch for RELENG_5 on a uniprocessor sparc64 box. I'd appreciate it if > anyone who was running into this problem on RELENG_5 with SMP hardare > could test it before I do the MFC. We have a machine running with those patches applied. We need to do some other tests on it today, but tonight we will run our threaded applications that trigger the kern_proc problem in top. We should have results tomorrow morning. - Rob Watt From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 10 14:22:01 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E73E416A41F for ; Mon, 10 Oct 2005 14:22:01 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F28243D48 for ; Mon, 10 Oct 2005 14:22:01 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so140680nzk for ; Mon, 10 Oct 2005 07:22:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=mrG/sercpvCrogdRyr6YQzHC1sROqWweAtjV1iME4HCCct5EWr/Ombm07jNDR63dPQgipdj2MGNUil3xCI00WXe7aWmEsIFOWCiHmUk4DrDcTED9xXxlFSN4Gx80whkZyBu0hzJvvCqnRsPAyo1LLU8SklLwVhBnWVzZBTk7EJA= Received: by 10.36.247.57 with SMTP id u57mr2934227nzh; Mon, 10 Oct 2005 07:22:00 -0700 (PDT) Received: by 10.36.46.7 with HTTP; Mon, 10 Oct 2005 07:22:00 -0700 (PDT) Message-ID: <3bbf2fe10510100722j2dcbc935n@mail.gmail.com> Date: Mon, 10 Oct 2005 16:22:00 +0200 From: rookie To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: about gcc code assembly X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rookie@gufi.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 14:22:02 -0000 Hi, compiling something like: #include static int a; void f() { printf("%d\n", a); } with: > gcc -S -o trial.S trial.c We got: [snip] ... .local a .comm a, 4, 4 .ident "GCC: (GNU) 3.4.2 [FreeBSD] 20040728" But using .lcomm would not be better? (.lcomm a, 4) cheers, Attilio -- Peace can only be achieved by understanding - A. Einstein From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 10 19:41:21 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A93016A41F for ; Mon, 10 Oct 2005 19:41:21 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail14.syd.optusnet.com.au (mail14.syd.optusnet.com.au [211.29.132.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CBEC43D4C for ; Mon, 10 Oct 2005 19:41:20 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail14.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j9AJfIPA011158 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 11 Oct 2005 05:41:19 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j9AJfIHh003822; Tue, 11 Oct 2005 05:41:18 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j9AJfIkq003821; Tue, 11 Oct 2005 05:41:18 +1000 (EST) (envelope-from pjeremy) Date: Tue, 11 Oct 2005 05:41:18 +1000 From: Peter Jeremy To: Antony Mawer Message-ID: <20051010194117.GC2482@cirb503493.alcatel.com.au> References: <4349F8E6.1030406@mawer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4349F8E6.1030406@mawer.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Bonsai-style interface (cvs change history) for FreeBSD CVS? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 19:41:21 -0000 On Mon, 2005-Oct-10 15:15:18 +1000, Antony Mawer wrote: >I thought this might be the most appropriate place to raise this - I was >wondering whether or not there was any chance of a Bonsai >(http://www.mozilla.org/projects/bonsai/) interface to the FreeBSD CVS >repository. The first step would be a port of bonsai to FreeBSD. One major obstacle to its use would be the following comment: "Performance - Bonsai can be, under the right circumstances, egregiously slow. In scenarios like Mozilla.org, which have a lot of checkins and a lot of code, the right conditions can happen a lot. Even worse, the things that make Bonsai go slow will also cause your server load to go sky high and make everything else go slow." The FreeBSD codebase is more than an order of magnitude larger than Mozilla and I suspect there are significantly more developers and commits. The above comment suggests it would be unusably slow. > I was going to have a look at doing this locally and trying >to hook it into CVSup It might be easier to hook it into a local CVS repository and the cvs-all mailing list. -- Peter Jeremy From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 11 18:03:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAD5716A41F for ; Tue, 11 Oct 2005 18:03:53 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 096A343D53 for ; Tue, 11 Oct 2005 18:03:52 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j9BI3o7G033806 for ; Tue, 11 Oct 2005 13:03:50 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <434BFE72.1090807@centtech.com> Date: Tue, 11 Oct 2005 13:03:30 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.11) Gecko/20050914 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/1128/Mon Oct 10 20:30:06 2005 on mh1.centtech.com X-Virus-Status: Clean Subject: ufsstat - testers / feedback wanted! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 18:03:53 -0000 I've just finished the first version of ufsstat, a tool to show local filesystem statistics much like nfsstat does for NFS. The patch and tool is against 6.0, but it will probably apply and work fine under -CURRENT and possibly 5.x as well. I'm looking for bug reports, comments/suggestions on style(9), and anything else, since this is my first C project, and of course first real FreeBSD contribution. :) To use it, do this: cd /tmp fetch http://www.googlebit.com/software/ufsstat/ufsstat-20051011.tar.gz cd /usr tar xvzf /tmp/ufsstat-20051011.tar.gz patch <./ufsstats.patch add: OPTIONS UFSSTAT to your kernel. Rebuild and install world/kernel. Now, you can use ufsstat to show you statistics from your local filesystems, like this: # ufsstat Create Remove Link Symlink Mkdir Rmdir Rename 289048 794043 4361 12558 25796 117739 0 GetAttr SetAttr Open Close ReadDir ReadLink VInit 64868230 759824 10701553 9891642 5042948 0 45315645 Chmod Chown Whiteout Strategy Access Mknod NewInode 409782 79612 0 4020035 0 3 0 Fsync SyncVnode LockVnode RdVnode WrVNode 0 0 0 0 0 ExtRead Extwrite FndExtAtt RdExtAttr OpnExtAtt ClseExtAt ExtStrtgy 0 0 0 0 0 0 0 or watch over time with the -w switch. I have not done any performance testing yet to see if it impacts filesystem performance by any measurable amount, so if someone does do this testing before I do, please post your results! Thanks in advance! Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 11 19:11:22 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A81916A41F; Tue, 11 Oct 2005 19:11:22 +0000 (GMT) (envelope-from rob@hudson-trading.com) Received: from daemon.mistermishap.net (167-49.nyc.dsl.access.net [166.84.167.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id D250E43D53; Tue, 11 Oct 2005 19:11:21 +0000 (GMT) (envelope-from rob@hudson-trading.com) Received: from daemon.mistermishap.net (localhost.mistermishap.net [127.0.0.1]) by daemon.mistermishap.net (8.12.9/8.12.9) with ESMTP id j9BJBKmU050095; Tue, 11 Oct 2005 15:11:20 -0400 (EDT) (envelope-from rob@hudson-trading.com) Received: from localhost (rob@localhost) by daemon.mistermishap.net (8.12.9/8.12.9/Submit) with ESMTP id j9BJBJur050092; Tue, 11 Oct 2005 15:11:20 -0400 (EDT) X-Authentication-Warning: daemon.mistermishap.net: rob owned process doing -bs Date: Tue, 11 Oct 2005 15:11:19 -0400 (EDT) From: Rob Watt X-X-Sender: rob@daemon.mistermishap.net To: Don Lewis In-Reply-To: <20051010095330.C42520@daemon.mistermishap.net> Message-ID: <20051011150721.F49494@daemon.mistermishap.net> References: <200510080608.j9868bZi034671@gw.catspoiler.org> <20051010095330.C42520@daemon.mistermishap.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-hackers@freebsd.org, mikep@hudson-trading.com, Jason Carroll Subject: Re: freebsd-5.4-stable panics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 19:11:22 -0000 On Mon, 10 Oct 2005, Rob Watt wrote: > Don, > > On Fri, 7 Oct 2005, Don Lewis wrote: > > > Both HEAD and RELENG_6 have been patched. I've tested the following > > patch for RELENG_5 on a uniprocessor sparc64 box. I'd appreciate it if > > anyone who was running into this problem on RELENG_5 with SMP hardare > > could test it before I do the MFC. > > We have a machine running with those patches applied. We need to do some > other tests on it today, but tonight we will run our threaded applications > that trigger the kern_proc problem in top. We should have results tomorrow > morning. Don, I had misunderstood what you had asked. I tested this on a 6.0 machine. I could not crash an amd64 SMP box running 6.0-BETA5 with this patch. I do not have a test box running RELENG_5 to try this patch on right now. If I can setup a test box I will let you know our results, but that may take a day or two. - Rob Watt From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 11 22:28:20 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E016B16A41F for ; Tue, 11 Oct 2005 22:28:20 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FC1D43D46 for ; Tue, 11 Oct 2005 22:28:20 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id j9BMSACh046318; Tue, 11 Oct 2005 15:28:14 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200510112228.j9BMSACh046318@gw.catspoiler.org> Date: Tue, 11 Oct 2005 15:28:10 -0700 (PDT) From: Don Lewis To: rob@hudson-trading.com In-Reply-To: <20051011150721.F49494@daemon.mistermishap.net> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: freebsd-hackers@FreeBSD.org, mikep@hudson-trading.com, jason@hudson-trading.com Subject: Re: freebsd-5.4-stable panics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 22:28:21 -0000 On 11 Oct, Rob Watt wrote: > On Mon, 10 Oct 2005, Rob Watt wrote: > >> Don, >> >> On Fri, 7 Oct 2005, Don Lewis wrote: >> >> > Both HEAD and RELENG_6 have been patched. I've tested the following >> > patch for RELENG_5 on a uniprocessor sparc64 box. I'd appreciate it if >> > anyone who was running into this problem on RELENG_5 with SMP hardare >> > could test it before I do the MFC. >> >> We have a machine running with those patches applied. We need to do some >> other tests on it today, but tonight we will run our threaded applications >> that trigger the kern_proc problem in top. We should have results tomorrow >> morning. > > Don, > > I had misunderstood what you had asked. I tested this on a 6.0 machine. I > could not crash an amd64 SMP box running 6.0-BETA5 with this patch. I do > not have a test box running RELENG_5 to try this patch on right now. If I > can setup a test box I will let you know our results, but that may take a > day or two. I MFC'ed the fix to RELENG_6 last week, but the patch didn't apply cleanly to RELENG_5. I tweaked the patch for RELENG_5 and tested it on a UP box. I'd like to get some testing on SMP hardware before I commit it to RELENG_5, just to make sure that I don't destabilize -STABLE. I do want to get the fix into RELENG_5, since this thread originated with a complaint about 5.4-STABLE. From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 06:22:58 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57E6016A41F for ; Wed, 12 Oct 2005 06:22:58 +0000 (GMT) (envelope-from gwenjo@wanadoo.fr) Received: from mail.libertysurf.net (mx-out.tiscali.fr [213.36.80.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D4FD43D5F for ; Wed, 12 Oct 2005 06:22:54 +0000 (GMT) (envelope-from gwenjo@wanadoo.fr) Received: from [83.155.42.132] (83.155.42.132) by mail.libertysurf.net (7.1.026) id 432E7C7D004A55C1 for freebsd-hackers@freebsd.org; Wed, 12 Oct 2005 08:22:53 +0200 Message-ID: <434CABC3.1070408@wanadoo.fr> Date: Wed, 12 Oct 2005 08:22:59 +0200 From: gwe User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: sagem fast 800+PPPoA on freebsd6 Beta 5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 06:22:58 -0000 Hello, I wish to use the sagem fast 800, but it's impossible to connect this modem. I've already modified the driver ueagle 1.5 for compiling, installing them and using without kernel panic. But in /var/log/ppp.log it's said : Warning : Cannot exec "PPPoA:ueagle0:8.35" : No such file or directory. It's true ueagle0 doesn't exist in /dev. I'm newbie in module developement and I need information and help for this work Thank you very much From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 11:21:24 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2C4B16A41F for ; Wed, 12 Oct 2005 11:21:24 +0000 (GMT) (envelope-from nuno.antunes@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7996443D45 for ; Wed, 12 Oct 2005 11:21:24 +0000 (GMT) (envelope-from nuno.antunes@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so105977nzk for ; Wed, 12 Oct 2005 04:21:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=OMtPpvONCiTZatETw1v2G1l/rfty7et/hqdahd5iYYdIPW/w8MgpHZ3/IwwOx4xmT1qZcOLDD3Mr5qMVaUX805Fhu6hw1RQm9OOqtC0imW+RGckjfz8o97P5VjlNmF/JxLDn15VpYdhwzwXHdwq+dsHhs7YtpgQOzvD2jP2r5ck= Received: by 10.36.247.71 with SMTP id u71mr603020nzh; Wed, 12 Oct 2005 04:21:23 -0700 (PDT) Received: by 10.36.196.9 with HTTP; Wed, 12 Oct 2005 04:21:23 -0700 (PDT) Message-ID: <262949390510120421yc7a0c50p4286753a01401a6a@mail.gmail.com> Date: Wed, 12 Oct 2005 12:21:23 +0100 From: Nuno Antunes To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: How to redisplay a libedit command line? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 11:21:25 -0000 Hi, I'm trying to add support for command line editing to ngctl via libedit. Mo= st work is done, but I need to have the command line redrawn after printing whatever data is received on the control or data socket of ngctl. I've searched but can't seem to find how to redraw the line. Is there a libedit "internal" way of doing this, or do I have to retrieve the current = line content and then re-print it manualy? Please excuse me if this is not the correct mailing list for this question. Thanks, Nuno Antunes From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 11 14:08:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35C5F16A44E for ; Tue, 11 Oct 2005 14:08:16 +0000 (GMT) (envelope-from gwenj-pas-de-spam@free.fr) Received: from mail.libertysurf.net (mx-out.tiscali.fr [213.36.80.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9B2843D48 for ; Tue, 11 Oct 2005 14:08:15 +0000 (GMT) (envelope-from gwenj-pas-de-spam@free.fr) Received: from [83.154.141.7] (83.154.141.7) by mail.libertysurf.net (7.1.026) id 432E7DD700487A66 for freebsd-hackers@freebsd.org; Tue, 11 Oct 2005 16:08:15 +0200 Message-ID: <434BC754.50406@free.fr> Date: Tue, 11 Oct 2005 16:08:20 +0200 From: gwenj User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 12 Oct 2005 11:48:45 +0000 Subject: sagem fast 800+PPPoA on freebsd6 Beta 5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 14:08:16 -0000 Hello, I wish to use the sagem fast 800, but it's impossible to connect this modem. I've already modified the driver ueagle 1.5 for compiling, installing them and using without kernel panic. But in /var/log/ppp.log it's said : Warning : Cannot exec "PPPoA:ueagle0:8.35" : No such file or directory. It's true ueagle0 doesn't exist in /dev. I'm newbie in module developement and I need information and help for this work Thank you very much From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 11 16:47:26 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE8F816A41F for ; Tue, 11 Oct 2005 16:47:26 +0000 (GMT) (envelope-from TheManifestShadow@gmail.com) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 545D843D45 for ; Tue, 11 Oct 2005 16:47:26 +0000 (GMT) (envelope-from TheManifestShadow@gmail.com) Received: from [127.0.0.1] (pcp0011328476pcs.elictc01.md.comcast.net[69.250.66.154]) by comcast.net (sccrmhc13) with ESMTP id <2005101116472501300b9pk6e>; Tue, 11 Oct 2005 16:47:25 +0000 Message-ID: <434BECA0.9050501@gmail.com> Date: Tue, 11 Oct 2005 12:47:28 -0400 From: Pete User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0541-0, 10/10/2005), Outbound message X-Antivirus-Status: Clean X-Mailman-Approved-At: Wed, 12 Oct 2005 11:48:45 +0000 Subject: Driver Development Books? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 16:47:26 -0000 Hello, I have what may seem to be a silly question, but I cannot find any other decent resources on the web. >.< The problem that I am having right now is that I have a fairly nice graphics card which, for the moment is only supported on Windows Operating systems, and old 2.4 Linux kernels. So far there has not been much positive outlook in porting the drivers to *BSD or any of the 2.6 kernels that I know of, let alone 64-bit drivers for non-Win OSes. So I guess that makes my question fairly simple then; I know that driver code is written in C (which I am learning currently) but thats about all I know. I'm probably not far off when I say that I need more to go on. Yet, from looking at Amazon.com I have not been able to find any books on writing driver code, which is really frustrating. One of my security related books, Rootkits, tells me about how to write drivers for a completely different reason so I know a bit more about how they work but again the code involved does not interface hardware to the OS, just injects a custom application. The other tool that I will probably use is Jungo, which is a nice-looking application which automates a skeletal version of the driver you need, but again, I would not know how to fill it out. Any help is appreciated. -Pete "Rootkits" Book Homepage -- http://www.rootkit.com/ Jungo WinDriver -- http://www.jungo.com/windriver.html From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 12:03:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95F9116A41F for ; Wed, 12 Oct 2005 12:03:41 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 461DA43D45 for ; Wed, 12 Oct 2005 12:03:41 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms170.mailsrvcs.net ([192.168.1.3]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IO80084KXI4VN60@vms044.mailsrvcs.net> for freebsd-hackers@freebsd.org; Wed, 12 Oct 2005 07:03:40 -0500 (CDT) Date: Wed, 12 Oct 2005 07:03:40 -0500 (CDT) From: Sergey Babkin To: Pete , freebsd-hackers@freebsd.org Message-id: <17200319.1129118620885.JavaMail.root@vms170.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailman-Approved-At: Wed, 12 Oct 2005 12:12:28 +0000 Cc: Subject: Re: Driver Development Books? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 12:03:41 -0000 >From: Pete >Date: Tue Oct 11 11:47:28 CDT 2005 >To: freebsd-hackers@freebsd.org >Subject: Driver Development Books? >Hello, > I have what may seem to be a silly question, but I cannot find any >other decent resources on the web. >.< The problem that I am having >right now is >that I have a fairly nice graphics card which, for the moment is only >supported on Windows Operating systems, and old 2.4 Linux kernels. So >far there has >not been much positive outlook in porting the drivers to *BSD or any of >the 2.6 kernels that I know of, let alone 64-bit drivers for non-Win OSes. The video cards usually have nothing to do with the kernel itself. Their drivers are in the X Window system. Probably the easiest fix is to just install an older version (3.x probably) of XFree86 on your machine. >So I guess that makes my question fairly simple then; I know that driver >code is written in C (which I am learning currently) but thats about all Well, you usually need a bit more expertise than "learning currently" to write drivers. >I know. I'm probably >not far off when I say that I need more to go on. Yet, from looking at >Amazon.com I have not been able to find any books on writing driver >code, which is really >frustrating. Searching for "device driver" turns up a lot of books on Amazon. For the system-specific details look in the online FreeBSD Device Driver Writer's guide (part of the Handbook if I remember correctly). Anyway, for the graphical cards it's not what you need. The graphical drivers are running in user space as a part of X server. Writing them is a completely different story and I don't think there are any manuals. Just look at the code of the other drivers and do the same. -SB From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 12:31:23 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93F9416A422 for ; Wed, 12 Oct 2005 12:31:23 +0000 (GMT) (envelope-from joao.barros@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D8D343D46 for ; Wed, 12 Oct 2005 12:31:22 +0000 (GMT) (envelope-from joao.barros@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so63926wxc for ; Wed, 12 Oct 2005 05:31:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UUF+HcTSBlTsjN7GAar474/d5+wtNpVuM/X9cSNhn5mZa9Fga5e242X6n1j01UKkg7nuT0IEXeUMFRe98c/XGyy2ZLQdwDdyJCdVNrifdaDPVpdwGq56Z4P5ntBQdTUxVcmAvjzEAcKBD14r2wXsyGh4OeXSWi+06qoW1Mp/fLc= Received: by 10.70.16.16 with SMTP id 16mr139859wxp; Wed, 12 Oct 2005 05:31:22 -0700 (PDT) Received: by 10.70.10.5 with HTTP; Wed, 12 Oct 2005 05:31:22 -0700 (PDT) Message-ID: <70e8236f0510120531m33942c8dwb72c4729b83e264b@mail.gmail.com> Date: Wed, 12 Oct 2005 13:31:22 +0100 From: Joao Barros To: Pete In-Reply-To: <434BECA0.9050501@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <434BECA0.9050501@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Driver Development Books? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 12:31:23 -0000 On 10/11/05, Pete wrote: > Hello, > I have what may seem to be a silly question, but I cannot find any > other decent resources on the web. >.< The problem that I am having > right now is > that I have a fairly nice graphics card which, for the moment is only > supported on Windows Operating systems, and old 2.4 Linux kernels. So > far there has > not been much positive outlook in porting the drivers to *BSD or any of > the 2.6 kernels that I know of, let alone 64-bit drivers for non-Win OSes= . > > So I guess that makes my question fairly simple then; I know that driver > code is written in C (which I am learning currently) but thats about all > I know. I'm probably > not far off when I say that I need more to go on. Yet, from looking at > Amazon.com I have not been able to find any books on writing driver > code, which is really > frustrating. > > One of my security related books, Rootkits, tells me about how to write > drivers for a completely different reason so I know a bit more about how > they work but again > the code involved does not interface hardware to the OS, just injects a > custom application. The other tool that I will probably use is Jungo, > which is a nice-looking > application which automates a skeletal version of the driver you need, > but again, I would not know how to fill it out. > > Any help is appreciated. > > -Pete I started porting a pseudo driver from OpenBSD and had the same issues. You could find more info here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/newbus-api.h= tml http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics= -char.html#AEN8703 And this come in very handy: FreeBSD Source Code Tour: http://snapshots.jp.freebsd.org/tour/ A nice website provided by Robert Watson (Thanks!!!): http://fxr.watson.org= / Looking at existing code is also good, like the simple led driver by phk@ There was also a thread where John Baldwin described the parts of a driver but I can't seem to find it. -- Joao Barros From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 13:07:10 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF97216A41F for ; Wed, 12 Oct 2005 13:07:10 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32AA943D45 for ; Wed, 12 Oct 2005 13:07:05 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.204] ([192.168.254.204]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id j9CD73jL058718; Wed, 12 Oct 2005 07:07:03 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <434D0A73.2010509@samsco.org> Date: Wed, 12 Oct 2005 07:06:59 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pete References: <434BECA0.9050501@gmail.com> In-Reply-To: <434BECA0.9050501@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org Subject: Re: Driver Development Books? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 13:07:10 -0000 Pete wrote: > Hello, > I have what may seem to be a silly question, but I cannot find any > other decent resources on the web. >.< The problem that I am having > right now is > that I have a fairly nice graphics card which, for the moment is only > supported on Windows Operating systems, and old 2.4 Linux kernels. So > far there has > not been much positive outlook in porting the drivers to *BSD or any of > the 2.6 kernels that I know of, let alone 64-bit drivers for non-Win OSes. > > So I guess that makes my question fairly simple then; I know that driver > code is written in C (which I am learning currently) but thats about all > I know. I'm probably > not far off when I say that I need more to go on. Yet, from looking at > Amazon.com I have not been able to find any books on writing driver > code, which is really > frustrating. > > One of my security related books, Rootkits, tells me about how to write > drivers for a completely different reason so I know a bit more about how > they work but again > the code involved does not interface hardware to the OS, just injects a > custom application. The other tool that I will probably use is Jungo, > which is a nice-looking > application which automates a skeletal version of the driver you need, > but again, I would not know how to fill it out. > > Any help is appreciated. > > -Pete > There are indeed no books that I know of on the subject of writing drivers for any *BSD, let alone FreeBSD. For the last year I've wanted to sit down and write such a book, but the amount of time needed to do this is daunting. Anyways, there were a couple of articles published back around 2000 on DeamonNews that covered some basic information on writing kernel modules, and they are likely still available via the various web search engines. For more detailed information, you'll need to dig into the kernel source code, look for appropriate manual pages, and ask questions. There are a number of really good people on this list that try to answer most questions like this, so don't be afraid to ask. Scott From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 13:13:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8F1B16A41F; Wed, 12 Oct 2005 13:13:15 +0000 (GMT) (envelope-from rob@hudson-trading.com) Received: from daemon.mistermishap.net (167-49.nyc.dsl.access.net [166.84.167.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 331E643D45; Wed, 12 Oct 2005 13:13:14 +0000 (GMT) (envelope-from rob@hudson-trading.com) Received: from daemon.mistermishap.net (localhost.mistermishap.net [127.0.0.1]) by daemon.mistermishap.net (8.12.9/8.12.9) with ESMTP id j9CDDDmU054741; Wed, 12 Oct 2005 09:13:13 -0400 (EDT) (envelope-from rob@hudson-trading.com) Received: from localhost (rob@localhost) by daemon.mistermishap.net (8.12.9/8.12.9/Submit) with ESMTP id j9CDDDCv054738; Wed, 12 Oct 2005 09:13:13 -0400 (EDT) X-Authentication-Warning: daemon.mistermishap.net: rob owned process doing -bs Date: Wed, 12 Oct 2005 09:13:13 -0400 (EDT) From: Rob Watt X-X-Sender: rob@daemon.mistermishap.net To: Don Lewis In-Reply-To: <200510112228.j9BMSACh046318@gw.catspoiler.org> Message-ID: <20051012091120.M54709@daemon.mistermishap.net> References: <200510112228.j9BMSACh046318@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: rob work , mikep@hudson-trading.com, Jason Carroll , freebsd-hackers@freebsd.org Subject: Re: freebsd-5.4-stable panics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 13:13:16 -0000 > >> On Fri, 7 Oct 2005, Don Lewis wrote: > I MFC'ed the fix to RELENG_6 last week, but the patch didn't apply > cleanly to RELENG_5. I tweaked the patch for RELENG_5 and tested it on > a UP box. I'd like to get some testing on SMP hardware before I commit > it to RELENG_5, just to make sure that I don't destabilize -STABLE. I > do want to get the fix into RELENG_5, since this thread originated with > a complaint about 5.4-STABLE. I should be able to have a 5.4 machine available to test this tonight. Can you send me the tweaked patch? - Rob Watt From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 15:39:04 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2AF616A41F for ; Wed, 12 Oct 2005 15:39:04 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF11E43D48 for ; Wed, 12 Oct 2005 15:39:03 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id j9CFc0TW055220; Wed, 12 Oct 2005 09:38:05 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 12 Oct 2005 09:39:06 -0600 (MDT) Message-Id: <20051012.093906.128047150.imp@bsdimp.com> To: scottl@samsco.org From: "M. Warner Losh" In-Reply-To: <434D0A73.2010509@samsco.org> References: <434BECA0.9050501@gmail.com> <434D0A73.2010509@samsco.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 12 Oct 2005 09:38:06 -0600 (MDT) Cc: freebsd-hackers@FreeBSD.ORG, TheManifestShadow@gmail.com Subject: Re: Driver Development Books? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 15:39:04 -0000 In message: <434D0A73.2010509@samsco.org> Scott Long writes: : For more detailed information, you'll need : to dig into the kernel source code, look for appropriate manual pages, : and ask questions. There are a number of really good people on this : list that try to answer most questions like this, so don't be afraid to : ask. There's also a driver@freebsd.org which is specifically for questions about writing drivers. Warner From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 17:05:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3AD0C16A422 for ; Wed, 12 Oct 2005 17:05:53 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A96043D48 for ; Wed, 12 Oct 2005 17:05:52 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.14] (imini.samsco.home [192.168.254.14]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id j9CH5oOn059948; Wed, 12 Oct 2005 11:05:50 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <434D426E.7010808@samsco.org> Date: Wed, 12 Oct 2005 11:05:50 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sangwoo Shim References: <434BECA0.9050501@gmail.com> <434D0A73.2010509@samsco.org> <4cbd01f40510120938j3117ae6ap@mail.gmail.com> In-Reply-To: <4cbd01f40510120938j3117ae6ap@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org, Pete Subject: Re: Driver Development Books? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 17:05:53 -0000 Sangwoo Shim wrote: > 2005/10/12, Scott Long : > >>Pete wrote: >> >>>Hello, >>> I have what may seem to be a silly question, but I cannot find any >>>other decent resources on the web. >.< The problem that I am having >>>right now is >>>that I have a fairly nice graphics card which, for the moment is only >>>supported on Windows Operating systems, and old 2.4 Linux kernels. So >>>far there has >>>not been much positive outlook in porting the drivers to *BSD or any of >>>the 2.6 kernels that I know of, let alone 64-bit drivers for non-Win OSes. >>> >>>So I guess that makes my question fairly simple then; I know that driver >>>code is written in C (which I am learning currently) but thats about all >>>I know. I'm probably >>>not far off when I say that I need more to go on. Yet, from looking at >>>Amazon.com I have not been able to find any books on writing driver >>>code, which is really >>>frustrating. >>> >>>One of my security related books, Rootkits, tells me about how to write >>>drivers for a completely different reason so I know a bit more about how >>>they work but again >>>the code involved does not interface hardware to the OS, just injects a >>>custom application. The other tool that I will probably use is Jungo, >>>which is a nice-looking >>>application which automates a skeletal version of the driver you need, >>>but again, I would not know how to fill it out. >>> >>>Any help is appreciated. >>> >>>-Pete >>> >> >>There are indeed no books that I know of on the subject of writing >>drivers for any *BSD, let alone FreeBSD. > > [snip] > > > For me, following book was quite helpful: > Embedded FreeBSD cookbook, by Paul Cevoli > ISBN: 1589950046 > > It tells about basic kernel data structure for driver writing. One of > the best aspect of this book is that it shows you real code for real > device (a simple PCI device). Moreover, it was quite easy to read. > Although it focuses on FreeBSD 4.X. For those who want some > _introduction_ for the FreeBSD driver > writing, I would like to recommend this. > > Regard, > Sangwoo Shim Ah, didn't know about that book. Yes, that sounds like a good foundation, though some aspects of drivers in 5.x and beyond are vastly different than in 4.x and prior, particularly concerning synchronization and interrupt behaviour. The next step is to talk about the different driver APIs and infrastructure, as well as debugging guides. Scott From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 17:38:39 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F14AC16A41F for ; Wed, 12 Oct 2005 17:38:39 +0000 (GMT) (envelope-from remko@freebsd.org) Received: from caelis.elvandar.org (caelis.elvandar.org [217.148.169.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C8DF43D45 for ; Wed, 12 Oct 2005 17:38:39 +0000 (GMT) (envelope-from remko@freebsd.org) Received: from localhost (caelis.elvandar.org [217.148.169.59]) by caelis.elvandar.org (Postfix) with ESMTP id 188BE930D5E; Wed, 12 Oct 2005 19:38:38 +0200 (CEST) Received: from caelis.elvandar.org ([217.148.169.59]) by localhost (caelis.elvandar.org [217.148.169.59]) (amavisd-new, port 10024) with ESMTP id 14523-08; Wed, 12 Oct 2005 19:38:37 +0200 (CEST) Message-ID: <434D4A2F.9050409@FreeBSD.org> Date: Wed, 12 Oct 2005 19:38:55 +0200 From: Remko Lodder User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Johnson David References: <6F2F8FD3FBCF7A489CB18912A4807EBA015190FD@mvwcim1a.acuson.com> In-Reply-To: <6F2F8FD3FBCF7A489CB18912A4807EBA015190FD@mvwcim1a.acuson.com> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by the elvandar.org maildomain Cc: freebsd-hackers@freebsd.org Subject: Re: Bind within src-contrib X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 17:38:40 -0000 Johnson David wrote: > From: Frank Laszlo [mailto:laszlof@tvog.net] > > >>How would you like a system with no host(1), dig(1), or nslookup(1)? I >>personally consider these tools essential for a freebsd system. > > > Are these utilities used anywhere else in FreeBSD, such as the startup > scripts? Are they something required by the vast majority of users? If not, > I wouldn't consider them "essential". That doesn't mean I would move them to > ports, as there's a lot of other non-essential software in the base system > (biff, indent, etc.). > > David Imo this discussion does not belong here but on hackers@ so i changed the CC line for that. I will only reply on the part: "not having host, dig and nslookup available", since there might be other tools that can do the resolving part as well which i do not currently know. A system without resolver libraries and applications simply is not maintainable by default. If you have no resolving applications in your base system you will not be able to install a port or anything at all that requires remote access. Why? because your machine cannot map the www.freebsd.org host (example) to an ip address. Without being able to do so, it simply cannot find the ip address of the host where the files might live resulting in a failre to obtain the files. And well without files it will be difficult to install something... I hope this helps a bit in why resolving capabilities are needed in the base system. -- Kind regards, Remko Lodder ** remko@elvandar.org FreeBSD ** remko@FreeBSD.org Reporter DSINET ** remko@DSINet.org From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 19:25:45 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FCD616A41F for ; Wed, 12 Oct 2005 19:25:45 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0E1C43D45 for ; Wed, 12 Oct 2005 19:25:43 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id j9CJPU5D048710; Wed, 12 Oct 2005 12:25:35 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200510121925.j9CJPU5D048710@gw.catspoiler.org> Date: Wed, 12 Oct 2005 12:25:30 -0700 (PDT) From: Don Lewis To: rob@hudson-trading.com In-Reply-To: <20051012091120.M54709@daemon.mistermishap.net> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: freebsd-hackers@FreeBSD.org, mikep@hudson-trading.com, jason@hudson-trading.com Subject: Re: freebsd-5.4-stable panics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 19:25:45 -0000 On 12 Oct, Rob Watt wrote: >> >> On Fri, 7 Oct 2005, Don Lewis wrote: >> I MFC'ed the fix to RELENG_6 last week, but the patch didn't apply >> cleanly to RELENG_5. I tweaked the patch for RELENG_5 and tested it on >> a UP box. I'd like to get some testing on SMP hardware before I commit >> it to RELENG_5, just to make sure that I don't destabilize -STABLE. I >> do want to get the fix into RELENG_5, since this thread originated with >> a complaint about 5.4-STABLE. > > I should be able to have a 5.4 machine available to test this tonight. Can > you send me the tweaked patch? I found a couple little nits that I fixed in this version: Index: sys/kern/kern_proc.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_proc.c,v retrieving revision 1.215.2.6 diff -u -r1.215.2.6 kern_proc.c --- sys/kern/kern_proc.c 22 Mar 2005 13:40:23 -0000 1.215.2.6 +++ sys/kern/kern_proc.c 12 Oct 2005 19:13:14 -0000 @@ -72,6 +72,8 @@ static void doenterpgrp(struct proc *, struct pgrp *); static void orphanpg(struct pgrp *pg); +static void fill_kinfo_proc_only(struct proc *p, struct kinfo_proc *kp); +static void fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp); static void pgadjustjobc(struct pgrp *pgrp, int entering); static void pgdelete(struct pgrp *); static int proc_ctor(void *mem, int size, void *arg, int flags); @@ -601,33 +603,22 @@ } } #endif /* DDB */ -void -fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp); /* - * Fill in a kinfo_proc structure for the specified process. + * Clear kinfo_proc and fill in any information that is common + * to all threads in the process. * Must be called with the target process locked. */ -void -fill_kinfo_proc(struct proc *p, struct kinfo_proc *kp) -{ - fill_kinfo_thread(FIRST_THREAD_IN_PROC(p), kp); -} - -void -fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp) +static void +fill_kinfo_proc_only(struct proc *p, struct kinfo_proc *kp) { - struct proc *p; struct thread *td0; - struct ksegrp *kg; struct tty *tp; struct session *sp; struct timeval tv; struct ucred *cred; struct sigacts *ps; - p = td->td_proc; - bzero(kp, sizeof(*kp)); kp->ki_structsize = sizeof(*kp); @@ -685,7 +676,8 @@ kp->ki_tsize = vm->vm_tsize; kp->ki_dsize = vm->vm_dsize; kp->ki_ssize = vm->vm_ssize; - } + } else if (p->p_state == PRS_ZOMBIE) + kp->ki_stat = SZOMB; if ((p->p_sflag & PS_INMEM) && p->p_stats) { kp->ki_start = p->p_stats->p_start; timevaladd(&kp->ki_start, &boottime); @@ -704,71 +696,6 @@ kp->ki_nice = p->p_nice; bintime2timeval(&p->p_runtime, &tv); kp->ki_runtime = tv.tv_sec * (u_int64_t)1000000 + tv.tv_usec; - if (p->p_state != PRS_ZOMBIE) { -#if 0 - if (td == NULL) { - /* XXXKSE: This should never happen. */ - printf("fill_kinfo_proc(): pid %d has no threads!\n", - p->p_pid); - mtx_unlock_spin(&sched_lock); - return; - } -#endif - if (td->td_wmesg != NULL) { - strlcpy(kp->ki_wmesg, td->td_wmesg, - sizeof(kp->ki_wmesg)); - } - if (TD_ON_LOCK(td)) { - kp->ki_kiflag |= KI_LOCKBLOCK; - strlcpy(kp->ki_lockname, td->td_lockname, - sizeof(kp->ki_lockname)); - } - - if (p->p_state == PRS_NORMAL) { /* XXXKSE very approximate */ - if (TD_ON_RUNQ(td) || - TD_CAN_RUN(td) || - TD_IS_RUNNING(td)) { - kp->ki_stat = SRUN; - } else if (P_SHOULDSTOP(p)) { - kp->ki_stat = SSTOP; - } else if (TD_IS_SLEEPING(td)) { - kp->ki_stat = SSLEEP; - } else if (TD_ON_LOCK(td)) { - kp->ki_stat = SLOCK; - } else { - kp->ki_stat = SWAIT; - } - } else { - kp->ki_stat = SIDL; - } - - kg = td->td_ksegrp; - - /* things in the KSE GROUP */ - kp->ki_estcpu = kg->kg_estcpu; - kp->ki_slptime = kg->kg_slptime; - kp->ki_pri.pri_user = kg->kg_user_pri; - kp->ki_pri.pri_class = kg->kg_pri_class; - - /* Things in the thread */ - kp->ki_wchan = td->td_wchan; - kp->ki_pri.pri_level = td->td_priority; - kp->ki_pri.pri_native = td->td_base_pri; - kp->ki_lastcpu = td->td_lastcpu; - kp->ki_oncpu = td->td_oncpu; - kp->ki_tdflags = td->td_flags; - kp->ki_tid = td->td_tid; - kp->ki_numthreads = p->p_numthreads; - kp->ki_pcb = td->td_pcb; - kp->ki_kstack = (void *)td->td_kstack; - kp->ki_pctcpu = sched_pctcpu(td); - - /* We can't get this anymore but ps etc never used it anyway. */ - kp->ki_rqindex = 0; - - } else { - kp->ki_stat = SZOMB; - } mtx_unlock_spin(&sched_lock); tp = NULL; if (p->p_pgrp) { @@ -804,8 +731,6 @@ p->p_sysent->sv_name[0] != '\0') strlcpy(kp->ki_emul, p->p_sysent->sv_name, sizeof(kp->ki_emul)); kp->ki_siglist = p->p_siglist; - SIGSETOR(kp->ki_siglist, td->td_siglist); - kp->ki_sigmask = td->td_sigmask; kp->ki_xstat = p->p_xstat; kp->ki_acflag = p->p_acflag; kp->ki_lock = p->p_lock; @@ -813,6 +738,92 @@ kp->ki_ppid = p->p_pptr->p_pid; } +/* + * Fill in information that is thread specific. + * Must be called with sched_lock locked. + */ +static void +fill_kinfo_thread(struct thread *td, struct kinfo_proc *kp) +{ + struct ksegrp *kg; + struct proc *p; + + p = td->td_proc; + + if (td->td_wmesg != NULL) + strlcpy(kp->ki_wmesg, td->td_wmesg, sizeof(kp->ki_wmesg)); + else + bzero(kp->ki_wmesg, sizeof(kp->ki_wmesg)); + if (TD_ON_LOCK(td)) { + kp->ki_kiflag |= KI_LOCKBLOCK; + strlcpy(kp->ki_lockname, td->td_lockname, + sizeof(kp->ki_lockname)); + } else { + kp->ki_kiflag &= ~KI_LOCKBLOCK; + bzero(kp->ki_lockname, sizeof(kp->ki_lockname)); + } + + if (p->p_state == PRS_NORMAL) { /* XXXKSE very approximate */ + if (TD_ON_RUNQ(td) || + TD_CAN_RUN(td) || + TD_IS_RUNNING(td)) { + kp->ki_stat = SRUN; + } else if (P_SHOULDSTOP(p)) { + kp->ki_stat = SSTOP; + } else if (TD_IS_SLEEPING(td)) { + kp->ki_stat = SSLEEP; + } else if (TD_ON_LOCK(td)) { + kp->ki_stat = SLOCK; + } else { + kp->ki_stat = SWAIT; + } + } else { + kp->ki_stat = SIDL; + } + + kg = td->td_ksegrp; + + /* things in the KSE GROUP */ + kp->ki_estcpu = kg->kg_estcpu; + kp->ki_slptime = kg->kg_slptime; + kp->ki_pri.pri_user = kg->kg_user_pri; + kp->ki_pri.pri_class = kg->kg_pri_class; + + /* Things in the thread */ + kp->ki_wchan = td->td_wchan; + kp->ki_pri.pri_level = td->td_priority; + kp->ki_pri.pri_native = td->td_base_pri; + kp->ki_lastcpu = td->td_lastcpu; + kp->ki_oncpu = td->td_oncpu; + kp->ki_tdflags = td->td_flags; + kp->ki_tid = td->td_tid; + kp->ki_numthreads = p->p_numthreads; + kp->ki_pcb = td->td_pcb; + kp->ki_kstack = (void *)td->td_kstack; + kp->ki_pctcpu = sched_pctcpu(td); + + /* We can't get this anymore but ps etc never used it anyway. */ + kp->ki_rqindex = 0; + + SIGSETOR(kp->ki_siglist, td->td_siglist); + kp->ki_sigmask = td->td_sigmask; +} + +/* + * Fill in a kinfo_proc structure for the specified process. + * Must be called with the target process locked. + */ +void +fill_kinfo_proc(struct proc *p, struct kinfo_proc *kp) +{ + + fill_kinfo_proc_only(p, kp); + mtx_lock_spin(&sched_lock); + if (FIRST_THREAD_IN_PROC(p) != NULL) + fill_kinfo_thread(FIRST_THREAD_IN_PROC(p), kp); + mtx_unlock_spin(&sched_lock); +} + struct pstats * pstats_alloc(void) { @@ -875,24 +886,28 @@ PROC_LOCK_ASSERT(p, MA_OWNED); + fill_kinfo_proc_only(p, &kinfo_proc); if (flags & KERN_PROC_NOTHREADS) { - fill_kinfo_proc(p, &kinfo_proc); - PROC_UNLOCK(p); + mtx_lock_spin(&sched_lock); + if (FIRST_THREAD_IN_PROC(p) != NULL) + fill_kinfo_thread(FIRST_THREAD_IN_PROC(p), &kinfo_proc); + mtx_unlock_spin(&sched_lock); error = SYSCTL_OUT(req, (caddr_t)&kinfo_proc, sizeof(kinfo_proc)); - PROC_LOCK(p); } else { - _PHOLD(p); - FOREACH_THREAD_IN_PROC(p, td) { - fill_kinfo_thread(td, &kinfo_proc); - PROC_UNLOCK(p); + mtx_lock_spin(&sched_lock); + if (FIRST_THREAD_IN_PROC(p) != NULL) + FOREACH_THREAD_IN_PROC(p, td) { + fill_kinfo_thread(td, &kinfo_proc); + error = SYSCTL_OUT(req, (caddr_t)&kinfo_proc, + sizeof(kinfo_proc)); + if (error) + break; + } + else error = SYSCTL_OUT(req, (caddr_t)&kinfo_proc, sizeof(kinfo_proc)); - PROC_LOCK(p); - if (error) - break; - } - _PRELE(p); + mtx_unlock_spin(&sched_lock); } PROC_UNLOCK(p); if (error) @@ -934,6 +949,9 @@ if (oid_number == KERN_PROC_PID) { if (namelen != 1) return (EINVAL); + error = sysctl_wire_old_buffer(req, 0); + if (error) + return (error); p = pfind((pid_t)name[0]); if (!p) return (ESRCH); From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 19:41:15 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74AC016A420 for ; Wed, 12 Oct 2005 19:41:15 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AF0E43D45 for ; Wed, 12 Oct 2005 19:41:14 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so71863wra for ; Wed, 12 Oct 2005 12:41:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=Eo2zWrmAYvgo4zfKzU8Z3KgOij/kZ6b7Re3IJx/D/M8LnsxD3ysvrsEKqQG8NrF5BWAoG7Ki6mxC6j4+P8WE64kPnEBKu9ak++LgcgRpC/GTUBMxAuq9GPWB2xjWqhl4dOTYPgnms2aaSyddYU1uTt+I0gq1roPuIn1uWV69SuU= Received: by 10.54.112.17 with SMTP id k17mr266064wrc; Wed, 12 Oct 2005 12:41:14 -0700 (PDT) Received: from ?192.168.1.10? ( [71.102.45.234]) by mx.gmail.com with ESMTP id 38sm6107334wrl.2005.10.12.12.41.12; Wed, 12 Oct 2005 12:41:13 -0700 (PDT) From: "Michael C. Shultz" To: Michael Lednev , freebsd-questions@freebsd.org, hackers@freebsd.org Date: Wed, 12 Oct 2005 12:42:53 -0700 User-Agent: KMail/1.8.2 References: <629544090.20051009185315@reaper.hn.org> In-Reply-To: <629544090.20051009185315@reaper.hn.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510121242.55482.ringworm01@gmail.com> Cc: Subject: Re: portmanager X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 19:41:15 -0000 On Sunday 09 October 2005 07:53, Michael Lednev wrote: > Hello, freebsd-questions. > > anyone tried to run portmanager from crontab? as for me it just > coredumps, what am i doing wrong? its simply 0 0 * * * portmanager -s I'm not sure how to fix it but I've found where portmanager crashes when run from cron, the code is: if( !strncmp( getenv("TERM"), "xterm", 5 ) && isatty(fileno(stdout)) ) { stringSize = strlen( id ) + 1 + strlen( VERSION ) + 1; xtermTitle = malloc( stringSize ); xtermTitle[0] = 0; strcat( xtermTitle, id ); strcat( xtermTitle, " " ); strcat( xtermTitle, VERSION ); printf( "%c]0;%s%c", '\033', xtermTitle, '\007' ); free( xtermTitle ); } This is used to put information in the xterm title screen while portmanager is running, I don't know enough about cron to have a clue how to fix this except to remove it and I don't want to do that. Anyone have any ideas? This particualr code snippet is from portmanager/portmanager.c around line 137.... -Mike ps. I've cross posted this to freebsd-hackers because it is a coding problem, so you may want to remove freebsd-questions from any replies. . From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 20:53:42 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2A8C16A420 for ; Wed, 12 Oct 2005 20:53:42 +0000 (GMT) (envelope-from sangwoos@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0637D43D49 for ; Wed, 12 Oct 2005 20:53:41 +0000 (GMT) (envelope-from sangwoos@gmail.com) Received: by qproxy.gmail.com with SMTP id q11so49854qbq for ; Wed, 12 Oct 2005 13:53:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nXe0BPXUlY7F6+rOjVvCXHi1U7z+6H1ep7O4yCm64JcsY7NOWKN4zYM5QiliL1056qP/u58fqsBQhHLNhf7yItLqSmOJFOrUFt3THfOMklqbyOB/vQO+dig1teMp4i904Z1fNuA1LAAyPjS0UYzWAWUDUmcU/UE7HmP2C8OThj4= Received: by 10.65.236.4 with SMTP id n4mr462426qbr; Wed, 12 Oct 2005 09:38:09 -0700 (PDT) Received: by 10.65.52.5 with HTTP; Wed, 12 Oct 2005 09:38:09 -0700 (PDT) Message-ID: <4cbd01f40510120938j3117ae6ap@mail.gmail.com> Date: Thu, 13 Oct 2005 01:38:09 +0900 From: Sangwoo Shim To: Scott Long In-Reply-To: <434D0A73.2010509@samsco.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <434BECA0.9050501@gmail.com> <434D0A73.2010509@samsco.org> Cc: freebsd-hackers@freebsd.org, Pete Subject: Re: Driver Development Books? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 20:53:42 -0000 2005/10/12, Scott Long : > Pete wrote: > > Hello, > > I have what may seem to be a silly question, but I cannot find any > > other decent resources on the web. >.< The problem that I am having > > right now is > > that I have a fairly nice graphics card which, for the moment is only > > supported on Windows Operating systems, and old 2.4 Linux kernels. So > > far there has > > not been much positive outlook in porting the drivers to *BSD or any of > > the 2.6 kernels that I know of, let alone 64-bit drivers for non-Win OS= es. > > > > So I guess that makes my question fairly simple then; I know that drive= r > > code is written in C (which I am learning currently) but thats about al= l > > I know. I'm probably > > not far off when I say that I need more to go on. Yet, from looking at > > Amazon.com I have not been able to find any books on writing driver > > code, which is really > > frustrating. > > > > One of my security related books, Rootkits, tells me about how to write > > drivers for a completely different reason so I know a bit more about ho= w > > they work but again > > the code involved does not interface hardware to the OS, just injects a > > custom application. The other tool that I will probably use is Jungo, > > which is a nice-looking > > application which automates a skeletal version of the driver you need, > > but again, I would not know how to fill it out. > > > > Any help is appreciated. > > > > -Pete > > > > There are indeed no books that I know of on the subject of writing > drivers for any *BSD, let alone FreeBSD. [snip] For me, following book was quite helpful: Embedded FreeBSD cookbook, by Paul Cevoli ISBN: 1589950046 It tells about basic kernel data structure for driver writing. One of the best aspect of this book is that it shows you real code for real device (a simple PCI device). Moreover, it was quite easy to read. Although it focuses on FreeBSD 4.X. For those who want some _introduction_ for the FreeBSD driver writing, I would like to recommend this. Regard, Sangwoo Shim From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 21:39:42 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11AAA16A41F for ; Wed, 12 Oct 2005 21:39:42 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 470E243D45 for ; Wed, 12 Oct 2005 21:39:40 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by qproxy.gmail.com with SMTP id e11so112310qbe for ; Wed, 12 Oct 2005 14:39:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=nawYVb1LFnJ28hvnvklW9mcKAyZkpFkjCbYwcHYUFuCGMKPiSzf6Kf2ooy/oWYYsZtWsZgCLHMi24Bg24vaUI4RylKwfJeqHwP0yv66fkQTDy9hPiCIgcYJAi3u5NSnb1neKOw1OLkGwcEWPrFHYRUF+WfKNJJGUepN5XNtcqb8= Received: by 10.65.242.3 with SMTP id u3mr653395qbr; Wed, 12 Oct 2005 14:39:34 -0700 (PDT) Received: from ?192.168.1.10? ( [71.102.45.234]) by mx.gmail.com with ESMTP id q16sm4496991qbq.2005.10.12.14.39.31; Wed, 12 Oct 2005 14:39:33 -0700 (PDT) From: "Michael C. Shultz" To: "Mark J. Sommer" , hackers@freebsd.org, RW Date: Wed, 12 Oct 2005 14:41:17 -0700 User-Agent: KMail/1.8.2 References: <200510122033.j9CKX5uo040708@argotsoft.com> In-Reply-To: <200510122033.j9CKX5uo040708@argotsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510121441.18997.ringworm01@gmail.com> Cc: Subject: Re: portmanager X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 21:39:42 -0000 On Wednesday 12 October 2005 13:33, you wrote: > Just a comment from an on-looker to this post. From the getenv > > The getenv() function obtains the current value of the environment vari- > able, name. If the variable name is not in the current environment, a > null pointer is returned. > > So it could potentially be passing in a null pointer to strncmp which is > not good. Is that the problem you're seeing. Easy enough to test the > return from getenv before using it. I tried wrapping it with if ( getenv("TERM") ) { . . . } made no difference. What is really frustrating is I can't get gdb to step through anything in function main ie. whatever is in portmanager.c, every function located in a library is no problem, this also renders the core file useless Guess I'll shift the guts from portmanager.c to a library function then see what gdb says. > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Michael C. Shultz > Sent: 10/12/2005 1:43 PM > To: Michael Lednev; freebsd-questions@freebsd.org; hackers@freebsd.org > Subject: Re: portmanager > > On Sunday 09 October 2005 07:53, Michael Lednev wrote: > > Hello, freebsd-questions. > > > > anyone tried to run portmanager from crontab? as for me it just > > coredumps, what am i doing wrong? its simply 0 0 * * * portmanager -s > > I'm not sure how to fix it but I've found where portmanager crashes when > run from cron, the code is: > > > if( !strncmp( getenv("TERM"), "xterm", 5 ) && isatty(fileno(stdout)) > ) > { > stringSize = strlen( id ) > + 1 > + strlen( VERSION ) > + 1; > xtermTitle = malloc( stringSize ); > xtermTitle[0] = 0; > strcat( xtermTitle, id ); > strcat( xtermTitle, " " ); > strcat( xtermTitle, VERSION ); > printf( "%c]0;%s%c", '\033', xtermTitle, '\007' ); > free( xtermTitle ); > } > > > This is used to put information in the xterm title screen while portmanager > is running, I don't know enough about cron to have a clue how to fix this > except to remove it and I don't want to do that. Anyone have any ideas? > This particualr code snippet is from portmanager/portmanager.c around line > 137.... > > -Mike > > ps. I've cross posted this to freebsd-hackers because it is a coding > problem, so you may want to remove freebsd-questions from any replies. > . > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 22:13:57 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97D9616A41F for ; Wed, 12 Oct 2005 22:13:57 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id F37D643D79 for ; Wed, 12 Oct 2005 22:13:31 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by qproxy.gmail.com with SMTP id e12so68562qba for ; Wed, 12 Oct 2005 15:13:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:user-agent:references:in-reply-to:mime-version:content-disposition:date:content-type:content-transfer-encoding:message-id; b=DgORGI6Wk328Rnkphnt+RV7qQ2uhO1HM/LvhCkbZLX7GHMGJgTL4VpLYyw5eIfV6i3VieCv6+dbvJpplCjuzD0CXfHUZ1J10fECXicxW0JDYPHWjyO2McsCySIOCZWJfPkwTbz1TwCFyKTtRgrvlg6Z2/BjJWdlMqzbWPodbYV0= Received: by 10.64.149.6 with SMTP id w6mr684970qbd; Wed, 12 Oct 2005 15:13:30 -0700 (PDT) Received: from ?192.168.1.10? ( [71.102.45.234]) by mx.gmail.com with ESMTP id q16sm4522095qbq.2005.10.12.15.13.28; Wed, 12 Oct 2005 15:13:29 -0700 (PDT) From: "Michael C. Shultz" To: "Mark J. Sommer" , hackers@freebsd.org, RW User-Agent: KMail/1.8.2 References: <200510122033.j9CKX5uo040708@argotsoft.com> In-Reply-To: <200510122033.j9CKX5uo040708@argotsoft.com> MIME-Version: 1.0 Content-Disposition: inline Date: Wed, 12 Oct 2005 15:15:13 -0700 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <200510121515.14805.ringworm01@gmail.com> Cc: Subject: Re: portmanager X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 22:13:57 -0000 On Wednesday 12 October 2005 13:33, you wrote: > Just a comment from an on-looker to this post. From the getenv > > The getenv() function obtains the current value of the environment vari- > able, name. If the variable name is not in the current environment, a > null pointer is returned. > > So it could potentially be passing in a null pointer to strncmp which is > not good. Is that the problem you're seeing. Easy enough to test the > return from getenv before using it. I tried wrapping it with if ( getenv("TERM") ) { . . . } made no difference. =20 What is really frustrating is I can't get gdb to step through anything in=20 function main ie. whatever is in portmanager.c, every function located in a= =20 library is no problem, this also renders the core file useless Guess I'll= =20 shift the guts from portmanager.c to a library function then see what gdb says. ************************************************ Weird, after shifting everything from main to a library function and then wrapping with=20 if ( getenv("TERM") ) { . . . } it works, so looks like you were right Mark. Thank you very much! If your curious, here is the back trace after moving the guts to a library= =20 function before testing for an empty env: GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols=20 found)... Core was generated by `portmanager'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/local/lib/libMG.1...done. Loaded symbols for /usr/local/lib/libMG.1 Reading symbols from /usr/local/lib/libPMGR.1...done. Loaded symbols for /usr/local/lib/libPMGR.1 Reading symbols from /lib/libc.so.5...done. Loaded symbols for /lib/libc.so.5 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x2808a336 in portmanager (argc=3D2, argv=3D0xbfbfee7c) at=20 PMGRrInitialize.c:136 136 if( !strncmp( getenv("TERM"), "xterm", 5 ) &&=20 isatty(fileno(stdout)) ) (gdb) bt #0 0x2808a336 in portmanager (argc=3D2, argv=3D0xbfbfee7c) at=20 PMGRrInitialize.c:136 #1 0x0804857b in ?? () #2 0x00000002 in ?? () #3 0xbfbfee7c in ?? () #4 0x2804da19 in _rtld_bind_start () from /libexec/ld-elf.so.1 #5 0x28072000 in ?? () #6 0x00000001 in ?? () #7 0x00000002 in ?? () #8 0xbfbfee74 in ?? () #9 0x080483c5 in _init () #10 0x00000206 in ?? () #11 0x28072000 in ?? () #12 0xbfbfee74 in ?? () #13 0x080484a9 in ?? () #14 0x00000002 in ?? () #15 0xbfbfee7c in ?? () #16 0xbfbfee88 in ?? () #17 0x00000000 in ?? () #18 0x2804ff80 in find_symdef () from /libexec/ld-elf.so.1 Previous frame inner to this frame (corrupt stack?) (gdb) frame 0 #0 0x2808a336 in portmanager (argc=3D2, argv=3D0xbfbfee7c) at=20 PMGRrInitialize.c:136 136 if( !strncmp( getenv("TERM"), "xterm", 5 ) &&=20 isatty(fileno(stdout)) ) (gdb) info locals handle =3D (FILE *) 0x2809031f id =3D "portmanager" ignorePortDir =3D "\030\006(=EF=BF=BD'$\005(\200\a(D\203\004\b\000#\a(\030\= 006(\030\006 (\000\b(=EF=BF=BDt=EF=BF=BD004(=EF=BF=BD\006 (\001\000\000\000=EF=BF=BD\001\000\000\000\000\000\000\000\001\000\000\000\= 000#\a(\002\000\000\000| =EE=BF=BF" s =3D "-s" showLeaves =3D "--show-leaves" sl =3D "-sl" slidDelete =3D "--show-leaves-interactive-delete" slid =3D "-slid" status =3D "--status" u =3D "-u" upgrade =3D "--upgrade" ui =3D "-ui" upgradeInteractive =3D "--upgrade-interactive" v =3D "-v" version =3D "--version" buffer =3D 0x2806be18 "-\002" command =3D 0x2809031f "xterm" xtermTitle =3D 0x0 bufferSize =3D 0 errorCode =3D 0 idx =3D -1077941208 selection =3D 0 stringSize =3D 0 property =3D {cacheDbFileName =3D 0x0, commandLineDbFileName =3D 0x8000 , configConfFileName =3D 0x3
, configDbFileName = =3D=20 0x280531ce "\201=EF=BF=BD\214\001", dependencyPortsDbFileName =3D 0xffffffff
,=20 helpFile =3D 0x0, ignoreDbFileName =3D 0x20
,=20 installedPortsDbFileName =3D 0x28051443 "\205=EF=BF=BD.\213E=EF=BF=BD\203x\= 016", oldPortsFileName =3D 0x280a6c1c "tsd_lock", strikesDbFileName =3D 0x280a6= c1c=20 "tsd_lock", field3strikesPortDir =3D 0xbfbfec58 "\210=EC=BF=BFg\023\005(\034l\n(+2\t"= ,=20 fieldStrikes =3D 0x28053186 "\213\024", fieldCommandLineKey =3D 0x2
, fieldCommandLine= Value=20 =3D 0x280a29bc "PB", fieldIgnorePortDir =3D 0xf50
, fieldIgnoreRe= ason=20 =3D 0x2806be18 "-\002", fieldOldPortDir =3D 0x280732b0 "", fieldOldPortName =3D 0x0, fieldReason =3D 0xbfbfec88 "\b=ED=BF=BFv\021\005 (\034l\n(+2\tP\006(=EF=BF=BD", fieldNewPortName =3D 0x28051367=20 "\211=EF=BF=BD205=EF=BF=BD#\205t\v\017@\f=EF=BF=BD\004<\002t\024\211=EF=BF= =BD213F\004\211E=EF=BF=BD017B\f=EF=BF=BD\004<\002u\a\220\2136\205=EF=BF=BD\= 232\205t\b\213E\024\213U=EF=BF=BD211\020\211\203=EF=BF=BD034 [^_=EF=BF=BD\215t&", fieldKey =3D 0x280a6c1c "tsd_lock", fieldValue =3D 0x9a6322b
, fieldChildPor= tName=20 =3D 0x28072400 "zP=EF=BF=BD001", fieldDependencyPortName =3D 0x0, fieldDependencyPortDir =3D 0x28049000
,= =20 fieldCachePortDir =3D 0x28072400 "zP=EF=BF=BD001", fieldAvailablePortName =3D 0xbfec98
,=20 fieldMakeFileSize =3D 0x2806be18 "-\002", fieldMakeFileTime =3D 0x0, fieldInstalledPortName =3D 0x280a29bc "PB", fieldInstalledPortDir =3D 0xb= fbfed08=20 "\030\006(\001", fieldUpgradePortDir =3D 0x28051176 "\211=EF=BF=BD205=EF=BF=BD\032\203}=EF= =BF=BD, fieldUpgradePortName=20 =3D 0x280a6c1c "tsd_lock", strikesDb =3D 0x9a6322b, cacheDb =3D 0x2806aa50, commandLineDb =3D 0xbfbfecdc, configDb =3D 0x0,=20 dependencyPortsDb =3D 0xbfbfece0, ignoreDb =3D 0x0, installedPortsDb =3D 0x2805106e, outOfDatePortsDb =3D 0x28072000, portTre= e =3D=20 0x28072200, objIdx =3D 671421507, portManagerUpdated =3D 134513476, verbose =3D 671640963, interactive =3D= =20 671555840} > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Michael C. Shul= tz > Sent: 10/12/2005 1:43 PM > To: Michael Lednev; freebsd-questions@freebsd.org; hackers@freebsd.org > Subject: Re: portmanager > > On Sunday 09 October 2005 07:53, Michael Lednev wrote: > > Hello, freebsd-questions. > > > > anyone tried to run portmanager from crontab? as for me it just > > coredumps, what am i doing wrong? its simply 0 0 * * * portmanager -s > > I'm not sure how to fix it but I've found where portmanager crashes when > run from cron, the code is: > > > if( !strncmp( getenv("TERM"), "xterm", 5 ) && isatty(fileno(stdout= )) > ) > { > stringSize =3D strlen( id ) > + 1 > + strlen( VERSION ) > + 1; > xtermTitle =3D malloc( stringSize ); > xtermTitle[0] =3D 0; > strcat( xtermTitle, id ); > strcat( xtermTitle, " " ); > strcat( xtermTitle, VERSION ); > printf( "%c]0;%s%c", '\033', xtermTitle, '\007' ); > free( xtermTitle ); > } > > > This is used to put information in the xterm title screen while portmanag= er > is running, I don't know enough about cron to have a clue how to fix this > except to remove it and I don't want to do that. Anyone have any ideas? > This particualr code snippet is from portmanager/portmanager.c around line > 137.... > > -Mike > > ps. I've cross posted this to freebsd-hackers because it is a coding > problem, so you may want to remove freebsd-questions from any replies. > . > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 04:05:29 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC2BF16A41F for ; Thu, 13 Oct 2005 04:05:29 +0000 (GMT) (envelope-from brucem@mail.cruzio.com) Received: from cruzio.com (dsl3-63-249-85-132.cruzio.com [63.249.85.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63A3E43D45 for ; Thu, 13 Oct 2005 04:05:29 +0000 (GMT) (envelope-from brucem@mail.cruzio.com) Received: from mail.cruzio.com (localhost [127.0.0.1]) by cruzio.com (8.12.10/8.12.10) with ESMTP id j9D47MRf000286; Wed, 12 Oct 2005 21:07:27 -0700 (PDT) (envelope-from brucem@mail.cruzio.com) Received: (from brucem@localhost) by mail.cruzio.com (8.12.10/8.12.10/Submit) id j9D47MsY000285; Wed, 12 Oct 2005 21:07:22 -0700 (PDT) (envelope-from brucem) Date: Wed, 12 Oct 2005 21:07:22 -0700 (PDT) From: "Bruce R. Montague" Message-Id: <200510130407.j9D47MsY000285@mail.cruzio.com> To: freebsd-hackers@freebsd.org Cc: TheManifestShadow@gmail.com Subject: Re: Driver Development Books? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 04:05:29 -0000 Hi, re: > The problem that I am having > right now is > that I have a fairly nice graphics card which, for the moment is only > supported on Windows Operating systems, and old 2.4 Linux kernels. Someone mentioned X drivers; current X drivers are dynamically loaded into the X server, which runs in user-space, not in the FreeBSD kernel. The X server has its own ELF loader to load modules and drivers. This approach allows X drivers to be independent of OS. There is some documentation on writing X drivers at: http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xfree86/doc/DESIGN (Click on the "(download)" link at the top of the page) For a walk through writing a driver, see Section 20 at the end, "Some notes about writing a driver". Alternatively, access http://cvs.freedesktop.org/xorg/xc/programs/Xserver/hw/xfree86/doc/ and select "DESIGN", etc.. FreeBSD currently uses x.org (cvs.freedesktop.org), but the DESIGN doc is probably similar. The design doc has a lot of good background and conceptual material, enough to enable reading of "real" X drivers, which are the real definition of how things work. Although the mechanics of writting (or modifying) an X driver are very easy (almost trivial), if you have never worked with C or drivers before, expect a steep learing curve... probably starting by rebuilding X from source would be a good "first" step. - bruce From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 05:29:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEF6316A41F for ; Thu, 13 Oct 2005 05:29:41 +0000 (GMT) (envelope-from ruselek@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EF3843D48 for ; Thu, 13 Oct 2005 05:29:41 +0000 (GMT) (envelope-from ruselek@gmail.com) Received: by rproxy.gmail.com with SMTP id g11so5748rne for ; Wed, 12 Oct 2005 22:29:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Zl2w90Miak4xLatYzEzuKE/omX0mzOSQGfBbAdB2Hf1RbYYUTqbxtneIscVfTPRqXoQMv7ruBR8Pba9zVYwlRQoNMFkhsDDkeckmuy3IPLiJcd/ghtZzJ3MzjpiHjPHwxX7Dggik96rzsscTlLjuYDNPNphFkiWNWFgwL3OyjOY= Received: by 10.11.100.40 with SMTP id x40mr22171cwb; Wed, 12 Oct 2005 22:29:41 -0700 (PDT) Received: by 10.11.100.67 with HTTP; Wed, 12 Oct 2005 22:29:40 -0700 (PDT) Message-ID: <1a8aebce0510122229h9349441j294b2b4b7e373f67@mail.gmail.com> Date: Thu, 13 Oct 2005 07:29:40 +0200 From: rusel To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: sata X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 05:29:42 -0000 Hello, does any FreeBSD relase supports Intel`s SATA Controller? Regards. From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 11:34:26 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31AD316A420 for ; Thu, 13 Oct 2005 11:34:26 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 884A543D64 for ; Thu, 13 Oct 2005 11:34:24 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j9DBYOR4078707 for ; Thu, 13 Oct 2005 06:34:24 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <434E462B.2030400@centtech.com> Date: Thu, 13 Oct 2005 06:34:03 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.11) Gecko/20050914 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <434BFE72.1090807@centtech.com> In-Reply-To: <434BFE72.1090807@centtech.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/1131/Wed Oct 12 15:35:32 2005 on mh1.centtech.com X-Virus-Status: Clean Subject: Re: ufsstat - testers / feedback wanted! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 11:34:26 -0000 Eric Anderson wrote: > I've just finished the first version of ufsstat, a tool to show local > filesystem statistics much like nfsstat does for NFS. The patch and > tool is against 6.0, but it will probably apply and work fine under > -CURRENT and possibly 5.x as well. > > I'm looking for bug reports, comments/suggestions on style(9), and > anything else, since this is my first C project, and of course first > real FreeBSD contribution. :) > > To use it, do this: > cd /tmp > fetch http://www.googlebit.com/software/ufsstat/ufsstat-20051011.tar.gz > cd /usr > tar xvzf /tmp/ufsstat-20051011.tar.gz > patch <./ufsstats.patch > > add: > OPTIONS UFSSTAT > to your kernel. > > Rebuild and install world/kernel. Correction to the above: add: OPTIONS UFS_STAT to your kernel. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 11:37:51 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 403A616A423 for ; Thu, 13 Oct 2005 11:37:51 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from core.inec.ru (core.inec.ru [213.148.3.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0ED243D48 for ; Thu, 13 Oct 2005 11:37:50 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from [213.85.81.137] (helo=[192.168.0.3]) by core.inec.ru with esmtp (Exim 4.51 (FreeBSD)) id 1EQ1OL-0000p4-Uw; Thu, 13 Oct 2005 15:36:58 +0400 Message-ID: <434E46FB.1090800@FreeBSD.org> Date: Thu, 13 Oct 2005 15:37:31 +0400 From: Sergey Matveychuk User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051001) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Michael C. Shultz" References: <200510122033.j9CKX5uo040708@argotsoft.com> <200510121515.14805.ringworm01@gmail.com> In-Reply-To: <200510121515.14805.ringworm01@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "Mark J. Sommer" , hackers@freebsd.org, RW Subject: Re: portmanager X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 11:37:51 -0000 Michael C. Shultz wrote: > > if ( getenv("TERM") ) > { > . . . > } Anyway you should use code like that for the cases: char *term; term = getenv("TERM"); And check the variable afterwards. It much better than call getenv() twice. And the first condition would be: if( term && !strncmp( term, "xterm", 5 ) && isatty(fileno(stdout)) ) And some people not recomend use '!' with str[n]cmp(). Using '== 0' is better. It was someting about a code style. -- Sem. From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 12:52:03 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4384316A41F for ; Thu, 13 Oct 2005 12:52:03 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9392543D8E for ; Thu, 13 Oct 2005 12:51:59 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by qproxy.gmail.com with SMTP id e34so98098qbe for ; Thu, 13 Oct 2005 05:51:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=YmouQhAE2W/XVLjAc2ZZRHk+7WzC2zRnTloGT+zcnLRG7sRi2qJ8RbvhPTxV6SDrV3CXOrlXoMu3DsErSwUfpc/sCCsebyxhsLpOsW3i8EUabHPt6mURQjOGv66O4H/MnxrKdw8QNApdVN5HZg9YnhI+ygrQjFw5crk8jxobmJQ= Received: by 10.64.183.5 with SMTP id g5mr1033572qbf; Thu, 13 Oct 2005 05:51:58 -0700 (PDT) Received: from ?192.168.1.10? ( [71.102.45.234]) by mx.gmail.com with ESMTP id e10sm4457461qbe.2005.10.13.05.51.57; Thu, 13 Oct 2005 05:51:58 -0700 (PDT) From: "Michael C. Shultz" To: Sergey Matveychuk , "Mark J. Sommer" , hackers@freebsd.org Date: Thu, 13 Oct 2005 05:53:48 -0700 User-Agent: KMail/1.8.2 References: <200510122033.j9CKX5uo040708@argotsoft.com> <200510121515.14805.ringworm01@gmail.com> <434E46FB.1090800@FreeBSD.org> In-Reply-To: <434E46FB.1090800@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510130553.49557.ringworm01@gmail.com> Cc: Subject: Re: portmanager X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 12:52:03 -0000 On Thursday 13 October 2005 04:37, you wrote: > Michael C. Shultz wrote: > > if ( getenv("TERM") ) > > { > > . . . > > } > > Anyway you should use code like that for the cases: > char *term; > term = getenv("TERM"); > > And check the variable afterwards. It much better than call getenv() twice. > And the first condition would be: > if( term && !strncmp( term, "xterm", 5 ) && isatty(fileno(stdout)) ) > > And some people not recomend use '!' with str[n]cmp(). Using '== 0' is > better. > > It was someting about a code style. Thanks for the good advice! I'll clean it up for the next change. -Mike From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 17:51:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9854816A41F for ; Wed, 12 Oct 2005 17:51:16 +0000 (GMT) (envelope-from davidjohnson@siemens.com) Received: from zeus.acuson.com (ac17860.acuson.com [157.226.71.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46E8743D45 for ; Wed, 12 Oct 2005 17:51:16 +0000 (GMT) (envelope-from davidjohnson@siemens.com) Received: from mvwcim1a.acuson.com ([157.226.95.42]:3992 helo=mvwcim1a.ww005.siemens.net) by zeus.acuson.com with esmtp (Exim 4.30) id 1EPkl1-0005Fo-3a for freebsd-hackers@freebsd.org; Wed, 12 Oct 2005 10:51:15 -0700 Received: by mvwcim1a.acuson.com with Internet Mail Service (5.5.2657.72) id ; Wed, 12 Oct 2005 10:51:15 -0700 Message-ID: <6F2F8FD3FBCF7A489CB18912A4807EBA015190FE@mvwcim1a.acuson.com> From: Johnson David To: freebsd-hackers@freebsd.org Date: Wed, 12 Oct 2005 10:51:07 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) X-Mailman-Approved-At: Thu, 13 Oct 2005 13:03:55 +0000 Content-Type: text/plain; charset="iso-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: RE: SPAM: Score 5.0: Re: Bind within src-contrib X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 17:51:16 -0000 From: Remko Lodder [mailto:remko@FreeBSD.org] > A system without resolver libraries and applications simply is not > maintainable by default. If you have no resolving applications in your > base system you will not be able to install a port or anything at all > that requires remote access. Why? because your machine cannot map the > www.freebsd.org host (example) to an ip address. Without being able to > do so, it simply cannot find the ip address of the host where the > files might live resulting in a failre to obtain the files. And well > without files it will be difficult to install something... For my own edification, are you saying that you need a local bind in order to access a remote nameserver? I thought a nameserver entry in resolv.conf was sufficient for this, allowing the resolver library to use the services of a remote nameserver to resolve names. I also didn't realize that the resolver library needed these applications to function. Why are they installed in /usr/bin instead of /bin? David From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 19:28:23 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBEE016A420 for ; Wed, 12 Oct 2005 19:28:23 +0000 (GMT) (envelope-from freebsd@nepinc.com) Received: from colossus.nepinc.com (colossus.nepinc.com [66.207.129.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F23E43D46 for ; Wed, 12 Oct 2005 19:28:23 +0000 (GMT) (envelope-from freebsd@nepinc.com) Received: from [192.168.97.170] (pgh.nepinc.com [66.207.129.50]) (authenticated bits=0) by colossus.nepinc.com (8.13.3/8.13.3) with ESMTP id j9CJSKqH039146 for ; Wed, 12 Oct 2005 15:28:20 -0400 (EDT) (envelope-from freebsd@nepinc.com) Message-ID: <434D63D7.6070100@nepinc.com> Date: Wed, 12 Oct 2005 15:28:23 -0400 From: Tom Grove User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051004) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on colossus.nepinc.com X-Virus-Scanned: ClamAV version 0.87, clamav-milter version 0.87 on colossus.nepinc.com X-Virus-Status: Clean X-Mailman-Approved-At: Thu, 13 Oct 2005 13:03:55 +0000 Cc: Subject: building a glade2 app X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@nepinc.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 19:28:24 -0000 i'm just trying to compile a simple hello world using a glade2 created interface. i'm following directions by running autogen.sh and it yells about all kinds of things regarding the auto* tools. Has anyone successfully built an app using glade2 and if so what changes did you have to make to your environment to get this to work. FYI, it's just gtk+ not gnome. -Tom From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 12 20:43:34 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A98A16A41F for ; Wed, 12 Oct 2005 20:43:34 +0000 (GMT) (envelope-from msommer@argotsoft.com) Received: from mx1a.swcp.com (mx1a.swcp.com [216.184.2.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32A4A43D48 for ; Wed, 12 Oct 2005 20:43:32 +0000 (GMT) (envelope-from msommer@argotsoft.com) Received: from taka.swcp.com (taka-216.swcp.com [216.184.2.3]) by mx1a.swcp.com (8.13.3/8.13.3/Debian-6) with ESMTP id j9CKhV3x013508; Wed, 12 Oct 2005 14:43:31 -0600 Received: from argotsoft.com (argotsoft.com [198.59.115.127]) by taka.swcp.com (8.13.3/8.13.1) with ESMTP id j9CKgmu2013320; Wed, 12 Oct 2005 14:43:07 -0600 (MDT) (envelope-from msommer@argotsoft.com) Received: from ATHABASCA (athabasca.argotsoft.com [192.168.3.104]) by argotsoft.com (8.12.3/8.12.3) with ESMTP id j9CKX5uo040708; Wed, 12 Oct 2005 14:33:09 -0600 (MDT) Message-Id: <200510122033.j9CKX5uo040708@argotsoft.com> From: "Mark J. Sommer" To: "'Michael C. Shultz'" , "'Michael Lednev'" , Date: Wed, 12 Oct 2005 14:33:05 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcXPZ8yI4Yij+ZRqR8ywNewbpS/MgQABAPKg In-Reply-To: <200510121242.55482.ringworm01@gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Scanned-By: MIMEDefang 2.9 (www dot roaringpenguin dot com slash mimedefang) X-Virus-Scanned: ClamAV version 0.87, clamav-milter version 0.87 on av2.swcp.com X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on kaimen.swcp.com X-Spam-Status: No, hits=-2.4 required=10.0 tests=ALL_TRUSTED autolearn=failed version=3.0.4 X-Spam-Level: X-Mailman-Approved-At: Thu, 13 Oct 2005 13:04:20 +0000 Cc: Subject: RE: portmanager X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 20:43:34 -0000 Just a comment from an on-looker to this post. From the getenv The getenv() function obtains the current value of the environment vari- able, name. If the variable name is not in the current environment, a null pointer is returned. So it could potentially be passing in a null pointer to strncmp which is not good. Is that the problem you're seeing. Easy enough to test the return from getenv before using it. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Michael C. Shultz Sent: 10/12/2005 1:43 PM To: Michael Lednev; freebsd-questions@freebsd.org; hackers@freebsd.org Subject: Re: portmanager On Sunday 09 October 2005 07:53, Michael Lednev wrote: > Hello, freebsd-questions. > > anyone tried to run portmanager from crontab? as for me it just > coredumps, what am i doing wrong? its simply 0 0 * * * portmanager -s I'm not sure how to fix it but I've found where portmanager crashes when run from cron, the code is: if( !strncmp( getenv("TERM"), "xterm", 5 ) && isatty(fileno(stdout)) ) { stringSize = strlen( id ) + 1 + strlen( VERSION ) + 1; xtermTitle = malloc( stringSize ); xtermTitle[0] = 0; strcat( xtermTitle, id ); strcat( xtermTitle, " " ); strcat( xtermTitle, VERSION ); printf( "%c]0;%s%c", '\033', xtermTitle, '\007' ); free( xtermTitle ); } This is used to put information in the xterm title screen while portmanager is running, I don't know enough about cron to have a clue how to fix this except to remove it and I don't want to do that. Anyone have any ideas? This particualr code snippet is from portmanager/portmanager.c around line 137.... -Mike ps. I've cross posted this to freebsd-hackers because it is a coding problem, so you may want to remove freebsd-questions from any replies. . _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 12:25:35 2005 Return-Path: X-Original-To: hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3847516A41F; Thu, 13 Oct 2005 12:25:35 +0000 (GMT) (envelope-from msommer@argotsoft.com) Received: from mx1a.swcp.com (mx1a.swcp.com [216.184.2.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5294A43D45; Thu, 13 Oct 2005 12:25:34 +0000 (GMT) (envelope-from msommer@argotsoft.com) Received: from taka.swcp.com (taka-216.swcp.com [216.184.2.3]) by mx1a.swcp.com (8.13.3/8.13.3/Debian-6) with ESMTP id j9DCPX2R003953; Thu, 13 Oct 2005 06:25:33 -0600 Received: from argotsoft.com (argotsoft.com [198.59.115.127]) by taka.swcp.com (8.13.3/8.13.1) with ESMTP id j9DCPT3U038315; Thu, 13 Oct 2005 06:25:31 -0600 (MDT) (envelope-from msommer@argotsoft.com) Received: from ATHABASCA (athabasca.argotsoft.com [192.168.3.104]) by argotsoft.com (8.12.3/8.12.3) with ESMTP id j9DCOvuo004348; Thu, 13 Oct 2005 06:25:01 -0600 (MDT) Message-Id: <200510131225.j9DCOvuo004348@argotsoft.com> From: "Mark J. Sommer" To: "'Sergey Matveychuk'" , "'Michael C. Shultz'" Date: Thu, 13 Oct 2005 06:24:56 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <434E46FB.1090800@FreeBSD.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcXP7bRbuy5SHOg5S1Gkfq/NP96TygAA0ByA X-Scanned-By: MIMEDefang 2.9 (www dot roaringpenguin dot com slash mimedefang) X-Virus-Scanned: ClamAV 0.87/1131/Wed Oct 12 14:35:32 2005 on av1 X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on kaimen.swcp.com X-Spam-Status: No, hits=-2.4 required=10.0 tests=ALL_TRUSTED autolearn=failed version=3.0.4 X-Spam-Level: X-Mailman-Approved-At: Thu, 13 Oct 2005 13:04:20 +0000 Cc: hackers@FreeBSD.org, 'RW' Subject: RE: portmanager X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 12:25:35 -0000 > -----Original Message----- > From: Sergey Matveychuk [mailto:sem@FreeBSD.org] > Sent: 10/13/2005 5:38 AM > To: Michael C. Shultz > Cc: Mark J. Sommer; hackers@FreeBSD.org; RW > Subject: Re: portmanager > > Michael C. Shultz wrote: > > > > if ( getenv("TERM") ) > > { > > . . . > > } > > Anyway you should use code like that for the cases: > char *term; > term = getenv("TERM"); > > And check the variable afterwards. It much better than call getenv() twice. > And the first condition would be: > if( term && !strncmp( term, "xterm", 5 ) && isatty(fileno(stdout)) ) > > And some people not recomend use '!' with str[n]cmp(). Using '== 0' is better. > > It was someting about a code style. > > -- > Sem. > Completely agree! From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 13:20:29 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75DDF16A437 for ; Thu, 13 Oct 2005 13:20:29 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id D737943D78 for ; Thu, 13 Oct 2005 13:20:01 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from localhost (ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id j9DDK03t093404; Thu, 13 Oct 2005 06:20:01 -0700 (PDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-hackers@freebsd.org Date: Thu, 13 Oct 2005 09:20:00 -0400 User-Agent: KMail/1.8.2 References: <1a8aebce0510122229h9349441j294b2b4b7e373f67@mail.gmail.com> In-Reply-To: <1a8aebce0510122229h9349441j294b2b4b7e373f67@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510130920.00391.lists@jnielsen.net> X-Virus-Scanned: ClamAV version 0.87, clamav-milter version 0.87 on ns1.jnielsen.net X-Virus-Status: Clean Cc: rusel Subject: Re: sata X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 13:20:29 -0000 On Thursday 13 October 2005 01:29, rusel wrote: > Hello, does any FreeBSD relase supports Intel`s SATA Controller? 1) You should have been able to find this out on your own. Specifically here: http://www.freebsd.org/releases/5.4R/hardware-i386.html (which is linked to from the Release Information page of the main FreeBSD website) and here: http://www.freebsd.org/cgi/man.cgi?query=ata&sektion=4&manpath=FreeBSD+5.4-RELEASE (which is linked to from the above link, among other places) 2) Even if you couldn't find this info on your own, this is entirely the wrong mailing list. -questions or -stable might have been more appropriate. 3) Which Intel SATA controller are you asking about? 4) The answer is probably yes. The ata driver in FreeBSD 6.0 supports every mainstream Intel ATA controller I'm aware of, up to and including ICH6 (ICH5 for FreeBSD 5.4 according to the manpage above). JN From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 15:17:46 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F43A16A41F for ; Thu, 13 Oct 2005 15:17:46 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD11A43D45 for ; Thu, 13 Oct 2005 15:17:45 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from freebsd.org (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id j9DFHjOZ085354 for ; Thu, 13 Oct 2005 08:17:45 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <434E7A91.8060800@freebsd.org> Date: Thu, 13 Oct 2005 08:17:37 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 CC: "'freebsd-hackers@freebsd.org'" References: <200510130551.j9D5pcO4015466@repoman.freebsd.org> In-Reply-To: <200510130551.j9D5pcO4015466@repoman.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: libarchive vs. libtool X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 15:17:46 -0000 Tim Kientzle wrote: > Log: > 1) Use GNU libtool to build shared libraries on non-FreeBSD > systems (or on FreeBSD systems when using ports). > 2) Overhaul the versioning logic. .... Does anyone on this list think they understand libtool? I've been talking to someone using Debian who is trying to figure out why Debian produces a libarchive.so.1.2.36 and FreeBSD produces a libarchive.so.3 from the exact same build system. The discussion of version numbering in "info libtool" is quite baffling. Tim From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 16:10:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 170D316A41F for ; Thu, 13 Oct 2005 16:10:13 +0000 (GMT) (envelope-from caelian@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51E5743D49 for ; Thu, 13 Oct 2005 16:10:11 +0000 (GMT) (envelope-from caelian@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so437137nzk for ; Thu, 13 Oct 2005 09:10:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=SXWfOCjNWvqBxDR7moEOw7ZXyWDzgVydZ26E3v2cc1KnQIejiuuOkVoZ0gU/oD8yBcFF8+3REBBe4TLMq5PI/3c2notEQu+lJgo+IOvy4hgNMm69jsop+Ac4HXrhny33R0yPTLHE6xoy4yQs2tLo8iv2f8kf89xJ3iO617HKBTU= Received: by 10.36.104.20 with SMTP id b20mr2432843nzc; Thu, 13 Oct 2005 09:10:09 -0700 (PDT) Received: from synergy.odyssey.homeunix.org ( [68.190.230.198]) by mx.gmail.com with ESMTP id 38sm2799241nza.2005.10.13.09.10.06; Thu, 13 Oct 2005 09:10:08 -0700 (PDT) From: Pascal Hofstee To: Tim Kientzle In-Reply-To: <434E7A91.8060800@freebsd.org> References: <200510130551.j9D5pcO4015466@repoman.freebsd.org> <434E7A91.8060800@freebsd.org> Content-Type: text/plain Date: Thu, 13 Oct 2005 09:10:02 -0700 Message-Id: <1129219802.912.2.camel@synergy.odyssey.homeunix.org> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "'freebsd-hackers@freebsd.org'" Subject: Re: libarchive vs. libtool X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 16:10:13 -0000 On Thu, 2005-10-13 at 08:17 -0700, Tim Kientzle wrote: > Tim Kientzle wrote: > > Log: > > 1) Use GNU libtool to build shared libraries on non-FreeBSD > > systems (or on FreeBSD systems when using ports). > > 2) Overhaul the versioning logic. .... > > Does anyone on this list think they understand libtool? > > I've been talking to someone using Debian who is trying > to figure out why Debian produces a libarchive.so.1.2.36 > and FreeBSD produces a libarchive.so.3 from the exact > same build system. > > The discussion of version numbering in "info libtool" > is quite baffling. The problem lies in the fact that somewhere somehow the libtool people apparently thought it would be funny to make the way the library version numbering works FreeBSD different from the way they do it on Linux. (At least that's my understanding of the matter). You may want to check the freebsd-gnome@ list and do a search for ltverhack. It is my understanding that it is the intention to have this bogon fixed in ports post 6.0. -- Pascal Hofstee From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 20:27:34 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3575416A41F for ; Thu, 13 Oct 2005 20:27:34 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BC6B43D4C for ; Thu, 13 Oct 2005 20:27:33 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id E88A96176; Thu, 13 Oct 2005 22:27:15 +0200 (CEST) X-Spam-Tests: ALL_TRUSTED,AWL,BAYES_00 X-Spam-Learn: ham X-Spam-Score: -4.5/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on tim.des.no Received: from xps.des.no (des.no [80.203.228.37]) by tim.des.no (Postfix) with ESMTP id DB0396152; Thu, 13 Oct 2005 22:27:15 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id E48FC33C3E; Thu, 13 Oct 2005 22:27:23 +0200 (CEST) To: freebsd@nepinc.com References: <434D63D7.6070100@nepinc.com> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Thu, 13 Oct 2005 22:27:23 +0200 In-Reply-To: <434D63D7.6070100@nepinc.com> (Tom Grove's message of "Wed, 12 Oct 2005 15:28:23 -0400") Message-ID: <86slv5tb6c.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: building a glade2 app X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 20:27:34 -0000 Tom Grove writes: > i'm just trying to compile a simple hello world using a glade2 created > interface. i'm following directions by running autogen.sh and it > yells about all kinds of things regarding the auto* tools. you need to install devel/gnu-{autoconf,automake,libtool} DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 02:54:49 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC17E16A41F for ; Fri, 14 Oct 2005 02:54:49 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from staff.usd.ac.id (staff.usd.ac.id [202.152.7.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED3F143D45 for ; Fri, 14 Oct 2005 02:54:33 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from webmail.usd.ac.id (webmail.usd.ac.id [202.152.7.139]) by staff.usd.ac.id (8.11.0/8.11.0) with ESMTP id j9E30Fr13627 for ; Fri, 14 Oct 2005 10:00:30 +0700 Received: from 202.65.114.154 (proxying for 172.21.200.57) (SquirrelMail authenticated user iwan) by webmail.usd.ac.id with HTTP; Fri, 14 Oct 2005 10:07:42 -0000 (UTC) Message-ID: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> Date: Fri, 14 Oct 2005 10:07:42 -0000 (UTC) From: iwan@staff.usd.ac.id To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 02:54:49 -0000 Hi all, I want to migrate from linux to freebsd. My linux box (mail server) have alot of user (hundreds) --this is the problem. I dont know which file which the password's file. I dont want typing user name and its password one by one. Beside of that, thereis possibly my users change their passwords. How can I do this migrating ? (save) I'm sorry my English is not good. Thanks before. regrds. From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 03:11:35 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05C3816A41F for ; Fri, 14 Oct 2005 03:11:35 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from centrmmtao01.cox.net (centrmmtao01.cox.net [70.168.83.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D1B143D45 for ; Fri, 14 Oct 2005 03:11:34 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by centrmmtao01.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051014031123.BTAY5336.centrmmtao01.cox.net@mezz.mezzweb.com>; Thu, 13 Oct 2005 23:11:23 -0400 Date: Thu, 13 Oct 2005 22:12:23 -0500 To: iwan@staff.usd.ac.id References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> User-Agent: Opera M2/8.50 (Linux, build 1358) Cc: freebsd-hackers@freebsd.org Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 03:11:35 -0000 On Fri, 14 Oct 2005 05:07:42 -0500, wrote: > Hi all, > I want to migrate from linux to freebsd. My linux box > (mail server) have alot of user (hundreds) --this is the > problem. I dont know which file which the password's file. > I dont want typing user name and its password one by one. > Beside of that, thereis possibly my users change their > passwords. > How can I do this migrating ? (save) > I'm sorry my English is not good. Read the whole thread: http://lists.freebsd.org/pipermail/freebsd-isp/2004-February/001780.html Cheers, Mezz > Thanks before. > regrds. -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 03:16:57 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82A9516A41F for ; Fri, 14 Oct 2005 03:16:57 +0000 (GMT) (envelope-from thorpflyer@yahoo.com) Received: from web33403.mail.mud.yahoo.com (web33403.mail.mud.yahoo.com [68.142.206.135]) by mx1.FreeBSD.org (Postfix) with SMTP id B904143D6B for ; Fri, 14 Oct 2005 03:16:54 +0000 (GMT) (envelope-from thorpflyer@yahoo.com) Received: (qmail 43565 invoked by uid 60001); 14 Oct 2005 03:16:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=oQcqQYVSYWPcCBz6hCXnwQ9RgNzlc0lA8KY8cEM1ogzA06asXk8+DnylbdOZUZN2ZSL8EKL+70lZIE8579o0DppoXT696jryb62Uvl7GiI1zX9V1kC3b98cfFMafPBUhlIDyA58YTJThoeiPKFKsm0/CZOy/PuIWQieQPrZF/s8= ; Message-ID: <20051014031654.43563.qmail@web33403.mail.mud.yahoo.com> Received: from [67.166.15.143] by web33403.mail.mud.yahoo.com via HTTP; Thu, 13 Oct 2005 20:16:53 PDT Date: Thu, 13 Oct 2005 20:16:53 -0700 (PDT) From: Simon Roberts To: iwan@staff.usd.ac.id, freebsd-hackers@freebsd.org In-Reply-To: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 03:16:57 -0000 Try /etc/passwd and /etc/shadow User id and basic stuff in passwd, the encrypted passwords in shadow. I don't know if the encryption algorithms are compatible between linux and bsd or not. hth Simon --- iwan@staff.usd.ac.id wrote: > Hi all, > I want to migrate from linux to freebsd. My linux box > (mail server) have alot of user (hundreds) --this is the > problem. I dont know which file which the password's file. > I dont want typing user name and its password one by one. > Beside of that, thereis possibly my users change their > passwords. > How can I do this migrating ? (save) > I'm sorry my English is not good. > > Thanks before. > regrds. > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > "You can tell whether a man is clever by his answers. You can tell whether a man is wise by his questions." — Naguib Mahfouz __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 03:25:57 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7252116A420 for ; Fri, 14 Oct 2005 03:25:57 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92B1D43D53 for ; Fri, 14 Oct 2005 03:25:56 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: by qproxy.gmail.com with SMTP id a39so211165qbd for ; Thu, 13 Oct 2005 20:25:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s05JQsiVqh29wfjDB/xrVzFSwVzNQhe1CP2/0dpts0JUvZh9hWrsxKH7kTsO8tIgfnYsRZB6x4LWlHBU7qkpSoLAX7frPIu+jqWmprk6PgudOX4YRiA/PCIQoOcmozXAWtUaz71a4UzZA6qDjgaQhe/n8ZJRd3Hlt1a5ZJaFwWs= Received: by 10.65.137.3 with SMTP id p3mr365012qbn; Thu, 13 Oct 2005 20:25:56 -0700 (PDT) Received: by 10.65.110.12 with HTTP; Thu, 13 Oct 2005 20:25:55 -0700 (PDT) Message-ID: Date: Fri, 14 Oct 2005 11:25:55 +0800 From: Jiawei Ye To: Simon Roberts In-Reply-To: <20051014031654.43563.qmail@web33403.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> <20051014031654.43563.qmail@web33403.mail.mud.yahoo.com> Cc: freebsd-hackers@freebsd.org, iwan@staff.usd.ac.id Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 03:25:57 -0000 On 10/14/05, Simon Roberts wrote: > Try /etc/passwd and /etc/shadow > User id and basic stuff in passwd, the encrypted passwords in shadow. I > don't know if the encryption algorithms are compatible between linux > and bsd or not. > > hth > Simon Make sure you don't have >16 chars username before migrating. FreeBSD doesn't support really long usernames. Jiawei -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 04:30:00 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD35016A41F for ; Fri, 14 Oct 2005 04:30:00 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C74943D55 for ; Fri, 14 Oct 2005 04:29:59 +0000 (GMT) (envelope-from jayesh.freebsdlist@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so351407wxc for ; Thu, 13 Oct 2005 21:29:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=SFBiu6hzCOaMmD0MY/dm8deZg6D3p74JBJR3ldiyQZmASW5qDPBapJ8LV7jzSJax0x6BwYsaodK7gwYhgU1M5EHL1f2Ts1xxh2MkTsD3hKyYbW1eB2MUIDS8ev7/+pXNMBi3e2fpGeUUyDSOPBh2CvM/vX6U5JwU0OFFJwglkW0= Received: by 10.70.34.1 with SMTP id h1mr1029019wxh; Thu, 13 Oct 2005 21:29:59 -0700 (PDT) Received: by 10.70.7.12 with HTTP; Thu, 13 Oct 2005 21:29:59 -0700 (PDT) Message-ID: Date: Fri, 14 Oct 2005 09:59:59 +0530 From: Jayesh Jayan To: Jiawei Ye In-Reply-To: MIME-Version: 1.0 References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> <20051014031654.43563.qmail@web33403.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Simon Roberts , freebsd-hackers@freebsd.org, iwan@staff.usd.ac.id Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 04:30:01 -0000 Hi, I would suggest you to try the below and make sure this works 1 ) Install a new freebsd server 2 ) create a user on your linux machine say with username freebsd and some password 3 ) now copy the data in your /etc/passwd file of linux machine to freebsd machine 4 ) Also copy the /etc/shadow file to freebsd server and renmae it as /etc/master.passwd 5 ) Also copy /etc/groups 6 ) Now try to login to freebsd machine with the new user created on the linux machine. Note : Please create a copy of the original file on freebsd machine before you change the real file If the test is successful. I suppose you can migrate from linux to freebsd with all the users and their passwords. Also while coping the file make sure that the default enteries are there. That just transfer the user details and not the system user details On 10/14/05, Jiawei Ye wrote: > > On 10/14/05, Simon Roberts wrote: > > Try /etc/passwd and /etc/shadow > > User id and basic stuff in passwd, the encrypted passwords in shadow. I > > don't know if the encryption algorithms are compatible between linux > > and bsd or not. > > > > hth > > Simon > Make sure you don't have >16 chars username before migrating. FreeBSD > doesn't support really long usernames. > > Jiawei > -- > "Without the userland, the kernel is useless." > --inspired by The Tao of Programming > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 04:59:18 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BF6816A41F for ; Fri, 14 Oct 2005 04:59:18 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from staff.usd.ac.id (staff.usd.ac.id [202.152.7.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id A747E43D45 for ; Fri, 14 Oct 2005 04:58:56 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from webmail.usd.ac.id (webmail.usd.ac.id [202.152.7.139]) by staff.usd.ac.id (8.11.0/8.11.0) with ESMTP id j9E53xr15264; Fri, 14 Oct 2005 12:03:59 +0700 Received: from 202.65.114.154 (proxying for 172.21.200.44) (SquirrelMail authenticated user iwan) by webmail.usd.ac.id with HTTP; Fri, 14 Oct 2005 12:11:11 -0000 (UTC) Message-ID: <49089.202.65.114.154.1129291871.squirrel@webmail.usd.ac.id> In-Reply-To: References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> <20051014031654.43563.qmail@web33403.mail.mud.yahoo.com> Date: Fri, 14 Oct 2005 12:11:11 -0000 (UTC) From: iwan@staff.usd.ac.id To: "Jayesh Jayan" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-hackers@freebsd.org Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 04:59:18 -0000 Thanks for you all, I will do this step. regards. > Hi, > > I would suggest you to try the below and make sure this > works > > 1 ) Install a new freebsd server > 2 ) create a user on your linux machine say with username > freebsd and some > password > 3 ) now copy the data in your /etc/passwd file of linux > machine to freebsd > machine > 4 ) Also copy the /etc/shadow file to freebsd server and > renmae it as > /etc/master.passwd > 5 ) Also copy /etc/groups > 6 ) Now try to login to freebsd machine with the new user > created on the > linux machine. > > Note : Please create a copy of the original file on > freebsd machine before > you change the real file > > If the test is successful. I suppose you can migrate from > linux to freebsd > with all the users and their passwords. > > Also while coping the file make sure that the default > enteries are there. > That just transfer the user details and not the system > user details > > > On 10/14/05, Jiawei Ye wrote: >> >> On 10/14/05, Simon Roberts wrote: >> > Try /etc/passwd and /etc/shadow >> > User id and basic stuff in passwd, the encrypted >> passwords in shadow. I >> > don't know if the encryption algorithms are compatible >> between linux >> > and bsd or not. >> > >> > hth >> > Simon >> Make sure you don't have >16 chars username before >> migrating. FreeBSD >> doesn't support really long usernames. >> >> Jiawei >> -- >> "Without the userland, the kernel is useless." >> --inspired by The Tao of Programming >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to >> "freebsd-hackers-unsubscribe@freebsd.org" >> > -- Iwan Binanto Divisi Support-BAPSI Universitas Sanata Dharma Yogyakarta From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 08:20:14 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8671316A41F for ; Fri, 14 Oct 2005 08:20:14 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3234D43D45 for ; Fri, 14 Oct 2005 08:20:14 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 4412B46B3B; Fri, 14 Oct 2005 04:20:12 -0400 (EDT) Date: Fri, 14 Oct 2005 09:20:12 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: iwan@staff.usd.ac.id In-Reply-To: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> Message-ID: <20051014091520.R66245@fledge.watson.org> References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 08:20:14 -0000 On Fri, 14 Oct 2005 iwan@staff.usd.ac.id wrote: > I want to migrate from linux to freebsd. My linux box (mail server) have > alot of user (hundreds) --this is the problem. I dont know which file > which the password's file. I dont want typing user name and its password > one by one. Beside of that, thereis possibly my users change their > passwords. How can I do this migrating ? (save) I'm sorry my English is > not good. The main man page you want to look at is passwd(5), which documents the formats of the /etc/master.passwd and /etc/passwd file. In FreeBSD, the master.passwd file is the equivilent of the shadow file in Linux. What you want to do is convert the Linux password files to the master.passwd file in FreeBSD, and then run pwd_mkdb -p /etc/master.passwd This will cause /etc/passwd to be built from /etc/master.passwd, and also cause the rebuilding of two hash files that cache the user data in a machine-readable format to improve performance, /etc/pwd.db (cache of passwd) and /etc/spwd.db (cache of master.passwd). You can use the -C argument to simply test if a file has the correct format and run sanity checking, which is useful if you want to test a conversion without possibly installing the results. Take a look at the pwd_mkdb(8) man page for details. Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 12:17:11 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 069DA16A41F for ; Fri, 14 Oct 2005 12:17:11 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79FFC43D6A for ; Fri, 14 Oct 2005 12:17:10 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 7CE7A46B42; Fri, 14 Oct 2005 08:17:09 -0400 (EDT) Date: Fri, 14 Oct 2005 13:17:09 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: babkin@users.sf.net In-Reply-To: <21965586.1129290866618.JavaMail.root@vms071.mailsrvcs.net> Message-ID: <20051014131206.M22507@fledge.watson.org> References: <21965586.1129290866618.JavaMail.root@vms071.mailsrvcs.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, iwan@staff.usd.ac.id Subject: Re: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 12:17:11 -0000 On Fri, 14 Oct 2005, Sergey Babkin wrote: >> The main man page you want to look at is passwd(5), which documents the >> formats of the /etc/master.passwd and /etc/passwd file. In FreeBSD, >> the master.passwd file is the equivilent of the shadow file in Linux. >> What you want to do is convert the Linux password files to the >> master.passwd file in FreeBSD, and then run > > Historically the problem has been that FreeBSD used its own MD5 > algorithm for encrypting the passwords which was incompatible with any > other Unix, so just copying the password field to FreeBSD did not work. > I don't know if it's fixed now or not. The reason for that was in the US > cryptography export regulations, and those have been improved in the > last few years. In any case, even if it's not directly supported then > probably a PAM module can still be written. > > Hm, considering the we'd like people to migrate from Linux to FreeBSD, > having such a conversion script/program (especially if someone writes it > for their own use anyway) in the base system would make a lot of sense. As far as I know, we've been able to read the DES hashes without a problem as long as the right optional crypto bits were installed. Sometime in the 4.x series, the optional crypto bits become less optional, in that because of changes in patents and export policy, integrating them tightly became a more possible. These days, the DES bits are installed by default, and so portable DES hashes should "just work". However, we do write them out in the MD5 hash still by default, so the problem is not getting to a recent FreeBSD, but to switch away later should that be desirable. There's a login.conf entry you can use to specify a preference for what hash to use when writing out a new entry, and this is trivially changeable: :passwd_format=md5: If you are running in a multi-OS environment using shared password database entries, such as NIS, you will want to set the default to DES if other systems don't support the md5 scheme (which is supported on an increasing number of other systems), in order that password changes on a FreeBSD system don't leave you unable to log into other systems. Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 11:54:27 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ABF016A41F; Fri, 14 Oct 2005 11:54:27 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id E541B43D46; Fri, 14 Oct 2005 11:54:26 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms071.mailsrvcs.net ([192.168.1.4]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IOC004WEMEQOP24@vms046.mailsrvcs.net>; Fri, 14 Oct 2005 06:54:26 -0500 (CDT) Date: Fri, 14 Oct 2005 06:54:26 -0500 (CDT) From: Sergey Babkin To: Robert Watson , iwan@staff.usd.ac.id Message-id: <21965586.1129290866618.JavaMail.root@vms071.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailman-Approved-At: Fri, 14 Oct 2005 12:21:20 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 11:54:27 -0000 >On Fri, 14 Oct 2005 iwan@staff.usd.ac.id wrote: > >> I want to migrate from linux to freebsd. My linux box (mail server) have >> alot of user (hundreds) --this is the problem. I dont know which file >> which the password's file. I dont want typing user name and its password >> one by one. Beside of that, thereis possibly my users change their >> passwords. How can I do this migrating ? (save) I'm sorry my English is >> not good. > >The main man page you want to look at is passwd(5), which documents the >formats of the /etc/master.passwd and /etc/passwd file. In FreeBSD, the >master.passwd file is the equivilent of the shadow file in Linux. What >you want to do is convert the Linux password files to the master.passwd >file in FreeBSD, and then run Historically the problem has been that FreeBSD used its own MD5 algorithm for encrypting the passwords which was incompatible with any other Unix, so just copying the password field to FreeBSD did not work. I don't know if it's fixed now or not. The reason for that was in the US cryptography export regulations, and those have been improved in the last few years. In any case, even if it's not directly supported then probably a PAM module can still be written. Hm, considering the we'd like people to migrate from Linux to FreeBSD, having such a conversion script/program (especially if someone writes it for their own use anyway) in the base system would make a lot of sense. -SB From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 13:51:08 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A81C816A41F for ; Fri, 14 Oct 2005 13:51:08 +0000 (GMT) (envelope-from baldur@foo.is) Received: from gremlin.foo.is (gremlin.foo.is [194.105.250.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1534743D48 for ; Fri, 14 Oct 2005 13:51:07 +0000 (GMT) (envelope-from baldur@foo.is) Received: from 127.0.0.1 (localhost.foo.is [127.0.0.1]) by injector.foo.is (Postfix) with SMTP id 77B602843F; Fri, 14 Oct 2005 13:51:04 +0000 (GMT) Received: by gremlin.foo.is (Postfix, from userid 1000) id 1A78B28434; Fri, 14 Oct 2005 13:51:00 +0000 (GMT) Date: Fri, 14 Oct 2005 13:51:00 +0000 From: Baldur Gislason To: iwan@staff.usd.ac.id Message-ID: <20051014135100.GS47256@gremlin.foo.is> References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> <20051014031654.43563.qmail@web33403.mail.mud.yahoo.com> <49089.202.65.114.154.1129291871.squirrel@webmail.usd.ac.id> In-Reply-To: <49089.202.65.114.154.1129291871.squirrel@webmail.usd.ac.id> User-Agent: Mutt/1.4.2.1i X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on gremlin.foo.is X-Spam-Level: X-Spam-Status: No, score=-5.9 required=6.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Sanitizer: Foo MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Cc: freebsd-hackers@freebsd.org, Jayesh Jayan Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 13:51:08 -0000 This will not work, but I did migrate a 100 users from Linux to FreeBSD a couple of years ago. What I did was I used an application that comes with john the ripper called deshadow or something like that to combine the shadow and the passwd files into a passwd file with the hashes in place. Then I wrote a perl script to convert the linux passwd file into a BSD compatible passwd file, and then just appended it to my master.passwd and rebuilt the database by using vipw. I'm sure there are applications to do this. Baldur On Fri, Oct 14, 2005 at 12:11:11PM -0000, iwan@staff.usd.ac.id wrote: > Thanks for you all, > I will do this step. > > regards. > > > Hi, > > > > I would suggest you to try the below and make sure this > > works > > > > 1 ) Install a new freebsd server > > 2 ) create a user on your linux machine say with username > > freebsd and some > > password > > 3 ) now copy the data in your /etc/passwd file of linux > > machine to freebsd > > machine > > 4 ) Also copy the /etc/shadow file to freebsd server and > > renmae it as > > /etc/master.passwd > > 5 ) Also copy /etc/groups > > 6 ) Now try to login to freebsd machine with the new user > > created on the > > linux machine. > > > > Note : Please create a copy of the original file on > > freebsd machine before > > you change the real file > > > > If the test is successful. I suppose you can migrate from > > linux to freebsd > > with all the users and their passwords. > > > > Also while coping the file make sure that the default > > enteries are there. > > That just transfer the user details and not the system > > user details > > > > > > On 10/14/05, Jiawei Ye wrote: > >> > >> On 10/14/05, Simon Roberts wrote: > >> > Try /etc/passwd and /etc/shadow > >> > User id and basic stuff in passwd, the encrypted > >> passwords in shadow. I > >> > don't know if the encryption algorithms are compatible > >> between linux > >> > and bsd or not. > >> > > >> > hth > >> > Simon > >> Make sure you don't have >16 chars username before > >> migrating. FreeBSD > >> doesn't support really long usernames. > >> > >> Jiawei > >> -- > >> "Without the userland, the kernel is useless." > >> --inspired by The Tao of Programming > >> _______________________________________________ > >> freebsd-hackers@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > >> To unsubscribe, send any mail to > >> "freebsd-hackers-unsubscribe@freebsd.org" > >> > > > > > -- > Iwan Binanto > Divisi Support-BAPSI > Universitas Sanata Dharma Yogyakarta > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 15:51:31 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65B4C16A41F for ; Fri, 14 Oct 2005 15:51:31 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1545E43D45 for ; Fri, 14 Oct 2005 15:51:30 +0000 (GMT) (envelope-from fcash@ocis.net) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id 7AC718A00FB for ; Fri, 14 Oct 2005 08:51:31 -0700 (PDT) Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (mailtest.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05997-01-60 for ; Fri, 14 Oct 2005 08:51:14 -0700 (PDT) Received: from [192.168.0.9] (unknown [192.168.0.9]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 64CB98A012C for ; Fri, 14 Oct 2005 08:51:14 -0700 (PDT) From: Freddie Cash To: freebsd-hackers@freebsd.org Date: Fri, 14 Oct 2005 08:51:17 -0700 User-Agent: KMail/1.8.2 References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510140851.18406.fcash@ocis.net> X-Virus-Scanned: by amavisd-new using ClamAV at sd73.bc.ca Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 15:51:31 -0000 On October 13, 2005 09:29 pm, Jayesh Jayan wrote: > I would suggest you to try the below and make sure this works > 1 ) Install a new freebsd server > 2 ) create a user on your linux machine say with username freebsd and > some password > 3 ) now copy the data in your /etc/passwd file of linux machine to > freebsd machine > 4 ) Also copy the /etc/shadow file to freebsd server and renmae it as > /etc/master.passwd Don't do this, you'll kill all the accounts on your system. > 5 ) Also copy /etc/groups > 6 ) Now try to login to freebsd machine with the new user created on > the linux machine. If you search the OpenBSD FAQ, you'll find the correct process to take to convert Linux users to BSD users. It's a very quick awk script, and it works quite nicely. I used it to convert 500 users on a RedHat 6.2 system to a FreeBSD 5.3 system without any hiccups. -- Freddie Cash fcash@ocis.net From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 19:50:59 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3419E16A421 for ; Fri, 14 Oct 2005 19:50:59 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from srv-03.bs2.com.br (srv-03.bs2.com.br [200.203.183.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D35743D6E for ; Fri, 14 Oct 2005 19:50:52 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from localhost (localhost.bs2.com.br [127.0.0.1]) by srv-03.bs2.com.br (Postfix) with ESMTP id 57DBA4ADFE for ; Fri, 14 Oct 2005 16:52:19 -0300 (BRT) Received: from [172.16.12.100] (unknown [201.10.103.209]) by srv-03.bs2.com.br (Postfix) with ESMTP id ED6474ADC8 for ; Fri, 14 Oct 2005 16:52:18 -0300 (BRT) Message-ID: <43500C4D.8060603@tirloni.org> Date: Fri, 14 Oct 2005 16:51:41 -0300 From: "Giovanni P. Tirloni" User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <38664.202.65.114.154.1129284462.squirrel@webmail.usd.ac.id> <20051014031654.43563.qmail@web33403.mail.mud.yahoo.com> <49089.202.65.114.154.1129291871.squirrel@webmail.usd.ac.id> <20051014135100.GS47256@gremlin.foo.is> In-Reply-To: <20051014135100.GS47256@gremlin.foo.is> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 19:50:59 -0000 Baldur Gislason wrote: > This will not work, but I did migrate a 100 users from Linux to FreeBSD > a couple of years ago. What I did was I used an application that comes > with john the ripper called deshadow or something like that to combine > the shadow and the passwd files into a passwd file with the hashes in place. > Then I wrote a perl script to convert the linux passwd file into a BSD > compatible passwd file, and then just appended it to my master.passwd > and rebuilt the database by using vipw. > I'm sure there are applications to do this. It's funny but I migrated ~100 users too last month from Slackware 10 to FreeBSD 5.4 and I had no problem with the password hash. I created a small script to extract fields from shadow/passwd and re-added those users using pw and the -H option to supply their encrypted password. It seems to have worked fine and this whole thread just got me by surprise with the feeling that I completely forgot about password differences between Linux and FreeBSD at the time. I'm glad everything worked! -- Giovanni P. Tirloni From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 21:24:08 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBDB016A41F; Fri, 14 Oct 2005 21:24:08 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from mortis.over-yonder.net (adsl-144-221-64.jan.bellsouth.net [70.144.221.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3A2843D5E; Fri, 14 Oct 2005 21:24:07 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: by mortis.over-yonder.net (Postfix, from userid 100) id 29E5B2102E; Fri, 14 Oct 2005 16:24:06 -0500 (CDT) Date: Fri, 14 Oct 2005 16:24:05 -0500 From: "Matthew D. Fuller" To: babkin@users.sf.net Message-ID: <20051014212405.GB66908@over-yonder.net> References: <21965586.1129290866618.JavaMail.root@vms071.mailsrvcs.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21965586.1129290866618.JavaMail.root@vms071.mailsrvcs.net> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.9i-fullermd.2 Cc: freebsd-hackers@freebsd.org, iwan@staff.usd.ac.id, Robert Watson Subject: Re: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 21:24:08 -0000 On Fri, Oct 14, 2005 at 06:54:26AM -0500 I heard the voice of Sergey Babkin, and lo! it spake thus: > > I don't know if it's fixed now or not. I just converted a Mandrake box a month or so ago, which used MD5 hashes. Worked flawlessly. > Hm, considering the we'd like people to migrate from Linux to > FreeBSD, having such a conversion script/program (especially if > someone writes it for their own use anyway) in the base system would > make a lot of sense. It's not that hard. Somebody mentioned an awk script. I slapped it together in perl in about 5 minutes. I'll bet it's in /tmp somewhere... #!/usr/bin/perl -w use strict; # First, suck in the shadow my %passes; open(SHADOW, "shadow") or die "Can't open shadow: $!"; while() { chomp; my ($user,$hash,@dummy) = split(/:/); #print("Adding SHADOW: '$user' -> '$hash'\n"); $passes{$user} = $hash; } close(SHADOW); # Now get the main data from the passwd my @users; my %uhash; open(PASSWD, "passwd") or die "Can't open passwd: $!"; while() { chomp; my ($user, $dummy, $uid, $gid, $gecos, $homedir, $shell) = split(/:/); my %thisuser; #print("Adding PASSWD: '$user' ($uid,$gid) -> '$gecos', $shell in $homedir\n"); $uhash{$user}->{user} = $user; $uhash{$user}->{uid} = $uid; $uhash{$user}->{gid} = $gid; $uhash{$user}->{gecos} = $gecos; $uhash{$user}->{homedir} = $homedir; $uhash{$user}->{shell} = $shell; push(@users, $user); } close(PASSWD); # Gen up a BSD master.passwd file foreach my $user ( @users ) { printf("%s:%s:%s:%s::0:0:%s:%s:%s\n", $uhash{$user}->{user}, $passes{$uhash{$user}->{user}}, $uhash{$user}->{uid}, $uhash{$user}->{gid}, $uhash{$user}->{gecos}, $uhash{$user}->{homedir}, $uhash{$user}->{shell}); } -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 23:44:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EF6316A420 for ; Fri, 14 Oct 2005 23:44:13 +0000 (GMT) (envelope-from caiquanqing@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9777543D45 for ; Fri, 14 Oct 2005 23:44:12 +0000 (GMT) (envelope-from caiquanqing@gmail.com) Received: by xproxy.gmail.com with SMTP id t14so414273wxc for ; Fri, 14 Oct 2005 16:44:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=fkG4tfpT0WjX2tptTLK0mhTJtPkz5wUKDXEfOkibN9KzFlCyEfB3vBp5d85wG0uoGgJqgpeJzMy23s3+Epx2Edd2mFY3koCinaYvGs15qmf996vKQTHBhz9yWQfHzT0kRAts2u7c29n7NV3roKmudi0U/0OGN/HLY89XEjn6djI= Received: by 10.70.130.16 with SMTP id c16mr213032wxd; Fri, 14 Oct 2005 16:44:11 -0700 (PDT) Received: by 10.70.11.18 with HTTP; Fri, 14 Oct 2005 16:44:11 -0700 (PDT) Message-ID: <2b22951e0510141644j39ef0715p2decdd2e2a9eb04f@mail.gmail.com> Date: Fri, 14 Oct 2005 16:44:11 -0700 From: "Cai, Quanqing" To: freebsd-scsi@freebsd.org, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: External hard disk through FireWire or USB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 23:44:13 -0000 Hi guys, Recently I got problems to use LaCie disk under FreeBSD 6.0, actually I did some trick to use LaCie disk under FreeBSD 6.0 through FireWire. Here is detail: This info is from dmesg: da0 at sbp0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-4 device da0: 50.000MB/s transfers da0: 476950MB (976794335 512 byte sectors: 255H 63S/T 60802C) If you notice, you will find that 255H*63S*60802C=3D976784130!=3D976794335 = in dmesg. So next I did the following: dd if=3D/dev/zero of=3D/dev/da0 bs=3D1k count=3D1 bsdlabel -w da0 bsdlabel -e da0 # and I found there is one /dev/da0a partition. newfs -L LaCie1 -U -o time /dev/da0a I got this error: newfs: wtfs: 512 bytes at sector 976794318: Invalid argument So I run bsdlabel -e da0 and find something in this info: # /dev/da0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 976794319 16 unused 0 0 c: 976794335 0 unused 0 0 # "raw" part, don't edit You can see system use 976794335, not 976784130 as total sectors! So I changed it to 976784130 as following: a: 976784114 16 unused 0 0 c: 976784130 0 unused 0 0 # "raw" part, don't edit Ignore the waring message, and newfs going ok. I copied one big gig size file and everything goes ok! I tried this LaCie disk through USB also, same problem. Here is my question, I know the da0's H/S/C param info is from LaCie, and the number of total sectors is from LaCie disk too. Is this a problem or just normal, I mean wrong number of total sectors? If this is a problem, is there a way to fix this problem? BR Cai, Quanqing From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 15 00:41:49 2005 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E9BA16A41F; Sat, 15 Oct 2005 00:41:49 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0A7A43D45; Sat, 15 Oct 2005 00:41:48 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from pelsia.ninth-nine.com (d110.GkanagawaFL7.vectant.ne.jp [202.215.69.110]) (authenticated bits=0) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id j9F0ffW3086495; Sat, 15 Oct 2005 09:41:47 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sat, 15 Oct 2005 09:41:41 +0900 (JST) Message-Id: <200510150041.j9F0ffW3086495@sakura.ninth-nine.com> From: Norikatsu Shigemura To: freebsd-hackers@FreeBSD.org X-Mailer: Sylpheed version 2.0.2 (GTK+ 2.6.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.120]); Sat, 15 Oct 2005 09:41:47 +0900 (JST) Cc: freebsd-gnome@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Can ldd(1) list non-FreeBSD dynamic object dependencies? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2005 00:41:49 -0000 Hi FreeBSD hackers! I think that ldd(1) may list non-FreeBSD dynamic object dependencies. Do you think? If ldd(1) can list these, Linux Plugin Wrapper is more interested. Because you can confirm LPW enabled by ldd(1) like following lines: $ ldd /usr/X11R6/lib/linux-flashplugin6/libflashplayer.so ldd: /usr/X11R6/lib/linux-flashplugin6/libflashplayer.so: not a FreeBSD ELF shared object(OS type=0) /usr/X11R6/lib/linux-flashplugin6/libflashplayer.so: libpthread.so.0 => /usr/local/lib/pluginwrapper/flash6.so (0x68391000) libz.so.1 => /lib/libz.so.3 (0x68394000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x683a5000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x68471000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x6847f000) libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++.so.5 (0x684d1000) libm.so.6 => /lib/libm.so.4 (0x685a4000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x685bb000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x685c4000) In ldd(1)'s current source #178 lines: >>if (hdr.elf.e_ident[EI_OSABI] & ELFOSABI_FREEBSD) { I think & is a typo. It sould be ==. And I suggest following code: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - } else if (hdr.elf.e_type == ET_DYN) { is_shlib = 1; if (hdr.elf.e_ident[EI_OSABI] != ELFOSABI_FREEBSD) { warnx("%s: not a FreeBSD ELF shared " "object(OS type=%d)", *argv, hdr.elf.e_ident[EI_OSABI]); /+ file_ok = 0; */ } } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 15 07:50:45 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B1B616A41F; Sat, 15 Oct 2005 07:50:45 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD9C143D45; Sat, 15 Oct 2005 07:50:43 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.4/8.13.3) with ESMTP id j9F7oeM4000761 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 15 Oct 2005 09:50:40 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.4/8.13.3/Submit) id j9F7oTen000757; Sat, 15 Oct 2005 09:50:29 +0200 (CEST) Date: Sat, 15 Oct 2005 09:50:29 +0200 From: Divacky Roman To: "Matthew D. Fuller" Message-ID: <20051015075029.GA651@stud.fit.vutbr.cz> References: <21965586.1129290866618.JavaMail.root@vms071.mailsrvcs.net> <20051014212405.GB66908@over-yonder.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051014212405.GB66908@over-yonder.net> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.49 on 147.229.10.14 Cc: freebsd-hackers@freebsd.org, babkin@users.sourceforge.net, Robert Watson , iwan@staff.usd.ac.id Subject: Re: Re: system password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2005 07:50:45 -0000 On Fri, Oct 14, 2005 at 04:24:05PM -0500, Matthew D. Fuller wrote: > On Fri, Oct 14, 2005 at 06:54:26AM -0500 I heard the voice of > Sergey Babkin, and lo! it spake thus: > > > > I don't know if it's fixed now or not. > > I just converted a Mandrake box a month or so ago, which used MD5 > hashes. Worked flawlessly. > > > > Hm, considering the we'd like people to migrate from Linux to > > FreeBSD, having such a conversion script/program (especially if > > someone writes it for their own use anyway) in the base system would > > make a lot of sense. > > It's not that hard. Somebody mentioned an awk script. I slapped it > together in perl in about 5 minutes. I'll bet it's in /tmp > somewhere... http://www.openbsd.org/faq/faq9.html#passwd openbsd is nice sometimes :) From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 14 13:57:56 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E893C16A41F; Fri, 14 Oct 2005 13:57:56 +0000 (GMT) (envelope-from rob@thing.net) Received: from daemon.mistermishap.net (167-49.nyc.dsl.access.net [166.84.167.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43C0343D48; Fri, 14 Oct 2005 13:57:55 +0000 (GMT) (envelope-from rob@thing.net) Received: from daemon.mistermishap.net (localhost.mistermishap.net [127.0.0.1]) by daemon.mistermishap.net (8.12.9/8.12.9) with ESMTP id j9EDvtmU067678; Fri, 14 Oct 2005 09:57:55 -0400 (EDT) (envelope-from rob@thing.net) Received: from localhost (rob@localhost) by daemon.mistermishap.net (8.12.9/8.12.9/Submit) with ESMTP id j9EDvtlw067675; Fri, 14 Oct 2005 09:57:55 -0400 (EDT) X-Authentication-Warning: daemon.mistermishap.net: rob owned process doing -bs Date: Fri, 14 Oct 2005 09:57:55 -0400 (EDT) From: Rob Watt X-X-Sender: rob@daemon.mistermishap.net To: Don Lewis In-Reply-To: <20051013080849.F60486@daemon.mistermishap.net> Message-ID: <20051014092702.V67464@daemon.mistermishap.net> References: <200510121925.j9CJPU5D048710@gw.catspoiler.org> <20051013080849.F60486@daemon.mistermishap.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Sat, 15 Oct 2005 13:03:42 +0000 Cc: rob work , mikep@hudson-trading.com, freebsd-hackers@freebsd.org, Jason Carroll Subject: Re: freebsd-5.4-stable panics X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 13:57:57 -0000 On Thu, 13 Oct 2005, Rob Watt wrote: > The test machine did panic. Unfortunately I was not running with > BREAK_TO_DEBUGGER. I will re-run the tests with all of the debugging > options we were using before, and then send you the trace info. Unfortunately I was not able to reproduce the panics with BREAK_TO_DEBUGGER compiled into the kernel. I have no log messages or core info from the first panic/reboot. We've been having other problems with our 5 machines, so it's possible (and likely) that the reboot I saw was unrelated to your patch. I ran our stress tests for about 14 more hours without incident. Before we were able to trigger the kern_proc bug on a 6.0 machine within 0-2 hours. We've only experienced the kern_proc bug in 6.0. The bugs we've experienced in 5.4 are multicast/network-threading related. So unfortunately the only thing we can really test for is whether the machine is still stable with your patch. I've had to put all of my test machines back into production running 6.0. If I can free a 5 SMP machine for more tests, I will do so, but at this point it would good if someone else can test the 5.4 patch. I can't post our simulations, but something similar to Antoine Pelisse's test program should be sufficient to see if the patch works. thanks for your help. - Rob Watt From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 15 14:03:51 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7537216A420 for ; Sat, 15 Oct 2005 14:03:51 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCC4343D45 for ; Sat, 15 Oct 2005 14:03:50 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.13.5/8.13.1) with ESMTP id j9FE3mvU095146 for ; Sat, 15 Oct 2005 10:03:48 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.13.5/8.13.1/Submit) id j9FE3mNP095145 for freebsd-hackers@freebsd.org; Sat, 15 Oct 2005 10:03:48 -0400 (EDT) (envelope-from bv) Date: Sat, 15 Oct 2005 10:03:48 -0400 From: Bill Vermillion To: freebsd-hackers@freebsd.org Message-ID: <20051015140348.GB94832@wjv.com> References: <20051015120039.9156116A422@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051015120039.9156116A422@hub.freebsd.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on bilver.wjv.com Subject: Re: systems password's file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2005 14:03:51 -0000 > From: "Matthew D. Fuller" > Subject: Re: Re: system password's file > On Fri, Oct 14, 2005 at 06:54:26AM -0500 I heard the voice of > Sergey Babkin, and lo! it spake thus: > > I don't know if it's fixed now or not. > I just converted a Mandrake box a month or so ago, which used MD5 > hashes. Worked flawlessly. > > Hm, considering the we'd like people to migrate from Linux to > > FreeBSD, having such a conversion script/program (especially if > > someone writes it for their own use anyway) in the base system would > > make a lot of sense. > It's not that hard. Somebody mentioned an awk script. I slapped it > together in perl in about 5 minutes. I'll bet it's in /tmp > somewhere... I've done this a couple of time - but both times I just did it manually - with the tools in the OS - as this was the quickest. One was from an SGI IRIX, the other was from SunOS. The latter had a really slow sendmail system on a very old box. The move to a FreeBSD was not planned that far in advance and not planned for - but the Sun had gotten so slow they moved to getting their mail directly from their ISP. It was about a 10 minute job [max] using cut(1) and paste(1). Since I'd started with Unix before pool and on limited systems, those tools came to mind naturally. Both the SGI and SunOS conversions worked flawlessly. Bill -- Bill Vermillion - bv @ wjv . com