Re: how to run docker?

2020-03-17 Thread Giovanni Biscuolo
Hi Adam,

Adam Kandur via  writes:

> hi, guixers!
> Sorry for newbe question. 
> How yo run docker service after installation docker package?

you don't need to install the package, you just need to configure your
service (packages will be automatically installed in the system profile)

The documentation is here:
https://guix.gnu.org/manual/en/guix.html#Miscellaneous-Services

This is what I did in my config.scm: 

--8<---cut here---start->8---

[...]
  (services
(append
 (list 
[...]

   (service ntp-service-type) ;; clock **must** be in sysc

   (elogind-service) ;; needed by docker-service
   (dbus-service) ;; needed by docker-service
   (service docker-service-type)
[...]

--8<---cut here---end--->8---

Clock must be in sync in general, I don't remember if this is also a
requirement for docker (probably not, but it was for sure for other
services)

HTH! Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures


signature.asc
Description: PGP signature


Re: Scheduling and getting notifications in a desktop or window manager environment

2020-03-17 Thread Giovanni Biscuolo
Hello,

I've no direct experience with desktop notifications but...

sirgazil  writes:

[...]

> I tried GNOME Calendar some time ago in the Guix System, I liked its
> simplicity, but it was not reliable (notified sometimes, sometimes
> not).

What about orage? I tried that once and *maybe* it has a notification
system.

I use radicale as my CalDAV/CardDAV server with vdirsyncer [1] on my GNU
machines to keep events and contacts in sync (with DAVx5 on Android)...

...but orage can be used also standalone

[...]

HTH! Gio'



[1] I'm a little bit worried on its future 
https://github.com/pimutils/vdirsyncer/issues/790

-- 
Giovanni Biscuolo

Xelera IT Infrastructures


signature.asc
Description: PGP signature


Re: Useless gandi.cli (was: [bug#39447] [PATCH] gnu: Add python-gandi.cli.)

2020-03-17 Thread Giovanni Biscuolo
Hello Tobias,

sorry for the late reply

Tobias Geerinckx-Rice  writes:

> Amin,
>
> Amin Bandali 写道:
>> * gnu/packages/python-xyz.scm (python-gandi.cli): New variable.
>
> Does it do anything for you?  After reading the issue tracker it's 
> clear to me that gandi.cli is unusable and unmaintained.  I'd love 
> to be proven wrong.
>
> Here ‘gandi domain list’ returns ‘Invalid API key, please use 
> 'gandi setup' command’ no matter what I do.  All non-trivial 
> operations require an old XMLRPC key which isn't ever possible to 
> generate nowadays[0].
>
> Kind regards,
>
> T G-R
>
> [0]: 
> https://github.com/Gandi/gandi.cli/issues/292#issuecomment-560370741

I'm not a regular user of gandi.cli (hope I will) so I've not tested all
the features now, but it is working for me

You have to use Gandi V4 customer web interface to get the "legacy"
XMLRPC API key and it worked for me, done 3 minutes ago

https://v4.gandi.net/admin/api_key

They are planning to close the v4 customer web interface, I hope they
will fix this before... but fortunately it's still working

HTH! Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures


signature.asc
Description: PGP signature


Re: Useless gandi.cli (was: [bug#39447] [PATCH] gnu: Add python-gandi.cli.)

2020-03-17 Thread Tobias Geerinckx-Rice

Giovanni,

Giovanni Biscuolo 写道:

sorry for the late reply


No, thank you for your reply :-)

You have to use Gandi V4 customer web interface to get the 
"legacy"

XMLRPC API key and it worked for me, done 3 minutes ago

https://v4.gandi.net/admin/api_key


I'd love to, but that doesn't work for everyone anymore:

 Account already migrated
 This account has already been migrated to Gandi's new 
 website. […]


That message is new.  When I opened this bug a week ago, logging 
into V4 still broke IceCat with a redirect loop, with no 
indication of what went wrong.  I haven't changed or updated my 
browser since.


They are planning to close the v4 customer web interface, I hope 
they

will fix this before... but fortunately it's still working


I'm glad to hear it's still working for you, at least, and I 
suspect someone who really needs the CLI could ask support for an 
XMLRPC key.  That's enough to keep it in Guix.  It was not enough 
to keep me with Gandi.


Kind regards,

T G-R


signature.asc
Description: PGP signature


Help with locale

2020-03-17 Thread Mikael Djurfeldt
Hi!

I just installed guix on top of Debian Buster using the installation script
at guix.gnu.org.

At any guix command, it the complains:

  guile: warning: failed to install locale

I have installed glibc-locales, however it seems like the reason for the
above is that there is no link from .guix-profile/lib/locale to the
glibc-locales package. If I put a link there manually, the warning above
disappears, but as soon as the profile is updated (at a guix pull pulling
in new packages, e.g.), there is again no locales link and the warning
returns.

Why is it like this? How can I avoid this nuisance?

Best regards,
Mikael Djurfeldt


Problem with guix offload

2020-03-17 Thread Mikael Djurfeldt
Hi,

I just installed guix on top of Debian Buster using the installation script
at guix.gnu.org. I did this on two machines, hat and wand, with the hope
that I could offload compilation to wand.

This is what I get:

root@hat:~# guix offload test
guile: warning: failed to install locale
hint: Consider installing the `glibc-utf8-locales' or `glibc-locales'
package and
defining `GUIX_LOCPATH', along these lines:

 guix package -i glibc-utf8-locales
 export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"

See the "Application Setup" section in the manual, for more info.

guix offload: testing 1 build machines defined in
'/etc/guix/machines.scm'...
guix offload: Guix is usable on 'wand.pdc.kth.se' (test returned
"/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
guix offload: 'wand.pdc.kth.se' is running GNU Guile 3.0.1
sending 1 store item (0 MiB) to 'wand.pdc.kth.se'...
exporting path `/gnu/store/sd0wqvaffi1cbpvf0dq37mab34rmlnav-export-test'
;;; [2020/03/17 12:45:48.671038, 0] write_to_channel_port: [GSSH ERROR]
Remote channel is closed: #
Backtrace:
   1 (primitive-load "/root/.config/guix/current/bin/guix")
In guix/ui.scm:
  1833:12  0 (run-guix-command _ . _)

guix/ui.scm:1833:12: In procedure run-guix-command:
Throw to key `guile-ssh-error' with args `("write_to_channel_port" "Remote
channel is closed" # #f)'.

Any hints about what could be wrong?

Best regards,
Mikael Djurfeldt


Re: [kb] Using an OpenVPN config with nmcli

2020-03-17 Thread Joshua Branson
Maxim Cournoyer  writes:

Thanks for this!  I've been using openvpn to manually connect, and I'm
leaking DNS queries.  Thanks!


> Over the weekend, I spent a bit of time figuring how to use OpenVPN with
> NetworkManager, especially its command line interface, 'nmcli'.
>
> If you are using the Guix System, the first thing to do is to add the
> openvpn plugin to your network-manager-service-type configuration, like
> this:
>
> (services
>  ...
>  (modify-services %my-desktop-services
>(network-manager-service-type config =>
>  (network-manager-configuration
>   (inherit config)
>   (vpn-plugins
>(list network-manager-openvpn)
>
> Then you'll want to reconfigure your machine, *and* reboot (restarting
> the networking service and dbus-session were not enough, for some reason
> I couldn't figure out).
>
> My base file looked like this:
>
> --8<---cut here---start->8---
> client
> dev tun
> proto udp
> remote some-server.net 5912
> resolv-retry infinite
> nobind
> persist-key
> persist-tun
> auth-user-pass
> comp-lzo
> verb 3
> remote-cert-tls server
>
> 
> -BEGIN CERTIFICATE-
> some-long-cert-string...
> -END CERTIFICATE-
> 
>
> 
> -BEGIN CERTIFICATE-
> some-long-cert-string
> -END CERTIFICATE-
> 
>
> 
> -BEGIN PRIVATE KEY-
> some-long-private-key-string
> -END PRIVATE KEY-
> --
> 8<---cut here---end--->8---
>
> To import this with nmcli, it's easy:
>
> $ sudo nmcli connection import type openvpn file your-openvpn-config-file.ovpn
>
> And if, like me, this configuration requires inputing a username and
> password for authenticating, and you don't want to be bothered to, you
> can embed those secrets in the connection configuration with:
>
> $ sudo nmcli connection modify $your-connection vpn.user-name $your-username
> $ sudo nmcli connection modify $your-connection vpn.secrets 
> password=$your-password
> $ sudo nmcli connection modify $your-connection $your-username +vpn.data 
> password-flags=0
>
> The password-flags=0 disables some integration with the GNOME keyring,
> which I don't use.
>
> This has the benefit of automatically adding the VPN DNS server to your
> /etc/resolv.conf, compared with connecting directly with openvpn (or our
> Guix openvpn service).
>
> HTH!
>
> Maxim
>

-- 
Joshua Branson
Sent from Emacs and Gnus



Re: Scheduling and getting notifications in a desktop or window manager environment

2020-03-17 Thread sirgazil
Hi,

  On Tue, 17 Mar 2020 02:32:42 -0500 Giovanni Biscuolo  
wrote 
 > Hello,
 > 
 > I've no direct experience with desktop notifications but...
 > 
 > sirgazil  writes:
 > 
 > [...]
 > 
 > > I tried GNOME Calendar some time ago in the Guix System, I liked its
 > > simplicity, but it was not reliable (notified sometimes, sometimes
 > > not).
 > 
 > What about orage? I tried that once and *maybe* it has a notification
 > system.

I didn't know about it, installed it tried out with Xfce, but it's buggy too. 
For example:

* When adding a new event, the program crashes if you press the UTC button to 
select your time zone (which the program doesn't figure out by itself).
* I didn't get notified when I added an event with an alarm.


 > I use radicale as my CalDAV/CardDAV server with vdirsyncer [1] on my GNU
 > machines to keep events and contacts in sync (with DAVx5 on Android)...
 
Yeah I'm looking for desktop solutions. I don't have the resources to selfhost 
apps or services.

I'm considering using a wristwatch for all my computing again. The desktop 
seems death :)

Thanks, Giovanni.



Re: Help with locale

2020-03-17 Thread Leo Famulari
On Tue, Mar 17, 2020 at 12:36:27PM +0100, Mikael Djurfeldt wrote:
> I have installed glibc-locales, however it seems like the reason for the
> above is that there is no link from .guix-profile/lib/locale to the
> glibc-locales package. If I put a link there manually, the warning above
> disappears, but as soon as the profile is updated (at a guix pull pulling
> in new packages, e.g.), there is again no locales link and the warning
> returns.

If you installed glibc-locales, it should show up at
'~/.guix-profile/lib/locale' for the user that installed it (Guix
package management is per-user).

How did you install glibc-locales and as which user?



Re: Scheduling and getting notifications in a desktop or window manager environment

2020-03-17 Thread Leo Famulari
On Tue, Mar 17, 2020 at 08:32:42AM +0100, Giovanni Biscuolo wrote:
> [1] I'm a little bit worried on its future 
> https://github.com/pimutils/vdirsyncer/issues/790

Sad but not suprising considering it's Debian. I went out of my way to
communicate with the vdirsyncer project and keep the burden from falling
on them but it seemed unusual.



Re: Help with locale

2020-03-17 Thread Jeremy Korwin-Zmijowski
Considering this conversation : 
https://framapiaf.org/web/statuses/103580390068629106

You could try these commands with your user AND with the root user :

   $ guix pull && guix upgrade && guix install glibc-locales
   $ sudo -i
   # guix pull && guix upgrade && guix install glibc-locales
   # exit
   # reboot

Also, there is also a package for utf-8 locales : glibc-utf8-locales.

Hope it can help !

Jérémy




Re: Help with locale

2020-03-17 Thread Mikael Djurfeldt
On Tue, Mar 17, 2020 at 6:44 PM Leo Famulari  wrote:

> On Tue, Mar 17, 2020 at 12:36:27PM +0100, Mikael Djurfeldt wrote:
> > I have installed glibc-locales, however it seems like the reason for the
> > above is that there is no link from .guix-profile/lib/locale to the
> > glibc-locales package. If I put a link there manually, the warning above
> > disappears, but as soon as the profile is updated (at a guix pull pulling
> > in new packages, e.g.), there is again no locales link and the warning
> > returns.
>
> If you installed glibc-locales, it should show up at
> '~/.guix-profile/lib/locale' for the user that installed it (Guix
> package management is per-user).
>

It did not show up.


>
> How did you install glibc-locales and as which user?
>

I installed it as root through:

  guix package -i glibc-locales

Best regards,
Mikael


Re: Help with locale

2020-03-17 Thread Leo Famulari
On Tue, Mar 17, 2020 at 08:39:18PM +0100, Jeremy Korwin-Zmijowski wrote:
> Also, there is also a package for utf-8 locales : glibc-utf8-locales.

The glibc-locales package contains *all* the locales, including the
UTF-8 locales.

The glibc-utf8-locales package only contains a handful and is for
testing purposes, since the glibc-locales package is rather big.



Re: Help with locale

2020-03-17 Thread Leo Famulari
On Tue, Mar 17, 2020 at 08:32:18PM +0100, Mikael Djurfeldt wrote:
> > If you installed glibc-locales, it should show up at
> > '~/.guix-profile/lib/locale' for the user that installed it (Guix
> > package management is per-user).
> >
> 
> It did not show up.
> 
> 
> >
> > How did you install glibc-locales and as which user?
> >
> 
> I installed it as root through:
> 
>   guix package -i glibc-locales

Okay, when you say that it did not show up, is that taking into account
that Guix installs packages per-user? If you installed it for root, it
should show up in root's '~/.guix-profile/lib/locale', but not for any
other user.



Re: Help with locale

2020-03-17 Thread Jeremy Korwin-Zmijowski
Le mardi 17 mars 2020 à 15:44 -0400, Leo Famulari a écrit :
> On Tue, Mar 17, 2020 at 08:39:18PM +0100, Jeremy Korwin-Zmijowski
> wrote:
> > Also, there is also a package for utf-8 locales : glibc-utf8-
> > locales.
> 
> The glibc-locales package contains *all* the locales, including the
> UTF-8 locales.
> 
> The glibc-utf8-locales package only contains a handful and is for
> testing purposes, since the glibc-locales package is rather big.

Alright then my mind can drop the utf8 subset. 

Thank you for the clarification !

Jérémy




Re: Help with locale

2020-03-17 Thread Mikael Djurfeldt
On Tue, Mar 17, 2020 at 8:44 PM Leo Famulari  wrote:

> On Tue, Mar 17, 2020 at 08:39:18PM +0100, Jeremy Korwin-Zmijowski wrote:
> > Also, there is also a package for utf-8 locales : glibc-utf8-locales.
>
> The glibc-locales package contains *all* the locales, including the
> UTF-8 locales.
>
> The glibc-utf8-locales package only contains a handful and is for
> testing purposes, since the glibc-locales package is rather big.
>

Thanks for pointing this out. However, I I didn't find the swedish UTF8
locales in glic-utf8-locales. That's why I used glic-locales.


Re: Help with locale

2020-03-17 Thread Mikael Djurfeldt
On Tue, Mar 17, 2020 at 8:45 PM Leo Famulari  wrote:

> On Tue, Mar 17, 2020 at 08:32:18PM +0100, Mikael Djurfeldt wrote:
> > > If you installed glibc-locales, it should show up at
> > > '~/.guix-profile/lib/locale' for the user that installed it (Guix
> > > package management is per-user).
> > >
> >
> > It did not show up.
> >
> >
> > >
> > > How did you install glibc-locales and as which user?
> > >
> >
> > I installed it as root through:
> >
> >   guix package -i glibc-locales
>
> Okay, when you say that it did not show up, is that taking into account
> that Guix installs packages per-user? If you installed it for root, it
> should show up in root's '~/.guix-profile/lib/locale', but not for any
> other user.
>

I only tried it for root so far and it did not show up in root's
'~/.guix-profile/lib/locale'.


Re: Help with locale

2020-03-17 Thread Leo Famulari
On Tue, Mar 17, 2020 at 09:06:32PM +0100, Jeremy Korwin-Zmijowski wrote:
> Alright then my mind can drop the utf8 subset. 
> 
> Thank you for the clarification !

I'm glad you pointed it out. We are probably going to deprecate it soon
to avoid more confusion. We really need to make locales on Guix "just
work".



Re: Help with locale

2020-03-17 Thread Leo Famulari
On Tue, Mar 17, 2020 at 09:19:02PM +0100, Mikael Djurfeldt wrote:
> I only tried it for root so far and it did not show up in root's
> '~/.guix-profile/lib/locale'.

Okay. As root, can you do `guix package --list-installed` and send the
results here?

Also, as root, can you send the result of `echo $GUIX_LOCPATH`? 

And finally, again as root, the result of `ls -l
~root/.guix-profile/lib/locale`?

How are you "becoming root", by the way?



Re: Help with locale

2020-03-17 Thread Mikael Djurfeldt
On Tue, Mar 17, 2020 at 9:22 PM Leo Famulari  wrote:

> On Tue, Mar 17, 2020 at 09:19:02PM +0100, Mikael Djurfeldt wrote:
> > I only tried it for root so far and it did not show up in root's
> > '~/.guix-profile/lib/locale'.
>
> Okay. As root, can you do `guix package --list-installed` and send the
> results here?
>

It's just:

guile-ssh 0.12.0 out
/gnu/store/qqpigisk01ivzvb9pyi4d4d6v5p6djzw-guile-ssh-0.12.0
glibc-locales 2.29 out
/gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29


>
> Also, as root, can you send the result of `echo $GUIX_LOCPATH`?
>

/root/.guix-profile/lib/locale

>
> And finally, again as root, the result of `ls -l
> ~root/.guix-profile/lib/locale`?
>

ls: cannot access '/root/.guix-profile/lib/locale': No such file or
directory

(There's not even a "lib".)


>
> How are you "becoming root", by the way?
>

sudo -i

BTW, I tried Jeremy's suggestions and in the course of that discovered that
my ordinary user gets the lib/locales link installed. So, the problem I
report only exists for the root user.

Best regards,
Mikael


Re: Help with locale

2020-03-17 Thread Leo Famulari
On Tue, Mar 17, 2020 at 09:37:27PM +0100, Mikael Djurfeldt wrote:
> On Tue, Mar 17, 2020 at 9:22 PM Leo Famulari  wrote:
> > Okay. As root, can you do `guix package --list-installed` and send the
> > results here?
> 
> guile-ssh 0.12.0 out
> /gnu/store/qqpigisk01ivzvb9pyi4d4d6v5p6djzw-guile-ssh-0.12.0
> glibc-locales 2.29 out
> /gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29
>
> > And finally, again as root, the result of `ls -l
> > ~root/.guix-profile/lib/locale`?
> >
> 
> ls: cannot access '/root/.guix-profile/lib/locale': No such file or
> directory
> 
> (There's not even a "lib".)
>
> BTW, I tried Jeremy's suggestions and in the course of that discovered that
> my ordinary user gets the lib/locales link installed. So, the problem I
> report only exists for the root user.

Something is not right here.

The .guix-profile directory is a symlink union of all the packages in
the user's profile, so it should definitely contain a 'lib/locale'
directory if the user has installed glibc-locales.

What is the result of `ls -l ~root/.guix-profile`?



Re: Help with locale

2020-03-17 Thread Mikael Djurfeldt
On Tue, Mar 17, 2020 at 9:45 PM Leo Famulari  wrote:

> On Tue, Mar 17, 2020 at 09:37:27PM +0100, Mikael Djurfeldt wrote:
> > On Tue, Mar 17, 2020 at 9:22 PM Leo Famulari  wrote:
> > > Okay. As root, can you do `guix package --list-installed` and send the
> > > results here?
> >
> > guile-ssh 0.12.0 out
> > /gnu/store/qqpigisk01ivzvb9pyi4d4d6v5p6djzw-guile-ssh-0.12.0
> > glibc-locales 2.29 out
> > /gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29
> >
> > > And finally, again as root, the result of `ls -l
> > > ~root/.guix-profile/lib/locale`?
> > >
> >
> > ls: cannot access '/root/.guix-profile/lib/locale': No such file or
> > directory
> >
> > (There's not even a "lib".)
> >
> > BTW, I tried Jeremy's suggestions and in the course of that discovered
> that
> > my ordinary user gets the lib/locales link installed. So, the problem I
> > report only exists for the root user.
>
> Something is not right here.
>
> The .guix-profile directory is a symlink union of all the packages in
> the user's profile, so it should definitely contain a 'lib/locale'
> directory if the user has installed glibc-locales.
>
> What is the result of `ls -l ~root/.guix-profile`?
>

First, sorry, I didn't remember correctly: There is actually a "lib" and
has been all the time. Here's different directory listings both for the
root user and for the ordinary mdj user:

root@hat:~# ls -l ~root/.guix-profile
lrwxrwxrwx 1 root root 45 mar 14 19:48 /root/.guix-profile ->
/var/guix/profiles/per-user/root/current-guix
root@hat:~# ls -lL ~root/.guix-profile
total 20
dr-xr-xr-x 2 root root 4096 jan  1  1970 bin
dr-xr-xr-x 2 root root 4096 jan  1  1970 etc
dr-xr-xr-x 2 root root 4096 jan  1  1970 lib
-r--r--r-- 2 root root  454 jan  1  1970 manifest
dr-xr-xr-x 3 root root 4096 jan  1  1970 share
root@hat:~# ls -l ~root/.guix-profile/lib
total 8
lrwxrwxrwx 2 root root 68 jan  1  1970 guile ->
/gnu/store/7slr0lvrsyvg00h8sv101pc5rx144mcf-guix-683861125/lib/guile
lrwxrwxrwx 2 root root 71 jan  1  1970 guix ->
/gnu/store/pqffdyy62xv8qla6jqa5gb47abnflbiz-guix-package-cache/lib/guix
root@hat:~# ls -l ~mdj/.guix-profile
lrwxrwxrwx 1 mdj mdj 44 mar 17 21:24 /home/mdj/.guix-profile ->
/var/guix/profiles/per-user/mdj/guix-profile
root@hat:~# ls -lL ~mdj/.guix-profile
total 20
dr-xr-xr-x  2 root root 4096 jan  1  1970 etc
dr-xr-xr-x 14 root root 4096 jan  1  1970 include
dr-xr-xr-x  3 root root 4096 jan  1  1970 lib
-r--r--r--  2 root root  465 jan  1  1970 manifest
dr-xr-xr-x  3 root root 4096 jan  1  1970 share
root@hat:~# ls -l ~mdj/.guix-profile/lib
lrwxrwxrwx 3 root root 66 jan  1  1970 /home/mdj/.guix-profile/lib ->
/gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29/lib


Re: Help with locale

2020-03-17 Thread Mikael Djurfeldt
Den tis 17 mars 2020 21:58Mikael Djurfeldt  skrev:

> On Tue, Mar 17, 2020 at 9:45 PM Leo Famulari  wrote:
>
>> On Tue, Mar 17, 2020 at 09:37:27PM +0100, Mikael Djurfeldt wrote:
>> > On Tue, Mar 17, 2020 at 9:22 PM Leo Famulari  wrote:
>> > > Okay. As root, can you do `guix package --list-installed` and send the
>> > > results here?
>> >
>> > guile-ssh 0.12.0 out
>> > /gnu/store/qqpigisk01ivzvb9pyi4d4d6v5p6djzw-guile-ssh-0.12.0
>> > glibc-locales 2.29 out
>> > /gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29
>> >
>> > > And finally, again as root, the result of `ls -l
>> > > ~root/.guix-profile/lib/locale`?
>> > >
>> >
>> > ls: cannot access '/root/.guix-profile/lib/locale': No such file or
>> > directory
>> >
>> > (There's not even a "lib".)
>> >
>> > BTW, I tried Jeremy's suggestions and in the course of that discovered
>> that
>> > my ordinary user gets the lib/locales link installed. So, the problem I
>> > report only exists for the root user.
>>
>> Something is not right here.
>>
>> The .guix-profile directory is a symlink union of all the packages in
>> the user's profile, so it should definitely contain a 'lib/locale'
>> directory if the user has installed glibc-locales.
>>
>> What is the result of `ls -l ~root/.guix-profile`?
>>
>
> First, sorry, I didn't remember correctly: There is actually a "lib" and
> has been all the time. Here's different directory listings both for the
> root user and for the ordinary mdj user:
>
> root@hat:~# ls -l ~root/.guix-profile
> lrwxrwxrwx 1 root root 45 mar 14 19:48 /root/.guix-profile ->
> /var/guix/profiles/per-user/root/current-guix
> root@hat:~# ls -lL ~root/.guix-profile
> total 20
> dr-xr-xr-x 2 root root 4096 jan  1  1970 bin
> dr-xr-xr-x 2 root root 4096 jan  1  1970 etc
> dr-xr-xr-x 2 root root 4096 jan  1  1970 lib
> -r--r--r-- 2 root root  454 jan  1  1970 manifest
> dr-xr-xr-x 3 root root 4096 jan  1  1970 share
> root@hat:~# ls -l ~root/.guix-profile/lib
> total 8
> lrwxrwxrwx 2 root root 68 jan  1  1970 guile ->
> /gnu/store/7slr0lvrsyvg00h8sv101pc5rx144mcf-guix-683861125/lib/guile
> lrwxrwxrwx 2 root root 71 jan  1  1970 guix ->
> /gnu/store/pqffdyy62xv8qla6jqa5gb47abnflbiz-guix-package-cache/lib/guix
> root@hat:~# ls -l ~mdj/.guix-profile
> lrwxrwxrwx 1 mdj mdj 44 mar 17 21:24 /home/mdj/.guix-profile ->
> /var/guix/profiles/per-user/mdj/guix-profile
> root@hat:~# ls -lL ~mdj/.guix-profile
> total 20
> dr-xr-xr-x  2 root root 4096 jan  1  1970 etc
> dr-xr-xr-x 14 root root 4096 jan  1  1970 include
> dr-xr-xr-x  3 root root 4096 jan  1  1970 lib
> -r--r--r--  2 root root  465 jan  1  1970 manifest
> dr-xr-xr-x  3 root root 4096 jan  1  1970 share
> root@hat:~# ls -l ~mdj/.guix-profile/lib
> lrwxrwxrwx 3 root root 66 jan  1  1970 /home/mdj/.guix-profile/lib ->
> /gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29/lib
>

Or, rather, the root "lib" directory turned up when I installed guile-ssh.
It did not exist when I only had glic-locales.


Re: Help with locale

2020-03-17 Thread Leo Famulari
On Tue, Mar 17, 2020 at 09:58:31PM +0100, Mikael Djurfeldt wrote:
> root@hat:~# ls -l ~root/.guix-profile
> lrwxrwxrwx 1 root root 45 mar 14 19:48 /root/.guix-profile ->
> /var/guix/profiles/per-user/root/current-guix
> root@hat:~# ls -lL ~root/.guix-profile
> total 20
> dr-xr-xr-x 2 root root 4096 jan  1  1970 bin
> dr-xr-xr-x 2 root root 4096 jan  1  1970 etc
> dr-xr-xr-x 2 root root 4096 jan  1  1970 lib
> -r--r--r-- 2 root root  454 jan  1  1970 manifest
> dr-xr-xr-x 3 root root 4096 jan  1  1970 share
> root@hat:~# ls -l ~root/.guix-profile/lib
> total 8
> lrwxrwxrwx 2 root root 68 jan  1  1970 guile ->
> /gnu/store/7slr0lvrsyvg00h8sv101pc5rx144mcf-guix-683861125/lib/guile
> lrwxrwxrwx 2 root root 71 jan  1  1970 guix ->
> /gnu/store/pqffdyy62xv8qla6jqa5gb47abnflbiz-guix-package-cache/lib/guix

Okay, it looks like you don't have glibc-locales installed for the root
user.

You should install glibc-locales as root, and then restart the
guix-daemon with `systemctl daemon-reload && systemctl restart
guix-daemon`.

If you definitely did have glibc-locales installed for root and it did
not show up in the profile, that's a bug. Please double-check.

> root@hat:~# ls -l ~mdj/.guix-profile
> lrwxrwxrwx 1 mdj mdj 44 mar 17 21:24 /home/mdj/.guix-profile ->
> /var/guix/profiles/per-user/mdj/guix-profile
> root@hat:~# ls -lL ~mdj/.guix-profile
> total 20
> dr-xr-xr-x  2 root root 4096 jan  1  1970 etc
> dr-xr-xr-x 14 root root 4096 jan  1  1970 include
> dr-xr-xr-x  3 root root 4096 jan  1  1970 lib
> -r--r--r--  2 root root  465 jan  1  1970 manifest
> dr-xr-xr-x  3 root root 4096 jan  1  1970 share
> root@hat:~# ls -l ~mdj/.guix-profile/lib
> lrwxrwxrwx 3 root root 66 jan  1  1970 /home/mdj/.guix-profile/lib ->
> /gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29/lib

This looks fine.



Re: Help with locale

2020-03-17 Thread Mikael Djurfeldt
On Tue, Mar 17, 2020 at 10:14 PM Leo Famulari  wrote:

> On Tue, Mar 17, 2020 at 09:58:31PM +0100, Mikael Djurfeldt wrote:
> > root@hat:~# ls -l ~root/.guix-profile
> > lrwxrwxrwx 1 root root 45 mar 14 19:48 /root/.guix-profile ->
> > /var/guix/profiles/per-user/root/current-guix
> > root@hat:~# ls -lL ~root/.guix-profile
> > total 20
> > dr-xr-xr-x 2 root root 4096 jan  1  1970 bin
> > dr-xr-xr-x 2 root root 4096 jan  1  1970 etc
> > dr-xr-xr-x 2 root root 4096 jan  1  1970 lib
> > -r--r--r-- 2 root root  454 jan  1  1970 manifest
> > dr-xr-xr-x 3 root root 4096 jan  1  1970 share
> > root@hat:~# ls -l ~root/.guix-profile/lib
> > total 8
> > lrwxrwxrwx 2 root root 68 jan  1  1970 guile ->
> > /gnu/store/7slr0lvrsyvg00h8sv101pc5rx144mcf-guix-683861125/lib/guile
> > lrwxrwxrwx 2 root root 71 jan  1  1970 guix ->
> > /gnu/store/pqffdyy62xv8qla6jqa5gb47abnflbiz-guix-package-cache/lib/guix
>
> Okay, it looks like you don't have glibc-locales installed for the root
> user.
>
> You should install glibc-locales as root, and then restart the
> guix-daemon with `systemctl daemon-reload && systemctl restart
> guix-daemon`.
>
> If you definitely did have glibc-locales installed for root and it did
> not show up in the profile, that's a bug. Please double-check.
>

I did. I've checked.

Of course it *is* a bug that the simple action of installing glibc-locales
after a pure install doesn't result in locales taking effect (or that
lib/locales doesn't exist). I just wanted to have people with more context
than I have a look at it, in case I had missed something.

I'll report it then.

Thanks!


Re: Help with locale

2020-03-17 Thread Leo Famulari
On Tue, Mar 17, 2020 at 11:06:51PM +0100, Mikael Djurfeldt wrote:
> Of course it *is* a bug that the simple action of installing glibc-locales
> after a pure install doesn't result in locales taking effect (or that
> lib/locales doesn't exist). I just wanted to have people with more context
> than I have a look at it, in case I had missed something.

Just to clarify, installing the locales package will not make locales
work on its own — the GUIX_LOCPATH variable needs to be set as well, and
in at least two different contexts.

But `guix install glibc-locales` should create the 'lib/locales'
directory, and if it didn't then something is broken about package
installation.

> I'll report it then.

Thanks!