Re: PrivateInternetAccess VPN and Guix

2019-06-03 Thread Meiyo Peng
Hi,

oury.dus...@posteo.net writes:

> Welp. I've read of being able to run it as non-root on other distros. So if
> possible I'd love to be able to. Not sure if it's a big security risk to run
> openvpn as root or not though.

There is an openvpn-client-service-type in Guix.  Maybe that's a better
choice.

> On 03.06.2019 03:34, Meiyo Peng wrote:
>> Hi,
>>
>> oury.dus...@posteo.net writes:
>>
>>> So I managed to get it working mostly okay through installing openvpn
>>> and running sudo (should I actually be running this as sudo?) --config
>>> my-openvpn-config.opvn
>>
>> Yes.  Running OpenVPN requires root privilege.
>>
>>> Note: Attempting to use the gnome network settings did not work and 
>>> complains
>>> it
>>> couldn't find a vpn connection. Possibly due to how the .opvn file is
>>> formatted?
>>
>> I am not a Gnome user.  No idea.
>>
>>
>> --
>> Meiyo Peng
>> https://www.pengmeiyu.com/


--
Meiyo Peng
https://www.pengmeiyu.com/



Re: What can be done about zipped sources

2019-06-03 Thread Jesse Gibbons
On Mon, 3 Jun 2019 19:54:48 -0600
Jesse Gibbons  wrote:

> I have a project that relies on the python random2 module at
> . Guix cannot extract it because
> it is a zip, not a tarball. Is there a workaround?
> Thanks,
> -Jesse

Never mind. I figured it out. Just include unzip as a native input and
make sure the url has the .zip suffix.



What can be done about zipped sources

2019-06-03 Thread Jesse Gibbons
I have a project that relies on the python random2 module at
. Guix cannot extract it because
it is a zip, not a tarball. Is there a workaround?
Thanks,
-Jesse



Re: warning: setlocale: LC_ALL: cannot change locale on foreign distro

2019-06-03 Thread Jack Hill

On Mon, 3 Jun 2019, Josh Holland wrote:


Hi Guix,

It's only now I reply to this that I notice that it wasn't my thread I
was responding to, since I was having exactly the same problem.


I'm always releived to see other people having the same problem, and I'm 
not lost in some dark corner of computer problems where no one else 
ventures :)



On Mon, Jun 03, 2019 at 02:01:50PM -0400, Jack Hill wrote:

1) The default locale in the provided systemd unit, en_US.utf8, is not
provided by the glibc-locales package but rather only by the
glibc-utf8-locales package.


Installing glibc-utf8-locales has made the errors go away.


Yay!


2) The quoting in systemd unit is wrong. Changing

```
Environment=GUIX_LOCPATH='/var/guix/profiles/per-user/root/guix-profile/lib/locale'
 LC_ALL=en_US.utf8
```

to


```
Environment='GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale'
 LC_ALL=en_US.utf8
```

fixed the problem.


I've made this change too, though it appeared to be fixed just by
installing glibc-utf8-profiles.


What foreign distro are you using? I wonder if the former works with some 
systemd versions, but not all.




I'll open bugs for each of these issues.


Glad that these won't be a problem any more; thanks a lot!


To close the loop, those issues are

https://issues.guix.info/issue/36074 and
https://issues.guix.info/issue/36076

While poking around the bugtracker, I noticed another one which is related 
to the whole situation:


https://issues.guix.info/issue/35671

Best,
Jack



Re: Help with writing custom boot-loader configuration

2019-06-03 Thread Jack Hill

On Mon, 3 Jun 2019, Raghav Gururajan wrote:


On Thu, 2019-05-30 at 10:11 +, Raghav Gururajan wrote:

Hello Guix!

If I want to make the "grub-bootloader" to invoke ONLY "grub-mkconfig" 
and NOT "grub-install", how should I modify the "bootloader" part of 
"operating-system" section of system configuration (config.scm)? I am 
looking for exact Guile Scheme Code to achieve the same.


Thank you!

Regards,
RG.



RG,

My first thought after reading your question was 
. 
However, I guess you need something else, but I'm not sure what it is. Can 
you explain more what you're trying to do? Thanks!


Best,
Jack



Re: Help with writing custom boot-loader configuration

2019-06-03 Thread Timothy Sample
Hi Raghav,

Raghav Gururajan  writes:

> On Thu, 2019-05-30 at 10:11 +, Raghav Gururajan wrote:
>> Hello Guix!
>> 
>> If I want to make the "grub-bootloader" to invoke ONLY
>> "grub-mkconfig" and NOT "grub-install", how should I modify the
>> "bootloader" part of "operating-system" section of system
>> configuration (config.scm)? I am looking for exact Guile Scheme Code
>> to achieve the same.
>> 
>> Thank you!
>> 
>> Regards,
>> RG.
>
> Hello Ludo and Rekado!
>
> May be with your expertise in Guile Scheme, can you please help me with the
> above?

Putting together “exact Guile Scheme Code” is a lot to ask, but I can
give you the following.  You will have to adjust it appropriately if,
for example, you are not using EFI.  Note also that this is untested,
but it is certainly close.

What you want to do is create a custom bootloader that behaves just like
GRUB except for the “installer”.  In Guix, each bootloader is defined by
a “bootloader” record.  Part of that record is an “installer” field,
which tells Guix how to install the bootloader onto the system.

In addition to whatever else you use for your config file, you will need
the following modules:

(use-modules (gnu)
 (guix gexp))

Now you can make your custom bootloader:

(define grub-efi-bootloader-sans-install
  (bootloader
   (inherit grub-efi-bootloader)
   (installer #~(const #t

Here, “(const #t)” tells Guile to create a function that always returns
“#t”, which means “true”.  The “#~” part introduces a G-expression,
which is a handy way to write code that is intended to be run from the
build environment.

Finally, this should work as part of your configuration:

(operating-system
  ;; ...
  (bootloader (bootloader-configuration
   ;; ...
   (bootloader grub-efi-bootloader-sans-install))

That is, you need to change your “bootloader-configuration” to use your
new custom bootloader.

I hope that helps!


-- Tim



Re: fetching git submodule using (uri (recursive? #t))

2019-06-03 Thread Myles English
on [2019-05-28] at 14:18 I wrote:

> I am trying to build this package that uses git submodules but the
> (recursive? #t) doesn't seem to have any effect.

Thanks to bavier and reepca on IRC #guix who figured out this happens
when the package definition is changed (by e.g., adding "(recursive?
#t)") but the hash is not updated.  This causes guix to think,
reasonably, that it already has the source in /gnu/store/the_hash-etc
because the_hash hasn't changed since the last time it was fetched.

To fix, just remove the source from the store before trying again:

$ guix gc -d /gnu/store/the_hash-etc

(N.B. the "-d" above might have changed to "-D")

Additionally, when developing a package, reepca suggested making a
random change to the hash just so guix knows it needs to get the source
again, and it will suggested the real hash to put in the package
definition.

Myles



Re: warning: setlocale: LC_ALL: cannot change locale on foreign distro

2019-06-03 Thread Josh Holland
Hi Guix,

It's only now I reply to this that I notice that it wasn't my thread I
was responding to, since I was having exactly the same problem.

On Mon, Jun 03, 2019 at 02:01:50PM -0400, Jack Hill wrote:
> 1) The default locale in the provided systemd unit, en_US.utf8, is not
> provided by the glibc-locales package but rather only by the
> glibc-utf8-locales package.

Installing glibc-utf8-locales has made the errors go away.

> 
> 2) The quoting in systemd unit is wrong. Changing
> 
> ```
> Environment=GUIX_LOCPATH='/var/guix/profiles/per-user/root/guix-profile/lib/locale'
>  LC_ALL=en_US.utf8
> ```
> 
> to
> 
> 
> ```
> Environment='GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale'
>  LC_ALL=en_US.utf8
> ```
> 
> fixed the problem.

I've made this change too, though it appeared to be fixed just by
installing glibc-utf8-profiles.

> 
> I'll open bugs for each of these issues.

Glad that these won't be a problem any more; thanks a lot!


-- 
Josh Holland



Re: warning: setlocale: LC_ALL: cannot change locale on foreign distro

2019-06-03 Thread Jack Hill

On Mon, 3 Jun 2019, Jack Hill wrote:


Hello Guix,

I'm setting up Guix on a foreign distro (CentOS 7). I'm working on getting 
locales right per section 2.6.1 of the manual. I have installed the 
guix-locales package in buth my user's and root's profile, and have restarted 
guix-daemon. However, when I run package installation opterations, I see the 
following message,


```
/gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: 
warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)

```


There appears to be two things going on here:

1) The default locale in the provided systemd unit, en_US.utf8, is not 
provided by the glibc-locales package but rather only by the 
glibc-utf8-locales package.


I think the fix for this would be to clarify which package should be 
installed in root's profile when installing on a systemd foreign distro.


2) The quoting in systemd unit is wrong. Changing

```
Environment=GUIX_LOCPATH='/var/guix/profiles/per-user/root/guix-profile/lib/locale'
 LC_ALL=en_US.utf8
```

to


```
Environment='GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale'
 LC_ALL=en_US.utf8
```

fixed the problem.

I'll open bugs for each of these issues.

Best,
Jack



URGENT! Looking for Scheduling System

2019-06-03 Thread Raghav Gururajan
Hello Guix!

I looking for a free stoftware (offline/desktop application) that has feature-
sets suitable for Tutoring Bussiness. All I need is to manage tutor-student
appointment/session scheduling. It's kind of urgent, so I would appreciate if
some one could please help me with this.

Thank you!

Regards,
RG.



Re: conkeror superseded by icecat, why?

2019-06-03 Thread Pierre Neidhardt
Jan Nieuwenhuizen  writes:

> Me too.  I have long pinned an old conkerer and run in from the
> store...but recently I have started running the next browser
> (sbcl-next).

Ha!  Happy to hear that! ;)

Coming months look very promising for Next browser development and
hopefully will be on par with Conkeror very soon!  Next goals include VI
bindings, a download manager and ad-blocking.

Cheers!

-- 
Pierre Neidhardt
https://ambrevar.xyz/


signature.asc
Description: PGP signature


Re: conkeror superseded by icecat, why?

2019-06-03 Thread Jan Nieuwenhuizen


Hi!

> I've long had conkeror installed, now after the latest Guix update it
> won't start, it's not installed anymore.

Me too.  I have long pinned an old conkerer and run in from the
store...but recently I have started running the next browser
(sbcl-next).

Other new emacsy-like browser efforts are underway, I don't know of
runnable code though.

> I can still run conkeror manually from the store, using it's direct
> location — but once I delete generations it'll disappear.

> How can I fix this — how to get conkeror installed properly again?

Right.  You can pin it by running something like

./pre-inst-env guix environment --root=~/.config/guix/conkeror --ad-hoc 
conkeror 

in a git checkout that still has conqueror.

Greetings,
janneke

-- 
Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com



warning: setlocale: LC_ALL: cannot change locale on foreign distro

2019-06-03 Thread Jack Hill

Hello Guix,

I'm setting up Guix on a foreign distro (CentOS 7). I'm working on getting 
locales right per section 2.6.1 of the manual. I have installed the 
guix-locales package in buth my user's and root's profile, and have 
restarted guix-daemon. However, when I run package installation 
opterations, I see the following message,


```
/gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bash: 
warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
```

GUIX_LOCPATH is set to /home/jackhill/.guix-profile/lib/locale

What am I missing?

```
$ guix describe
Generation 2Jun 03 2019 10:54:12(current)
  guix 3092f1b
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 3092f1b835d79655eecb2f8a79dda20ad9ba6bd6
```

Thanks,
Jack



Issues with guix offload

2019-06-03 Thread Divan Santana
Hi All :)

So my guix offload to my build box used to work, no troubles.

As of late it fails. Perhaps due to an update, or because I renamed the
user account on the remote box.

I think all is correct in terms of configuration but still fails with
the below.

Not sure how to further troubleshoot it:

~ sudo guix offload test
guix offload: testing 1 build machines defined in '/etc/guix/machines.scm'...
guix offload: Guix is usable on 'cp3.santanas.co.za' (test returned 
"/gnu/store/883yjkl46dxw9mzykykmbs0yzwyxm17z-test")
guix offload: 'cp3.santanas.co.za' is running GNU Guile 2.2.4
sending 1 store item (0 MiB) to 'cp3.santanas.co.za'...
exporting path `/gnu/store/sxxrzcpagpr87ldp82l9q634q7bbp8g5-export-test'
guix offload: error: unknown error while sending files over SSH

Seems something like this fails too

guix copy --to=cp3.santanas.co.za emacs

~ ssh d...@cp3.santanas.co.za guile --version
guile (GNU Guile) 2.2.4

~ ssh d...@cp3.santanas.co.za guix repl --version
guix repl (GNU Guix) 1.0.1-3.4a54ed7

Doing this (against sshd pid) on the build server results in a 2m file
output. Where can I upload that?

root@cp3 ~# strace -p 287 -s 300 -o log -f

Not sure what to look for in the log output.

Any ideas?



Guix Cuirass - Continuous Integration - Crash Error

2019-06-03 Thread Reza Alizadeh Majd
Hi Guix, 

I want to setup a CI build server using _Cuirass_ to build a series of custom 
packages for Guix. but I receive following error and cuirass-service crashes, 
could anyone help me on this? 

```
2019-06-03T18:50:59 fatal: uncaught exception 'git-error' in 'build' fiber!
2019-06-03T18:50:59 exception arguments: (#< code: -14 message: "the 
index is locked; this might be due to a concurrent or crashed process" class: 
10>)
In ice-9/boot-9.scm:
829:9  9 (catch _ _ # ?)
705:2  8 (call-with-prompt _ _ #)
705:2  7 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8  6 (_ #(#(# # ?)))
In srfi/srfi-1.scm:
640:9  5 (for-each # (((#:name . #) ?)))
In ice-9/boot-9.scm:
   751:25  4 (dispatch-exception 0 git-error (#< code: -?>))
In cuirass/utils.scm:
181:8  3 (_ _ #< code: -14 message: "the index is loc?>)
In ice-9/boot-9.scm:
829:9  2 (catch #t # ?)
In cuirass/utils.scm:
   182:22  1 (_)
In unknown file:
   0 (make-stack #t)
ERROR: In procedure make-stack:
Git error: the index is locked; this might be due to a concurrent or crashed 
process
```


In case that it might be helpful, here is my `%cuirass-specs` definition: 
```
(define %cuirass-specs
   #~(list '((#:name . "my-manifest")
 (#:load-path-inputs . ("guix"))
 (#:package-path-inputs . ("custom-packages"))
 (#:proc-input . "guix")
 (#:proc-file . "build-aux/cuirass/gnu-system.scm")
 (#:proc . cuirass-jobs)
 (#:proc-args . ((subset . "manifests")
 (systems . "x86_64-linux")
 (manifests . (("config" . "manifest.scm")
 (#:inputs . (((#:name . "pantherx")
   (#:url . 
"https://user:p...@git.pantherx.org/development/guix-pantherx.git;)
   (#:load-path . ".")
   (#:branch . "master")
   (#:no-compile? #t)))
. . .

(service cuirass-service-type
(cuirass-configuration
  (interval 10)
  (use-substitutes? #t)
  (port 8082)
  (host "0.0.0.0")
  (specifications %cuirass-specs)))
```


I also added `manifest.scm` file beside my system configuration file with 
following
content:
```
(use-modules (px packages accounts))
(packages->manifest
   (list px-accounts))
```


---
Best, 
Reza




Noob issues with maintaining a guix laptop system

2019-06-03 Thread Divan Santana
Hi All,

Issues of a noob with no lisp programming skills has in maintaining a
guix laptop system.

 * how to do a system reconfigure on an older guix generation?

Sometimes I do a guix pull and attempt a reconfigure. Due to various
reasons, the reconfigure may fail. I now want to do a reconfigure, but
on the older guix generation profile. How do I go about doing that?

I've tried rolling back my guix profile, but running =guix pull
--list-generations= fails.

  #+begin_example
~ ᐅ guix pull --list-generations
Generation 1Oct 12 2018 20:44:32
  guix aa227b3
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: aa227b3be3d7728331a08dbd139c47c9b271dc23
  guix-chromium 16130df
repository URL: https://gitlab.com/mbakke/guix-chromium.git
branch: master
commit: 16130df2cc9a3424caa8230323b7d49c445f0813
Generation 2Oct 13 2018 15:35:07
  guix d781469
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: d7814696b884a7c5e4a58f539ece53f4998689a3
  guix-chromium 16130df
repository URL: https://gitlab.com/mbakke/guix-chromium.git
branch: master
commit: 16130df2cc9a3424caa8230323b7d49c445f0813
Backtrace:
  10 (primitive-load "/home/ds/.config/guix/current/bin/guix")
In guix/ui.scm:
  1747:12  9 (run-guix-command _ . _)
In ice-9/boot-9.scm:
829:9  8 (catch _ _ # …)
829:9  7 (catch _ _ # …)
829:9  6 (catch _ _ # …)
829:9  5 (catch system-error # …)
In guix/scripts/pull.scm:
   479:15  4 (_)
462:4  3 (display-profile-content-diff "/var/guix/profiles/per-…" …)
In guix/memoization.scm:
100:0  2 (_ # "/var/guix/profiles/per-…" …)
In guix/scripts/pull.scm:
   363:21  1 (_)
In guix/inferior.scm:
151:7  0 (port->inferior _ _)

guix/inferior.scm:151:7: In procedure port->inferior:
no binding `console-setup' in module (gnu packages xorg)
  #+end_example

Any ideas?

 * Adding a swap device from a file on disk

Something like this:

~ sudo file /mnt/swapfile
Password:
/mnt/swapfile: Linux/i386 swap file (new style) with SWSUSP1 image

(operating-system
   ...
   (swap-devices '("/mnt/swapfile"))
   ...
   )

But fails with:

#+begin_example
  guix system: error: exception caught while executing 'start' on service 
'swap-/mnt/swapfile':
  In procedure swapon: "/mnt/swapfile": Invalid argument
#+end_example



Re: conkeror superseded by icecat, why?

2019-06-03 Thread Alex Kost
白い熊 (2019-06-02 12:19 +0200) wrote:

> Hi everyone:
>
> I've long had conkeror installed, now after the latest Guix update it won't 
> start, it's not installed anymore.
>
> “guix package -i conkeror” tells me:
>  guix package: package 'conkeror' has been superseded by 'icecat'
>
> Why? These are two very different browsers.

As Pierre wrote, Conkeror is abandoned, unfortunately.  It does not work
with the modern versions of icecat/firefox.  I.e., it is not possible to
start conkeror anymore (only conkeror on top of some old icecat/firefox
version could work), so it is (or will be) excluded from all GNU/Linux
distributions.

-- 
Alex



Version of package fontforge

2019-06-03 Thread Tilman List
Hello,

when I tried to compile lilypond, I had some problems with the package
fontforge. In Guix it is listed as version 20190317, but when I do "fontforge
--version", i get:

Copyright (c) 2000-2018 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>;;. Please read LICENSE.
 Based on sources from 00:00 UTC  1-Jan-1970-ML-D.
 Based on source from git with hash: 
fontforge 00:00 UTC  1-Jan-1970
libfontforge 19700101

So lilypond's configure script complains about the version of fontforge. I
think that the right version is installed, but there went something wrong with
the date indicating the version. It seems that no matter which release I
compile the compiled program always shows the date of compilation as the
version. I do not have this problem, when I compile the fontforge package -- I
actually compiled the the release 20190317 and the compiled program shows the
version 20190603... But when installing it via "guix install fontforge" it has
the version 19700101. Do you have any ideas, how I can fix that?

Thank you!

Tilman


signature.asc
Description: This is a digitally signed message part


Re: PrivateInternetAccess VPN and Guix

2019-06-03 Thread oury . dustin
Welp. I've read of being able to run it as non-root on other distros. So 
if possible I'd love to be able to. Not sure if it's a big security risk 
to run openvpn as root or not though.


On 03.06.2019 03:34, Meiyo Peng wrote:

Hi,

oury.dus...@posteo.net writes:


So I managed to get it working mostly okay through installing openvpn
and running sudo (should I actually be running this as sudo?) --config
my-openvpn-config.opvn


Yes.  Running OpenVPN requires root privilege.

Note: Attempting to use the gnome network settings did not work and 
complains it
couldn't find a vpn connection. Possibly due to how the .opvn file is 
formatted?


I am not a Gnome user.  No idea.


--
Meiyo Peng
https://www.pengmeiyu.com/