From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 12 10:12:28 2019 Received: (at submit) by debbugs.gnu.org; 12 Jul 2019 14:12:29 +0000 Received: from localhost ([127.0.0.1]:40438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlwHj-0007Mx-Vj for submit@debbugs.gnu.org; Fri, 12 Jul 2019 10:12:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:57600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hluqa-0004ze-Ab for submit@debbugs.gnu.org; Fri, 12 Jul 2019 08:40:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40338) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hluqX-0008DK-M9 for bug-guix@gnu.org; Fri, 12 Jul 2019 08:40:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,RECEIVED_FROM_WINDOWS_HOST,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hluqV-0001x4-3U for bug-guix@gnu.org; Fri, 12 Jul 2019 08:40:17 -0400 Received: from smtp3-g21.free.fr ([2a01:e0c:1:1599::12]:12151) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hluqU-0001sd-Nq; Fri, 12 Jul 2019 08:40:15 -0400 Received: from zimbra109-e19.priv.proxad.net (unknown [172.20.243.130]) by smtp3-g21.free.fr (Postfix) with ESMTP id DBFA713F846; Fri, 12 Jul 2019 14:40:10 +0200 (CEST) Date: Fri, 12 Jul 2019 14:40:10 +0200 (CEST) From: racin@free.fr To: bug-guix , help-guix Message-ID: <703690754.1061562959.1562935210641.JavaMail.zimbra@free.fr> In-Reply-To: <834194262.1058652910.1562922240277.JavaMail.zimbra@free.fr> References: <475952466.1050924121.1562884357218.JavaMail.zimbra@free.fr> <834194262.1058652910.1562922240277.JavaMail.zimbra@free.fr> Subject: Re: Installation of a new guix system -- summaries of the issues MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_2cc9b55d-324c-4849-a65a-63e6d34b0bff" X-Originating-IP: [132.166.177.50] X-Mailer: Zimbra 8.8.7_GA_1002 (ZimbraWebClient - FF66 (Linux)/8.8.7_GA_1002) Thread-Topic: Installation of a new guix system -- summaries of the issues Thread-Index: SBiljfjiF+ri6Ac36fTUcBQAnNQ84c5a5+JJXDmuqUo= X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 2a01:e0c:1:1599::12 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 12 Jul 2019 10:12:27 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=_2cc9b55d-324c-4849-a65a-63e6d34b0bff Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello=20 (Julien, Sorry I cannot answer to your email as my provider rejected it for= no reason; I read you through the web archives)=20 I checked: fsck does not report any error. It is posssible that I have trie= d to install several packages in parallel=20 (I do this all the time with apt, but it uses a lock and issues a warning).= =20 I checked and actually my manifest in .guix-profile is empty. The other, in= .config/guix/current, is as follows:=20 (manifest=20 (version 3)=20 (packages=20 (("guix"=20 "f67f93b"=20 "out"=20 "/gnu/store/vz4ri5akjjydgq0x443qcchzhcrxi7cq-guix-f67f93b6d"=20 (propagated-inputs ())=20 (search-paths ())=20 (properties=20 (source=20 (repository=20 (version 0)=20 (url "https://git.savannah.gnu.org/git/guix.git")=20 (branch "master")=20 (commit=20 "f67f93b6d60c898c3125068b468c2a339678916a")))))=20 ("nonguix"=20 "5ca352e"=20 "out"=20 "/gnu/store/5fwmnl472wm7wynby4b42ympqrc9v2dh-nonguix"=20 (propagated-inputs ())=20 (search-paths ())=20 (properties=20 (source=20 (repository=20 (version 0)=20 (url "https://gitlab.com/nonguix/nonguix")=20 (branch "master")=20 (commit=20 "5ca352ead269e9037c0314140c2fe7854b3fbe2d"))))))))=20 Thanks,=20 Matthieu=20 De: "racin" =20 =C3=80: "bug-guix" , "help-guix" =20 Envoy=C3=A9: Vendredi 12 Juillet 2019 11:04:00=20 Objet: Re: Installation of a new guix system -- summaries of the issues=20 (Cross-posting to help-guix as it may be more appropriate)=20 I now have two additional issues:=20 13. My profile disappeared once again and guix package does not work anymor= e (it says "guix package: error: unsupported manifest format"). I realize t= hat my .guix-profile/etc/profile file has been emptied.=20 Maybe I had a problem during an upgrade, but aren't guix upgrades supposed = to be atomic?=20 14. Also, my X server hangs unless I force the BIOS to use the "discrete ca= rd", which uses more power. My laptop uses an hyprid intel/nvidia configura= tion, is this supported by guix?=20 Thanks,=20 Matthieu=20 De: "racin" =20 =C3=80: "bug-guix" =20 Envoy=C3=A9: Vendredi 12 Juillet 2019 00:32:37=20 Objet: Installation of a new guix system -- summaries of the issues=20 Hi Guix!=20 I have just installed (successfully?) my first guix system!=20 As a newcomer (I know system administration quite well, but never used=20 guix before) I thought that I could share my experience (i.e. issues I=20 had ;)) installing Guix. Probably some of the issues are obvious once=20 you know Guix well, but they aren't when, like me, you don't. I hope=20 using this list for this post is not inappropriate.=20 I did not find any solution for some of the issues yet, so I would=20 also welcome help on those!=20 So, here is the list of issues I had.=20 1. An easy one: on a new computer, you now have to desactive this=20 secure boot thingy, else the live CD won't boot. As I understand it=20 the guix live CD is not "signed", which was the reason why it did not=20 boot (while other live CDs did). This may sound obvious, except for=20 people whose previous computer was still using the BIOS; so maybe it=20 would be worth writing this in the installation instructions?=20 2. I had a lot of trouble understanding how profile worked;=20 consequently I think I installed a lot of versions of different=20 packages, which took ages.=20 After a while, I understood that=20 - guix pull creates a new profile, but is not used by default: why?=20 Similarly, guix kept telling me that I should do=20 # GUIX_PROFILE=3D"/home/matthieu/.guix-profile"=20 # . "$GUIX_PROFILE/etc/profile"=20 So my question is: shouldn't the default .bashrc uses the newest=20 guix command from guix pull, and contain these lines above?=20 - sudo guix system reconfigure /etc/config.scm is very different from=20 sudo su; guix system reconfigure /etc/config.scm.=20 This is written explicitly in the documentation, so that was clear,=20 but I fell into the trap.=20 - guix system reconfigure /etc/config.scm (without sudo) fails at a=20 very late stage. Maybe this command should issue a warning when not=20 run with root rights?=20 3. At one time it seems that my entire user profile disappeared (maybe=20 I shut down my laptop at a wrong time). I had to reinstall every=20 package I had installed with guix package -i.=20 4. I followed the initial exemple configuration of "A graphical system=20 with a choice of lightweight window managers", but it did not contain=20 any terminal emulator.=20 5. I installed Icecat but I am missing some fonts: some websites do=20 not display properly (e.g. numbers do not show up), even if I untick=20 "do not load custom fonts" (unticking this improves things a bit). So=20 I believe some more font package should be installed with icecat.=20 6. I had issues with gdm and lightdm, so I installed the xinit package=20 to start X sessions manually. But it seems that startx/xinit looks for=20 a X server in the same path than the xinit binary, which won't work on=20 guix.=20 7. nm-applet fails with this warning Failed to add/activate connection: (1)= Not authorized to control networking.=20 I have to do sudo nm-applet to have it working (but it works well, wifi and= wired)=20 8. Is there an equivalent to apt-file, e.g. a way to know in which=20 packages a file would be located? This would be very useful, for=20 instance I had trouble finding where the latex executable is=20 located, or ghc complaining about finding linux/errno.h when I=20 wanted to install xmonad. The problem is even more important for=20 guix, as in other systems the dependencies eventually show up in=20 your profile (e.g. installing texlive-latex-beamer would install=20 the latex binary), whereas in guix you have to explicitely install=20 the right package in Guix.=20 9. nm-applet cannot find the right icon sets, so it uses a "forbidden=20 sign" icon everywhere (which is a bit scary). The error I get is=20 failed to load icon "nm-stage03-connecting11": Icon=20 'nm-stage03-connecting11' not present in theme Adwaita=20 so I guess some icon are missing; I tried to install=20 gnome-icon-theme with no luck.=20 10. My latest problem happened when I tried to install slim (but the=20 problem remains when I switch back to gdm or tried to use a previous=20 system configuration, which surprised me). Now when I boot, I have a=20 "gdm" user that was created and which attemps to log 505 times, which=20 freezes my computer for 2 minutes (I I try to use it at the same=20 times, it hangs). My work-around is to switch to the console and wait=20 that all these unsuccessful connection stops, but this is not=20 ideal...=20 11. Before I found this work-around I tried to fix the problem by=20 booting + chrooting from another OS, a solution I have often used to=20 fix my OS but could not do on guix... Which scares me a bit because I=20 fill that I have no easy way to fix my OS if it was broken. Is there=20 an easy way to do that in guix?=20 12. I also remember that the installer said something like "I will=20 erase the whole disk and you would loose all your data", while I used=20 the manual partitionning scheme and asked to format only one=20 partition, and this was a bit scary.=20 Wow, that was a long list. Obviously I did not write about everything=20 that went well during the installation, so thanks for your hard work!=20 By posting this, I just hope that it will help new users to have less=20 problems to solve in the future!=20 Thanks,=20 Matthieu=20 PS: here is my config.scm file=20 ;; This is an operating system configuration generated=20 ;; by the graphical installer.=20 (use-modules (gnu))=20 (use-service-modules desktop networking ssh xorg)=20 (use-modules (nongnu packages linux))=20 (use-modules (srfi srfi-1)) ; for remove=20 (operating-system=20 (locale "en_US.utf8")=20 (timezone "Europe/Paris")=20 (keyboard-layout=20 (keyboard-layout "us" "altgr-intl"))=20 (kernel linux)=20 (firmware (cons* iwlwifi-firmware %base-firmware))=20 (bootloader=20 (bootloader-configuration=20 (bootloader grub-efi-bootloader)=20 (target "/boot/efi")=20 (keyboard-layout keyboard-layout)))=20 (file-systems=20 (cons* (file-system=20 (mount-point "/")=20 (device=20 (uuid "7dd68b9b-26ba-47f7-aa82-3469060d2936"=20 'ext4))=20 (type "ext4"))=20 (file-system=20 (mount-point "/boot/efi")=20 (device (uuid "90D1-BAAF" 'fat32))=20 (type "vfat"))=20 %base-file-systems))=20 (host-name "x1")=20 (users (cons* (user-account=20 (name "matthieu")=20 (comment "Matthieu")=20 (group "users")=20 (home-directory "/home/matthieu")=20 (supplementary-groups=20 '("wheel" "netdev" "audio" "video")))=20 %base-user-accounts))=20 (packages=20 (append=20 (list (specification->package "xmonad")=20 (specification->package "awesome")=20 (specification->package "dmenu")=20 (specification->package "tlsdate") ; for initial time adjustment=20 (specification->package "nss-certs"))=20 %base-packages))=20 (services=20 (append=20 (list (service openssh-service-type)=20 (set-xorg-configuration=20 (xorg-configuration=20 (keyboard-layout keyboard-layout)))=20 (service slim-service-type (slim-configuration=20 (display ":0")=20 (vt "vt6")))=20 )=20 (remove (lambda (service)=20 (eq? (service-kind service) gdm-service-type))=20 %desktop-services=20 ))))=20 --=_2cc9b55d-324c-4849-a65a-63e6d34b0bff Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello

(Julien, Sorry I cannot answer to your email as my provider re= jected it for no reason; I read you through the web archives)

I checked: fsck&n= bsp; does not report any error. It is posssible that I have tried to instal= l several packages in parallel
(I do th= is all the time with apt, but it uses a lock and issues a warning).

I checked a= nd actually my manifest in .guix-profile is empty. The other, in .config/gu= ix/current, is as follows:

(manifest
  (version 3)
  (packages<= br>    (("guix"
      "f67f93b"<= br>      "out"
      "= /gnu/store/vz4ri5akjjydgq0x443qcchzhcrxi7cq-guix-f67f93b6d"
  =     (propagated-inputs ())
     = (search-paths ())
      (properties
 &= nbsp;      (source
    &nbs= p;     (repository
     &nb= sp;      (version 0)
    &n= bsp;       (url "https://git.savannah.gnu.org= /git/guix.git")
         &n= bsp;  (branch "master")
       &= nbsp;    (commit
      &nbs= p;       "f67f93b6d60c898c3125068b468c2a33967= 8916a")))))
     ("nonguix"
   &nb= sp;  "5ca352e"
      "out"
  =     "/gnu/store/5fwmnl472wm7wynby4b42ympqrc9v2dh-nonguix"      (propagated-inputs ())
   = ;   (search-paths ())
      (properti= es
        (source
  &nb= sp;       (repository
   &n= bsp;        (version 0)
  &= nbsp;         (url "https://gitlab.= com/nonguix/nonguix")
        &n= bsp;   (branch "master")
      &= nbsp;     (commit
     &nbs= p;        "5ca352ead269e9037c0314140c2fe= 7854b3fbe2d"))))))))

Thanks,
Matthieu



De: "racin" <racin@free.fr>
=C3=80: "bug-guix" &= lt;bug-guix@gnu.org>, "help-guix" <help-guix@gnu.org>
Envoy= =C3=A9: Vendredi 12 Juillet 2019 11:04:00
Objet: Re: Installa= tion of a new guix system -- summaries of the issues

(Cross-posting to help-guix= as it may be more appropriate)

I now have two additional= issues:

13. My profile disappeared once again and guix p= ackage does not work anymore (it says "guix package: error: unsupported man= ifest format"). I realize that my .guix-profile/etc/profile file has been e= mptied.
Maybe I had a problem during an upgrade, but aren't = guix upgrades supposed to be atomic?

14. Also, my X serve= r hangs unless I force the BIOS to use the "discrete card", which uses more= power. My laptop uses an hyprid intel/nvidia configuration, is this suppor= ted by guix?

Thanks,
Matthieu

=

De: "racin" <racin@free.fr>
= =C3=80: "bug-guix" <bug-guix@gnu.org>
Envoy=C3=A9: Vend= redi 12 Juillet 2019 00:32:37
Objet: Installation of a new guix s= ystem -- summaries of the issues

Hi G= uix!

I have just installed (successfully?) my first guix system!
=
As a newcomer (I know system administration quite well, but never used<= br>guix before) I thought that I could share my experience (i.e. issues Ihad ;)) installing Guix. Probably some of the issues are obvious once
= you know Guix well, but they aren't when, like me, you don't. I hope
usi= ng this list for this post is not inappropriate.

I did not find any = solution for some of the issues yet, so I would
also welcome help on tho= se!

So, here is the list of issues I had.

1. An easy one: on= a new computer, you now have to desactive this
secure boot thingy, else= the live CD won't boot. As I understand it
the guix live CD is not "sig= ned", which was the reason why it did not
boot (while other live CDs did= ). This may sound obvious, except for
people whose previous computer was= still using the BIOS; so maybe it
would be worth writing this in the in= stallation instructions?

2. I had a lot of trouble understanding how= profile worked;
consequently I think I installed a lot of versions of d= ifferent
packages, which took ages.

After a while, I understood t= hat

 - guix pull creates a new profile, but is not used by defa= ult: why?
   Similarly, guix kept telling me that I should do<= br>
# GUIX_PROFILE=3D"/home/matthieu/.guix-profile"
# . "$GUIX_PROFIL= E/etc/profile"

   So my question is: shouldn't the default= .bashrc uses the newest
   guix command from guix pull, and c= ontain these lines above?

 - sudo guix system reconfigure /etc/= config.scm is very different from
   sudo su; guix system reco= nfigure /etc/config.scm.

   This is written explicitly in = the documentation, so that was clear,
   but I fell into the t= rap.

 - guix system reconfigure /etc/config.scm (without sudo) = fails at a
   very late stage. Maybe this command should issue= a warning when not
   run with root rights?


3. At = one time it seems that my entire user profile disappeared (maybe
I shut = down my laptop at a wrong time). I had to reinstall every
package I had = installed with guix package -i.

4. I followed the initial exemple co= nfiguration of "A graphical system
with a choice of lightweight window m= anagers", but it did not contain
any terminal emulator.

5. I inst= alled Icecat but I am missing some fonts: some websites do
not display p= roperly (e.g. numbers do not show up), even if I untick
"do not load cus= tom fonts" (unticking this improves things a bit). So
I believe some mor= e font package should be installed with icecat.

6. I had issues with= gdm and lightdm, so I installed the xinit package
to start X sessions m= anually. But it seems that startx/xinit looks for
a X server in the same= path than the xinit binary, which won't work on
guix.

7. nm-appl= et fails with this warning Failed to add/activate connection: (1) Not autho= rized to control networking.
   I have to do sudo nm-applet to= have it working (but it works well, wifi and wired)

8. Is there an = equivalent to apt-file, e.g. a way to know in which
   package= s a file would be located? This would be very useful, for
   i= nstance I had trouble finding where the latex executable is
  = located, or ghc complaining about finding linux/errno.h when I
 &n= bsp; wanted to install xmonad. The problem is even more important for
&n= bsp;  guix, as in other systems the dependencies eventually show up in=
   your profile (e.g. installing texlive-latex-beamer would i= nstall
   the latex binary), whereas in guix you have to expli= citely install
   the right package in Guix.

9. nm-appl= et cannot find the right icon sets, so it uses a "forbidden
sign" icon e= verywhere (which is a bit scary). The error I get is

 failed to= load icon "nm-stage03-connecting11": Icon
 'nm-stage03-connecting1= 1' not present in theme Adwaita

  so I guess some icon are miss= ing; I tried to install
  gnome-icon-theme with no luck.

10.= My latest problem happened when I tried to install slim (but the
proble= m remains when I switch back to gdm or tried to use a previous
system co= nfiguration, which surprised me). Now when I boot, I have a
"gdm" user t= hat was created and which attemps to log 505 times, which
freezes my com= puter for 2 minutes (I I try to use it at the same
times, it hangs). My = work-around is to switch to the console and wait
that all these unsucces= sful connection stops, but this is not
ideal...

11. Before I foun= d this work-around I tried to fix the problem by
booting + chrooting fro= m another OS, a solution I have often used to
fix my OS but could not do= on guix... Which scares me a bit because I
fill that I have no easy way= to fix my OS if it was broken. Is there
an easy way to do that in guix?=

12. I also remember that the installer said something like "I will<= br>erase the whole disk and you would loose all your data", while I usedthe manual partitionning scheme and asked to format only one
partition,= and this was a bit scary.

Wow, that was a long list. Obviously I di= d not write about everything
that went well during the installation, so = thanks for your hard work!
By posting this, I just hope that it will hel= p new users to have less
problems to solve in the future!

Thanks,=
Matthieu


PS: here is my config.scm file
=
;; This is an operating system configuration generated
;; by th= e graphical installer.

(use-modules (gnu))
(use-service-modules d= esktop networking ssh xorg)
(use-modules (nongnu packages linux))
(us= e-modules (srfi srfi-1)) ; for remove

(operating-system
  (l= ocale "en_US.utf8")
  (timezone "Europe/Paris")
  (keyboard= -layout
    (keyboard-layout "us" "altgr-intl"))
 = ; (kernel linux)
  (firmware (cons* iwlwifi-firmware %base-firmware= ))
  (bootloader
    (bootloader-configuration      (bootloader grub-efi-bootloader)
 &= nbsp;    (target "/boot/efi")
    &nb= sp; (keyboard-layout keyboard-layout)))
  (file-systems
 &n= bsp;  (cons* (file-system
       = ;      (mount-point "/")
   &nbs= p;         (device
  &= nbsp;            (uu= id "7dd68b9b-26ba-47f7-aa82-3469060d2936"
     =             &nb= sp;   'ext4))
        =      (type "ext4"))
     &n= bsp;     (file-system
     =         (mount-point "/boot/efi")
&nb= sp;            (devi= ce (uuid "90D1-BAAF" 'fat32))
       =       (type "vfat"))
    &n= bsp;      %base-file-systems))
  (host-nam= e "x1")
  (users (cons* (user-account
    &n= bsp;            = ; (name "matthieu")
        &nbs= p;         (comment "Matthieu")
=             &nb= sp;     (group "users")
    &nbs= p;             = (home-directory "/home/matthieu")
      &n= bsp;           (supplemen= tary-groups
          =           '("wheel" "netdev" "= audio" "video")))
         =        %base-user-accounts))
  (packa= ges
    (append
      (list (= specification->package "xmonad")
      =       (specification->package "awesome")
&nb= sp;           (specificat= ion->package "dmenu")
        (specific= ation->package "tlsdate") ; for initial time adjustment
  &= nbsp;         (specification->pa= ckage "nss-certs"))
      %base-packages))
&= nbsp; (services
    (append
     (= list (service openssh-service-type)

     &n= bsp;     (set-xorg-configuration
    =     (xorg-configuration
      &n= bsp;  (keyboard-layout keyboard-layout)))

    &n= bsp;   (service slim-service-type (slim-configuration
 &n= bsp;               &= nbsp;  (display ":0")
         &= nbsp;          (vt "vt6")))

)
=
     (remove (lambda (service)
   = ;        (eq? (service-kind service) gdm-serv= ice-type))


         %desktop-= services

            &n= bsp;     ))))

--=_2cc9b55d-324c-4849-a65a-63e6d34b0bff--