The officially official Devuan Forum!

You are not logged in.

#1 Re: Installation » How do you install Guix package manager on Devuan? » 2019-09-10 18:38:05

bgstack15 wrote:

Well, for the "stop" verb, you probably do want a "killall guix" so that all processes of guix are told to stop running. Most system services implement the "status" verb with some sort of quick message saying the application is running and lists the pid number. Check some of the other files in /etc/init.d/ for examples. I confess I am coming from a systemd world myself so I always just copy-paste an existing init script and hack at it until it does what I want, so I don't have any of that knowledge in my head.

It looks like your socket ought to be writable by any user. Maybe guix itself has some mechanism to require root access, or else guix is malfunctioning in some other way?

Dare I say that perhaps you need to reboot to get guix to do something it needs to do, like get a hook in the running kernel? I know that's a very un-unixy thing to say, but I swear I couldn't get sssd to work without a reboot (or restarting dbus but that ended up causing problems)...

It looks like the daemon is actually running after the reboot, but I still get guix install: error: failed to connect to `/var/guix/daemon-socket/socket': Connection refused

I followed the instructions in the Guix installation manual step by step, but it seems like I have to do some more reasearch on this. Thanks to you anyway!

#2 Re: Installation » How do you install Guix package manager on Devuan? » 2019-09-10 17:36:51

bgstack15 wrote:

Please briefly read man killall(1). Basically, it will find all processes named "guix" and then try to kill them. I strongly suspect you don't want a "service guix-daemon status" to kill a running instance of the daemon!

I still don't get what purpose killall would serve in this script. Could you elaborate on what its purpose could be and if it is necessary at all for this usecase? Killing the instance of the daemon is seemingly what happens when I check the status.

bgstack15 wrote:

About the socket permissions, you also have to have directory traverse permissions (proper term is execute or search, so +x) on all of the parent directories, back to root directory /. Were you running your guix install command as root user, or another user? As the other user, run this:

ls -ld / /var /var/guix /var/guix/daemon-socket /var/guix/daemon-socket/socket

drwxr-xr-x 23 root root 4096 Sep  9 19:45 /
drwxr-xr-x 12 root root 4096 Sep  9 19:45 /var
drwxr-xr-x  7 root root 4096 Sep 10 17:02 /var/guix
drwxr-xr-x  2 root root 4096 Sep 10 17:15 /var/guix/daemon-socket
srw-rw-rw-  1 root root    0 Sep 10 17:15 /var/guix/daemon-socket/socket

#3 Re: Installation » How do you install Guix package manager on Devuan? » 2019-09-10 17:16:45

bgstack15 wrote:

What are the permissions on the socket?

ls -al /var/guix/daemon-socket/socket

srw-rw-rw- 1 root root 0 Sep 10 17:15 /var/guix/daemon-socket/socket

bgstack15 wrote:

But back to the init script: Are you sure you want the "status" verb to run a killall guix? It might be better to have its own section even if it's just a stub.

   status)
      echo "status for guix is not implemented."
      ;;

I have no clue what the killall part does to be honest. Just copied the script that ToxicExMachina shared. Could you explain?

#4 Re: Desktop and Multimedia » How can I get the individual files/themes from ASCII desktop-base? » 2019-09-10 17:08:22

golinux wrote:

Actually ASCII theme is dark-purpy.  Jessie was purpy (a little lighter).  I have posted all the Devuan artwork here:
https://git.devuan.org/devuan-editors/d … r/graphics

Thank you for the link. Devuan ASCII with the XFCE desktop was the first distro I kept vanilla/with the default theme.

golinux wrote:

Have you seen the beowulf theme yet.  I switched it up a bit:
https://dev1galaxy.org/viewtopic.php?id=2646

I saw the screenshots and I like the minimalism, but I am pretty sure the red would distract me. The contrast is too aggressive if u ask me.

#5 Desktop and Multimedia » How can I get the individual files/themes from ASCII desktop-base? » 2019-09-10 15:35:26

fr0st
Replies: 4

I really like the current Purpy theme in ASCII XFCE and I would like to save individual files like the theme, icons and  wallpapers. How do I get those so I can use them in Beowulf and other future releases?

#6 Re: Installation » How do you install Guix package manager on Devuan? » 2019-09-10 15:19:27

Geoff 42 wrote:

I am not an expert in this, but it appears that the case statement. in the script is un-terminated. I think that you may need to add an extra line with :-

esac

Geoff

After adding the extra line I can enable the service finally, but it doesn't seem to run when I check services.

root@devuan:~# service guix-daemon status
[....] Killing GNU Guix daemon...Terminated

When I try to install a package via Guix it returns: "guix install: error: failed to connect to `/var/guix/daemon-socket/socket': Connection refused"

#7 Re: Installation » How do you install Guix package manager on Devuan? » 2019-09-09 17:26:33

Thank you for sharing!

edit: ran into a problem enabling the script

ToxicExMachina wrote:

There is simple sysv startup script i use to run Guix:

/etc/init.d/guix-daemon

#!/bin/sh
### BEGIN INIT INFO
# Provides:          guix-daemon
# Required-Start:    mountdevsubfs
# Required-Stop:
# Should-Start:
# Should-Stop:
# X-Start-Before:
# X-Stop-After:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
### END INIT INFO

SCRIPTNAME=/etc/init.d/guix-daemon

. /lib/lsb/init-functions

[ -x /root/.config/guix/current/bin/guix-daemon ] || exit 0

do_start()
{
        # /root/.config/guix/current/bin/guix-daemon  --build-users-group=guixbuild 2>/dev/null || return 2
        /root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild 2> /var/log/guix.log &
}

case "$1" in
  start)
        log_action_begin_msg "Setting up GNU Guix daemon"
        do_start
        case "$?" in
                0|1) log_action_end_msg 0 ;;
                2) log_action_end_msg 1 ;;
        esac
        ;;
  stop|restart|force-reload|status)
        log_action_begin_msg "Killing GNU Guix daemon"
        killall guix-daemon
        ;;
  *)
        echo "Usage: $SCRIPTNAME start" >&2
        exit 3
        ;;

Don't forget to enable that script (update-rc.d).

I created the script, made it executable and when I try to enable it I get /etc/init.d/guix-daemon: Syntax error: end of file unexpected (expecting ")")

#8 Re: Installation » How do you install Guix package manager on Devuan? » 2019-09-09 10:26:31

ToxicExMachina wrote:

I have installed GNU Guix on Devuan successfully. Installation is completely same for any distro (RTFM: https://guix.gnu.org/manual/en/html_nod … ation.html) but you'll need to add sysv initscript manually since GNU Guix support only GNU Shepherd, upstart and systemd out of box. If you don't want to write your own initscript i can post one here from my working Devuan system. It also works with OpenRC.

Instructions seem straight forward, but I wonder why sysv isn't supported out of the box. Ur initscript would help me a lot actually, I am fairly new.

#9 Installation » How do you install Guix package manager on Devuan? » 2019-09-06 17:48:17

fr0st
Replies: 12

I read that using Guix package manager on other Linux distros is a thing and I would like to use it for installing and updating Icecat on Devuan.

Is anyone here using it on Devuan and can explain in detail how they managed to install it?

Board footer

Forum Software