Re: Error system reconfigure with guix-latest

2018-03-05 Thread Jone
> Can you post the whole config file so we can investigate?

My current config:

;; Prepare environment
(use-modules
 (gnu)
 (gnu packages base)
 (gnu packages admin)
 (gnu packages linux)
 (gnu packages emacs)
 (gnu packages xfce)
 (gnu packages gnuzilla)
 (gnu packages tmux)
 (gnu packages curl)
 (gnu packages video)
 (gnu packages version-control)
 (gnu services networking)
 (gnu system nss)
)
(use-service-modules networking desktop)
(use-package-modules bootloaders ssh)

;; Select packages
(define %pkg-group-base
  '("xfce" "slim" "emacs" "icecat"))
(define %pkg-group-dev
  '("gcc" "glibc" "gcc-toolchain" "git" "automake" "autoconf" "cmake" "make"
"perl" "guile"
"strace"
"linux-libre-headers" "mesa-headers"))

;;;  other pkg groups definitions, omitted 

(operating-system
 (host-name "guix")
 (timezone "Europe/Moscow")
 (locale "en_US.utf8")
 (bootloader (bootloader-configuration
  (bootloader grub-bootloader)
  (target "/dev/sdd")
  (menu-entries (menu-entry
   (label "Old")
   (linux "/boot/vmlinuz-4.14.9-calculate")
   (linux-arguments '("root=/dev/sda3"))
   (initrd
"/boot/initramfs-4.14.9-calculate.img")))
  ))

 (initrd-modules (cons* "sata_nv";; Nvidia nForce
"pata_acpi" %base-initrd-modules))

 (file-systems (cons*
(file-system
 (device "two")
 (mount-point "/")
 (type "ext4")
 (options "noatime,discard 0 1")
 (title 'label))
(file-system
 (device "one")
 (mount-point "/home")
 (type "ext4")
 (options "noatime,discard 0 0")
 (title 'label))
(file-system
 (device "634a6369-c5a8-4f4c-b3e8-35fb92cf850e")
 (mount-point "/mnt/WD-HDD")
 (type "ext4")
 (options "noatime")
 (title 'uuid))
%base-file-systems))
(swap-devices '("/dev/disk/by-uuid/0602935f-4ed2-4805-9ec9-e0c06238abf5"))

(users (cons (user-account
  (name "jone")
  (comment "Jone")
  (group "users")
  (supplementary-groups '("wheel" "netdev" "audio" "video"))
  (home-directory "/home/jone"))
 %base-user-accounts))

(packages (append (map specification->package
   (append %pkg-group-base
   %pkg-group-dev))
  %base-packages))
(services (cons*
   ;; (dhcp-client-service)
   (xfce-desktop-service)
   %desktop-services)))


Re: Error system reconfigure with guix-latest

2018-03-05 Thread Ludovic Courtès
Jone  skribis:

>> Does ‘guix system reconfigure’ succeed once you specify the
>> ‘initrd-modules’ field as others suggested?
>
> This problem is resolved, thanks. But I still can't reconfigure system
> (‘--verbosity=10’ needed to see some output, otherwise absolutely nothing
> in console). Experimentally, I found out that the problem with the
> following code blocks:
>
> 1. in file-systems:
>
> ;; (file-system
> ;;  (device "c36b9de3-2b00-4263-8844-9f2d72628d78")
> ;;  (mount-point "/mnt/oldhome")
> ;;  (type "ext4")
> ;;  (options "noatime,discard 0 0")
> ;;  (title 'uuid))
>
> 2. and in bootloader configuration:
>
>  (bootloader (bootloader-configuration
>   (bootloader grub-bootloader)
>   (target "/dev/sdd")
>   ;; (menu-entries (menu-entry
>   ;;  (label "OldLinux")
>   ;;  (linux "/boot/vmlinuz-4.14.9-calculate")
>   ;;  (linux-arguments '("root=/dev/sda3"))
>   ;;  (initrd
> "/boot/initramfs-4.14.9-calculate.img")))
>   ))
>
> If to comment out them (as above), then process starts, otherwise the
> output is visible only with ‘--verbosity=10’ and nothing else happens,
> there are no errors. But I need a possibility of the login in old system
> and old partitions are necessary :)

At first sight the code blocks above shouldn’t be a problem.

Can you post the whole config file so we can investigate?

Thanks,
Ludo’.



Re: Posts in languages other than English on help-guix?

2018-03-05 Thread julien lepiller

Le 2018-03-05 15:14, l...@gnu.org a écrit :

julien lepiller  skribis:


Hi, could you add a lang="…" attribute on the div? I heard it's better
for screen readers.


Done, thanks for the tip!

Ludo’.


Oh, with the traditional version being on only one line, the following 
paragraph (bug reporting) is indented with the "zh" box.


You could try adding a style="clear: both" to the last "p" block in the 
contact-medium div, and add "; clear: both" on each div (if there is a 
one-line paragraph, the next language block would be indented).




Language tag for traditional Chinese (was: Posts in languages other than English on help-guix?)

2018-03-05 Thread Tobias Geerinckx-Rice

Ludo', Alex,

On 2018-03-05 9:45, l...@gnu.org wrote:
The locale should be zh_TW (for Taiwan), zh_HK (for Hong Kong) and 
zh_mo

(for Macau). Should I use a let to avoid duplication?


As long as the above sentence is intelligible to people from all these
regions, it’s enough to write “zh” I guess?  (It’s meant to be a
language tag for humans to read, not an actual locale specification.)


I'd definitely avoid that. For better or worse, ‘zh’ is assumed to equal 
‘zh_CN’ or simplified Chinese.


If a single code for traditional Chinese is required, Wikipedia has this 
to say:


  ‘The World Wide Web Consortium recommends the use of the language tag 
zh-Hant as a language attribute value and Content-Language value to 
specify web-page content in Traditional Chinese.’[0]


In practice, the locale ‘zh_TW’ is often used instead. For example:

  ‘The standard locale for simplified Chinese is zh_CN. The standard 
locale for traditional Chinese is zh_TW.’[1]


...but I don't like that very much. I'd go with the W3C, but I'm not 
exactly a native speaker. Alex?


Kind regards,

T G-R

[0]: 
https://en.wikipedia.org/wiki/Traditional_Chinese_characters#Computer_encoding
[1]: 
https://stackoverflow.com/questions/4892372/language-codes-for-simplified-chinese-and-traditional-chinese


Sent from a Web browser. Excuse or enjoy my brevity.



Re: Posts in languages other than English on help-guix?

2018-03-05 Thread Ludovic Courtès
julien lepiller  skribis:

> Hi, could you add a lang="…" attribute on the div? I heard it's better
> for screen readers.

Done, thanks for the tip!

Ludo’.



Re: Installation: Load non-free wifi firmware (iwlwifi)

2018-03-05 Thread Clément Lassieur
Pierre Neidhardt  writes:

> This was posted before:
>
> https://lists.gnu.org/archive/html/help-guix/2017-01/msg00041.html
>
> Unfortunately, I'm not able to acquire a wifi dongle at the moment.
> As far as I understand, linux-libre turns off the ability to load
> non-free firmware.  Why is it so?
>
> Is it possible to re-enable the feature?
> If not, are there other ways around the issue?

Hi Pierre,

Guix allows one to customize their packages through inheritance.  You
could create a custom linux package that inherits Guix's linux-libre,
with, say a differente source.  When linux-libre is updated, my-linux
would be updated as well, since it inherits linux-libre.  Thus, you
would have no maintainance to do.

(define-public my-linux
  (package
(inherit linux-libre)
(name "my-linux")
(source ...)))

This custom package's definition needs to be within GUIX_PACKAGE_PATH.
See
https://www.gnu.org/software/guix/manual/html_node/Package-Modules.html#Package-Modules
for more information.

Clément



Re: Wayland setup

2018-03-05 Thread Andreas Enge
Hello,

just a tiny piece of answer, which does not handle your main question:

On Mon, Mar 05, 2018 at 01:59:56PM +0100, Thorsten Wilms wrote:
> I'm also a bit on a loss on what I actually need regarding networking
> services. During installation, "ifconfig enp5s2 up; dhclient -v enp5s2" was
> sufficient. No Wifi here, just one wrong device enp2s0 to avoid.
> 
>(service network-manager-service-type)
>(service wpa-supplicant-service-type)

In that case, I would simply use
 (dhcp-client-service)
instead of the two lines above.

Andreas




Wayland setup

2018-03-05 Thread Thorsten Wilms

Hi!

Potentially switching distributions seemed like a good opportunity to 
try Wayland, especially since I'm playing with the idea of writing a 
schemey WM; doing so based on X11 seems like wasted effort at this point.


I would like to have a system with just a floating-window Wayland 
compositor installed (Weston?) and the least amount of Gnome and Xorg 
dependencies.


My understanding from the documentation is that the default login 
manager Slim doesn't deal with Wayland. The only alternative seems to be 
sddm. %desktop-services would bring in Slim, AFAICS, so I tried to do 
without and list things explicitly.


Surprised to see Wayland handled via xorg service, _trying_ to make 
sense of the documentation, I ended up with
(service xorg-service-type (sddm-configuration (display-server 
"wayland")), but commented it out to get beyond yet another error 
message on the way.


Actually, I would be OK with logging in on a VT and type whatever the 
Wayland equivalent of startx might be.


What's behind (banana-service) vs (service banana-service-type)? Maybe 
I'm a bad reader, but the documentation left me guessing / piecing it 
from examples, which form to use, except that the later seems to allow 
configuration?


I'm also a bit on a loss on what I actually need regarding networking 
services. During installation, "ifconfig enp5s2 up; dhclient -v enp5s2" 
was sufficient. No Wifi here, just one wrong device enp2s0 to avoid.


My attempt:

(use-modules (gnu)
 (gnu packages freedesktop) ; guix suggested this one
 (gnu system nss)
 (gnu services networking))
(use-service-modules admin avahi base dbus desktop mcron networking sddm 
ssh xorg) ; desktop was suggested for elogind

(use-package-modules base idutils bootloaders certs ntp)

(operating-system
  ...
  (packages (cons* wayland
   weston
   nss-certs ;for HTTPS access
   %base-packages))

  (services (cons* ;(colord-service) missing the right service module
   (elogind-service)
   (dbus-service)
   (polkit-service)
   (service mcron-service-type)
   (service network-manager-service-type)
   (service rottlog-service-type)
   (sddm-service)
   (service wpa-supplicant-service-type)
   ;(service xorg-service-type (sddm-configuration 
(display-server "wayland")))

   %base-services)))

  ;; Allow resolution of '.local' host names with mDNS.
  ;(name-service-switch %mdns-host-lookup-nss))


I was dismayed to see lots of Xorg stuff scroll by and ending up with 
5,6G on the second generation, before even installing any applications.


If one should do a guix pull before init, 
https://www.gnu.org/software/guix/manual/html_node/Proceeding-with-the-Installation.html#Proceeding-with-the-Installation 
should say so. I only recalled having seen that somewhere else, afterwards!



Got collision warnings at the end of init, whatever that means:
-
;Creating manual page database for 49 packages... done in 6.230 s
;find-files: 
/gnu/store/amxx08a88q2wypk5fwribkvm7qzl84q0-xf86-video-vesa-2.3.4/share/X11/xorg.conf.d: 
No such file or directory
;find-files: 
/gnu/store/drdl1aw2zhp6qlafs5bb0p6mva1sycqw-xf86-video-fbdev-0.4.4/share/X11/xorg.conf.d: 
No such file or directory
;find-files: 
/gnu/store/019ikmqqq5wkdhrlzyighgbinkjc51nl-xf86-video-cirrus-1.5.3/share/X11/xorg.conf.d: 
No such file or directory
;find-files: 
/gnu/store/37gddpml9db3fgp30vrnhgf4h098nbw2-xf86-video-intel-2.99.917-8-c899057/share/X11/xorg.conf.d: 
No such file or directory
;find-files: 
/gnu/store/44knzzw2bl78n0ylaj9q10j2mqs4apy1-xf86-video-mach64-6.9.5/share/X11/xorg.conf.d: 
No such file or directory
;find-files: 
/gnu/store/1l7rjh5c4vfz9d40yn2dyyy433wla8k1-xf86-video-nouveau-1.0.15/share/X11/xorg.conf.d: 
No such file or directory
;find-files: 
/gnu/store/b8a7jcj40rdpwg6cww9xmc28zzkkkr48-xf86-video-nv-2.1.21/share/X11/xorg.conf.d: 
No such file or directory
;find-files: 
/gnu/store/hgnmrhy4p0sv9l64vn14nf3mrxckav4y-xf86-video-sis-0.10.9/share/X11/xorg.conf.d: 
No such file or directory
;find-files: 
/gnu/store/8mncbkqy6cjdj4qzw2q26jk5qs4fl1cx-xf86-input-keyboard-1.9.0/share/X11/xorg.conf.d: 
No such file or directory
;find-files: 
/gnu/store/dfp22bxrpfq2xfwg27f7xi6080wskinb-xf86-input-mouse-1.9.2/share/X11/xorg.conf.d: 
No such file or directory
;warning: collision encountered: 
/gnu/store/hi7gadjf2gc3ma5bzabpkzjzcd89zz87-util-linux-2.30.1/share/man/man8/nologin.8.gz 
/gnu/store/a8arlhcrf70113zw7b3qrwqbqfq2hgj6-shadow-4.5/share/man/man8/nolo$
;warning: arbitrarily choosing 
/gnu/store/hi7gadjf2gc3ma5bzabpkzjzcd89zz87-util-linux-2.30.1/share/man/man8/nologin.8.gz
;warning: collision encountered: 
/gnu/store/hi7gadjf2gc3ma5bzabpkzjzcd89zz87-util-linux-2.30.1/sbin/nologin 
/gnu/store/a8arlhcrf70113zw7b3qrwqbqfq2hgj6-shadow-4.5/sbin/nologin
;warning: 

Re: Posts in languages other than English on help-guix?

2018-03-05 Thread julien lepiller

Le 2018-03-05 09:57, l...@gnu.org a écrit :

Hello Guix!

Thanks everyone who contributed a translation!  I think I picked the
latest version of each:

  https://www.gnu.org/software/guix/contact/

Please send a patch if anything’s wrong or missing.

From now on, make sure to monitor help-guix, people.  :-)

Thanks to Ricardo, who’s the one who came up with this idea during the
pre-FOSDEM workshop.  I was skeptical at the time, but I think it’s
going to be at least a great experiment!

Ludo’.


Hi, could you add a lang="…" attribute on the div? I heard it's better 
for screen readers.




Re: Installation: Load non-free wifi firmware (iwlwifi)

2018-03-05 Thread Adonay Felipe Nogueira
> Is it possible to re-enable the feature?
> If not, are there other ways around the issue?

I want to make it clear that the solution seems to be for you to acquire
a copy of the GNU Linux-libre scripts' source code, modify then so that
they don't block that specific non-free part, and then have these
modified scripts run over a copy of the source files for Linux.

-- 
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
  instantaneamente comigo no endereço abaixo.
- Contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft
  Office, MP3, MP4, WMA, WMV.
- Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU
  GIMP, Inkscape SVG, JPG, LibreOffice (padrão ODF), OGG, OPUS, PDF
  (apenas sem DRM), PNG, TXT, WEBM.



Re: Posts in languages other than English on help-guix?

2018-03-05 Thread Ludovic Courtès
Hello Guix!

Thanks everyone who contributed a translation!  I think I picked the
latest version of each:

  https://www.gnu.org/software/guix/contact/

Please send a patch if anything’s wrong or missing.

>From now on, make sure to monitor help-guix, people.  :-)

Thanks to Ricardo, who’s the one who came up with this idea during the
pre-FOSDEM workshop.  I was skeptical at the time, but I think it’s
going to be at least a great experiment!

Ludo’.



Re: Posts in languages other than English on help-guix?

2018-03-05 Thread Ludovic Courtès
Hi Alex,

Alex Vong  skribis:

> This is the traditional Chinese version:
>
>   訂閱「Help」郵件群組以電郵從GuixSD及GNU Guix社群取得支援。你可以使用正體、繁體中文發送訊息。
>
> The locale should be zh_TW (for Taiwan), zh_HK (for Hong Kong) and zh_mo
> (for Macau). Should I use a let to avoid duplication?

As long as the above sentence is intelligible to people from all these
regions, it’s enough to write “zh” I guess?  (It’s meant to be a
language tag for humans to read, not an actual locale specification.)

Ludo’.


Re: Error system reconfigure with guix-latest

2018-03-05 Thread Ludovic Courtès
Hi Jone,

Jone  skribis:

> Thanks. I rewrite config, following your advice and run 'guix system
> --verbosity=10 reconfigure new.scm':

‘--verbosity=10’ is not very helpful as it throws loads of very
low-level messages.  (‘--verbosity’ in general is rarely what you want.)

Does ‘guix system reconfigure’ succeed once you specify the
‘initrd-modules’ field as others suggested?

Thanks,
Ludo’.



Re: GTK applications crash on start

2018-03-05 Thread Ludovic Courtès
Alex ter Weele  skribis:

> Alex ter Weele  writes:
>
>>
>> $ echo $LD_LIBRARY_PATH
>>
>> $ echo $LD_PRELOAD
>> 
>> /gnu/store/hfz0z0fs14jgl0kzk5hid2msr83lxii1-spectrwm-3.1.0/lib/libswmhack.so.0.0
>>
>> That's weird, looks like my WM set LD_PRELOAD. I wouldn't have expected
>> that. And sure enough, with LD_PRELOAD unset:
>>
>> $ LD_PRELOAD= emacs -Q --eval "(kill-emacs)"
>> ...(GTK warnings omitted)
>> $ echo $?
>> 0

Bingo!

>> So why and how does spectrwm set LD_PRELOAD? I can't figure this out.
>
> OK, I figured it out:
> https://github.com/conformal/spectrwm/blob/SPECTRWM_3_1_0/spectrwm.c#L3764. 
> Looks
> like it injects libswmhack.so so that it can intercept X events,
> e.g. 
> https://github.com/conformal/spectrwm/blob/SPECTRWM_3_1_0/lib/swm_hack.c#L137

Well, the library name says it all.  :-)

Thanks,
Ludo’.