<lyr3>Is Guix written in Scheme? <lyr3>yep...but Nix is written mainly in C++ <pkill9>i think guix uses nix's daemon which is written in C or C++ <pkill9>but everything else is in Guile (derivative of Scheme) <lyr3>SUCESS...installed correctly! haha... ) <lyr3>EFI install: (bootloader (bootloader-configuration <lyr3> (bootloader grub-bootloader) <lyr3> (target "/mnt/boot/efi"))) <lyr3>How is the of the guixsd login manager package? <lyr3>I want to remove it before rebooting after a fresh install <Apteryx_>Hello; how do I add something to my PATH for non-interactive shells such as opened by SSH (for guix offloading, say). <Apteryx_>apparently .bashrc is supposed to do it for bash; but that doesn't seem to be the case for Ubuntu 16.04 <Apteryx_>(the foreign distro I'm trying to cox into offloading guix!) <Apteryx_>the commands run by 'ssh host some_command' appear to be non-login, non-interactive. <pkill9>before you execute the non-interactive shell <Apteryx_>I don't know if I have control over this, guix offload is doing its own magic <pkill9>are you trying to modify the path on the remote comptuer? <Apteryx_>I feel I need some file on the host that will be sourced even for non-login, non-interactive shells such as spawned by 'ssh host some_command' <pkill9>is there a guix profile on the remote computer that you want to include in your path? <Apteryx_>pkill9: yes, to have Guile in my PATH and also GUILE_LOAD_PATH as explained in 2.4.2 Using the Offload Facility <Apteryx_>This seems to be on something, but having to set the non-standard PermitUserEnvironment setting to yes stinks :/ <Apteryx_>I found the solution. Just put your export lines in a /etc/sshrc or ~/.sshrc file :) <Apteryx_>I should contribute this bit of knowledge to the Guix info manual. <ryanprior>In a system where you have one global version of a given library installed, it's pretty straightforward to check whether there are CVEs open against libraries you've got installed, and by upgrading a library when there's a security patch you automatically roll all the systems relying on that library forward. How does that play out in Guix world? How do I scan my system and find out what versions of libraries are being used in <ryanprior>different contexts, and apply secuity patches across the board? <lyr3>wow..i am getting a issue: guix package: error: unsupported manifest format <rekado>I’ve arrived in Boston, but my luggage still seems to be in Paris. (Or they lost it.) <jonsger>rekado: are you going to talk about guix? <civodul>rekado: Paris airport (CDG) is apparently famous for losing luggage :-) <civodul>anyway, enjoy Boston, and perhaps its shops if you need clothes ;-) <rekado>civodul: oh, that’s good to know <rekado>guess I’ll try to figure out today where Bostonians buy socks. <efraim>I had one horrible trip where my plane went Israel -> New York -> Toronto, I got off in New York and my luggage didn't. Then it went back to Israel and to Toronto again before finally showing up 3 days after I did <efraim>There's always Walmart, otherwise I normally buy clothes at Kohl's <efraim>hacky work-around for the rust-bootstrap source problem, we could have all the architectures download the bootstrap source for every architecture and then only unpack the correct one <mbakke>Apteryx_: are you sure the user you are offloading to have bash as their login shell? ***phant0mas_ is now known as phant0mas
<Apteryx_>In our doc we have a line we can use to see if everything is good: ssh build-machine guile -c "'(use-modules (guix config))'" <Apteryx_>This requires guile and the guix modules to be defined; passing commands to ssh means they will be executed in a non-login, non-interactive shell. <bzp>I just installed guix, my doubts are how openssh server is configured and how to execute as a user any program example: irssi? <roptat>as a user, you can install irssi with "guix package -i irssi" then run it <roptat>if you want all your users (including root) to have access to irssi, it's probably better to install it system-wide in the system configuration <bzp>and without needing to be root? <roptat>as a user, you can run most of guix commands <roptat>so you can simply run "guix package -i irssi" as a user <roptat>this will install irssi for your user only <bzp>how do you do that? install in root and that all users can use it? <roptat>simply run that command as a user, you don't need to be root to install packages on guix <roptat>because package profiles are isolated <bzp>How do I configure openssh server? <roptat>btw I remembered you saying you were not very fluent in English. If you tell us what other language(s) you speak, maybe someone can help you in your native language <roptat>the server must be configured by root. So you need to add the service to the service field of your operating-system declaration <roptat>that means, you probably have (services %base-services), use (services (cons* (openssh-service (openssh-configuration)) %base-services)) instead <roptat>actually (services (cons* (service openssh-service-type (openssh-configuration)) %base-services)) <bzp>what is the configuration file to add ssh? <roptat>the file you used to configure your system during the installation <bzp>in which section do I add that instruction to ssh? <bzp>And then would it be just to lift the service, to make it work? <roptat>you need to reconfigure your system first with "guix system reconfigure /etc/config.scm" <roptat>you may also need to reboot for the change to take effect <mbakke>Apteryx_: when offloading to a foreign distro, eventually what I did was to completely clear the "host" (native) environment, install Guile, Guix and Guile-SSH, and source the Guix profile from .bashrc. <mbakke>Perhaps .profile is interfering? <bzp>it's okay? What's next now? <bzp>my configuration is: <roptat>bzp: this means you need to add "ssh" on the line that says "use-service-modules" <catonano>bzp: it says that the variable "openssh-sevice-type" is not defined. Probably you need to import a module in which such variable is defined <roptat>bzp: oh this is bad, with two services sections, only the last one is taken into account <roptat>so it will remove your desktop services <g_bor>rekado, civodul: Do we have to talk about GSoC now? <roptat>bzp: "(services (cons* (service openssh...) %desktop-services))" will work better for you <roptat>and you have the same issue with the packages field: it's defined twice <apteryx1>mbakke: .bashrc should only be called for interactive sessions (c.f. Bash info manual); does this allow the test command I posted above to succeed for you? (it shouldn't be sufficient according to my understanding). <apteryx1>That line: ssh build-machine guile -c "'(use-modules (guix config))'" <mbakke>apteryx: oh, I always mix up .bashrc and .bash_profile. The SSH session is a login shell, I think. Does sourcing ~/.guix-profile/etc/profile work from `.bash_profile`? <mbakke>apteryx: yes, I used `ssh foo guile -c bar` quite heavily during the initial setup ;) <mbakke>If it's a dedicated user I'd recommend unsetting PATH and everything and build the shell setup "from scratch" using Guix only. <apteryx>mbakke: strange. I'll have to test later, I don't have access to the machine now. I was under the impression the shell was not a login shell (otherwise .bashrc should be sourced if IIRC) <efraim>what's the right way to remove a service from %desktop-services? I was hoping there'd be a way similar to removing phases from a build system, like (modify-services %desktop-services (delete '(ntp-service)) ...) <g_bor>efraim: it is simply a list, you can use delete on that. I would do it like we remove an input in an inherited package. Does that make sense? <efraim>xorg-modules are a list, %desktop-services is actually cons* <efraim>sometimes I don't remember the specific bits about the differences between cons* and list <roptat>cons* is a procedure that takes elements and a list, and returns a list <efraim>ok, so '(modify-services (delete "(ntp-service)" %desktop-services)' worked, I can work with that and fold to create an abreviated list to work with <efraim>interesting, it doesn't like fold <efraim>pretend I didn't say anthing, forgot to pass fold a list <civodul>was it this easy to obtain relocatable binaries? :-) <bavier`>civodul: I see your openmpi update patches, thanks for the work <bavier`>it's too bad we have to set the plm_rsh_agent variable in so many places <bzp>Hello everyone, is my configuration ok? <bavier`>civodul: could we maybe append (which "cat") to the end of the default value in the openmpi package? <catonano>bavier`: I seew an "awesome" among the services. I understand thhat awesome is a package, not a service <bzp>How do I raise the ssh server service? <bzp>awesome where do I declare it? <catonano>also I'm not sure that %deskktop-services and %base-services should be together <bzp>can you share your settings to read them and adjust it, please <civodul>i agree that setting that variable everywhere is ugly, but i couldn't think of a better way <civodul>in particular, i think it's good that the default is "ssh" and not "cat" in a real usage context <bavier`>civodul: the variable is path-like, the default iirc is ssh:rsh, and we should be able to set the default to something like ssh:rsh:/path/to/cat <bavier`>but I have some other priorities right now <catonano>bzp: you only need to add awesome among the packages <catonano>bzp: and openssh-service among the services <bzp>thank you very much :D <civodul>bavier`: sure, let me know if you have other ideas when you have time <roptat>bzp: don't close a parenthesis after openssh-service-type <roptat>close one more after openssh-configuration ***sahithi-ihtihas_ is now known as sahithi-ihtihas
<bzp>is it necessary to do 'guix pull' to the paceser update everything? <oleo>you shall invoke guix pull from time to time, once after every boot or if you think there'd be new code to get.... <bzp>excuse use translator some words, do not translate them correctly. <bzp>'giix pull' must launch in root or in user? <oleo>or at least user with root privileges <oleo>i only used it as root till now <vagrantc>"guix pull" is run separately for each user <vagrantc>although i prefer to only run it as a user, and use "sudo -E guix pull" when i need to do something as root <vagrantc>that way i only have to run guix pull once :) <vagrantc>i only run "guix pull" as the user, and when doing <vagrantc>"guix system reconfigure ..." and such i use "sudo -E guix system ..." <oleo>is reconfigure needed after pull ? <vagrantc>if you want the new system packages installed, yes. <bzp>the openssh server file to configure where it is hosted in guix? <oleo>allright that means i have todo a reconfigure next boot <oleo>hopefully nothing is lost <vagrantc>by design, guix doesn't loose anything, even old versions of installed software <vagrantc>you should always be able to revert to a previous configuration <oleo>i just installed it in a vm <bzp>Why is not the "ranger" program available in guixsd? <oleo>did the pull successfully and the a halt <oleo>didn't use the vm again since then, i think that was yesterday or so <vagrantc>bzp: maybe nobody has packaged it, maybe licensing conflicts. don't know about "ranger" <g_bor>bzp: you might be referring to the software packaged as r-ranger? <g_bor> a fast implementation of Random Forests <bzp>It is a very good program for the terminal, please add it to guix <civodul>bzp: the way it works is that users provide a patch adding the package of their choice <vagrantc>efraim, civodul: were either of you running guixsd on pine64? <efraim>i'm working on it, I have to copy my latest attempt to my sdcard <vagrantc>efraim: ah, i have some patches for u-boot installation <efraim>i'm also working on getting aarch64 VMs to work <vagrantc>efraim: haven't been able to test yet, as "guix pull" is taking it's time ... <vagrantc>and also submitted a patch for linux-libre on aarch64-linux <antilope>or how can the request be made to add ranger? <efraim>i was using debian's kernel, was waiting until I got it fully working to send a patch for that one :) <civodul>vagrantc: nope, i haven't tried GuixSD on ARM yet! <civodul>i'm willing to try on my Olimex A20 one of these days <vagrantc>efraim: heh. i went the other way and built linux-libre and ran it on Debian :) <vagrantc>or rather, built linux-libre on guix and ran it on a debian system ... <antilope>vagrantc: what does it mean that is available in guixsd? <efraim>Well, I mean I used Debian's kernel config with the linux-libre source <vagrantc>antilope: you can install ranger with guix, and guixsd is an operating system which uses guix as it's package manager. <vagrantc>antilope: presuming it's the same "ranger" that you're talking about. <antilope>is not ranger, also is not qutebrowser :( <bavier`>antilope: I'm not sure what you mean by "is not ranger" <bavier`>antilope: the "ranger" package was added to Guix more recently, so if you're exploring the 0.14 release you may not see it. <vagrantcish>apparently cross-building whole system images isn't supported. hrm. <efraim>still having trouble getting `guix system disk-image pine64.scm' to build, qemu is giving me a hard time, I might just splat the /gnu/store/...-system onto the sd card and flash the u-boot <vagrantcish>so far, i've had the most success with installing debian, doing a guix binary installation, and doing guix system init ... <efraim>we'll need qemu eventually to produce disk images, for now i'm going with guix system init <bavier`>vagrantcish: I've had success with the binfmt_misc service to avoid cross-building <bavier`>I haven't tried building a system image with it yet <bavier`>but that might be what efraim's talking about <efraim>i'm building on my firefly and trying to deploy to the pine64, so it's all native building <vagrantcish>i guess i could just copy efraim and try installing on the firefly-rk3399 first :) <efraim>my firefly is guix on vendor's ubuntu <g_bor>I just did a guix pull, and I get an error running guix package -s anything. I complains, that something is wrong in texinfo.scm. <catonano>g_bor: I didn't guix pulled recently :-/ <oleo>ok i did a guix system reconfigure now <oleo>it's proceeding with package updates <oleo>i just had a minor flaw in my (filesystems.... definitions <oleo>it lacked a (title 'label) field after the (device ..) field <ryanwatkins>Or could somebody guide me through it if possible. The wifi on my guixsd laptop is horrible and I'd like to use this if possible <jonsger>ryanwatkins: if it's free software, yes <castilma>mbakke: do you use zathura? or did you just package it? <ryanwatkins>Also, is there something I can install to have nice fonts in emacs / sane theming? <castilma>i installed zathura and it doesn't open pdfs: error: could not open plugin directory: /gnu/store/sxh9zdlfkdw9nbyqi56jk90aqvg065n6-zathura-0.3.8/lib/zathura <castilma>error: Unknown file type: 'application/pdf' <thomassgn>castilma: You need the zathura-plugins packages... <civodul>roptat: do you know if user namespaces are typically enabled on Android? :-) <castilma>thomassgn: thx. can zathura do anything without additional packages? <thomassgn>castilma: I know it's a bit strange, but I haven't looked into why, or if it should be done it differently. Not sure. I guess you can open it without an argument and play around <thomassgn>it uses vimlike bindings, so you can get at commands using : <ryanwatkins>civodul: so I have my package definition, how I eval this? <thomassgn>ryanwatkins: put it in your $GUIX_PACKAGE_PATH and run 'guix build <name of package>' <castilma>another strange thing. i have lilypond installed. (store/jhm...) guix size tells me: guix size: error: no available substitute information for '/gnu/store/6zyrglcmk8l4xpwvg6hgq1al81d7fr1w-lilypond-2.19.80' <thomassgn>git-fetch is in '#:use-module (guix git-download)' <thomassgn>antilope: and choose one of %base-services and %desktop-services. <ryanwatkins>thomassgn: for some reason, it can't see my package name <thomassgn>ryanwatkins: filename and the name in define-module need to be the same. Then what does running 'echo $GUIX_PACKAGE_PATH' give you? <ryanwatkins>thomassgn: nvm, I got it. I forgot to prefix (define-module with ryan guix packages ...) <ryanwatkins>thomassgn: but now it's saying i am using git-fetch wrong <thomassgn>Guix runs the linux-libre, I.e. deblobbed kernel. So a lot of half-free/nonfree-but-pretending-to-be-free drivers/hardware does not work. I found my current wificard by looking at the chipsets of the RYF devices and was lucky to find one in a shop here. But it was the last of it's kind there. <civodul>castilma: can you compare that file name that 'guix size' shows with the output of 'guix build lilypond --no-grafts'? <thomassgn>ryanwatkins: don't know. I'm not familiar with the chipsets of this driver. But check them against h-node or similar, if they work with a deblobbed kernel they're good. (trisquel and several other distros run deblobbed. Debian and ubuntu does not) <ryanwatkins>thomassgn: ahh. Well, the repo did primarily mention debian/ubuntu I guess <ryanwatkins>thomassgn: I am not very familiar with this sort of thing <thomassgn>the git-fetch needs a commit in addition to the url. So something like (git-reference (url "git-url.com/repo") (commit "full-hash-of-commit")) <ryanwatkins>thomassgn: yep I just tried it but it seems the thing doesn't have a ./configure step <ryanwatkins>thomassgn: is there a way I can skip that step and just do make, make install? <thomassgn>ryanwatkins: none of us are, I think all of us are equally angry that we have to jump through hoops to be able to control our devices. We have the h-node and some other resources, but they're not _yet_ good enough to be easy <thomassgn>should be... I've seen it done. try grepping for 'phase' in the guix packages (I usually keep the repo around for this and other things. Will check also <vagrantc>hrm. pine64+ is not managing to pull off even a "guix pull" <thomassgn>ryanwatkins: found it. (arguments `(#:phases (modify-phases %standard-phases (delete 'configure)))) <thomassgn>I didn't catch earlier, do you have a card this driver supports? <ryanwatkins>thomassgn: yes I do, I just bought it and thought it would work because I am a noob.. :) <thomassgn>ah, no worries. do you have what you need to change it if it doesn't? <ryanwatkins>thomassgn: na. Basically this acer laptop has terrible wifi and I wanted to fix it but I guess it'll be hard to find something like an adapter + work on guix? <pkill9>how do i refer to all the package inputs (excluding native-inputs) as a list of strings that are store-paths for the inputs? <thomassgn>well, it can be, but doesn't have to be. I'm very happy with the adapter I have now. the wifi on my laptop does not run with deblobbed/linux-libre. <mbakke>castilma: I use Zathura and have a pull request upstream for the Meson switch (but they've been waiting on me for a while now..). <ryanwatkins>thomassgn: how does it run then? via standard kernel? I guess it is not guixsd but maybe debian/ubuntu + guix? <thomassgn>depends a bit where in the world you are, what kind of stores you have access to and so on. It's much easier to find what you need if you can pick up the box and look at it. My adapter runs on linux-libre on guixsd. <mbakke>Basically there are two (IIRC) different chipsets that work with Linux-Libre, but they come in many different adapters. <ryanwatkins>mbakke:cool. I will take a look. How easy is it to install linux-libre /how do I check if I have this? :) <mbakke>It's also possible to add custom firmware to your system configuration, but unfortunately then you also need vanilla Linux kernel due to a bug. <mbakke>ryanwatkins: Linux-Libre is the default kernel in GuixSD. Unless you changed it, that's what you have. <ryanwatkins>mbakke: so then I should really grab one of those mentioned in h-node? How easy are they to obtain? <thomassgn>oh yea. My adapter is a tp-link TL-WN722N V1; The thing to be aware of is that chipsets often change with different versions of the same "device". So in my case a TL-WN722N V2 wouldn't work. <mbakke>ryanwatkins: If you can afford a new wifi adapter, I'd recommend one that works "out of the box". With luck your local electronics shop will have a card with the right chipset (you can check it on h-node). <vagrantc>there are also online sites that specifically host blob-free wifi adapters <vagrantc>specifically sell blob-free wifi adapters <mbakke>Ah, yes, maybe Minifree or ThinkPenguin. <vagrantc>they typically charge a bit more, but they pretty much guarantee that it'll be the right chipset <lyr3>hey what packages should I install to startx work <lyr3>so far I installed xinit xauth <mbakke>lyr3: What is the error message? Are you on GuixSD? <lyr3>dont know which xorg to boot a wm through tt5 <lyr3>probably its lacking some package <mbakke>Hmm I don't know which (if any) package provides "startx". <lyr3>in debian and gentoo I needed to install xorg-apps <ryanwatkins>mbakke: thomassgn: thanks alot for your help guys. Not all is lost because this adapter works with my macbook but yes I'll see If I can find an adapter from h-node :) <mbakke>lyr3: Oh, that looks like a bug. "xinit" should probably use the absolute path of <xorg-server>/bin/X, not itself. <lyr3>ryanwatkins:sorry for interrupting you <mbakke>ryanwatkins: Excellent, glad to be of service. If all else fails you can find GuixSD configurations using custom firmware on the interwebs :-) <thomassgn>ryanwatkins: what I did was to go to a few of the local shops and look at what they have. Then I checked h-node for those brands/product-lines. n the end I also chacked one of the RYF shops and saw they were listing the original product numbers on some of their items. I then cross referenced and wrote a list of the numbers I was sure about and then went to the shops and rummaged through their boxes til I found <lyr3>mbakke: how do I fix that? <mbakke>lyr3: You'd have to edit the xinit package definition. <civodul>ryanwatkins: BTW, s/guys/people/ please :-) <mbakke>I casually browsed the xinit source code trying to find the "/bin/X" invocation. "startx.cpp. <lyr3>its seems that I should install xinit and xorg as sudo <mbakke>lyr3: I don't think using sudo will help here, since it complains that it can't find the "X" command. You could try installing "xorg-server" to your profile and see if that helps (then it will be added to PATH, at least). <mbakke>Also, it should be possible to run X11 rootless nowadays, but haven't tried it (in ages..). <lyr3>oh boy I have a lot to learn haha <lyr3>Should I use sudo guix package -i? <lyr3>oh install universal packages through reconfigure xxx.scm? <lyr3>yep, I did run X11 with user <pkill9> yeah use reconfigure for global <pkill9>root has it's own guix profile as well <civodul>i always had the feeling that Flapak/Snap were created to distribute proprietary software; well, now the home page makes that very clear: https://flatpak.org/ <mbakke>lyr3: To get started it's probably easier to use a display manager such as "slim-service" (in %desktop-services) or "sddm-service" to launch the X11 session. <mbakke>But we'll be happy to guide you through fixing "startx"! ;-) <lyr3>Is it ok I add Nix to GuixSD? Are they aims to be as non-proprietary as possible <lyr3>mbakke:slim aint that login manager default of GuixSD? I want to get rid of that! haha <lyr3>I am tired...I will just install i3 with an early config of it I had back there... <pkill9>i used the install script on their website front page though <mbakke>lyr3: Oh, right! Well looks like "startx" needs some work, but let's try to fix it :-) <pkill9>there is a nix package in the guix repo, but it doens't build <pkill9>atleast it didn't last time i tried it <lyr3>pkill9: there is some interesting packages that are lacking on guix as nodejs, ripgrep, npm, autocutsel <pkill9>yeah, i have nix for a few packages that aren't in guix repo, i try to avoid it though as it's one more thing to manage <lyr3>any of you guys tried guile-wm? <OriansJ>anyone else using ranger? trying to get w3mimgdisplay to be leveraged <lyr3>hey guys, how can I remove Dwm? neither sudo guix package -r dwm or guix package -r dwm works <lyr3>and now when I do guix package -u it issues: guix package: error: unsupported manifest format <mbakke>lyr3: Did you install it to the system profile perhaps (check your config.scm)? <lyr3>I did through config.scm <mbakke>lyr3: Then you need to edit it out and run `guix system reconfigure ...` again to remove it. <lyr3>I am unable to edit the /etc/config.scm <mbakke>lyr3: Why does sudo not work? I have chowned it to my user FWIW. <lyr3>So I need to remove dwm from config.scm then guix system reconfigure