From mboxrd@z Thu Jan 1 00:00:00 1970 From: Quiliro Subject: Re: installing a mirror for offline installation Date: Fri, 26 May 2017 13:12:40 -0500 Message-ID: <20170526131240.3fc7eeae@riseup.net> References: <20170525181902.2b70de9b@riseup.net> <87fufrg8zf.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEJi3-0003Zj-8G for help-guix@gnu.org; Fri, 26 May 2017 14:11:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEJhy-0003ZJ-QA for help-guix@gnu.org; Fri, 26 May 2017 14:11:35 -0400 Received: from mx1.riseup.net ([198.252.153.129]:60673) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dEJhy-0003Z5-Ij for help-guix@gnu.org; Fri, 26 May 2017 14:11:30 -0400 Received: from piha.riseup.net (unknown [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 9172A1A1DBC for ; Fri, 26 May 2017 18:11:29 +0000 (UTC) In-Reply-To: <87fufrg8zf.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org El Fri, 26 May 2017 13:20:36 +0200 Ricardo Wurmus escribi=C3=B3: >=20 > Quiliro writes: >=20 > > I finally could install bare-bones.scm GuixSD working machine. Now i > > am interested in installing a mirror [of hydra] for offline > > installation. There is no telecommunications where I live. So I could > > bring the server to download substitutes and then take it back to my > > network for local download. I was told that an nginx mirror of hydra > > would cache only substitutes after they have been requested through > > it. >=20 > This is a little complicated. We build software continuously with > Hydra, so what you want would only really work for one particular > version of Guix. >=20 > Hydra provides binaries not only for a single version of Guix, so you > cannot just copy everything. What you *can* do, however, is this: >=20 > * provision a portable computer with lots of disk space Will 100GB be enough? 1TB? > * check out the version of Guix you plan to install elsewhere >=20 > * build *every* package that you know you will need at the remote site. > (This could be done by building a system configuration, for example.) I have no idea how to do this. I know how to install a group of packages to= make a desktop for example. But is there a group where all packages are in= stalled? Could there be a conflict where one package is not downloaded beca= use it will conflict with another? (I know this is usually not the case in = GuixSD but all cases have been considered?) > This will lead to every needed store item to be in your local > /gnu/store. Note that you don=E2=80=99t have to build everything from = source; > you can download substitutes for most things. >=20 > * set up =E2=80=9Cguix publish=E2=80=9D to share items from your store wi= th others. > Also make sure to export your local key and authorize it on the > machines that should install Guix =E2=80=9Coffline=E2=80=9D. >=20 > * On the machines that are to be installed override the substitute > server to be the local address of your portable computer running =E2=80= =9Cguix > publish=E2=80=9D. This could be a local IP address. >=20 > * Make sure that the machines use the exact same version of Guix, > e.g. the latest release. >=20 > As the machines are installed they will download substitutes from the > portable computer instead of trying to go online to talk to hydra. > Since the portable computer has all needed binaries in its store, > nothing has to be built from source. >=20 > All you need for this on the remote offline site is a LAN where your > portable computer acts as a substitute server. >=20 > Does this make sense? It does. Thank you.