From owner-freebsd-sysinstall@FreeBSD.ORG Sun Feb 12 01:23:17 2012 Return-Path: Delivered-To: freebsd-sysinstall@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBF72106566C for ; Sun, 12 Feb 2012 01:23:17 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id A23CF8FC08 for ; Sun, 12 Feb 2012 01:23:16 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa03 [127.0.0.1]) by ltcfislmsgpa03.fnfis.com (8.14.4/8.14.4) with SMTP id q1C0SQX2004501; Sat, 11 Feb 2012 19:23:15 -0600 Received: from smtp.fisglobal.com ([10.132.206.16]) by ltcfislmsgpa03.fnfis.com with ESMTP id 12wyt00ers-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sat, 11 Feb 2012 19:23:15 -0600 Received: from [10.0.0.101] (10.14.152.24) by smtp.fisglobal.com (10.132.206.16) with Microsoft SMTP Server (TLS) id 14.1.323.3; Sat, 11 Feb 2012 19:23:14 -0600 MIME-Version: 1.0 (Apple Message framework v1084) From: Devin Teske In-Reply-To: Date: Sat, 11 Feb 2012 17:23:12 -0800 Message-ID: References: <4F342066.2050409@fuzzwad.org> <07f501cce85b$4ac934f0$e05b9ed0$@fisglobal.com> <4F35C5E6.7010607@fuzzwad.org> <5FB150D7-BA30-406D-B8B1-5BDEF1909502@fisglobal.com> <4F35DEC0.2030904@fuzzwad.org> To: Devin Teske X-Mailer: Apple Mail (2.1084) X-Originating-IP: [10.14.152.24] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7361, 1.0.260, 0.0.0000 definitions=2012-02-11_06:2012-02-10, 2012-02-11, 1970-01-01 signatures=0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Ron McDowell , freebsd-sysinstall@freebsd.org Subject: Re: Announcing bsdconfig(8) preliminary X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2012 01:23:18 -0000 On Feb 11, 2012, at 2:06 PM, Devin Teske wrote: >=20 > On Feb 10, 2012, at 7:21 PM, Ron McDowell wrote: >=20 >> On 2/10/12 8:35 PM, Devin Teske wrote: >>> On Feb 10, 2012, at 5:35 PM, Ron McDowell wrote: >>>=20 >>>> On 2/10/12 7:20 PM, Devin Teske wrote: >>>>>> -----Original Message----- >>>>>> From: owner-freebsd-sysinstall@freebsd.org [mailto:owner-freebsd- >>>>>> sysinstall@freebsd.org] On Behalf Of Ron McDowell >>>>>> Sent: Thursday, February 09, 2012 11:37 AM >>>>>> To: freebsd-sysinstall@freebsd.org >>>>>> Subject: Announcing bsdconfig(8) preliminary >>>>>>=20 >>>>>> http://fuzzwad.org/bsdconfig/ is a long way from finished, but there= is >>>>>> enough of a framework available now, that I'm wanting some feedback = on. >>>>>> Tarballs are out there and I'll guarantee you'll want to look at the >>>>>> latest, and not the earlier examples. The manpage in the tarball is= a >>>>>> good place to start. >>>>>>=20 >>>>>> Feel free to talk about it here and ask any questions you want. The >>>>>> direction I go with it will depend [I hope!] on where everyone wants= it >>>>>> to go. Thanks in advance. >>>>>>=20 >>>>> Hi Ron, >>>>>=20 >>>>> Thank you very much for working on this with everyone. >>>>>=20 >>>>> I notice that you've centralized the use of "notimplemented" to >>>>> /usr/libexec/bsdconfig/notimplemented which makes the per-module files >>>>> /usr/libexec/bsdconfig/*.*/notimplemented obsolete. >>>>>=20 >>>>> I thinking I should clean things up after installation by executing: >>>>>=20 >>>>> cd /usr/libexec/bsdconfig >>>>> sudo rm -f *.*/notimplemented >>>> Absolutely, thanks for pointing that out. I just cleaned it up on my = copy. >>>>=20 >>>>> Again, thanks for working on this, ... would you mind if I took it an= d worked on >>>>> it this weekend and passed it back to you for review? >>>> Go for it! >>>>=20 >>> How do you feel about implementing "090.time-zone" with my ports additi= on, sysutils/tzdialog? >>=20 >> tzsetup(8) is already installed in base...I haven't looked at tzdialog, = does it do more than tzsetup? If so, then tzdialog needs to be included her= e like we've done with host-setup in 120.networking. >>=20 >>> Aside, I have a question about the INDEX file... >>>=20 >>> Does the exit status of the program-to-be-executed matter in any way to= bsdconfig? >>=20 >> Not yet, but it could and probably should...if nothing else, we should a= t least pass the exit code back up the line. >>=20 >>> Reason I ask is because tzdialog has a "-e" flag which may be useful if= -desired, causing the exit status to be success if-and-only-if both a zonef= ile is selected and it was installed without error. >>=20 >> --=20 >> Ron McDowell >> San Antonio TX >=20 > I've put a significant amount of work into this over the last 24 hours an= d would like to share my contributions. >=20 > http://druidbsd.sourceforge.net/download/bsdconfig/ >=20 > http://druidbsd.sourceforge.net/download/bsdconfig/bsdconfig.120211.txz >=20 > Please try: >=20 > bsdconfig networking > bsdconfig timezone > bsdconfig networking -h > bsdconfig timezone -h > bsdconfig networking -X > bsdconfig timezone -X >=20 Here's a little trick for testing the X11 interfaces from a Mac or PC (runn= ing Windows) using X11 Forwarding over SSH to a FreeBSD 9 box as a non-root= user with sudo(8) access. =3D=3D=3D First of three pre-requisites: You have to get your FreeBSD 9.0-RELEASE (or= higher) system ready to run Xdialog(1): (as root) pkg_add -r sudo pkg_add -r xauth pkg_add -r xorg pkg_add -r xdialog pkg_add -r xdpyinfo NOTE: Since we'll be using X11 Forwarding via SSH, you won't actually have = to configure or run the X server on the FreeBSD system. However, the packag= es must still be installed. This works both on real machines and virtual ma= chines (headless or otherwise). =3D=3D=3D Second pre-requisite: You need an X Server installed on your client machine= that you're SSH'ing *from* Free 3rd Party software available for both Mac and Windows. On Mac, you can install the free Apple X11 software from the below link: http://www.apple.com/support/downloads/x11formacosx.html NOTE: On Mac, you don't have to start the Apple X11 Server (X11.app) manual= ly, it just needs to be installed before proceeding (it will launch automat= ically as-needed). On Windows, you can install the free Xming software from the below link: http://www.straightrunning.com/XmingNotes/ NOTE: On Windows, it's recommended you download and install "Xming" from th= e "Public Domain Releases", version "6.9.0.31" as well as the "Xming-fonts"= right above it, version "7.5.0.34". After installing Xming, run it from yo= ur Start menu. On PC, you'll also need the free PuTTY software from Simon Tatham; below li= nk: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html NOTE: On Windows, it's recommended you download "putty.exe". =3D=3D=3D Third pre-requisite (Windows only): Symlink /bin/xauth to /usr/local/bin/xa= uth on your FreeBSD 9.0-RELEASE (or higher) system ln -sf /usr/local/bin/xauth /bin/xauth Depends on the software you're using, you might have to create additional s= ymlinks. Alternatives also include using "~/.ssh/config" on UNIX-like hosts= to specify alternate paths to for XAuthLocation, but on Mac this usually i= sn't needed where on Windows it's pretty common. =3D=3D=3D Now with pre-requesites satisfied, we can move on with the testing of these= X features via SSH as a non-root user. =3D=3D=3D Step 1: Open a terminal On Mac, you can find "Terminal.app" in "Applications/Utilities" (Cmd+Shift+= U while in Finder to open "Utilities" folder or use the "Go" menu in the me= nubar). On PC, run "putty.exe". This is where things diverge a bit for Mac/Windows... For Mac, use the below command to start an X11 Forwarded session to a FreeB= SD 9.0-RELEASE or higher system... ssh -X someuser@somehost NOTE: Make sure to use upper-case "X" For PC, you'll have to do two things in the PuTTY new-connection dialog win= dow: A. Enter the hostname of a system running FreeBSD 9.0-RELEASE or higher B. Find "SSH" on the left and in the SSH options, enable "X11 Forwarding" = (click the checkbox) NOTE: Xming should be running in the system tray before you connect =3D=3D=3D Step 2: Test your X11 Forwarding first You'll want to know that your X11 Forwarded SSH session is working before y= ou attempt to use it via sudo(8) (which requires some xauth(1) magic). echo $DISPLAY should produce a non-null response (something like "localhost:10.0" or "som= e.host.com:10.0" -- depending on sshd_config X11UseLocalHost setting). Also, xdpyinfo Should spew some info about your display (this is info about your Mac's App= le X11 app or on Windows, Xming). If either of these fail, then X11 Forwarding via SSH is not working for you= and you need to diagnose the issue (may be administratively prohibited by = the system administrator via sshd_config(5) or xauth(1) wasn't found by you= r client software). =3D=3D=3D Step 3: Grant "root" the ability to use your X11 session The default settings in FreeBSD 9 don't allow you to do things like: sudo xdpyinfo The failure becomes: X11 connection rejected because of wrong authentication. xdpyinfo: unable to open display "localhost:10.0". =20 The solution is to execute: xauth -f ~/.Xauthority extract - ${HOSTNAME:-localhost}{/unix,}:${DISPLAY#= *:} | sudo -u root xauth -ivf ~root/.Xauthority merge - NOTE: If you want to authorize another user other than root, replace "sudo = -u root" with "sudo -u USER" and replace "~root/.Xauthority" with "~USER/.X= authority". Sample output from the above command is shown below: Ignoring locks on authority file /root/.Xauthority 1 entries read in: 0 new, 1 replacement Ignoring locks and writing authority file /root/.Xauthority Immediately after-which, re-executing the above failed command: sudo xdpyinfo now succeeds. =3D=3D=3D Step 4: Try bsdconfig hostname and timezone elements via X11 as non-root us= er via sudo(8) Execute on your FreeBSD-9 (or higher) system (via SSH or otherwise): sudo bsdconfig networking -X sudo bsdconfig timezone -X --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. From owner-freebsd-sysinstall@FreeBSD.ORG Sun Feb 12 03:08:01 2012 Return-Path: Delivered-To: freebsd-sysinstall@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A7A6106564A for ; Sun, 12 Feb 2012 03:08:01 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 169A38FC0A for ; Sun, 12 Feb 2012 03:07:59 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa03 [127.0.0.1]) by ltcfislmsgpa03.fnfis.com (8.14.4/8.14.4) with SMTP id q1C37xDj000923; Sat, 11 Feb 2012 21:07:59 -0600 Received: from smtp.fisglobal.com ([10.132.206.15]) by ltcfislmsgpa03.fnfis.com with ESMTP id 12wyt00n37-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sat, 11 Feb 2012 21:07:59 -0600 Received: from [10.0.0.101] (10.14.152.24) by smtp.fisglobal.com (10.132.206.15) with Microsoft SMTP Server (TLS) id 14.1.323.3; Sat, 11 Feb 2012 21:07:58 -0600 MIME-Version: 1.0 (Apple Message framework v1084) From: Devin Teske In-Reply-To: Date: Sat, 11 Feb 2012 19:07:55 -0800 Message-ID: <092FD6D4-5AC7-40D6-B060-12F09AACB5BE@fisglobal.com> References: <4F342066.2050409@fuzzwad.org> <07f501cce85b$4ac934f0$e05b9ed0$@fisglobal.com> <4F35C5E6.7010607@fuzzwad.org> <5FB150D7-BA30-406D-B8B1-5BDEF1909502@fisglobal.com> <4F35DEC0.2030904@fuzzwad.org> To: Devin Teske X-Mailer: Apple Mail (2.1084) X-Originating-IP: [10.14.152.24] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7361, 1.0.260, 0.0.0000 definitions=2012-02-11_06:2012-02-10, 2012-02-11, 1970-01-01 signatures=0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Ron McDowell , freebsd-sysinstall@freebsd.org Subject: Re: Announcing bsdconfig(8) preliminary X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2012 03:08:01 -0000 On Feb 11, 2012, at 5:23 PM, Devin Teske wrote: >=20 > On Feb 11, 2012, at 2:06 PM, Devin Teske wrote: >=20 >>=20 >> On Feb 10, 2012, at 7:21 PM, Ron McDowell wrote: >>=20 >>> On 2/10/12 8:35 PM, Devin Teske wrote: >>>> On Feb 10, 2012, at 5:35 PM, Ron McDowell wrote: >>>>=20 >>>>> On 2/10/12 7:20 PM, Devin Teske wrote: >>>>>>> -----Original Message----- >>>>>>> From: owner-freebsd-sysinstall@freebsd.org [mailto:owner-freebsd- >>>>>>> sysinstall@freebsd.org] On Behalf Of Ron McDowell >>>>>>> Sent: Thursday, February 09, 2012 11:37 AM >>>>>>> To: freebsd-sysinstall@freebsd.org >>>>>>> Subject: Announcing bsdconfig(8) preliminary >>>>>>>=20 >>>>>>> http://fuzzwad.org/bsdconfig/ is a long way from finished, but ther= e is >>>>>>> enough of a framework available now, that I'm wanting some feedback= on. >>>>>>> Tarballs are out there and I'll guarantee you'll want to look at the >>>>>>> latest, and not the earlier examples. The manpage in the tarball i= s a >>>>>>> good place to start. >>>>>>>=20 >>>>>>> Feel free to talk about it here and ask any questions you want. The >>>>>>> direction I go with it will depend [I hope!] on where everyone want= s it >>>>>>> to go. Thanks in advance. >>>>>>>=20 >>>>>> Hi Ron, >>>>>>=20 >>>>>> Thank you very much for working on this with everyone. >>>>>>=20 >>>>>> I notice that you've centralized the use of "notimplemented" to >>>>>> /usr/libexec/bsdconfig/notimplemented which makes the per-module fil= es >>>>>> /usr/libexec/bsdconfig/*.*/notimplemented obsolete. >>>>>>=20 >>>>>> I thinking I should clean things up after installation by executing: >>>>>>=20 >>>>>> cd /usr/libexec/bsdconfig >>>>>> sudo rm -f *.*/notimplemented >>>>> Absolutely, thanks for pointing that out. I just cleaned it up on my= copy. >>>>>=20 >>>>>> Again, thanks for working on this, ... would you mind if I took it a= nd worked on >>>>>> it this weekend and passed it back to you for review? >>>>> Go for it! >>>>>=20 >>>> How do you feel about implementing "090.time-zone" with my ports addit= ion, sysutils/tzdialog? >>>=20 >>> tzsetup(8) is already installed in base...I haven't looked at tzdialog,= does it do more than tzsetup? If so, then tzdialog needs to be included he= re like we've done with host-setup in 120.networking. >>>=20 >>>> Aside, I have a question about the INDEX file... >>>>=20 >>>> Does the exit status of the program-to-be-executed matter in any way t= o bsdconfig? >>>=20 >>> Not yet, but it could and probably should...if nothing else, we should = at least pass the exit code back up the line. >>>=20 >>>> Reason I ask is because tzdialog has a "-e" flag which may be useful i= f-desired, causing the exit status to be success if-and-only-if both a zone= file is selected and it was installed without error. >>>=20 >>> --=20 >>> Ron McDowell >>> San Antonio TX >>=20 >> I've put a significant amount of work into this over the last 24 hours a= nd would like to share my contributions. >>=20 >> http://druidbsd.sourceforge.net/download/bsdconfig/ >>=20 >> http://druidbsd.sourceforge.net/download/bsdconfig/bsdconfig.120211.txz >>=20 >> Please try: >>=20 >> bsdconfig networking >> bsdconfig timezone >> bsdconfig networking -h >> bsdconfig timezone -h >> bsdconfig networking -X >> bsdconfig timezone -X >>=20 >=20 > Here's a little trick for testing the X11 interfaces from a Mac or PC (ru= nning Windows) using X11 Forwarding over SSH to a FreeBSD 9 box as a non-ro= ot user with sudo(8) access. >=20 [snip] >=20 > Step 3: Grant "root" the ability to use your X11 session >=20 > The default settings in FreeBSD 9 don't allow you to do things like: >=20 > sudo xdpyinfo >=20 > The failure becomes: >=20 > X11 connection rejected because of wrong authentication. > xdpyinfo: unable to open display "localhost:10.0". >=20=20 > The solution is to execute: >=20 > xauth -f ~/.Xauthority extract - ${HOSTNAME:-localhost}{/unix,}:${DISPLA= Y#*:} | sudo -u root xauth -ivf ~root/.Xauthority merge - >=20 for csh/tcsh users: xauth -f ~/.Xauthority extract - $HOST{/unix,}:`/bin/sh -c 'echo ${DISPLAY= #*:}'` | sudo -u root xauth -ivf ~root/.Xauthority merge - > NOTE: If you want to authorize another user other than root, replace "sud= o -u root" with "sudo -u USER" and replace "~root/.Xauthority" with "~USER/= .Xauthority". >=20 --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. From owner-freebsd-sysinstall@FreeBSD.ORG Mon Feb 13 07:10:41 2012 Return-Path: Delivered-To: freebsd-sysinstall@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A941106564A for ; Mon, 13 Feb 2012 07:10:41 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 13DFF8FC13 for ; Mon, 13 Feb 2012 07:10:40 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa04 [127.0.0.1]) by ltcfislmsgpa04.fnfis.com (8.14.4/8.14.4) with SMTP id q1D6nK8l022393; Mon, 13 Feb 2012 01:10:39 -0600 Received: from smtp.fisglobal.com ([10.132.206.15]) by ltcfislmsgpa04.fnfis.com with ESMTP id 12xtmh0jak-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Mon, 13 Feb 2012 01:10:39 -0600 Received: from [10.0.0.101] (10.14.152.24) by smtp.fisglobal.com (10.132.206.15) with Microsoft SMTP Server (TLS) id 14.1.323.3; Mon, 13 Feb 2012 01:10:37 -0600 MIME-Version: 1.0 (Apple Message framework v1084) From: Devin Teske In-Reply-To: <092FD6D4-5AC7-40D6-B060-12F09AACB5BE@fisglobal.com> Date: Sun, 12 Feb 2012 23:10:34 -0800 Message-ID: <5A383681-A8E7-4B2C-9176-602570F9A05F@fisglobal.com> References: <4F342066.2050409@fuzzwad.org> <07f501cce85b$4ac934f0$e05b9ed0$@fisglobal.com> <4F35C5E6.7010607@fuzzwad.org> <5FB150D7-BA30-406D-B8B1-5BDEF1909502@fisglobal.com> <4F35DEC0.2030904@fuzzwad.org> <092FD6D4-5AC7-40D6-B060-12F09AACB5BE@fisglobal.com> To: Devin Teske X-Mailer: Apple Mail (2.1084) X-Originating-IP: [10.14.152.24] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7361, 1.0.260, 0.0.0000 definitions=2012-02-13_01:2012-02-10, 2012-02-13, 1970-01-01 signatures=0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Dave, Robison , Ron McDowell , freebsd-sysinstall@freebsd.org Subject: Re: Announcing bsdconfig(8) preliminary X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 07:10:41 -0000 On Feb 11, 2012, at 7:07 PM, Devin Teske wrote: >=20 > On Feb 11, 2012, at 5:23 PM, Devin Teske wrote: >=20 >>=20 >> On Feb 11, 2012, at 2:06 PM, Devin Teske wrote: >>=20 >>>=20 >>> On Feb 10, 2012, at 7:21 PM, Ron McDowell wrote: >>>=20 >>>> On 2/10/12 8:35 PM, Devin Teske wrote: >>>>> On Feb 10, 2012, at 5:35 PM, Ron McDowell wrote: >>>>>=20 >>>>>> On 2/10/12 7:20 PM, Devin Teske wrote: >>>>>>>> -----Original Message----- >>>>>>>> From: owner-freebsd-sysinstall@freebsd.org [mailto:owner-freebsd- >>>>>>>> sysinstall@freebsd.org] On Behalf Of Ron McDowell >>>>>>>> Sent: Thursday, February 09, 2012 11:37 AM >>>>>>>> To: freebsd-sysinstall@freebsd.org >>>>>>>> Subject: Announcing bsdconfig(8) preliminary >>>>>>>>=20 >>>>>>>> http://fuzzwad.org/bsdconfig/ is a long way from finished, but the= re is >>>>>>>> enough of a framework available now, that I'm wanting some feedbac= k on. >>>>>>>> Tarballs are out there and I'll guarantee you'll want to look at t= he >>>>>>>> latest, and not the earlier examples. The manpage in the tarball = is a >>>>>>>> good place to start. >>>>>>>>=20 >>>>>>>> Feel free to talk about it here and ask any questions you want. T= he >>>>>>>> direction I go with it will depend [I hope!] on where everyone wan= ts it >>>>>>>> to go. Thanks in advance. >>>>>>>>=20 >>>>>>> Hi Ron, >>>>>>>=20 >>>>>>> Thank you very much for working on this with everyone. >>>>>>>=20 >>>>>>> I notice that you've centralized the use of "notimplemented" to >>>>>>> /usr/libexec/bsdconfig/notimplemented which makes the per-module fi= les >>>>>>> /usr/libexec/bsdconfig/*.*/notimplemented obsolete. >>>>>>>=20 >>>>>>> I thinking I should clean things up after installation by executing: >>>>>>>=20 >>>>>>> cd /usr/libexec/bsdconfig >>>>>>> sudo rm -f *.*/notimplemented >>>>>> Absolutely, thanks for pointing that out. I just cleaned it up on m= y copy. >>>>>>=20 >>>>>>> Again, thanks for working on this, ... would you mind if I took it = and worked on >>>>>>> it this weekend and passed it back to you for review? >>>>>> Go for it! >>>>>>=20 >>>>> How do you feel about implementing "090.time-zone" with my ports addi= tion, sysutils/tzdialog? >>>>=20 >>>> tzsetup(8) is already installed in base...I haven't looked at tzdialog= , does it do more than tzsetup? If so, then tzdialog needs to be included h= ere like we've done with host-setup in 120.networking. >>>>=20 >>>>> Aside, I have a question about the INDEX file... >>>>>=20 >>>>> Does the exit status of the program-to-be-executed matter in any way = to bsdconfig? >>>>=20 >>>> Not yet, but it could and probably should...if nothing else, we should= at least pass the exit code back up the line. >>>>=20 >>>>> Reason I ask is because tzdialog has a "-e" flag which may be useful = if-desired, causing the exit status to be success if-and-only-if both a zon= efile is selected and it was installed without error. >>>>=20 >>>> --=20 >>>> Ron McDowell >>>> San Antonio TX >>>=20 >>> I've put a significant amount of work into this over the last 24 hours = and would like to share my contributions. >>>=20 >>> http://druidbsd.sourceforge.net/download/bsdconfig/ >>>=20 >>> http://druidbsd.sourceforge.net/download/bsdconfig/bsdconfig.120211.txz >>>=20 >>> Please try: >>>=20 >>> bsdconfig networking >>> bsdconfig timezone >>> bsdconfig networking -h >>> bsdconfig timezone -h >>> bsdconfig networking -X >>> bsdconfig timezone -X >>>=20 >>=20 >> Here's a little trick for testing the X11 interfaces from a Mac or PC (r= unning Windows) using X11 Forwarding over SSH to a FreeBSD 9 box as a non-r= oot user with sudo(8) access. >>=20 >=20 > [snip] >=20 >>=20 >> Step 3: Grant "root" the ability to use your X11 session >>=20 >> The default settings in FreeBSD 9 don't allow you to do things like: >>=20 >> sudo xdpyinfo >>=20 >> The failure becomes: >>=20 >> X11 connection rejected because of wrong authentication. >> xdpyinfo: unable to open display "localhost:10.0". >>=20=20 >> The solution is to execute: >>=20 >> xauth -f ~/.Xauthority extract - ${HOSTNAME:-localhost}{/unix,}:${DISPL= AY#*:} | sudo -u root xauth -ivf ~root/.Xauthority merge - >>=20 >=20 I've put a lot more work into bsdconfig over the past 24 hours and hand it = back off for review. http://druidbsd.sf.net/download/bsdconfig/ http://druidbsd.sf.net/download/bsdconfig/bsdconfig.120212.txz Changes include: both "networking" and "timezone" have had their common-bits removed and con= sequently some new includes are now available (detailed below): /usr/libexec/bsdconfig/incl/dialog.incl Provides the following functions for dealing with dialogs: - f_dialog_infobox_size() - f_dialog_buttonbox_size() - f_dialog_inputbox_size() - f_dialog_menu_size() - f_dialog_clear() - f_dialog_info() - f_xdialog_info() - f_dialog_msgbox() - f_dialog_yesno() - f_dialog_inputstr() - f_dialog_menutag() - f_dialog_menutag2item() - f_dialog_menutag2index() /usr/libexec/bsdconfig/incl/mustberoot.incl Upon inclusion will make sure that you are root. If you are not root, prompts for sudo(8) credentials. Script re-executes itself automatically via sudo(8). Preserves command-line arguments. /usr/libexec/bsdconfig/incl/strings.incl Provides the following functions for string manipulation and et cetera: - f_substr() - f_longest_line_length() - f_number_of_lines() /usr/libexec/bsdconfig/incl/sysrc.incl Provides the following functions for managing rc.conf(5) settings: - f_clean_env() - f_sysrc_get() - f_sysrc_find() - f_sysrc_set() - f_sysrc_delete() NOTE: The sysrc.incl module should make authoring the "startup" module pret= ty easy (compared to without it). I'm looking forward to writing that modul= e before next weekend. In addition, bsdconfig itself now uses the "mustberoot.incl" include, meani= ng that any of the following commands can now work as non-root (so long as = sudo(8) is installed and your account has access to use it; HINT: pkg_add -= r sudo && pw usermod myusername -G wheel). bsdconfig bsdconfig networking /usr/libexec/bsdconfig/120.networking/networking bsdconfig networking -X /usr/libexec/bsdconfig/120.networking/networking -X bsdconfig timezone /usr/libexec/bsdconfig/090.time-zone/timezone bsdconfig timezone -X /usr/libexec/bsdconfig/090.time-zone/timezone -X eliminating the need to either (a) use sudo(8) or (b) use su(1) to become r= oot first. All the above commands will work as non-root user if sudo(8) is = installed and the current user is granted access. NOTE: The "-X" options now automatically work via SSH as I've incorporated = the xauth(1) session management into the "mustberoot.incl" include (auto-en= ables if-and-only-if both $SSH_CONNECTION and $DISPLAY are set). Other changes include - expanding the f_die() function in the "common.incl" include to take a pri= ntf(1) syntax. - optimized bsdconfig INDEX scanning for usage statement (changed a "cat | = grep | sed | sed" into a single "awk") - cleaned up "networking" further (formerly "host-setup" from ports tree in= sysutils), removing "reset_shell" and ilk That's all for now. Zzzzz... --=20 Devin P.S. Breakdown of activity over this weekend: dteske@push900.vicor.com ~ $ diff -rupN bsdconfig.1202{09,11} | wc -l 9946 dteske@push900.vicor.com ~ $ diff -rupN bsdconfig.1202{11,12} | wc -l 4840 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. From owner-freebsd-sysinstall@FreeBSD.ORG Mon Feb 13 11:08:13 2012 Return-Path: Delivered-To: freebsd-sysinstall@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 525C8106568D for ; Mon, 13 Feb 2012 11:08:13 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3F2E98FC24 for ; Mon, 13 Feb 2012 11:08:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1DB8D6r091045 for ; Mon, 13 Feb 2012 11:08:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1DB8CxV091043 for freebsd-sysinstall@FreeBSD.org; Mon, 13 Feb 2012 11:08:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Feb 2012 11:08:12 GMT Message-Id: <201202131108.q1DB8CxV091043@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sysinstall@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-sysinstall@FreeBSD.org X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 11:08:13 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/164399 sysinstall bsdinstall(8): 9.0 installer failures o bin/164294 sysinstall bsdinstall(8): FreeBSD 9.0-RELEASE bsdinstall dvd does o bin/164291 sysinstall bsdinstall(8): bsdinstall and filestetyem selection / o bin/164284 sysinstall bsdinstall(8): FreeBSD install assign incorrect dev as o bin/164281 sysinstall bsdinstall(8): please allow sysinstall as installer op o bin/164267 sysinstall bsdinstall(8) bugs when RE-installing to GPT partition o bin/164097 sysinstall bsdinstall(8): always installs GPT f bin/164094 sysinstall bsdinstall(8): installer progress over 100% o bin/163943 sysinstall bsdinstall(8) fails to detect CD device when booting w o bin/163123 sysinstall bsdinstall(8): IPV6 only errors connecting o bin/162693 sysinstall sysinstall(8): release/Makefile.sysinstall on 9.x refe o bin/162605 sysinstall sysinstall(8) doesn't identify CD/DVD drives for the u o bin/162429 sysinstall bsdinstall(8): 9.x installer: selecting ZFS for the ro o bin/162428 sysinstall bsdinstall(8): should check available disk space from o bin/162364 sysinstall sysinstall(8): update sysinstall ftp mirror list for c o bin/162258 sysinstall sysinstall(8): long-time bugs o bin/162175 sysinstall [patch] bsdinstall(8): add keymap selection loop and t o bin/162152 sysinstall bsdinstall(8): No up-to-date IPv6 French mirror f bin/161931 sysinstall bsdinstall(8): (add sysinstall partition config as opt o bin/161929 sysinstall bsdinstall(8): (change partition editor screen default o bin/161928 sysinstall bsdinstall(8): (add option to enable 2 button mouse co o bin/161924 sysinstall bsdinstall(8): add msg box telling user to remove inst o bin/161923 sysinstall bsdinstall(8) games & ports install options o kern/161837 sysinstall [libdisk] [patch] sysinstall(8) has a 32 disk limit o bin/161720 sysinstall bsdinstall(8): partition editor does not put partition o bin/161547 sysinstall [patch] bsdinstall(8) should identify wireless network f bin/161113 sysinstall bsdinstall(8): 9.0-BETA3: overwrites Win*-bootcodes wi o bin/161101 sysinstall bsdinstall(8): 9.0-BETA3: partition editor: UFS-option o bin/161100 sysinstall bsdinstall(8): 9.0-BETA3: Add User but no Add Group o bin/161056 sysinstall bsdinstall(8): could allow full control over newfs arg o bin/161055 sysinstall bsdinstall(8): partitioner should auto-populate GPT la f bin/161054 sysinstall bsdinstall(8): partitioner should list valid "type"s o bin/161053 sysinstall bsdinstall(8): network setup dialog is hard to navigat o bin/161052 sysinstall bsdinstall(8): should be consistent about saving confi o bin/161050 sysinstall bsdinstall(8): should use new syntax for IPv4 in rc.co o bin/161049 sysinstall bsdinstall(8): could try to tell if SSDs support TRIM o bin/161048 sysinstall [patch] bsdinstall(8): should run a concurrent shell o o bin/161047 sysinstall [patch] bsdinstall(8): should not run on vt0 o bin/157635 sysinstall sysinstall(8): "none" Do not install a boot manager - o bin/157117 sysinstall sysinstall(8): Add ftp4.se.freebsd.org to list of IPv6 o bin/154788 sysinstall sysinstall(8) crashes if no network interface found o bin/154613 sysinstall sysinstall(8) does not rescan USB automatically o bin/150995 sysinstall sysinstall(8): corruption of partition table s bin/150237 sysinstall sysinstall(8): Suggestion: installer should suggest th o bin/148805 sysinstall [hang] FreeBSD 7.2, 8.0, and 9.0 hang during install a f bin/148220 sysinstall sysinstall(8): 9.0-current gets "Cannot resolv hostnam o bin/148201 sysinstall sysinstall(8): core dump (Error 10) while trying to in o bin/148053 sysinstall sysinstall(8) labeling o bin/146299 sysinstall sysinstall(8): cannot create slice o bin/145735 sysinstall sysinstall(8) trashes Vista-created partition tables o bin/145027 sysinstall Remove all sysinstall(8) references to floppy and slip o bin/144278 sysinstall [install] Fixit from USB dont work o bin/142867 sysinstall sysinstall(8): in a custom installation re-entering th o misc/142335 sysinstall Download of Release 8.0 LIVE is NOT a "live" from CD p o bin/140843 sysinstall sysinstall(8): cannot software install from usb o bin/140842 sysinstall sysinstall(8): destroyed ncurses interface with FBSD8. o bin/140595 sysinstall [request] sysinstall(8): Replace "Country Selection" w o bin/138423 sysinstall sysinstall(8): Installer (and sade) get wrong number o o bin/138025 sysinstall sysinstall(8) fails to create big partition o bin/137864 sysinstall [patch] sysinstall(8): add possibility to shutdown/pow o bin/137713 sysinstall sysinstall(8): installer partition editor generates in o bin/134425 sysinstall sysinstall(8) custom distributions select all and dese o bin/129762 sysinstall sysinstall(8) doesn't seem to support GPT for EFI boar s bin/123304 sysinstall sysinstall(8): missing sensible and user friendly prog o bin/121503 sysinstall sysinstall(8): 7.0 upgrade doesn't let me mount all of a bin/121124 sysinstall sysinstall(8): FreeBSD 6.3 installation deletes MBR pa o bin/119077 sysinstall [patch] sysinstall(8) - reading packages from index is o bin/113682 sysinstall [patch] sysinstall(8) warns for invalid geometry which o bin/112757 sysinstall sysinstall(8): sysinstall(8): in the FDISK tool we can o bin/110151 sysinstall sysinstall(8): sysinstall(8) don't respects install ro o bin/108191 sysinstall sysinstall(8): Disklabel editor help text (by F1 key) o bin/107830 sysinstall sysinstall(8): Change Units (Z) in fdisk doesn't work p bin/102638 sysinstall [patch] sysinstall(8): custom dist set always install o bin/102498 sysinstall sysinstall(8): Cursor doesn't track sysinstall hilight a bin/101762 sysinstall sysinstall(8) does not obey /usr/ports symlink while i o bin/97108 sysinstall sysinstall(8): write failure on transfer (wrote -1 byt o bin/93275 sysinstall sysinstall(8): Failure to install after restarting ins o bin/90656 sysinstall sysinstall(8): 6.0-RELEASE (i386) cannot be installed s bin/86859 sysinstall sysinstall(8): Installer should ask about Linux earlie o bin/86454 sysinstall sysinstall(8): sysinstall terminates with signal 10 if o bin/79910 sysinstall sysinstall(8): Cannot escape from failed port/package o bin/79840 sysinstall sysinstall(8): Partitioning and formating a new disk f o bin/79621 sysinstall sysinstall(8): sysinstall(8) does not create a device o bin/78964 sysinstall sysinstall(8): can not write labels to hdd on installa s bin/73617 sysinstall sysinstall(8): fdisk editor unmarks active partition o bin/73410 sysinstall sysinstall(8): Sysinstall could not allocate disklabel o bin/72895 sysinstall sysinstall(8): Sysinstall generates invalid partition o bin/70002 sysinstall sysinstall(8): fails to locate FTP dirs if the OS has o bin/69986 sysinstall sysinstall(8): [patch] no job control in fixit shell o o bin/69942 sysinstall sysinstall(8): sysinstall changes /etc/rc.conf after i o bin/69723 sysinstall sysinstall(8): [request] allow to continue from packag o bin/62702 sysinstall sysinstall(8): backup of /etc and /root during sysinst o bin/62367 sysinstall sysinstall(8): 5.2.1-RC installation problems o bin/61890 sysinstall sysinstall(8): fdisk(8) uses incorrect calculations fo o bin/61603 sysinstall sysinstall(8): wrong geometry guessed o bin/60632 sysinstall sysinstall(8): UI bug in partition label screen in sys o bin/53341 sysinstall sysinstall(8): [patch] dump frequency in sysinstall is o bin/48989 sysinstall sysinstall(8): Sysinstall's partition editor gets con s bin/48341 sysinstall sysinstall(8): changes the active slice flag when it p o bin/46905 sysinstall sysinstall(8): FreeBSD 5.x cannot be installed from mu o bin/46235 sysinstall sysinstall(8): NTP servers for Finland require updatin o bin/42162 sysinstall sysinstall(8): after restart, installation crashes, md o bin/41949 sysinstall sysinstall(8): sysinstall sorts /etc/rc.conf during ne o bin/41850 sysinstall sysinstall(8): sysinstall fails to create root filesys o bin/40260 sysinstall sysinstall(8): hang when detecting devices (No CD/DVD s conf/39580 sysinstall sysinstall(8): [request] more secure mount options o bin/38854 sysinstall sysinstall(8): resetting during setup causes the targe s bin/38609 sysinstall sysinstall(8): [request] sysinstall should know the si o bin/38478 sysinstall sysinstall(8): In Choose Distributions screen, it's di o bin/38057 sysinstall sysinstall(8): "install" document doesn't display corr o bin/38056 sysinstall sysinstall(8): User (creation)'s "Member groups" item o bin/38055 sysinstall sysinstall(8): Groups (creation) item should be before o bin/37710 sysinstall sysinstall(8): LAN interface in wrong state after atte a bin/32375 sysinstall sysinstall(8): sysinstall doesn't respect User generat o bin/31363 sysinstall sysinstall(8): "partition editor" silently corrects pa a bin/30737 sysinstall sysinstall(8): sysinstall leaks file descriptors on re o bin/29375 sysinstall sysinstall(8): disk editor gets confused by slices tha a bin/23402 sysinstall sysinstall(8): upgrade ought to check partition sizes o bin/16948 sysinstall sysinstall(8): sysinstall/disklabel: bad partition tab o bin/15038 sysinstall sysinstall(8): easy to not notice that selection lists s bin/7232 sysinstall sysinstall(8): suggestion for FreeBSD installation dia 121 problems total.