From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0R1K-0008P0-4n for guix-patches@gnu.org; Tue, 18 Apr 2017 07:10:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0R1G-0000V2-7R for guix-patches@gnu.org; Tue, 18 Apr 2017 07:10:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55277) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0R1G-0000Uw-54 for guix-patches@gnu.org; Tue, 18 Apr 2017 07:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d0R1F-0008CI-TA for guix-patches@gnu.org; Tue, 18 Apr 2017 07:10:01 -0400 Subject: bug#26548: [PATCH] install: Enable SSH in installation image. Resent-Message-ID: Date: Tue, 18 Apr 2017 11:09:29 +0000 From: ng0 Message-ID: <20170418110929.opbh7gygi3s2f6zl@abyayala> References: <20170417213030.1489-1-mbakke@fastmail.com> <87inm2rtqa.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87inm2rtqa.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 26548@debbugs.gnu.org Ludovic Courtès transcribed 1.2K bytes: > Hello! > > Marius Bakke skribis: > > > Hi Guix! This patch adds an SSH server to the installation image > > to aid remote installations as requested in > > https://lists.gnu.org/archive/html/help-guix/2017-01/msg00047.html > > > > lsh-service depends on networking, so I pulled in a DHCP client too. > > It increases the image size by about 29MiB. > > > > * gnu/system/install.scm (%installation-services): Add DHCP-CLIENT-SERVICE > > and LSH-SERVICE. > > [...] > > > + ;; Add a DHCP client for networking. > > + (dhcp-client-service) > > This is a problem: in the installation instructions, we tell people to > configure networking (possibly wireless) by hand, so we cannot expect > the DHCP client to work directly when the image is booted. > > Also, the installation instructions would need to be updated. > > However, what we could do, instead, is to add an SSH service that is off > by default (with (start? #f)) and does not depend on ‘networking’. That > way, people would only need to type > > herd start ssh-daemon > > to get the thing up and running. WDYT? For the moment it's okay I think. In the futurey, we would ship GuixSD normal and GuixSD server images? I'm just trying to gather enough data from hosters at the moment to see what's the best action here and how we can react in the future (dhcp, agetty, openssh, etc). > > + ;; Add an SSH server to facilitate remote installs. > > + (lsh-service #:port-number 22 > > I agree with others that we should use OpenSSH here. :-) > > Thanks, > Ludo’. > > > -- PGP and more: https://people.pragmatique.xyz/ng0/