From mboxrd@z Thu Jan 1 00:00:00 1970 From: racin@free.fr Subject: bug#36611: Installation of a new guix system -- summaries of the issues Date: Fri, 12 Jul 2019 11:04:00 +0200 (CEST) Message-ID: <834194262.1058652910.1562922240277.JavaMail.zimbra@free.fr> References: <475952466.1050924121.1562884357218.JavaMail.zimbra@free.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_2026f279-b3f3-4750-895f-58005b80443c" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41077) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlrin-0005YB-8M for bug-guix@gnu.org; Fri, 12 Jul 2019 05:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlrik-00056N-Ui for bug-guix@gnu.org; Fri, 12 Jul 2019 05:20:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58685) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlrik-00056D-RS for bug-guix@gnu.org; Fri, 12 Jul 2019 05:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlrik-0006Y6-Im for bug-guix@gnu.org; Fri, 12 Jul 2019 05:20:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:36512) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlrTO-0002fp-6W for bug-guix@gnu.org; Fri, 12 Jul 2019 05:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlrTL-0007R5-Hb for bug-guix@gnu.org; Fri, 12 Jul 2019 05:04:10 -0400 In-Reply-To: <475952466.1050924121.1562884357218.JavaMail.zimbra@free.fr> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 36611@debbugs.gnu.org, help-guix@gnu.org --=_2026f279-b3f3-4750-895f-58005b80443c Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable (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 --=_2026f279-b3f3-4750-895f-58005b80443c Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
(Cross-posting to help-guix as it may be mo= re appropriate)

I now hav= e two additional issues:

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

14. Also, my X server 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 supported by = guix?

Thanks,
Matthieu



De: "= racin" <racin@free.fr>
=C3=80: "bug-guix" <bug-guix@gnu.= org>
Envoy=C3=A9: Vendredi 12 Juillet 2019 00:32:37
Obje= t: Installation of a new guix system -- summaries of the issues

Hi Guix!
=
I have just installed (successfully?) my first guix system!

As a= newcomer (I know system administration quite well, but never used
guix = before) I thought that I could share my experience (i.e. issues I
had ;)= ) 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
using 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 those!
=
So, here is the list of issues I had.

1. An easy one: on a new c= omputer, you now have to desactive this
secure boot thingy, else the liv= e CD won't boot. As I understand it
the guix live CD is not "signed", wh= ich 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 u= sing the BIOS; so maybe it
would be worth writing this in the installati= on instructions?

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

After a while, I understood that
<= br> - guix pull creates a new profile, but is not used by default: why= ?
   Similarly, guix kept telling me that I should do

#= GUIX_PROFILE=3D"/home/matthieu/.guix-profile"
# . "$GUIX_PROFILE/etc/pr= ofile"

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

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

   This is written explicitly in the docu= mentation, so that was clear,
   but I fell into the trap.
=
 - guix system reconfigure /etc/config.scm (without sudo) fails at= a
   very late stage. Maybe this command should issue a warni= ng 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 installe= d with guix package -i.

4. I followed the initial exemple configurat= ion of "A graphical system
with a choice of lightweight window managers"= , but it did not contain
any terminal emulator.

5. I installed Ic= ecat but I am missing some fonts: some websites do
not display properly = (e.g. numbers do not show up), even if I untick
"do not load custom font= s" (unticking this improves things a bit). So
I believe some more font p= ackage should be installed with icecat.

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

7. nm-applet fails= with this warning Failed to add/activate connection: (1) Not authorized 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 equivale= nt to apt-file, e.g. a way to know in which
   packages a file= would be located? This would be very useful, for
   instance = I had trouble finding where the latex executable is
   located= , or ghc complaining about finding linux/errno.h when I
   wan= ted to install xmonad. The problem is even more important for
 &nbs= p; guix, as in other systems the dependencies eventually show up in
&nbs= p;  your profile (e.g. installing texlive-latex-beamer would install   the latex binary), whereas in guix you have to explicitely i= nstall
   the right package in Guix.

9. nm-applet canno= t find the right icon sets, so it uses a "forbidden
sign" icon everywher= e (which is a bit scary). The error I get is

 failed to load ic= on "nm-stage03-connecting11": Icon
 'nm-stage03-connecting11' not p= resent in theme Adwaita

  so I guess some icon are missing; I t= ried to install
  gnome-icon-theme with no luck.

10. My late= st problem happened when I tried to install slim (but the
problem remain= s when I switch back to gdm or tried to use a previous
system configurat= ion, which surprised me). Now when I boot, I have a
"gdm" user that was = created and which attemps to log 505 times, which
freezes my computer fo= r 2 minutes (I I try to use it at the same
times, it hangs). My work-aro= und is to switch to the console and wait
that all these unsuccessful con= nection stops, but this is not
ideal...

11. Before I found this w= ork-around I tried to fix the problem by
booting + chrooting from anothe= r 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
erase= the whole disk and you would loose all your data", while I used
the man= ual partitionning scheme and asked to format only one
partition, and thi= s was a bit scary.

Wow, that was a long list. Obviously I did not wr= ite about everything
that went well during the installation, so thanks f= or your hard work!
By posting this, I just hope that it will help new us= ers to have less
problems to solve in the future!

Thanks,
Matt= hieu


PS: here is my config.scm file

;; This is an operating system configuration generated
;; by the graphi= cal installer.

(use-modules (gnu))
(use-service-modules desktop n= etworking ssh xorg)
(use-modules (nongnu packages linux))
(use-module= s (srfi srfi-1)) ; for remove

(operating-system
  (locale "e= n_US.utf8")
  (timezone "Europe/Paris")
  (keyboard-layout<= br>    (keyboard-layout "us" "altgr-intl"))
  (kerne= l linux)
  (firmware (cons* iwlwifi-firmware %base-firmware))
&n= bsp; (bootloader
    (bootloader-configuration
 &= nbsp;    (bootloader grub-efi-bootloader)
  &nb= sp;   (target "/boot/efi")
      (key= board-layout keyboard-layout)))
  (file-systems
  &nbs= p; (cons* (file-system
        &= nbsp;    (mount-point "/")
     =         (device
   &nb= sp;           (uuid "7dd6= 8b9b-26ba-47f7-aa82-3469060d2936"
      &n= bsp;            = ;  'ext4))
         &n= bsp;   (type "ext4"))
      &nbs= p;    (file-system
      &n= bsp;      (mount-point "/boot/efi")
  = ;           (device (uuid= "90D1-BAAF" 'fat32))
        &n= bsp;    (type "vfat"))
     &nbs= p;     %base-file-systems))
  (host-name "x1")<= br>  (users (cons* (user-account
     &nbs= p;            (name = "matthieu")
          =         (comment "Matthieu")
 &n= bsp;            = ;    (group "users")
      =             (home-di= rectory "/home/matthieu")
       &nbs= p;          (supplementary-gro= ups
           &n= bsp;        '("wheel" "netdev" "audio" "= video")))
          &n= bsp;     %base-user-accounts))
  (packages
&= nbsp;   (append
      (list (specific= ation->package "xmonad")
       &n= bsp;    (specification->package "awesome")
  = ;          (specification->= package "dmenu")
        (specification-&g= t;package "tlsdate") ; for initial time adjustment
   &nb= sp;        (specification->package "n= ss-certs"))
      %base-packages))
  (s= ervices
    (append
     (list (se= rvice openssh-service-type)

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

     &nbs= p;  (service slim-service-type (slim-configuration
  &nbs= p;               &nb= sp; (display ":0")
          &nb= sp;         (vt "vt6")))

)

&nbs= p;    (remove (lambda (service)
     =       (eq? (service-kind service) gdm-service-type= ))


         %desktop-services=

             &nbs= p;    ))))

--=_2026f279-b3f3-4750-895f-58005b80443c--