GuixSD in virtualbox

2017-05-19 Thread Fox

Adonay Felipe Nogueira wrote:

Which break down is related to GuixSD and Python?



Please tell us so that we can help out.


Thx, I repeatedly restarted the

guix system init /mnt/etc/config.scm /mnt


line which broke during python2.7 install repeatedly.

After 3 hrs I kinda gave up on it. Maybe it just has been network 
overload, I will try again in the vbox image if I find a cool app to run 
in GuixSD such as scsh or shepherd of course. Also NixOS kinda let me 
down even though the nix package manager under debian never gave me much 
if any trouble. I'll report back if I could continue later a successful




guix system init /mnt/etc/config.scm /mnt


lispy greetz!




Re: GuixSD in virtualbox

2017-05-19 Thread Adonay Felipe Nogueira
Which break down is related to GuixSD and Python?

Please tell us so that we can help out.

-- 
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre, por isso não uso. Iguais a ele prefiro
  GNU Ring, ou Tox. Quer outras formas de contato? Adicione o vCard
  que está no endereço acima aos teus contatos.
- Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
  aceito, mas não repasso. Entrego apenas em formatos favoráveis ao
  /software/ livre. Favor entrar em contato em caso de dúvida.



Re: All source code for GuixSD system

2017-05-19 Thread Ludovic Courtès
Hello Dima,

(+Cc: help-guix)

Dima Ursu  skribis:

> On 05/17/2017 12:03 AM, Ludovic Courtès wrote:

[...]

>> If you run:
>>
>>   guix gc -R $(readlink -f /run/current-system)
>>
>> on a GuixSD system, that’ll list all the “things” the system itself
>> references.  Some of these things are configuration files, but many
>> others are the actual packages.
>
> Thanks, Ludo, that's what I was looking for!
>
>> A rough approach would be to run something along these lines:
>>
>>   guix build --sources=transitive \
>> $(guix gc -R $(readlink -f /run/current-system) | \
>>   grep -e '-[0-9.]\+$' | \
>>   sed -'es,/gnu/store/.\{32\}-\(.*\)-\([0-9.]\+\)$,\1@\2,g')
>
> I've run this in several stages, and it seems that  grep -e '-[0-9.]\+$'
> is a bit too aggressive - some packages that I think are valid are
> excluded, like:
> tz-data
> mutter
> libjpeg-9b
> libcdio-paranoia
> xf86-video-intel
>
> They either have some letters at the end, or not have a version at all.
> I wonder if the "--sources=transitive" would take care of them and pull
> them anyway, but there's no obvious way to be sure of that.

Yeah, I guess you could fine-tune the regexp as a first step.

> There are some .scm files, which I assume are already in the source
> version, but correct me if I'm wrong.

Yes, these are just copied from Guix proper to /gnu/store.

> Some of the reported packages confuse me, like boot, fstab, profile,
> raw-initrd, system - and they won't even build - guix just reports them
> as "unknown package". Should I bother at all with them?

These are non-package byproducts used by the system (everything ‘guix
system’ and other tools build goes to /gnu/store, including
configuration files, the initrd, and so on.)  It’s safe to ignore them.

HTH,
Ludo’.



Re: GuixSD in virtualbox

2017-05-19 Thread Fox



Specifically, VirtualBox relies on a non-free toolchain at build time,
AIUI.  That’s why Guix does not include it.

Fox: QEMU should run about as fast as native code as long as you provide
the ‘-enable-kvm’ command-line option.  See:


https://www.gnu.org/software/guix/manual/html_node/Running-GuixSD-in-a-VM.html


Thx I had found that kvm info too.

Sadly GuixSD suffers breakdown after the install of python for some 
weird reason.


My idea was to do GUI programming stuff with guile-gnome-platform 
available also on NixOS and as a NixOS package.

But to get the hello-world going requires quite some effort, I found.
And my NixOS install went haywire after only a few hours.

Meanwhile I found the Mr.Ed GUI-designer for Dr.Racket-GUI (racket 
scheme) which gets you started way faster.

https://pkgs.racket-lang.org/package/mred-designer
seems more useable than Boa-Constructor even.

Maybe I drop guile in favour of racket hence. running WxGlade LISP code 
with guile seems quirky too.





Re: GuixSD in virtualbox

2017-05-19 Thread Ludovic Courtès
Adonay Felipe Nogueira  skribis:

> You might want to make sure that the version of VirtualBox that you have
> is fully free/libre though.
>
> The current versions of it, as far as I know, aren't, so I think Guix
> should avoid recommending it.

Specifically, VirtualBox relies on a non-free toolchain at build time,
AIUI.  That’s why Guix does not include it.

Fox: QEMU should run about as fast as native code as long as you provide
the ‘-enable-kvm’ command-line option.  See
.

HTH,
Ludo’.



Re: GuixSD in a VM is so nice - once you actually have control over your mouse, that is.

2017-05-19 Thread Björn Höfling
On Thu, 18 May 2017 00:42:18 +0200
Fox  wrote:

> so I run GuixSD (on bare metal nicely and) on qemu
> 
> but mouse capture is an issue in that gpm or whatever runs the mouse.
> 
> I "can't come back from the Immelmann loop" , so-to-speak. The only 
> "ESCAPE" is CTRL-ALT-F3  with root login and "reboot".
> 
> 
> I mean ... these days a VM should maybe be fine with mice of 21st. 
> century design or am I going down a wrong alley ?
> 
> 
> 

As others already pointed out, "Ctrl-Alt" is the way to get out of the
cage.

Mostly I don't use the VM-Window: I had some trouble with gpm and don't
know how to enable clipboard-sharing in QEMU, so I just use SSH:

My GuixSD-QEMU-Configuration has something like:

 (services (cons* 
... other services here ...
(dhcp-client-service)
(lsh-service #:port-number )
   %base-services))


Then in my host system I have an entry in my ~/.ssh/config:

Host g64
HostName localhost
Port 
User bjoern


When I now call "ssh g64" and enter my password, I'm connected to my
virtual machine and can use the normal mouse and copy/paste of my host
system as I would use with other remote machines.

You can also upload your SSH-Key in your virtual machine to avoid
password entering.

And probably when I would setup a new VM, I would use OpenSSH
(https://www.gnu.org/software/guix/manual/guix.html#index-openssh_002dservice_002dtype),
but when I started with my setup, there was only LSH.


Björn