From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco van Hulten Subject: Re: no passwd command during installation Date: Thu, 02 Nov 2017 09:34:28 +0100 Message-ID: <20171102093428.7647c6a8@graviton.instanton> References: <20171101215852.6eab2d53@graviton.instanton> <871slhgqzo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/jO/UuiCw=uOfEWgJaZrPUlo"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAAxQ-0000U3-TR for help-guix@gnu.org; Thu, 02 Nov 2017 04:34:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAAxN-0003d8-PG for help-guix@gnu.org; Thu, 02 Nov 2017 04:34:36 -0400 Received: from eterpe-smout.broadpark.no ([80.202.8.16]:61187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAAxN-0003aj-Ca for help-guix@gnu.org; Thu, 02 Nov 2017 04:34:33 -0400 Received: from bgo1cloudm2.nextgentel.net ([80.202.8.59]) by eterpe-smout.broadpark.no (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTP id <0OYS006TH71B1J80@eterpe-smout.broadpark.no> for help-guix@gnu.org; Thu, 02 Nov 2017 09:34:31 +0100 (CET) In-reply-to: <871slhgqzo.fsf@gmail.com> 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 --Sig_/jO/UuiCw=uOfEWgJaZrPUlo Content-Type: multipart/mixed; boundary="MP_/RHBrw/KKXKiEhbgMGE=fVTI" --MP_/RHBrw/KKXKiEhbgMGE=fVTI Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Chris- Op 01 nov 22:59 schreef Chris Marusich: > Marco van Hulten writes: >=20 > > Hello, > > > > During the installation process of GuixSD 0.13.0, I'd like to login > > from another system. After setting up the network, I start the SSH > > server through > > > > herd start ssh-daemon > > > > as described on > > https://www.gnu.org/software/guix/manual/html_node/Preparing-for-Instal= lation.html > > . > > > > Then I want to set the root password. The manual tells me to use > > passwd, but Bash returns "command not found". There is also no > > ssh-keygen to create SSH keys. =20 >=20 > These commands are present in a recent version of the installation > image. Perhaps the version you used is old enough that they are not > present? Since Wayne also seems to have seen the same problem, I > wonder if perhaps it's an issue with an old image being hosted > somewhere? Where did you get the installation image? I downloaded the latests System Distribution image at https://alpha.gnu.org/gnu/guix/guixsd-usb-install-0.13.0.x86_64-linux.xz . I just checked the signature, and it is in order. > I verified that the commands are present by running the following > commands from a system that has a recent version of Guix: >=20 > $ guix system vm gnu/system/install.scm > ... > /gnu/store/zrcjqk520wlbq0m9rq8ss60sj24hjpjg-run-vm.sh > $ /gnu/store/zrcjqk520wlbq0m9rq8ss60sj24hjpjg-run-vm.sh >=20 > The commands "passwd" and "ssh-keygen" were present at > /run/setuid-programs/passwd and This directory in my image is empty. > /run/current-system/profile/bin/ssh-keygen, respectively. This directory contains 411 symlinks to binaries, none of which match with ssh*. > > Additionally, it could be useful if the scp or ssh were available > > from the installation prompt. =20 >=20 > Similar to above, I can confirm that the programs "ssh" and "scp" are > present in a recent version of the installation image. Possibly, Wayne and I used the (experimental) GuixSD 0.13.0 image, whereas you use the GuixSD 0.13.0 Virtual Machine Image. I presume we all are on amd64. I did find the programs at the locations (with different hash in path) that Wayne suggested; this issue could be solved by updating the manual (updating the image can wait until the next release). > > SSH in either direction would give me a way to copy config.scm to a > > system where I can e-mail from. That would be useful, because I am > > having problems installing GuixSD (unionfs of 2.1G gets full during > > guix system init /mnt/etc/config.scm /mnt --fallback; the last > > option was suggested by guix when it couldn't fetch some package). =20 >=20 > That sounds frustrating! Maybe you can try first installing the "bare > bones" operating system (the example file for this is located at > /etc/configuration/bare-bones.scm in the installation image). After > you've booted into that initial bare bones operating system, you could > run "guix system reconfigure" using the actual operating system > configuration file you want. That might help if the issue is lack of > storage space in the installation image. That's a useful tip for when I have a similar problem again. Doing the installation again results in a succesful installation (well, more or less). It is very likely that I forget herd start cow-store /mnt which makes the installation use the harddisk instead of RAM. However, I always need to use --fallback. In any case, thanks to you and Wayne for the useful tips. Now for the "well, more or less". When booting my system with a freshly installed GuixSD, I get this output: ``` waiting for partition 'my-root' to appear... waiting for partition 'my-root' to appear... ... ERROR: In procedure scm-error: ERROR: failed to resolve partition "my-root" ``` My etc/config.scm is here: http://paste.lisp.org/display/360070 - Marco --MP_/RHBrw/KKXKiEhbgMGE=fVTI Content-Type: text/x-scheme Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=config.scm ;; This is an operating system configuration template ;; for a "desktop" setup with GNOME and Xfce where the ;; root partition is encrypted with LUKS. (use-modules (gnu) (gnu system nss)) (use-service-modules desktop) (use-package-modules certs gnome) (operating-system (host-name "watson") (timezone "Europe/Oslo") (locale "en_US.utf8") ;; Assuming /dev/sdX is the target hard disk, and "my-root" ;; is the label of the target root file system. (bootloader (grub-configuration (device "/dev/sda"))) ;; Specify a mapped device for the encrypted root partition. ;; The UUID is that returned by 'cryptsetup luksUUID'. (mapped-devices (list (mapped-device (source (uuid "c0a2b51e-0c50-43e7-a56b-932061c00af8")) (target "my-root") (type luks-device-mapping)))) (file-systems (cons (file-system (device "my-root") (title 'label) (mount-point "/") (type "ext4")) %base-file-systems)) (users (cons (user-account (name "marco") (comment "Marco van Hulten") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/marco")) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access gvfs ;for user mounts %base-packages)) ;; Add GNOME and/or Xfce---we can choose at the log-in ;; screen with F1. Use the "desktop" services, which ;; include the X11 log-in service, networking with Wicd, ;; and more. (services (cons* (xfce-desktop-service) %desktop-services)) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) --MP_/RHBrw/KKXKiEhbgMGE=fVTI-- --Sig_/jO/UuiCw=uOfEWgJaZrPUlo Content-Type: application/pgp-signature Content-Description: OpenPGP digitale handtekening -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSduGbl1Xx4OBVOmG+kCiXhgsb+zAUCWfrYlQAKCRCkCiXhgsb+ zDuaAJ9OKaeuyOkeqNJ+pmJYKaeFgtPLTgCfWZIMmZiDxiq8OK0u8sdSbJ8olQM= =/6CR -----END PGP SIGNATURE----- --Sig_/jO/UuiCw=uOfEWgJaZrPUlo--