using Shepherd outside of GuixSD ?
Does anyone have any experience using Shepherd as the init for a distro other than GuixSD ? This could be useful, say on a bare bones foreign distro where Guix was installed, in order to have more of the Guix ecosystem available even outside of GuixSD itself. Concretely speaking, I was thinking of trying to use Shepherd on a Void Linux install in place of the default runit init. Thoughts? Suggestions? —Ben -- Benjamin Slade - https://babbagefiles.xyz `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19)) '(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org ) `(Choose Linux ,(Choose Freedom) . https://linux.com )
Re: Run graphical application in container
Yes, that was it, thanks a lot! Is anyone interested in finishing the work that was sketched in https://lists.gnu.org/archive/html/help-guix/2018-01/msg00056.html ? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature
Re: Ubuntu 18.04 LTS Bionic - Installing Guix in an LXC
There is still an issue with the locale that is C.UTF-8. To fix it, you can add: lxc.environment = LC_ALL=en_US.UTF-8 To the file /var/lib/lxc/schemer/config Le mar. 16 oct. 2018 à 12:57, Amirouche Boubekki < amirouche.boube...@gmail.com> a écrit : > To install guix (the package manager) inside an ubuntu LXC on Ubuntu you > can do the following: > > $ sudo apt install lxc > $ sudo lxc-create -t download -n schemer -- --dist ubuntu --release bionic > --arch amd64 > > That will create a lightweight virtulal machine with ubuntu bionic as a > distribution. > > To connect to it, use the following command: > > $ sudo lxc-start -n schemer > $ sudo lxc-attach -n schemer > > This will open a bash prompt inside the LXC container. > > It's recommended to install emacs-no-x (!) and openssh-server: > > # apt install emacs-no-x > # apt install openssh-server > > Then change the configuration of sshd to allow to connect as root: > > # emacs /etc/ssh/sshd_config > > You must have a line in that file that says: > > PermitRootLogin yes > > Restart ssh daemon: > > # /etc/init.d/sshd restart > > Use the following command to know the IP of the container: > > # ip a > > Set a password for the root login: > > # passwd > > Now type 'exit' to exit the container and return to the host. You can a > now connect using ssh: > > $ ssh root@$IP_OF_SCHEMER > > Now, you are connected to the LXC using ssh, you can follow the usual > steps > to install guix from the manual: > > http://www.gnu.org/software/guix/download/ > > Now you might try to do: > > # guix package -i hello > > And it will fail with the following error: > > > build failed: while setting up the build environment: unable to make ?/? > private mount: Permission denied > > If you look at 'dmesg' output you will see something like: > > > audit: type=1400 audit(1539605833.825:115): apparmor="DENIED" > operation="mount" info="failed flags match" error=-13 > profile="lxc-container-default-cgns" name="/" pid=13543 comm="guix-daemon" > flags="rw, rprivate" > > That's where it gets ugly. I only know how to disable apparmor for that > lxc container. > > Go to /var/lib/lxc/schemer/config and add somewhere in that file the > following command: > > lxc.apparmor.profile = unconfined > > You might need to restart the lxc container: > > $ lxc-stop -n schemer > $ lxc-start -n schemer > $ ssh root@$IP_OF_SCHEMER > # guix package -i hello && hello > > > Happy hacking! >
Re: Run graphical application in container
On Tue, Oct 16, 2018 at 04:22:43PM +0200, Pierre Neidhardt wrote: > I think this was mentioned before on the mailing list but I cannot find > it back. I think the first discussion was here, regarding IceCat: https://lists.gnu.org/archive/html/guix-devel/2016-07/msg00120.html And a more recent discussion is here: https://lists.gnu.org/archive/html/help-guix/2018-01/msg00056.html > The following won't work: > > --8<---cut here---start->8--- > $ guix environment -C -N --ad-hoc epiphany -- epiphany > Unable to init server: Could not connect: Connection refused > Failed to parse arguments: Cannot open display: > --8<---cut here---end--->8--- > > Is it possible to start a graphical application in a container? I think you'll need to share the host system's X socket, like '--share=/tmp/.X11-unix' or '--share=/tmp/serverauth.$RANDOM' and then `export DISPLAY=":0.0"` in the container. $RANDOM is a random string to make the filename unpredictable. So, it's definitely possible. In my experience, the hard part is finding the myriad directories used by the software and sharing or exposing them to the container. This is shown in the second discussion I linked above. signature.asc Description: PGP signature
Run graphical application in container
Hi, I think this was mentioned before on the mailing list but I cannot find it back. The following won't work: --8<---cut here---start->8--- $ guix environment -C -N --ad-hoc epiphany -- epiphany Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display: --8<---cut here---end--->8--- Is it possible to start a graphical application in a container? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature
Re: Guix, Rofi, i3wm and Locales
Cordialement, Pierre-Henry FRÖHRING +33 6 34 48 17 57 cont...@phfrohring.com Skype: pierre.henry.frohring ‐‐‐ Original Message ‐‐‐ On Tuesday, October 16, 2018 1:47 PM, wrote: > Hi, > > "Pierre-Henry F." cont...@phfrohring.com skribis: > > > I checked that I executed the commands: > > $ guix package -i glibc-locales > > $ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale > > Then: > > $ sudo apt remove rofi > > $ guix package -i rofi > > But no... same result. > > Concretely, if you explicitly run ~/.guix-profile/bin/rofi, what > happens? Does it print warnings about locale issues? I replaced things in the calling script: #! /usr/bin/env bash ~/.guix-profile/bin/rofi -combi-modi window,drun,run -theme solarized -font 'hack 10' -show combi -modi combi And... nothing happens! > > Thanks, > Ludo’.
Re: Guix, Rofi, i3wm and Locales
Hi, "Pierre-Henry F." skribis: > I checked that I executed the commands: > > $ guix package -i glibc-locales > $ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale > > Then: > > $ sudo apt remove rofi > $ guix package -i rofi > > But no... same result. Concretely, if you explicitly run ~/.guix-profile/bin/rofi, what happens? Does it print warnings about locale issues? Thanks, Ludo’.
Ubuntu 18.04 LTS Bionic - Installing Guix in an LXC
To install guix (the package manager) inside an ubuntu LXC on Ubuntu you can do the following: $ sudo apt install lxc $ sudo lxc-create -t download -n schemer -- --dist ubuntu --release bionic --arch amd64 That will create a lightweight virtulal machine with ubuntu bionic as a distribution. To connect to it, use the following command: $ sudo lxc-start -n schemer $ sudo lxc-attach -n schemer This will open a bash prompt inside the LXC container. It's recommended to install emacs-no-x (!) and openssh-server: # apt install emacs-no-x # apt install openssh-server Then change the configuration of sshd to allow to connect as root: # emacs /etc/ssh/sshd_config You must have a line in that file that says: PermitRootLogin yes Restart ssh daemon: # /etc/init.d/sshd restart Use the following command to know the IP of the container: # ip a Set a password for the root login: # passwd Now type 'exit' to exit the container and return to the host. You can a now connect using ssh: $ ssh root@$IP_OF_SCHEMER Now, you are connected to the LXC using ssh, you can follow the usual steps to install guix from the manual: http://www.gnu.org/software/guix/download/ Now you might try to do: # guix package -i hello And it will fail with the following error: > build failed: while setting up the build environment: unable to make ?/? private mount: Permission denied If you look at 'dmesg' output you will see something like: > audit: type=1400 audit(1539605833.825:115): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxc-container-default-cgns" name="/" pid=13543 comm="guix-daemon" flags="rw, rprivate" That's where it gets ugly. I only know how to disable apparmor for that lxc container. Go to /var/lib/lxc/schemer/config and add somewhere in that file the following command: lxc.apparmor.profile = unconfined You might need to restart the lxc container: $ lxc-stop -n schemer $ lxc-start -n schemer $ ssh root@$IP_OF_SCHEMER # guix package -i hello && hello Happy hacking!
WebRTC support (jitsi) in Guix-packaged browsers?
Hi Guix! Last August I could run WebRTC services such as https://meet.jit.si just fine. For the last few weeks I've been unable to run it. Maybe last Icecat upgrade? It does not work on Epiphany either. Is anyone able to run it? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature