Re: [DNG] GNU Shepherd user services

2020-07-03 Thread Hendrik Boom
On Fri, Jul 03, 2020 at 02:02:55PM +0200, al3xu5 / dotcommon wrote:
> 
> Hello everyone
> 
> I came across recently on GNU Shepherd user services:
> 
> `The GNU Daemon Shepherd or GNU Shepherd, formerly known as GNU dmd, is a
> service manager that looks after the herd of system services. It provides a
> replacement for the service-managing capabilities of SysV-init (or any other
> init) with a both powerful and beautiful dependency-based system with a
> convenient interface.` [1]
> 
> As an initial introduction, I took a look, among other things, at the pages at
> the links that I report below.
> 
> Also to help me better understand what it is (my knowledge of service-managing
> is at user level, and therefore not very thorough), I would be interested in
> reading your comments and considerations.
> 
> Thanks in advance
> Best regards

Very interesting.

I've always had a soft spot for Lisp, and especially its offspring 
Scheme.  And this uses Guile, an implementation of Scheme. 

I wonder if GNU Shepherd needs to run as PID 1?
Or can it run as a service manager under another init system?
Or even under another service manager?

-- hendrik

> 
> 
> Refs:
> 
> [1] https://www.gnu.org/software/shepherd/
> 
> [2] https://guix.gnu.org/blog/2020/gnu-shepherd-user-services/
> 
> [3] https://www.gnu.org/software/shepherd/manual/shepherd.html
> 
> [4] https://savannah.gnu.org/projects/shepherd/
> 
> [5] https://lists.gnu.org/archive/html/guix-devel/2013-11/msg00065.html
> 
> 
> 
> -- 
> al3xu5
> 
> Say NO to copyright, patents, trademarks and any industrial design 
> restrictions.
> 
> Public GPG/PGP key
> ID:   4096 bit RSA key F94CFE23
> Fingerprint:  59C6 9DC7 CD4B CF2F A190  E3DE 69C5 977B F94C FE23



> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] terminal paste failure

2020-07-03 Thread Hendrik Boom
On Fri, Jul 03, 2020 at 09:10:50AM -0400, Haines Brown wrote:
> On Thu, Jul 02, 2020 at 11:41:18PM +0200, richard lucassen via Dng wrote:
> > On Thu, 2 Jul 2020 10:02:05 -0400
> > Haines Brown  wrote:
> > 
> > > This morning I find that the wiress mouse can cut and paste between 
> > > terminals or nano sessions even with the wired mouse disconnected. 
> > > Whether the problem is permanently in the past remains to be seen.
> > 
> > Try "reset" in the terminal, sometimes this helps. See "man reset" for
> > more info.
> 
> Richard, thanks for the suggestion. I had never encountered tset or 
> reset. Don't need it now because copy/paste continues to work as it 
> should. 

Now we have a workaround if it should happen again.
But the workaround doesn't work if you're not running in the shell.
And there remains the question of why does this happen in the first place.

-- hendrik

> 
> Haines Brown
> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] apt-get vs apt

2020-07-03 Thread Florian Zieboll
On July 3, 2020 9:53:56 AM GMT+02:00, Alessandro Vesely via Dng 
 wrote:
> Hi,
> 
> TL;DR: apt fails where apt-get works.  Why?

I assume that using 'apt update && apt upgrade' would have worked fine, too. 
From the apt manpage:


| SCRIPT USAGE AND DIFFERENCES FROM OTHER APT TOOLS
|The apt(8) commandline is designed as an end-user
|tool and it may change behavior between versions.
|While it tries not to break backward compatibility
|this is not guaranteed either if a change seems
|beneficial for interactive use.
| 
|All features of apt(8) are available in dedicated
|APT tools like apt-get(8) and apt-cache(8) as
|well.  apt(8) just changes the default value of
|some options (see apt.conf(5) and specifically the
|Binary scope). So you should prefer using these
|commands (potentially with some additional options
|enabled) in your scripts as they keep backward
|compatibility as much as possible.

Libre Grüße,
Florian


-- 

[message sent otg]

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] terminal paste failure

2020-07-03 Thread Haines Brown
On Thu, Jul 02, 2020 at 11:41:18PM +0200, richard lucassen via Dng wrote:
> On Thu, 2 Jul 2020 10:02:05 -0400
> Haines Brown  wrote:
> 
> > This morning I find that the wiress mouse can cut and paste between 
> > terminals or nano sessions even with the wired mouse disconnected. 
> > Whether the problem is permanently in the past remains to be seen.
> 
> Try "reset" in the terminal, sometimes this helps. See "man reset" for
> more info.

Richard, thanks for the suggestion. I had never encountered tset or 
reset. Don't need it now because copy/paste continues to work as it 
should. 

Haines Brown
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] GNU Shepherd user services

2020-07-03 Thread al3xu5 / dotcommon

Hello everyone

I came across recently on GNU Shepherd user services:

`The GNU Daemon Shepherd or GNU Shepherd, formerly known as GNU dmd, is a
service manager that looks after the herd of system services. It provides a
replacement for the service-managing capabilities of SysV-init (or any other
init) with a both powerful and beautiful dependency-based system with a
convenient interface.` [1]

As an initial introduction, I took a look, among other things, at the pages at
the links that I report below.

Also to help me better understand what it is (my knowledge of service-managing
is at user level, and therefore not very thorough), I would be interested in
reading your comments and considerations.

Thanks in advance
Best regards


Refs:

[1] https://www.gnu.org/software/shepherd/

[2] https://guix.gnu.org/blog/2020/gnu-shepherd-user-services/

[3] https://www.gnu.org/software/shepherd/manual/shepherd.html

[4] https://savannah.gnu.org/projects/shepherd/

[5] https://lists.gnu.org/archive/html/guix-devel/2013-11/msg00065.html



-- 
al3xu5

Say NO to copyright, patents, trademarks and any industrial design restrictions.

Public GPG/PGP key
ID:   4096 bit RSA key F94CFE23
Fingerprint:  59C6 9DC7 CD4B CF2F A190  E3DE 69C5 977B F94C FE23


pgpXz1VlOshUG.pgp
Description: Firma digitale OpenPGP
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] apt-get vs apt

2020-07-03 Thread Alessandro Vesely via Dng
Hi,

TL;DR: apt fails where apt-get works.  Why?

I just updated ASCII using apt:

root@pcale:~# apt update
Get:1 http://deb.devuan.org/merged ascii InRelease [25.6 kB]
Get:2 http://deb.devuan.org/merged ascii-updates InRelease [25.6 kB]
Get:3 http://deb.devuan.org/merged ascii-security InRelease [25.6 kB]
Get:4 http://deb.devuan.org/merged ascii-backports InRelease [25.6 kB]
Get:5 http://deb.devuan.org/merged ascii-security/main Sources [192 kB]
Get:6 http://deb.devuan.org/merged ascii-security/main i386 Packages [492 kB]
Fetched 787 kB in 1s (762 kB/s) 
  
Reading package lists... Done
Building dependency tree   
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@pcale:~# 
root@pcale:~# 
root@pcale:~# 
root@pcale:~# apt upgrade
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libargon2-0 libqrencode3
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
  imagemagick-6-common imagemagick-6-doc imagemagick-common imagemagick-doc 
libimage-magick-perl perlmagick
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,761 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Err:1 http://deb.devuan.org/merged ascii-security/main i386 
libimage-magick-perl all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:2 http://deb.devuan.org/merged ascii-security/main i386 perlmagick all 
8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:3 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-6-doc 
all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:4 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-doc all 
8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:5 http://deb.devuan.org/merged ascii-security/main i386 
imagemagick-6-common all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
Err:6 http://deb.devuan.org/merged ascii-security/main i386 imagemagick-common 
all 8:6.9.7.4+dfsg-11+deb9u8
  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch 
http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/libimage-magick-perl_6.9.7.4+dfsg-11+deb9u8_all.deb
  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch 
http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/perlmagick_6.9.7.4+dfsg-11+deb9u8_all.deb
  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch 
http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/imagemagick-6-doc_6.9.7.4+dfsg-11+deb9u8_all.deb
  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch 
http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/imagemagick-doc_6.9.7.4+dfsg-11+deb9u8_all.deb
  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch 
http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/imagemagick-6-common_6.9.7.4+dfsg-11+deb9u8_all.deb
  404  Not Found [IP: 130.225.254.116 80]
E: Failed to fetch 
http://mirrors.dotsrc.org/debian-security/pool/updates/main/i/imagemagick/imagemagick-common_6.9.7.4+dfsg-11+deb9u8_all.deb
  404  Not Found [IP: 130.225.254.116 80]
E: Unable to fetch some archives, maybe run apt-get update or try with 
--fix-missing?


I repeated it a second time, same result.  At that point I noticed the last 
line says "maybe run *apt-get* update".  Using apt everything worked (well, 
almost) and the packages were found; see below.

I notice that 
https://www.devuan.org/os/documentation/dev1fanboy/en/upgrade-to-beowulf always 
uses apt-get.

I used to always use apt-get myself.  One or two years ago I found apt was 
meant to be an "easier" interface and, since it's shorter, started using that.

I guess I'd switch back to using apt-get, shouldn't I?

Best
Ale
-- 

root@pcale:~# apt-get update
Hit:1 http://deb.devuan.org/merged ascii InRelease
Hit:2 http://deb.devuan.org/merged ascii-updates InRelease
Hit:3 http://deb.devuan.org/merged ascii-security InRelease
Hit:4 http://deb.devuan.org/merged ascii-backports InRelease
Reading package lists... 1%  

Reading package lists... Done
root@pcale:~# 
root@pcale:~# 
root@pcale:~# apt-get upgrade
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libargon2-0 libqrencode3
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
  imagemagick-6-common imagemagick-6-doc imagemagick-common imagemagick-doc 
libimage-magick-perl perlmagick
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,761 kB of archives.