From owner-freebsd-python@FreeBSD.ORG Tue Jan 27 06:13:05 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 284C816A4CE for ; Tue, 27 Jan 2004 06:13:05 -0800 (PST) Received: from onlineus.com (mail.onlineus.com [209.12.240.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F52943D54 for ; Tue, 27 Jan 2004 06:13:02 -0800 (PST) (envelope-from david@onlineus.com) Date: Tue, 27 Jan 2004 08:12:42 -0600 Message-Id: <200401270812.AA1360330888@onlineus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "David Sumner" To: X-Mailer: Subject: python powered freebsd system X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: david@onlineus.com List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 14:13:05 -0000 Hello, I have been using python for over a year now and have realized how powerful python can be at completing complex tasks in relatively simple scripts and at the same time it can be used to create rather large projects in a maintainable yet flexible manner. I was wondering has anyone investigated replacing the boot up and init scripts and all of the shell scripts with a python based approach to booting, configuring and starting appropriate services and processes. I know this would require a huge undertaking in studying what makes a bsd system boot and the inter-workings involved. What I invision would be a freebsd system with the most recent stable version of the python interpreter with a good core of scripts and programs to replace all the shell script currently being used and maybe being able to store all the configuration and settings data in an easy to access, reliable and secure data store. Maybe an xml file or db store of sorts, something akin to what the windows registry w as trying to accomplish. Try to centralize all the configuration data, not just have a central method to modifying the settings of the base system and then any number of other places to configure every other addon service that you may choose to run on your freebsd system. This would be an attempt to ease the administration of a an entire freebsd system. Currently the core of freebsd is easily maintainable, but you are left to your own devices when configuring any added services, ie they each have their own configuration file sometimes stored in a different directory. Easy for an experienced system administrator to manage, but more difficult for an newbie or lower level everyday user. An example of the power I see being added in this approach would be possibly integrating the freebsd configuration on boot to a ldap server. Allowing central configuration over freebsd servers and workstations. This could allow central configuration of file mounts, firewall settings, etc. Or allowing a ssh session access to a configuration daemon on a freebsd system to allow remote configuration of a running freebsd system either manually or automated, all being secured and encrypted. Any thoughts or links to existing attempts or projects would be great. Thank You, David Sumner ________________________________________________________________ Sent via the WebMail system at onlineus.com From owner-freebsd-python@FreeBSD.ORG Tue Jan 27 10:06:41 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2ACE116A4CF for ; Tue, 27 Jan 2004 10:06:41 -0800 (PST) Received: from proxy.hddesign.com (dsl-194.madison.chorus.net [216.165.159.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 886EE43D2F for ; Tue, 27 Jan 2004 10:06:28 -0800 (PST) (envelope-from dn@hddesign.com) Received: from [10.0.0.35] (bob.hddesign.com [192.168.1.254]) by proxy.hddesign.com (8.12.8p1/8.12.8) with ESMTP id i0RI5cOW008553; Tue, 27 Jan 2004 12:05:38 -0600 (CST) (envelope-from dn@hddesign.com) From: David Niergarth To: david@onlineus.com In-Reply-To: <200401270812.AA1360330888@onlineus.com> References: <200401270812.AA1360330888@onlineus.com> Content-Type: text/plain Organization: Huttleston Data Design Message-Id: <1075226783.994.192.camel@change.hddesign.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 27 Jan 2004 12:06:23 -0600 Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean cc: freebsd-python@freebsd.org Subject: Re: python powered freebsd system X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 18:06:41 -0000 On Tue, 2004-01-27 at 08:12, David Sumner wrote: > I was wondering has anyone investigated replacing the boot up > and init scripts and all of the shell scripts with a python > based approach to booting, Athough not FreeBSD-specific, see Seth Nickell's Python-based System Services: http://www.osnews.com/story.php?news_id=4711 With commentary at: http://lwn.net/Articles/51986/ http://developers.slashdot.org/developers/03/10/02/1553253.shtml?tid=106&tid=185 David Niergarth From owner-freebsd-python@FreeBSD.ORG Thu Jan 29 00:14:14 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E15C16A4CE for ; Thu, 29 Jan 2004 00:14:14 -0800 (PST) Received: from smaug.vex.net (smaug.vex.net [66.246.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D75343D45 for ; Thu, 29 Jan 2004 00:13:55 -0800 (PST) (envelope-from x@xxvii.net) Received: from bee.vii.net (69-90-55-67.fastdsl.ca [69.90.55.67]) by smaug.vex.net (Postfix) with ESMTP id E680C487BC for ; Thu, 29 Jan 2004 03:13:54 -0500 (EST) Received: by bee.vii.net (Postfix, from userid 1000) id 791A7BD09; Thu, 29 Jan 2004 03:13:48 -0500 (EST) From: Tim Middleton Organization: xxvii.net To: python@freebsd.org Date: Thu, 29 Jan 2004 03:13:47 -0500 User-Agent: KMail/1.6 References: <200401270812.AA1360330888@onlineus.com> <1075226783.994.192.camel@change.hddesign.com> In-Reply-To: <1075226783.994.192.camel@change.hddesign.com> X-Whee: Yes, Please. MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200401290313.47886.x@Vex.Net> Subject: Re: python powered freebsd system X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: python@freebsd.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2004 08:14:14 -0000 On Tuesday 27 January 2004 13:06, David Niergarth wrote: > Athough not FreeBSD-specific, see Seth Nickell's Python-based System > Services: Interesting; though why is it i inevertantly shudder whenever I heard of a linux person 'reinventing' anything? This however reflects more poorly on me than the person doing the reinventing. Scanning the slashdot link i found this little post to be the most succinct and thought provoking of all of the descriptions (including Seth's own): [...] His goal is partly to make a nice set of APIs callable from a desktop like Gnome to ease with management and error reporting. As much as I love python, anyone who thinks the init system rewritten in python is going to gain wide acceptance is dreaming. The original poster though envisions more than an init system, but also a unified configuration system (of just the boot, or more general of apps -- maybe like gconf? -- I'm not sure. This also is probably dreaming. But it's a good dream. Microsoft did it long ago with the system registry... few unix people want to go down *that* road, nor is it likely even possible to given the more ecclectic nature of the broad spectrum of unix developers, but there is definitely a lot of merit in the idea behind it. The quote above to me sounds almost reasonable though. FreeBSD 5.2 does have a pretty good rc system going (borrowed from NetBSD, and worked on)... it's fairly unified. The rc.conf is a "sort of" configuration database. And the rc_subr provides a pretty decent rc-oriented API for the basic tasks required by programs that need to be started, stopped, and generally managed. Got me thinking that what might be more useful (and have more of a chance of general acceptance) is a tool which builds on top of this framework... a sort of rc script manager/configurer. Python would be a great and flexible platform for such a thing. Just some thoughts... And now for some links of my own of varying relevance... for another take on service management, don't forget djb's daemontools... http://www.freshports.org/sysutils/daemontools/ And here's an sf group i stumbled on a while back that seems hasn't gone anywhere... who want to build a gui admin tool for freebsd. They want to use Java of all things. Well, at least with Java there is Jython! (Hmm, someone should do a port for that!): https://sourceforge.net/projects/freebsdcc/ -- Tim Middleton | Cain Gang Ltd | I was allowed to play at philosophy no x@veX.net | www.Vex.Net | longer. --C.S.Lewis (SBJ) From owner-freebsd-python@FreeBSD.ORG Wed Feb 4 01:39:01 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7983616A4CE; Wed, 4 Feb 2004 01:39:01 -0800 (PST) Received: from smaug.vex.net (smaug.vex.net [66.246.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7ADC43D1D; Wed, 4 Feb 2004 01:38:59 -0800 (PST) (envelope-from x@xxvii.net) Received: from bee.vii.net (69-90-55-67.fastdsl.ca [69.90.55.67]) by smaug.vex.net (Postfix) with ESMTP id 334274883E; Wed, 4 Feb 2004 04:39:00 -0500 (EST) Received: by bee.vii.net (Postfix, from userid 1000) id 0D262BE88; Wed, 4 Feb 2004 04:38:47 -0500 (EST) From: Tim Middleton Organization: xxvii.net To: python@freebsd.org Date: Wed, 4 Feb 2004 04:38:45 -0500 User-Agent: KMail/1.6 X-Whee: Yes, Please. MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200402040438.45528.x@Vex.Net> cc: ijliao@freebsd.org Subject: wxMozilla and documancer X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: python@freebsd.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 09:39:01 -0000 I just went to try out the new documancer port not even realising that it was Python based. Looks like it could be useful. I used to use the chm version of the python docs on windows all the time... indexed text search is handy. The ability to add other "books" (like postgresql docs) makes this look even handier. But... the wxMozilla port it depends on doesn't seem to work for me (on 5.2-RELEASE). Anyone else tried it? The problem is that wxPython can't find libxpcom.so. libxpcom.so comes with mozilla and firebird and thunderbird. I seem to have three copies of it on my system (as i have all three ports installed). None are in my LD_LIBRARY_PATH path. >>> from wxPython import mozilla Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib/python2.3/site-packages/wxPython/mozilla.py", line 2, in ? import mozillac ImportError: Shared object "libxpcom.so" not found >>> But even if i manually add /usr/X11R6/lib/mozilla/ to my library path, wxMozilla still fails; though the error is different... >>> from wxPython import mozilla Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib/python2.3/site-packages/wxPython/mozilla.py", line 6, in ? from misc2 import * File "/usr/local/lib/python2.3/site-packages/wxPython/misc2.py", line 4, in ? from windows import * File "/usr/local/lib/python2.3/site-packages/wxPython/windows.py", line 6, in ? from gdi import * File "/usr/local/lib/python2.3/site-packages/wxPython/gdi.py", line 7, in ? import wx File "/usr/local/lib/python2.3/site-packages/wxPython/wx.py", line 22, in ? from mdi import * File "/usr/local/lib/python2.3/site-packages/wxPython/mdi.py", line 14, in ? from frames import * File "/usr/local/lib/python2.3/site-packages/wxPython/frames.py", line 14, in ? from stattool import * File "/usr/local/lib/python2.3/site-packages/wxPython/stattool.py", line 14, in ? from controls import * File "/usr/local/lib/python2.3/site-packages/wxPython/controls.py", line 16, in ? class wxControlPtr(wxWindowPtr): NameError: name 'wxWindowPtr' is not defined >>> -- Tim Middleton | Cain Gang Ltd | I have lived through whole tragedies x@veX.net | www.Vex.Net | without speaking a word. --Dost. (GC) From owner-freebsd-python@FreeBSD.ORG Wed Feb 4 17:37:39 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E387316A4CE for ; Wed, 4 Feb 2004 17:37:39 -0800 (PST) Received: from FreeBSD.csie.NCTU.edu.tw (freebsd.csie.nctu.edu.tw [140.113.17.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC90C43D46 for ; Wed, 4 Feb 2004 17:37:38 -0800 (PST) (envelope-from ijliao@FreeBSD.csie.NCTU.edu.tw) Received: from localhost (unknown [127.0.0.1]) by FreeBSD.csie.NCTU.edu.tw (Postfix) with ESMTP id 5863B106C25; Thu, 5 Feb 2004 09:37:34 +0800 (CST) Received: from FreeBSD.csie.NCTU.edu.tw ([127.0.0.1]) by localhost (FreeBSD.csie.NCTU.edu.tw [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 96045-03; Thu, 5 Feb 2004 09:37:33 +0800 (CST) Received: by FreeBSD.csie.NCTU.edu.tw (Postfix, from userid 1041) id E45E8106BEB; Thu, 5 Feb 2004 09:37:33 +0800 (CST) Date: Thu, 5 Feb 2004 09:37:33 +0800 From: Ying-Chieh Liao To: Tim Middleton Message-ID: <20040205013733.GA95701@freebsd.csie.nctu.edu.tw> References: <200402040438.45528.x@Vex.Net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: <200402040438.45528.x@Vex.Net> X-Operating-System: FreeBSD 4.9-STABLE i386 X-PGP-Key-Location: http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x11C02382 X-PGP-Key-Fingerprint: 4E98 55CC 2866 7A90 EFD7 9DA5 ACC6 0165 11C0 2382 User-Agent: Mutt/1.5.5.1i cc: python@FreeBSD.org Subject: Re: wxMozilla and documancer X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 01:37:40 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline maybe you have to ldconfig -m /usr/X11R6/lib/firebird/lib/mozilla-1.5 and try again ? On my 5.2-CURRENT (2004/01/06) everything is ok -- Pi seconds is a nanocentury. --- Tom Duff --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAIZ5drMYBZRHAI4IRAgDvAKDhMVNGdoQNtM8nOROLf2zrcrruowCgwhe8 FPTd1m963BiGYGOQBU6QalU= =YfD7 -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN-- From owner-freebsd-python@FreeBSD.ORG Fri Feb 6 21:41:20 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D38D16A4CE for ; Fri, 6 Feb 2004 21:41:20 -0800 (PST) Received: from smaug.vex.net (smaug.vex.net [66.246.136.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3C4743D46 for ; Fri, 6 Feb 2004 21:41:18 -0800 (PST) (envelope-from x@xxvii.net) Received: from bee.vii.net (69-90-55-67.fastdsl.ca [69.90.55.67]) by smaug.vex.net (Postfix) with ESMTP id 6F5C548741 for ; Sat, 7 Feb 2004 00:41:19 -0500 (EST) Received: by bee.vii.net (Postfix, from userid 1000) id CF0CFBEF9; Sat, 7 Feb 2004 00:41:08 -0500 (EST) From: Tim Middleton Organization: xxvii.net To: python@freebsd.org Date: Sat, 7 Feb 2004 00:41:07 -0500 User-Agent: KMail/1.6 References: <200402040438.45528.x@Vex.Net> <20040205013733.GA95701@freebsd.csie.nctu.edu.tw> In-Reply-To: <20040205013733.GA95701@freebsd.csie.nctu.edu.tw> X-Whee: Yes, Please. MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200402070041.07899.x@Vex.Net> Subject: Re: wxMozilla and documancer X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: python@freebsd.org List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 05:41:20 -0000 On Wednesday 04 February 2004 20:37, Ying-Chieh Liao wrote: > maybe you have to > ldconfig -m /usr/X11R6/lib/firebird/lib/mozilla-1.5 That's the same effect as setting the LD_LIBRARY_PATH variable ... tried it anyhow just to make sure. Still get the "NameError: name 'wxWindowPtr' is not defined" error. > On my 5.2-CURRENT (2004/01/06) everything is ok That's good to hear at least. Hmm, maybe I need to rebuild something. Umm.... Looking around I discovered a post related to this error, where Robin Dunn suggests that it is some sort of swig generated problem where wxPython.wx doesn't get imported. He suggests importing wxPython.wx explicitly before doing a "from WxPython import "... and... it does indeed fix things here: >>> import wxPython.wx >>> from wxPython import mozilla >>> No error... Now my only question is why does my system seem to have this problem requiring that, and yours not. I have no idea, but I added "import wxPython.wx" at the top of the /usr/local/bin/documancer file, and it no longer complains about not being able to load wxMozilla... -- Tim Middleton | Cain Gang Ltd | I care not much for a man's religion whose x@veX.net | www.Vex.Net | dog or cat are not the better for it. [A.L.]