Received: (at 56958) by debbugs.gnu.org; 4 Aug 2022 20:36:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 04 16:36:18 2022 Received: from localhost ([127.0.0.1]:55129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oJhZp-0005mU-Qm for submit <at> 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 <jbranso@HIDDEN>) id 1oJhZk-0005mB-0q for 56958 <at> 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 (<unknown> [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) From: Joshua Allen Branson <jbranso@HIDDEN> To: 56958 <at> debbugs.gnu.org Subject: Re: bug#56958: auto login to tty only works for tty1 In-Reply-To: <87pmhhxj9p.fsf@HIDDEN> (Joshua Branson's message of "Wed, 03 Aug 2022 14:40:50 -0400") References: <87pmhhxj9p.fsf@HIDDEN> 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@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 56958 Cc: leo.prikler@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Joshua Branson <jbranso@HIDDEN> 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 <jbranso@HIDDEN> > > (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.
bug-guix@HIDDEN
:bug#56958
; Package guix
.
Full text available.Received: (at 56958) by debbugs.gnu.org; 3 Aug 2022 18:50:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 03 14:50:42 2022 Received: from localhost ([127.0.0.1]:49963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oJJS6-0002Nu-Ma for submit <at> debbugs.gnu.org; Wed, 03 Aug 2022 14:50:42 -0400 Received: from mx1.dismail.de ([78.46.223.134]:38336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jbranso@HIDDEN>) id 1oJJS4-0002Ng-H7 for 56958 <at> debbugs.gnu.org; Wed, 03 Aug 2022 14:50:41 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 431536de for <56958 <at> debbugs.gnu.org>; Wed, 3 Aug 2022 20:50:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to :subject:date:message-id:mime-version:content-type; s=20190914; bh=PiSjOmVP1BjFYqFp9FoebeIlejBu/Vf1eaL2XK+lDXM=; b=l2SV52R6RCZK 3+L3TJ4QEzblK6u3MO425mNBMye2zKY9RNtaTQuG4APEgETCsEfn0rEcmOIAPTCa GcbkPQn3QQaNhvKKz7e/usBb6HVQGA3enwLskDSI5xR/+w5uS90gjY2iUHgT0syW JEiNcg9zIBZifO50AhoXbkquEbYXsxhjU214QgUZ7Ztw0hoZA/0f1A5b7sgLrdns USJ6CyWTNRO+ihX5a2OKZVmDfqmUcp6RAhl0740KsNbZKSF7Xiq1tuWIPAmyl60f jAgaeQugcVAVs3Oz47eT9pAZ9VBjUXjyPbETmlDIPZRiCFJshqGS8HI1EcJFJpnm auj3iCx9jw== Received: from smtp1.dismail.de (<unknown> [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 2caaa828 for <56958 <at> debbugs.gnu.org>; Wed, 3 Aug 2022 20:50:33 +0200 (CEST) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 72b8c6cc for <56958 <at> debbugs.gnu.org>; Wed, 3 Aug 2022 20:50:33 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 17dd5a5a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <56958 <at> debbugs.gnu.org>; Wed, 3 Aug 2022 20:50:32 +0200 (CEST) From: Joshua Branson <jbranso@HIDDEN> To: 56958 <at> debbugs.gnu.org Subject: Re: auto login to tty only works for tty1 Date: Wed, 03 Aug 2022 14:50:30 -0400 Message-ID: <87mtclxitl.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 56958 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) And now I have a video bug report! How cool is that? https://video.hardlimit.com/w/e8fXXxmSv5mW3TJsT3ZkN3 Thanks, Joshua
bug-guix@HIDDEN
:bug#56958
; Package guix
.
Full text available.Received: (at submit) by debbugs.gnu.org; 3 Aug 2022 18:41:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 03 14:41:11 2022 Received: from localhost ([127.0.0.1]:49948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oJJIs-00026G-QM for submit <at> debbugs.gnu.org; Wed, 03 Aug 2022 14:41:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:59042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jbranso@HIDDEN>) id 1oJJIo-000265-KS for submit <at> debbugs.gnu.org; Wed, 03 Aug 2022 14:41:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jbranso@HIDDEN>) id 1oJJIo-0002Tj-De for bug-guix@HIDDEN; Wed, 03 Aug 2022 14:41:06 -0400 Received: from mx1.dismail.de ([78.46.223.134]:47467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jbranso@HIDDEN>) id 1oJJIk-0005XV-83 for bug-guix@HIDDEN; Wed, 03 Aug 2022 14:41:06 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id f6f4fd43 for <bug-guix@HIDDEN>; Wed, 3 Aug 2022 20:40:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=iNOxb9IqarWcPfKrQtJMR 9ce+8VCWHGawK/5M3FUpW0=; b=N/HffDaPW4+uHrw6RbPWuvbMPMjAQo1hAsA6p AstkUmR9Rz7W/SKa+SGqWCgh/x0orFap9Lertgn+DXV1Kp1X+aHzDjTaxdIR6O5+ B9nM/qAUMkxkRV9kNu+M4lx9Qw+UiioPVwA7Cbulv5/4oc9JPfvVMV803KE+Lg2f Q1Tssk6n4hsRtVKVCFaH2eM2163f3O1LDTdNeLyvXqZVYIEEtz5i1zeBVgFKJ1ZG RvGOS2kwhknMlC8+t0m67RpYFPCTZSQ/4BeU823GYFa80rhsL2JT4NHBslJz4cdR d+v42YmXqFojVQaoPTX37KuKNfHuWUT8qyIXohZgWShEGLYig== Received: from smtp1.dismail.de (<unknown> [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id cbd79a04 for <bug-guix@HIDDEN>; Wed, 3 Aug 2022 20:40:54 +0200 (CEST) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 122cc111 for <bug-guix@HIDDEN>; Wed, 3 Aug 2022 20:40:54 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id e1b966d4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <bug-guix@HIDDEN>; Wed, 3 Aug 2022 20:40:53 +0200 (CEST) From: Joshua Branson <jbranso@HIDDEN> To: bug-guix@HIDDEN Subject: auto login to tty only works for tty1 Date: Wed, 03 Aug 2022 14:40:50 -0400 Message-ID: <87pmhhxj9p.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=78.46.223.134; envelope-from=jbranso@HIDDEN; helo=mx1.dismail.de X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HDRS_MISSP=2.497, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) Hey guix family! The cookbook decribes a method of auto login to tty. I have noticed that si= nce the latest shepherd upgrade (that's my best guess as to when the error occu= red), I have been unable to auto login to any tty as the cookbook describes. I ha= ve created a minimal guix system vm, to test the auto-login to tty. I have set= 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 supposed = 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 :expo= rts both cat bare-bones-with-autologin.scm #+END_SRC #+RESULTS: #+begin_example ;; Copyright =C2=A9 2021, 2022 Joshua Branson <jbranso@HIDDEN> (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.
Joshua Branson <jbranso@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#56958
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.