From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yG3TMvkt7GJmKAAAbAwnHQ (envelope-from ) for ; Thu, 04 Aug 2022 22:37:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YBPXMvkt7GKPbAEA9RJhRA (envelope-from ) for ; Thu, 04 Aug 2022 22:37:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5F799E716 for ; Thu, 4 Aug 2022 22:37:13 +0200 (CEST) Received: from localhost ([::1]:53526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJhai-0006eJ-GT for larch@yhetil.org; Thu, 04 Aug 2022 16:37:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJhaY-0006e9-QI for bug-guix@gnu.org; Thu, 04 Aug 2022 16:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37147) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJhaY-00058y-H4 for bug-guix@gnu.org; Thu, 04 Aug 2022 16:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJhaY-0005nf-43 for bug-guix@gnu.org; Thu, 04 Aug 2022 16:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56958: auto login to tty only works for tty1 Resent-From: Joshua Allen Branson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Aug 2022 20:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56958 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 56958@debbugs.gnu.org Cc: leo.prikler@student.tugraz.at Received: via spool by 56958-submit@debbugs.gnu.org id=B56958.165964537822230 (code B ref 56958); Thu, 04 Aug 2022 20:37:02 +0000 Received: (at 56958) by debbugs.gnu.org; 4 Aug 2022 20:36:18 +0000 Received: from localhost ([127.0.0.1]:55129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJhZp-0005mU-Qm for submit@debbugs.gnu.org; Thu, 04 Aug 2022 16:36:18 -0400 Received: from mx1.dismail.de ([78.46.223.134]:7691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJhZk-0005mB-0q for 56958@debbugs.gnu.org; Thu, 04 Aug 2022 16:36:16 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id b9529d4f; Thu, 4 Aug 2022 22:36:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type:content-transfer-encoding; s=20190914; bh=DQm2Z4mY zDX0J9J5Egn2safpgcOygzgx+jWpf3kTuE0=; b=pgUu3b5pH3cNTmaSryyW58Vh Wd55YmAIML2E+cL9Lvut8JvzZedJJFCp4/qVEY15x8d2KZQiPwl9jV7wrqtETdgd 9m47P/swCTCt0foQDObUYgXBjzJx2JNadED8PPWYR61wfzyoLlBODUAjeLkUmcPi hs5L1Bg9aEf8gTfkxYy4mRfp3LlkDgmvcnHRWZ1t0uclFKvrvkhjQP3BYLzsMi0C thPKlzuDlneHd1sel6Irf5CSnfC7wH1kj+0AjhiQYdti5bSxJ3m1LGXyXRmsvEM1 RPXKh0A9d6DMc6WlydOF/LdHFNjDukMLYIFEd5Jkj2A+jLJtzm/TNub1OvMu+g== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id fb7ecd44; Thu, 4 Aug 2022 22:36:04 +0200 (CEST) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 74764c2f; Thu, 4 Aug 2022 22:36:04 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id da3d4d09 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 4 Aug 2022 22:36:03 +0200 (CEST) In-Reply-To: <87pmhhxj9p.fsf@dismail.de> (Joshua Branson's message of "Wed, 03 Aug 2022 14:40:50 -0400") References: <87pmhhxj9p.fsf@dismail.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Date: Thu, 04 Aug 2022 16:33:45 -0400 Message-ID: <8735eb92ae.fsf@dismail.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Joshua Allen Branson From: Joshua Allen Branson via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659645433; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DS1x1TsupAIxlzL6Apglzbn4nLTje237dUGZBAQgQBE=; b=kR5MpO46eboPkHqGOZwWDi4wSIyX4AuKIwrEegRvdtHE0GhNEPw5ImbrAgmLuJB1XlP7St 8LvFLlk7EYeS24UYMnAdNXuT5dx4g7a15lxTiQtpmNb5Wv4cC9q0rTT8FlUa8mEomgKEm3 5Lo8GKXi2BDgtzbgALXVooxW6Uz5pEIgMu9YrywvB6HrJQCdAAkk5dPt9St0gI0FecStk4 2YCd92bo2LDsmCC6FqYtsiQk7JxAv6XMoGQxVUQ9ED/Tt8vrWPRQ2dtS8WtkfQ+OPPPPq7 41xZEBr/kG9WjqjkI4J1iZoMclQaldu+lpuIe6VzxO6HkqyDnSBbrpS7l23C0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659645433; a=rsa-sha256; cv=none; b=Yp4/uQn81oWBUB7cYmxNvlPXdEoogebU+KfG1zT79yHWgiIvWGm/jyfw3liGkqOwCOWxYF O8z1HMBw6y9S3VREC35JdZrD0HFb9/2PAmIM8ZSDX/sPNhwHISvO/EHVI+lo1UXYOn99jA A9QxaAfJ60TYxFAM/niM10KgyIYOie4o/+RdwyR+PPIGDENrATcXSV1N66IvEQfnEh2ZSR irWhy4xiC6EovbzoyBk/jGiZtjbuoWN2d0nX/qotjoyFBBcUp9GWnhXDIBBylR+z4gjU0u ynaHv/DCl488hR7TOHkrz9VR/oomooUTCMzdIsKTRBNF/NqdCej2p9QWzPDFRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=pgUu3b5p; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=pgUu3b5p; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5F799E716 X-Spam-Score: -4.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: qmddyNx33kNe Joshua Branson writes: > Hey guix family! Hey Leo, you helped me create this cookbook guide initially. I thought you deserve to know that auto-login to tty is not working like it used to. I am not asking you to drop everything and fix this. Instead I am just letting other interested parties know. Thanks! Joshua > > The cookbook decribes a method of auto login to tty. I have noticed that = since > the latest shepherd upgrade (that's my best guess as to when the error oc= cured), > I have been unable to auto login to any tty as the cookbook describes. I = have > created a minimal guix system vm, to test the auto-login to tty. I have s= et up > ttys 2 - 4 to auto login my user joshua, but when I boot the vm only tty1= is > auto logged in. The other tty's are not logged in. Is auto login suppose= d to be > restricted to one partiular tty? > > Thanks, > > Joshua > > P.S. Here is the test vm. > > #+BEGIN_SRC shell :dir ~/prog/gnu/guix/guix-config :results verbatim :ex= ports both > cat bare-bones-with-autologin.scm > #+END_SRC > > > #+RESULTS: > > #+begin_example > ;; Copyright =C2=A9 2021, 2022 Joshua Branson > > (use-modules (gnu)) > > (use-service-modules networking > ssh) > > (use-package-modules ssh) > > (define (auto-login-to-tty config tty user) > (if (string=3D? tty (mingetty-configuration-tty config)) > (mingetty-configuration > (inherit config) > (auto-login user)) > config)) > > ;; add an autologin to tty for a tty 2 - 4. > ;; When you run this vm, only one will be auto-logged in. > (define %my-base-services > (modify-services %base-services > (mingetty-service-type config =3D> > (auto-login-to-tty config "tty1" "joshua")) > (mingetty-service-type config =3D> > (auto-login-to-tty config "tty2" "joshua")) > (mingetty-service-type config =3D> > (auto-login-to-tty config "tty3" "joshua")) > (mingetty-service-type config =3D> > (auto-login-to-tty config "tty4" "joshua")))) > > (operating-system > (host-name "autologin") > (timezone "America/Indianapolis") > (locale "en_US.utf8") > (bootloader (bootloader-configuration > (bootloader grub-bootloader) > (targets (list "/dev/sda")))) > (file-systems > (cons* > (file-system > (mount-point "/") > (device "/dev/sda") > (type "ext4")) > %base-file-systems)) > > (users (cons* (user-account > (name "joshua") > (comment "Joshua Branson") > (group "users") > (home-directory "/home/joshua") > (supplementary-groups > '("kvm" "netdev" "wheel"))) > %base-user-accounts)) > > (packages %base-packages) > ;; Add services to the baseline: a DHCP client and > ;; an SSH server. > (services > (cons* > (service dhcp-client-service-type) > (service openssh-service-type > (openssh-configuration > (openssh openssh-sans-x) > (port-number 2222))) > %my-base-services))) > #+end_example > > > To try it for yourself: > > #+BEGIN_SRC shell > $(guix system vm bare-bones-with-autologin.scm) > #+END_SRC > > Ctrl-Alt-G (make sure Ctrl and Alt are the left most keys) to grab focus > inside the vm. Alt-right to switch to a different console. Ctrl-Alt-G to > ungrab focus from the vm.