Re: Can't configure guix, no guile-sqlite3
On 17.06.2018 22:24, Thorsten Wilms wrote: git clone https://git.savannah.gnu.org/git/guix.git cd guix *add package definition, commit right here, or maybe later* guix environment guix ./bootstrap ./configure --localstatedir=/var ./pre-inst-env guix package -i *new-package* configure fails with: checking whether Guile-Sqlite3 is available and recent enough... no Since there was no solution, I completely removed guix (in particlar, rm'ed the store and stuff below /var) and started again with the 0.15.0 binary tarball. On trying to bring everything in my manifest back, I got: --- guix package: error: build failed: some substitutes for the outputs of derivation `/gnu/store/wzb55yvxjyymzivya50nkjcyxnmysm3r-nss-certs-3.38.drv' failed (usually happens due to networking issues); try `--fallback' to build derivation from source --- OK, that happened last time, too, same solution: guix package --fallback -i nss-certs. Back to main concern: configure now (after several guix pull) fails with: --- configure: error: Package requirements (sqlite3 >= 3.6.19) were not met: No package 'sqlite3' found --- -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/
Re: [HOWTO] Start X server manually instead of using a login manager
On 23.07.2018 10:43, Divan Santana wrote: Alex Kost writes: Hello, People often ask how they can use startx/xinit on GuixSD. It is possible, although it is not as easy as on other distros. Hopefully, this tutorial will answer some questions on the subject. At first, a couple of points: - We will run X server with user privileges, so if something goes wrong, look at the X log, which is placed at "~/.local/share/xorg/Xorg.N.log" by default. - We will run "xinit", not "startx": the latter is just a wrapper that does some preparations and runs "xinit". (startx is a usual shell script with a usual script's behavior: it does not like that Guix violates Filesystem Hierarchy Standard, so it successfully fails to start). Now the steps you need to do to use "xinit": 1. Install xinit, X server and required modules to some guix profile, for example: guix package -i xinit xorg-server xf86-input-libinput xf86-video-fbdev xf86-video-nouveau 2. Make "~/.xinitrc" file. If you don't know what its content should be, just put "exec xterm" there, or even better read: https://wiki.archlinux.org/index.php/Xinit 3. Running "xinit" requires specifying multiple arguments, so you will probably make an auxiliary script to run it. This script will look like this: --8<---cut here---start->8--- #!/bin/sh DIR=$HOME/.guix-profile $DIR/bin/xinit -- $DIR/bin/Xorg :0 vt1 -keeptty \ -configdir $DIR/share/X11/xorg.conf.d \ -modulepath $DIR/lib/xorg/modules --8<---cut here---end--->8--- Note that using the current terminal ("vt1" in this case) and "-keeptty" is required, otherwise X server refuses to start without root privileges. For testing purposes, you may change the above arguments to ":1 vt2", switch to vt2 (Ctrl-Alt-F2) and run this script. 4. Finally (if the above script works), you can remove login manager from your os services (if you use %desktop-services): --8<---cut here---start->8--- (use-modules ;; ... (srfi srfi-1) ; for 'remove' (gnu services desktop) (gnu services xorg)) (operating-system ;; ... (services (remove (lambda (service) (eq? (service-kind service) slim-service-type)) %desktop-services))) --8<---cut here---end--->8--- To help others, a few other notes. To auto start x upon login one can do something like --8<---cut here---start->8--- (mingetty-service (mingetty-configuration (tty "tty1") (auto-login "ds"))) --8<---cut here---end--->8--- And this in you bashrc/zshrc. --8<---cut here---start->8--- if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then exec $HOME/bin/startx.sh fi --8<---cut here---end--->8--- Also I needed to set these in order for my icons to be detected again. Failing to do so, the icons aren't found and some apps crash like libreoffice. --8<---cut here---start->8--- export XDG_DATA_DIRS="/run/current-system/profile/share:$HOME/.guix-profile/share:/run/current-system/profile/share" export XDG_CONFIG_DIRS="$HOME/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg" export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" export XDG_DATA_HOME="$HOME/.local/share" --8<---cut here---end--->8--- Hi, I have an idea about this problem. How ever my understanding is very limited so take care to do additional research: I'm still strangely getting this error when my terminals (termite) launch since switching to this method: tput: unknown terminal "xterm-termite" Not sure why that is yet. There is a shell variable $TERM. Also there is a '/usr/share/terminfo/' directory with some definitions about the various terminals. If a description of terminal is missing from '/usr/share/terminfo/' it is possible to see this message from some command-line utilities. Start with searching the man page of 'tset', 'reset' and 'terminfo' commands. Best regards, Radoslav Petrov
guixsd system reconfigure errors
Hi Guix, A couple of errors I get upon a reconfigure: --8<---cut here---start->8--- adding group 'tty'... groupadd: GID '996' already exists --8<---cut here---end--->8--- --8<---cut here---start->8--- ~ ᐅ sudo grep tty /etc/passwd /etc/shadow /etc/group Password: ~ ᐅ sudo grep 996 /etc/passwd /etc/shadow /etc/group /etc/passwd:nobody:x:65534:996::/nonexistent:/gnu/store/1g9r9lk412srqwggv1wv33j4fby7jpg1-shadow-4.6/sbin/nologin /etc/passwd:ntpd:x:999:996:NTP daemon user:/var/empty:/gnu/store/1g9r9lk412srqwggv1wv33j4fby7jpg1-shadow-4.6/sbin/nologin /etc/passwd:geoclue:x:996:981:GeoClue daemon user:/var/empty:/run/current-system/profile/sbin/nologin /etc/group:nogroup:x:996: --8<---cut here---end--->8--- Not sure if the system got in a strange state as a result of me changing my first user accounts name. Perhaps. How can I fix the above? Secondly: --8<---cut here---start->8--- guix system: unloading service 'term-auto'... shepherd: Removing service 'term-auto'... shepherd: Done. guix system: loading new services: user-homes term-auto... shepherd: Evaluating user expression (register-services (primitive-load "/gnu/st?") #). shepherd: Service user-homes could not be started. shepherd: Service term-auto could not be started. --8<---cut here---end--->8--- The last two lines. Are these normal safe to ignore errors? Known bug or something specific to my system? Thanks, -- Divan
Re: Fish shell error: __fish_pwd in command substitution called on standard input
After a recent update things are back to normal... Not sure what happened. -- Pierre Neidhardt signature.asc Description: PGP signature
Re: [HOWTO] Start X server manually instead of using a login manager
Alex Kost writes: > Hello, > > People often ask how they can use startx/xinit on GuixSD. It is > possible, although it is not as easy as on other distros. Hopefully, > this tutorial will answer some questions on the subject. > > At first, a couple of points: > > - We will run X server with user privileges, so if something goes wrong, > look at the X log, which is placed at "~/.local/share/xorg/Xorg.N.log" > by default. > > - We will run "xinit", not "startx": the latter is just a wrapper that > does some preparations and runs "xinit". (startx is a usual shell > script with a usual script's behavior: it does not like that Guix > violates Filesystem Hierarchy Standard, so it successfully fails to > start). > > Now the steps you need to do to use "xinit": > > 1. Install xinit, X server and required modules to some guix profile, >for example: > > guix package -i xinit xorg-server xf86-input-libinput xf86-video-fbdev > xf86-video-nouveau > > 2. Make "~/.xinitrc" file. If you don't know what its content should >be, just put "exec xterm" there, or even better read: > > https://wiki.archlinux.org/index.php/Xinit > > 3. Running "xinit" requires specifying multiple arguments, so you will >probably make an auxiliary script to run it. This script will look >like this: > > --8<---cut here---start->8--- > #!/bin/sh > > DIR=$HOME/.guix-profile > > $DIR/bin/xinit -- $DIR/bin/Xorg :0 vt1 -keeptty \ >-configdir $DIR/share/X11/xorg.conf.d \ >-modulepath $DIR/lib/xorg/modules > --8<---cut here---end--->8--- > > Note that using the current terminal ("vt1" in this case) and > "-keeptty" is required, otherwise X server refuses to start without > root privileges. > > For testing purposes, you may change the above arguments to ":1 vt2", > switch to vt2 (Ctrl-Alt-F2) and run this script. > > 4. Finally (if the above script works), you can remove login manager >from your os services (if you use %desktop-services): > > --8<---cut here---start->8--- > (use-modules > ;; ... > (srfi srfi-1) ; for 'remove' > (gnu services desktop) > (gnu services xorg)) > > (operating-system > ;; ... > (services >(remove (lambda (service) > (eq? (service-kind service) slim-service-type)) >%desktop-services))) > --8<---cut here---end--->8--- To help others, a few other notes. To auto start x upon login one can do something like --8<---cut here---start->8--- (mingetty-service (mingetty-configuration (tty "tty1") (auto-login "ds"))) --8<---cut here---end--->8--- And this in you bashrc/zshrc. --8<---cut here---start->8--- if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then exec $HOME/bin/startx.sh fi --8<---cut here---end--->8--- Also I needed to set these in order for my icons to be detected again. Failing to do so, the icons aren't found and some apps crash like libreoffice. --8<---cut here---start->8--- export XDG_DATA_DIRS="/run/current-system/profile/share:$HOME/.guix-profile/share:/run/current-system/profile/share" export XDG_CONFIG_DIRS="$HOME/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg" export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" export XDG_DATA_HOME="$HOME/.local/share" --8<---cut here---end--->8--- I'm still strangely getting this error when my terminals (termite) launch since switching to this method: tput: unknown terminal "xterm-termite" Not sure why that is yet.