From mboxrd@z Thu Jan 1 00:00:00 1970 From: myglc2 Subject: Re: how to "install" guixsd on a digitalocean server Date: Fri, 07 Apr 2017 14:34:27 -0400 Message-ID: <86vaqgqd70.fsf@gmail.com> References: <87pogo8lqj.fsf@pobox.com> <86shlks49e.fsf@gmail.com> <87y3vc5mpf.fsf@igalia.com> <20170407143111.sux7lg6rvy2v6qps@abyayala> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwYiP-0002jC-SM for guix-devel@gnu.org; Fri, 07 Apr 2017 14:34:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwYiL-0005XG-Uc for guix-devel@gnu.org; Fri, 07 Apr 2017 14:34:33 -0400 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:35620) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwYiL-0005XA-PU for guix-devel@gnu.org; Fri, 07 Apr 2017 14:34:29 -0400 Received: by mail-qk0-x22c.google.com with SMTP id f133so52798518qke.2 for ; Fri, 07 Apr 2017 11:34:29 -0700 (PDT) In-Reply-To: <20170407143111.sux7lg6rvy2v6qps@abyayala> (ng0's message of "Fri, 7 Apr 2017 14:31:11 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Andy Wingo Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain On 04/07/2017 at 14:31 ng0 writes: > Andy Wingo transcribed 1.0K bytes: >> Hi :) >> >> On Fri 07 Apr 2017 16:04, myglc2 writes: >> >> > On 04/07/2017 at 14:07 Andy Wingo writes: >> > >> >> I just "installed" GuixSD on a DigitalOcean droplet. You can't actually >> >> install GuixSD; you have to mutate an existing installation into >> >> GuixSD. But fine. >> > [...] >> > >> > I upgraded Debian to GuixSD on a physical server in a similar way ... >> > >> > https://lists.gnu.org/archive/html/guix-devel/2016-03/msg00354.html >> > >> > ... but I used 'guix system init' instead of 'guix system reconfigure'. >> > >> > I wonder, could that approach have been used in this situation to avoid >> > the need to "clean up the remaining Debian bits"? >> >> Neat. For me the answer is, I don't know :) I thought with guix system >> init you had to do a bunch of partitiony type things? Certainly if I >> had a blank scratch space I could do that. >> >> In hindsight it is something of a miracle that "reconfigure" worked on a >> previously non-GuixSD system. Strange. I will accept it though :) >> >> Andy >> > > Okay, you have to provide a config.scm and you have to have root or > sudo, in which case you already have the rights to cause total > destruction on the machine... but should we point that out that it is > possible to "accidentally" run a succesful guix system init on a system > which is let's say Debian or whatever, ever if it is just for curiosity > of discovery? I think we should. Because an inadvertent 'guix system init' can easily produce a machine that no longer boots. > And why would we point it out? It is useful. Here are some examples ... 1) Before installing GuixSD, our users may well install Guix to check it out (I did with both with nix/nixOS and guix/GuixSD). Once they do, 'guix system init' is easier than USB install because ... - it's quicker. - they don't have to find a USB key. - they can do install steps (edit config.scm, fdisk, etc) on a fully functional OS rather than a less functional install image. - If installing a server, they can do it all over ssh. This is way easier than plugging in a USB key + monitor or fiddling around with remote management tools. 2) As Andy has demonstrated, 'Guix Binary install + guix system init' works in situations where the USB install may be inconvenient or may not work. 3) In my experience (several headless server installs over the last year, including testing the graphical USB installer), I have found that 'Guix Binary install + guix system init' is more convenient. A simple makefile (attached) makes it even more convenient. Note: None of this meant as a criticism of our USB install, or the upcoming Graphical GuixSD installer. > Is there any harm in it or do we trust sudo/root users to know that > this can happen? In my experience, the most likely "bad outcome" with 'guix system init' is that the system hangs because of a problem with the grub-configuration or file-system "device" fields. See for example ... https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23072 If a user experiences this they may be better off with the USB install since can reboot from USB and try again. So maybe we should recommend making a "GuixSD USB rescue key" before trying 'guix system init' for the first time ;-) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=makefile Content-Transfer-Encoding: base64 IyBxdWljayBhbmQgZGlydHkgbWFrZWZpbGUgdG8gaW5zdGFsbCBndWl4IG9uIGRlYmlhbiA4CiMg dXNhZ2UKIyBzdWRvIG1ha2UgaW5zdGFsbAoKU0hFTEwgIDo9IC9iaW4vYmFzaAoKQkxERElSID0g L3RtcAoKLlBIT05ZOiBpbnN0YWxsCmluc3RhbGw6IGh5ZHJhCgpndWl4YnVpbGQ6IC9nbnUKCmd1 aXhidWlsZGVyMSBndWl4YnVpbGRlcjIgZ3VpeGJ1aWxkZXIzOiBndWl4YnVpbGQKCmd1aXgtZGFl bW9uOiBndWl4YnVpbGRlcjEgZ3VpeGJ1aWxkZXIyIGd1aXhidWlsZGVyMyBcCiAgICAgICAgICAg ICAgICBndWl4YnVpbGRlcjQgZ3VpeGJ1aWxkZXI1IGd1aXhidWlsZGVyNiBcCiAgICAgICAgICAg ICAgICBndWl4YnVpbGRlcjcgZ3VpeGJ1aWxkZXI4CgpndWl4Y29tbWFuZDogZ3VpeC1kYWVtb24K Cmh5ZHJhOiBndWl4Y29tbWFuZAoKL2dudToKCSMgZG93bmxvYWQKCW1rZGlyIC1wICQoQkxERElS KQoJY2QgJChCTERESVIpICYmIHdnZXQgZnRwOi8vYWxwaGEuZ251Lm9yZy9nbnUvZ3VpeC9ndWl4 LWJpbmFyeS0wLjkuMC54ODZfNjQtbGludXgudGFyLnh6CgljZCAkKEJMRERJUikgJiYgdGFyICAt LXdhcm5pbmc9bm8tdGltZXN0YW1wIC14ZiBndWl4LWJpbmFyeS0wLjkuMC54ODZfNjQtbGludXgu dGFyLnh6CgljZCAkKEJMRERJUikgJiYgcm0gLWYgZ3VpeC1iaW5hcnktMC45LjAueDg2XzY0LWxp bnV4LnRhci54egoJIyBtb3ZlIGludG8gcGxhY2UKCWNkICQoQkxERElSKSAmJiBtdiB2YXIvZ3Vp eCAvdmFyLwoJ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