From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: installing a mirror for offline installation Date: Fri, 26 May 2017 13:20:36 +0200 Message-ID: <87fufrg8zf.fsf@elephly.net> References: <20170525181902.2b70de9b@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEDIX-00052A-7a for help-guix@gnu.org; Fri, 26 May 2017 07:20:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEDIU-0005se-3h for help-guix@gnu.org; Fri, 26 May 2017 07:20:49 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21127) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dEDIT-0005s6-Qk for help-guix@gnu.org; Fri, 26 May 2017 07:20:46 -0400 In-reply-to: <20170525181902.2b70de9b@riseup.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: Quiliro Cc: help-guix@gnu.org Quiliro writes: > 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. 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. Hydra provides binaries not only for a single version of Guix, so you cannot just copy everything. What you *can* do, however, is this: * provision a portable computer with lots of disk space * check out the version of Guix you plan to install elsewhere * build *every* package that you know you will need at the remote site. (This could be done by building a system configuration, for example.) This will lead to every needed store item to be in your local /gnu/store. Note that you don’t have to build everything from source; you can download substitutes for most things. * set up “guix publish” to share items from your store with others. Also make sure to export your local key and authorize it on the machines that should install Guix “offline”. * On the machines that are to be installed override the substitute server to be the local address of your portable computer running “guix publish”. This could be a local IP address. * Make sure that the machines use the exact same version of Guix, e.g. the latest release. 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. All you need for this on the remote offline site is a LAN where your portable computer acts as a substitute server. Does this make sense? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net