From mboxrd@z Thu Jan 1 00:00:00 1970 From: racin@free.fr Subject: Re: Installation of a new guix system -- summaries of the issues Date: Fri, 12 Jul 2019 14:40:10 +0200 (CEST) Message-ID: <703690754.1061562959.1562935210641.JavaMail.zimbra@free.fr> References: <475952466.1050924121.1562884357218.JavaMail.zimbra@free.fr> <834194262.1058652910.1562922240277.JavaMail.zimbra@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40360) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hluqc-0008FB-Sh for help-guix@gnu.org; Fri, 12 Jul 2019 08:40:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hluqa-00024f-9k for help-guix@gnu.org; Fri, 12 Jul 2019 08:40:22 -0400 In-Reply-To: <834194262.1058652910.1562922240277.JavaMail.zimbra@free.fr> 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: bug-guix , help-guix 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