Re: How to configure emacs for editing config.scm again?

2020-12-03 Thread Jérémy Korwin-Zmijowski
Maybe the Paredit extension can ne what you are looking for !

Jérémy

Le 3 décembre 2020 19:55:58 GMT+01:00, zna...@disroot.org a écrit :
>Thank you!
>
>I want emacs brushes my code making indents and auto-completing it closing 
>parentheses.
>It does not do nothing now. Only highlights it.
>
>Could you please tell how to force emacs work deeply with my code :)
>for it becomes wonderful for further copy-pasting here in Guix Help :)) ??
>
>
>November 29, 2020 9:43 PM, "zimoun"  wrote:
>
>> Hi,
>> 
>> On Sun, 29 Nov 2020 at 13:16, znavko--- via  wrote:
>> 
>>> Hello! I have lost my way of search how to configure emacs
>>> for editing config.scm with Scheme highlight mode and parentheses
>>> completion.
>> 
>> I do not know what you want exactly.
>> 
>> These lines fix “M-x run-geiser” using Guile as default. And highlight
>> some Scheme code with Paredit as parenthesis tools.
>> 
>> --8<---cut here---start->8---
>> (setq geiser-active-implementations '(guile))
>> (with-eval-after-load 'scheme
>> (add-hook 'scheme-mode-hook 'enable-paredit-mode))
>> --8<---cut here---end--->8---
>> 
>> Hope that helps,
>> simon

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma 
brièveté.


GNU Guix 1.2.0 T-shirts available

2020-12-03 Thread Luis Felipe
Hello,

Just to let you all know that I used the illustration and the song that 
accompanied the latest release to design some T-shirts, hoodies, and other 
stuff. This is the first T-shirt I printed:

https://luis-felipe.gitlab.io/media/2020/12/gnu-guix-1.2.0-camiseta.jpg

There is white and black versions available in my store:

White: https://um4no.myteespring.co/listing/gnu-guix-one-two-oh?product=46

Black: https://um4no.myteespring.co/listing/gnu-guix-one-two-oh-black?product=46

Or, if you prefer, get the design package and print your own stuff:

https://luis-felipe.gitlab.io/downloads/graphics/gnu-guix-one-two-oh-2020-12-03.zip

Thanks to all the people who have bought so far. I really appreciate your 
support :)

I hope you enjoy it,


---
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/



Re: ebook reader recommendations?

2020-12-03 Thread John Soo
  
  

 Hi Pierre!
  

  
It’s not really an e-reader but the remarkable series is powered by a lot of 
free software and is very hackable.   
  

  
Maybe one day our images will be small enough to put onto these small systems :)
  

  
- John



Re: ebook reader recommendations?

2020-12-03 Thread Adonay Felipe Nogueira via
Em 03/12/2020 05:58, Pierre Neidhardt escreveu:
> I'm looking for an open ebook reader, at least something that runs free
> software.

Perhaps this question should be directed to the team inside FSF responsible for 
doing hardware evaluation, namely, Respects Your Freedom.


-- 
* Ativista do software livre
* https://libreplanet.org/wiki/User:Adfeno
* Membro dos grupos avaliadores de
* Software (Free Software Directory)
* Distribuições de sistemas (FreedSoftware)
* Sites (Free JavaScript Action Team)
* Não sou advogado e não fomento os não livres
* Sempre veja o spam/lixo eletrônico do teu e-mail
* Ou coloque todos os recebidos na caixa de entrada
* Sempre assino e-mails com OpenPGP
* Chave pública: vide endereço anterior
* Qualquer outro pode ser fraude
* Se não tens OpenPGP, ignore o anexo "signature.asc"
* Ao enviar anexos
* Docs., planilhas e apresentações: use OpenDocument
* Outros tipos: vide endereço anterior
* Use protocolos de comunicação federadas
* Vide endereço anterior
* Mensagens secretas somente via
* XMPP com OMEMO
* E-mail criptografado e assinado com OpenPGP



signature.asc
Description: OpenPGP digital signature


Re: ebook reader recommendations?

2020-12-03 Thread Timotej Lazar
Hi!

Pierre Neidhardt  [2020-12-03 09:58:22+0100]:
> I'm looking for an open ebook reader, at least something that runs free
> software.

I’m happy with my Kobo Glo. By default it has a pretty hackable Linux
install with a proprietary UI, but it’s possible to run koreader¹ on it,
and even compile the kernel & uboot yourself². It does need some
firmware blobs for initializing the display, but other than that it can
run with just free software (except for wi-fi).

Unforunately the chipset is not supported in the mainstream kernel, so
it’s limited to the ancient 2.6.something kernel released by Kobo, which
does not work with the newer glibcs. I did manage to get Alpine running
on it with musl. Newer Kobo models are available and apparently just as
hackable, so that might be worth checking out.

¹ https://github.com/koreader/koreader
² https://github.com/lgeek/okreader



Re: Avoiding PYTHONPATH - latest?

2020-12-03 Thread 宋文武
Hello!

Phil  writes:
>> I've been having an argument with myself over the last 4 days about if
>> Guix's use of PYTHONPATH is a necessary evil or avoidable on a foreign OS.
>>
>> I've found references to a similar discussion last year, and reference
>> to using a 'fake virtual environment' (does anyone have a reference to
>> the other thread referenced where fake venvs are demonstrated as not
>> working):

I remembered did that too, I think it works in most cases.


>>
>> https://lists.gnu.org/archive/html/guix-devel/2019-06/msg00204.html
>> https://lists.gnu.org/archive/html/guix-devel/2019-06/msg00221.html
>>
>> I had what I think is a similar idea over the weekend and tried it out.
>>
>> Reading the mechanics of venvs as per PEP:
>> https://www.python.org/dev/peps/pep-0405
>>
>> I decided to see if I added a fake pyvenv.cfg to the python.scm package
>> could allow for us to drop the use of PYTHONPATH completely.

I had came up with adding another environment variable
‘GUIX_PYTHON_X_Y_SITE_PACKAGES’:
  

But didn’t made it in, feel free take it if useful, thanks!



Re: ebook reader recommendations?

2020-12-03 Thread Pierre Neidhardt
Hi Timotej, thanks for the suggestion, I'll look into it.

I'm realizing that my question was ambiguous: I'm looking for hardware
indeed, not software :)

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


signature.asc
Description: PGP signature


Re: Port forwarding for Guix containers

2020-12-03 Thread Zhu Zihao

Thank you Jason. Your code looks good, but after some search and
reading, I found it's a very very complicate issue for networking
between containers, it may not available to manage it in a declarative
way(or say Guix way).

So I decide to continue to use Docker, and leave iptables for Docker to
play. Now I use nftables to setup firewall rules personally.

Thank you again.

Jason Conroy writes:

> Hi Zihao,
>
> It sounds like you're running Guix for your host OS and want to have Guix
> containers inside of that? If that's so, then my existing config won't be
> much use to you: right now I'm running my Guix containers (the `guix system
> container` shell scripts) inside of Debian via systemd.
>
> But in case it helps, I think this is how you could approximate what
> "docker run --network --publish ..." does:
>
> 1) Create a persistent network namespace with `ip netns add`.
> 2) Use `ip link add` to create a pair of virtual ethernet interfaces (veth)
> - one for the host and one for the container.
> 3) Use `ip link set  netns ` so that one of the veth
> interfaces appears inside of the namespace, while its peer remains on the
> host side.
> 4) Assign each of the veth interfaces an address in the same subnet, but
> choose a subset that's unused on your system. For example, 192.168.0.1 and
> 192.168.0.2 within the subnet 192.168.0.0/24.
> 5) Bring up the interfaces with `ip link set  up`. Do the same for
> the loopback interface (lo) inside the namespace.
> 6) Inside the namespace, set up a default route using the address of the
> veth interface on the host side.
> 7) Use iptables to configure source network address translation (SNAT) for
> the traffic originating from the namespace so that it can connect to
> external hosts (e.g. via eth0).
> 8) Enable IP forwarding: set /proc/sys/net/ipv4/ip_forward to 1, and add
> related rules to iptables' FORWARD chain (if your default iptables policy
> is to DROP packets).
> 9) Finally, use iptables again to enable port forwarding (DNAT) from
> external hosts to your container.
>
> Here, "do X inside of a namespace" usually means `ip netns exec 
> `. When the command is /bin/bash you can explore the namespace's
> environment interactively. The namespace persists until you call `ip netns
> del `.
>
> With the exception of #9, there are examples of each task in the script I
> mentioned up-thread:
> https://gist.github.com/dpino/6c0dca1742093346461e11aa8f608a99#file-ns-inet-sh
>
> For my purposes, dynamic configuration of namespaces, interfaces, routes,
> etc. (like Docker does) seems unnecessarily complicated and fragile, so
> I've taken the approach of setting up my namespaces once at boot, and then
> the container startup script is as simple as `ip netns exec 
> `. Even when the Guix container itself shuts down
> and restarts, the namespace settings above are unchanged.
>
> How would these network settings be implemented using Guix services? I
> don't have experience in this area, so the following is just a guess:
> iptables-service seems suitable for tasks #7 - #9, and there's
> static-networking-service for assigning addresses in task #4 (but I think
> it will only know about the veth interface outside the namespace, not the
> one inside). For the rest, I think you'd need to define some new service to
> set up the namespace and virtual interfaces, and ensure that this service
> runs before static-networking-service.
>
> Hope that helps,
>
> Jason
>
> On Mon, Nov 23, 2020 at 11:22 AM Zhu Zihao  wrote:
>
>>
>> That's what I want to say, thank you!
>>
>> I want to combine different software in containers in docker-compose
>> like way. It's more similar with a system container then a `guix
>> environment` container.
>>
>> I'm not a Docker hater, but docker will corrupt your iptables entry and
>> make the system impure. If you wanna use iptables-service-type and
>> docker-service-type together, when you run `herd restart iptables`. All
>> docker specific rules will be erased.
>>
>> > Supposing that we've developed some system container that starts a
>> service
>> > on port N. If we want to run another instance of the same container, we
>> > first need to override the port number for the service in our
>> > operating-system, otherwise the service in the second container will fail
>> > to bind to port N in the shared network namespace. With a couple of
>> > one-service containers this may not be so hard, but system containers in
>> > general could have lots of services, and the authors of individual
>> > containers may not want to worry about choosing port numbers that are
>> > mutually disjoint from those in all other containers (and those used by
>> the
>> > container host itself).
>>
>> --
>> Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp
>>
>> Zihao
>>


-- 
Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp

Zihao


signature.asc
Description: PGP signature


ebook reader recommendations?

2020-12-03 Thread Pierre Neidhardt
Hi Guixers!

I'm looking for an open ebook reader, at least something that runs free
software.

I found this fascinating project, although for now you have to assemble
it yourself:

https://github.com/joeycastillo/The-Open-Book

More conventionally, I found this one, although it seems to be hard to
find on the market:

https://github.com/bq/cervantes

Any recommendations, anyone?

Cheers!

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


signature.asc
Description: PGP signature