From owner-freebsd-questions@freebsd.org Sun Jan 29 01:43:18 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB8C4CC22C9 for ; Sun, 29 Jan 2017 01:43:18 +0000 (UTC) (envelope-from amonk@gnutec.ca) Received: from mail.backwatcher.com (hermes.backwatcher.com [185.182.50.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.backwatcher.ca", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 45DEB1230 for ; Sun, 29 Jan 2017 01:43:17 +0000 (UTC) (envelope-from amonk@gnutec.ca) Received: from claws-mail.sec.backwatcher.com (deb02.backwatcher.com [23.95.33.132]) (authenticated) by mail.backwatcher.com (MYOB) via MTA with ESMTPSA id v0T1h1Dd019378 for ; Sat, 28 Jan 2017 17:43:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gnutec.ca; s=dkim; t=1485654194; bh=Qz/KcZgYVKI96DI4sSy7tMIPo+FSoEkfhTyH6NToEfE=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=Q6Tev86E6DeOBz/RE6vPIoum6ikppKHwWBwhj+eyIqIg20+cpfo2nUydvFV0EunJ7 QqSiCy/2Y6v0Nons9xx5X80lNqpDSMN6WH2y1EUYKkCgemuqvuwFwA4Z7AcD2zrYy+ xwfr0Rs8OtL0+gcfUvim92GWdWHt+bhn/nrHbdSA= X-Hashcash: 1:25:170129:freebsd-questions@freebsd.org::yTC9nKMpTmw/Eb0e:bqZSK Date: Sat, 28 Jan 2017 18:42:53 -0700 From: Kyle Amon To: freebsd-questions@freebsd.org Subject: libressl -> firefox -> rust -> cargo Message-ID: <20170128184023.4f6665ba@claws-mail.sec.backwatcher.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 01:43:18 -0000 While rebuilding all my ports with LibreSSL on 11.0-RELEASE-p7, I hit this error... " This crate is only compatible with OpenSSL 1.0.1, 1.0.2, and 1.1.0, but a different version of OpenSSL was found: 0x20000000L The build is now aborting due to this version mismatch. " It comes from the cmake "crate" of cargo, which is a build dependency of rust, which is a build dependency of firefox. Any ideas on resolving this would be appreciated? Unfortunately, it seems pretty definitive about only supporting OpenSSL, and only specific versions. Has no one else built firefox with libressl? Maybe, but it does seem hard to believe. Thanks, --Kyle -- CA +1-778-819-UNIX | US +1-425-584-UNIX | SIPS amonk@gnutec.ca INUM +883-5100-0990-1657 | ISN UNIX*1917 | C*NET 1-731-UNIX www.gnutec.ca/~amonk | @supradix GPG ed25519/94F9EEBEEBF8B74E [ed25519/EBF8B74E] 726C E8AE 130D 1E51 2D42 7168 94F9 EEBE EBF8 B74E OTR 7E577984 BA97B1DD FD292ABF F7B946B6 AFB1234A : xmpp amonk@gnutec.ca DC446975 0D1CC62D 092E633C 2E3D3D82 B4CE1C47 : irc freenode B4B825A3 086F0716 2CA55061 A0F521EB 54C0AB2F : irc oftc 744D942C D581087C ADDB11D2 E8E9FF59 B46481F3 : irc efnet Tox 1F9642B1853E58C9DC9A3D0DB1FD2388D7972C26C5AD28D1F4A8C5260BF5654370F2823A480F From owner-freebsd-questions@freebsd.org Sun Jan 29 07:34:08 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CEFFCCC6E7E for ; Sun, 29 Jan 2017 07:34:08 +0000 (UTC) (envelope-from amonk@backwatcher.com) Received: from mail.backwatcher.com (hermes.backwatcher.com [185.182.50.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.backwatcher.ca", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 66A6EC75 for ; Sun, 29 Jan 2017 07:34:07 +0000 (UTC) (envelope-from amonk@backwatcher.com) Received: from claws-mail.sec.backwatcher.com (deb02.backwatcher.com [23.95.33.132]) (authenticated) by mail.backwatcher.com (MYOB) via MTA with ESMTPSA id v0T7Xf35017201 for ; Sat, 28 Jan 2017 23:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=backwatcher.com; s=dkim; t=1485675238; bh=bvO5WHiUPpuxcElv0wDMqFtKuUytIjNqqkcL2SfzpVg=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qU0o+5bE7fYyuq6agVA2mrRZoeB9rYKt2v7KXLSV2ilyyzHO3mLSG579MVtjAKsmG qUY7YuYuA08n02HPNQ9xxUU5/gkOkMI4MP4YrKMHk/ubYlk2V4q6870nWEImFCgP/0 7lyo+3QxKnT/x2lN5UuhaGby2X5Un4T/5h8PBRN4= X-Hashcash: 1:25:170129:freebsd-questions@freebsd.org::FfJHLw9v7i99e3yi:bwSX1 Date: Sun, 29 Jan 2017 00:33:32 -0700 From: Kyle Amon To: freebsd-questions@freebsd.org Subject: Re: libressl -> firefox -> rust -> cargo Message-ID: <20170129003332.2cea9b00@claws-mail.sec.backwatcher.com> In-Reply-To: <20170128184023.4f6665ba@claws-mail.sec.backwatcher.com> References: <20170128184023.4f6665ba@claws-mail.sec.backwatcher.com> Organization: BackWatcher, Inc. MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/nPfQoEvTzSTR59.2a+bvd5Q"; protocol="application/pgp-signature" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 07:34:08 -0000 --Sig_/nPfQoEvTzSTR59.2a+bvd5Q Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Well, I found the source of the issue. It's a bug. Big surprise. https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D432293 I'll update ports to get this cargo revision and try again. Adding this for posterity in case others bump into the same issue. --Kyle --=20 CA +1-778-819-UNIX BackWatcher, Inc. US +1-425-584-UNIX Information Security SIPS amonk@backwatcher.com www.backwatcher.ca INUM +883-5100-0990-1657 | ISN UNIX*1917 | C*NET 1-731-UNIX GPG ed25519/29F16B93AB0EA2FC [ed25519/AB0EA2FC] D90D F23C AB7A E0B4 4A04 14EA 29F1 6B93 AB0E A2FC OTR E1A46361 9FD0D801 0132D21A FE2E96BE 39E3F069 : xmpp amonk@backwatcher.c= om 5AB3E0B8 31F6ADB4 9A7D2FC2 A8235281 5776701E : silc silcnet --Sig_/nPfQoEvTzSTR59.2a+bvd5Q Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTZDfI8q3rgtEoEFOop8WuTqw6i/AUCWI2azAAKCRAp8WuTqw6i /L+1AP9nG48IcsVOyKAf6B7Wp4VUdJTpro888BrU2CmyqsB7HQEAn59NIPFEd9SD A7b2A+eUzNrhTLBpdaa53Nalk8fOawA= =vo3D -----END PGP SIGNATURE----- --Sig_/nPfQoEvTzSTR59.2a+bvd5Q-- From owner-freebsd-questions@freebsd.org Sun Jan 29 07:49:09 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 85E26CC6353 for ; Sun, 29 Jan 2017 07:49:09 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 73094117D for ; Sun, 29 Jan 2017 07:49:09 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sat, 28 Jan 2017 23:49:01 -0800 To: freebsd-questions@freebsd.org From: David Christensen Subject: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration Message-ID: Date: Sat, 28 Jan 2017 23:49:00 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 07:49:09 -0000 freebsd-questions: toor@freebsd:/root # freebsd-version; uname -a 11.0-RELEASE-p7 FreeBSD freebsd 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 03:40:55 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 toor@freebsd:/root # pkg info xorg | head -n 1 xorg-7.7_2 toor@freebsd:/root # pkg info xfce | head -n 1 xfce-4.12_1 I installed with root on encrypted ZFS. I've found some useful tricks for system drives on Debian GNU/Linux: 1. I can copy a Debian system image (partition table, boot partition, swap partition, root partition) on a HDD, SDD, or USB flash drive to another HDD, SSD, or USB flash drive using 'dd' (e.g. "clone"), and the Debian system image on the destination drive will "Just Work". 2. I can move a HDD, SSD, or USB flash drive with a Debian system image (partition table, boot partition, swap partition, root partition) from one computer to another computer, and the Debian system image will "Just Work" on the destination computer. I tried the same tricks with a FreeBSD system drive tonight: 1. Moving a FreeBSD system image from one drive (smaller) to another drive (larger) causes Xfce applications to fail to start. For example, selecting Application Menu -> Terminal Emulator issues a pop-up: Failed to execute default Terminal Emulator. Input/output error. Switching to the console (Ctrl+Alt+F1), I see the following error messages: vm_fault: pager read error: pid 1023 (python2.7) vm_fault: pager read error: pid 1040 (xfce4-terminal) 2. Moving a drive with a FreeBSD system image from one computer to another computer produces the same Xfce problems, plus networking failed to come up (I tested with two machines that have different networking hardware. The source has Intel and the destination has Broadcom. On Debian, they are both 'eth0'. On FreeBSD, the source is 'em0' and the destination is 'bfe0'.) What is the proper way to clone a FreeBSD system image from one drive to another? What is the proper way to move a HDD or SSD with a FreeBSD system image from one computer to another computer? TIA, David p.s. STFW I found these, but don't know how relevant they are to FreeBSD 11.0-RELEASE-p7 i386: https://github.com/freebsd/crochet/wiki/How-to-Build-a-Disk-Image https://forums.freebsd.org/threads/11470/ http://georgesfocant.blogspot.com/2009/09/virtualbox-how-to-move-freebsd-to-new.html https://www.tundraware.com/Software/tbku/Imaging-FreeBSD-With-tbku.html http://clonezilla.org/ From owner-freebsd-questions@freebsd.org Sun Jan 29 08:12:36 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0FEDBCC6B15 for ; Sun, 29 Jan 2017 08:12:36 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 919641E2E for ; Sun, 29 Jan 2017 08:12:35 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id t18so1004927wmt.0 for ; Sun, 29 Jan 2017 00:12:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ccVaHGuG6KC+inSlxxwi8XOTGrvk5rW2mHZ5b/b0Ux0=; b=iwD/RwLnm8rszHhoADRWcXXeg5PrDBHQ/1iVG1VJ7Wl3h34mSru/h5KHdxjsi7pA7L QZAziIUU8l3RF/ozUi2AuodEhzMnjdq/iDwQA9V2cPTfm3Ro1Trl5f8+2PUgd14HcuZw u9BpQwbOX2DduTFzT8jolK6rMcV/0Qr6oOeW1C5+SQPn6ZmRj/iZsgbpUoQy5j/WG8Jr q9hC/uxNQ2OzevIif1Tyd8OJWxh2wkAJ816I+KTU1jEfzyNw4aGkNgMYpBR97yj7+XVT J99IuVd3TyAoAOQZ4+89cRBXZKspGMMaz5NP2VP5Mc9t7N+hxjyxA4pdi3S9Ah9R5q5Y ldwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ccVaHGuG6KC+inSlxxwi8XOTGrvk5rW2mHZ5b/b0Ux0=; b=gldbQe73nz73KGU6x5BRQ5zQeASv2KddjK8eOue7HtorLHyOTl5K4/H917sQF6uCN+ nUbmeYcjf8XnBKAKqrJa00eohTgecEVmBYQBYTn9nEZnEVHw2MGHBfwOyJg90eTv0JqM oOHF2Dq0fJNXSkivz2fIC6IS7MGDdPUeC6zoi7d51lIXc/uoZQ+UWcpuGTY9noekGj6M IH7Jj6gqBztZYStJkzH/k8MY/2SCw4dOukrYu27dYrPcOpBMYtgVLL9y2VWD8cp308gf N+AbyHmNcQNMOF8og8J+Rb/RtygvoP+rMs9GKLym7//8cStHNj8MdbfkjYRFzl4a0EC9 fQqg== X-Gm-Message-State: AIkVDXINp4Ylwhft32mIr1TMKR8LlS0xpcUyKNp/iGswvydezF8t9LMC3JlMV9gXjAPwq/RxukSt0lc+sdzWuA== X-Received: by 10.223.134.173 with SMTP id 42mr16941932wrx.95.1485677553142; Sun, 29 Jan 2017 00:12:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.194.143.83 with HTTP; Sun, 29 Jan 2017 00:12:32 -0800 (PST) In-Reply-To: <20170129003332.2cea9b00@claws-mail.sec.backwatcher.com> References: <20170128184023.4f6665ba@claws-mail.sec.backwatcher.com> <20170129003332.2cea9b00@claws-mail.sec.backwatcher.com> From: Ben Woods Date: Sun, 29 Jan 2017 16:12:32 +0800 Message-ID: Subject: Re: libressl -> firefox -> rust -> cargo To: Kyle Amon Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 08:12:36 -0000 On 29 January 2017 at 15:33, Kyle Amon wrote: > Well, I found the source of the issue. It's a bug. Big surprise. > > https://svnweb.freebsd.org/ports?view=revision&revision=432293 > > I'll update ports to get this cargo revision and try again. > Adding this for posterity in case others bump into the same issue. > > --Kyle > > Hi Kyle, It's actually this bug, which has not yet been fixed in ports, but will soon be. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216431 Regards, Ben -- From: Benjamin Woods woodsb02@gmail.com From owner-freebsd-questions@freebsd.org Sun Jan 29 09:14:46 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C591BCC6AED for ; Sun, 29 Jan 2017 09:14:46 +0000 (UTC) (envelope-from amonk@backwatcher.com) Received: from mail.backwatcher.com (hermes.backwatcher.com [185.182.50.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.backwatcher.ca", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4152B1AEA for ; Sun, 29 Jan 2017 09:14:45 +0000 (UTC) (envelope-from amonk@backwatcher.com) Received: from claws-mail.sec.backwatcher.com (deb02.backwatcher.com [23.95.33.132]) (authenticated) by mail.backwatcher.com (MYOB) via MTA with ESMTPSA id v0T9EUeY010007; Sun, 29 Jan 2017 01:14:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=backwatcher.com; s=dkim; t=1485681282; bh=97d1vrEI0auKAeKmtinXLzmfWRYDXqF6NB18Kymi8X8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OZBleWEo4ZXnujXEH3gvT+XX6fH1wQkmH9gHf0JkNCu40EAXZiJBXs49z7t9aVnlk rZhgzfL8XgyRcqv1VLL/1/WLYrkT/fnrFiH/CycGTcFAUZ8tkBu+ZVRdPLd5VEbZu4 L5BgBnjl+TRhe4f/iU/wlv43oBVdPZiEEqyO9t2o= X-Hashcash: 1:24:170129:woodsb02@gmail.com::Ej+Xc7svAOIRa2SA:fbd8 X-Hashcash: 1:24:170129:freebsd-questions@freebsd.org::2+xoLhmRiZ=8nbJ9:az9DR Date: Sun, 29 Jan 2017 02:14:20 -0700 From: Kyle Amon To: Ben Woods Cc: "freebsd-questions@freebsd.org" Subject: Re: libressl -> firefox -> rust -> cargo Message-ID: <20170129021420.18b8a63a@claws-mail.sec.backwatcher.com> In-Reply-To: References: <20170128184023.4f6665ba@claws-mail.sec.backwatcher.com> <20170129003332.2cea9b00@claws-mail.sec.backwatcher.com> Organization: BackWatcher, Inc. MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/iw/JbFdLco8zGt.jg./tfAy"; protocol="application/pgp-signature" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 09:14:46 -0000 --Sig_/iw/JbFdLco8zGt.jg./tfAy Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 29 Jan 2017 16:12:32 +0800 Thus spake Ben Woods : > It's actually this bug, which has not yet been fixed in ports, but will > soon be. >=20 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216431 Thanks, Ben. I hadn't tried the rebuild after updating ports again yet anyway (waiting on a bunch of other builds to finish first). I just applied the patch referenced in PR 216431 manually though (since I don't want to wait for it to show up in ports real badly), and will try rebuilding with it as soon as my CPU frees up. --Kyle --=20 CA +1-778-819-UNIX BackWatcher, Inc. US +1-425-584-UNIX Information Security SIPS amonk@backwatcher.com www.backwatcher.ca INUM +883-5100-0990-1657 | ISN UNIX*1917 | C*NET 1-731-UNIX GPG ed25519/29F16B93AB0EA2FC [ed25519/AB0EA2FC] D90D F23C AB7A E0B4 4A04 14EA 29F1 6B93 AB0E A2FC OTR E1A46361 9FD0D801 0132D21A FE2E96BE 39E3F069 : xmpp amonk@backwatcher.c= om 5AB3E0B8 31F6ADB4 9A7D2FC2 A8235281 5776701E : silc silcnet --Sig_/iw/JbFdLco8zGt.jg./tfAy Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTZDfI8q3rgtEoEFOop8WuTqw6i/AUCWI2ybAAKCRAp8WuTqw6i /HfyAQCX7QfW64ut2bOfoldy23BHAPQfNLy9n5rSBwUDQttkYwEApKBMLoqKfxS7 vu1vu90YEBWwOAoU85s+1zDMJ6z82wY= =UbLj -----END PGP SIGNATURE----- --Sig_/iw/JbFdLco8zGt.jg./tfAy-- From owner-freebsd-questions@freebsd.org Sun Jan 29 09:31:35 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5B59CC6EE2 for ; Sun, 29 Jan 2017 09:31:35 +0000 (UTC) (envelope-from cfemenias@behindthepixel.com) Received: from ns382251.ovh.net (unknown [IPv6:2001:41d0:2:d20b::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Parallels Panel", Issuer "Parallels Panel" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 274852E4 for ; Sun, 29 Jan 2017 09:31:35 +0000 (UTC) (envelope-from cfemenias@behindthepixel.com) Received: (qmail 30465 invoked from network); 29 Jan 2017 03:59:32 +0100 Received: from unknown (HELO mail.behindthepixel.com) (185.81.157.23) by serviaventur.com with ESMTPSA (DHE-RSA-AES256-SHA encrypted, authenticated); 29 Jan 2017 03:59:32 +0100 From: To: freebsd-questions@FreeBSD.org Subject: Confirm your account information Date: 29 Jan 2017 03:59:33 +0100 Message-ID: <20170129035933.7C2948FE9B6C7F0F@id.itunes.net> MIME-Version: 1.0 Content-Type: text/plain; name="AccountInformation.html" Content-Disposition: attachment; filename="AccountInformation.html" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 09:31:35 -0000 From owner-freebsd-questions@freebsd.org Sun Jan 29 13:27:30 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8EF35CC71C9 for ; Sun, 29 Jan 2017 13:27:30 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 587421146 for ; Sun, 29 Jan 2017 13:27:30 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0TDRMBF019306 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 29 Jan 2017 06:27:22 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0TDRMgt019303; Sun, 29 Jan 2017 06:27:22 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 29 Jan 2017 06:27:22 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Sun, 29 Jan 2017 06:27:22 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 13:27:30 -0000 On Sat, 28 Jan 2017, David Christensen wrote: > What is the proper way to clone a FreeBSD system image from one drive to > another? On encrypted ZFS? I'm not sure there is a brute-force way that is trustworthy. Using higher-level commands to recreate the partitions, GELI encryption, and then zfs send | recv are certain safer and won't duplicate supposedly unique IDs. > What is the proper way to move a HDD or SSD with a FreeBSD system image from > one computer to another computer? Provided the binaries have not been optimized for one CPU, just move the drive. Disk drive names can change, which is not a problem when labels are used. Ethernet interface names can change. If there is only one interface, use ifconfig_DEFAULT in /etc/rc.conf. From owner-freebsd-questions@freebsd.org Sun Jan 29 13:57:45 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 806D0CC7B3C for ; Sun, 29 Jan 2017 13:57:45 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1611727A for ; Sun, 29 Jan 2017 13:57:44 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id v0TDvbm8094066 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 29 Jan 2017 13:57:37 GMT (envelope-from list1@gjunka.com) To: freebsd-questions@freebsd.org From: Grzegorz Junka Subject: Installing zfsboot on FreeBSD 11.0 Message-ID: <28892c88-a58b-4090-84ad-8e6f240bba3f@gjunka.com> Date: Sun, 29 Jan 2017 13:57:37 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 13:57:45 -0000 In the description of the loader https://www.freebsd.org/cgi/man.cgi?query=zfsboot&sektion=8 we can read that if the drive is currently in use, the GEOM safety will prevent writes and must be disabled before running the above commands: sysctl kern.geom.debugflags=0x10 This worked fine on 10.3, but doesn't seem to work on FreeBSD 11.0: root@crayon2:~ # sysctl kern.geom.debugflags=0x10 kern.geom.debugflags: 16 -> 16 root@crayon2:~ # dd if=/boot/zfsboot of=/dev/ada0s1a skip=1 seek=1024 dd: /dev/ada0s1a: Operation not permitted Any suggestions? From owner-freebsd-questions@freebsd.org Sun Jan 29 14:40:44 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 80A83CC6919 for ; Sun, 29 Jan 2017 14:40:44 +0000 (UTC) (envelope-from amonk@backwatcher.com) Received: from mail.backwatcher.com (hermes.backwatcher.com [185.182.50.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.backwatcher.ca", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 146241E34 for ; Sun, 29 Jan 2017 14:40:43 +0000 (UTC) (envelope-from amonk@backwatcher.com) Received: from claws-mail.sec.backwatcher.com (deb02.backwatcher.com [23.95.33.132]) (authenticated) by mail.backwatcher.com (MYOB) via MTA with ESMTPSA id v0TEeVAf065923; Sun, 29 Jan 2017 06:40:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=backwatcher.com; s=dkim; t=1485700840; bh=C9aLMLgHPOmEUsQgOvoFoz/ATe25gRQyAfGY2cmAlF4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=E0AB2hfKP3JnC83b2NxZ+/3d1TwIQ66INZ2ELVX9SNAndO/+w8qrycFOIcGOJS8GB T1hKRok23rnXgsbZ9rhJxL25eSlvCUq6Klrjd07JsYg79YNTf5bhwilUwy4qWPmN1Y e+/uLaYm+0LIhujeOMfQoG2++pUJI/Sv0aFNwxko= X-Hashcash: 1:24:170129:woodsb02@gmail.com::xYloJEXWxm6iof0u:uHj7 X-Hashcash: 1:24:170129:freebsd-questions@freebsd.org::LZXrU2jQNTAPaLCk:t3XA Date: Sun, 29 Jan 2017 07:40:23 -0700 From: Kyle Amon To: Ben Woods Cc: "freebsd-questions@freebsd.org" Subject: Re: libressl -> firefox -> rust -> cargo Message-ID: <20170129074023.170f4965@claws-mail.sec.backwatcher.com> In-Reply-To: <20170129021420.18b8a63a@claws-mail.sec.backwatcher.com> References: <20170128184023.4f6665ba@claws-mail.sec.backwatcher.com> <20170129003332.2cea9b00@claws-mail.sec.backwatcher.com> <20170129021420.18b8a63a@claws-mail.sec.backwatcher.com> Organization: BackWatcher, Inc. MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/oobT9U20rvg2OfpKdQI3qfm"; protocol="application/pgp-signature" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 14:40:44 -0000 --Sig_/oobT9U20rvg2OfpKdQI3qfm Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 29 Jan 2017 02:14:20 -0700 Thus spake Kyle Amon : > On Sun, 29 Jan 2017 16:12:32 +0800 > Thus spake Ben Woods : >=20 > > It's actually this bug, which has not yet been fixed in ports, but will > > soon be. > >=20 > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216431 =20 >=20 > Thanks, Ben. I hadn't tried the rebuild after updating ports again yet > anyway (waiting on a bunch of other builds to finish first). I just appl= ied > the patch referenced in PR 216431 manually though (since I don't want to > wait for it to show up in ports real badly), and will try rebuilding with > it as soon as my CPU frees up. >=20 > --Kyle >=20 Yeah, that did it. :) --Kyle --=20 CA +1-778-819-UNIX BackWatcher, Inc. US +1-425-584-UNIX Information Security SIPS amonk@backwatcher.com www.backwatcher.ca INUM +883-5100-0990-1657 | ISN UNIX*1917 | C*NET 1-731-UNIX GPG ed25519/29F16B93AB0EA2FC [ed25519/AB0EA2FC] D90D F23C AB7A E0B4 4A04 14EA 29F1 6B93 AB0E A2FC OTR E1A46361 9FD0D801 0132D21A FE2E96BE 39E3F069 : xmpp amonk@backwatcher.c= om 5AB3E0B8 31F6ADB4 9A7D2FC2 A8235281 5776701E : silc silcnet --Sig_/oobT9U20rvg2OfpKdQI3qfm Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTZDfI8q3rgtEoEFOop8WuTqw6i/AUCWI3+1wAKCRAp8WuTqw6i /BSoAQDcVA0/dsz7ud/NPlYbLMNTsVJv0cS8kn0KdEKQy3NeMwEAjWoGEsIiLMu0 t9qyDa0ucu759rF6iBWsX4wsvjeCEw0= =dmpm -----END PGP SIGNATURE----- --Sig_/oobT9U20rvg2OfpKdQI3qfm-- From owner-freebsd-questions@freebsd.org Sun Jan 29 18:36:49 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5490CC7C8B for ; Sun, 29 Jan 2017 18:36:49 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C6022FB2 for ; Sun, 29 Jan 2017 18:36:49 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sun, 29 Jan 2017 10:36:48 -0800 Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration To: freebsd-questions@freebsd.org References: From: David Christensen Message-ID: <516b147d-6faa-b9c0-1d8f-2313a0755211@holgerdanske.com> Date: Sun, 29 Jan 2017 10:36:48 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 18:36:49 -0000 On 01/29/17 05:27, Warren Block wrote: > On Sat, 28 Jan 2017, David Christensen wrote: > >> What is the proper way to clone a FreeBSD system image from one drive >> to another? > > On encrypted ZFS? I'm not sure there is a brute-force way that is > trustworthy. Using higher-level commands to recreate the partitions, > GELI encryption, and then zfs send | recv are certain safer and won't > duplicate supposedly unique IDs. STFW https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html toor@freebsd:/root # gpart show => 63 31277169 ada0 MBR (15G) 63 1 - free - (512B) 64 31277160 1 freebsd [active] (15G) 31277224 8 - free - (4.0K) => 0 31277160 ada0s1 BSD (15G) 0 4194304 1 freebsd-zfs (2.0G) 4194304 4194304 2 freebsd-swap (2.0G) 8388608 22888544 4 freebsd-zfs (11G) 31277152 8 - free - (4.0K) It appears that my FreeBSD image lives within what Microsoft and Linux would call a single MBR primary partition (FreeBSD "slice"?), and that FreeBSD further subdivides that into boot, swap, and root sections (FreeBSD "partitions"?). STFW RTFM there is information scattered in many places. Is there a concise document that explains what is relevant for creating, cloning, migrating, etc., FreeBSD 11 r7 system drives -- what the on-disk data structures are, how to back up them and their contents, how to recreate the structures on a blank drive, how to restore contents, how to deal with size, identifier, serial number, crypto key, etc., changes, etc.? >> What is the proper way to move a HDD or SSD with a FreeBSD system >> image from one computer to another computer? > > Provided the binaries have not been optimized for one CPU, just move the > drive. Disk drive names can change, which is not a problem when labels > are used. It looks like I got lucky on device names. Where are slice/ partition/ filesystem labels documented, notably the strategies and procedures for using them? > Ethernet interface names can change. If there is only one > interface, use ifconfig_DEFAULT in /etc/rc.conf. Regarding the network interface, my /etc/rc.conf contains shell variable assignments. What am I to assign to 'ifconfig_DEFAULT'? RTFM 'ifconfig_DEFAULT' I draw blank: toor@freebsd:/root # grep ifconfig_DEFAULT /etc/rc.conf /etc/defaults/rc.conf toor@freebsd:/root # man rc.conf | grep ifconfig_DEFAULT STFW https://www.freebsd.org/doc/handbook/config-network-setup.html Please advise on 'ifconfig_DEFAULT'. The Xfce application issues appeared both when: 1. The FreeBSD system drive image was copied to another drive and then booted in the source machine. 2. The FreeBSD system drive was booted in another machine. What is causing the Xfce issues? David From owner-freebsd-questions@freebsd.org Sun Jan 29 19:03:23 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C0DACC72E7 for ; Sun, 29 Jan 2017 19:03:23 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: from mail-io0-f196.google.com (mail-io0-f196.google.com [209.85.223.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6294B1D6B for ; Sun, 29 Jan 2017 19:03:22 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: by mail-io0-f196.google.com with SMTP id 101so12648749iom.0 for ; Sun, 29 Jan 2017 11:03:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=PPzutXOiDMpSokSXUUqernsG3E93pMATic5MegYIPrY=; b=aaMGXmts1ueEO6ZQiPVViLrSbm3gILqCWt0jULucZ8lKR1Iqcf79Tp9ZQATDdimVYT 5R373xb5UsneJj4iZy4hi17WueRYxrASkCLOFxL2s4eqV9nKVbhy1xztqsVKrCOMzFMS fsJD03JyVmPgngQvdTzM0PQoBTZs23fqdSY8tgdF0e/HAVFfkBMlQufqFZjHwZ6QaWEK TA9PZ06YG4VIf+pKdvVvramNs1I3oq/eodEQ0FB9Ei1YXX6HGmtNzuChz07qmgH9L8Xh TCF1FIxbX3kAnW46i6G1RR9StSg7anZv3pIxagt49TjbyluSvcProSgHfQ9/cS6iNAH5 lOwA== X-Gm-Message-State: AIkVDXKmnRKt7UbT4lGsaCs9H5cDydsl6HaGIzN/EFbaP3fucX4vmBQkVVwnT/XW3syj8Q== X-Received: by 10.107.137.33 with SMTP id l33mr15350399iod.215.1485716143385; Sun, 29 Jan 2017 10:55:43 -0800 (PST) Received: from WorkBox.homestead.org ([184.97.226.147]) by smtp.gmail.com with ESMTPSA id q185sm5132996itc.22.2017.01.29.10.55.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Jan 2017 10:55:42 -0800 (PST) Received: from localhost (WorkBox.homestead.org [local]) by WorkBox.homestead.org (OpenSMTPD) with ESMTPA id f97e621e; Sun, 29 Jan 2017 12:55:41 -0600 (CST) References: User-agent: mu4e 0.9.16; emacs 25.1.1 From: Brandon J. Wandersee To: David Christensen Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration In-reply-to: Date: Sun, 29 Jan 2017 12:55:41 -0600 Message-ID: <86bmupg0gi.fsf@WorkBox.homestead.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 19:03:23 -0000 David Christensen writes: > What is the proper way to clone a FreeBSD system image from one drive to > another? In my personal opinion, the "proper" way is to back up your data, create a fresh partition table and filesystems on the new disk, and restore the backup. Using `dd` to clone an entire disk byte-for-byte works, but it's the painfully slow, tedious, and potentially dangerous way of doing this. The native backup utilities---dump(8) and restore(8) for UFS, `zfs send` and `zfs receive` for ZFS---will copy the data from an existing filesystem and write to a new filesystem at speeds exponentially greater than anything you'll get from `dd`. However, I'm not sure that addresses the actual problem in this particular case. I can't say exactly what the error message you're getting means, but while it might stem from how you copied the system it might also imply a problem with the disk itself. Unrecoverable read errors, maybe. -- :: Brandon J. Wandersee :: brandon.wandersee@gmail.com :: -------------------------------------------------- :: 'The best design is as little design as possible.' :: --- Dieter Rams ---------------------------------- From owner-freebsd-questions@freebsd.org Sun Jan 29 19:21:14 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73DF6CC7A46 for ; Sun, 29 Jan 2017 19:21:14 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D7A7BBAA; Sun, 29 Jan 2017 19:21:12 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from [10.0.0.3] (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id v0TJJktk015901; Sun, 29 Jan 2017 20:19:46 +0100 (CET) (envelope-from bah@bananmonarki.se) Subject: Re: Need help with python To: Joseph Olatt References: <20170128162858.GA5721@centos6.eskimo.com> Cc: "freebsd-questions@freebsd.org" , trasz@FreeBSD.org From: Bernt Hansson Message-ID: <991690dd-c189-1684-d835-855192b9b51d@bananmonarki.se> Date: Sun, 29 Jan 2017 20:19:46 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170128162858.GA5721@centos6.eskimo.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2017 19:21:14 -0000 On 2017-01-28 17:28, Joseph Olatt wrote: > On Thu, Jan 26, 2017 at 07:57:20PM +0100, Bernt Hansson wrote: >> Hello list! >> >> I'm trying to run this program http://flatcam.org/ it's made in python. >> >> Got this same error whith py-pycam before it became a port. >> So what did the maintainer do with pycam. >> >> Pycam maintainer cc. >> >> This error is from flatcam, last line was the same with pycam. >> >> >> python2 FlatCAM.py >> Traceback (most recent call last): >> File "FlatCAM.py", line 3, in >> from FlatCAMApp import App >> File >> "/usr/home/bernt/nerladdningar/vebb/FlatCAM-8.5/FlatCAMApp.py", line >> 22, in >> from ObjectCollection import * >> File >> "/usr/home/bernt/nerladdningar/vebb/FlatCAM-8.5/ObjectCollection.py", >> line 2, in >> from FlatCAMObj import * >> File >> "/usr/home/bernt/nerladdningar/vebb/FlatCAM-8.5/FlatCAMObj.py", line >> 7, in >> from camlib import * >> File "/usr/home/bernt/nerladdningar/vebb/FlatCAM-8.5/camlib.py", >> line 13, in >> from numpy import arctan2, Inf, array, sqrt, pi, ceil, sin, cos, >> dot, float32, \ >> File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", >> line 142, in >> from . import add_newdocs >> File >> "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line >> 13, in >> from numpy.lib import add_newdoc >> File >> "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line >> 8, in >> from .type_check import * >> File >> "/usr/local/lib/python2.7/site-packages/numpy/lib/type_check.py", >> line 11, in >> import numpy.core.numeric as _nx >> File >> "/usr/local/lib/python2.7/site-packages/numpy/core/__init__.py", >> line 14, in >> from . import multiarray >> ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by >> /usr/local/lib/gcc49/libgfortran.so.3 not found > It looks like this port/pkg is looking for GCC_4.9.0. You seem to have > GCC 4.6.0 installed on your system. It is not a port or package, yet. Had the same problem with pycam before it became a port. If i make a link to libgcc_s.so.1 in /usr/local/lib/gcc49 the program works, and so did pycam. So why is it not working with the /lib/libgcc_s.so.1 from the original install. > > My guess is that /usr/local/lib/gcc49/libgfortran.so.3 would be found > if that is installed. > > > From owner-freebsd-questions@freebsd.org Mon Jan 30 00:34:45 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72F9DCC6190 for ; Mon, 30 Jan 2017 00:34:45 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 617871B52 for ; Mon, 30 Jan 2017 00:34:45 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sun, 29 Jan 2017 16:34:41 -0800 Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration To: freebsd-questions@freebsd.org References: <86bmupg0gi.fsf@WorkBox.homestead.org> From: David Christensen Message-ID: <2973d1ea-202f-60fa-2930-eec05b626cfb@holgerdanske.com> Date: Sun, 29 Jan 2017 16:34:41 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <86bmupg0gi.fsf@WorkBox.homestead.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 00:34:45 -0000 On 01/29/17 10:55, Brandon J. Wandersee wrote: > > David Christensen writes: > >> What is the proper way to clone a FreeBSD system image from one drive to >> another? > > In my personal opinion, the "proper" way is to back up your data, create > a fresh partition table and filesystems on the new disk, and restore the > backup. Using `dd` to clone an entire disk byte-for-byte works, but it's > the painfully slow, tedious, and potentially dangerous way of doing > this. The native backup utilities---dump(8) and restore(8) for UFS, `zfs > send` and `zfs receive` for ZFS---will copy the data from an existing > filesystem and write to a new filesystem at speeds exponentially greater > than anything you'll get from `dd`. Thanks for the reply. Here's my FreeBSD system drive: toor@freebsd:/root # gpart show => 63 31277169 ada0 MBR (15G) 63 1 - free - (512B) 64 31277160 1 freebsd [active] (15G) 31277224 8 - free - (4.0K) => 0 31277160 ada0s1 BSD (15G) 0 4194304 1 freebsd-zfs (2.0G) 4194304 4194304 2 freebsd-swap (2.0G) 8388608 22888544 4 freebsd-zfs (11G) 31277152 8 - free - (4.0K) toor@freebsd:/root # zpool list NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT bootpool 1.98G 101M 1.89G - 6% 4% 1.00x ONLINE - zroot 10.9G 4.30G 6.58G - 33% 39% 1.00x ONLINE - toor@freebsd:/root # zfs list NAME USED AVAIL REFER MOUNTPOINT bootpool 101M 1.82G 99.4M /bootpool zroot 4.30G 6.24G 96K /zroot zroot/ROOT 2.68G 6.24G 96K none zroot/ROOT/default 2.68G 6.24G 2.68G / zroot/tmp 164K 6.24G 164K /tmp zroot/usr 1.61G 6.24G 96K /usr zroot/usr/home 399M 6.24G 399M /usr/home zroot/usr/ports 641M 6.24G 641M /usr/ports zroot/usr/src 609M 6.24G 609M /usr/src zroot/var 812K 6.24G 96K /var zroot/var/audit 96K 6.24G 96K /var/audit zroot/var/crash 96K 6.24G 96K /var/crash zroot/var/log 308K 6.24G 308K /var/log zroot/var/mail 120K 6.24G 120K /var/mail zroot/var/tmp 96K 6.24G 96K /var/tmp As I understand it, taking an image involves: 1. Back up the MBR (dd?). 2. Back up the slice 1 partition table (?). 3. Back up bootpool file system ('zfs send'). 4. Back up the swap partition encryption container header (?). 5. Back up the zroot partition encryption container header (?). 6. Back up zroot file system ('zfs send'). Restoring an image involves: 1. Restore MBR ('dd'). 2. Restore slice 1 partition table (?). 3. Create bootpool ZFS pool and file system (?). 4. Restore bootpool file system ('zfs receive'). 5. Create a encryption container in the second partition. 6. Restore headers. 7. Initialize swap. 8. Create an encryption container in the third partition. 9. Restore headers. 10. Create zroot ZFS pool and file system (?). 12. Restore zroot file system ('zfs receive'). (I'm a FreeBSD noob, so I'm sure there are errors in the above.) These processes are complex enough to warrant automation. Can Clonezilla handle FreeBSD 11.0 with MBR and encrypted ZFS root? > However, I'm not sure that addresses the actual problem in this > particular case. I can't say exactly what the error message you're > getting means, but while it might stem from how you copied the system I have a Debian 7 computer with a Pentium D 945 processor, 4 GB RAM, 16 GB USB flash system drive, a Seagate ST3000DM01 3 TB backup HDD, and an assortment of drive docking bays. How Debian sees the original FreeBSD system drive: 2017-01-28 13:44:37 root@p43200 ~ # parted /dev/sdb u s p free Model: ATA SAMSUNG SSD UM41 (scsi) Disk /dev/sdb: 31277232s Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 63s 63s 1s Free Space 1 64s 31277223s 31277160s primary zfs boot 31277224s 31277231s 8s Free Space Take an image of the original FreeBSD system drive: 2017-01-28 13:44:55 root@p43200 ~ # cd /mnt/q/image/holgerdanske.com/freebsd/ 2017-01-28 13:48:05 root@p43200 /mnt/q/image/holgerdanske.com/freebsd # time dd if=/dev/sdb count=31277224 | gzip | tee i72600s-20170128-1346- freebsd-11.0-release-i386-op.img.gz | sha256sum -b > i72600s-20170128-1346-freeb sd-11.0-release-i386-op.img.gz.sha256 31277224+0 records in 31277224+0 records out 16013938688 bytes (16 GB) copied, 1032.32 s, 15.5 MB/s real 17m12.330s user 12m7.961s sys 1m42.726s Restore image onto a cloned system drive (Intel 520 Series 60 GB SSD): 2017-01-28 20:56:58 root@p43200 /mnt/q/image/holgerdanske.com/freebsd # time zcat i72600s-20170128-1346-freebsd-11.0-release-i386-op.img.gz > /dev/sdb real 3m42.036s user 1m35.854s sys 0m27.406s > it might also imply a problem with the disk itself. Unrecoverable read > errors, maybe. 1. Putting the original system drive into another computer broke Xfce applications. 2. Everything works as before when the original system drive is put back into original computer (I am typing this message on that system). 3. The cloned drive works and has passed Intel SSD Toolbox checks. 4. Putting the cloned drive into the original computer broke Xfce applications in exactly the same way. I doubt it's an SSD hardware problem. Again, here are the error messages seen on the console when I attempt to launch Terminal Emulator in Xfce when the original system drive is place into another computer and when the cloned drive is placed into the original computer: vm_fault: pager read error: pid 1023 (python2.7) vm_fault: pager read error: pid 1040 (xfce4-terminal) Does anyone have any ideas why Xfce applications would generate such errors? David From owner-freebsd-questions@freebsd.org Mon Jan 30 05:18:37 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D0D4CC7ACC for ; Mon, 30 Jan 2017 05:18:37 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CC955E5 for ; Mon, 30 Jan 2017 05:18:36 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0U5IYnb028946 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 29 Jan 2017 22:18:34 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0U5IYYC028943; Sun, 29 Jan 2017 22:18:34 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 29 Jan 2017 22:18:34 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration In-Reply-To: <516b147d-6faa-b9c0-1d8f-2313a0755211@holgerdanske.com> Message-ID: References: <516b147d-6faa-b9c0-1d8f-2313a0755211@holgerdanske.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Sun, 29 Jan 2017 22:18:35 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 05:18:37 -0000 On Sun, 29 Jan 2017, David Christensen wrote: > On 01/29/17 05:27, Warren Block wrote: >> On Sat, 28 Jan 2017, David Christensen wrote: >> >>> What is the proper way to clone a FreeBSD system image from one drive >>> to another? >> >> On encrypted ZFS? I'm not sure there is a brute-force way that is >> trustworthy. Using higher-level commands to recreate the partitions, >> GELI encryption, and then zfs send | recv are certain safer and won't >> duplicate supposedly unique IDs. > > STFW > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html > > toor@freebsd:/root # gpart show > => 63 31277169 ada0 MBR (15G) > 63 1 - free - (512B) > 64 31277160 1 freebsd [active] (15G) > 31277224 8 - free - (4.0K) > > => 0 31277160 ada0s1 BSD (15G) > 0 4194304 1 freebsd-zfs (2.0G) > 4194304 4194304 2 freebsd-swap (2.0G) > 8388608 22888544 4 freebsd-zfs (11G) > 31277152 8 - free - (4.0K) > > > It appears that my FreeBSD image lives within what Microsoft and Linux would > call a single MBR primary partition (FreeBSD "slice"?), and that FreeBSD > further subdivides that into boot, swap, and root sections (FreeBSD > "partitions"?). Yes. I think the 11.0 installer made the mistaken assumption that machines that boot from BIOS must (or should) use MBR/disklabel. > STFW RTFM there is information scattered in many places. Is there a concise > document that explains what is relevant for creating, cloning, migrating, > etc., FreeBSD 11 r7 system drives -- what the on-disk data structures are, > how to back up them and their contents, how to recreate the structures on a > blank drive, how to restore contents, how to deal with size, identifier, > serial number, crypto key, etc., changes, etc.? Not that I know of. What you are talking about is a combination of numerous different systems. I talk about partitioning here: http://www.wonkity.com/~wblock/docs/html/disksetup.html But if you are using encryption, that means GELI (geli(8)). >>> What is the proper way to move a HDD or SSD with a FreeBSD system >>> image from one computer to another computer? >> >> Provided the binaries have not been optimized for one CPU, just move the >> drive. Disk drive names can change, which is not a problem when labels >> are used. > > It looks like I got lucky on device names. Where are slice/ partition/ > filesystem labels documented, notably the strategies and procedures for using > them? See glabel(8). >> Ethernet interface names can change. If there is only one >> interface, use ifconfig_DEFAULT in /etc/rc.conf. > > Regarding the network interface, my /etc/rc.conf contains shell variable > assignments. What am I to assign to 'ifconfig_DEFAULT'? Usually, SYNCDHCP: ifconfig_DEFAULT="SYNCDHP" It functions the same as ifconfig_em0 or _re0 or whatever, but for all interfaces with no other settings. > RTFM 'ifconfig_DEFAULT' I draw blank: > > toor@freebsd:/root # grep ifconfig_DEFAULT /etc/rc.conf /etc/defaults/rc.conf > toor@freebsd:/root # man rc.conf | grep ifconfig_DEFAULT setenv PAGER less man rc.conf Type /ifconfig_DEFAULT and press Enter. > The Xfce application issues appeared both when: > > 1. The FreeBSD system drive image was copied to another drive and then > booted in the source machine. > > 2. The FreeBSD system drive was booted in another machine. > > > What is causing the Xfce issues? No idea. I have moved hard drives from one machine to another, and in fact wrote an installer that sets up FreeBSD to be used on a generic machine with Xfce. From owner-freebsd-questions@freebsd.org Mon Jan 30 05:34:22 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1BBEBCC7FFF for ; Mon, 30 Jan 2017 05:34:22 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D24AFE30 for ; Mon, 30 Jan 2017 05:34:21 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0U5YKjM032703 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 29 Jan 2017 22:34:20 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0U5YKJ7032700; Sun, 29 Jan 2017 22:34:20 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 29 Jan 2017 22:34:20 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration In-Reply-To: <2973d1ea-202f-60fa-2930-eec05b626cfb@holgerdanske.com> Message-ID: References: <86bmupg0gi.fsf@WorkBox.homestead.org> <2973d1ea-202f-60fa-2930-eec05b626cfb@holgerdanske.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Sun, 29 Jan 2017 22:34:20 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 05:34:22 -0000 On Sun, 29 Jan 2017, David Christensen wrote: > As I understand it, taking an image involves: > > 1. Back up the MBR (dd?). gpart backup ada0 > 2. Back up the slice 1 partition table (?). gpart backup ada0s1 > 3. Back up bootpool file system ('zfs send'). > > 4. Back up the swap partition encryption container header (?). geli. Easier to just initialize the receiving disk with geli and enter the same key. > 5. Back up the zroot partition encryption container header (?). As above. > 6. Back up zroot file system ('zfs send'). > > > Restoring an image involves: > > 1. Restore MBR ('dd'). gpart restore ada0 > 2. Restore slice 1 partition table (?). gpart restore ada0s1 Create encryption, if truly desired, with geli(8). > 3. Create bootpool ZFS pool and file system (?). zpool create > 4. Restore bootpool file system ('zfs receive'). > 10. Create zroot ZFS pool and file system (?). zpool create > 12. Restore zroot file system ('zfs receive'). > > These processes are complex enough to warrant automation. Can Clonezilla > handle FreeBSD 11.0 with MBR and encrypted ZFS root? Clonezilla can handle UFS, last I checked. ZFS, no, and encryption just appears as binary data to anything that lacks geli(8). > 1. Putting the original system drive into another computer broke Xfce > applications. Something to do with missing semi-important filesystems, maybe. Or the age of a Pentium D, although that still ought to be supported. Maybe options were selected to optimize for that CPU that are not good in a newer one. > 2. Everything works as before when the original system drive is put back > into original computer (I am typing this message on that system). > > 3. The cloned drive works and has passed Intel SSD Toolbox checks. > > 4. Putting the cloned drive into the original computer broke Xfce > applications in exactly the same way. > > > I doubt it's an SSD hardware problem. Writing SSDs with dd is not good, limiting their wear leveling. From owner-freebsd-questions@freebsd.org Mon Jan 30 06:08:00 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 506F5CC771B for ; Mon, 30 Jan 2017 06:08:00 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 312381B26 for ; Mon, 30 Jan 2017 06:08:00 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sun, 29 Jan 2017 22:07:57 -0800 Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration To: freebsd-questions@freebsd.org References: <516b147d-6faa-b9c0-1d8f-2313a0755211@holgerdanske.com> From: David Christensen Message-ID: <3f6c8bfb-70a4-74c2-3879-b328ecd3bb38@holgerdanske.com> Date: Sun, 29 Jan 2017 22:07:57 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 06:08:00 -0000 On 01/29/17 21:18, Warren Block wrote: > On Sun, 29 Jan 2017, David Christensen wrote: > >> On 01/29/17 05:27, Warren Block wrote: >>> On Sat, 28 Jan 2017, David Christensen wrote: >>> >>>> What is the proper way to clone a FreeBSD system image from one drive >>>> to another? >>> >>> On encrypted ZFS? I'm not sure there is a brute-force way that is >>> trustworthy. Using higher-level commands to recreate the partitions, >>> GELI encryption, and then zfs send | recv are certain safer and won't >>> duplicate supposedly unique IDs. >> >> STFW >> >> https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html >> >> >> toor@freebsd:/root # gpart show >> => 63 31277169 ada0 MBR (15G) >> 63 1 - free - (512B) >> 64 31277160 1 freebsd [active] (15G) >> 31277224 8 - free - (4.0K) >> >> => 0 31277160 ada0s1 BSD (15G) >> 0 4194304 1 freebsd-zfs (2.0G) >> 4194304 4194304 2 freebsd-swap (2.0G) >> 8388608 22888544 4 freebsd-zfs (11G) >> 31277152 8 - free - (4.0K) >> >> >> It appears that my FreeBSD image lives within what Microsoft and Linux >> would call a single MBR primary partition (FreeBSD "slice"?), and that >> FreeBSD further subdivides that into boot, swap, and root sections >> (FreeBSD "partitions"?). > > Yes. I think the 11.0 installer made the mistaken assumption that > machines that boot from BIOS must (or should) use MBR/disklabel. I manually selected MBR partitioning scheme in the installer, as I have machines going back to Pentium 4's and I want something that will work on all of them. >> STFW RTFM there is information scattered in many places. Is there a >> concise document that explains what is relevant for creating, cloning, >> migrating, etc., FreeBSD 11 r7 system drives -- what the on-disk data >> structures are, how to back up them and their contents, how to >> recreate the structures on a blank drive, how to restore contents, >> how to deal with size, identifier, serial number, crypto key, etc., >> changes, etc.? > > Not that I know of. What you are talking about is a combination of > numerous different systems. I talk about partitioning here: > > http://www.wonkity.com/~wblock/docs/html/disksetup.html > > But if you are using encryption, that means GELI (geli(8)). Okay. >>>> What is the proper way to move a HDD or SSD with a FreeBSD system >>>> image from one computer to another computer? >>> >>> Provided the binaries have not been optimized for one CPU, just move the >>> drive. Disk drive names can change, which is not a problem when labels >>> are used. >> >> It looks like I got lucky on device names. Where are slice/ >> partition/ filesystem labels documented, notably the strategies and >> procedures for using them? > > See glabel(8). Okay. >>> Ethernet interface names can change. If there is only one >>> interface, use ifconfig_DEFAULT in /etc/rc.conf. >> >> Regarding the network interface, my /etc/rc.conf contains shell >> variable assignments. What am I to assign to 'ifconfig_DEFAULT'? > > Usually, SYNCDHCP: > > ifconfig_DEFAULT="SYNCDHP" > > It functions the same as ifconfig_em0 or _re0 or whatever, but for all > interfaces with no other settings. Okay -- this worked: ifconfig_DEFAULT="DHCP" >> RTFM 'ifconfig_DEFAULT' I draw blank: >> >> toor@freebsd:/root # grep ifconfig_DEFAULT /etc/rc.conf >> /etc/defaults/rc.conf >> toor@freebsd:/root # man rc.conf | grep ifconfig_DEFAULT > > setenv PAGER less > man rc.conf > Type > /ifconfig_DEFAULT > and press Enter. Yes, I tried that. Interactive use: Pattern not found (press RETURN) grep'ing the man page: dpchrist@freebsd:/usr/home/dpchrist $ man rc.conf | grep ifconfig_DEFAULT >> The Xfce application issues appeared both when: >> >> 1. The FreeBSD system drive image was copied to another drive and >> then booted in the source machine. >> >> 2. The FreeBSD system drive was booted in another machine. >> >> >> What is causing the Xfce issues? > > No idea. I have moved hard drives from one machine to another, and in > fact wrote an installer that sets up FreeBSD to be used on a generic > machine with Xfce. Does it work on FreeBSD 11.0 i386? David From owner-freebsd-questions@freebsd.org Mon Jan 30 06:20:26 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7ED10CC7A26 for ; Mon, 30 Jan 2017 06:20:26 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6ACAD1EEB for ; Mon, 30 Jan 2017 06:20:26 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sun, 29 Jan 2017 22:20:24 -0800 Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration To: freebsd-questions@freebsd.org References: <86bmupg0gi.fsf@WorkBox.homestead.org> <2973d1ea-202f-60fa-2930-eec05b626cfb@holgerdanske.com> From: David Christensen Message-ID: Date: Sun, 29 Jan 2017 22:20:24 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 06:20:26 -0000 On 01/29/17 21:34, Warren Block wrote: > On Sun, 29 Jan 2017, David Christensen wrote: > >> As I understand it, taking an image involves: >> >> 1. Back up the MBR (dd?). > > gpart backup ada0 > >> 2. Back up the slice 1 partition table (?). > > gpart backup ada0s1 > >> 3. Back up bootpool file system ('zfs send'). >> >> 4. Back up the swap partition encryption container header (?). > > geli. Easier to just initialize the receiving disk with geli and enter > the same key. > >> 5. Back up the zroot partition encryption container header (?). > > As above. > >> 6. Back up zroot file system ('zfs send'). >> >> >> Restoring an image involves: >> >> 1. Restore MBR ('dd'). > > gpart restore ada0 > >> 2. Restore slice 1 partition table (?). > > gpart restore ada0s1 > > > Create encryption, if truly desired, with geli(8). > >> 3. Create bootpool ZFS pool and file system (?). > > zpool create > >> 4. Restore bootpool file system ('zfs receive'). > >> 10. Create zroot ZFS pool and file system (?). > > zpool create Okay -- thanks for the pointers. > >> 12. Restore zroot file system ('zfs receive'). >> >> These processes are complex enough to warrant automation. Can >> Clonezilla handle FreeBSD 11.0 with MBR and encrypted ZFS root? > > Clonezilla can handle UFS, last I checked. ZFS, no, and encryption just > appears as binary data to anything that lacks geli(8). Yes, that's how I read their web page. >> 1. Putting the original system drive into another computer broke Xfce >> applications. > > Something to do with missing semi-important filesystems, maybe. Or the > age of a Pentium D, although that still ought to be supported. Maybe > options were selected to optimize for that CPU that are not good in a > newer one. I tested the original drive in a Dell Inspiron E1505 laptop with an Intel 945 GM chipset, Core 2 Duo T7400 processor, and 2 GB RAM. Currently, the cloned SSD is in it. >> 2. Everything works as before when the original system drive is put >> back into original computer (I am typing this message on that system). >> >> 3. The cloned drive works and has passed Intel SSD Toolbox checks. >> >> 4. Putting the cloned drive into the original computer broke Xfce >> applications in exactly the same way. >> >> >> I doubt it's an SSD hardware problem. > > Writing SSDs with dd is not good, limiting their wear leveling. That's why I used zcat rather than dd for writing to the cloned SSD. If/when I know enough to use zfs send/ receive, that will be best. David From owner-freebsd-questions@freebsd.org Mon Jan 30 10:30:15 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3187CC7A95 for ; Mon, 30 Jan 2017 10:30:15 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id 66375C4; Mon, 30 Jan 2017 10:30:14 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp121-45-92-196.bras1.adl6.internode.on.net (HELO leader.local) ([121.45.92.196]) by ipmail06.adl6.internode.on.net with ESMTP; 30 Jan 2017 20:55:05 +1030 Subject: Re: Need help with python To: Joseph Olatt , Bernt Hansson References: <20170128162858.GA5721@centos6.eskimo.com> Cc: trasz@FreeBSD.org, "freebsd-questions@freebsd.org" From: Shane Ambler Message-ID: <5b4df615-153a-f22a-d940-bb038cb5dc78@ShaneWare.Biz> Date: Mon, 30 Jan 2017 20:55:03 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170128162858.GA5721@centos6.eskimo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 10:30:16 -0000 On 29/01/2017 02:58, Joseph Olatt wrote: > On Thu, Jan 26, 2017 at 07:57:20PM +0100, Bernt Hansson wrote: >> Hello list! >> >> I'm trying to run this program http://flatcam.org/ it's made in python. >> >> Got this same error whith py-pycam before it became a port. >> So what did the maintainer do with pycam. >> >> Pycam maintainer cc. >> >> This error is from flatcam, last line was the same with pycam. >> "/usr/local/lib/python2.7/site-packages/numpy/core/__init__.py", >> line 14, in >> from . import multiarray >> ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by >> /usr/local/lib/gcc49/libgfortran.so.3 not found > > It looks like this port/pkg is looking for GCC_4.9.0. You seem to have > GCC 4.6.0 installed on your system. > > My guess is that /usr/local/lib/gcc49/libgfortran.so.3 would be found > if that is installed. That has come up a few times, see - https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207750 When trying to load libgfortran the system installed libgcc_s is found first (it has most likely already been loaded by another lib) and used, but as it is built against an older version of gcc it fails to support the needs of the newer libgfortran. The work around is to set LD_LIBRARY_PATH to point to the current gcc lib folder so that the newer libgcc_s is always found and used. This can be done by creating a script that sets LD_LIBRARY_PATH and then runs the script. Or you can set it in your shell login to be used all the time. -- FreeBSD - the place to B...Software Developing Shane Ambler From owner-freebsd-questions@freebsd.org Mon Jan 30 10:30:21 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDB4BCC7AA8 for ; Mon, 30 Jan 2017 10:30:21 +0000 (UTC) (envelope-from shahinhasanov@hotmail.com) Received: from COL004-OMC1S17.hotmail.com (col004-omc1s17.hotmail.com [65.55.34.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 80497E8 for ; Mon, 30 Jan 2017 10:30:21 +0000 (UTC) (envelope-from shahinhasanov@hotmail.com) Received: from EUR01-HE1-obe.outbound.protection.outlook.com ([65.55.34.9]) by COL004-OMC1S17.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Mon, 30 Jan 2017 02:29:15 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=sFpPUOyXrM9ifh05qZztitY0GnlckBYEgw8oaX1DWqw=; b=TY6kqIH+jL0RFcN6/BoW53g/8mMjYQXOfTvDx/RUYkiG9YHnvYzjodgRiqMOUn26CTbjPhT9o3kNhChUaf9a98xV39MdbEVO/FEQurq78aAfJScdUmTd/TAYHMUCBjlA7rJIGVZaIsBfGXboyOx+g1XMfF8MeTO3vzsl0KUjKvHy3GopENIA2nexoEpSlAJ1nhrlPrWibpWd9R935aswgYNIQcjhrQSvwqGN4IakEUBsWzQuHyjqD+xvEm1hk/VW5bCKIbH9h3vnZX70QHE6OgVRWjhyuBLKIJPeURI7iEMPUMlSSt7PJUcA+7/rU1m7NHeZNM5RM2l3B1qsbzeofQ== Received: from DB5EUR01FT015.eop-EUR01.prod.protection.outlook.com (10.152.4.56) by DB5EUR01HT240.eop-EUR01.prod.protection.outlook.com (10.152.5.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2; Mon, 30 Jan 2017 10:29:12 +0000 Received: from VI1PR04MB1263.eurprd04.prod.outlook.com (10.152.4.53) by DB5EUR01FT015.mail.protection.outlook.com (10.152.5.0) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Mon, 30 Jan 2017 10:29:12 +0000 Received: from VI1PR04MB1263.eurprd04.prod.outlook.com ([10.162.121.17]) by VI1PR04MB1263.eurprd04.prod.outlook.com ([10.162.121.17]) with mapi id 15.01.0874.019; Mon, 30 Jan 2017 10:29:12 +0000 From: Shahin Hasanov To: FREEBSD_QUESTION Subject: Problem with HP LTO-6 Ultrium 6250 Tape Drive Thread-Topic: Problem with HP LTO-6 Ultrium 6250 Tape Drive Thread-Index: AQHSeuOPiHftt3Nyn0qVVLNJ0/N/WA== Date: Mon, 30 Jan 2017 10:29:12 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:C45BF63BCC0F3DD08359EE902685B037FF5283122FAD797237FFE36ED59F8BF3; UpperCasedChecksum:1184FC8D24A4A2A2BC4FC21D4B141E0DF7B08DCADEC8FE561410152FE69B2BAC; SizeAsReceived:7611; Count:37 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [AF5XSBFFp2IB4+MyXBOmq5mufLLch6cf] x-incomingheadercount: 37 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; DB5EUR01HT240; 7:o3cBzfm/OXJP9MSK9kGJehtpLFRzhLlMRKVpnZS1Bwpl3EwyYpeqpkuLz8uyASAoffsFN4b8nFxECCPy5lmqnhcRDjH5BkNhS+qroTWXnn1a8a/hBI2MmBQsecVS4anqpIstXTztD01WQjeD61gNH1vRooQm+z9jLYfJwpid+QCDM2vP32dBTn74LZKMPlYDxMB7/2hAkp5oYu342PGkA+UJzYaBZDoe71hIkj2yLl1ur4sRf7BAkMpmqoRwJQbaM/bw5f0qQ9P++nsWR5GdTHhNoRrbDLfsA4V9TfpcNOgEHysBxv/H5w8wHBN2YYamk1sIs+TJJNuWPWwVn4X79Vmz67gZk+AhzkGjltSQmkZmXXTigq+oQHGq8IQAi3QxINjlQ1zn/oFFe/qExMxwqtaAeOsSqf5y2Nxdrod3jdm2YWUI/rh+G0hVPg1LbWJkPyjuBOMRxkFJjGmzrDtnuQ== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900005); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5EUR01HT240; H:VI1PR04MB1263.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: a1fb2785-b458-45bb-2d93-08d448fad55f x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(5061506344)(1603103113)(1601125047)(1701031023); SRVR:DB5EUR01HT240; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(444112120)(432015012)(82015046); SRVR:DB5EUR01HT240; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR01HT240; x-forefront-prvs: 0203C93D51 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2017 10:29:12.3279 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT240 X-OriginalArrivalTime: 30 Jan 2017 10:29:15.0263 (UTC) FILETIME=[B48F70F0:01D27AE3] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 10:30:21 -0000 Dear Collogues , I have problem with LTO-6 Ultrium 6250 Tape Drive and cartridges 6.25. TB. # FreeBSD 10.2-STABLE #0, I could no write more than 2.5 TB in despite that I include compression mod= e like bellow # mt -f /dev/nsa0 rewind # mt -f /dev/nsa0 fsf 5 # mt -f /dev/nsa0 comp on # tar cvf /dev/nsa0 BACKUP_2016 during writing process It gives me : tar: Write error Then I'm trying to list of archive it gives me: # mt -f /dev/nsa0 rewind # mt -f /dev/nsa0 fsf 5 # tar tvf /dev/nsa0 ...... at end tar: Truncated input file (needed 833464320 bytes, only 637740032 available= ) tar: Error exit delayed from previous errors. # mt -f /dev/nsa0 status -v Drive: sa0: Serial Number: HUJ5314CTA --------------------------------- Mode Density Blocksize bpi Compression Current: 0x5a:LTO-6 variable 384607 enabled (0x1) --------------------------------- Current Driver State: at rest. --------------------------------- Partition: 0 Calc File Number: 5 Calc Record Number: 0 Residual: 0 Reported File Number: 5 Reported Record Number: 231942564 Flags: None --------------------------------- Tape I/O parameters: Maximum I/O size allowed by driver and controller (maxio): 131072 bytes Maximum I/O size reported by controller (cpi_maxio): 262144 bytes Maximum block size supported by tape drive and media (max_blk): 16777215 = bytes Minimum block size supported by tape drive and media (min_blk): 1 bytes Block granularity supported by tape drive and media (blk_gran): 0 bytes Maximum possible I/O size (max_effective_iosize): 131072 bytes best regards, Shahin Hasanov From owner-freebsd-questions@freebsd.org Mon Jan 30 14:31:32 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53383CC874A for ; Mon, 30 Jan 2017 14:31:32 +0000 (UTC) (envelope-from caroline@openeducators.org) Received: from mail-ot0-x22e.google.com (mail-ot0-x22e.google.com [IPv6:2607:f8b0:4003:c0f::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FE25758 for ; Mon, 30 Jan 2017 14:31:32 +0000 (UTC) (envelope-from caroline@openeducators.org) Received: by mail-ot0-x22e.google.com with SMTP id 73so243566283otj.0 for ; Mon, 30 Jan 2017 06:31:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openeducators-org.20150623.gappssmtp.com; s=20150623; h=date:mime-version:subject:from:reply-to:error-to:message-id:to :content-transfer-encoding; bh=OBzqEbzU5CtZjRHPtiHuLT+nVj1utymOsBkJsQJDVRw=; b=YBm3p2Gq9FnVzygAF2U3cOg/pzmEexzyx4dOoReWxRzwgv4NUJ4W/jzCqVw8IrhSnr Plk9VgwLJ3nC19EQDxVtFTwJzU4a9KscFViQw19Rlh7F2Rn1xQH99AmfxrB+gDoLyNdQ EKbuFlsAhcIsnwA7AaoEimQGon5shTeZ+HARhWs8Fo4/Dj/4VaLyW6Rd6DRo6g1Ze8V4 eMk0SIqAum3iOvJ4v7VlgvMvcvyeTNtXC0xHFwvDerd4XfGCAjcxM65T/9e5590OIiPM 3uIGuXzHWLTwIWhpQCVwkQxu7sCZ+3RG+A7KyzQ8G3ySdb9wU3bnFYKWqJmFBIuDe2Hh aDaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:mime-version:subject:from:reply-to:error-to :message-id:to:content-transfer-encoding; bh=OBzqEbzU5CtZjRHPtiHuLT+nVj1utymOsBkJsQJDVRw=; b=NhG7SxKFamxoudYS3BTik9Mrn24VXZ/0XsTceOjsr5nQdNEC9aUdHra/L5p1bRUgg+ b0ls3G8b0hCOMp3EEX0J9lXY1Sj+1ZI96RyMp+Y7Mezz4kcVOmJTChDZUqY/We9Q3kyx NDLZBuFtoviQj6cKvdxjYUqtLlxF9mFv7y/RIgVXh7N5G2C4xpTl0RyypreB/p2FJaVd KQqgTbC7Ra6tnt/S+3idWNMSygKmCtjYcO1dJLYypIm88JTaoafPHayvsDmmPdEsW6+S glhEHv/Ubs3JM2/O/9bxGfA6mrVooMPWkwXR9SqlAXGKgIuVib9gECg13yInYcBDFP6J 164A== X-Gm-Message-State: AIkVDXKU6P2YKEuZJ6D1l51nt3G+8qR0h+eIg+TPwRTtnPLaClzPpg/Q2Q4E/xSPBUaVrg== X-Received: by 10.157.3.244 with SMTP id f107mr9625778otf.22.1485786691127; Mon, 30 Jan 2017 06:31:31 -0800 (PST) Received: from localhost ([46.166.190.147]) by smtp.gmail.com with ESMTPSA id d62sm7298346oic.14.2017.01.30.06.31.29 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jan 2017 06:31:30 -0800 (PST) Date: Mon, 30 Jan 2017 06:31:30 -0800 (PST) X-Google-Original-Date: Sun, 15 Jan 2017 17:08:05 GMT MIME-Version: 1.0 Content-Type: text/plain; boundary="-----BOUNDARY:48349-----" Subject: =?UTF-8?Q?It=E2=80=99s?= not too late to apply for college scholarships! From: "Caroline Hampton" Reply-To: "Caroline Hampton" Error-To: caroline@openeducators.org Message-ID: <21b709f5-2f2c-4881-8937-584647218fe0@ema.il> To: Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 14:31:32 -0000 Hi! This time of year is many different things to many different people =E2=80=94 an= d for high school seniors, it marks the halfway point of scholarship season= ! Now, I don=E2=80=99t want to insinuate that these students are lazy, but in my e= xperience they *do* tend to procrastinate. And with so much on their plates= for their final year of high school =E2=80=94 college applications, major projec= ts, final exams, and graduation just to name a few! =E2=80=94 it=E2=80=99s incredibly i= mportant to make sure they don=E2=80=99t miss important opportunities. So here is my offering to lighten the load for all: a bundle of fantastic = scholarship opportunities with open applications. I hope you=E2=80=99ll share the= se. Personally, I think this list would be an awesome addition to this page= : http://nsa.kpu-m.ac.jp/gijutu/python/man-bsd-ja/gallery/npgallery.html. Congressional Black Caucus Foundation Visual Arts Scholarship https://cbcfinc.academicworks.com/opportunities/389 Create-A-Greeting-Card Scholarship http://www.gallerycollection.com/greeting-cards-scholarship.htm Green Home Improvement Scholarship http://www.homeadvisor.com/r/scholarships/ Laura W. Bush Traveling Fellowship http://www.state.gov/p/io/unesco/programs/143138.htm The Stephen Bufton Memorial Educational Fund National President=E2=80=99s Schola= rship https://sbmef.org/Site/Scholarships.cfm Scholastic Art & Writing Awards Scholarships http://www.artandwriting.org/scholarships/ Every student should have a fair fiscal shot at college =E2=80=94 procrastinatio= n or not! ;) Warm wishes for a great 2017, Caroline Caroline Hampton http://openeducators.org 500 Westover Dr #9372 | Sanford, NC | 27330 P.S. If you=E2=80=99d rather we didn=E2=80=99t reach out in the future, please send us= an email to let us know! Thanks! From owner-freebsd-questions@freebsd.org Mon Jan 30 15:27:03 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4886CCC7B60 for ; Mon, 30 Jan 2017 15:27:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 287E1D9F for ; Mon, 30 Jan 2017 15:27:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0UFR2t5089301 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Jan 2017 08:27:02 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0UFR1ta089298; Mon, 30 Jan 2017 08:27:02 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 30 Jan 2017 08:27:01 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration In-Reply-To: <3f6c8bfb-70a4-74c2-3879-b328ecd3bb38@holgerdanske.com> Message-ID: References: <516b147d-6faa-b9c0-1d8f-2313a0755211@holgerdanske.com> <3f6c8bfb-70a4-74c2-3879-b328ecd3bb38@holgerdanske.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Mon, 30 Jan 2017 08:27:02 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 15:27:03 -0000 On Sun, 29 Jan 2017, David Christensen wrote: > On 01/29/17 21:18, Warren Block wrote: >> On Sun, 29 Jan 2017, David Christensen wrote: >> >>> On 01/29/17 05:27, Warren Block wrote: >>>> On Sat, 28 Jan 2017, David Christensen wrote: >>>> >>>>> What is the proper way to clone a FreeBSD system image from one drive >>>>> to another? >>>> >>>> On encrypted ZFS? I'm not sure there is a brute-force way that is >>>> trustworthy. Using higher-level commands to recreate the partitions, >>>> GELI encryption, and then zfs send | recv are certain safer and won't >>>> duplicate supposedly unique IDs. >>> >>> STFW >>> >>> https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html >>> >>> >>> toor@freebsd:/root # gpart show >>> => 63 31277169 ada0 MBR (15G) >>> 63 1 - free - (512B) >>> 64 31277160 1 freebsd [active] (15G) >>> 31277224 8 - free - (4.0K) >>> >>> => 0 31277160 ada0s1 BSD (15G) >>> 0 4194304 1 freebsd-zfs (2.0G) >>> 4194304 4194304 2 freebsd-swap (2.0G) >>> 8388608 22888544 4 freebsd-zfs (11G) >>> 31277152 8 - free - (4.0K) >>> >>> >>> It appears that my FreeBSD image lives within what Microsoft and Linux >>> would call a single MBR primary partition (FreeBSD "slice"?), and that >>> FreeBSD further subdivides that into boot, swap, and root sections >>> (FreeBSD "partitions"?). >> >> Yes. I think the 11.0 installer made the mistaken assumption that >> machines that boot from BIOS must (or should) use MBR/disklabel. > > I manually selected MBR partitioning scheme in the installer, as I have > machines going back to Pentium 4's and I want something that will work on all > of them. GPT will work on them, that is part of the function of the PMBR. >> setenv PAGER less >> man rc.conf >> Type >> /ifconfig_DEFAULT >> and press Enter. > > Yes, I tried that. Interactive use: > > Pattern not found (press RETURN) It is case sensitive. Otherwise, don't know, it is found here. > grep'ing the man page: > > dpchrist@freebsd:/usr/home/dpchrist $ man rc.conf | grep ifconfig_DEFAULT > Sure, there are control characters mixed in with the output. Easier to search in the pager, but this will work: man rc.conf | col -b | grep ifconfig_DEFAULT >>> The Xfce application issues appeared both when: >>> >>> 1. The FreeBSD system drive image was copied to another drive and >>> then booted in the source machine. >>> >>> 2. The FreeBSD system drive was booted in another machine. >>> >>> >>> What is causing the Xfce issues? >> >> No idea. I have moved hard drives from one machine to another, and in >> fact wrote an installer that sets up FreeBSD to be used on a generic >> machine with Xfce. > > Does it work on FreeBSD 11.0 i386? The last time I tried it was with 10.x, I think. It needs work, but has been very low-priority. From owner-freebsd-questions@freebsd.org Mon Jan 30 15:28:51 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8666CC7CCD for ; Mon, 30 Jan 2017 15:28:51 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B0EDFF0F for ; Mon, 30 Jan 2017 15:28:51 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0UFSo96089812 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Jan 2017 08:28:50 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0UFSo7Y089809; Mon, 30 Jan 2017 08:28:50 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 30 Jan 2017 08:28:50 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration In-Reply-To: Message-ID: References: <86bmupg0gi.fsf@WorkBox.homestead.org> <2973d1ea-202f-60fa-2930-eec05b626cfb@holgerdanske.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Mon, 30 Jan 2017 08:28:50 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 15:28:52 -0000 On Sun, 29 Jan 2017, David Christensen wrote: >> Writing SSDs with dd is not good, limiting their wear leveling. > > That's why I used zcat rather than dd for writing to the cloned SSD. If/when > I know enough to use zfs send/ receive, that will be best. zcat is no different than dd in this case. When you write a binary image, the SSD can't tell which blocks are truly in use, because they have all been written. From owner-freebsd-questions@freebsd.org Mon Jan 30 18:58:32 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0CFFCC8B19 for ; Mon, 30 Jan 2017 18:58:32 +0000 (UTC) (envelope-from Dave.Robison@fisglobal.com) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30114.outbound.protection.outlook.com [40.107.3.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 02707129D for ; Mon, 30 Jan 2017 18:58:31 +0000 (UTC) (envelope-from Dave.Robison@fisglobal.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fisglobal.onmicrosoft.com; s=selector1-fisglobal-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=86g5IurS8Pr8Ew+jQ+cfF1jee+YZlsMLu1SwI+CexQc=; b=U+86WbIPpUoYDs2GTkvFmwna3GYHh9Q1L/7njPGd6PSzOhruK3Itvtqad8fKXkbh9XjUmwTb9zyv0JnefK/4/AvOXaZLq9gcc3f3tyqs2uWU2iMhrnqnaTcQqSax+iwnMTSxPeSZlwLQG34cxCNXDKkzM9JNaR01V0DBgwd0NNI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Dave.Robison@fisglobal.com; Received: from [10.242.182.233] (199.200.24.158) by DB3PR08MB0075.eurprd08.prod.outlook.com (10.161.56.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Mon, 30 Jan 2017 18:58:26 +0000 Reply-To: To: FreeBSD From: "Robison, Dave" Subject: ftp-archive.freebsd.org Message-ID: <8c7cb191-c81d-1ddc-97ee-8163595a2a2a@fisglobal.com> Date: Mon, 30 Jan 2017 10:58:15 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [199.200.24.158] X-ClientProxiedBy: SN1PR01CA0035.prod.exchangelabs.com (10.165.224.45) To DB3PR08MB0075.eurprd08.prod.outlook.com (10.161.56.13) X-MS-Office365-Filtering-Correlation-Id: 8df203f4-3aa9-4574-09f5-08d44941f91d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DB3PR08MB0075; X-Microsoft-Exchange-Diagnostics: 1; DB3PR08MB0075; 3:oOcfQfXRnygmaxE8EErHwThF2XZUmZNl8tdc92B7A+RQgbpoa6yFs6ZfIAcL/PjoUuO7nFCO1uZ3nIgqX7xV3LfgCS62x9DfBcYU9fYn5YhQV9WmhQLCAEIhRljcqoOQ8AXgiSWU2UP/7oh6aifqIxrUC3CDB6VjVp61agjmOSXdY3VQbwfOWhddImTKR8LkUvns4RFm9B0jhvSlcOVD1WQCPlWUZspgIa153gqgxxfRMceb/DrtlYwAVJinraIWoSI6tWHZxyxFSivYGiqwEw== X-Microsoft-Exchange-Diagnostics: 1; DB3PR08MB0075; 25:tFzxz6b9Mph+hLS5TADAqE33daJoyaNTNmdWXO4xhy7FTnE9ScVKURCWv+5jDbxcyToRA5s2sR9QhGaAEGYLPYDSzBt/ft1HQM2mBvIqEYxHVx7Y1E99ZRtKnyaUJXa04lKzTKp3+qbnIGPfref+8bokEji9LdGWVG6cUhGMwC+DhOhYuiHJMGs47Ue4Ktlqis8R/mF69ksDlTrH+lKtFtwQTO6AFx3hCzGCPnHc4ZROlu7QlDtLEAL7CW+gOPd960tenLjTmbOjQIvHlOvt8XunXLNm+RWzUq2GUiiysfzH6YMwSNtOcQWEluqJLzv/HcWzCRqqP1SuHgd4C+KzZOfJlABNUySPx3P9yOpqFrvryfhhFHgQVBwi8q7gzeuI18wzEVI83IXMuj8yV3UOzv54qqOAE8ub0cFS0P3UC6pIYJrnte6VGEHnPCZrQB9VfxXHvgMdKuZmUfjl7EPTKq/QSGSo99wsAQtQUEZIMGF3P7ViHG8HsYYzgnbAchbppNrn0UA8/JbyyzicUbBvdZGOpFjoykYaYwgJveHs2/5e/ertBO4UhAtHaZD7V6xzxLg3dqwHxseDkZIge9aOyamEmTToqvZNr4syVL7EAgDcZWA3q6jQjCCXsFkpbSf14VTz7csdoCgodxrRYVuOj8kAEhz3nnRtb5O0+Z7WNp2jY35WICM1se5ST86Ec6HV7qh/LM5PnQ70UkZy2nEnPg== X-Microsoft-Exchange-Diagnostics: 1; DB3PR08MB0075; 31:4Rs39QmQzC0eKqW+zaIo0IPWe+k3XFZ3wL66qjCrUpoA+4BkXhCE2XYmQK5qfo970Enctv0Qbx4dVzWiIPrnEHz7hBai0MId0KfJhf2uqt+HtDSxoraR7oLlDDcNPXAJj7DMlau/ULq5OuxI69IcuuPwRuSO1ByIu8p4CQ9jC7/L46wrap8WgVDiUZ5UJBFl/VWE5/ZoHDIowf9g21NCP2eKb+nHfTEPs26G3G6UZ+KpHbM/CzSa5bZIslVPdKsF1w3/GejydZxHNg9v/MhnSuzpiCDvnl1axqQ7QuAB89c=; 20:7xaJISkkvvntjx34hBeYPtzoHzXgs3xFMv5jzXMUomXPsVRoCSgwqoXIJbAJq2Sd3mBR1nfMUXqKwNgIXUC754hJIKNph8qnbxM+0r9GBu5bL1A/QPRF/tBHAvseSWXy0h1ZsRl23HV8pLSP3032+MLYyNZP/IfmrBy/Us9uxcfq0ebPd0JwSMcOB2Lsqsm7j9oWxVR035AspPhQUV+u1tLPYVtX3Xu6s+MKSS0c9/Xs3446Rw5urKlR4I5+iZRVUJokybYhF3Kzen/zvS/PTp7abPjtyCsaFBMDgn8nhDBgfnipvYhhHsUVxaR2UZvpI+p+VeahPziSm+j1PTWmeTyUpnhE8x4cRolD1FD+lsO7X9K1RXdZmUh+09Vk/8WMClWLmRrfGF+jCwzjyN6aprAHjP3sYMEd0EOesmwfNwaSChnfeBucNriJlvKPgJHM1kmR3lx6vchaC+8ebIevqSsmgVSJPjpEe3cJPpRxBroW+pwphX3ovz2k2gUR+NIN disclaimersource: eop X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123558021)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:DB3PR08MB0075; BCL:0; PCL:0; RULEID:; SRVR:DB3PR08MB0075; X-Microsoft-Exchange-Diagnostics: 1; DB3PR08MB0075; 4:Lv/vE5WIu4FS6o27pJOPQgVT3qdiQtUf9C7Z2gOxswI9Q05VEeBwk2Bk1b5pkZM0EAvg84dKxOdiriiiApUqtyttHL1u+XyeK4AGBZgRzHoilQWYdcN8R6Spuuhl8/T/+fmClFUA2Y4U1A/XapF0k+4ZmGveXO+8XVbLUsUHIm5PoA7hU/c0134MKrNpvQESJDQ4VY4nfWi0yfJFkDByCYhnO2T0lVL8Mbv87FW4OjZ0zxTaAbVzyNABT9DbmwPphsFV3ErDaavMwJpg5+nOLCnwx6lUQ31So8jDOmag8UolGMhZab981mFCWLBw3yJbKg29E91W8IdyPUN8e/P/LIB7z0VTOkOlqnswtZpAPFdRgQQIDftGzAdbR9jY6dWuZvfIOdKdo2VDQ1POCfUsMnBBX0yJBAmoBGtQIAWzkbAokH5u7CdTgO95rnebcKzN1+Dgj93T05Xf84M6XnOqAZCSFhnYVqCFMvG5vqj6+5nIr9Ya3XUDMF4dE7Gqe/0RaoRFVzhV7uyb6CsQgI8DhSRw/rZubeoxr2Ams9WoyeS5gl7U1wNuxhr2VCXn1FeykoqrmQqPUpe3tOORjyOnraXa8O2TrlFOo9EUISzTeEQ= X-Forefront-PRVS: 0203C93D51 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6049001)(7916002)(39850400002)(39840400002)(39450400003)(39410400002)(199003)(72686001)(189002)(189998001)(65826007)(101416001)(90366009)(4001350100001)(6486002)(97736004)(77096006)(43066003)(81156014)(68736007)(83506001)(8676002)(53936002)(5660300001)(64126003)(50466002)(2906002)(54356999)(3846002)(8746002)(81166006)(450100001)(6116002)(50986999)(3450700001)(23676002)(36756003)(33646002)(305945005)(7736002)(110136003)(47776003)(6666003)(38730400001)(25786008)(31696002)(86362001)(107886002)(31686004)(106356001)(105586002)(6916009)(42186005)(65956001)(66066001)(65806001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB3PR08MB0075; H:[10.242.182.233]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: fisglobal.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjNQUjA4TUIwMDc1OzIzOlhZY1dnY2VXU1Nrci9ZRXJrSXcyckpwMDJV?= =?utf-8?B?ZWtKWFc0cXlaejdvc1BrNDJ6V0tmZHZxZ0pnNDQ5NTF2OEgvMjJOc2x0T1Jh?= =?utf-8?B?NFA3RDNsMCs4N05yRzZMNXZiRnRmUHkxWGpWRFBqWTViSFpScTgzVWtyd1ZY?= =?utf-8?B?Q2g3ekhXaE5rL0l5NmxlemhUbzNGVUhMVW13VnB4SEthanlFb094dW9MZkRL?= =?utf-8?B?YWtHcDFJYThKUTZuZ3o5OFMva2o4cU5YczAweGdrUzh6K1JYb2tzN3cyNXp4?= =?utf-8?B?bFdTUkJ6SEN5OC82U3EzdGlWUU1YNHJFM3dtUUdwd1RJcDRSK2J4bVlyeU9M?= =?utf-8?B?RHdNWllOeWZaVWk3LyttaUlEYnh6M01kWGdsMlNFamJBbEFPWmdsam1RenRp?= =?utf-8?B?TGxpRmh0VFpXaWI4bnBla1hiekxjN2h3cDAwd1hqNUZjekx6ek5JdmNvdzJz?= =?utf-8?B?cHRvKytoVjl1ZXBJbTg4NVRyd1dUQk1oaE5rZEhyeHZkOUVId2NqQ3JvTXFI?= =?utf-8?B?SzVPZjM5bVNjeFE0M3dyM3J3UmM1YXYwQlIxTkF1Y3pjZG5UeFdKMzVkaVQy?= =?utf-8?B?WEhBb0todEVzb0FWa0RjUFduTnBKakZkOWdNaXRkRVdxWElhYWt5WTcyZiti?= =?utf-8?B?T0wya2R6T0orSGdFUXFVVTU5ZCtaVUU1d0V1NzhMSVNuNm40VzB0Y1pNNmp1?= =?utf-8?B?bXJ0SngrRjhQTFc5QVdjdWhSYk5tNm5pb3BTTStNVGR6d1VuTnJiTk1ETXlR?= =?utf-8?B?Snc3S3pwSzVDVHkzMlRuMkpqZXlpTEVJM2F0dlU0R1dkbmdVRklsdXo2aVBO?= =?utf-8?B?Tk5UeWM0UWtEc2dCc3M1UVk2alJLaGhZVUYzZ1RLU3VCbHdXSWJDallneENp?= =?utf-8?B?SHJnS21vdWs4U3FjUXJlNkpOWXVDOG53aUQvQ1FWMmc3OUZER01hUWtPNU8x?= =?utf-8?B?L2ZGYkxoU3B5N1FUS0JqendCRktNZmRicE1XMlB4d3BwYndvOUpGWG0rNGZ0?= =?utf-8?B?Mmc4L3U1ZlNnR05hbUxsVGRnTExBN2R3QXpUOHNBWi9SeVVxSmpWdUczck1k?= =?utf-8?B?OG9DWThpMHpwOGtpeFM2dVRpQ282ZG1UUDdQazhYL0Z2OVRyQzg4OUlDRWxj?= =?utf-8?B?cnl4cHFMM01sOExaQVAzSW9PZWpJRDNuay94Sm1LT2lOM1c2NW1TeElyWk56?= =?utf-8?B?dmtUbS9LNjAxbS9ZUjZ0ZCtpdXlXWEVNcmpoNUFTenMzWDBYdVRxd1Ixb3Jn?= =?utf-8?B?aklSdE9uenZnZVRKQXB5K2REbUxwbjNJcndQSEE5NzEvdkI5aWExZW40dXNs?= =?utf-8?B?RllTUDdGV3NPKzN4MzRtZ2FpbllWYmNFR0IwV0pyT29GNmZvK2daNTdNZW54?= =?utf-8?B?djdSeElsOG5YdWdxUmIxWDlxWUlHOTlVSXlTcDlpOFI5aXZwaCt2UEYvL2lQ?= =?utf-8?B?em5GdkJBeUg0aFR2bVhUN0JoazVabVYxUTZlM0tJODdHUnBlVkhheUZkUUtZ?= =?utf-8?B?eURmNERpUzY2bm1Da0ZVTW9EcHFrQzFqYnNJN1VhYTBxbnJldFd4NGFVaVhI?= =?utf-8?B?eHYzelBnRlVHRGVOcXRNL1hlZ2N3TFgyVG5BdjF3NXlESlowTjJKRVd3RVlC?= =?utf-8?B?UHlRWlIyeXljMTNldWk2YXlDeDcwOFdGSHFHdVpmOUhMN3o3SkI5L1ZnOUtL?= =?utf-8?B?YUkvS09LSGRwdjVJNWxwV1JFZW9EZUNwVlBlVlgwVXJCajBCTjBEeDNDUk8y?= =?utf-8?B?UGZ3QTZhZXhjdkNjQ2kvc1U2ajRaRTRpUSt0dFpOcTVDeWVQMmVucm5ROWJW?= =?utf-8?B?MWZuUk1rb01Ebk1qR0V5SGpOTnZ0NnNHK1ZiUjZNMHNSN0wyaC9QWU1DczRL?= =?utf-8?Q?s2v3b9YVwF8MT6NTWlwMu7DuIthEG7Yb?= X-Microsoft-Exchange-Diagnostics: 1; DB3PR08MB0075; 6:AGlPcdX2uGpdVZgDj/neRvXO87RlD9zIW/frAy6ZPkS3hkaEoYsCcdj30bgKFCSJVFoReNk8FL0gc4q6RCJqkOyajpcEeih/crwX/l3ww1BBZadZOVyPQzlkkMngHj5OJcJ0w+9u+21o5JXRwN9axNZbheVple8QQtvMZwuKVoKJI+4Kn2B5bhGIcAHvNmSuGQaeQKMFwavKHats2bObBoWRojkcgAxFuUdqeJEbQvSpveUyKdMijvF0bFDxWW2Dt4UMESaYb42Aon9ikgmlU8jTqIytVb3fefpMQBIrCaDyFKE1pfbU83UX2SDni9A+ULpqCy3kCORXzG9bnYT//ON6dgFVtRvDcUsryuNdqRBwXojCxyxW8XPsPrTTOmUczw/Mhct9j8rxjWf8kElgYeNZY0/JWVf0CI4Mm7cu4l4=; 5:xPu2+s59uvmmtaKFp9HBtB+3hkKizsBhtjrrXwkFx9DKUMe+rUFJVE+Q7iCX9zi5YZqMK1/qMspwJI5Q/5TAbsZlvjTfBB5JW9+jQncXN3PGj8XMgqiHig1m/YrjCP1/Gy6ngSgoG3e9UOgBGSs7ew==; 24:erJlEZqYj/x/Pw8AqERneVV6VfXP5RpKQhqZ7RepsmONtDxoDVT4BzglJbUZGhEkkfT4NOxW0H9WaIfA1lJXr5SQXLeiEPutkWPsGoPzuq8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB3PR08MB0075; 7:XqFumpt3U8Pjh3MP224dRbOkVaqNiPlC5+JntxT5o1yz0ywAohwe+OufHQDQuQQTt0joGcS85E7r5Krt2K/tdiL0H2NP+LdSsk7dcHPzzlDeV5fb3gMxZ5i1coXOvMyM6fwe3UVchS4TugQXpi8bWPFKvUUEBgZGjeIJugvURMvoXYOwl+1YROD2uYXkqaAuAQf5RfWhXIjLtCEflJa06Erohd3I/RNke4qkbYdSuOz5DcLwfnUiJZhVuTWCsvAkLKz5ubRsexKIXKHb+KSm8tBUZQb8M9WLCuLfTydYYXiNN89COX/+RY57DLsa2yIJtR0kbEcLzpJgAry6eLuLVYeE+YVWxkdkl3m4LzXR9BEWo077pS9PkLB+6qZJQRQS0Wgj2azYL3QIzug6vqsW+N4eTS0bD8NWZJvw6mUS3zkDMf1l+8m7pdaWP5QUHQesgJ93gITl1GykgecTSDStKg==; 20:qvPGGufQZN6XU2ep6v+fz8IAN0K4UcrfZ9NYcw0QL/x8HC8mkbq9l7yO2RR6mCF8yMH2X65Pu288EZ1pU2UKP7bg64dTHQeFZ5l8YKLrZSr00Kry6R4Y3Yc2XN94eOOniVgi2khH7FbnKCqTukYdbcXME1iJYJXY13FJnnSZTmLie0qSQoYa/tiETMS7b6GPW0/Q9i71wpQMMo7riuQIb9NQ0viy3WG3e6BB5Iog8FXRdgkhxGvvu487tleI5rjh37XdbEC3eCRPAX/YgTvl74gR46GiPRNHz4cUg+lPpdExCvGdZNLMss6hKwYZmP/hVaqotfWSX2fyk72704Qz70t3BUIESsTWnivaLlD8PtsSgfKu4hSIQUDUcJ1G4nDzvcUibc9HhLCe8fXpZtCq0tx6jMQOMc3xNhHNPB5Lvbc= X-OriginatorOrg: fisglobal.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2017 18:58:26.0288 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR08MB0075 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 18:58:32 -0000 Hiya, A long time ago, probably 3 days at least, I was able to access the sometim= es useful ftp-archive.freebsd.org. Not it appears to misbehave and otherwise be void of content. Is it just me? Dave -- Dave Robison Senior Business Systems Analyst FIS Banking Solutions 510/621-2089 (w) 530/518-5194 (c) 510/621-2020 (f) daver@vicor.com david.robison@fisglobal.com 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-questions@freebsd.org Mon Jan 30 19:30:46 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6531ACC74B2 for ; Mon, 30 Jan 2017 19:30:46 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 542C3333 for ; Mon, 30 Jan 2017 19:30:46 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Mon, 30 Jan 2017 11:30:32 -0800 Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration To: freebsd-questions@freebsd.org References: <516b147d-6faa-b9c0-1d8f-2313a0755211@holgerdanske.com> <3f6c8bfb-70a4-74c2-3879-b328ecd3bb38@holgerdanske.com> From: David Christensen Message-ID: Date: Mon, 30 Jan 2017 11:30:32 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 19:30:46 -0000 On 01/30/17 07:27, Warren Block wrote: > On Sun, 29 Jan 2017, David Christensen wrote: > >> On 01/29/17 21:18, Warren Block wrote: >>> On Sun, 29 Jan 2017, David Christensen wrote: >>> >>>> On 01/29/17 05:27, Warren Block wrote: >>>>> On Sat, 28 Jan 2017, David Christensen wrote: >> I manually selected MBR partitioning scheme in the installer, as I >> have machines going back to Pentium 4's and I want something that will >> work on all of them. > > GPT will work on them, that is part of the function of the PMBR. Okay. Maybe next time. >>> setenv PAGER less >>> man rc.conf >>> Type >>> /ifconfig_DEFAULT >>> and press Enter. >> >> Yes, I tried that. Interactive use: >> >> Pattern not found (press RETURN) > > It is case sensitive. Otherwise, don't know, it is found here. My bad. Fix: dpchrist@freebsd:/usr/home/dpchrist/home $ cvs diff Index: .profile =================================================================== RCS file: /cvs/dpchrist/home/.profile,v retrieving revision 1.5 diff -r1.5 .profile 6c6 < export PAGER=less; --- > export PAGER='less -I'; Index: .shrc =================================================================== RCS file: /cvs/dpchrist/home/.shrc,v retrieving revision 1.2 diff -r1.2 .shrc 8a9 > alias less='less -I' >> grep'ing the man page: >> >> dpchrist@freebsd:/usr/home/dpchrist $ man rc.conf | grep ifconfig_DEFAULT >> > > Sure, there are control characters mixed in with the output. Easier to > search in the pager, but this will work: > > man rc.conf | col -b | grep ifconfig_DEFAULT Okay. 'man' is interleaving control characters to underline 'ifconfig_D' when output is to STDOUT or to $PAGER: dpchrist@freebsd:/usr/home/dpchrist $ man rc.conf | egrep 'i..f..c..o..n..f..i..g.._..D'| dump 00000000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000010 20 76 61 72 69 61 62 6c 65 20 5f 08 69 5f 08 66 | variable _.i_.f| 00000020 5f 08 63 5f 08 6f 5f 08 6e 5f 08 66 5f 08 69 5f |_.c_.o_.n_.f_.i_| 00000030 08 67 5f 08 5f 5f 08 44 5f 08 45 5f 08 46 5f 08 |.g_.__.D_.E_.F_.| 00000040 41 5f 08 55 5f 08 4c 5f 08 54 20 6d 61 79 20 62 |A_.U_.L_.T may b| 00000050 65 20 63 6f 6e 66 69 67 75 72 65 64 2e 20 20 49 |e configured. I| 00000060 74 20 77 69 6c 6c 20 62 65 20 75 73 65 64 0a |t will be used.| 0000006f 'col -b' converts char1-backspace-char2 sequences to char2: dpchrist@freebsd:/usr/home/dpchrist $ man rc.conf | col -b | egrep 'ifconfig_D'| dump 00000000 09 09 20 76 61 72 69 61 62 6c 65 20 69 66 63 6f |.. variable ifco| 00000010 6e 66 69 67 5f 44 45 46 41 55 4c 54 20 6d 61 79 |nfig_DEFAULT may| 00000020 20 62 65 20 63 6f 6e 66 69 67 75 72 65 64 2e 20 | be configured. | 00000030 20 49 74 20 77 69 6c 6c 20 62 65 20 75 73 65 64 | It will be used| 00000040 0a |.| 00000041 Is there a way (environment variable, alias) to filter 'man' output through 'col -b' when output is to STDOUT (rather than $PAGER)? David From owner-freebsd-questions@freebsd.org Mon Jan 30 19:46:21 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E38B3CC793F for ; Mon, 30 Jan 2017 19:46:21 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.he.net", Issuer "GeoTrust SSL CA - G4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C7BFAF7A for ; Mon, 30 Jan 2017 19:46:21 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from ::ffff:99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (AES128-SHA:SSLv3:Kx=RSA:Au=RSA:Enc=AES(128):Mac=SHA1) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Mon, 30 Jan 2017 11:46:15 -0800 Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration To: freebsd-questions@freebsd.org References: <86bmupg0gi.fsf@WorkBox.homestead.org> <2973d1ea-202f-60fa-2930-eec05b626cfb@holgerdanske.com> From: David Christensen Message-ID: <455f87f9-3f1d-dc68-ac1d-8248a7e0f043@holgerdanske.com> Date: Mon, 30 Jan 2017 11:46:15 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 19:46:22 -0000 On 01/30/17 07:28, Warren Block wrote: > On Sun, 29 Jan 2017, David Christensen wrote: > >>> Writing SSDs with dd is not good, limiting their wear leveling. >> >> That's why I used zcat rather than dd for writing to the cloned SSD. >> If/when I know enough to use zfs send/ receive, that will be best. > > zcat is no different than dd in this case. When you write a binary > image, the SSD can't tell which blocks are truly in use, because they > have all been written. Taking the image with 'dd' will grab all blocks -- in-use, used, never used (zero-freed and available for writing). On restoration, it all gets written. Yes, it's wasteful. But it's 2+ steps I can do by hand off the top of my head; rather than 18+ steps, most of which I've never done. I used 'zcat' in the hope that many 512 byte blocks would be sent to the SSD per system call, rather than 'dd' making one system call for each and every 512 byte block. (I also experimented with 'bs=1M', but adding 'conv=sync' resulted in a bad destination image.) Given the microcontroller and RAM buffer in the SSD, it might not matter. David From owner-freebsd-questions@freebsd.org Tue Jan 31 00:52:02 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC844CC7C63 for ; Tue, 31 Jan 2017 00:52:02 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 719D67E1 for ; Tue, 31 Jan 2017 00:52:02 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0V0q1Sn032793 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Jan 2017 17:52:01 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0V0q1Wp032790; Mon, 30 Jan 2017 17:52:01 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 30 Jan 2017 17:52:01 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration In-Reply-To: <455f87f9-3f1d-dc68-ac1d-8248a7e0f043@holgerdanske.com> Message-ID: References: <86bmupg0gi.fsf@WorkBox.homestead.org> <2973d1ea-202f-60fa-2930-eec05b626cfb@holgerdanske.com> <455f87f9-3f1d-dc68-ac1d-8248a7e0f043@holgerdanske.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Mon, 30 Jan 2017 17:52:01 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 00:52:02 -0000 On Mon, 30 Jan 2017, David Christensen wrote: > On 01/30/17 07:28, Warren Block wrote: >> On Sun, 29 Jan 2017, David Christensen wrote: >> >>>> Writing SSDs with dd is not good, limiting their wear leveling. >>> >>> That's why I used zcat rather than dd for writing to the cloned SSD. >>> If/when I know enough to use zfs send/ receive, that will be best. >> >> zcat is no different than dd in this case. When you write a binary >> image, the SSD can't tell which blocks are truly in use, because they >> have all been written. > > Taking the image with 'dd' will grab all blocks -- in-use, used, never used > (zero-freed and available for writing). On restoration, it all gets written. > Yes, it's wasteful. But it's 2+ steps I can do by hand off the top of my > head; rather than 18+ steps, most of which I've never done. > > > I used 'zcat' in the hope that many 512 byte blocks would be sent to the SSD > per system call, rather than 'dd' making one system call for each and every > 512 byte block. (I also experimented with 'bs=1M', but adding 'conv=sync' > resulted in a bad destination image.) Given the microcontroller and RAM > buffer in the SSD, it might not matter. The number of blocks written is the important part, and that is the same. Because every block in a disk or filesystem has been written, the SSD sees them as in use. If you overprovision by leaving part of the disk unpartitioned or with an unused partition, it would help. The only time to not give a larger buffer size to dd is when you want it to write odd multiples of 512 bytes. Otherwise, it always does better with at least bs=32K, and for flash it might as well be bs=1m. If it errors out, there is a problem with the source file or, more likely, the destination device. I don't generally use conv=sync. If it has an error, I don't want it to try to skip over it, but just fail. From owner-freebsd-questions@freebsd.org Tue Jan 31 01:00:55 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69DA1CC7FE4 for ; Tue, 31 Jan 2017 01:00:55 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CA0ACE5 for ; Tue, 31 Jan 2017 01:00:54 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0V10rDs035112 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 30 Jan 2017 18:00:53 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0V10rne035109; Mon, 30 Jan 2017 18:00:53 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 30 Jan 2017 18:00:53 -0700 (MST) From: Warren Block To: David Christensen cc: freebsd-questions@freebsd.org Subject: man page text output (was Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration) In-Reply-To: Message-ID: References: <516b147d-6faa-b9c0-1d8f-2313a0755211@holgerdanske.com> <3f6c8bfb-70a4-74c2-3879-b328ecd3bb38@holgerdanske.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Mon, 30 Jan 2017 18:00:53 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 01:00:55 -0000 On Mon, 30 Jan 2017, David Christensen wrote: >> >> Sure, there are control characters mixed in with the output. Easier to >> search in the pager, but this will work: >> >> man rc.conf | col -b | grep ifconfig_DEFAULT > > Okay. > > > 'man' is interleaving control characters to underline 'ifconfig_D' when > output is to STDOUT or to $PAGER: Yes. It has been doing that since the days of actual TTYs, since that was how they underlined. > Is there a way (environment variable, alias) to filter 'man' output through > 'col -b' when output is to STDOUT (rather than $PAGER)? Probably, although offhand after a long day, I'm not thinking of a short, clever way. It used to be possible to generate "ascii" outpu with groff. Now we have mandoc, which can surely do it, but I don't see how: mandoc -T ascii rc.conf mandoc: rc.conf: ERROR: No such file or directory It might just be a missing MANPATH setting, I don't know. I'm also not sure whether "ascii" output included the control characters. From owner-freebsd-questions@freebsd.org Tue Jan 31 01:28:38 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC30FCC71D1 for ; Tue, 31 Jan 2017 01:28:38 +0000 (UTC) (envelope-from emelville@anomali.com) Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9E4FC1D94 for ; Tue, 31 Jan 2017 01:28:38 +0000 (UTC) (envelope-from emelville@anomali.com) Received: by mail-it0-x235.google.com with SMTP id c7so115182824itd.1 for ; Mon, 30 Jan 2017 17:28:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anomali.com; s=google; h=from:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NkanYuGFTe3eqcXGuppuKNtknnY6ciUHD1Ufyrvko2s=; b=HQhS+ExBur+c/nrkcDIE96WtjSog0qzonq3ZVPWPAsaQqcAb6Pj0mDuYqROWxzVe6U q/3GGaeZPYRRKcamJd/+YUkAstazRt3fG8HHMbIyJ285Gu2lvjCvuAsnalNS6qbkQTLG d4pfWbqREucUhJ+5Dv6E3BN+LIS58Oyx2jHuY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=NkanYuGFTe3eqcXGuppuKNtknnY6ciUHD1Ufyrvko2s=; b=q5MtEhAeADf+3FlR4GfLgnAmfEKXjVnuYt35MAnyhx5aTrfHi5BpruC+QRNk1V3IjV rHCNv7GAb0kxRlk5f0frfDgKX5pA0ROwf0p3OAechI81E+p+Nubt+Ks1UREgmABx6JAV 2jIzaELA3QGrcG2pbEvgEKmqq+i49NB237P/qPhA3+MLekH2Ygu1dkRpyvbtjEih1/sj xFLExJlWDN972h5soGez0Ll/EuZVDQ+IopYZPIJoKQ9Dq/66+95twzwat6GjhndpoalY 55xcvXhMJNxzVp2jFqGL6rWM2GiPSjotvpHIAfGd8DRcvM7C+wjg00j+9uX/6X1ldkuS B4eA== X-Gm-Message-State: AIkVDXJU2xnycbHiEm/GNxtO3WS1RKujU3iJHOTxWoA3RTkXds3v8jeC/VULbEg2zlfy8mw/ X-Received: by 10.84.129.3 with SMTP id 3mr35871519plb.153.1485826117878; Mon, 30 Jan 2017 17:28:37 -0800 (PST) Received: from [172.18.8.46] (50-1-114-34.dedicated.static.sonic.net. [50.1.114.34]) by smtp.gmail.com with ESMTPSA id l22sm35698726pgc.43.2017.01.30.17.28.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jan 2017 17:28:37 -0800 (PST) From: Eric Melville X-Google-Original-From: Eric Melville Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: bhyve centos7 In-Reply-To: <119f89a2-1c35-036b-1398-1700a3bdd696@passap.ru> Date: Mon, 30 Jan 2017 17:28:35 -0800 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <119f89a2-1c35-036b-1398-1700a3bdd696@passap.ru> To: Boris Samorodov X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 01:28:38 -0000 No I am not sure, but a web search reveals that I am definitely not the = only one with this problem, and booting from XFS sounds problematic if = not wholly unsupported. Did you install CentOS 7 directly or update to = it? I think using bhyve-uefi or perhaps vm-bhyve may be the answer. The = FreeBSD handbook explains how to install via serial but CentOS gives no = disk configuration options via serial. > Are you sure? This is one instance: > ----- > % cat /etc/centos-release > CentOS Linux release 7.2.1511 (Core) > % df -T > Filesystem Type 1K-blocks Used Available Use% = Mounted on > /dev/mapper/centos-root xfs 19351552 13931836 5419716 72% / > devtmpfs devtmpfs 3995416 0 3995416 0% = /dev > tmpfs tmpfs 4005368 0 4005368 0% = /dev/shm > tmpfs tmpfs 4005368 278792 3726576 7% = /run > tmpfs tmpfs 4005368 0 4005368 0% = /sys/fs/cgroup > /dev/vda1 xfs 508588 295664 212924 59% = /boot > tmpfs tmpfs 801076 0 801076 0% = /run/user/1000 > ----- >=20 > The host is HEAD, but CentOS runs on it, well, since the beginning > of 2016. And I use sysutils/vm-bhyve. >=20 > Here is the conf: > ----- > guest=3D"linux" > loader=3D"grub" > cpu=3D8 > memory=3D8G > network0_type=3D"virtio-net" > network0_switch=3D"public" > disk0_type=3D"virtio-blk" > disk0_name=3D"disk0.img" > uuid=3D"XXX" > network0_mac=3D"XXX" > grub_run_partition=3D"msdos1" > grub_run_dir=3D"/grub2" > ----- >=20 > Last two lines differ from v-bhyve docs. >=20 > HTH > --=20 > WBR, Boris Samorodov (bsam) > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-questions@freebsd.org Tue Jan 31 02:18:14 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BE64CC978B for ; Tue, 31 Jan 2017 02:18:14 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay14.qsc.de (mailrelay14.qsc.de [212.99.163.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D88C1B79 for ; Tue, 31 Jan 2017 02:18:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay14.qsc.de; Tue, 31 Jan 2017 03:20:20 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id AAA983CBF9; Tue, 31 Jan 2017 03:17:27 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v0V2HQAk003113; Tue, 31 Jan 2017 03:17:26 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 31 Jan 2017 03:17:26 +0100 From: Polytropon To: Warren Block Cc: freebsd-questions@freebsd.org Subject: Re: man page text output (was Re: FreeBSD 11.0-RELEASE-p7 i386 system drive imaging and migration) Message-Id: <20170131031726.14b97075.freebsd@edvax.de> In-Reply-To: References: <516b147d-6faa-b9c0-1d8f-2313a0755211@holgerdanske.com> <3f6c8bfb-70a4-74c2-3879-b328ecd3bb38@holgerdanske.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay14.qsc.de with 4AFDD683426 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1929 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 02:18:14 -0000 On Mon, 30 Jan 2017 18:00:53 -0700 (MST), Warren Block wrote: > It used to be possible to generate "ascii" outpu with groff. Now we > have mandoc, which can surely do it, but I don't see how: > > mandoc -T ascii rc.conf > mandoc: rc.conf: ERROR: No such file or directory > > It might just be a missing MANPATH setting, I don't know. I'm also not > sure whether "ascii" output included the control characters. The following command will generate an "ASCII rendering" of a man page: % zcat /usr/share/man/en.ISO8859-1/man5/rc.conf.5.gz | groff -Tascii -mandoc There also is a more elegant way to turn the long path name into a nice command substitution, in case the actual manual page _file_ is not to be specified explicitely: % zcat `man -w rc.conf` | groff -Tascii -mandoc This output can be easily grepped on a "text only" basis as it doesn't contain any control (replacement) characters anymore. A problem can probably occur when there are entries in more than one section for a given topic, like for example "man 1 open", "man 2 open", and "man 3 open". -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Tue Jan 31 04:02:56 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87A32CC9A24 for ; Tue, 31 Jan 2017 04:02:56 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dnvrco-oedge-vip.email.rr.com", Issuer "dnvrco-oedge-vip.email.rr.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 68EA310DA for ; Tue, 31 Jan 2017 04:02:55 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from [74.134.208.22] ([74.134.208.22:13670] helo=localhost) by dnvrco-omsmta02 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 55/19-16304-DAB00985; Tue, 31 Jan 2017 03:59:42 +0000 Date: Tue, 31 Jan 2017 03:58:33 +0000 Message-ID: <55.19.16304.DAB00985@dnvrco-omsmta02> From: "Thomas Mueller" To: freebsd-questions@freebsd.org Subject: Re: ftp-archive.freebsd.org References: <8c7cb191-c81d-1ddc-97ee-8163595a2a2a@fisglobal.com> X-RR-Connecting-IP: 107.14.64.7:25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 04:02:56 -0000 > A long time ago, probably 3 days at least, I was able to access the sometimes useful ftp-archive.freebsd.org. > Not it appears to misbehave and otherwise be void of content. > Is it just me? > Dave > Dave Robison I tried, with http:// and subsequently ftp:// It looked void of content, just a few empty directories. I remember one could download old versions of FreeBSD, even 1.1. Tom From owner-freebsd-questions@freebsd.org Tue Jan 31 07:59:36 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A558CC9F1D for ; Tue, 31 Jan 2017 07:59:36 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward5h.cmail.yandex.net (forward5h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 074D2898 for ; Tue, 31 Jan 2017 07:59:35 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [IPv6:2a02:6b8:0:f05::115]) by forward5h.cmail.yandex.net (Yandex) with ESMTP id A64302134F; Tue, 31 Jan 2017 10:59:31 +0300 (MSK) Received: from smtp1h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id 14E958C10BE; Tue, 31 Jan 2017 10:59:28 +0300 (MSK) Received: by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id fo5oivr5Cm-xRuKNXGP; Tue, 31 Jan 2017 10:59:27 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0,1 0 Subject: Re: bhyve centos7 To: Eric Melville References: <119f89a2-1c35-036b-1398-1700a3bdd696@passap.ru> Cc: freebsd-questions@freebsd.org From: Boris Samorodov Message-ID: <185aadb4-1646-4a4d-23e2-3f7867e7920e@passap.ru> Date: Tue, 31 Jan 2017 10:57:09 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 07:59:36 -0000 Please, do not use top-posting. 31.01.2017 04:28, Eric Melville пишет: >> Are you sure? This is one instance: >> ----- >> % cat /etc/centos-release >> CentOS Linux release 7.2.1511 (Core) >> % df -T >> Filesystem Type 1K-blocks Used Available Use% Mounted on >> /dev/mapper/centos-root xfs 19351552 13931836 5419716 72% / >> devtmpfs devtmpfs 3995416 0 3995416 0% /dev >> tmpfs tmpfs 4005368 0 4005368 0% /dev/shm >> tmpfs tmpfs 4005368 278792 3726576 7% /run >> tmpfs tmpfs 4005368 0 4005368 0% /sys/fs/cgroup >> /dev/vda1 xfs 508588 295664 212924 59% /boot >> tmpfs tmpfs 801076 0 801076 0% /run/user/1000 >> ----- >> >> The host is HEAD, but CentOS runs on it, well, since the beginning >> of 2016. And I use sysutils/vm-bhyve. >> >> Here is the conf: >> ----- >> guest="linux" >> loader="grub" >> cpu=8 >> memory=8G >> network0_type="virtio-net" >> network0_switch="public" >> disk0_type="virtio-blk" >> disk0_name="disk0.img" >> uuid="XXX" >> network0_mac="XXX" >> grub_run_partition="msdos1" >> grub_run_dir="/grub2" >> ----- >> >> Last two lines differ from v-bhyve docs. > No I am not sure, but a web search reveals that I am definitely not > the only one with this problem, and booting from XFS sounds > problematic if not wholly unsupported. Did you install CentOS 7 > directly or update to it? I installed directly CentOS-7.1 (CentOS-7-x86_64-Minimal-1503-01.iso). I tried the newest version with CentOS-7-x86_64-Minimal-1611.iso and it really failed to load saying "not a correct XFS inode". I rechecked and CentOS-7-x86_64-Minimal-1503-01.iso works fine. > I think using bhyve-uefi or perhaps vm-bhyve may be the answer. vm-bhyve is just shell scripts for bhyve, it does not add any functionality. However it make life more comfortable. ;-) As for uefi, I tried it for graphics UI (ex. Windows) and it really works fine. > The > FreeBSD handbook explains how to install via serial but CentOS gives > no disk configuration options via serial. -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-questions@freebsd.org Tue Jan 31 09:04:45 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CE7CCC6585 for ; Tue, 31 Jan 2017 09:04:45 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward5j.cmail.yandex.net (forward5j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 38F26E60 for ; Tue, 31 Jan 2017 09:04:44 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp3j.mail.yandex.net (smtp3j.mail.yandex.net [95.108.130.68]) by forward5j.cmail.yandex.net (Yandex) with ESMTP id 6A92F211CF; Tue, 31 Jan 2017 12:04:40 +0300 (MSK) Received: from smtp3j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3j.mail.yandex.net (Yandex) with ESMTP id 1199C6241238; Tue, 31 Jan 2017 12:04:25 +0300 (MSK) Received: by smtp3j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id sug2KsOaqC-4OiuN10x; Tue, 31 Jan 2017 12:04:24 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0,1 0 Subject: Re: bhyve centos7 To: Eric Melville References: <119f89a2-1c35-036b-1398-1700a3bdd696@passap.ru> Cc: freebsd-questions@freebsd.org From: Boris Samorodov Message-ID: <258127f9-f68a-25ca-03a4-0bf1589ea9c5@passap.ru> Date: Tue, 31 Jan 2017 12:02:06 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 09:04:45 -0000 31.01.2017 04:28, Eric Melville пишет: > No I am not sure, but a web search reveals that I am definitely not > the only one with this problem, and booting from XFS sounds > problematic if not wholly unsupported. I've found a bug report for grub2 which may be related: http://savannah.gnu.org/bugs/?48645 -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-questions@freebsd.org Tue Jan 31 12:51:59 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EFEC4CC96BA for ; Tue, 31 Jan 2017 12:51:59 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-qt0-x22d.google.com (mail-qt0-x22d.google.com [IPv6:2607:f8b0:400d:c0d::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A2795E8E for ; Tue, 31 Jan 2017 12:51:59 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-qt0-x22d.google.com with SMTP id k15so232763873qtg.3 for ; Tue, 31 Jan 2017 04:51:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rdAeTK+QaTiGZ4mJP41YLNWMz7q8+7d3H13yCYe2foM=; b=J4ItP2m/hSubhZQX1nhrE+O2INVWBXX+eaUOkPc5UikmflyoC4w7o4LzCsCeCzE7NT FcL7rAWzhCTFPxX2U1vb3YXkuk+M4cLe39YO3uiN7p+fJ0BlQ9rpLoWZwf06UWykz4XB tN/qYrxM92Z3KQJWpcCGnoUMB+Ydh3ejyfEcX38YfrtUWdXs9JlkDrc37LYQXKNa0ytw 2T5c6F0rKL/pI7HcXdhnPwoAe0e9pr9cCep/g1kmarpiwLJBaEHf1ycyIPtfmrCQI7J0 OncDuS0eDOOLgoLoyuXvyU9YsVbeNKjutCSHGpBRi8GhfHfRQ51eTkSKqHQ1+lUwcvJe BKKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rdAeTK+QaTiGZ4mJP41YLNWMz7q8+7d3H13yCYe2foM=; b=Wkey01V3tH17J+YA1/gMfgyrg6VxQgtztX8O/MzupoPng/UEQ1zDmHNdPXMhP5eGw4 TshnQV6D+8+b29yJ96slDxnSNsv8VSR86PckaZLrGdJIk2uBVrkMBomFxiLoe6Gwt24+ c/hTNY/yxwpi7YwbU0HfXYO3QS7tG+Q1XDDVyHoc7clQsYwviU2OTpM4nf5pEEiMEI8Q MF/ask4tODCTXhjcajIGX9NKbzxSbf0uofbfiJD/Zy42ydGF64NqSroabBOURL+0n9CC k0Ty1Bvn15VQUZs5qPIzO0hQZS7bz+IPuFw2ebmhoLSqL49FEfbAAx9w+T4ArfF4EjgQ 8wOQ== X-Gm-Message-State: AIkVDXI26xS3iF9UgDDehg0+BAptiWMOn39hqvLdpspLsSzvn9LHmDhzu/Emgf9Hyx662B6AaC7Br4p7ni4yFw== X-Received: by 10.237.44.103 with SMTP id f94mr27541708qtd.292.1485867118840; Tue, 31 Jan 2017 04:51:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.173.40 with HTTP; Tue, 31 Jan 2017 04:51:58 -0800 (PST) In-Reply-To: References: <20170118065516.GA41788@slackbox.erewhon.home> From: krad Date: Tue, 31 Jan 2017 12:51:58 +0000 Message-ID: Subject: Re: issues upgrading from 10.1-RELEASE to 11-RELEASE To: Yudi V Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 12:52:00 -0000 Its worth noting the latest version of pkg will realise there has been an ABI change and upgrade all the packages without having to force them. You can also install the compat libraries as well if you want a quick fix if the rebuild is complex. If you are not using boot environments look into them as well and see if they would be viable for you as they can save a lot of grief, and let you do a lot of this grunt work before the 1st reboot. On 19 January 2017 at 16:36, Yudi V wrote: > Thanks guys the issue is I missed the below section as I followed the > release notes instructions. > 23.2.3.2. Upgrading Packages After a Major Version Upgrade > > ran > > pkg-static install -f pkg > # pkg-static upgrade -f > > > fixed all the issues. Problem was to do with different ABIs. > > -- > Kind regards, > Yudi > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" > From owner-freebsd-questions@freebsd.org Tue Jan 31 12:54:02 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1135CCC97A6 for ; Tue, 31 Jan 2017 12:54:02 +0000 (UTC) (envelope-from carmel_ny@outlook.com) Received: from BLU004-OMC1S21.hotmail.com (blu004-omc1s21.hotmail.com [65.55.116.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BB24EFD8 for ; Tue, 31 Jan 2017 12:54:01 +0000 (UTC) (envelope-from carmel_ny@outlook.com) Received: from NAM04-BN3-obe.outbound.protection.outlook.com ([65.55.116.9]) by BLU004-OMC1S21.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 31 Jan 2017 04:52:54 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=WYD5cAKlA7CBviLDeN0j3LNIyyfJ0qnIZ6CG/BkDpRg=; b=ZKd/RKAhbA4r/++pVQoolSnxHwcGrWWOx9S66jF3gVK3FfHkqhFUEXnAKvteFajZTZ1qzdnAoIu/q2Z2peEjCbOM4xl3+JhwFp5xlavvOum6frIXNUgpUDdwiYcBRI55fd8V7vPnyvsctpINRs97EfohQpkkXLMeWA9A0rHaeeXnaHS8g3XrbQvHp0VxLr4Dt5M9/7g5ipSFeKSVWx0TW8saN0hT+ua1kgVov3nE/JwPKUvIOvyVm23WIlefv03pGnjhZ7ZLO6eDvxtxXvQqRqmKmzUVBevZRBCR3qFK/K0T8mPAl/rBiCDO37IttI64fHbE45Bj5qvdH66Vtm1B7Q== Received: from CO1NAM04FT010.eop-NAM04.prod.protection.outlook.com (10.152.90.54) by CO1NAM04HT053.eop-NAM04.prod.protection.outlook.com (10.152.91.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8; Tue, 31 Jan 2017 12:52:53 +0000 Received: from CY4PR20MB1397.namprd20.prod.outlook.com (10.152.90.59) by CO1NAM04FT010.mail.protection.outlook.com (10.152.90.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Tue, 31 Jan 2017 12:52:53 +0000 Received: from CY4PR20MB1397.namprd20.prod.outlook.com ([10.171.167.147]) by CY4PR20MB1397.namprd20.prod.outlook.com ([10.171.167.147]) with mapi id 15.01.0860.026; Tue, 31 Jan 2017 12:52:53 +0000 From: Gerard Seibert To: "freebsd-questions@freebsd.org" Subject: Programmer's Prayer Thread-Topic: Programmer's Prayer Thread-Index: AQHSe8DvY/Ipxt6Jhk24201O3nu76A== Date: Tue, 31 Jan 2017 12:52:52 +0000 Message-ID: Reply-To: "freebsd-questions@freebsd.org" Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=outlook.com; x-incomingtopheadermarker: OriginalChecksum:CE05B18E7637111C685D63940385125177E143A8B85B3109A947D7FAD8BA848A; UpperCasedChecksum:962BB1D69E5BE103A7B8D25147E56C7AD58C754BD7A4B068AFBFB2CD4AA0280D; SizeAsReceived:7484; Count:35 x-ms-exchange-messagesentrepresentingtype: 1 x-incomingheadercount: 35 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; CO1NAM04HT053; 7:9TwgywYc5kNixLT/0+Qdtbz8JQSFrA1DZTtTz4pTj/GDnWsIqtQ2H7vFOLxeBCGRhlMGF26eOfdVWqsxrm6xgragTYiNVturVE1TG9sBkzqTRicEIXU+bwNiHcqJ1XDK9yw81xEa16DOiErMRv6V7XckSsPXGzaZ++YRCsFWPe3734c88xKJtEePd6Jcz7dCUBueQzo7h+LPi0uQY9lNozuUYY/v7F5qStgqGrYiWlnNHDjvo5loux3PjIIpnh0JaQuYOMI2RH6HPs8rTGltQ+QrPfOzPrIVY+dg8E14GtzdoiW+LjB9FbmJhPz8C7uOnBIpUH2ElYnF+Q+zUuNXEI5YpQrImsfZ3ldg8k1PimmW7FpEIJo13rlzBrzxePowqIUNBusPz94budwAxuvFAQzj/M0JCPzrqFUtrxI9a02dqTyMDF+xdi2D6eu/6XNm x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900005); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1NAM04HT053; H:CY4PR20MB1397.namprd20.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: f4b8bf41-92ae-44b6-f298-08d449d81144 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(5061506379)(5061507307)(1603103113)(1603101340)(1601125047)(1701031023); SRVR:CO1NAM04HT053; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(444112120)(432015012)(82015046); SRVR:CO1NAM04HT053; BCL:0; PCL:0; RULEID:; SRVR:CO1NAM04HT053; x-forefront-prvs: 0204F0BDE2 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <09D29FBB264DD94DA8246840935D6D1D@namprd20.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2017 12:52:52.8596 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM04HT053 X-OriginalArrivalTime: 31 Jan 2017 12:52:54.0146 (UTC) FILETIME=[F03A5E20:01D27BC0] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 12:54:02 -0000 UFJPR1JBTU1FUuKAmVMgUFJBWUVSDQoNCk91ciBwcm9ncmFtLCB3aG8gYXJ0IGluIG1lbW9yeSwN CmNhbGxlZCBieSB0aHkgbmFtZTsNCnRoeSBvcGVyYXRpbmcgc3lzdGVtIHJ1bjsNCnRoeSBmdW5j dGlvbiBiZSBkb25lIGF0IHJ1bnRpbWUNCmFzIGl0IHdhcyBpbiBkZXZlbG9wbWVudC4NCg0KR2l2 ZSB1cyB0aGlzIGRheSBvdXIgZGFpbHkgb3V0cHV0Lg0KYW5kIGZvcmdpdmUgdXMgb3VyIGNvZGUg ZHVwbGljYXRpb24sDQphcyB3ZSBmb3JnaXZlIHRob3NlIHdobw0KZHVwbGljYXRlIGNvZGUgYWdh aW5zdCB1cy4NCg0KQW5kIGxlYWQgdXMgbm90IGluIGZydXN0cmF0aW9uLA0KYnV0IGRlbGl2ZXIg dXMgZnJvbSBHT1RPcy4NCg0KRm9yIHRoaW5lIGlzIHRoZSBhbGdvcml0aG0sDQp0aGUgY29tcHV0 YXRpb24gYW5kIHRoZSBzb2x1dGlvbiwNCmxvb3BpbmcgZm9yZXZlciBhbmQgZXZlci4NCg0KUkVU VVJODQo= From owner-freebsd-questions@freebsd.org Tue Jan 31 13:08:10 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D2A0CC9E8C for ; Tue, 31 Jan 2017 13:08:10 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm9-vm7.bullet.mail.ir2.yahoo.com (nm9-vm7.bullet.mail.ir2.yahoo.com [212.82.96.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 81A79196B for ; Tue, 31 Jan 2017 13:08:08 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1485868081; bh=xjO2Joy+dBIvPBiDU3n+AxlPFJE/wvtP0Yb+Pyiag2M=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject; b=RNN4Ce6esYcYBH5gNsLRKHzC0ltYE0JuZA5PMmB0LG0KNUAH4zSViIVULpbe+rUzbrgMjNxyfvK9mZ31QC0GZoZag+XGPKj1XHQMlxsjPRrXo8uXtXobsGzc2tQqbxMOpU6foBhSu8U7XhgP5mKkMISplgbRxQoC6p+PUV/MIefY1FeF4kO1blWdqQ5U+at7e1feU78GiImQi99LXdFl9bLab+g48PpNwW/+VlHwoe6/+bkj4m584xHn/ftOIzARRaFeBYXUrJY5eRqXr7cZ/DSxxRTsAhTBMuixD2h6QtxqVlK0HiCkCOzPwyoJhgqOWLgTkhtaUCGpPRJ3O2+5Sg== Received: from [212.82.98.59] by nm9.bullet.mail.ir2.yahoo.com with NNFMP; 31 Jan 2017 13:08:01 -0000 Received: from [46.228.39.113] by tm12.bullet.mail.ir2.yahoo.com with NNFMP; 31 Jan 2017 13:08:01 -0000 Received: from [127.0.0.1] by smtp150.mail.ir2.yahoo.com with NNFMP; 31 Jan 2017 13:08:01 -0000 X-Yahoo-Newman-Id: 739913.7572.bm@smtp150.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: AWaIEbIVM1kO9G6rdLYk1Lg7tUkyugUv8_C.LqRq8QKnH7D xmqEDO5BlclhoNxptOfe_AtzCfkGRJMEmtOGI1d0n3ddTbnbBftGhS4UpYrr 6PtPzBuXF7KZBI8iSbpaDxhyBfU0NlRCHP73BXZP0vi3EcjxF2YybRolaKbb f_49bihNO_UNh5xNHIXb3C1WVMwk814A0JSPDfHXWOKlBwiN0nJusUiyIvMo t6JC8N2VMNauMc3Zj4AjyVIZJFOIPwXIe0i9zg5H2ZAvk_AszRbCZqFdJdgV 7K5EppXgpu3gjH.H2R1xwRZ3alEDvquIjry6wJJLEvil0Og2SAJ4TgD8oofq fj.QN9pmwTHT.iKbRZgWKlgClf6iuA8am1zbIiC9DUlMt0Wj6PDVeVL75gTA qzW8A7noBWBu1rcqLqivbdLxkRYhwAvW4xJ5.SblXJsPergqA5xi0c9ZKYbd 16SbhVIJOq4fyPUs1MOyinNBtD7WP9xdrW.0wz_dlri_0ih3L0lmFKoBIvEX yU3yMJlGQQL0Ou4wjqhILkg84ftVTRcDq9OwhMyQdVrWLupxVgEPsxkWlQig kBQTgsyWnmqilsu3BqlWTeboThQ-- X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Date: Tue, 31 Jan 2017 14:08:00 +0100 From: Ralf Mardorf To: freebsd-questions@freebsd.org Subject: Re: Programmer's Prayer Message-ID: <20170131140800.7233d3a3@archlinux.localdomain> In-Reply-To: References: X-Mailer: Claws Mail 3.14.1-19-ge7206c0 (GTK+ 2.24.31; x86_64-arch-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 13:08:10 -0000 Gerard Seibert wrote: >PROGRAMMER=E2=80=99S PRAYER Are you "The Poet Formerly Known As Paul{,a} Nancy Millstone Jennings :p? From owner-freebsd-questions@freebsd.org Tue Jan 31 15:06:46 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 959C4CCA138 for ; Tue, 31 Jan 2017 15:06:46 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 69C6B19E4 for ; Tue, 31 Jan 2017 15:06:46 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id B8FD162305 for ; Tue, 31 Jan 2017 10:06:38 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XVK4GhO6dXsa for ; Tue, 31 Jan 2017 10:06:37 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 4CB6F62186 for ; Tue, 31 Jan 2017 10:06:37 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1485875197; bh=g3Yt9N84rquseQ6sIUEr4963M8EA+LqCA200zO2Mq5w=; h=Date:Subject:From:To:Reply-To; b=pdiFn9t2gy6NweSN36zXdOSJZEw5WcCxkHHFc4RScQFJolTnEJUsEjb/OMM1MYY8g GkGk/tJAKnMQyNauzC5eUEmsWuOuoQG084CzwHuvKksCOIRU1dLombE2hktS3YZLsE OcSbkZjbG2tsAO3u+axBq9ViWsp0j9OgpSE5j8Qajg0PhGxpQKMn1VGAz1fDU/n1Qb JpB4+naaaVvdgNt80VDylubNLkH+CyV39YXJXnIEg5NZG2yHRR6sj20vqTY0Az1UBT hiOOHZW3HIUTUKZe7cm6vlV2KtBJTmkf8ehN6b4GXPnAGCtp2vWzQqVQEnmWW2+r58 j7x+2vd2/Sd4w== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Tue, 31 Jan 2017 10:06:37 -0500 Message-ID: Date: Tue, 31 Jan 2017 10:06:37 -0500 Subject: Variable assignment in sh From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 15:06:46 -0000 Why am I getting this result when I attempt a simple variable assignment in the default sh? # ENV=$HOME/.shrc; export ENV ENV=/root/.shrc: Command not found. export: Command not found. This example is taken verbatim from the sh manpage provided with FreeBSD. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Tue Jan 31 15:13:45 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DBA5CCA60F for ; Tue, 31 Jan 2017 15:13:45 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: from mail-yb0-x22e.google.com (mail-yb0-x22e.google.com [IPv6:2607:f8b0:4002:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CF7E46D9 for ; Tue, 31 Jan 2017 15:13:44 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: by mail-yb0-x22e.google.com with SMTP id o65so35814462ybo.2 for ; Tue, 31 Jan 2017 07:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hF8pSkGWPD3TEmMxwkrlDKx8jxq0WQX/vbeVPvuc6z4=; b=K2r+OMSNXhpcS4QFPhlCMt36gBdMifaCRXPAhxobS3yVIdvSR4FSOLwekyJJfIPNb2 ylQ+d8WYdiMgQc/OA+JPY4Na97gmHKAuDylOTAUT634lW677hwobUZ3+5nsQGjKZN+Fr 1tgF51hkRMvrVyQ8f8ZgD9rf/+zKxOCf+lrPHFiUSvWKMUPiSHsV0eW4ioQmtD5DhqCq kK4R14j6yA0ksfi4Dttd1avG54Svq3kqXw1tiTNBaFjxMdhcA8TKjorrdJnODYC5geQm PFKAfQiw8DJI+D3RXxGlwSpZpfhN9KsUS4Zh1lZz1b3ir7x1fLCebefcL54IkPx32w2z 4YZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=hF8pSkGWPD3TEmMxwkrlDKx8jxq0WQX/vbeVPvuc6z4=; b=rCwgZIY/n+x8H71JmQnOJnbuUhGkFQFmSfeWuh1WRgMnX3NkDxxv2zZy4UE8VtTgfC cHjHQhN+XkKc7Uzbxl7F6UbmbvAqHLf7IvYsQAlENCS7lYS0rHy9pmeNFzuh8V+qKYJB l9Y2sUWq15RMY0Nzi9GfcY/zflCnnpCMu6cDYwKlabnGn/MZicyGpwpzn7j27pgYcVT0 w/pnXmF8iV2/cT+ThACXpDxr344BGX9P8jT+bXO5wCPe8adnW/IjhuYu/VjYtVSyIOjL Z4kDD13oXLZQKpuL5vsgkajvciEvw5sz94fV5Gko+q/HbE5sy41vkF12RYqYznTnxBpF Rf4Q== X-Gm-Message-State: AIkVDXLFkj4iRm/2cROqgPnwBiYSMA5PrH66DSdrUFvkda5mb7lflT3dCX6Tg8ECmppK2DykcsPTb4gPiEZ5aA== X-Received: by 10.129.72.13 with SMTP id v13mr18933515ywa.22.1485875623930; Tue, 31 Jan 2017 07:13:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.64.65 with HTTP; Tue, 31 Jan 2017 07:13:43 -0800 (PST) In-Reply-To: References: From: William Dudley Date: Tue, 31 Jan 2017 10:13:43 -0500 Message-ID: Subject: Re: Variable assignment in sh To: byrnejb@harte-lyne.ca, freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 15:13:45 -0000 probably because the default shell in FreeBSD is csh, which uses entirely different syntax. run bash or sh and then try your example. Bill Dudley This email is free of malware because I run Linux. On Tue, Jan 31, 2017 at 10:06 AM, James B. Byrne via freebsd-questions < freebsd-questions@freebsd.org> wrote: > Why am I getting this result when I attempt a simple variable > assignment in the default sh? > > # ENV=$HOME/.shrc; export ENV > ENV=/root/.shrc: Command not found. > export: Command not found. > > This example is taken verbatim from the sh manpage provided with FreeBSD. > > > > -- > *** e-Mail is NOT a SECURE channel *** > Do NOT transmit sensitive data via e-Mail > Do NOT open attachments nor follow links sent by e-Mail > > James B. Byrne mailto:ByrneJB@Harte-Lyne.ca > Harte & Lyne Limited http://www.harte-lyne.ca > 9 Brockley Drive vox: +1 905 561 1241 > Hamilton, Ontario fax: +1 905 561 0757 > Canada L8E 3C3 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" > From owner-freebsd-questions@freebsd.org Tue Jan 31 15:19:07 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C1BBCCA7E8 for ; Tue, 31 Jan 2017 15:19:07 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay13.qsc.de (mailrelay13.qsc.de [212.99.187.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7BE8F925 for ; Tue, 31 Jan 2017 15:19:05 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay13.qsc.de; Tue, 31 Jan 2017 16:20:24 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id B17533CC3F; Tue, 31 Jan 2017 16:18:24 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v0VFIOFM002135; Tue, 31 Jan 2017 16:18:24 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 31 Jan 2017 16:18:24 +0100 From: Polytropon To: byrnejb@harte-lyne.ca Cc: "James B. Byrne via freebsd-questions" Subject: Re: Variable assignment in sh Message-Id: <20170131161824.a9f1ef46.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay13.qsc.de with BCB54689AC9 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1848 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 15:19:07 -0000 On Tue, 31 Jan 2017 10:06:37 -0500, James B. Byrne via freebsd-questions wrote: > Why am I getting this result when I attempt a simple variable > assignment in the default sh? > > # ENV=$HOME/.shrc; export ENV > ENV=/root/.shrc: Command not found. > export: Command not found. > > This example is taken verbatim from the sh manpage provided with FreeBSD. This looks like you're running a sh command inside csh. Note that the C shell (FreeBSD's default interactive shell) does variable assignments differently: setenv ENV /root/.shrc set FOO = 1 See "man csh" for details. The command you've presented looks like it would belong into a shell script (FreeBSD's default scripting shell)... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Tue Jan 31 15:38:01 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 550FACC82E3 for ; Tue, 31 Jan 2017 15:38:01 +0000 (UTC) (envelope-from richard.harris@united-email.info) Received: from mserver.united-email.info (mail.united-email.info [137.59.52.162]) by mx1.freebsd.org (Postfix) with ESMTP id 37B91295 for ; Tue, 31 Jan 2017 15:37:58 +0000 (UTC) (envelope-from richard.harris@united-email.info) Received: from GregPC (unknown [202.133.79.30]) by mserver.united-email.info (Postfix) with ESMTPA id 26AFB8359A for ; Tue, 31 Jan 2017 21:02:06 +0530 (IST) Reply-To: From: "Richard Harris" To: Subject: List Procurement Date: Tue, 31 Jan 2017 10:29:43 -0500 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdJ71bwWgCImNSLjQlOWt674nIj9Dw== Content-Language: en-us x-cr-hashedpuzzle: BubR DZho EF0k FHd5 Fpfg Fs2D F1eQ G5Ir HLiA I3fv JLxm JopM KCqQ Km9J Lt9p MDxN; 1; ZgByAGUAZQBiAHMAZAAtAHEAdQBlAHMAdABpAG8AbgBzAEAAZgByAGUAZQBiAHMAZAAuAG8AcgBnAA==; Sosha1_v1; 7; {E203E496-3E36-4707-9662-6C75FA1317FB}; cgBpAGMAaABhAHIAZAAuAGgAYQByAHIAaQBzAEAAdQBuAGkAdABlAGQALQBlAG0AYQBpAGwALgBpAG4AZgBvAA==; Tue, 31 Jan 2017 15:28:30 GMT; TABpAHMAdAAgAFAAcgBvAGMAdQByAGUAbQBlAG4AdAA= x-cr-puzzleid: {E203E496-3E36-4707-9662-6C75FA1317FB} Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 15:38:01 -0000 Hi, =20 Hope you are doing well; I am writing in regards to see if there are any possibilities for us to work with your company. I do research on = companies that have a similar profile to our clients and got your contact = information. We are a reputed database provider with a master database of over 100 million business records with complete information which can be used for multi-channel marketing across the globe. =20 Specific Lists:=20 =20 =B7 All C-level executives List - CEO, CFO, CIO, CTO, CMO, CISO, = CSO, COO, CNO etc.=20 =B7 All Key decision makers List - All C-level, VP level, = Director level executives etc.=20 =B7 CMO, VP of Marketing, Director of Marketing, VP of HR, = Director HR & HR Manager, etc.=20 =B7 IT Executives List - CIO, CTO, CISO, IT-VP, IT-Director, IT Manager, MIS Manager Etc.=20 =B7 Profession Based Lists - Doctors, Physicians, Nurse, = Attorneys, Lawyers, Accountants, etc.=20 =B7 Industry Specific Lists - Healthcare, Chemical, = Pharmaceutical, Biotechnology, Insurance, Finance/Banking, Telecom, Retail, Consulting, K-12, Information Technology, Electronics, Food and Beverage, = Construction, Engineering, Computer Software/Hardware, Transportation, Education, HR, SMB/SME, Business Services, Oil and Gas, Energy and Utilities, Media, Manufacturing, Automotive, Marketing/Advertising etc..=20 =20 Technology Based Lists: Salesforce.com, Oracle, SAP, IBM, Microsoft, PeopleSoft, JD Edwards, SIEBEL, Sage, Adobe, Linux, VMware, Teradata, = Dell, etc. =20 Industry Specific List: Healthcare, Telecom, manufacturing, Oil & Gas, Pharmacy, Software, Retail, Real Estate, Construction, Energy, = Government, Banking, Legal, Transportation, Wholesale, Agriculture, Business = Service, Marketing, Education, Hospitality And Media Internet. =20 =A7 Industry Type: - =A7 Geography:- =A7 Title:- =A7 Employee Size (if any):- =A7 Revenue Size (if any):-=20 =20 Look forward to hear back from you. =20 Kindest Regards, Richard Harris | Marketing Executive P: +1 610 572 4885 Database Reach: USA, UK, Europe, Australia, Singapore, South Africa, = ASIA Pacific etc. To Opt-out please respond REMOVE =20 From owner-freebsd-questions@freebsd.org Tue Jan 31 17:11:53 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E1EBCCAEAF for ; Tue, 31 Jan 2017 17:11:53 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5B30F1E6B for ; Tue, 31 Jan 2017 17:11:53 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 3F4F162223 for ; Tue, 31 Jan 2017 12:11:51 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZzIgH8EPO3qB for ; Tue, 31 Jan 2017 12:11:49 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id E2A8A6216C for ; Tue, 31 Jan 2017 12:11:48 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1485882709; bh=OESJaRdAui4ikiei8IF2VEJKykgOb1i9Wq93g7EfFPQ=; h=In-Reply-To:References:Date:Subject:From:To:Reply-To; b=pQboyaILoobKn6i52J7pUFaLqBN0V8w1NSGiVbUG/pEDOlvEuUMI9f/CJpwQDS22p Wynkx92mQY3am8KpxW8o1aGdpMc5pliX8pulP7ELLfKXdTqqDppaKUHG0EhvwfrZ8n mWmEzzJIQnNK8jheIwQ54dfOy2ZrhDrCXnPoHIqZNEc2L4wvyxaxkiLd2QSCZd1lm5 Mi872nWc8qL3PMCPJQtHxATNMGqrF+D2TNs2VtETzlz3ACoOFT31jmvoUzvYhSbflp qXBd78KLq/kVgvjqD+8scqPzQzdJx/4ZgwlXhooyoL/qcxrLw55kkJy4zMqASoLelK H08SuIIvSu0hw== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Tue, 31 Jan 2017 12:11:49 -0500 Message-ID: In-Reply-To: <20170131161824.a9f1ef46.freebsd@edvax.de> References: <20170131161824.a9f1ef46.freebsd@edvax.de> Date: Tue, 31 Jan 2017 12:11:49 -0500 Subject: Re: Variable assignment in sh From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 17:11:53 -0000 On Tue, January 31, 2017 10:18, Polytropon wrote: > On Tue, 31 Jan 2017 10:06:37 -0500, James B. Byrne via > freebsd-questions wrote: >> Why am I getting this result when I attempt a simple variable >> assignment in the default sh? >> >> # ENV=$HOME/.shrc; export ENV >> ENV=/root/.shrc: Command not found. >> export: Command not found. >> >> This example is taken verbatim from the sh manpage provided with >> FreeBSD. > > This looks like you're running a sh command inside csh. > Note that the C shell (FreeBSD's default interactive shell) > does variable assignments differently: > > setenv ENV /root/.shrc > > set FOO = 1 > > See "man csh" for details. > > The command you've presented looks like it would belong into > a shell script (FreeBSD's default scripting shell)... > I note that root is configured in FreeBSD with a default shell of /bin/csh and that the user toor has no default shell specified at all notwithstanding having a Real Name of 'Bourne-again Superuser'. I checked several of our FreeBSD hosts and all have the same configuration for root and toor so I infer that this is how FreeBSD is shipped. My problem was running a status check command from cron. Having noted that it was failing I tried testing the command having logged on to the FreeBSD server as root (using ssh with certificates). This is the user with which cron is configured to execute this particular command. I am somewhat puzzled by your comment: > a shell script (FreeBSD's default scripting shell) What does this mean exactly? Is not CSH a shell? I thought that the shell used in cron was the shell of the user associated with the crontab file? What is cron's default shell otherwise? In any case, I now have set the shell in the root crontab file explicitly to /usr/local/bin/bash in hopes of avoiding this problem in the future. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Tue Jan 31 17:27:31 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24C0ACCA1B6 for ; Tue, 31 Jan 2017 17:27:31 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 82C178E7 for ; Tue, 31 Jan 2017 17:27:30 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 55575A685 for ; Tue, 31 Jan 2017 17:27:25 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/55575A685; dkim=none; dkim-atps=neutral Subject: Re: Variable assignment in sh To: freebsd-questions@freebsd.org References: <20170131161824.a9f1ef46.freebsd@edvax.de> From: Matthew Seaman Message-ID: <55ebe089-8e89-cad3-dbb7-55b9918e8cca@FreeBSD.org> Date: Tue, 31 Jan 2017 17:27:19 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="QITHRtdrWmjP7LanHxAliNefBLfgOmNNK" X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,RCVD_IN_RP_RNBL, RDNS_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 17:27:31 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --QITHRtdrWmjP7LanHxAliNefBLfgOmNNK Content-Type: multipart/mixed; boundary="6J9qgRCP2kvX2EqF3mM1XHi9kjLoXd3ue"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <55ebe089-8e89-cad3-dbb7-55b9918e8cca@FreeBSD.org> Subject: Re: Variable assignment in sh References: <20170131161824.a9f1ef46.freebsd@edvax.de> In-Reply-To: --6J9qgRCP2kvX2EqF3mM1XHi9kjLoXd3ue Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2017/01/31 17:11, James B. Byrne via freebsd-questions wrote: >> a shell script (FreeBSD's default scripting shell) > What does this mean exactly? Is not CSH a shell? I thought that the > shell used in cron was the shell of the user associated with the > crontab file? What is cron's default shell otherwise? He's making a distinction between a shell for interactive use -- which defaults to tcsh or csh in the FreeBSD base system -- and a shell used for programming shell scripts -- which defaults to /bin/sh. Of course, either shell can be used in either role, but writing scripts in csh is a bit painful, and /bin/sh doesn't have all the nice bells'n'whistles for interactive use. The default shell used for cron jobs is /bin/sh, irrespective of the login shell of the user who owns the crontab. You can override this from within the crontab by adding eg. SHELL=3D/bin/tcsh and, of course, you can just specify the appropriate shell on the command line inside crontab or by setting a #! line at the top of any executable scripts. Cheers, Matthew --6J9qgRCP2kvX2EqF3mM1XHi9kjLoXd3ue-- --QITHRtdrWmjP7LanHxAliNefBLfgOmNNK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJYkMj8XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTn40EP/3oFh8U5QMCWa3mXPaH/wAiF Scgvt1zVkqu4skY+alWPdndcvb2+aM6trDGumC6Vv8l1cAfKjhNtkgpmU2q7bHJw p81RJngDa1R6phS8NuFxQWfZEKDIDpB+2OdfqHo46iNf+8tnItWAx0kViQ4oS/j2 lIgOhgbr4jmwTvOmv9OB0+l7/hdeGfPccCgVtAstS/WQM9taleocLmAUDNgsj1j+ nYBzBaH0OBI6HiF0LQ/RtZ7MlC14Tt4rZ1j+l4pCypbbPZxG7V8XoWe1NYIHzs25 brh0ajVQJ2QdNZogRZ/AQKSHVQXY/wFwQpn+ptpzl+WqmuC7WyejCo6o5nZIFj7k 1MFf6M2JoqjTNcDZfCDaNz8opxbAgy9VrHJTaWHzSvvR4Zekzx5trdIfSmgPuUBh 8QXz/IPoHmYqoCdA7Iy+LSH9cjaKW6Ah0pndsA1zqs//b7D4+SCmAK8EViGjhDri bm62ovR2RX9DKnQ0vwMDSJkw+cTEartW+mbG+i4cfaLhBgcPG7Rxb0MHAUadqI7G Syif4pBC1dEY0bcTG/uhnfxmfsxx4ifNvuhk+AV3+wnCKMgv3xEMg7Bnms40KEim izPIl5wVaw41kW8oyLP5Mohlj0VqhN6EFgVSOLfU1sDKBPIEV/Gy71Ajpt/kSQVI sjeNIuQtki/Iu94jmxAN =N+B3 -----END PGP SIGNATURE----- --QITHRtdrWmjP7LanHxAliNefBLfgOmNNK-- From owner-freebsd-questions@freebsd.org Tue Jan 31 17:44:05 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0AC0CCA882 for ; Tue, 31 Jan 2017 17:44:05 +0000 (UTC) (envelope-from sem33@yandex-team.ru) Received: from forwardcorp1h.cmail.yandex.net (forwardcorp1h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::e5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C27014A5 for ; Tue, 31 Jan 2017 17:44:04 +0000 (UTC) (envelope-from sem33@yandex-team.ru) Received: from smtpcorp1p.mail.yandex.net (smtpcorp1p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b6:10]) by forwardcorp1h.cmail.yandex.net (Yandex) with ESMTP id 0A19720C4E for ; Tue, 31 Jan 2017 20:44:02 +0300 (MSK) Received: from smtpcorp1p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtpcorp1p.mail.yandex.net (Yandex) with ESMTP id 084376E40B0A for ; Tue, 31 Jan 2017 20:44:02 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:401:7406:43b4:9626:4174]) by smtpcorp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id HiWqKPjETK-i1ku2X5J; Tue, 31 Jan 2017 20:44:01 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1485884642; bh=71VoQ56WmvmhcuArO2sWjPP2IdQkN/1GoUAACcCUWAc=; h=To:From:Subject:Message-ID:Date; b=IZs01M/fxh9e7D7QEnI7zPLyNjfDZT++tncTUoQn8gFPWTqAtSy2jLTFXxRQYodBb gJYxg21MsoKI7gJIINwjGvi+noUZo3xRAfNQGFSYshsHi9TgqAU+MO68tgyHRA4AwE TIlb4i5Q/rhmdXbrBUCqimZbhmFJF7MPbOvpJXKI= Authentication-Results: smtpcorp1p.mail.yandex.net; dkim=pass header.i=@yandex-team.ru To: freebsd-questions@freebsd.org From: Sergey Matveychuk Subject: boot from second disk Message-ID: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru> Date: Tue, 31 Jan 2017 20:44:01 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 17:44:05 -0000 Hi. I set up FreeBSD 11.0 on first disk and next I added second disk and I want to do a mirror remotely. I followed instructions on https://www.freebsd.org/doc/handbook/geom-mirror.html With one difference: I use GPT partitions (as default in the FreeBSD intaller): # gpart show ada0 => 40 351651808 ada0 GPT (168G) 40 1024 1 freebsd-boot (512K) 1064 343931904 2 freebsd-ufs (164G) 343932968 7718879 3 freebsd-swap (3.7G) And I stuck on "Restart the system, booting from ada1". I don't know how to do it remotely (IPMI is not available there). I tried echo "1:ad(1,a)/boot/loader" > /boot.config But it does not look work. What should be correct content of /boot.config for GPT? From owner-freebsd-questions@freebsd.org Tue Jan 31 17:51:20 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D325DCCAB1D for ; Tue, 31 Jan 2017 17:51:20 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay11.qsc.de (mailrelay11.qsc.de [212.99.187.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5564917CC for ; Tue, 31 Jan 2017 17:51:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Tue, 31 Jan 2017 18:53:51 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 726FF3CC56; Tue, 31 Jan 2017 18:51:04 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v0VHp3uh002827; Tue, 31 Jan 2017 18:51:04 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 31 Jan 2017 18:51:03 +0100 From: Polytropon To: byrnejb@harte-lyne.ca Cc: "James B. Byrne via freebsd-questions" Subject: Re: Variable assignment in sh Message-Id: <20170131185103.7f911dfb.freebsd@edvax.de> In-Reply-To: References: <20170131161824.a9f1ef46.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay11.qsc.de with BF9576A3591 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2410 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 17:51:20 -0000 On Tue, 31 Jan 2017 12:11:49 -0500, James B. Byrne via freebsd-questions wrote: > > On Tue, January 31, 2017 10:18, Polytropon wrote: > > On Tue, 31 Jan 2017 10:06:37 -0500, James B. Byrne via > > freebsd-questions wrote: > >> Why am I getting this result when I attempt a simple variable > >> assignment in the default sh? > >> > >> # ENV=$HOME/.shrc; export ENV > >> ENV=/root/.shrc: Command not found. > >> export: Command not found. > >> > >> This example is taken verbatim from the sh manpage provided with > >> FreeBSD. > > > > This looks like you're running a sh command inside csh. > > Note that the C shell (FreeBSD's default interactive shell) > > does variable assignments differently: > > > > setenv ENV /root/.shrc > > > > set FOO = 1 > > > > See "man csh" for details. > > > > The command you've presented looks like it would belong into > > a shell script (FreeBSD's default scripting shell)... > > > > I note that root is configured in FreeBSD with a default shell of > /bin/csh and that the user toor has no default shell specified at all > notwithstanding having a Real Name of 'Bourne-again Superuser'. I > checked several of our FreeBSD hosts and all have the same > configuration for root and toor so I infer that this is how FreeBSD is > shipped. That is correct. The user toor has no shell assigned per default ("inactive user"), and root, as well as all other users, default to the C shell as the login shell (which typically is an interactive shell). The real names for the users can be set according to your needs, they have a more or less "descriptive value". :-) > My problem was running a status check command from cron. Having noted > that it was failing I tried testing the command having logged on to > the FreeBSD server as root (using ssh with certificates). This is the > user with which cron is configured to execute this particular command. You simply ran into the "wrong shell" problem. :-) > I am somewhat puzzled by your comment: > > > a shell script (FreeBSD's default scripting shell) > > What does this mean exactly? Is not CSH a shell? I thought that the > shell used in cron was the shell of the user associated with the > crontab file? What is cron's default shell otherwise? FreeBSD comes with two shells: sh (Bourne shell, actually an Almquist shell) is the shell that is used for scripting. Most shell scripts start with #!/bin/sh, which refers to that shell. csh (C shell, actually a tcsh) is the shell for interactive logins and dialog use. Many users prefer to replace it with something they add from ports or packages, like zsh or bash. It is possible to use that shell for scripting as well, but nobody actually does this because it's quite terrible. :-) As cron usually executes shell scripts, sh is being used (and that explains the sh syntax you've mentioned). The system-wide /etc/crontab defines SHELL and PATH for commands it executes. If you'd wanted to interactively test something you want to run via cron, execute "sh" from your csh prompt to run an interactive session. Keep in mind that sh _can_ be used interactively too, but it's somewhat limited in features. You can also store the commands in a file and execute them with "sh testfile.sh", or make the script executable and then run it, "chmod +x testfile.sh" and then "./testfile.sh". > In any case, I now have set the shell in the root crontab file > explicitly to /usr/local/bin/bash in hopes of avoiding this problem in > the future. That _might_ introduce problems in the future when bash is not available. My suggestion: Use /bin/sh for scripting except you need to rely on a "bash-ism", a feature that bash can provide, but sh cannot. However, you can use bash interactively to test sh commands, there is "backward compatibility" (bash can be seen as a superset of sh). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Tue Jan 31 17:56:44 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2199CCCAE76 for ; Tue, 31 Jan 2017 17:56:44 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E7AE11C5C for ; Tue, 31 Jan 2017 17:56:43 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 3937262309; Tue, 31 Jan 2017 12:56:42 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U68JTffnzjnS; Tue, 31 Jan 2017 12:56:40 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 66C4B62261; Tue, 31 Jan 2017 12:56:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1485885400; bh=bYajy2HBpZVXE8eRbLQI5OxhXX8hQR+8qtduc5FpAeo=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=R/31Q7GuN/cgjqI2ErA/HONNp16F0/9/7qUkOdISjC/QuYTpIn8yZ//vHSmfo9Uu+ kyl1g80FweQzCKayQmHxGeN7e2sn4/10iZwrOLY4TascqhuJrLcLOeqypWMw+yWeRo fNFCK2tRVKxFnL+iDphXmZHifwA7JGrkA5en2S/S171dchfEhkXiY+hcVupKqkC3Nw v2lRVSkYOnDyENezwSs/6+rKZDe6zThMpE3ammatpdTCEAD1aX4J8HwHyCxaYCJtLr J+663nTJqb7VlUbMZjIpAItkiJCqpKcFROzDSl5Yq1EeqbONTuhR4UbqngsdoU6q1m kbs8wfP/2wUMA== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Tue, 31 Jan 2017 12:56:40 -0500 Message-ID: <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> In-Reply-To: <20170131185103.7f911dfb.freebsd@edvax.de> References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> Date: Tue, 31 Jan 2017 12:56:40 -0500 Subject: Re: Variable assignment in sh From: "James B. Byrne" To: "Polytropon" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 17:56:44 -0000 On Tue, January 31, 2017 12:51, Polytropon wrote: > On Tue, 31 Jan 2017 12:11:49 -0500, James B. Byrne via > freebsd-questions wrote: >> >> In any case, I now have set the shell in the root crontab file >> explicitly to /usr/local/bin/bash in hopes of avoiding this problem >> in the future. > > That _might_ introduce problems in the future when bash is not > available. My suggestion: Use /bin/sh for scripting except you > need to rely on a "bash-ism", a feature that bash can provide, > but sh cannot. However, you can use bash interactively to test > sh commands, there is "backward compatibility" (bash can be seen > as a superset of sh). > How would bash become unavailable on this particular system without someone specifically removing it? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Tue Jan 31 18:21:57 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48A27CC982B for ; Tue, 31 Jan 2017 18:21:57 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.20.71]) by mx1.freebsd.org (Postfix) with ESMTP id 0F091C9C for ; Tue, 31 Jan 2017 18:21:56 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id AE658CB8CAA; Tue, 31 Jan 2017 12:21:49 -0600 (CST) Received: from 128.135.52.6 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Tue, 31 Jan 2017 12:21:49 -0600 (CST) Message-ID: <33925.128.135.52.6.1485886909.squirrel@cosmo.uchicago.edu> In-Reply-To: <20170131185103.7f911dfb.freebsd@edvax.de> References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> Date: Tue, 31 Jan 2017 12:21:49 -0600 (CST) Subject: Re: Variable assignment in sh From: "Valeri Galtsev" To: "Polytropon" Cc: byrnejb@harte-lyne.ca, "James B. Byrne via freebsd-questions" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 18:21:57 -0000 On Tue, January 31, 2017 11:51 am, Polytropon wrote: > On Tue, 31 Jan 2017 12:11:49 -0500, James B. Byrne via freebsd-questions > wrote: >> >> On Tue, January 31, 2017 10:18, Polytropon wrote: >> > On Tue, 31 Jan 2017 10:06:37 -0500, James B. Byrne via >> > freebsd-questions wrote: >> >> Why am I getting this result when I attempt a simple variable >> >> assignment in the default sh? >> >> >> >> # ENV=$HOME/.shrc; export ENV >> >> ENV=/root/.shrc: Command not found. >> >> export: Command not found. >> >> >> >> This example is taken verbatim from the sh manpage provided with >> >> FreeBSD. >> > >> > This looks like you're running a sh command inside csh. >> > Note that the C shell (FreeBSD's default interactive shell) >> > does variable assignments differently: >> > >> > setenv ENV /root/.shrc >> > >> > set FOO = 1 >> > >> > See "man csh" for details. >> > >> > The command you've presented looks like it would belong into >> > a shell script (FreeBSD's default scripting shell)... >> > >> >> I note that root is configured in FreeBSD with a default shell of >> /bin/csh and that the user toor has no default shell specified at all >> notwithstanding having a Real Name of 'Bourne-again Superuser'. I >> checked several of our FreeBSD hosts and all have the same >> configuration for root and toor so I infer that this is how FreeBSD is >> shipped. > > That is correct. The user toor has no shell assigned per > default ("inactive user"), and root, as well as all other > users, default to the C shell as the login shell (which > typically is an interactive shell). Regular users do not default to csh, but to sh if you don't specify particular shell on "pw adduser" command. That aside, thanks a lot for your instructive explanations!! Valeri > The real names for > the users can be set according to your needs, they have > a more or less "descriptive value". :-) > > > >> My problem was running a status check command from cron. Having noted >> that it was failing I tried testing the command having logged on to >> the FreeBSD server as root (using ssh with certificates). This is the >> user with which cron is configured to execute this particular command. > > You simply ran into the "wrong shell" problem. :-) > > > >> I am somewhat puzzled by your comment: >> >> > a shell script (FreeBSD's default scripting shell) >> >> What does this mean exactly? Is not CSH a shell? I thought that the >> shell used in cron was the shell of the user associated with the >> crontab file? What is cron's default shell otherwise? > > FreeBSD comes with two shells: > > sh (Bourne shell, actually an Almquist shell) is the shell that > is used for scripting. Most shell scripts start with #!/bin/sh, > which refers to that shell. > > csh (C shell, actually a tcsh) is the shell for interactive logins > and dialog use. Many users prefer to replace it with something > they add from ports or packages, like zsh or bash. It is possible > to use that shell for scripting as well, but nobody actually does > this because it's quite terrible. :-) > > As cron usually executes shell scripts, sh is being used (and > that explains the sh syntax you've mentioned). The system-wide > /etc/crontab defines SHELL and PATH for commands it executes. > > If you'd wanted to interactively test something you want to run > via cron, execute "sh" from your csh prompt to run an interactive > session. Keep in mind that sh _can_ be used interactively too, > but it's somewhat limited in features. You can also store the > commands in a file and execute them with "sh testfile.sh", or > make the script executable and then run it, "chmod +x testfile.sh" > and then "./testfile.sh". > > > >> In any case, I now have set the shell in the root crontab file >> explicitly to /usr/local/bin/bash in hopes of avoiding this problem in >> the future. > > That _might_ introduce problems in the future when bash is not > available. My suggestion: Use /bin/sh for scripting except you > need to rely on a "bash-ism", a feature that bash can provide, > but sh cannot. However, you can use bash interactively to test > sh commands, there is "backward compatibility" (bash can be seen > as a superset of sh). > > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++ From owner-freebsd-questions@freebsd.org Tue Jan 31 19:01:48 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D189ECCA4A2 for ; Tue, 31 Jan 2017 19:01:48 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay14.qsc.de (mailrelay14.qsc.de [212.99.163.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 45597905 for ; Tue, 31 Jan 2017 19:01:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay14.qsc.de; Tue, 31 Jan 2017 20:04:37 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 9AC4E3CC56; Tue, 31 Jan 2017 20:01:43 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v0VJ1hFK003041; Tue, 31 Jan 2017 20:01:43 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 31 Jan 2017 20:01:43 +0100 From: Polytropon To: byrnejb@harte-lyne.ca Cc: freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh Message-Id: <20170131200143.00c5e5da.freebsd@edvax.de> In-Reply-To: <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay14.qsc.de with 4C005683426 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1924 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 19:01:48 -0000 On Tue, 31 Jan 2017 12:56:40 -0500, James B. Byrne wrote: > > On Tue, January 31, 2017 12:51, Polytropon wrote: > > On Tue, 31 Jan 2017 12:11:49 -0500, James B. Byrne via > > freebsd-questions wrote: > >> > >> In any case, I now have set the shell in the root crontab file > >> explicitly to /usr/local/bin/bash in hopes of avoiding this problem > >> in the future. > > > > That _might_ introduce problems in the future when bash is not > > available. My suggestion: Use /bin/sh for scripting except you > > need to rely on a "bash-ism", a feature that bash can provide, > > but sh cannot. However, you can use bash interactively to test > > sh commands, there is "backward compatibility" (bash can be seen > > as a superset of sh). > > > > How would bash become unavailable on this particular system without > someone specifically removing it? A rare occassion, but possible. Let's say in a worst-case scenario, /usr isn't mounted, and you need to stick with what's on /, then bash, which per default is /usr/local/bin/bash, isn't available. However, bash can be linked statically _and_ copied to a location on /, then you won't have that kind of problem. Portability also could be a problem when you try to run something that expects bash on a system where bash isn't installed. Always keep in mind that bash is _not_ part of FreeBSD, while sh is. I know, those are very special cases, and if your goal is not portability and "guaranteed availability", then it won't hit you. I just thought it's worth being mentioned. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Tue Jan 31 19:05:10 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0035ACCA6D1 for ; Tue, 31 Jan 2017 19:05:10 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay10.qsc.de (mailrelay10.qsc.de [212.99.163.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 67408AAC for ; Tue, 31 Jan 2017 19:05:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay10.qsc.de; Tue, 31 Jan 2017 20:05:07 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 75F6A3CC5C; Tue, 31 Jan 2017 20:04:59 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v0VJ4xqJ003058; Tue, 31 Jan 2017 20:04:59 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 31 Jan 2017 20:04:59 +0100 From: Polytropon To: galtsev@kicp.uchicago.edu Cc: byrnejb@harte-lyne.ca, "James B. Byrne via freebsd-questions" Subject: Re: Variable assignment in sh Message-Id: <20170131200459.aaeaa5e6.freebsd@edvax.de> In-Reply-To: <33925.128.135.52.6.1485886909.squirrel@cosmo.uchicago.edu> References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <33925.128.135.52.6.1485886909.squirrel@cosmo.uchicago.edu> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay10.qsc.de with A4312683450 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2015 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 19:05:10 -0000 On Tue, 31 Jan 2017 12:21:49 -0600 (CST), Valeri Galtsev wrote: > > On Tue, January 31, 2017 11:51 am, Polytropon wrote: > > On Tue, 31 Jan 2017 12:11:49 -0500, James B. Byrne via freebsd-questions > > wrote: > >> > >> On Tue, January 31, 2017 10:18, Polytropon wrote: > >> > On Tue, 31 Jan 2017 10:06:37 -0500, James B. Byrne via > >> > freebsd-questions wrote: > >> >> Why am I getting this result when I attempt a simple variable > >> >> assignment in the default sh? > >> >> > >> >> # ENV=$HOME/.shrc; export ENV > >> >> ENV=/root/.shrc: Command not found. > >> >> export: Command not found. > >> >> > >> >> This example is taken verbatim from the sh manpage provided with > >> >> FreeBSD. > >> > > >> > This looks like you're running a sh command inside csh. > >> > Note that the C shell (FreeBSD's default interactive shell) > >> > does variable assignments differently: > >> > > >> > setenv ENV /root/.shrc > >> > > >> > set FOO = 1 > >> > > >> > See "man csh" for details. > >> > > >> > The command you've presented looks like it would belong into > >> > a shell script (FreeBSD's default scripting shell)... > >> > > >> > >> I note that root is configured in FreeBSD with a default shell of > >> /bin/csh and that the user toor has no default shell specified at all > >> notwithstanding having a Real Name of 'Bourne-again Superuser'. I > >> checked several of our FreeBSD hosts and all have the same > >> configuration for root and toor so I infer that this is how FreeBSD is > >> shipped. > > > > That is correct. The user toor has no shell assigned per > > default ("inactive user"), and root, as well as all other > > users, default to the C shell as the login shell (which > > typically is an interactive shell). > > Regular users do not default to csh, but to sh if you don't specify > particular shell on "pw adduser" command. Yes, that is right, but I didn't notice because I usually use "preconfigured wrappers" to user account creation. The inter- active "adduser" program can also have defaults for csh in its configuration file, like "pw useradd -s " can do. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Tue Jan 31 19:05:30 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 945EDCCA73A for ; Tue, 31 Jan 2017 19:05:30 +0000 (UTC) (envelope-from radek.krejca@starnet.cz) Received: from EXCHANGE.mail.starnet.cz (exchange.mail.starnet.cz [92.62.224.72]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "Sites", Issuer "STARNET" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 279F4B62 for ; Tue, 31 Jan 2017 19:05:29 +0000 (UTC) (envelope-from radek.krejca@starnet.cz) Received: from EXCHANGE.mail.starnet.cz ([fe80::d017:9e72:12a5:7bb4]) by EXCHANGE.mail.starnet.cz ([fe80::d017:9e72:12a5:7bb4%14]) with mapi; Tue, 31 Jan 2017 20:05:20 +0100 From: =?iso-8859-2?Q?Radek_Krej=E8a?= To: "'freebsd-questions@freebsd.org'" Date: Tue, 31 Jan 2017 20:05:19 +0100 Subject: A lot of mbufs allocated Thread-Topic: A lot of mbufs allocated Thread-Index: AdJ79PhPDsdVbYeWR3anMGFAX+h9qw== Message-ID: Accept-Language: cs-CZ Content-Language: cs-CZ X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: cs-CZ Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 19:05:30 -0000 Hello, I have problem with freezing FreeBSD boxes with PF on [zone: mbuf_cluster] = kern.ipc.nmbclusters limit reached last two months. But theres no evidence = (or I dont know, what I have to check yet) of huge traffic. If I can connec= t to server yet, I can see, that clusters are really exhausted: 206604/6681/213285 mbufs in use (current/cache/total) 206603/3697/210300/250866 mbuf clusters in use (current/cache/total/max) 206603/3640 mbuf+clusters out of packet secondary zone in use (current/cach= e) But why? How I can check what consume this memory? netstat -an, pfctlss -ss= shows nothing unusual. What I can check else? Another question - there are sins that freebsd 10.3 has different access to= manage memory clusters, as I can see on graphs over snmp. And last strange difference between 10.1 and 10.3 on graphs. First is the s= ame hardware, but freebsd 10.1, second 10.3.=20 https://postimg.org/image/5i7izm6rx/ https://postimg.org/image/j0efbwix9/ What else can I check? Thank you very much. Radek From owner-freebsd-questions@freebsd.org Tue Jan 31 19:53:26 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 087E1CCA560 for ; Tue, 31 Jan 2017 19:53:26 +0000 (UTC) (envelope-from emelville@anomali.com) Received: from mail-pf0-x232.google.com (mail-pf0-x232.google.com [IPv6:2607:f8b0:400e:c00::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D5EA1DA2 for ; Tue, 31 Jan 2017 19:53:25 +0000 (UTC) (envelope-from emelville@anomali.com) Received: by mail-pf0-x232.google.com with SMTP id y143so110535050pfb.0 for ; Tue, 31 Jan 2017 11:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anomali.com; s=google; h=from:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MIkrxfsoDayJNjJN+EHVhRDSjQ0eDI+re4FL/nb5rVI=; b=Cfg7xXPuyGhscdI3qvARwSIowdq14LC6l7PqazY836/flczJzf+J3UldE0yg85HGOo JE1K2yHSExjn5HFvsoT9nLVzld01xrLA6vfvS4WQ2ngi4gLMnWwIkUD9kXdCoa7+5O2P eDNnR0ConrDcxo6gUU6yHQ8wCnVqzbP1+uQ3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MIkrxfsoDayJNjJN+EHVhRDSjQ0eDI+re4FL/nb5rVI=; b=nslGe8f7GmswY97zrTMjqKPnmHdmOgZwcEYB94RyywbBKTBQl7Cm5gowGnmm2/eTX1 vuvNfCuIsXJxMXPV178+bf4AhDC0k8QI7QwmuOQ2g/VzLv7hCvHLCUj5Stae/d88Lz/x J4tYt1qfSuaX2k2SoWSiDw7/qe/JFdD734XQ9Kzp+jWs9Kb6Hky4fhJVvwLE11W6QNwv rc8uQsV06cU2ZSItNEIRZgTbUSC0OZPQ/1mVnZNrgk9GEDlGFoXMr3GVPCDwOR4hhwQd b6eWyLd0OQ7kEP7zjceGLasrQU9Az9vlhNLA9LOQKWLzfENdZZoszj+Q1CvcUX2+XCp8 BnAw== X-Gm-Message-State: AIkVDXJAKmD9wnOx1IMRf1XgxM7uRYPYw6WdBUtBYxARLEQIAJxrw3nqM1HNwPhSCGcpUzSy X-Received: by 10.99.112.75 with SMTP id a11mr32461897pgn.7.1485892405197; Tue, 31 Jan 2017 11:53:25 -0800 (PST) Received: from [172.18.8.46] (50-1-114-34.dedicated.static.sonic.net. [50.1.114.34]) by smtp.gmail.com with ESMTPSA id c18sm43205417pfj.49.2017.01.31.11.53.24 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Jan 2017 11:53:24 -0800 (PST) From: Eric Melville X-Google-Original-From: Eric Melville Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: bhyve centos7 In-Reply-To: <185aadb4-1646-4a4d-23e2-3f7867e7920e@passap.ru> Date: Tue, 31 Jan 2017 11:53:23 -0800 Cc: Eric Melville , freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <953E1B6E-3FD4-471A-9751-FB07D48AF8B7@anomali.com> References: <119f89a2-1c35-036b-1398-1700a3bdd696@passap.ru> <185aadb4-1646-4a4d-23e2-3f7867e7920e@passap.ru> To: Boris Samorodov X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 19:53:26 -0000 > I installed directly CentOS-7.1 (CentOS-7-x86_64-Minimal-1503-01.iso). > I tried the newest version with CentOS-7-x86_64-Minimal-1611.iso and > it really failed to load saying "not a correct XFS inode". I rechecked > and CentOS-7-x86_64-Minimal-1503-01.iso works fine. Thanks, this is exactly what I needed. It looked like 1611 was the only = Centos7 available for download. After finally finding a 1503 copy I was = able to install and update to 1611. > vm-bhyve is just shell scripts for bhyve, it does not add any > functionality. However it make life more comfortable. ;-) Sure, but the right combination of operations will make it work and that = combination may have been more apparent via vm-bhyve. I still think that = installing 1611 to ext4 would avoid the XFS problem, bewildered that = Centos does not offer any partitioning options via command line install.= From owner-freebsd-questions@freebsd.org Tue Jan 31 21:11:58 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 59A8BCCA497 for ; Tue, 31 Jan 2017 21:11:58 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: from archeo.suszko.eu (archeo.unixguru.pl [IPv6:2001:41d0:2:8316::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2288B938 for ; Tue, 31 Jan 2017 21:11:57 +0000 (UTC) (envelope-from maciej@suszko.eu) Received: from archeo (localhost [127.0.0.1]) by archeo.suszko.eu (Postfix) with ESMTP id 3474A15259; Tue, 31 Jan 2017 22:11:47 +0100 (CET) X-Virus-Scanned: amavisd-new at archeo.local Received: from archeo.suszko.eu ([127.0.0.1]) by archeo (archeo.local [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Vv28_YNfMjLN; Tue, 31 Jan 2017 22:11:47 +0100 (CET) Received: from leo (89-67-192-210.dynamic.chello.pl [89.67.192.210]) by archeo.suszko.eu (Postfix) with ESMTPSA id A1BB91524E; Tue, 31 Jan 2017 22:11:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=suszko.eu; s=dkim; t=1485897106; bh=FUV81XsDaUJWdDt/iL5hfAZmAgB9W/CgqUTZkkpuSUQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=YoiBZRE+39Lvh+eP3wSJuZQ3NY/RTf66nF4l2wrF90PMb/yO7/LiR8u/PDdiEyezU RI0ksnJLTYLQtwX9sqg6HVWBOhXjDDUElZouIpoIjcpX3CLLyplyZ/JHHdhPHO/DWy gd7IYEC7YWzLl0deXNwIkkYMJMqbGprL+UnqcGvM= Date: Tue, 31 Jan 2017 22:11:43 +0100 From: Maciej Suszko To: Sergey Matveychuk Cc: freebsd-questions@freebsd.org Subject: Re: boot from second disk Message-ID: <20170131221143.203b2f6a@leo> In-Reply-To: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru> References: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/GsHer6NZ3dla/qIyFXkbgn1"; protocol="application/pgp-signature" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 21:11:58 -0000 --Sig_/GsHer6NZ3dla/qIyFXkbgn1 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sergey Matveychuk wrote: > Hi. >=20 > I set up FreeBSD 11.0 on first disk and next I added second disk and > I want to do a mirror remotely. I followed instructions on=20 > https://www.freebsd.org/doc/handbook/geom-mirror.html > With one difference: I use GPT partitions (as default in the FreeBSD=20 > intaller): > # gpart show ada0 > =3D> 40 351651808 ada0 GPT (168G) =20 > 40 1024 1 freebsd-boot (512K) > 1064 343931904 2 freebsd-ufs (164G) > 343932968 7718879 3 freebsd-swap (3.7G) >=20 > And I stuck on "Restart the system, booting from ada1". I don't know > how to do it remotely (IPMI is not available there). >=20 > I tried echo "1:ad(1,a)/boot/loader" > /boot.config >=20 > But it does not look work. What should be correct content of=20 > /boot.config for GPT? If you want to boot from second disk (bios drive 1), try=20 1:ad(1,p2)/boot/loader in boot.config as you use GPT scheme. --=20 regards, Maciej Suszko. --Sig_/GsHer6NZ3dla/qIyFXkbgn1 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQRBv6xO7mzN+RcEaiUKKRSTSXuIagUCWJD9jwAKCRAKKRSTSXuI asFQAJ4nlKHXONCDkaDJhyOb8XpqH+j5kgCffO/HgYOQaBN34luhzb5UKhN29FM= =cJ8b -----END PGP SIGNATURE----- --Sig_/GsHer6NZ3dla/qIyFXkbgn1-- From owner-freebsd-questions@freebsd.org Tue Jan 31 21:51:34 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 96498CCA52E for ; Tue, 31 Jan 2017 21:51:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 681E81EA5 for ; Tue, 31 Jan 2017 21:51:33 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0VLpKoK056277 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 31 Jan 2017 14:51:20 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0VLpKBl056274; Tue, 31 Jan 2017 14:51:20 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 31 Jan 2017 14:51:20 -0700 (MST) From: Warren Block To: byrnejb@harte-lyne.ca cc: Polytropon , freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh In-Reply-To: <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> Message-ID: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Tue, 31 Jan 2017 14:51:20 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 21:51:34 -0000 On Tue, 31 Jan 2017, James B. Byrne via freebsd-questions wrote: > > On Tue, January 31, 2017 12:51, Polytropon wrote: >> On Tue, 31 Jan 2017 12:11:49 -0500, James B. Byrne via >> freebsd-questions wrote: >>> >>> In any case, I now have set the shell in the root crontab file >>> explicitly to /usr/local/bin/bash in hopes of avoiding this problem >>> in the future. >> >> That _might_ introduce problems in the future when bash is not >> available. My suggestion: Use /bin/sh for scripting except you >> need to rely on a "bash-ism", a feature that bash can provide, >> but sh cannot. However, you can use bash interactively to test >> sh commands, there is "backward compatibility" (bash can be seen >> as a superset of sh). >> > > How would bash become unavailable on this particular system without > someone specifically removing it? Boot into single user mode. /usr is not (necessarily) mounted, and doing anything could be challenging. If you absolutely must have bash for root, leave root's shell as csh and run bash from within .cshrc. If /usr is not mounted, it will just fail and leave you with a chance to fix things from a running csh. It's important to note that shells are two things, an interactive user interface, and a shell script interpreter. Thanks to a rich selection, one program does not have to be used for both. For example, I use csh along with a large autocompletion file and some aliases and it works very well for that. I would not write scripts for csh, though, because the built-in script implementation is not great. Not a problem, since just putting #!/bin/sh as the first line of a script causes it to run with the standard sh interpreter. From owner-freebsd-questions@freebsd.org Tue Jan 31 22:01:34 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F21ACCCA98E for ; Tue, 31 Jan 2017 22:01:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C479BA19 for ; Tue, 31 Jan 2017 22:01:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0VM1XYc058955 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 31 Jan 2017 15:01:33 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0VM1XDu058952; Tue, 31 Jan 2017 15:01:33 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 31 Jan 2017 15:01:33 -0700 (MST) From: Warren Block To: Sergey Matveychuk cc: freebsd-questions@freebsd.org Subject: Re: boot from second disk In-Reply-To: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru> Message-ID: References: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Tue, 31 Jan 2017 15:01:33 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 22:01:35 -0000 On Tue, 31 Jan 2017, Sergey Matveychuk wrote: > I set up FreeBSD 11.0 on first disk and next I added second disk and I want > to do a mirror remotely. > I followed instructions on > https://www.freebsd.org/doc/handbook/geom-mirror.html > With one difference: I use GPT partitions gmirror(8) is incompatible with GPT. Both put their metadata at the end of a disk. There are ugly ways of mirroring partitions, but it is not worth it. Unless the disks are larger than 2TB, create an MBR/disklabel layout as shown in the Handbook. If the disks are larger than 2TB, use a ZFS mirror. If the first disk has been set up correctly with bootcode, that will all be mirrored to the second disk when the mirror is created. So the system will be able to boot from either disk. From owner-freebsd-questions@freebsd.org Tue Jan 31 23:59:11 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D8CECCA42E for ; Tue, 31 Jan 2017 23:59:11 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DEFCB103F for ; Tue, 31 Jan 2017 23:59:10 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wm0-x241.google.com with SMTP id r18so1835919wmd.3 for ; Tue, 31 Jan 2017 15:59:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=lHmQB4JNwr+YNVzwis/bu6+K8TYccLZujggEi8VreSY=; b=ZkK//Nl7RFjVka4JtOFrMzl/L5y8kz7urvRF1QNB3xAPoWMYqVdHJVgII8NbB4pHUg zLi1c3QIO2Yelozy90tSmTd33fizJMKPy7dogE0xYHbyCv8xE48QnoMiMgRA1dX0+aKE gE72xzDDRTIqvGzUDznv4AxpyxhBSlPVe6ozGZJD5ssVdKAoiojuMWvbi+LsoetCe2I4 z+l7PnhKJh79mm08Sk4m12J/jsEO5FW850f74gp5e6rcAf1LNj7ZjfDbbj+e1rSzzO2Z n3pww0bMufbg8+/dS7YryXBNkzFOJs91mO4+zmpf9oZckaRTwSyrOG6AwvLqFxR0nqL1 Vjaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lHmQB4JNwr+YNVzwis/bu6+K8TYccLZujggEi8VreSY=; b=glpIbXR8pHDPD0yPz8Or2//UAfpp7dBmCc019BR9SnCaW6DzOcsRjhtbYc9Ig0a4gN xjTaNQMG9LpDcIRQFkvklUV/Zd08nbTYBFKMT3ym3n1VPMgg+yswPhM/QpY/4F4/h7AX 9wm6sAZQr0sDeM1rwVf8Edr09jKg1OQkCWq+9SFEIdvmCEeqVoV54Be+R9/8ItyEpyhj Nso7Pz1RiM58YFdC68L/7T62JhcMWrAIhkTkjRWDipoVg407Gj7sVIakk6Ylv15/6RNJ 9lIZnscSNZG+jLqg/OrmhiElMU/7nHXh6VdEFAQsZl/P4rZu772A4P+WfgII5N1SoJrR Jbxg== X-Gm-Message-State: AIkVDXLmL7W+Jhx0fmZrKK07xRpM2J2ohjN7q/JcJpIUxq/yf6mOe7bBzdtly+3iFb6jbw== X-Received: by 10.28.144.135 with SMTP id s129mr328242wmd.18.1485907149226; Tue, 31 Jan 2017 15:59:09 -0800 (PST) Received: from gumby.homeunix.com ([81.17.24.158]) by smtp.gmail.com with ESMTPSA id 123sm26496363wml.6.2017.01.31.15.59.07 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Jan 2017 15:59:08 -0800 (PST) Date: Tue, 31 Jan 2017 23:59:03 +0000 From: RW To: freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh Message-ID: <20170131235903.4159ec2e@gumby.homeunix.com> In-Reply-To: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.29; amd64-portbld-freebsd10.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 23:59:11 -0000 On Tue, 31 Jan 2017 14:51:20 -0700 (MST) Warren Block wrote: > On Tue, 31 Jan 2017, James B. Byrne via freebsd-questions wrote: > > > > > How would bash become unavailable on this particular system without > > someone specifically removing it? > > Boot into single user mode. /usr is not (necessarily) mounted, and > doing anything could be challenging. He was talking about setting bash as the shell in the crontab, which isn't a problem. From owner-freebsd-questions@freebsd.org Wed Feb 1 00:46:03 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 364EBCC6576 for ; Wed, 1 Feb 2017 00:46:03 +0000 (UTC) (envelope-from yudi.tux@gmail.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F2D85A7C for ; Wed, 1 Feb 2017 00:46:02 +0000 (UTC) (envelope-from yudi.tux@gmail.com) Received: by mail-io0-x235.google.com with SMTP id l66so145616201ioi.1 for ; Tue, 31 Jan 2017 16:46:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=In9FzXfC6mg7QzMzmBgCuaOc2hrKfRyrT7K0GTSF9F8=; b=KPXuYrJdSjUD36BaXX1SmA4Q0TvRLpt1ezs3EWXV2RU08JuIC8fNL/eNVJYdFNbpOX sKG5Wclbokfs4tl3JrwWcXkggKo/m4IzmGBtqLIe8gqQ/k3xRUUq4zYMgJM306YZtaqt uNN019tYgyc4lSlHtp6W4jgQqMW4Z4Fj0gccTxawB8BPWVayHFBQD5j9kGTxX4lA6VNU DqKvJyJj0kIgnKhJzi2lOyxhJYTxcSbkYye7KbVmAF7nEhMkc0OxoOsXHVrH719RBxqb u1Q0fMD9xrhhc8hD8fOnuIZm0B85Wo7P7BCUehbYPhEAjBTmg/8fX5qNpKOpxNei/5+H QF5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=In9FzXfC6mg7QzMzmBgCuaOc2hrKfRyrT7K0GTSF9F8=; b=tZ9K2AsEFvLYQ4y9+cqfk24f7T7e5hl/s/vriJwCao24C+EzOmcNKapHEKI1cilBF1 XMTfDOQbyUBwOh7C4YomN6g+ErouVsAXibic8Wud+Mjm9DMi4gQU3xUyuhjY+xpaFhWI aEMXBpMaDxPKG5AetwR1GcsD6VkxZPKak9/rhKOmPuDPX0WOE/dltKbfuW40gZdvcR2j AInxAvGg0MMmgeprq+QMvl3TBWEW8XCWc+QOAg4YZ8gzpDx28jc2oZdXDfVF8f3kBTNM qB/Y0gtdyl7KiZrR8htNmRhjmC70zLQtv2/GeVw+2jaPfkXcBOH8V29xfYtvaWtUrZDZ M4Lg== X-Gm-Message-State: AIkVDXK2/xQykxHIZIKOG7tlkRLklVESsvujsHAOxCuWUYGouKP1G9O33fAcFr4hUe/b6kMZBkX1BivWOI0HUw== X-Received: by 10.107.181.200 with SMTP id e191mr473215iof.217.1485909962209; Tue, 31 Jan 2017 16:46:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.133.210 with HTTP; Tue, 31 Jan 2017 16:46:01 -0800 (PST) In-Reply-To: References: <20170118065516.GA41788@slackbox.erewhon.home> From: Yudi V Date: Wed, 1 Feb 2017 11:46:01 +1100 Message-ID: Subject: Re: issues upgrading from 10.1-RELEASE to 11-RELEASE To: krad Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 00:46:03 -0000 Hi Krad, I did upgrade pkg first (pkg-static install -f pkg) but it did not upgrade all the packages as you suggest, I had to do it manually. Anyway now everything is back to normal. I was thinking of using boot environments and even setup the suggested dataset hierarchy, ie: pool/ROOT/environments, then I realised to boot into a different boot-environment/dataset I can just use the bootfs flag, this only works if all the boot environments/datasets are set to mountpoint=legacy. I was using this method well before beadm was officially released. It's only two commands to remember, clone and set bootfs, so never bothered with beadm. This is one of the main reasons why like FreeBSD. I was inquiring about similar functionality in btrfs and some in the community were adamant that it is not a critical feature so not yet implemented (although I have read somewhere that it was possible to boot into a cloned dataset). I completely disagree with them. I guess they never came across a situation where there was no easy way to go back to a working system that was borked by an upgrade. cheers Yudi On Tue, Jan 31, 2017 at 11:51 PM, krad wrote: > Its worth noting the latest version of pkg will realise there has been an > ABI change and upgrade all the packages without having to force them. You > can also install the compat libraries as well if you want a quick fix if > the rebuild is complex. If you are not using boot environments look into > them as well and see if they would be viable for you as they can save a lot > of grief, and let you do a lot of this grunt work before the 1st reboot. > > On 19 January 2017 at 16:36, Yudi V wrote: > >> Thanks guys the issue is I missed the below section as I followed the >> release notes instructions. >> 23.2.3.2. Upgrading Packages After a Major Version Upgrade >> >> ran >> >> pkg-static install -f pkg >> # pkg-static upgrade -f >> >> >> fixed all the issues. Problem was to do with different ABIs. >> >> -- >> Kind regards, >> Yudi >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe >> @freebsd.org" >> > > -- Kind regards, Yudi From owner-freebsd-questions@freebsd.org Wed Feb 1 00:49:05 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75B5DCC6767 for ; Wed, 1 Feb 2017 00:49:05 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay10.qsc.de (mailrelay10.qsc.de [212.99.163.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F0F90BC4 for ; Wed, 1 Feb 2017 00:49:04 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay10.qsc.de; Wed, 01 Feb 2017 01:49:07 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id B3EFF3CC3F; Wed, 1 Feb 2017 01:48:59 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v110mwSS004290; Wed, 1 Feb 2017 01:48:58 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 1 Feb 2017 01:48:58 +0100 From: Polytropon To: Warren Block Cc: byrnejb@harte-lyne.ca, freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh Message-Id: <20170201014858.eec196d0.freebsd@edvax.de> In-Reply-To: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay10.qsc.de with 35B7A68343E X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.3015 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 00:49:05 -0000 On Tue, 31 Jan 2017 14:51:20 -0700 (MST), Warren Block wrote: > On Tue, 31 Jan 2017, James B. Byrne via freebsd-questions wrote: > > > > > On Tue, January 31, 2017 12:51, Polytropon wrote: > >> On Tue, 31 Jan 2017 12:11:49 -0500, James B. Byrne via > >> freebsd-questions wrote: > >>> > >>> In any case, I now have set the shell in the root crontab file > >>> explicitly to /usr/local/bin/bash in hopes of avoiding this problem > >>> in the future. > >> > >> That _might_ introduce problems in the future when bash is not > >> available. My suggestion: Use /bin/sh for scripting except you > >> need to rely on a "bash-ism", a feature that bash can provide, > >> but sh cannot. However, you can use bash interactively to test > >> sh commands, there is "backward compatibility" (bash can be seen > >> as a superset of sh). > >> > > > > How would bash become unavailable on this particular system without > > someone specifically removing it? > > Boot into single user mode. /usr is not (necessarily) mounted, and > doing anything could be challenging. > > If you absolutely must have bash for root, leave root's shell as csh and > run bash from within .cshrc. If /usr is not mounted, it will just fail > and leave you with a chance to fix things from a running csh. A possible addition to /root/.login (a file which csh will execute when being invoked as a login shell) could be: /bin/test -x /usr/local/bin/bash && /usr/local/bin/bash In case the executable is not available, you will still get a working csh instance. > It's important to note that shells are two things, an interactive user > interface, and a shell script interpreter. Thanks to a rich selection, > one program does not have to be used for both. For example, I use csh > along with a large autocompletion file and some aliases and it works > very well for that. There are a few people who consider the interactive behaviour of csh being superior to that of bash, even though bash definitely has better handling for redirection. On the other hand, many users seem to prefer zsh (which is a great interactive shell as well). FreeBSD does not force a specific shell upon the user. However, it makes sense to not mess with system accounts because that might trigger the shot into your foot in some worst case scenario you cannot imagine today. :-) Also note that toor (also a UID 0 user account) can have bash as the login shell without interfering that "worst case imagination". > I would not write scripts for csh, though, because > the built-in script implementation is not great. And it's considered harmful; see "Csh Programming Considered Harmful" by Tom Christiansen: http://www.perl.com/doc/FMTEYEWTK/versus/csh.whynot > Not a problem, since > just putting #!/bin/sh as the first line of a script causes it to run > with the standard sh interpreter. Additionally, it helps to write portable scripts (across different operating systems), not just for FreeBSD systems which might or might not have bash installed (at a non- standard place). ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Wed Feb 1 01:26:09 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F28B5CCB491 for ; Wed, 1 Feb 2017 01:26:09 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from SNT004-OMC2S12.hotmail.com (snt004-omc2s12.hotmail.com [65.55.90.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B2D4F619 for ; Wed, 1 Feb 2017 01:26:08 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from EUR03-AM5-obe.outbound.protection.outlook.com ([65.55.90.73]) by SNT004-OMC2S12.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 31 Jan 2017 17:26:07 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=S5hPKnRXwFRgBnOM4ieGK+DptKPRhyn+nt9S/NEEQSY=; b=V1fFkTE3n1aSucn3v0DPD5dHf9HJZ9Yod/DCgjEWqxsw1OASNZzJI2Nt0NUth0IdLYzC61wXIF2/4L9yb4CiG3FK/M+emixc5kUW9TVRaooFQMupnnap0kSQGUr6C+5ffuM2sCTWGLRef14trdURdQ4aPLUHD9IngZw1EXFGbKeQEfqhUQjGGD6AjQmCkZlx20HweI/Y45U2/pxnYy5AKUZIuH8z9wztcyiaR1NdiyKwmq1rnDbLJ+u9F+Oxc/Wtby9vrI2f/PoQku7XyUsT25ApkpQ5J/RY1kZvurOoMpvkrXcWCcShIXkCaY7kzXlexZeit6ddzhLM2FR2uPa7aw== Received: from AM5EUR03FT060.eop-EUR03.prod.protection.outlook.com (10.152.16.60) by AM5EUR03HT012.eop-EUR03.prod.protection.outlook.com (10.152.16.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8; Wed, 1 Feb 2017 01:26:06 +0000 Received: from VI1PR02MB0974.eurprd02.prod.outlook.com (10.152.16.59) by AM5EUR03FT060.mail.protection.outlook.com (10.152.16.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Wed, 1 Feb 2017 01:26:06 +0000 Received: from VI1PR02MB0974.eurprd02.prod.outlook.com ([10.163.162.28]) by VI1PR02MB0974.eurprd02.prod.outlook.com ([10.163.162.28]) with mapi id 15.01.0860.026; Wed, 1 Feb 2017 01:26:05 +0000 From: Manish Jain To: "freebsd@edvax.de" CC: "freebsd-questions@freebsd.org" Subject: Re: Variable assignment in sh Thread-Topic: Variable assignment in sh Thread-Index: AQHSe9Ozx1G+Ill1IUyNhXhQraLRzKFSst8AgAAfsYCAAAr2gIAAAZEAgABBkQCAADGhAIAAClOA Date: Wed, 1 Feb 2017 01:26:05 +0000 Message-ID: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170201014858.eec196d0.freebsd@edvax.de> In-Reply-To: <20170201014858.eec196d0.freebsd@edvax.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edvax.de; dkim=none (message not signed) header.d=none;edvax.de; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:A669259CA885F957A7E9CC9F2EEB452840FD502F335E03A9A556EF5594E29063; UpperCasedChecksum:28632A2B72131A766A3ABB4CAEFFBEB3AC31F64D48816BB421E93A8074D4DB28; SizeAsReceived:7986; Count:37 x-ms-exchange-messagesentrepresentingtype: 1 x-incomingheadercount: 37 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; AM5EUR03HT012; 7:JloKH5EFfyfARskA5WkueOmEbHl8EQTG3K1ymnKomexZkxfOmDV3FsMelweNJZE1IovXUW94VFDqrcM3sHOhcBEMtpS2Fdadu3++YWrPGGKgx31wv8jWXyrVtFXLv9/aptt9P3KTkHyKaJhkWwRCHYfv/Wtvs89SfQSNTrwunQoP5/Ik9RD9dWjGkpSgF1O1uQtqvWfDNh8qVAEyZX5nh7sN2T0l6FC3ToAnlgMC7dewCTXtqLuiu4ZjKK1SifNIA/AD1EFnsXSZsLFH7DS7POCjVQym/IWVH8rKJsW4tC7fALcHVj6ZoY2qjwBFO3/1y4n+tUkn2FalrX7PYPYdbgbZ6A2xFpJ9j1wBqkyfNx3rBcUONAgrOzpjPHJzbLg0abiMdnvpXAXwaw+oVBc6slof+QhJPvDb3mGi+QVd81td8/nGAB33MWNoxyXG/GKCp6phJJ4EUX+9WX9vMKvbtw== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900005); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR03HT012; H:VI1PR02MB0974.eurprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 4a2d4fee-026d-47da-bc82-08d44a414a09 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(5061506344)(1603103118)(1601125047)(1701031028); SRVR:AM5EUR03HT012; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(444112120)(432015012)(82015046); SRVR:AM5EUR03HT012; BCL:0; PCL:0; RULEID:; SRVR:AM5EUR03HT012; x-forefront-prvs: 0205EDCD76 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: <54A602A8B5C0CC468932E26872D2779B@eurprd02.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2017 01:26:05.5895 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT012 X-OriginalArrivalTime: 01 Feb 2017 01:26:07.0997 (UTC) FILETIME=[29DCC2D0:01D27C2A] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 01:26:10 -0000 On 02/01/2017 06:18 AM, Polytropon wrote: > Additionally, it helps to write portable scripts (across > different operating systems), not just for FreeBSD systems A point here for bash scripting. I earlier used to shebang with the path=20 to bash : #!/usr/local/bin/bash Since my scripts sometimes needed to be ported to Linux and/or Cygwin, I=20 often hacked the system with a symlink /bin/bash that pointed to the=20 actual bash. Then I would use the symlink path - that worked under both=20 FreeBSD and Linux. But a much better way now exists with env : #!/usr/bin/env bash The above shabang always works, no matter what the system, is fully=20 portable, and is not too much typing either. Regards Manish Jain From owner-freebsd-questions@freebsd.org Wed Feb 1 13:50:43 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7032CC2FA2 for ; Wed, 1 Feb 2017 13:50:43 +0000 (UTC) (envelope-from g8kbvdave@googlemail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 82C339D9 for ; Wed, 1 Feb 2017 13:50:43 +0000 (UTC) (envelope-from g8kbvdave@googlemail.com) Received: by mail-wm0-x236.google.com with SMTP id b65so40213822wmf.0 for ; Wed, 01 Feb 2017 05:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=XOLyHlK3hM9sepRdik2N8fTeRlfE7QlgfokJO4QB3jI=; b=EKLvWgi0CBZ+4AUBQDF2lq5VAYVsJQWme5xB8FiXxwbZBwv1abQpUKxbdwXHNwbcg6 uqt0t5yks6CZqcX4xutKl02CWAC7VxG1qxbco1rn36frnhKt0J1kuzdb//0Cm5t+Kybr M/05/nqgoIJjWUj09fbq/4YW0XOJu64HlloYFgKYNWantkjyKvHJaB+KsxhvQwvGYnla uAP4KiRf4kUYz8xKtQtfcR5NS5i+ahvM4QqeCnlcZMl0buK8YqZKbes5HFRZz1/JEcl5 8asoDx0ktQQaFPA+pDOmSWn8C+R0mmo+R+DL84IUleEgEtKJJ41Tm6kbvWRNNxsBQupb Xv0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=XOLyHlK3hM9sepRdik2N8fTeRlfE7QlgfokJO4QB3jI=; b=SF2vYYls420kypFdRrAJsYhmJIPu/F8mv+FdWM+Jtjpm5eR0THiapQtKXb6oAH46s1 SzKpvbYOPnQDzjxRRNZXLu6zwxx8KRTeThiQ8dSYuDO8K9QiezS1C/c2xSp/PvzR570k yKrg+dd6BYDrH28Xp7bT5qitRzE23pqTb9omP7c84YpgDZJKZZkQtyekYKhB99f8DwiO NxZ47phFA2wgBgM+Ryv5ltu76vbkgOeODJiV0W/Qz2/nBS8WbdeIgrUgz51P68sHDO0r K1gVk2DV5Yl60R8DQFRpzCLlxlc5aH8P0UhjeVjtd9WizOIOpoIQqtA6HdWqEdjnwF25 Zt6w== X-Gm-Message-State: AIkVDXJI5pX+n2w/CkSx8gzphy5NHe28rO+jiNL+FAQt5Um2Ez3mFtZzN+WM2VQkroKyPA== X-Received: by 10.28.183.5 with SMTP id h5mr22756732wmf.39.1485957040664; Wed, 01 Feb 2017 05:50:40 -0800 (PST) Received: from [192.168.2.56] ([217.41.35.220]) by smtp.gmail.com with ESMTPSA id e14sm29687486wmd.14.2017.02.01.05.50.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 05:50:40 -0800 (PST) Subject: Re: Programmer's Prayer To: freebsd-questions@freebsd.org References: From: Dave B Message-ID: <40f81edc-fea0-566e-1b24-ffa50d2818a2@googlemail.com> Date: Wed, 1 Feb 2017 13:50:34 +0000 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 13:50:44 -0000 On 01/02/17 12:00, freebsd-questions-request@freebsd.org wrote: > Subject: > Programmer's Prayer > From: > Gerard Seibert > Date: > 31/01/17 12:52 > > > PROGRAMMER’S PRAYER > Our program, who art in memory, > called by thy name; > thy operating system run; > thy function be done at runtime > as it was in development. > > Give us this day our daily output. > and forgive us our code duplication, > as we forgive those who > duplicate code against us. > > And lead us not in frustration, > but deliver us from GOTOs. > > For thine is the algorithm, > the computation and the solution, > looping forever and ever. > > RETURN Nice. Can I repeat that with attribution? If so, who to attribute it to? Dave B. From owner-freebsd-questions@freebsd.org Wed Feb 1 15:07:15 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B81FCCBBCC for ; Wed, 1 Feb 2017 15:07:15 +0000 (UTC) (envelope-from roger@qxxy.com) Received: from mail-ua0-x233.google.com (mail-ua0-x233.google.com [IPv6:2607:f8b0:400c:c08::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5AF131F51 for ; Wed, 1 Feb 2017 15:07:15 +0000 (UTC) (envelope-from roger@qxxy.com) Received: by mail-ua0-x233.google.com with SMTP id i68so297521645uad.0 for ; Wed, 01 Feb 2017 07:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qxxy.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+YSzoc0X42Re6WctdxkL+2nz81mH0hTJo2mMyK2644g=; b=FG1Ry3xKf+tex1lMeZA3knVv2VQcDFPjo/K1I/olUp/CZAsd1u49TqI1TGZ5mo0MRC flWXfSdk74+XfPXcXFbiZbgdJmVZe+IEOLOa1+ufv6stXRss8gbkM560e+69GCu9+su1 eYK3gKp+Owetal3Ksuy1ZeX/YX7kqDI13tPvY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+YSzoc0X42Re6WctdxkL+2nz81mH0hTJo2mMyK2644g=; b=TQtop5VsYk6lj33HaZ8PyhPT2Z0ZExWz/A29DutMsgvK3ZGMeLROVDVxyspASCTvOI aywGDArSx4NI5b7CsTE8Bl9oHcFuZHi/ma+a9iuZh9fPmV5nubu86K24mgLJAQAUerEt H7wtun2BqdaaslEtxNVJHPwFYQmWhrXUVXDxs78SJs52VJAJJ/fA6pDy6MVlSwZ1uRo7 hQz//2pdlN/gAnGDTTAIU9zOmHPk48dwqMnwAvVB+o3nMm2ewp4+Envk7dmTvdD4JQ1x Jt7iQxjW/Ne/Gobdw0A2kAj2aTvzCZzvgX3Tn8LBTnXpHNNXx8mZCTnq88xctM0orgZv 8y0w== X-Gm-Message-State: AIkVDXIZyWEZ5kpJzUElSn8FrlEfkiHzr4greVwNdsaZJffm2/CLt3GkP2jOo5I+ItEx6imIkyDYnll4CPdoBg== X-Received: by 10.176.23.3 with SMTP id j3mr1240340uaf.78.1485961634218; Wed, 01 Feb 2017 07:07:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.11.1 with HTTP; Wed, 1 Feb 2017 07:06:33 -0800 (PST) X-Originating-IP: [50.90.149.220] In-Reply-To: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170201014858.eec196d0.freebsd@edvax.de> From: Roger Pate Date: Wed, 1 Feb 2017 10:06:33 -0500 Message-ID: Subject: Re: Variable assignment in sh To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 15:07:15 -0000 On Tue, Jan 31, 2017 at 8:26 PM, Manish Jain wrote: > A point here for bash scripting. Most often, but not always, if I need something bash has and /bin/sh lacks, it's time to write that script in a different language. :P From owner-freebsd-questions@freebsd.org Wed Feb 1 15:23:13 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF67ECCB37A for ; Wed, 1 Feb 2017 15:23:13 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from SNT004-OMC2S13.hotmail.com (snt004-omc2s13.hotmail.com [65.55.90.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D3CECC7 for ; Wed, 1 Feb 2017 15:23:13 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from EUR02-AM5-obe.outbound.protection.outlook.com ([65.55.90.73]) by SNT004-OMC2S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 1 Feb 2017 07:23:12 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fz/SO5kDWiwEL+XsJ/cyw+tLle1hSGP/mcFcgCnMZSY=; b=SkDvdB5Kl1I+Pd9d+ckQr8FS07pgTiLvY/aBNd8IQCcqsq9cYgEbZIpEYqK6CJYGYvYi3QhwQr4BGRZwumtL5OV3VcII30hWuh9w9diMql/HKoxZpcy9pjZkufNzGpLYqfvccM6gaspO5xnSTfUprEaJO+7i2fGkGQimePbiNTultWRd0ClunC6bPj/lTPmJcJlyZ2Byy7UgCyLfWmQ6ZBa1v47kQNPGSX7w7M7Rw4+u3h4qZju7upKEsb7NmOGrV+8AplVXVQvzEhrqF4SSBi5ZoBbu0rUnUn3NIsuuJO+82z/ZjnQysQvwexGpNBnYfjT8oAPQyfcUOMCMhOgvCQ== Received: from VE1EUR02FT025.eop-EUR02.prod.protection.outlook.com (10.152.12.52) by VE1EUR02HT110.eop-EUR02.prod.protection.outlook.com (10.152.13.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2; Wed, 1 Feb 2017 15:23:11 +0000 Received: from VI1PR02MB0974.eurprd02.prod.outlook.com (10.152.12.56) by VE1EUR02FT025.mail.protection.outlook.com (10.152.12.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Wed, 1 Feb 2017 15:23:11 +0000 Received: from VI1PR02MB0974.eurprd02.prod.outlook.com ([10.163.162.28]) by VI1PR02MB0974.eurprd02.prod.outlook.com ([10.163.162.28]) with mapi id 15.01.0860.026; Wed, 1 Feb 2017 15:23:11 +0000 From: Manish Jain To: Roger Pate , "freebsd-questions@freebsd.org" Subject: Re: Variable assignment in sh Thread-Topic: Variable assignment in sh Thread-Index: AQHSe9Ozx1G+Ill1IUyNhXhQraLRzKFSst8AgAAfsYCAAAr2gIAAAZEAgABBkQCAADGhAIAAClOAgADlSYCAAASZgA== Date: Wed, 1 Feb 2017 15:23:11 +0000 Message-ID: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170201014858.eec196d0.freebsd@edvax.de> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: qxxy.com; dkim=none (message not signed) header.d=none;qxxy.com; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:035BB1D37F5FEA0F5871ED20EEE2BF9CC143839879E54A7B796EFE26CEE737E7; UpperCasedChecksum:8C82810C652E8DF4E00E7F67713C8EB88B67D3EBA6DFDA80ACF34E80836978F3; SizeAsReceived:8162; Count:36 x-ms-exchange-messagesentrepresentingtype: 1 x-incomingheadercount: 36 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; VE1EUR02HT110; 7:Kkse/LEHlWymQZnBPJ28sfN/5IBACvoFmNa93/hVgamLjyhWXaJ+vYRpsZqjVvMSVRtsiPQn6LeSaMJ1uQghX2J1IX8UZ7XsgTT6sIiwIVNqFasdrrF+m04WvVmHl0Kokt4135r85leZGoFf8+WQ/nhg2nsRfyz/PjHM66jslBor7LITNuRo6Bb7/auzaS8J60U0J361WdBEYr1W28mvwmwANrBcLwgwtWptyIvbqtGca1d8cSZXxlbC3tye9i2or00pDsrmLZraGBTZkS8TN3l/uekw8Mdlh++npx3BTBE4mwa2H3Jsf26B8PdauzO1URPK5+/DCjRJNZOc9Nc7hDgGZt8Dk4fWR3rfWRhmz8BDHqc4ReR34DPEfzD2Eq3knyrxQWcATfWGgLDwcaW6dAFjoibOWkK4X4wJy6tut/TZAsCHkLLcpBfNHOFInDO28tgUGquxP1oEOPo7V+xrd8ElIYx/UzMsyXvlqjRgqjYzaME2Fe9pG6K0LPPZSlBIkL3xttL5FKis7ziN9XAtdQ== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900005); DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR02HT110; H:VI1PR02MB0974.eurprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 4b92cc0c-5b07-4bfb-52a8-08d44ab63ab4 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(5061506344)(5061507293)(1603103124)(1601125047)(1701031034); SRVR:VE1EUR02HT110; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(444112120)(432015029)(82015046); SRVR:VE1EUR02HT110; BCL:0; PCL:0; RULEID:; SRVR:VE1EUR02HT110; x-forefront-prvs: 0205EDCD76 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2017 15:23:11.4927 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT110 X-OriginalArrivalTime: 01 Feb 2017 15:23:12.0644 (UTC) FILETIME=[1A15B440:01D27C9F] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 15:23:14 -0000 On 02/01/2017 08:36 PM, Roger Pate wrote: > On Tue, Jan 31, 2017 at 8:26 PM, Manish Jain > wrote: >> A point here for bash scripting. > > Most often, but not always, if I need something bash has and /bin/sh > lacks, it's time to write that script in a different language. :P Generally, FreeBSD community is averse to bash scritpting. But then sh=20 lacks array support, which is where bash and zsh do wonderfully well. Generally again, I am averse to most Linuxisms, but bash is simply way=20 too much convenience to ignore. Regards Manish Jain From owner-freebsd-questions@freebsd.org Wed Feb 1 15:50:11 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE461CCBB6C for ; Wed, 1 Feb 2017 15:50:11 +0000 (UTC) (envelope-from roger@qxxy.com) Received: from mail-ua0-x22d.google.com (mail-ua0-x22d.google.com [IPv6:2607:f8b0:400c:c08::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D9BD1A09 for ; Wed, 1 Feb 2017 15:50:11 +0000 (UTC) (envelope-from roger@qxxy.com) Received: by mail-ua0-x22d.google.com with SMTP id 35so299019334uak.1 for ; Wed, 01 Feb 2017 07:50:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qxxy.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EFTWGjO7IuoDGSj2NVeslVvW5h7qUtrn0uN4owjUBy0=; b=OsWkSZSe9rM807MFLpAkj9FfVYDGB4fStz3ueSMcw7dg0fDLkYEBuMIbREMmkAIMb0 NpkQLapIduj4OjMskvq9p+4kKfKCp5aqORZZyIby7ZzMTIpy1rYduqXa16iSnom8yYL7 EEIecrNWsd0G/V8qxu82+C6h9Rgk7QflXSitc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EFTWGjO7IuoDGSj2NVeslVvW5h7qUtrn0uN4owjUBy0=; b=gH4GvYl/2mkrv5yvg+1UPyXVPnNJUpcDpieaHJdjGm4WfAqCrFWqrHhklTOLA94aq2 H0hA7f0dsage2g+SmQmXLdVKmt9KzmGYb1EuSr4tMHpKZdxjJnVrXpCAV1P/UR4QFpP5 LAPQLd4W7xfzlE8pGlBEL5vDLF9bLifwc1L/rIuFdd2Syeb1C12gOUTUgc0rQxV7wpaW 6wzHmxgY3ck9B/meuuiexm+8MCbo+T0ssKvXEYOJI8t+d4SCC8Rit4v6QSyYetGfRr9N t8DAwCTofgPyysGDjlUgTiRVqy2JHaCBwT7di/AwSBdR7dT8odYbhGYZgCtdGx1tWbDj rY5Q== X-Gm-Message-State: AIkVDXI/MpmdGZr35AIb+jOCIGK+pJWnprCVMYVDUZrq5Y6EzvYgqz0DobFuJrTcgVPA1cKGJm73Mj4b44HTSg== X-Received: by 10.176.70.69 with SMTP id z5mr1353885uab.64.1485964210573; Wed, 01 Feb 2017 07:50:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.11.1 with HTTP; Wed, 1 Feb 2017 07:49:30 -0800 (PST) X-Originating-IP: [50.90.149.220] In-Reply-To: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170201014858.eec196d0.freebsd@edvax.de> From: Roger Pate Date: Wed, 1 Feb 2017 10:49:30 -0500 Message-ID: Subject: Re: Variable assignment in sh To: Manish Jain Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 15:50:11 -0000 On Wed, Feb 1, 2017 at 10:23 AM, Manish Jain wrote: > On 02/01/2017 08:36 PM, Roger Pate wrote: >> Most often, but not always, if I need something bash has and /bin/sh >> lacks, it's time to write that script in a different language. :P > > Generally, FreeBSD community is averse to bash scritpting. But then sh > lacks array support, which is where bash and zsh do wonderfully well. Not just FreeBSD community, but I won't belabor the point. In particular about arrays, remember that sh does support one array well: $@, both global and per-function. If two arrays are needed, but one can be setup in a for loop (useful for globbing files) or list of lines/NUL-terminated-items (pipe into a while loop or process xargs-like), then you are also good to go. > Generally again, I am averse to most Linuxisms, but bash is simply way > too much convenience to ignore. I used to believe so too, but now I am happier writing more complex scripts in Python. Around the same time, I coincidentally switched my interactive shell from bash to zsh (though I don't use zsh for scripting), and also recommend that. From owner-freebsd-questions@freebsd.org Wed Feb 1 16:23:29 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C2C5CCBBE6 for ; Wed, 1 Feb 2017 16:23:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay13.qsc.de (mailrelay13.qsc.de [212.99.187.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D844716F1 for ; Wed, 1 Feb 2017 16:23:28 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay13.qsc.de; Wed, 01 Feb 2017 17:25:17 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id EBCC63CCFF; Wed, 1 Feb 2017 17:23:13 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v11GNDLH002007; Wed, 1 Feb 2017 17:23:13 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 1 Feb 2017 17:23:13 +0100 From: Polytropon To: Roger Pate Cc: "freebsd-questions@freebsd.org" Subject: Re: Variable assignment in sh Message-Id: <20170201172313.3a3eee93.freebsd@edvax.de> In-Reply-To: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170201014858.eec196d0.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay13.qsc.de with 8712769E519 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.7032 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 16:23:29 -0000 On Wed, 1 Feb 2017 10:06:33 -0500, Roger Pate wrote: > On Tue, Jan 31, 2017 at 8:26 PM, Manish Jain > wrote: > > A point here for bash scripting. > > Most often, but not always, if I need something bash has and /bin/sh > lacks, it's time to write that script in a different language. :P Don't confuse sh with bash, they're not fully interchangeable. While sh ("classic Bourne shell") is quite portable and usually POSIX, bash is not. Even on Linux, sometimes bash != bash, and sometimes it's dash. You can see bash as a superset of sh, so you can do testing of sh scripts with bash quite well, even in the "line by line" interactive manner. If you need stuff to work across different operating systems, sh is often called "lowest common denominator" as most UNIX systems default to it as scripting shell. If you need "bash-isms" (features that bash has, but sh doesn't), there are also some portable ways to deal with the shebang line, but don't assume that bash is installed everywhere as /bin/bash. :-) Of course you are right: When you reach the border of what a shell language can do, consider using better tools, more suitable for the task you want to solve. For example, if you find yourself in a while read something | cut | cut | sed | grep | sed | sort piping chain, consider using awk. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Wed Feb 1 19:03:41 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FFABCCBF13 for ; Wed, 1 Feb 2017 19:03:41 +0000 (UTC) (envelope-from woodbrian77@gmail.com) Received: from mail-yw0-x22b.google.com (mail-yw0-x22b.google.com [IPv6:2607:f8b0:4002:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 01FE42A5 for ; Wed, 1 Feb 2017 19:03:41 +0000 (UTC) (envelope-from woodbrian77@gmail.com) Received: by mail-yw0-x22b.google.com with SMTP id w75so72337679ywg.1 for ; Wed, 01 Feb 2017 11:03:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Jw3w2oCGKVrLcZit22nXY26wMMx/6koZlaymXIVlcQs=; b=qg3olVg+PABTWRRulevOlCuyNbgPIZcuzyutv8tkcUsOhayEpLRzGYGSmS4ddUUngR 9KdPrfLIfPhtF156w2y0tcCk0x4mnSsddBlmNYoGicmeraf8PLTYd3GwTZzLqS5P0Bhx cj32JNQx80kBX3VT4ZuQ/VuzeQ7zJ8sFb3dNxKw86XoM7uaDnEGoxhONbOKPWrxAGkVG BXD/m/B5KPQCze6p4IgsareRNDEKqdLw9096s7j9+Oer+b0NbrXiI0NUpLn/rKFb0LMn umB+QzzExAbR5X0jQM1nDjNdOJdvqKW8X4SXIKbSC7Pb3Kf6GhiY81b3UlQvcAtY1uPl UUKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Jw3w2oCGKVrLcZit22nXY26wMMx/6koZlaymXIVlcQs=; b=jxLcA5MF9za4Di+CHXKlTzw//NPgbhdgT++aKz4zpllUsSIrhWIMpamGfY1J0D3jMc RrdeDNRl3VwhLeI0aDB5nA50cG/1PmGYJeoh6gKo1hNp82WrRDwq0eaguUhu/Rx3/jFn r4CTpW/ikc+vqHLKW1wyQg82R9u1DpBZ+iJXAPQW4HUZzd3UQudj87zfTICydTuqPvT1 iImix6KX4U5oUQzq64dSP5aMggdh4ZFfrdiZY1g6ErNjYmV6UxlWh05FYr1EBQTYpuvH XIr3dgCUw/UX5//bGCdUVT0S7j3gzRc+iDcCCUgy9nPUUfCLoBxslnqwfrryl4jUrR1Y dUxg== X-Gm-Message-State: AIkVDXKnZtlEiYGemQnCOAGV8KDxscyDHD6BsYjYosZX4aOmqngJ2IfAe3qvhELrYFg3K0lboECBdlpt43lJCQ== X-Received: by 10.129.98.70 with SMTP id w67mr2718301ywb.184.1485975819887; Wed, 01 Feb 2017 11:03:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.83.29.206 with HTTP; Wed, 1 Feb 2017 11:03:39 -0800 (PST) From: Brian Wood Date: Wed, 1 Feb 2017 13:03:39 -0600 Message-ID: Subject: New to bhyve To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 19:03:41 -0000 I have a machine that has an i3 and 16G of ram. I'm wondering about the possibility of running instances of a 32 bit version FreeBSD as guests on that system. Is anyone doing something like that? I don't think it would be possible to run 4 instances where each instance was given 4G as bhyve needs to run somewhere. Is that correct? Would 3 instances be possible? Any hints on bhyve configuration are appreciated. Thanks in advance. Brian Ebenezer Enterprises - In G-d we trust. http://webEbenezer.net From owner-freebsd-questions@freebsd.org Wed Feb 1 19:59:39 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26F12CCCE83 for ; Wed, 1 Feb 2017 19:59:39 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EC25C1398 for ; Wed, 1 Feb 2017 19:59:38 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 3A31862324; Wed, 1 Feb 2017 14:59:31 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YKZlT_sfEXya; Wed, 1 Feb 2017 14:59:29 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id C2A686231B; Wed, 1 Feb 2017 14:59:28 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1485979169; bh=OAxeDsA8Fxv6t7c45GisVgNsrmOwpIRkBXUjhi+7YHE=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=OsUbMuJtV/1IkFHe8fJFkF1rGENrYIykCNl438pazyk7xnBpxpLdp+cWEQC8wWUyN MBfYNOS1DAlMxEgBpyM4ZymFJ06dxAyBnBiRTeCpvR+QilFFCTUo7aj8Rvij5pUvNv NhlEOR2EyBA1O+oK6irqV3N1zutteFPaIk9CuEa2rvXFtalQJ8pPEz4O5YJeBTlzFw YuPs5FfOuoQo1EJ9AzIW/Zd7MZX6hJ2eu1sF/8fGbQXqCJXrXEy8sijNnUea0o3Fn4 svYMJPaNn5MRqh6J8lREGyGGDaIzeVHHwwzJ1oUElhNF5JEqEmmw+1eeI0yxoi11vC ZJhZab+ruG+fQ== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Wed, 1 Feb 2017 14:59:29 -0500 Message-ID: <84861d4906923faec222f96580833c2f.squirrel@webmail.harte-lyne.ca> In-Reply-To: <20170131200143.00c5e5da.freebsd@edvax.de> References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170131200143.00c5e5da.freebsd@edvax.de> Date: Wed, 1 Feb 2017 14:59:29 -0500 Subject: Re: Variable assignment in sh From: "James B. Byrne" To: "Polytropon" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 19:59:39 -0000 On Tue, January 31, 2017 14:01, Polytropon wrote: > On Tue, 31 Jan 2017 12:56:40 -0500, James B. Byrne wrote: >> How would bash become unavailable on this particular system without >> someone specifically removing it? > > A rare occassion, but possible. Let's say in a worst-case scenario, > /usr isn't mounted, and you need to stick with what's on /, then > bash, which per default is /usr/local/bin/bash, isn't available. > However, bash can be linked statically _and_ copied to a location > on /, then you won't have that kind of problem. > > Portability also could be a problem when you try to run something > that expects bash on a system where bash isn't installed. Always > keep in mind that bash is _not_ part of FreeBSD, while sh is. Yes, I will do that from here on. > > I know, those are very special cases, and if your goal is not > portability and "guaranteed availability", then it won't hit you. > I just thought it's worth being mentioned. Thank you. I have found your explanation of what goes on under the covers very interesting. In this case I am dealing with a zfs system so if /usr is not there then neither is /bin. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Wed Feb 1 20:16:43 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AF195CCC3F2 for ; Wed, 1 Feb 2017 20:16:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay11.qsc.de (mailrelay11.qsc.de [212.99.187.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2F5DC13A for ; Wed, 1 Feb 2017 20:16:42 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Wed, 01 Feb 2017 21:19:19 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 443323CBF9; Wed, 1 Feb 2017 21:16:32 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v11KGVRB003552; Wed, 1 Feb 2017 21:16:31 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 1 Feb 2017 21:16:31 +0100 From: Polytropon To: byrnejb@harte-lyne.ca Cc: freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh Message-Id: <20170201211631.a65c3b9b.freebsd@edvax.de> In-Reply-To: <84861d4906923faec222f96580833c2f.squirrel@webmail.harte-lyne.ca> References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170131200143.00c5e5da.freebsd@edvax.de> <84861d4906923faec222f96580833c2f.squirrel@webmail.harte-lyne.ca> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay11.qsc.de with BB0C76A355A X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2111 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 20:16:43 -0000 On Wed, 1 Feb 2017 14:59:29 -0500, James B. Byrne wrote: > > On Tue, January 31, 2017 14:01, Polytropon wrote: > > I know, those are very special cases, and if your goal is not > > portability and "guaranteed availability", then it won't hit you. > > I just thought it's worth being mentioned. > > Thank you. I have found your explanation of what goes on under the > covers very interesting. In this case I am dealing with a zfs system > so if /usr is not there then neither is /bin. That depends on your actual partitioning. Commonly / contains /bin (but ZFS layout can easily differ from that concept). On the / partition, you'll find everything to successfully boot the system into single user mode (sometimes called "maintenance mode" or "emergency mode"), which is a state where only / is mounted read-only and a shell is presented. Historically, the different partitions resided on different physical disks (due to size limitation), which today doesn't apply anymore. However, ZFS allows you to manage system disk content as "fine grained" as you like, for example different ZFS partitions for /usr/src and /usr/ports and /usr/local are possible. That /usr/local is the place where 3rd party software (binaries and libraries) are stored to per default, and if that partition cannot be mounted (be it /usr or /usr/local), bash won't be available. A typical "functional partitioning" approach for UFS consists of partitions for / (which includes /bin), /tmp, /var, /usr, and /home. ZFS allows you to be much more precise, and you can also apply different additions like compression depending on the use of "sub-partitions" as mentioned above. In a worst case scenario, rely on what the system provides, and don't try to override those defaults without good reasons and sufficient precaution (like a statically linked /bin/bash for example). There is almost nothing worse than a system that successfully boots into single user mode, but then surprisingly cannot start a shell... ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Wed Feb 1 20:56:07 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65050CCC3CA for ; Wed, 1 Feb 2017 20:56:07 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 34D6F1165 for ; Wed, 1 Feb 2017 20:56:06 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 5F1D26231B; Wed, 1 Feb 2017 15:56:05 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cjFnl0ew9L0R; Wed, 1 Feb 2017 15:56:03 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 152C862051; Wed, 1 Feb 2017 15:56:03 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1485982563; bh=CG95/u7nvIbNLT7XUvSH7GSZzxr8M8qo7uxD9tR2kiE=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=OxNQB3/vG/uktdS0msYOrE42qiSKLGuMGo3sX2LwBY6LqK50t/MQCZ00IhtkC8d9/ qUPPgyfoh1g9xfkg99lAizmBgmP93QoyqiPEMCT0vx5YoUNVYZeHgJ5Yv553wCdNKE oe7UkJgNYlGSXzjPTpNxyH4G35S91QdjIEWcxHuNgaZG+Aqrighh9i11g3TTnUv0mx K+pQHcnIqGSG2UfJQkKNUTa/vbXLgehMAQxxZp8TDHshStEIGa3V9gK84ZnKFQwYC3 yeGf0s4G67E/R+Wz5YqRqXqsmVDidyWiDwRqxaKW3f5/HxN6ldakNfM1gle3L/FtQy ecrPdGa+qGYEQ== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Wed, 1 Feb 2017 15:56:03 -0500 Message-ID: In-Reply-To: <20170201211631.a65c3b9b.freebsd@edvax.de> References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170131200143.00c5e5da.freebsd@edvax.de> <84861d4906923faec222f96580833c2f.squirrel@webmail.harte-lyne.ca> <20170201211631.a65c3b9b.freebsd@edvax.de> Date: Wed, 1 Feb 2017 15:56:03 -0500 Subject: Re: Variable assignment in sh From: "James B. Byrne" To: "Polytropon" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 20:56:07 -0000 On Wed, February 1, 2017 15:16, Polytropon wrote: > In a worst case scenario, rely on what the system provides, and > don't try to override those defaults without good reasons and > sufficient precaution (like a statically linked /bin/bash for > example). There is almost nothing worse than a system that > successfully boots into single user mode, but then surprisingly > cannot start a shell... ;-) > I installed bash-static on all our FreeBSD hosts. I would love to solely rely on what the base system provides but sadly I have never encountered a case with any OS where that is true. And rewriting my admin scripts to sh from bash is a task that I simply do not have time for at the moment. Enumerating bash-static along with postfix, sudo, tmux, tree, vim, etc., that we require for FreeBSD is quite natural and poses no particular difficulty. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Wed Feb 1 21:20:45 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1D254CCC88F for ; Wed, 1 Feb 2017 21:20:45 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DEB901EE8 for ; Wed, 1 Feb 2017 21:20:44 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 0DCC76232B; Wed, 1 Feb 2017 16:20:43 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DCgwpD4hF9gb; Wed, 1 Feb 2017 16:20:41 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 84F0B62324; Wed, 1 Feb 2017 16:20:40 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1485984041; bh=FIeeMOeX8Loci+ROq5QUQdIyGXlKtAxb1fqiOdWIXqE=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=Qrd/hTLhUTdps7CcJWWxKhF6yGRjvjp67eOH8Me1cbaLYqMTtWJVylPUDKKs08aaC WqHmIQixTiNMGNaS2Dp/upjO/s/s6+QWYHMDRxts7b9WYiWg+cv6h42lUs8sOmKucf W/iZ2HKDHCLIUdvMn9ZbzqUsDTQSxg6qP9FYivk9I2SSHkGhHlw5yT4vBUTGsXHDbv /0ajRjwiQMBmqjFiLh21sIHnMbbpjQi+YATCPX5RybwG7vdKO4R7m3jbNmESe05C7a TIHMS/NaXt2rGJpcVZ7rDmrLO8+SkYGi+wWkETG/hUxNg76bHMhAMuFTgKVGnVfepp IndZnvzYizOpg== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Wed, 1 Feb 2017 16:20:41 -0500 Message-ID: <509f51fbc72e12243ed86f15fb9d60fe.squirrel@webmail.harte-lyne.ca> In-Reply-To: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> Date: Wed, 1 Feb 2017 16:20:41 -0500 Subject: Re: Variable assignment in sh From: "James B. Byrne" To: "Warren Block" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 21:20:45 -0000 On Tue, January 31, 2017 16:51, Warren Block wrote: > > It's important to note that shells are two things, an interactive user > interface, and a shell script interpreter. Thanks to a rich > selection, > one program does not have to be used for both. For example, I use csh > along with a large autocompletion file and some aliases and it works > very well for that. I would not write scripts for csh, though, > because > the built-in script implementation is not great. Not a problem, since > just putting #!/bin/sh as the first line of a script causes it to run > with the standard sh interpreter. > I do not alter the root account in any way other that to allow logins and ssh is configured to only accept passwordless logins for root. When I have need to login as root then I run bash from the default shell and do my work there. I have dealt with cron by specifying SHELL=/usr/local/bin/bash in root's crontab. I am not fond of shell scripts although I have written many. Most of what I put into cron jobs are one-liner shell commands and in my case I have written these for bash. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Wed Feb 1 21:33:46 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6308ACCCCE4 for ; Wed, 1 Feb 2017 21:33:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay15.qsc.de (mailrelay15.qsc.de [212.99.187.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B66E2A30 for ; Wed, 1 Feb 2017 21:33:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay15.qsc.de; Wed, 01 Feb 2017 22:33:56 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 54BF93CC3F; Wed, 1 Feb 2017 22:32:36 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v11LWZXI003828; Wed, 1 Feb 2017 22:32:35 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 1 Feb 2017 22:32:35 +0100 From: Polytropon To: byrnejb@harte-lyne.ca Cc: freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh Message-Id: <20170201223235.72eb1e48.freebsd@edvax.de> In-Reply-To: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170131200143.00c5e5da.freebsd@edvax.de> <84861d4906923faec222f96580833c2f.squirrel@webmail.harte-lyne.ca> <20170201211631.a65c3b9b.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay15.qsc.de with 2A0D069E346 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2133 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 21:33:46 -0000 On Wed, 1 Feb 2017 15:56:03 -0500, James B. Byrne wrote: > > On Wed, February 1, 2017 15:16, Polytropon wrote: > > > In a worst case scenario, rely on what the system provides, and > > don't try to override those defaults without good reasons and > > sufficient precaution (like a statically linked /bin/bash for > > example). There is almost nothing worse than a system that > > successfully boots into single user mode, but then surprisingly > > cannot start a shell... ;-) > > > > I installed bash-static on all our FreeBSD hosts. I would love to > solely rely on what the base system provides but sadly I have never > encountered a case with any OS where that is true. And rewriting my > admin scripts to sh from bash is a task that I simply do not have time > for at the moment. That is definitely a valid reason to "introduce" bash to the SUM system. Especially when your scripts rely on functionality that is present in bash, but not in sh, it's probably easier to make bash available than to port and test the scripts. That's where the real modularity of FreeBSD is helpful: With the setting SHELL=, you can have cron use a specific shell if the default scripting shell is not sufficient. > Enumerating bash-static along with postfix, sudo, tmux, tree, vim, > etc., that we require for FreeBSD is quite natural and poses no > particular difficulty. That's right. Oh, and add the Midnight Commander to that list.. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Wed Feb 1 21:49:40 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DEC0CCB9D6 for ; Wed, 1 Feb 2017 21:49:40 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C593FAC for ; Wed, 1 Feb 2017 21:49:39 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 8BEE962193; Wed, 1 Feb 2017 16:49:38 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oaj5WhU7-w6S; Wed, 1 Feb 2017 16:49:37 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id E76E66232B; Wed, 1 Feb 2017 16:49:35 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1485985776; bh=MlBZtxl+3jqsDDjs2xTmawU5RCu0MpnkgMHz2stok2k=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=lZr2SKpfaZeIaM/63qGMyG7ZE5Y0M8oSYlhwkFb00Rq7a9aK9IILcufSRQVq0yTNy s9vMxAC0/pfAhWaUw0s57bq9oF78V0YNao+dU2Entyx0u2kDkgB186YFM/GwvCrpcx 8MhBVnLxiJ37/5PDHJpYt5yTnCxZxbFdnHEaa5xnaZrMwNiy2C8vOm21VPXBW0fIYe X3tONprWaqA8YIt8ZrAYSvrD/TpV9G2qlgOHei2vUlYortjXPsNevJsXlr7oFPIcpT Qk2Sq05wreIp559XTKuZ0hUBJOCuwGb99JHqix1As8ePlGR2c7s8VavgJYPDIRW7NZ EobkiZaeg0qxA== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Wed, 1 Feb 2017 16:49:36 -0500 Message-ID: In-Reply-To: <20170201223235.72eb1e48.freebsd@edvax.de> References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170131200143.00c5e5da.freebsd@edvax.de> <84861d4906923faec222f96580833c2f.squirrel@webmail.harte-lyne.ca> <20170201211631.a65c3b9b.freebsd@edvax.de> <20170201223235.72eb1e48.freebsd@edvax.de> Date: Wed, 1 Feb 2017 16:49:36 -0500 Subject: Re: Variable assignment in sh From: "James B. Byrne" To: "Polytropon" Cc: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 21:49:40 -0000 On Wed, February 1, 2017 16:32, Polytropon wrote: > On Wed, 1 Feb 2017 15:56:03 -0500, James B. Byrne wrote: >> Enumerating bash-static along with postfix, sudo, tmux, tree, vim, >> etc., that we require for FreeBSD is quite natural and poses no >> particular difficulty. > > That's right. Oh, and add the Midnight Commander to that list.. :-) > Is that mucommander or wcmcommander? I do not recall having used either. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Wed Feb 1 21:52:48 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04CC8CCBEB6 for ; Wed, 1 Feb 2017 21:52:48 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 658F219C9 for ; Wed, 1 Feb 2017 21:52:46 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from [10.0.0.3] (testbox.usenet4all.se [10.0.0.3]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id v11LqZQY027408 for ; Wed, 1 Feb 2017 22:52:36 +0100 (CET) (envelope-from bah@bananmonarki.se) Subject: Re: Programmer's Prayer To: freebsd-questions@freebsd.org References: From: Bernt Hansson Message-ID: <34620197-f8a2-fab2-a6b0-85788bebf505@bananmonarki.se> Date: Wed, 1 Feb 2017 22:52:35 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 21:52:48 -0000 On 2017-01-31 13:52, Gerard Seibert wrote: > PROGRAMMER’S PRAYER > > Our program, who art in memory, > called by thy name; > thy operating system run; > thy function be done at runtime > as it was in development. > > Give us this day our daily output. > and forgive us our code duplication, > as we forgive those who > duplicate code against us. > > And lead us not in frustration, > but deliver us from GOTOs. > > For thine is the algorithm, > the computation and the solution, > looping forever and ever. > > RETURN > NAME baby - create new process from two parents SYNOPSIS baby -sex [m|f] [-name name] DESCRIPTION baby is initiated when one parent process polls another server process through a socket connection in the BSD version or through pipes in the System V implementation. baby runs at low priority for approximately forty weeks and then terminates with a heavy system load. Most systems require constant monitoring when baby reaches its final stages of exe_ cution. Older implementations of baby did not require both initiating processes to be present at the time of completion. In those versions the initi_ ating process which was not present was awakened and notified of the results upon completion. It has since been determined that the pres_ ence of both parent processes result in a generally lower system load at completion, and thus current versions of baby expect both parent processes to be active during the final stages. Successful completion of baby results in the creation and naming of a new process. Parent processes then broadcast messages to all other processes, local and remote, informing them of their new status. OPTIONS -sex define the gender of the created process -name assign the name name to the new process EXAMPLES baby -sex f -name Jacqueline completed successfully on July 9, 1992 at 9:11pm. Jacqueline's vital statistics: 8 pounds 3 oz, 20 inches, long dark hair. The parent pro_ cess, Kim Dunbar, is reportedly doing fine. SEE ALSO cigar(6), dump(5), cry(3). BUGS Despite its complexity, baby only knows one signal, SIGCHLD, (or SIGCLD in the System V implementation), which it uses to contact the parent processes. One or both parent processes must then inspect the baby process to determine the cause of the signal. The sleep(1) command may not work as expected on either parent process for some time afterward, as each new instance of baby sends intermit_ tent signals to the parent processes which must be handled by the par_ ents immediately. A baby process will frequently dump core, requiring either or both par_ ent processes to clean up after it. Despite the reams of available documentation on invoking and maintain_ ing baby, most parent processes are overwhelmed. AUTHORS From a man page by Joe Beck, . From owner-freebsd-questions@freebsd.org Wed Feb 1 22:18:36 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC80FCCC57F for ; Wed, 1 Feb 2017 22:18:36 +0000 (UTC) (envelope-from hillary.smith@dynamicdatagroup.com) Received: from smtpauth.net4india.com (smtpauth.net4india.com [118.67.248.47]) by mx1.freebsd.org (Postfix) with ESMTP id 8C04911D0 for ; Wed, 1 Feb 2017 22:18:35 +0000 (UTC) (envelope-from hillary.smith@dynamicdatagroup.com) Received: from [202.83.16.183] (helo=desktopPC) by smtpauth.net4india.com with esmtpa (Exim 4.72 #1) id 1cZ3Ed-0000aJ-6h by authid with login for ; Thu, 02 Feb 2017 03:48:39 +0530 From: "Hillary Smith" To: Subject: Email List Date: Thu, 2 Feb 2017 03:48:05 +0530 Message-ID: <0a7c01d27cd9$1f65fa10$5e31ee30$@dynamicdatagroup.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdJ82P0NNeyU1RxMSUy4qn7GpyMBcQ== Content-Language: en-us X-Auth-By: hillary.smith@dynamicdatagroup.com X-Auth-By-Port: 587 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 22:18:36 -0000 Hi, I did come across your website. I see that your company is mainly in HR Staffing and Recruitment. I thought I would write this email as we have been helping companies like yours reach out to Human Resource professionals lists from various industries. We are a trusted partner to Staffing and Recruitment firms. We provide Human Resource Specialty marketing lists with a staff of over 100 researchers. Our Data gives you all the necessary information to target these companies and their executives through Email, Phone or Direct Mail. This can be used for your sales and marketing efforts. Available Job titles: - C-Level HR, V-Level HR, Director Level HR, Manager Level HR, CEO, CFO, CMO, COO and many more titles. Or Please fill in the details below of your target audience and i will revert to you with free Sample file for your review:- Industry Vertical (OR) Any User List you want to target: _________ Job Titles you want to target: __________ Geography: ________ If you think this is something relevant, then I propose a short email exchange to decide if a serious conversation is warranted? Warm Regards, Hillary Smith Database Coordinator B2B Lists Provider 984 Rowley Drive San Jose 95132 United States From owner-freebsd-questions@freebsd.org Wed Feb 1 23:13:38 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C58BCCC3A4 for ; Wed, 1 Feb 2017 23:13:38 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay13.qsc.de (mailrelay13.qsc.de [212.99.187.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C9B5F82 for ; Wed, 1 Feb 2017 23:13:36 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay13.qsc.de; Thu, 02 Feb 2017 00:15:33 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id D22F63CBF9; Thu, 2 Feb 2017 00:13:31 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v11NDVcn004275; Thu, 2 Feb 2017 00:13:31 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 2 Feb 2017 00:13:31 +0100 From: Polytropon To: byrnejb@harte-lyne.ca Cc: freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh Message-Id: <20170202001331.c4f2e541.freebsd@edvax.de> In-Reply-To: References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170131200143.00c5e5da.freebsd@edvax.de> <84861d4906923faec222f96580833c2f.squirrel@webmail.harte-lyne.ca> <20170201211631.a65c3b9b.freebsd@edvax.de> <20170201223235.72eb1e48.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay13.qsc.de with 693F469E73C X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2757 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 23:13:38 -0000 On Wed, 1 Feb 2017 16:49:36 -0500, James B. Byrne wrote: > > On Wed, February 1, 2017 16:32, Polytropon wrote: > > On Wed, 1 Feb 2017 15:56:03 -0500, James B. Byrne wrote: > >> Enumerating bash-static along with postfix, sudo, tmux, tree, vim, > >> etc., that we require for FreeBSD is quite natural and poses no > >> particular difficulty. > > > > That's right. Oh, and add the Midnight Commander to that list.. :-) > > > > Is that mucommander or wcmcommander? I do not recall having used either. It's really called Midnight Commander (mc), it comes with a versatile editor and makes a Norton Commander user feel at home. The two panel layout is ideal for source-target operations (copying and moving files). You'll find the port as misc/mc; from its pkg-descr file: GNU Midnight Commander is a user-friendly yet powerful file manager and visual shell, useful to novice and guru alike. It provides a clear, user-friendly, and somewhat protected interface to a Unix system while making many frequent file operations more efficient and preserving the full power of the command prompt. You will wonder how you could ever live without it. WWW: http://www.midnight-commander.org -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Thu Feb 2 00:29:21 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C00A1CCCC7F for ; Thu, 2 Feb 2017 00:29:21 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp9.server.rpi.edu (smtp9.server.rpi.edu [128.113.2.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "canit.localdomain", Issuer "canit.localdomain" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 86ACF1C61 for ; Thu, 2 Feb 2017 00:29:21 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp-auth3.server.rpi.edu (route.canit.rpi.edu [128.113.2.233]) by smtp9.server.rpi.edu (8.14.4/8.14.4/Debian-8+deb8u1) with ESMTP id v120Ln3c016571 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 1 Feb 2017 19:21:49 -0500 Received: from smtp-auth3.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth3.server.rpi.edu (Postfix) with ESMTP id 1DF9558077; Wed, 1 Feb 2017 19:21:49 -0500 (EST) Received: from [128.113.24.47] (gilead-qc124.netel.rpi.edu [128.113.124.17]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drosih) by smtp-auth3.server.rpi.edu (Postfix) with ESMTPSA id A573F5806B; Wed, 1 Feb 2017 19:21:48 -0500 (EST) From: "Garance A Drosehn" To: byrnejb@harte-lyne.ca Cc: Polytropon , freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh Date: Wed, 01 Feb 2017 19:21:48 -0500 Message-ID: In-Reply-To: <84861d4906923faec222f96580833c2f.squirrel@webmail.harte-lyne.ca> References: <20170131161824.a9f1ef46.freebsd@edvax.de> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <20170131200143.00c5e5da.freebsd@edvax.de> <84861d4906923faec222f96580833c2f.squirrel@webmail.harte-lyne.ca> MIME-Version: 1.0 X-Mailer: MailMate (1.9.6r5319) X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.00 () [Hold at 10.10] X-CanIt-Incident-Id: 02SDAlNAx X-CanIt-Geo: ip=128.113.124.17; country=US; region=New York; city=Troy; latitude=42.7495; longitude=-73.5951; http://maps.google.com/maps?q=42.7495,-73.5951&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.229 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2017 00:29:21 -0000 On 1 Feb 2017, at 14:59, James B. Byrne via freebsd-questions wrote: > On Tue, January 31, 2017 14:01, Polytropon wrote: >> >> I know, those are very special cases, and if your goal is not >> portability and "guaranteed availability", then it won't hit you. >> I just thought it's worth being mentioned. > > Thank you. I have found your explanation of what goes on under the > covers very interesting. In this case I am dealing with a zfs system > so if /usr is not there then neither is /bin. On something of minor tangent, if you're writing scripts in either 'sh' or 'bash', you may find the following web site helpful: http://www.shellcheck.net shellcheck is also available as a port, if you don't want to be pasting your shell code into somebody else's web site. The last time I checked, the port brings in several other ports, so I tend to use the web site. -- Garance Alistair Drosehn = drosih@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA From owner-freebsd-questions@freebsd.org Thu Feb 2 00:31:20 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08DECCCCDBF for ; Thu, 2 Feb 2017 00:31:20 +0000 (UTC) (envelope-from carmel_ny@outlook.com) Received: from SNT004-OMC1S25.hotmail.com (snt004-omc1s25.hotmail.com [65.55.90.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BD23D1DF3 for ; Thu, 2 Feb 2017 00:31:19 +0000 (UTC) (envelope-from carmel_ny@outlook.com) Received: from NAM01-BN3-obe.outbound.protection.outlook.com ([65.55.90.8]) by SNT004-OMC1S25.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 1 Feb 2017 16:30:13 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/sRzBAeu6Rp5JaMWZFqAIMqeAFaYBfSg3K7raJfK37I=; b=YqVhbFawjUDmdRsdBvaVlvDyfp2mXaanEFNAjDMUElxc/vR7P54f8W35T7GgxMnKGrE8Y1I8R7vMOXT5t0VXOFEloxyXzCc/1PtAxrY7CafChq40TSE/deGF8LzVLqGGsy1B8Cpv0o8gqZCWgCoWQQq11/8tjMCoue8dTCPO5UneSUVWkfZqGO6FiIkkQlVztNfvoy9ZjCn6Fla+gtMH7/YAdOILen81e3qGrZuWghB7BmPsqFno6I4UNgSWBHr5hlyBqeApG3ypk58JSBzOXMkKBfu/N4jclcpFa5aeQ8CVTpiYkLcs33R9CSfhb4mBDEVpWLouVNIL8+dgQXHCJA== Received: from BN3NAM01FT023.eop-nam01.prod.protection.outlook.com (10.152.66.52) by BN3NAM01HT071.eop-nam01.prod.protection.outlook.com (10.152.66.190) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2; Thu, 2 Feb 2017 00:30:12 +0000 Received: from CY4PR20MB1397.namprd20.prod.outlook.com (10.152.66.54) by BN3NAM01FT023.mail.protection.outlook.com (10.152.67.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.874.2 via Frontend Transport; Thu, 2 Feb 2017 00:30:11 +0000 Received: from CY4PR20MB1397.namprd20.prod.outlook.com ([10.171.167.147]) by CY4PR20MB1397.namprd20.prod.outlook.com ([10.171.167.147]) with mapi id 15.01.0860.026; Thu, 2 Feb 2017 00:30:12 +0000 From: Gerard Seibert To: "freebsd-questions@freebsd.org" Subject: Re: Programmer's Prayer Thread-Topic: Programmer's Prayer Thread-Index: AQHSfOuDY/Ipxt6Jhk24201O3nu76A== Date: Thu, 2 Feb 2017 00:30:11 +0000 Message-ID: References: <40f81edc-fea0-566e-1b24-ffa50d2818a2@googlemail.com> In-Reply-To: <40f81edc-fea0-566e-1b24-ffa50d2818a2@googlemail.com> Reply-To: "freebsd-questions@freebsd.org" Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=outlook.com; x-incomingtopheadermarker: OriginalChecksum:5CF82193B1BC904AF0EF1A8DA9D4F4989D6BB3881CC6295942AA37E14BE815C7; UpperCasedChecksum:FC70F441F205AC0B3358D5EDD7ADF08B539AE5C632A9EBE9AC13E610C2425550; SizeAsReceived:7680; Count:37 x-ms-exchange-messagesentrepresentingtype: 1 x-incomingheadercount: 37 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; BN3NAM01HT071; 5:lExjS2+0CwA75ndxezC86jXDjQnuU/ZwTldqecnojlchALgQTtiNcfkeCTwgzymTMf572hnCi9VQL3qndutgn7MfH6Z7KvsA/Y2g1P5+4B6jDKkP5bIS3tZupeBzu2DZ6CcR/bZGSVXBXZ8QT40f9eZ2HhksgSw5tsz+Gk2SmMw=; 24:JlMQ8ZlozhIvmSsWpAokPxJcq67W9yZRcp5SR/40TzjdZVhf25JMcKse49OVRDwHudfq+5Hgr38dSib160CpGcj8uBHN812emN9Oj0zbLKQ=; 7:/mK+czSjV/uS3jCUUOU+pBddCm5FfcEJOWAJwXY9uYrpRnIvyyrn5dZnx70AHqrIs6Do9EbYPn8bDx2DX4sssSavJlznHPRm6+LM4PhKoiFLSs9upriWyFXrr0eOj7TmNyV5kLkJrSXIlObvevh/aa9o4tPsN2J9aOFgi52tCL7XXArt7I4SeYiW0XepG0nl1TYNUX6qXjF8OqZIQrN6OYq+GbZgjy5Bfy1fCpIL+BzZyDotc2H5N+pjYkNbeS1e5+Am6hXGY9gRLy1ax+qMS6eRsixGXIoMlA6bCWKSeQokS5Td4cgup4phoGdtkPGdB/RR2340zJ+KRclImlOytKh7MhNnePfqjk8qT6PL1TLzP/XKcVSAGu+NxB02+ZBd+nHgtgTn2tvwJWfziqxSkmcXOGlzJVIcjx9gPpaPD71qdfhww2VKYKMoUYyXApBtOdsnGLTZmySKiXsQHLXMBjzKGvRZE0iA6uZ2/UBa9tIMPiMMkvs3Zbz4xTZuz5HSLZ/TTc5OwQEu9/IkSrPILw== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900005); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3NAM01HT071; H:CY4PR20MB1397.namprd20.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: edad8eda-52a3-4462-c730-08d44b02a5a1 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(5061506344)(1603103129)(1601125047)(1603101355)(1701031039); SRVR:BN3NAM01HT071; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(432015012)(82015046); SRVR:BN3NAM01HT071; BCL:0; PCL:0; RULEID:; SRVR:BN3NAM01HT071; x-forefront-prvs: 02065A9E77 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <429A436CD5B43B4CB23F6C28DFFBFBB9@namprd20.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2017 00:30:11.9911 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM01HT071 X-OriginalArrivalTime: 02 Feb 2017 00:30:13.0135 (UTC) FILETIME=[849F31F0:01D27CEB] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2017 00:31:20 -0000 On Wed, 1 Feb 2017 13:50:34 +0000, Dave B via freebsd-questions stated: > Nice. >=20 > Can I repeat that with attribution? If so, who to attribute it to? I have no idea. It was sent to me by an associate. --=20 Carmel From owner-freebsd-questions@freebsd.org Thu Feb 2 08:42:30 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 050D3CCD054 for ; Thu, 2 Feb 2017 08:42:30 +0000 (UTC) (envelope-from mike.delgado@whoishostingthismail.com) Received: from server.whoishostingthismail.com (server.whoishostingthismail.com [104.236.126.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C93BA1F0E for ; Thu, 2 Feb 2017 08:42:29 +0000 (UTC) (envelope-from mike.delgado@whoishostingthismail.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=whoishostingthismail.com; s=default; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Subject:Reply-To:From:To:Date:Sender:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=38fgWzD/tLp+yyqg3oUo3VdjIvo8j5o19IY4U97WQVI=; b=g/8XfIS4cALsZXB+bXlJC+frh vWgpzqV4bv9uoQezkyZvnLrssssgczKU0LI4mpOhHG6to93WdfiSn0EkObb5gQXPZnO9VJDGaHMB3 n+ceGzVmpAny5TeTgBblVr+3EmfX5D6qSkBpra6hfhV62acK69ru/gnFxo7xt1Xqwk2EED1b1wTNf /zubA14PEMYRYSbC4yepXlm6VZ11atZ8yJNBe6ThT7BLbI9V2chhm+8QikZh3HuKsvy9TS2LchN5m ZITP1//kvt/8CgsAUxs24KZYFdvhNHomrFN/v/x/Jl0aiFGhsAEpvhrzJs3u0EHGiaJWCs1k6BWOK tU8CPMLPQ==; Received: from ec2-54-196-36-156.compute-1.amazonaws.com ([54.196.36.156]:57298 helo=whoishostingthismail.com) by server.whoishostingthismail.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.88) (envelope-from ) id 1cZCyE-0000Yz-A8 for freebsd-questions@FreeBSD.ORG; Thu, 02 Feb 2017 08:42:22 +0000 Date: Thu, 2 Feb 2017 08:42:22 +0000 To: freebsd-questions@FreeBSD.ORG From: Mike Delgado Reply-To: Mike Delgado Subject: Re: One of your pages has a broken link Message-ID: <6032313.or_mail@whoishostingthismail.com> X-Priority: 3 MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.whoishostingthismail.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - whoishostingthismail.com X-Get-Message-Sender-Via: server.whoishostingthismail.com: authenticated_id: mike.delgado@whoishostingthismail.com X-Authenticated-Sender: server.whoishostingthismail.com: mike.delgado@whoishostingthismail.com X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2017 08:42:30 -0000 Hi, You've had a couple of emails from me recently about a broken link I found on your site, but I didn't hear back from you. Is there someone else I should get in touch with instead? I've included my previous email here: On Fri, Jan 27, 2017 at 8:49 AM, Mike Delgado wrote: Hi, I know you're busy so I just wanted to follow up on the email I sent you the other day as I noticed the link is still broken. I've included my email below for ease of reference: On Sat, Jan 21, 2017 at 8:54 AM, Mike Delgado wrote: Hi, I was on your page - http://nsa.kpu-m.ac.jp/gijutu/python/man-bsd-ja/ports/math.html, when I noticed that one of the resources you mentioned isn't online. Here is the dead page - http://www.unidata.ucar.edu/packages/netcdf/, 'Main Web Site'. I found it whilst doing some research for our ultimate guide to NetCDF which has just been published and might make a good replacement if you are updating the page. Here's the link - http://wiht.link/NetCDF-resources. Let me know if there is anything else I can do to help. Best, Mike From owner-freebsd-questions@freebsd.org Thu Feb 2 16:00:46 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9283ACCDF4B; Thu, 2 Feb 2017 16:00:46 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 6E5C011FB; Thu, 2 Feb 2017 16:00:46 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from lowell-desk.lan (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id 92D3933C1E; Thu, 2 Feb 2017 11:00:37 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id F1D873981A; Thu, 2 Feb 2017 11:00:36 -0500 (EST) From: Lowell Gilbert To: Gerard Seibert Cc: "freebsd-questions\@freebsd.org" Cc: freebsd-chat@freebsd.org Subject: Re: Programmer's Prayer References: <40f81edc-fea0-566e-1b24-ffa50d2818a2@googlemail.com> Reply-To: freebsd-chat@freebsd.org Date: Thu, 02 Feb 2017 11:00:36 -0500 In-Reply-To: (Gerard Seibert's message of "Thu, 2 Feb 2017 00:30:11 +0000") Message-ID: <44poj0shuj.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2017 16:00:46 -0000 Gerard Seibert writes: > On Wed, 1 Feb 2017 13:50:34 +0000, Dave B via freebsd-questions stated: > >> Nice. >> >> Can I repeat that with attribution? If so, who to attribute it to? > > I have no idea. It was sent to me by an associate. It first turns up in my e-mail archive almost 15 years ago. Without attribution. [Followups redirected to -chat] From owner-freebsd-questions@freebsd.org Fri Feb 3 01:21:32 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F9BECBEEC0 for ; Fri, 3 Feb 2017 01:21:32 +0000 (UTC) (envelope-from pxy4cc@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 18E64E42 for ; Fri, 3 Feb 2017 01:21:32 +0000 (UTC) (envelope-from pxy4cc@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id b65so5099911wmf.0 for ; Thu, 02 Feb 2017 17:21:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=dRX50BxSxES0et6stf5rwu4ya6HfPyQMqDxV61085vA=; b=VHtWp85jl0HXtsR5dnYJWWGjsRlCCtVggaNzNYHAm3aDW1jbIJgxSnq+PHh5RY22Jd 1Q0wFpBE2h0N2cMnE/OU5lmryS4mueYQdnHVjFwgQb3zAVn9Ka12wjXQySvauvQp+Ynr tK19hQJQ3V9h7ICXzlNlm9Epzhrsdx1pdZPedugLrhotAVPCvByIIfuCfcsJeihxcxUu d0kQ2N4shFUPtH76M9hdQX7kFfm9kE1Os1/jN7YkI1yABaK2wStlTgL/JMA6InJ9LkcW rveLyb2iO7rhNaQ04pc2pY1lfHfgzvBocDQowypoNqOf2Qv/mypiohm3EyeBKg1+mbk4 9UPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dRX50BxSxES0et6stf5rwu4ya6HfPyQMqDxV61085vA=; b=Qbnb0E8j3XPt1dDlD8sufL/lk16K8I4PIZt+okHVwsf+tu2JvrF5IZJBjTv8D/lt9E jstBml4bVbU6SgQ7M9L4AhnnWOvudwgQ+1qK5tu9Rsc5Fo06SNjAlfNz0LHDWPlsXLFS sWyLobF+grzYXe+bVVymcvAfzq8gq45uqWqs9sJFde+3tzAbQDWtpTL5gM1FLsEiRQhT Xlei7+zjcumecviJe7OEh6HJX+V+mg+7/JVRP6V64mESCFkZmdfFsrqnammlxb64x2u8 rUI6lMqzFB2qe/LpfNZRC6x6H5+x2fdhXqf6bNhynxTA1JzETbDculJGM+r2fsD+9y22 2BCA== X-Gm-Message-State: AIkVDXK9dv6E2qlJh7+dwzpBydsxGOzUhh4BaMiYhrLS89nzfxWyNoIQNoY/F6AoLP7GQ0POsqE7twctjCpE0w== X-Received: by 10.223.166.181 with SMTP id t50mr9876728wrc.80.1486084890239; Thu, 02 Feb 2017 17:21:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.168.226 with HTTP; Thu, 2 Feb 2017 17:21:29 -0800 (PST) From: Free P Date: Fri, 3 Feb 2017 12:21:29 +1100 Message-ID: Subject: reuseport is not working on freebsd...can freebsd and nginx work together to get it works? To: freebsd-questions@freebsd.org, nginx@nginx.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 01:21:32 -0000 Hi All, Not sure it's OK that I just send the email to FreeBSD and nginx maillist together. But it's more than one year since I post the issue on both forum. For now we are in a dead loop. Nginx: You should approach FreeBSD folks. It still doesn't offer this functionality. FreeBSD: Nginx is using reuseport this way appears to be an inappropriate use of that method. Linux hacked the wrong thing to make this work that way instead of using what they should have. Asking FreeBSD to do the wrong thing is asking a bit much, though I know you just want to use this thing. Is it possible for us to work together to get "reuseport" work on FreeBSD? This is a great feature, as a FreeBSD and NGINX fan, we do want that this feature can work on FreeBSD. Then there is no need to struggle to change to Linux to get a better performance. Thanks All! From owner-freebsd-questions@freebsd.org Fri Feb 3 01:21:30 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D58F2CBEEB9 for ; Fri, 3 Feb 2017 01:21:30 +0000 (UTC) (envelope-from fquest@paz.bz) Received: from mail.qcislands.net (mail.qcislands.net [23.235.65.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BF6A6E3E for ; Fri, 3 Feb 2017 01:21:30 +0000 (UTC) (envelope-from fquest@paz.bz) Received: from 254-68-235-23.haidagwaii.net ([23.235.68.254] helo=[192.168.1.8]) by mail.qcislands.net with esmtp (Exim 4.87) (envelope-from ) id 1cZSUk-0001kD-7x; Thu, 02 Feb 2017 17:16:58 -0800 To: freebsd-questions@freebsd.org From: Jim Pazarena Subject: atrun utility Message-ID: Date: Thu, 2 Feb 2017 17:16:48 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-local_scan: locally submitted (54) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 01:21:30 -0000 I cannot understand why my batch jobs do not run promptly. For example I have a system load showing as: root@:/etc # w 5:04PM up 87 days, 3:15, 1 user, load averages: 1.14, 1.17, 1.12 So ~ 1.2 I have /etc/crontab with: # #minute hour mday month wday who command # * * * * * root /usr/libexec/atrun -l 4.5 So you would think that my batch jobs would trigger, one every minute. But they do not. Eventually they run, but I cannot figure out for rhyme or reason what gets them running any more than I can figure out why they do not. Any clues would be greatly appreciated. -- Jim Pazarena fquest@paz.bz From owner-freebsd-questions@freebsd.org Fri Feb 3 02:05:29 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01681CCD0ED for ; Fri, 3 Feb 2017 02:05:29 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id 949BDCAA for ; Fri, 3 Feb 2017 02:05:27 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp121-45-93-6.bras1.adl6.internode.on.net (HELO leader.local) ([121.45.93.6]) by ipmail06.adl6.internode.on.net with ESMTP; 03 Feb 2017 12:35:22 +1030 Subject: Re: New to bhyve To: Brian Wood , FreeBSD Questions References: From: Shane Ambler Message-ID: <1a0d49c9-341c-4703-726e-405616fa08d3@ShaneWare.Biz> Date: Fri, 3 Feb 2017 12:35:18 +1030 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 02:05:29 -0000 On 02/02/2017 05:33, Brian Wood wrote: > I have a machine that has an i3 and 16G of ram. I'm wondering about > the possibility of running instances of a 32 bit version FreeBSD as guests > on that system. Is anyone doing something like that? I don't think it > would be possible to run 4 instances where each instance was given 4G > as bhyve needs to run somewhere. Is that correct? Would 3 instances be > possible? Any hints on bhyve configuration are appreciated. Thanks in > advance. > As long as your CPU has the needed features (it should) you shouldn't have any problems. The bhyve guest supports running the same software that can be run on the host CPU (32 and 64 bit) The CPU and RAM used by a bhyve buest is shared with the host, so yes you could start 4 instances with 4G available to each, but as each uses more memory at the same time the system will start swapping and slowing down. Maybe run three with 4G and one with 3G You could also look at creating 32 bit jails as they have less overhead due to each sharing the kernel with the host system. 21.7 of the handbook explains setting up bhyve guests. https://www.freebsd.org/doc/en/books/handbook/virtualization-host-bhyve.html Have a look at sysutils/vm-bhyve it makes using bhyve a lot simpler. https://github.com/churchers/vm-bhyve The freebsd-virtualization mailing list would be a better place to ask for more specific help. -- FreeBSD - the place to B...Software Developing Shane Ambler From owner-freebsd-questions@freebsd.org Fri Feb 3 05:43:05 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FD89CCE6CD for ; Fri, 3 Feb 2017 05:43:05 +0000 (UTC) (envelope-from purchasehair@aliyun.com) Received: from out4438.biz.mail.alibaba.com (out4438.biz.mail.alibaba.com [47.88.44.38]) by mx1.freebsd.org (Postfix) with ESMTP id 3E480151B for ; Fri, 3 Feb 2017 05:43:04 +0000 (UTC) (envelope-from purchasehair@aliyun.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aliyun.com; s=s1024; t=1486100565; h=Message-ID:MIME-Version:From:To:Date:Subject:Content-Type; bh=QvuLYem+V7J72LxTXhqtp+PDraQe1lwjdg4rAfk5a/8=; b=M/RQOSdcrDvVVfyMdpnqZUE0uvzHTCb+ND43K0n7PNKwUhWDfbuP+2Taat1e1zF7X1wGpPSSmYhmaATUkxsG1jh/gU3VsLsLwxMTu3Ty2xt5fljk0OrK3pbqV6FI9FQPIGyBkWzoRw4p+i2hCrC8jPmBgcZSCJL0zEsqyBTAW0U= X-Alimail-AntiSpam: AC=CONTINUE; BC=0.1437725|-1; FP=15795757297476686793|71|1|57|0|-1|-1|-1; HT=e01e04400; MF=purchasehair@aliyun.com; NM=1; PH=DS; RN=1; RT=1; SR=0; TI=SMTPD_---0ShuMXwg_1486100251; Received: from wangnaisen-PC(mailfrom:purchasehair@aliyun.com ip:27.206.192.139) by smtp.aliyun-inc.com(127.0.0.1); Fri, 03 Feb 2017 13:37:31 +0800 Message-ID: <40c91b29-ec54-4dee-83f0-7cae0d96e095@purchasehair.aliyun.com> MIME-Version: 1.0 From: "QUINCY" To: freebsd-questions@freebsd.org Reply-To: qh_hair@126.com Date: 3 Feb 2017 13:37:15 +0800 Subject: Re: nano ring hair extensions Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 05:43:05 -0000 Hello=0D=0AWe manufacture high quality remy hair extensions in CH= INA. Just wondering if you are interested in buying them at low a= nd competitive prices? =0D=0ANo MOQ and 4 days' lead time. =0D=0A= Further informations, pls see our website: www.qh-hair.com =0D=0A= Thank you & Best regards=0D=0A=0D=0AQuincy=0D=0AEmail: qh_hai= r@126.com=0D=0A=0D=0AWhatsapp: +8615275036631=0D=0AChina Qinghui = Hair Products Co.,Ltd.=0D=0ACompany Website:www.qh-hair.com=0A=0A= wmlINrosWZ20Misdh5aJ4SWboB1qwViPdGEYG8kOg9UG3LeDyPyBkRoDqakcpXW0H= cN6Etx9LmsUXf8CmnSGnGvmh0ywO8picTZRY8Y5ioPYouFa1HP15gD0HrPEU0lDX9= I3ghDeoMnYRwXMkou6jndWgYaxjkbh3c1eLCTK4ACiSE9at2jvvekzWMNi66U3B5U= EuJ1IvK2IKU3COZ4h1FMORriZOBDXGyHMJuFK0B0LcCP2Iat71D2Wj5M2r2TT642b= dhSkjkgqE0CfCfgE8wW2wKsDHDjYH6E8zDPri8OHmChitxqbMfLA7ZFsOeCG0iIym= tFYqPlZHeGTt9aac8csl30AYmC3w7G3UJW0RrKWTLSTiLYF4rtS6fcis503citAxC= ZKc9jLnfyAb7hcoWZ4EOWEwExLqGJBiilGMesU8IvRGC7lNOFfioWJFkdyCykGvXh= SLBp9u4WVi5XUxbXB0tiTmC0r0ThznOlJkeAcovLes0qAmi1rAIF1Eow9BX9AMmyu= JeAiBLcvI4rmbq5HSQZE8k4WIrBrmar5sWQ8IJQPvajAWaXbSrIWnTlp9Dz9aL8xD= mUezWZ9Za8Y0tZytpyVsuIyBqY59GEK2LXAgIBVszWdKnoGE1GKcd58ElD9YTZjvo= WfwpiKODtTxvNd1ir70UxOGOWU4rXyzDHmr99eJVVzKbA9yp8FsRiAR7zHsnFmFUk= UNqMR8co5YX4ueNmEjh5Hk7vjArLlfzTPRGl7DgxgtdCT24tF113oPCAGVthHq2Pp= 4fCxre13KOe6uChvX6kewv0f5Fc9ZPPqocPNrVdNZZE0otbjbLJkIBSyfnsL2R3UY= NIiNu42SwfwRZQCuSYe6vHMjgx4tsK7VJ1ALSwHHHrbmmHfwPh9TPOt6VYwWZyqM8= A7YgQBmgwo3vqXyixDaAd5VytQUZKH91pdLzggZFNCjppBu0XEsUfbUucqM0GnvPf= 26cbZ1gEvNAMv8SlT16eeMdjhnQtZYp7t9nvhPYCbgKnkHGiTENloA0fSTUCbMEwo= tjmLn343u3Y2QYzGyAkb3IS87CoVmroBdZRokwwBIiUx2d2VkVDcjlkKqdDKF9G3E= nOQ7bm14JtLNk6UAtAqOchSF6X6TLVzBRTEobO9yB8ASzX57Jacyger6Wb0eg8iNU= 9WrrvpFrRc3G069RY9BJ0lCryr0NVitPMYp1EFeKx7o2opW5RmhYH4TOjZT3pRwzI= dU2G8cjVQcSXA39vUWy1v8I4BHFLalFBPjauUoI9X2QR1RIWKyuVXyd5cY5qxxLvx= g7gSEBwdo3shR2KYI1CQKEh65iWjiCqhlkLJs35XYHyuLNlVkrOv8EMCQaNlEcUMC= aWwh1wFVES25MlhX0YRNU8Hx8SigKiLMMRAROEjU9AuLKw4OvoEe3YI1eZ88epbm7= fjUKq9mFWDkEVNCNtKlExJN9yCPvaGKo7Euda45fiz7lonjcwkKFPIzwvKbNkQufT= VwhipDpE6lYBsLbjCZPV5yp4YHpSiVr4SrsQ1T7Gl0JmBU3Z0tHQEjOm7djHewlbU= TJ0iliIS8z4P2s3DpSPdBqyC5IOzpsPExsIb2HEbYYvJJx4Kg4OEwXjtaocDt8tGK= phAKRAIeDfDUOTyD4jlDb8A9e1Eu1IPuPZkguZot6pSIGylvEZoP83zhHrvQWdcVp= 85Pyh94URwLfRtGF9Q1jZmLq2z3uyxSdWixtwWnPkVgwN1PXPbMnbCqMjowI6zlkE= yizVd8dtbY45fC0K5FnKv2kSL97pFJKzVRfJg2C2yUZElG3MvX1UYA9wYGa30OOsd= vaonht22kbA2Fw55lTHIPAlIIKzSy2K6wqQwFoetYREoytia4XFU6JnUOFEwUauhr= twfFzpWFdKYVX9froNAmQZN2WH0JHzNnmX5X3uvyIfTZpYRvp5wnTVAuJcJRpcXDW= Az04hoUh2EA5NDXQukC2qtrmAeRKE8vif2PpQq7GC5RgZoVzM1USkBw67Dt3x9DU8= iPLNyZ4dVqkCbmcihYDdDXEvIidW39ssX8Hy9Ld1QFoacuWhhKfa0Gvlaf5gM79MY= RF3FD8wKBnYyujelWFiUisgClnUGXfJvCbkOTBEBIpoiwMGVQUPsQSFpoqkfeQNmE= sWiZqsk0GbS3Y6yHYP3pgFKwUqthonSC2E4QnWqsvr9GNlqkLxf0JWnNcM5ZY3Cjj= g1j1Ik2pAUPv4Iy09vQ8RS5hhEAQqtrPQmwk6i3dcA92yi83wZPxLbrnV2K4KbZ7s= ZEHceTQsDVgJ2IZwwkqDT3FU9o4xZt0B1zyDqRi6Y47faESjLxdRytzWYM2POitaU= FHt9l5F2kEOVpJuwKMrf93x0CEEOtiGBWlvWpapsxOePK0y2yi3w2UKB9sxGrQz1Y= dY4ex6AmYIkPIgB5Bgae9y2ATMXCJ0GfcQw1uO0csa3cqMrbVAQAoNPFWukL9YDY1= 4CSJzBMfXLZuPa7lLG8a6Rp1R50uf3uw5bl9zsmZ3kq1Pa6jdpnhuNUddQSuBi0Uh= spEPXLjk97LqnbHYGgPFd2ig7WIASnKkwKnKsugD4XlG9NPFavU1af4p7oH03IsLm= rUDOWvc0bAfHC6k63pmsJ9gGXD4MfAlvzjHTcQe0I0ZFOIvhnUZj6iCiDXQirpLBe= K7ioqUcalJI9BRe8MpkA2pgGpfe0Vyjfoq4AcSW0N9KyU815CaE0q0clRBZbGceNq= tLaNDVUskNSFHMhd8nLTjOneIJBTLjAUW8qmQiYfKy5djG9OHXxOtU7EnW4Tk0G0c= YIzlUmQpw8LJaU2AMbNMMq21MYUd4VJR40kXAtMAHpXLmVd12jxPSeqxGxzWsCkBo= TE9z4Zjpd4msgFRLSaKnUYQANh2TQ845mmsg3sXkdpF934pSHbArzdtVOzMNXpy40= h6UcAHqdq9viGwIS9cEyCv9SwsuFamNQA9MYvG6u9e83YC724UNdUwnLX1G8cL23l= EIxJJnt5aonn5TUkrAfzAW4L11t0Yhoc4HkUzjlxj8J7ZoR7LNKaMuLHDMIITt7T0= binzZK8fIfsdWLC9leawepAWDgNACDQ1Q7O6uyM2CV4ejuH05zxfWmLMHrWIXxC4p= rnOXwFNr7UiklC8zNv36B4tl2o2C354i0PS7S2zTKNOstrlPN992yXOmTsV8Dan1P= 0kwK1GKValNf1SA2cPUW1K21vdq7rgAqMCs7P5Lsp7oC07SAk5qls5OghveOgCuTL= nsoptd74sxUlq0okPMlQeXHOcPjRWcMCvRDEuaRRig0yTURvPtqP82wpLzdDTg7gK= iQymKQFVuyYW8VhYO1sLWtskdSUXdX18KOB4i85DKUEuytDEVE5eFuOOne9RVIIww= PbkjdGGWP02PXMKff1ySMtgZMG4ZdH2c8YIhjkIYpiQtMZqroBFG9EJlVkxwBGJ7Y= QHZ3tWVjztuDMdNgCAB1l2ufnlYNbnIzIvViroVFKmzaeI96KfZ676CNdKG7X78cL= VUghuPeFVgYtj0EbR3WoBrCT85HHOHCempjNTPfpKrbPDkTJ1V64cO9tin8p8wReE= K6TGQi2OwDafNfObXFSBy2ygPvwGPhdAXaTdZ3bC3gFbYdu7kdbQYC6HyDQkMlYep= AiCmAbTufxhmmhC1olC6nBl4bFmdQQIirLoVSLK1hmI4Okbmejn0m82YWxaUPGEpP= ZVATG8DBAO1TggQu0YwsIWiJpYlAPcBIiePpAsybKoLk05GgjpPH7X73CRtHN2Loc= jA2rrUxqlHjaYIki4hqmTAk6LMJYQnHDn7HuEPSvigLgOTE89pJLl1iIfVFEayAY0= FMQ1PEepU3DP4iS8BOrEWilOZfI9dlJGNg86N6kKumrYFSbCMvzJ9k4nr12AV5bzk= W2O9MluuG9zRn9636mHLZxtcLFL4KPpaSDIQmt0a4fsauw3SVwPItNkpzCo7zpJRK= pYJqfHCmxHJ4iHeBT9e0GG4jihK4TAEwBq5xjrFPcmW5AlgU9vGgvQ3IUq8YWysW2= dtSCGhrtpNkKYIX0QUnTn1KmmDTjHSDTZ3nRohtdfN52IYVHaY6D52EbIvg3o7Mw9= q From owner-freebsd-questions@freebsd.org Fri Feb 3 16:51:46 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6600CCE48D for ; Fri, 3 Feb 2017 16:51:46 +0000 (UTC) (envelope-from sandra.lisa.us@gmail.com) Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3D2A1F87 for ; Fri, 3 Feb 2017 16:51:46 +0000 (UTC) (envelope-from sandra.lisa.us@gmail.com) Received: by mail-pf0-x241.google.com with SMTP id e4so1911425pfg.0 for ; Fri, 03 Feb 2017 08:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :thread-index:content-language:disposition-notification-to; bh=gF3WcfqH7KFUPUGbK+XICWEuPBy0pBIp056uRUjm+O4=; b=gJD1GCGZAMf0yU00e62VszpgUoi9mbsW7CJCgKGoZplLs54L+1pvqAa++Lk9BEXhbY 6qOz39CA6q9e6TPfSsfjDDfEoptTBXVGEtikJzchQXNxVzF3m6/FmFV4NcltKDt7glXt te8GVslyufbhI7NTv1zVlTQDG1cvpB9+qp1Sz11PutiYgwqOil47dOvey5QO7ENWLEIA HzIgmLMUGEO+xJow/PPajQFdjfvdVl74qIny3e0aSd1nfUDQDwHERR5FJySUWtzlx5Vz KUxPCT16mnZw0Ig05bfgeIrLrycF0XqdDgnjOn/oWFvdZlDRsBAcvo6vpoJIlsnomhjj sNKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:thread-index:content-language :disposition-notification-to; bh=gF3WcfqH7KFUPUGbK+XICWEuPBy0pBIp056uRUjm+O4=; b=CsWjODTyOFHJte2EdOCX4BHWlp3dEFU5hQFlOAMKiH/DWRD09FslDELYTvPTdJKTM7 oRfbNNAjDQI5ZVooSpuLB+6L0iMprtdWh2WMzPTuOdtIlbawxVVCf1XVhuGqaIwTmM6T A0GBmXQTxV4IC5SuvEEvig64P/AgEZf9Rv9foh27gzWzJVX5rK/kJheOYFdJvpKS3BGm Ro7V+TKEs886hzaZ+JLCUS/rvnQFxAdirTpd0wZJJ0x7m18ND//aGFNMvyst/eL8WhlR xbAYY3ufHnWJp440G1kakG64Cyb1YifkUh3fW2XD7m+pEsmaIhJ/6mDmWGlqBw8Xragt 1bDA== X-Gm-Message-State: AIkVDXKtgq7yUQZtowKLIFNjElZ4WXrmy+deuLw25gRX3sh8yF5tGDq4EzYLJgxuatSvUQ== X-Received: by 10.84.238.205 with SMTP id l13mr22374048pln.168.1486140705985; Fri, 03 Feb 2017 08:51:45 -0800 (PST) Received: from Admin5PC ([122.171.58.68]) by smtp.gmail.com with ESMTPSA id l12sm68510244pfj.37.2017.02.03.08.51.44 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Feb 2017 08:51:45 -0800 (PST) From: "Sandra Lisa" To: References: In-Reply-To: Subject: Attendees list of Southern California Linux Expo 2017 Date: Fri, 3 Feb 2017 10:51:43 -0600 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdJ+PKvctfwH9rDsQsiHT30j5pPX/AAARpZQAAAAFJAAAAAG8AAAAASQAAAABSAAAAAEwAAAAAUgAAAABLAAAAAEUAAAAAWwAAAABVA= Content-Language: en-us Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 16:51:46 -0000 Hi, Would you be interested in the "Attendees list of Southern California Linux Expo 2017"? Please let me know your interest to send you the number of attendees and cost. Just let me know if you have any questions. Awaiting for your reply Regards, Sandra Lisa, Marketing Executive If you unable to view this mailer: please reply me subject as "Leave Out" From owner-freebsd-questions@freebsd.org Fri Feb 3 17:44:48 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7233DCCF7F4 for ; Fri, 3 Feb 2017 17:44:48 +0000 (UTC) (envelope-from stephen.joseph@united-email.info) Received: from mserver.united-email.info (mail.united-email.info [137.59.52.162]) by mx1.freebsd.org (Postfix) with ESMTP id C695B77D for ; Fri, 3 Feb 2017 17:44:47 +0000 (UTC) (envelope-from stephen.joseph@united-email.info) Received: from UnitedPC (unknown [202.133.79.30]) by mserver.united-email.info (Postfix) with ESMTPA id D6EB0193EC3 for ; Fri, 3 Feb 2017 23:16:04 +0530 (IST) Reply-To: From: "Stephen Joseph" To: Subject: Ask a question Date: Fri, 3 Feb 2017 12:44:04 -0500 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdJ+RGhgTfhe5bhYRt++8HgS5cHwUg== Content-Language: en-us x-cr-hashedpuzzle: AAqG ARS9 BQVv BTTC Bw1B Dm3y FVd3 Fm7L GuO1 HXaa H5Gx IDJO IuRH I7US JEVc Ju1b; 1; ZgByAGUAZQBiAHMAZAAtAHEAdQBlAHMAdABpAG8AbgBzAEAAZgByAGUAZQBiAHMAZAAuAG8AcgBnAA==; Sosha1_v1; 7; {51795930-B22C-4B91-A637-2BC743500BEB}; cwB0AGUAcABoAGUAbgAuAGoAbwBzAGUAcABoAEAAdQBuAGkAdABlAGQALQBlAG0AYQBpAGwALgBpAG4AZgBvAA==; Fri, 03 Feb 2017 17:44:02 GMT; QQBzAGsAIABhACAAcQB1AGUAcwB0AGkAbwBuAA== x-cr-puzzleid: {51795930-B22C-4B91-A637-2BC743500BEB} Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 17:44:48 -0000 Hi, My name is Stephen Joseph, the Business Development Manager at one of = the leading email database providing companies.=20 Our area of expertise lies specifically in the major industrial lists = like: Agriculture, Business Services, Chambers of Commerce, Cities, Towns & Municipalities, Construction, Consumer Services, Cultural, Education, Energy, Utilities & Waste Treatment, Finance, Government, Healthcare, Hospitality, Insurance, Law Firms & Legal Services, Manufacturing, Media = & Internet, Metals & Mining, Organizations, Real Estate, Retail, Software, Telecommunications, Transportation, etc. Building long term relationships with our clients is something we = strongly believe in and we go to great lengths to ensure our valuable clients = receive first rate service. Some of the most popular services we offer include: =FC List service #1 - B2B & B2C Email Lists =FC List service #2 -Data Processing & Email Appending =FC List service #3 - Email Campaigning =20 We=92d welcome the opportunity to discuss your email list needs.=20 Best Regards, =20 Stephen Joseph | Business Development Associate | T: +1 610 572 4885 Global Business Data =96 Email Append =96 Data Append. =20 If you are not interested in receiving further emails, please reply back with =93LEAVEOUT=94 in the subject line=94. =20 From owner-freebsd-questions@freebsd.org Fri Feb 3 18:10:34 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4BADCCF644 for ; Fri, 3 Feb 2017 18:10:34 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 76DB31BE9 for ; Fri, 3 Feb 2017 18:10:34 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x244.google.com with SMTP id c80so3003257iod.1 for ; Fri, 03 Feb 2017 10:10:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject :content-transfer-encoding; bh=QiaSaOIrOa6DPEFwDyHZof+FXHlhn0WfBVtBDkXR3dU=; b=Ublhl5N6WWxO6DTw8NGv9h9hhPocV/+2Qx+jIajbMOTPofzUSWFkrp4i/KWilV8Ig9 FBS40rJZwwiPZmTEtQTEBVwj58WKsB/NZLkLtlgB/U5H2Qj1lAulJmgxeoSbr5fl38D1 rErZRoRNLTJJJF09KWS0yBIGemdLCLO8kyznDW7w6TIX6llnjb//+TVQs63PDjK1mLVd BU35Sbw7vvMO1RlFh+ljy+vwAd4ueQwNYYXqU6SnYQDitujI40Zy5nc3IuxSYJMXzFNd 4Jn0UTl2rM9uJD3nyFa4IMh0YZjqhM0GSS4WS609ecBBvn76ZLDnw5TtsV91CNdh2kAU Q0Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-transfer-encoding; bh=QiaSaOIrOa6DPEFwDyHZof+FXHlhn0WfBVtBDkXR3dU=; b=iCHzjrfdrtHGn4/lVD0228t8SONdOTMUeyUqPnmwRp3X2C6ffNO7ewDbopLxPasTkV optTYBfy31faMt2Oq08dQIefhgZV8DW1RghetNz4GgUO4fcP0QHJXzlvGoaUv0nhH8hn DvHGv2/EhhZpjc9wxkvA/GNFjj92+UNr7hPElC1KMfQLC+7zKOyJbLqYfpTFmdSJ7Hoy QiLWmJaeFWSMT8f26wKt+XI34ZUc1t3EFraORSCzU6HjxglpCye086HS1CSssW0WBVCu hQBX9un0plLoeKAur8EuqOgioFWJYCbZU63LacYAsZKEZOjIgQ0u2UzUOEWJnzLhscTe NZwQ== X-Gm-Message-State: AIkVDXLTH4uOWG890Pfua5i8kLCUR13hJKEpJs2H7JLELbLee0RRtLs/AjFOKvzbNNAq1A== X-Received: by 10.107.139.131 with SMTP id n125mr12530535iod.166.1486145433683; Fri, 03 Feb 2017 10:10:33 -0800 (PST) Received: from [10.0.10.3] (cpe-24-165-207-226.neo.res.rr.com. [24.165.207.226]) by smtp.googlemail.com with ESMTPSA id c21sm2968288iod.38.2017.02.03.10.10.32 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Feb 2017 10:10:33 -0800 (PST) Message-ID: <5894C7B7.6040109@gmail.com> Date: Fri, 03 Feb 2017 13:11:03 -0500 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Subject: What is ram_blacklist in /boot/defaults/loader.conf Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 18:10:34 -0000 Stumbled across this and wondered what is does. Is it documented anywhere? Thanks From owner-freebsd-questions@freebsd.org Fri Feb 3 18:21:29 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14193CCFB0C for ; Fri, 3 Feb 2017 18:21:29 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D103C74A for ; Fri, 3 Feb 2017 18:21:28 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x22d.google.com with SMTP id v96so23859394ioi.0 for ; Fri, 03 Feb 2017 10:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject :content-transfer-encoding; bh=2yJHQGE8CFfzrKG4IAg7a5ugpOWlx9iaqoo2OvEjZEI=; b=o7hknm0M96EoqwD8jzxIBSiTy3j28r3bvBB7ceNUXBHc7MI00XRLDo6Mw44IHSy8r8 ARIyvH3g2RDzT4IAeLnmbzi4Pq6pi3+nPzjCNNIt90H4X1yt5/g1nn7axl6b2o0KxO5L ob58je3jbOly/7QzCFtDZxY8KeD7mV2E1JZaogYRlMhKznW8qOZUN1InED6dlBGPmoE9 l94BmSA4RHPGbYRvzqujaAq80sGB+zbOC+lDHtQyevr3d9HbllKNns5rUt97vbQzKPhP 2ozcQasPErm06n7QmwPfElgpaBHC13794MsV7Yj6a6Vhc9bL8QXgPXaS1bIBX6icfWlh njdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-transfer-encoding; bh=2yJHQGE8CFfzrKG4IAg7a5ugpOWlx9iaqoo2OvEjZEI=; b=fX6F3wtJZAIHevW3GBq0kAtG4DOuzNVuKQ1zQj9XAMGRsHz5KC7rT1+WmJe6g0omz0 hzksFpTPeLZU1Yo5qhd4GQ02or+4F444Xo2Q37As+Ob/QOxIwgJNvbktvBerKXFR4rFC pkw1WhjDIovSCjzYqyIa9h5YBPDWJGViq5eg5VvlUZ9zyVTzgrSI6Znyod1I4T7efPyd qYcTs5mT9biPRiPdzRF64/MdWMEVzjbgXWZmdBGCa+hN+es/NBgX17+P5LpJb6JcNTZw cEPPFRO/cqHSR/qOhzLMpZkHYufIe55A/RAI9LfvYiSJJtKPDL8iGlFVodpVMnrdoL35 +A8w== X-Gm-Message-State: AIkVDXIgcFlBxrlqYsqqeI58KQSj3e8/4eOn1ombd9KEnCMuCPyJQiJDAuRYu5xreE417w== X-Received: by 10.107.160.140 with SMTP id j134mr13288467ioe.180.1486146088153; Fri, 03 Feb 2017 10:21:28 -0800 (PST) Received: from [10.0.10.3] (cpe-24-165-207-226.neo.res.rr.com. [24.165.207.226]) by smtp.googlemail.com with ESMTPSA id j14sm3683198itd.0.2017.02.03.10.21.27 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Feb 2017 10:21:27 -0800 (PST) Message-ID: <5894CA46.3070502@gmail.com> Date: Fri, 03 Feb 2017 13:21:58 -0500 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Subject: screen saver="warp" not working Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 18:21:29 -0000 Hello list, Since FreeBSD 7.0 I have been using the screen saver enabled in rc.conf saver="warp" Now in 11.0 with vt as the default console drive having so many problems I have opted for using kern.vty=sc in /boot/loader.conf. Now the warp screen saver just shows a black screen with no stars fly past. Is this another unknown problem with the vt? Thanks From owner-freebsd-questions@freebsd.org Fri Feb 3 18:30:11 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F12CCCFCE6 for ; Fri, 3 Feb 2017 18:30:11 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CAB56FBE for ; Fri, 3 Feb 2017 18:30:10 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id v77so40975925wmv.0 for ; Fri, 03 Feb 2017 10:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MYQrR4h7Z3PD99+tBocnsmAMe/QqJaQJARZzEbiKtZQ=; b=u5IEv95xVBJ63hMP/h3yZiEstFa63JYnsCCYxDiTJdTWLvp270dO77CLzbWCN0Uh1N nVBDjYj2E/m6rJbDljUeJ20IPdvP7vNpLtD7S8otk607VBS2wzo5/2uTFaGBQ7W18KoN I9EUjUFR0EWWVpOVWQlYS+iyx215NffsrWytfpaPBJSjyOH+u5OeOp+Ar86fjcMm+7dD RuV+A304RaXWI185GmZv/gIWCNhKCBl8cxpSB+pBAuMfr9LA9f+c+bxmgnZeF9y1IDdk yFR1egZNLuKR2TYOex71tCaHKjnRxdZion7QVBUBlEgUhguYzOcTIQPSXN6O9YP9Vx4r Mvvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MYQrR4h7Z3PD99+tBocnsmAMe/QqJaQJARZzEbiKtZQ=; b=iSBXsHzqCtnKSRIIyzti9j5Ji/d0cWqux0RIrzPtdAkmy0J0eAvh4TmnU6QtNvV1d2 CwB4oC3zM4xuwWkxpqLttxie9txxP1XUh+vKaZA4jtPO+gBrjTGDovFrtmu/cfInRfjE c9pZhc7cApyfZ3OS456AX5FUdbS2E+E1kqyz2aSlzV5tuk8tr5kOV5tk7XJhvYz36mgf siRAn8XGknwzPKQ+xvGVuf8FHEhH2ky6iDrKmwkH4RktpRE2PMGO+kUpXF3JpUI0gL4s bmACIhea3nNPdFI1h1Rt/VHtXR/TPZxqlxCuNkf4Y5B8ERbJOcPff8vYondv0qTdTbYw GJEw== X-Gm-Message-State: AIkVDXJ6+l/nKR02yBjqG4ctvpSf/GC0L/eyOFUVuj5a+mZRHIdIAk0QwC53ON/d5TRswLwYtzYprD6P72D9UA== X-Received: by 10.223.163.26 with SMTP id c26mr13284517wrb.68.1486146609312; Fri, 03 Feb 2017 10:30:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.164.65 with HTTP; Fri, 3 Feb 2017 10:30:08 -0800 (PST) In-Reply-To: <5894CA46.3070502@gmail.com> References: <5894CA46.3070502@gmail.com> From: Adam Vande More Date: Fri, 3 Feb 2017 12:30:08 -0600 Message-ID: Subject: Re: screen saver="warp" not working To: Ernie Luzar Cc: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 18:30:11 -0000 On Fri, Feb 3, 2017 at 12:21 PM, Ernie Luzar wrote: > Hello list, > > Since FreeBSD 7.0 I have been using the screen saver enabled in rc.conf > saver="warp" > Now in 11.0 with vt as the default console drive having so many problems I > have opted for using kern.vty=sc in /boot/loader.conf. Now the warp screen > saver just shows a black screen with no stars fly past. > > Is this another unknown problem with the vt? > I find your question a little unclear. If you are using SC, why would it be a problem VT? And VT's limitations are pretty well known. Do you mean something like "is this a known issue using warp screensaver with SC on FreeBSD 11"? Did you try check the bug database or replicate on another clean system or VM? If you can reproduce the problem and there are no relevant bug reports, you should consider filing one. -- Adam From owner-freebsd-questions@freebsd.org Fri Feb 3 20:39:17 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0E04ACCF1C2 for ; Fri, 3 Feb 2017 20:39:17 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AAE3F5DF for ; Fri, 3 Feb 2017 20:39:16 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 009E162305 for ; Fri, 3 Feb 2017 15:39:09 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WGWyOkVRCUW2 for ; Fri, 3 Feb 2017 15:39:06 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id 68C2E622FA for ; Fri, 3 Feb 2017 15:39:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1486154346; bh=PYudHJON/CP91HR4Ru+cQhhpJ1c1zn7B/G14NI2Ffrc=; h=Date:Subject:From:To:Reply-To; b=dfpC+ImNPu1SECIdiiqhp47ez9VY8LQ2qF7UpzhPgwaO1VSjWdPa4sllarlaJdXkg dCIS5RNks5x1A8XNPaOq+gDKll34mzI1F+y20mK4uL7ziIDWOkH3LlZjFmwT93N8T9 L3DYy+rqEFOAx9HEtXk+feEwktddP3Qeu0na/Prxres87woKGGKDTZeGaygCQpkMHU Zuo2+LhhUttKR8Zx4CXLfWaAQ1BkvBb6I3jPpiWe7NXWlFMLSgXoOnqlzhHABv4oXH 5JEPOb/+J64QcMjiww4vAXrLvcyL4Tgf/E4sc3JmI0yVpx4d+GjWtNFpW8pG0r3fQ4 gIQBjXcVRmoaw== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Fri, 3 Feb 2017 15:39:06 -0500 Message-ID: Date: Fri, 3 Feb 2017 15:39:06 -0500 Subject: FreeBSD 10.3 'service ntpd start' does not create a pid file From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 20:39:17 -0000 Today I have had occasion to stop and restart ntpd on a FreeBSD-10.3 system multiple times. I now note that the command 'service ntpd start' no longer creates a /var/run/ntpd.pid file or updates an existing one. As a result the 'service ntpd status' command always returns that ntpd is stopped. [root@SAMBA-01 ~]# cat /var/run/ntpd.pid 69962 [root@SAMBA-01 ~]# echo 70039 > /var/run/ntpd.pid [root@SAMBA-01 ~]# service ntpd status kern.timecounter.hardware: ACPI-fast -> ACPI-fast kern.timecounter.hardware: ACPI-fast -> ACPI-fast ntpd is running as pid 70039. [root@SAMBA-01 ~]# cat /var/run/ntpd.pid 70039 [root@SAMBA-01 ~]# service ntpd stop kern.timecounter.hardware: ACPI-fast -> ACPI-fast kern.timecounter.hardware: ACPI-fast -> ACPI-fast Stopping ntpd. Waiting for PIDS: 70039, 70039. [root@SAMBA-01 ~]# cat /var/run/ntpd.pid 70039 [root@SAMBA-01 ~]# service ntpd start kern.timecounter.hardware: ACPI-fast -> ACPI-fast kern.timecounter.hardware: ACPI-fast -> ACPI-fast Starting ntpd. [root@SAMBA-01 ~]# cat /var/run/ntpd.pid 70039 [root@SAMBA-01 ~]# ps -auwx | grep sbin/ntpd root 70145 0.0 0.4 32376 18188 - Is 3:28PM 0:00.05 /usr/sbin/ntpd -g -c /etc/ntp.conf If I manually delete the file /var/run/ntpd.pid then the service start does not recreate it: [root@SAMBA-01 ~]# echo 70145 > /var/run/ntpd.pid [root@SAMBA-01 ~]# service ntpd stop kern.timecounter.hardware: ACPI-fast -> ACPI-fast kern.timecounter.hardware: ACPI-fast -> ACPI-fast Stopping ntpd. Waiting for PIDS: 70145, 70145. [root@SAMBA-01 ~]# ll /var/run/ntpd.pid -rw-r--r-- 1 root wheel 6 Feb 3 15:30 /var/run/ntpd.pid [root@SAMBA-01 ~]# rm /var/run/ntpd.pid remove /var/run/ntpd.pid? y [root@SAMBA-01 ~]# ll /var/run/ntpd.pid ls: /var/run/ntpd.pid: No such file or directory [root@SAMBA-01 ~]# service ntpd status kern.timecounter.hardware: ACPI-fast -> ACPI-fast kern.timecounter.hardware: ACPI-fast -> ACPI-fast ntpd is not running. [root@SAMBA-01 ~]# service ntpd start kern.timecounter.hardware: ACPI-fast -> ACPI-fast kern.timecounter.hardware: ACPI-fast -> ACPI-fast Starting ntpd. [root@SAMBA-01 ~]# ll /var/run/ntpd.pid ls: /var/run/ntpd.pid: No such file or directory [root@SAMBA-01 ~]# ps -auwx | grep ntpd root 70217 0.0 0.4 32376 18188 - Is 3:31PM 0:00.06 /usr/sbin/ntpd -g -c /etc/ntp.conf root 70238 0.0 0.1 18832 2340 1 S+ 3:34PM 0:00.00 grep --color ntpd Can anyone tell me why this is happening? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Fri Feb 3 21:43:18 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B81ECCF310 for ; Fri, 3 Feb 2017 21:43:18 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 22EA41097 for ; Fri, 3 Feb 2017 21:43:18 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x230.google.com with SMTP id r185so21580688ita.0 for ; Fri, 03 Feb 2017 13:43:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=p+e0Y6UkxaTJQxkcC54tewknZpgBspTn7Z6DU/VPfhk=; b=tdKjXgDBLCvTTNC+E+YDVe1BDhSilru13ga/6Gb/PEznNsO9578wbm08PjkMhXqvej h8suayAEaM7rjvrs2DeL2PsGXxke23HrUz2AG65JJE4BUYPFVnRnBvu0l4Qnui0N79hk Oxpf/WEgEL0mdEJvPIdlwZ3s6lyf+Nwsg8MhAK/7DgoqAAIPcbNpA2Gylu5a5HuS08z9 RzWWcEPEs71zWR3H6t+cj6BWNrNtJpKcjdgLs8JtW6uaFIiSwN1OcHR+R9IJebBK7GpR itMnGkFSM8PnIeBgs8mnFssPxmD7LE90byRCL0HXKo/ZJm4E6bt/TWO+TdFkqSITOs/q QlGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=p+e0Y6UkxaTJQxkcC54tewknZpgBspTn7Z6DU/VPfhk=; b=MM67zmoJ5EQjKPB2XtD2UUwDwn5QkibOn4SPhXXdIdnAtUs3mhicfDJTQPcwZkGG0T qqnJ7TZErt5NmluaMyucrp4l3mzvf4SXljojs15/4flO6ks+U1NMLlnGMbdv+QWOeQGj KaAUfCeynM51KxLgrHFkStoGlo64nU7/KlvfcvThWJljRwad/esUP/NQ2SBN3LSyjeH3 aaHonbAucGQRrPanjFx4MY9eNvUUHDo0XvEVrmecnf8d2nrwTCWJ8DTNPP/sbLDU4Wb5 7pTBn3Wbc8Sv/yQgUjiVjBzNexcIb589FvkcU6vaxNgbdBrOeE916bfMvm7ZEHZ/roIM 95vA== X-Gm-Message-State: AIkVDXIZxjGWsRQdaM18ycgKAy80smh4dzupiZFhZCmUdwTh5Af4DRTqCOZg0buDTQJf3Q== X-Received: by 10.36.65.161 with SMTP id b33mr2802434itd.114.1486158197034; Fri, 03 Feb 2017 13:43:17 -0800 (PST) Received: from [10.0.10.3] (cpe-24-165-207-226.neo.res.rr.com. [24.165.207.226]) by smtp.googlemail.com with ESMTPSA id y126sm1607593itf.14.2017.02.03.13.43.16 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Feb 2017 13:43:16 -0800 (PST) Message-ID: <5894F99C.5090503@gmail.com> Date: Fri, 03 Feb 2017 16:43:56 -0500 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: byrnejb@harte-lyne.ca CC: freebsd-questions@freebsd.org Subject: Re: FreeBSD 10.3 'service ntpd start' does not create a pid file References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 21:43:18 -0000 James B. Byrne via freebsd-questions wrote: > Today I have had occasion to stop and restart ntpd on a FreeBSD-10.3 > system multiple times. I now note that the command 'service ntpd > start' no longer creates a /var/run/ntpd.pid file or updates an > existing one. As a result the 'service ntpd status' command always > returns that ntpd is stopped. > > [root@SAMBA-01 ~]# cat /var/run/ntpd.pid > 69962 > > [root@SAMBA-01 ~]# echo 70039 > /var/run/ntpd.pid > > [root@SAMBA-01 ~]# service ntpd status > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > ntpd is running as pid 70039. > > [root@SAMBA-01 ~]# cat /var/run/ntpd.pid > 70039 > > [root@SAMBA-01 ~]# service ntpd stop > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > Stopping ntpd. > Waiting for PIDS: 70039, 70039. > > [root@SAMBA-01 ~]# cat /var/run/ntpd.pid > 70039 > > [root@SAMBA-01 ~]# service ntpd start > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > Starting ntpd. > > [root@SAMBA-01 ~]# cat /var/run/ntpd.pid > 70039 > > [root@SAMBA-01 ~]# ps -auwx | grep sbin/ntpd > root 70145 0.0 0.4 32376 18188 - Is > 3:28PM 0:00.05 /usr/sbin/ntpd -g -c /etc/ntp.conf > > If I manually delete the file /var/run/ntpd.pid then the service start > does not recreate it: > > [root@SAMBA-01 ~]# echo 70145 > /var/run/ntpd.pid > > [root@SAMBA-01 ~]# service ntpd stop > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > Stopping ntpd. > Waiting for PIDS: 70145, 70145. > > [root@SAMBA-01 ~]# ll /var/run/ntpd.pid > -rw-r--r-- 1 root wheel 6 Feb 3 15:30 /var/run/ntpd.pid > > [root@SAMBA-01 ~]# rm /var/run/ntpd.pid > remove /var/run/ntpd.pid? y > > [root@SAMBA-01 ~]# ll /var/run/ntpd.pid > ls: /var/run/ntpd.pid: No such file or directory > > [root@SAMBA-01 ~]# service ntpd status > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > ntpd is not running. > > [root@SAMBA-01 ~]# service ntpd start > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > kern.timecounter.hardware: ACPI-fast -> ACPI-fast > Starting ntpd. > > [root@SAMBA-01 ~]# ll /var/run/ntpd.pid > ls: /var/run/ntpd.pid: No such file or directory > > [root@SAMBA-01 ~]# ps -auwx | grep ntpd > root 70217 0.0 0.4 32376 18188 - Is > 3:31PM 0:00.06 /usr/sbin/ntpd -g -c /etc/ntp.conf > root 70238 0.0 0.1 18832 2340 1 S+ > 3:34PM 0:00.00 grep --color ntpd > > > Can anyone tell me why this is happening? > ntpd had some security updates before the end of the year. Run freebsd-update to get 10.3 updated with ntpd fixs. From owner-freebsd-questions@freebsd.org Fri Feb 3 22:25:53 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6A7BCCF1C1 for ; Fri, 3 Feb 2017 22:25:53 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8AF27D39 for ; Fri, 3 Feb 2017 22:25:53 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id A709762305; Fri, 3 Feb 2017 17:25:51 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rS5J0JP5aSew; Fri, 3 Feb 2017 17:25:46 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id E2C85622FA; Fri, 3 Feb 2017 17:25:45 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1486160746; bh=5HCPmqqUAHPpyMx3ZkjIeL3XcNiipc33PaPIhYjcuoE=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=KV0L3FkArlleogyUqmYAd7YfZNODZaHKWe3PZSXkZwzqUfcNsXG9V8sS8LVA6IOHA DE40FUqSiazfIZu8G6W7SnQ7yzJiELF57D36pm7on3Al3OaJyI7Qt6qLk6+v3W01q5 jI99BxEqDkk/S6gTTLqXwEnV2RRzfYrK8nreACba6ccpHgZ/FaDHnxiu5FxGFcKFiZ UXSKrB4w9kYZtNMUZWod7PM3yp45MHRxgfquL2DsrxRLPLUNFnOBy4Lv5kJs0VW7y/ QEWqFe0b4h3BylhnaNO6E6kDIKtpLBpi4qDs3WMWLF+rWFveja8FPPz8elz0ccHtvi ItcuXqiO8yXNg== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Fri, 3 Feb 2017 17:25:46 -0500 Message-ID: <7df89058c8e1c2078611909cdb150e4c.squirrel@webmail.harte-lyne.ca> In-Reply-To: References: Date: Fri, 3 Feb 2017 17:25:46 -0500 Subject: Re: Variable assignment in sh From: "James B. Byrne" To: "Garance A Drosehn" Cc: "Polytropon" , freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 22:25:53 -0000 On Wed, February 1, 2017 19:21, Garance A Drosehn wrote: > > On something of minor tangent, if you're writing scripts in either > 'sh' > or 'bash', you may find the following web site helpful: > I just wish to clarify something here. What I am doing is attempting to reuse a one-liner that has one conditional in it. I do not consider that to be scripting or programming. I am just piping a few tools together and checking if anything comes out the end. I have written bash scripts of course, but those things tend to look like this: #!/usr/bin/env bash SCRIPT_NAME=$(basename $0) VERSION=1.01.001 AUTHOR="byrnejb@harte-lyne.ca" DATE_CREATED="2011-Jun-03" DATE_UPDATED="2011-Jun-03" # Maximum number of arguments allowed by this program MAXARGS=99 # Minimum number of arguments required by this program MINARGS=0 SCRIPT_PATH=$(dirname $0) usage() { cat >&2 << EOD Version: $VERSION Usage: $SCRIPT_NAME [options] [arguments] # Purpose of script: # This is a script template with examples of getopts usage # This script supports the following options: OPTIONS: -h Show this message and exit with failure status 2 -a=value set option a to value -b=value set option b to value -d=level set debug level to level . . . Today when I script then I tend to use Ruby. Tomorrow? Who knows? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 From owner-freebsd-questions@freebsd.org Sat Feb 4 03:49:03 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53473CCCF21 for ; Sat, 4 Feb 2017 03:49:03 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp9.server.rpi.edu (smtp9.server.rpi.edu [128.113.2.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "canit.localdomain", Issuer "canit.localdomain" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2728A6BF for ; Sat, 4 Feb 2017 03:49:02 +0000 (UTC) (envelope-from drosih@rpi.edu) Received: from smtp-auth1.server.rpi.edu (smtp-auth1.server.rpi.edu [128.113.2.231]) by smtp9.server.rpi.edu (8.14.4/8.14.4/Debian-8+deb8u1) with ESMTP id v143mo3v005622 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Feb 2017 22:48:51 -0500 Received: from smtp-auth1.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth1.server.rpi.edu (Postfix) with ESMTP id 4965F58099; Fri, 3 Feb 2017 22:48:50 -0500 (EST) Received: from [128.113.24.47] (gilead-qc124.netel.rpi.edu [128.113.124.17]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drosih) by smtp-auth1.server.rpi.edu (Postfix) with ESMTPSA id 22A7758002; Fri, 3 Feb 2017 22:48:49 -0500 (EST) From: "Garance A Drosehn" To: "James B. Byrne" Cc: freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh Date: Fri, 03 Feb 2017 22:48:49 -0500 Message-ID: <6DCAA321-F6E4-4430-8851-8380F589DF13@rpi.edu> In-Reply-To: <7df89058c8e1c2078611909cdb150e4c.squirrel@webmail.harte-lyne.ca> References: <7df89058c8e1c2078611909cdb150e4c.squirrel@webmail.harte-lyne.ca> MIME-Version: 1.0 X-Mailer: MailMate (1.9.6r5319) X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.00 () [Hold at 10.10] X-CanIt-Incident-Id: 02SErMO8G X-CanIt-Geo: ip=128.113.124.17; country=US; region=New York; city=Troy; latitude=42.7495; longitude=-73.5951; http://maps.google.com/maps?q=42.7495,-73.5951&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.229 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2017 03:49:03 -0000 On 3 Feb 2017, at 17:25, James B. Byrne wrote: > On Wed, February 1, 2017 19:21, Garance A Drosehn wrote: > >> >> On something of minor tangent, if you're writing scripts in >> either 'sh' or 'bash', you may find the following web site >> helpful: http://www.shellcheck.net > > > I just wish to clarify something here. What I am doing is attempting > to reuse a one-liner that has one conditional in it. I do not > consider that to be scripting or programming. I am just piping > a few tools together and checking if anything comes out the end. Understood, but even those trivial one-liner tasks might be improved by pasting them into shellcheck. I've had shellcheck point out things I'm doing which "almost always" work, but will fail depending on the filenames my one-liner happens to be working on. Also note that I **did** say that my suggestion was a minor tangent, and thus I realize it was not necessarily on-topic. :) I just thought that some people who read this thread might find the site to be helpful. Cheerio. -- Garance Alistair Drosehn = drosih@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA From owner-freebsd-questions@freebsd.org Sat Feb 4 04:03:47 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 17933CD069F for ; Sat, 4 Feb 2017 04:03:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay13.qsc.de (mailrelay13.qsc.de [212.99.187.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 714E9F7F for ; Sat, 4 Feb 2017 04:03:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay13.qsc.de; Sat, 04 Feb 2017 05:05:39 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 1E4603CC3F; Sat, 4 Feb 2017 05:03:34 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v1443YbA003824; Sat, 4 Feb 2017 05:03:34 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 4 Feb 2017 05:03:34 +0100 From: Polytropon To: "Garance A Drosehn" Cc: "James B. Byrne" , freebsd-questions@freebsd.org Subject: Re: Variable assignment in sh Message-Id: <20170204050334.b7c3ea7c.freebsd@edvax.de> In-Reply-To: <6DCAA321-F6E4-4430-8851-8380F589DF13@rpi.edu> References: <7df89058c8e1c2078611909cdb150e4c.squirrel@webmail.harte-lyne.ca> <6DCAA321-F6E4-4430-8851-8380F589DF13@rpi.edu> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay13.qsc.de with 1DD2569E89B X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2730 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2017 04:03:47 -0000 On Fri, 03 Feb 2017 22:48:49 -0500, Garance A Drosehn wrote: > On 3 Feb 2017, at 17:25, James B. Byrne wrote: > > > On Wed, February 1, 2017 19:21, Garance A Drosehn wrote: > > > >> > >> On something of minor tangent, if you're writing scripts in > >> either 'sh' or 'bash', you may find the following web site > >> helpful: http://www.shellcheck.net > > > > > > I just wish to clarify something here. What I am doing is attempting > > to reuse a one-liner that has one conditional in it. I do not > > consider that to be scripting or programming. I am just piping > > a few tools together and checking if anything comes out the end. > > Understood, but even those trivial one-liner tasks might be improved > by pasting them into shellcheck. I've had shellcheck point out things > I'm doing which "almost always" work, but will fail depending on the > filenames my one-liner happens to be working on. In this case, the follwing articles might be helpful in the future: David A. Wheeler: Filenames and Pathnames in Shell: How to do it Correctly https://www.dwheeler.com/essays/filenames-in-shell.html And: David A. Wheeler: Fixing Unix/Linux/POSIX Filenames: Control Characters (such as Newline), Leading Dashes, and Other Problems https://www.dwheeler.com/essays/fixing-unix-linux-filenames.html -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From owner-freebsd-questions@freebsd.org Sat Feb 4 16:46:40 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2353CD0E84 for ; Sat, 4 Feb 2017 16:46:40 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from oceanview.tundraware.com (oceanview.tundraware.com [45.55.60.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "oceanview.tundraware.com", Issuer "oceanview.tundraware.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9900861E for ; Sat, 4 Feb 2017 16:46:40 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from [192.168.0.2] (ozzie.tundraware.com [75.145.138.73]) (authenticated bits=0) by oceanview.tundraware.com (8.15.2/8.15.2) with ESMTPSA id v14GYJR7058202 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 4 Feb 2017 10:34:20 -0600 (CST) (envelope-from tundra@tundraware.com) To: FreeBSD Mailing List From: Tim Daneliuk Subject: Failure During installworld Message-ID: Date: Sat, 4 Feb 2017 10:34:14 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (oceanview.tundraware.com [45.55.60.57]); Sat, 04 Feb 2017 10:34:20 -0600 (CST) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: v14GYJR7058202 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2017 16:46:40 -0000 10.3-STABLE system running on a Digital Ocean droplet. Updated sources as of yesterday morning. buildworld works as expected. When I go to do an installworld, I see this: ===> sys/boot/efi/loader (install) install -o root -g wheel -m 555 loader.efi /boot/loader.efi install -o root -g wheel -m 444 loader.8.gz /usr/share/man/man8 install -o root -g wheel -m 444 zfsloader.8.gz /usr/share/man/man8 ===> sys/boot/efi/boot1 (install) install -o root -g wheel -m 555 boot1.efi /boot/boot1.efi echo /usr/obj/usr/src/sys/boot/efi/boot1 /usr/obj/usr/src/sys/boot/efi/boot1 uudecode /usr/src/sys/boot/efi/boot1/fat-amd64.tmpl.bz2.uu make[7]: exec(uudecode) failed (No such file or directory) *** Error code 1 I've used this configuration for some years and never had a problem nor seen anything like this. Ideas? -- ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/ From owner-freebsd-questions@freebsd.org Sat Feb 4 17:05:40 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8937CD0BF3 for ; Sat, 4 Feb 2017 17:05:40 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BCB0D1D42 for ; Sat, 4 Feb 2017 17:05:40 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A8272207B7 for ; Sat, 4 Feb 2017 12:05:38 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 04 Feb 2017 12:05:38 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=zyxst.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=5nT+ibken8qbnKn N0tTtIB9yYdk=; b=QS3jwxlQBXUDK3LPd0NQRNgAIW6uU9jLcyXQz21X1sBfMam 0NvanAuyASjuWDgNBA9cBJcxOVmqFKPx1Kf/+2zPbWWi7eCjGTcDilbJcUK3AMCh bcXoqG/K5NL3E6EzbNCeeoaoFE3KAESje+EO53FmPhXU1aEhmuvoJRkqHxCY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=5nT+ibken8qbnKnN0tTtIB9yYdk=; b=VdOZu+0FQw/wqz0kHPAM 2r2PTmGkJqs8+9xFn8Gt31GvyggV4d+W/fmpLHu6thasFfWVFMInp9QxwHejHW3C VJgeQykJ/oqwBbh9mc+ngOLeyucssypKbZP1qt9xNizp3mXHQgbtzQpnK9BpbmwP TzFyXim15yHkh4sXadoVyTY= X-ME-Sender: X-Sasl-enc: 1dTWFFL5WzP8y1O3RCIfSXPaUSxRb3gY1BmYSt8S8x/i 1486227938 Received: from pumpkin.growveg.org (pumpkin.growveg.org [82.70.91.101]) by mail.messagingengine.com (Postfix) with ESMTPA id 44A27240CC for ; Sat, 4 Feb 2017 12:05:38 -0500 (EST) Subject: Re: Failure During installworld To: freebsd-questions@freebsd.org References: From: tech-lists Message-ID: Date: Sat, 4 Feb 2017 17:05:37 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2017 17:05:41 -0000 On 04/02/2017 16:34, Tim Daneliuk wrote: > I've used this configuration for some years and never had a problem nor > seen anything like this. What's the revision number of your sources? Have you tried re-fetching your sources then make clean and then re-running buildworld etc? -- J. From owner-freebsd-questions@freebsd.org Sat Feb 4 19:42:13 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F99BCD127D for ; Sat, 4 Feb 2017 19:42:13 +0000 (UTC) (envelope-from marquis@roble.com) Received: from mx5.roble.com (mx5.roble.com [206.40.34.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx5.roble.com", Issuer "mx5.roble.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 15D9434F for ; Sat, 4 Feb 2017 19:42:12 +0000 (UTC) (envelope-from marquis@roble.com) Received: from roble.com (roble.com [206.40.34.50]) by mx5.roble.com (Postfix) with ESMTP id 5D97F2E0E4 for ; Sat, 4 Feb 2017 11:42:07 -0800 (PST) Date: Sat, 4 Feb 2017 11:42:07 -0800 (PST) From: Roger Marquis To: freebsd-questions@freebsd.org Subject: Disappearing /dev/diskid/DISK* Message-ID: <1702041139150.62205@mx5.roble.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2017 19:42:13 -0000 What would cause these entries be disappearing and reappearing, several days apart, on an 11.0-RELEASE-p6 system with ZFS root? Roger From owner-freebsd-questions@freebsd.org Sat Feb 4 21:57:32 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 109B9CD0A62 for ; Sat, 4 Feb 2017 21:57:32 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay13.qsc.de (mailrelay13.qsc.de [212.99.187.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A937EC7 for ; Sat, 4 Feb 2017 21:57:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay13.qsc.de; Sat, 04 Feb 2017 22:59:29 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 1C37B3CBF9; Sat, 4 Feb 2017 22:57:24 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v14LvNVZ002282; Sat, 4 Feb 2017 22:57:24 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 4 Feb 2017 22:57:23 +0100 From: Polytropon To: Roger Marquis Cc: freebsd-questions@freebsd.org Subject: Re: Disappearing /dev/diskid/DISK* Message-Id: <20170204225723.0d29efcc.freebsd@edvax.de> In-Reply-To: <1702041139150.62205@mx5.roble.com> References: <1702041139150.62205@mx5.roble.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay13.qsc.de with 942B769E823 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2722 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2017 21:57:32 -0000 On Sat, 4 Feb 2017 11:42:07 -0800 (PST), Roger Marquis wrote: > What would cause these entries be disappearing and reappearing, several > days apart, on an 11.0-RELEASE-p6 system with ZFS root? Other than the obvious (disks physically disconnecting), I could imagine this has something to do with labels (or in this case specifically, with disk serial numbers). When a label is being used, for example to mount a partition, the corresponding entry in the /dev subtree will disappear, i. e. only those _not_ in use are present there. Could it be some "automount"-related thing (when you say it's happening more or less randomly)? Maybe related: https://www.freebsd.org/doc/handbook/geom-glabel.html https://lists.freebsd.org/pipermail/freebsd-geom/2014-June/005921.html http://bradleythughes.github.io/2015/05/06/booting-freebsd-zfs-raw-disks.html https://forums.freebsd.org/threads/47671/ -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...