Re: Starting Sway a Wayland window manager
Bone Baboon writes: > Joshua Branson writes: >> My .bash_profile is here: >> >> #+BEGIN_SRC sh >> # Honor per-interactive-shell startup file >> if [ -f ~/.bashrc ]; then . ~/.bashrc; fi >> >> # shepherd >> >> if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then >> export MOZ_ENABLE_WAYLAND=1 >> export GUIX_PACKAGE_PATH=/home/joshua/prog/gnu/guix/guix-packages/ >> >> XDG_DATA_DIRS=/var/lib/flatpak/exports/share:/home/joshua/.local/share/flatpak/exports/share:$XDG_DATA_DIRS >> # this may fix a bug that I have with termite confusing backspace as >> space in guix environment >> # export TERM=linux >> shepherd -c /home/joshua/.config/shepherd/init.scm & >> exec dbus-run-session sway >> fi >> #+END_SRC > > What package includes `dbus-run-session`? I do not have it installed on > my system? > I think it's dbus? I honestly don't remember... -- Joshua Branson (joshuaBPMan in #guix) Sent from Emacs and Gnus https://gnucode.me https://video.hardlimit.com/accounts/joshua_branson/video-channels https://propernaming.org "You can have whatever you want, as long as you help enough other people get what they want." - Zig Ziglar
Re: Starting Sway a Wayland window manager
Bone Baboon writes: > Vagrant Cascadian writes: > >> Is the elogind service running? I *think* that is what I needed to get >> sway working from the console... > > I have added the `elogind` service. Here is the services section of my > systems configuration: > > ``` > (services > (append >(list > (service elogind-service-type) > (service accountsservice-service-type) > (service inputattach-service-type) > x11-socket-directory-service > polkit-wheel-service) >%base-services)) > ``` Change %base-services to %desktop-services. That will probably fix it for you. > > When I run `sudo herd status` the output shows that `elogind` is > started. > > When I run `sway` on virtual terminal 1 sway does not start and I get > this output: > > ``` > localhost dbus-daemon[380]: [system] Rejected send message, 2 matched rules; > type="method_call", sender=":1.24" (uid=1000 pid=26112 comm="sway ") > interface="org.freedesktop.login1.Session" member="SetType" error > name="(unset)" requested_reply="0" destination="org.freedesktop.login1" > (uid=0 pid=381 comm="/gnu/store/jdk3r1gs4d36n3aj9fscsvwwc9prnrzp-elogin") > [backend/backend.c:303] Failed to open any DRM device > [sway/server.c:49] Unable to create backend > ``` > > When I run `sudo sway` it outputs "XDG_RUNTIME_DIR is not set in the > environment. Aborting.". > -- Joshua Branson (joshuaBPMan in #guix) Sent from Emacs and Gnus https://gnucode.me https://video.hardlimit.com/accounts/joshua_branson/video-channels https://propernaming.org "You can have whatever you want, as long as you help enough other people get what they want." - Zig Ziglar
Re: Starting Sway a Wayland window manager
Joshua Branson writes: > My .bash_profile is here: > > #+BEGIN_SRC sh > # Honor per-interactive-shell startup file > if [ -f ~/.bashrc ]; then . ~/.bashrc; fi > > # shepherd > > if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then > export MOZ_ENABLE_WAYLAND=1 > export GUIX_PACKAGE_PATH=/home/joshua/prog/gnu/guix/guix-packages/ > > XDG_DATA_DIRS=/var/lib/flatpak/exports/share:/home/joshua/.local/share/flatpak/exports/share:$XDG_DATA_DIRS > # this may fix a bug that I have with termite confusing backspace as > space in guix environment > # export TERM=linux > shepherd -c /home/joshua/.config/shepherd/init.scm & > exec dbus-run-session sway > fi > #+END_SRC What package includes `dbus-run-session`? I do not have it installed on my system?
Re: Starting Sway a Wayland window manager
Vagrant Cascadian writes: > Is the elogind service running? I *think* that is what I needed to get > sway working from the console... I have added the `elogind` service. Here is the services section of my systems configuration: ``` (services (append (list (service elogind-service-type) (service accountsservice-service-type) (service inputattach-service-type) x11-socket-directory-service polkit-wheel-service) %base-services)) ``` When I run `sudo herd status` the output shows that `elogind` is started. When I run `sway` on virtual terminal 1 sway does not start and I get this output: ``` localhost dbus-daemon[380]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.24" (uid=1000 pid=26112 comm="sway ") interface="org.freedesktop.login1.Session" member="SetType" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=381 comm="/gnu/store/jdk3r1gs4d36n3aj9fscsvwwc9prnrzp-elogin") [backend/backend.c:303] Failed to open any DRM device [sway/server.c:49] Unable to create backend ``` When I run `sudo sway` it outputs "XDG_RUNTIME_DIR is not set in the environment. Aborting.".
Introducing Guix to HPC at my institution
Dear all, (I am reposting a question I asked on the guix-science list -- with a broader audience here I hope someone has an answer :) ) I am interested in introducing Guix to the HPC cluster at my institution, and it turns out they have user namespaces activated \o/. So I'm looking into getting things running as an unpriviliged user, to show other people how useful Guix can be (before approaching higher levels in the administration). Is it possible to install guix without being root? I tried a few things, based on the following notes: https://hpc.guix.info/blog/2017/09/reproducibility-and-root-privileges/ https://hpc.guix.info/blog/2017/10/using-guix-without-being-root/ http://issues.guix.gnu.org/34494 I am now following Guix's binary installation inside a user namespace. After decompressing the binary distribution of guix inside `~/local-guix`, my naïve next step was `unshare -mrf chroot ~/local-guix gnu/store/mmhimfwmmidf09jw1plw3aw1g1zn2nkh-bash-static-5.0.16/bin/bash`. Then after setting $GUIX_PROFILE and sourcing `/root/.config/guix/current`, running `guix` warns with: GC Warning: pthread_getattr_np or pthread_attr_getstack failed for main thread GC Warning: Couldn't read /proc/stat So my very limited knowledge of linux namespaces is hindering my next steps :). A few questions: 1. Should I do anything about the first warning? About the second warning: should I be binding `/proc` somehow? 2. Is it possible to create build users inside the user-namespaced chroot? 3. Last but not least: if I can create build users inside the chroot (question 2.), I suppose I can then run guix-daemon properly. How would I go about sharing this setup with other users on the cluster? Ideally I would like to have a non-priviliged build daemon that other users can call on. (Is there such a thing as kernel group namespaces?) Is this the right way to go for running guix without being root, or is there a better way? Thanks for any guidance you might provide! Best, Sébastien
guix pull errors
Hi, I'm getting tons of guix pull errors these days. They look like they are related with network issues because they disappear if I insist (many times) and they appear in different packages. They look like this: ``` guix/ui.scm:2164:12: In procedure run-guix-command: Bad Read-Header-Line header: # substitution of /gnu/store/c39c4jhgg1pq3sw083pcmp42gba05kr2-evince-3.36.5 failed ``` I'm finding them all the time. I think they are very cryptic... Maybe we can do something about that. Best, Ekaitz
Re: Start Xorg server using xinit manually
Bone Baboon writes: > Here is my operating-system declaration: > > I don't see anything out of the ordinary here. I don't use the nomodeset kernel-arguments setting though. Perhaps that's just needed with your hardware? > .Xauthority is an empty file. > > .Xdefaults has the contents: > ``` > XTerm*utf8: always > XTerm*metaSendsEscape: true > > ``` > .exwm that contains my EXWM configuration. Those all sound right to me. My .Xauthority contains a binary magic cookie. You could delete the file and let X generate it next time it starts up. Check your file permissions on all those files to make sure you have read access to them. > I do not know if the graphics card is supported by Guix? To me, it sounds like this is still the most likely culprit. Perhaps your graphics card just doesn't have corresponding drivers in the linux-libre kernel. For reference, here's my config.scm. It boots up directly into a graphical login prompt, and upon logging in, it runs emacs-exwm as my window manager. My exwm settings are in ~/.exwm, and my general emacs settings are in ~/.emacs.d/init.el. My ~/.xsession file is a symlink to my ~/.xinitrc file and ends with a call to exwm. ``` (use-modules ((guix gexp) #:select (plain-file file-append)) ((gnu system) #:select (operating-system %base-packages local-host-aliases)) ((gnu system nss) #:select (%mdns-host-lookup-nss)) ((gnu system shadow) #:select (user-account %base-user-accounts)) ((gnu system file-systems) #:select (file-system file-system-label %base-file-systems)) ((gnu bootloader) #:select (bootloader-configuration)) ((gnu bootloader grub) #:select (grub-bootloader)) ((gnu services)#:select (extra-special-file service)) ((gnu services databases) #:select (postgresql-service-type postgresql-configuration postgresql-config-file)) ((gnu services desktop)#:select (%desktop-services)) ((gnu packages base) #:select (coreutils)) ((gnu packages certs) #:select (nss-certs)) ((gnu packages databases) #:select (postgresql)) ((gnu packages geo)#:select (postgis))) (operating-system (host-name "euclid") (timezone "America/New_York") (locale "en_US.utf8") (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) (file-systems (cons* (file-system (device (file-system-label "my-root")) (mount-point "/") (type "ext4")) %base-file-systems)) (swap-devices '("/swapfile")) (users (cons* (user-account (name "gjohnson") (comment "Just Another Lisp Hacker") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video" "lp")) (home-directory "/home/gjohnson")) %base-user-accounts)) (packages (cons* nss-certs ; HTTPS access postgresql postgis ; psql, raster2pgsql, shp2pgsql, etc. %base-packages)) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with NetworkManager, and more. (services (cons* (extra-special-file "/usr/bin/env" (file-append coreutils "/bin/env")) (service postgresql-service-type (postgresql-configuration (postgresql postgresql) (extension-packages (list postgis)) (config-file (postgresql-config-file (hba-file (plain-file "pg_hba.conf" "CONTENTS ELIDED")) (extra-config '(("max_worker_processes" "12") ("max_parallel_workers" "40") ("max_parallel_maintenance_workers" "8") ("max_parallel_workers_per_gather" "4") ("parallel_leader_participation" "on"))) %desktop-services)) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss) (hosts-file (plain-file "hosts" (string-append (local-host-aliases host-name) "CONTENTS ELIDED"))) (sudoers-file (plain-file "sudoers" "CONTENTS ELIDED"))) ``` I actually have emacs and emacs-exwm in my package-manifest.scm file, which I use for installing all my user profile
Re: Starting Sway a Wayland window manager
Joshua Branson writes: I also just realized that sway started for me when I changed %base-services to %desktop-services. -- Joshua Branson (joshuaBPMan in #guix) Sent from Emacs and Gnus https://gnucode.me https://video.hardlimit.com/accounts/joshua_branson/video-channels https://propernaming.org "You can have whatever you want, as long as you help enough other people get what they want." - Zig Ziglar