Re: [DNG] Danger: Debian POSIX hostility
Anno domini 2020 Wed, 16 Sep 22:15:42 + aitor scripsit: > Hi, > > On 16/9/20 20:30, Steve Litt wrote: > > On Wed, 16 Sep 2020 09:53:14 +0200 > > "Dr. Nikolaus Klepp" wrote: > > > >> Anno domini 2020 Wed, 16 Sep 02:11:57 -0400 > >> Steve Litt scripsit: > >>> In addition, I don't see why Unix design isn't a good fit for modern > >>> demands. Edward and Aitor have already made > >>> do-one-thing-and-do-it-well graphical automounters that, as far as > >>> I know, depend on neither systemd nor dbus. I once posted, on this > >>> list, a thumb drive plugin detector/mounter, and somebody else on > >>> the list improved on it. > >> Sorry, I must have missed that. Do you have a link to the software? > >> > >> nik > > > > No, sorry. Best way to find it is to search posts from Steve Litt > > body-containing the string "inotify". Once you've found the right one, > > look at that tree to find the improvement by the other DNG inhabitant, > > whose name I've forgotten. > > > > Please do me a favor if you find it, and repost it here. I apparently > > have lost the software (probably a small shellscript). > > > > SteveT > > Amounter, maybe? > > https://github.com/stevelitt/amounter > > Aitor. > > > Steves hint to "inotify" made it. To sum it up, it's just "inotifywait --monitor /dev| ..." - didn't search the archives, it's so simple :) Nik -- Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ... ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
On 17-09-2020 09:02, Dr. Nikolaus Klepp wrote: > Anno domini 2020 Wed, 16 Sep 22:15:42 + > aitor scripsit: >> Hi, >> >> On 16/9/20 20:30, Steve Litt wrote: >>> On Wed, 16 Sep 2020 09:53:14 +0200 >>> "Dr. Nikolaus Klepp" wrote: >>> Anno domini 2020 Wed, 16 Sep 02:11:57 -0400 Steve Litt scripsit: > In addition, I don't see why Unix design isn't a good fit for modern > demands. Edward and Aitor have already made > do-one-thing-and-do-it-well graphical automounters that, as far as > I know, depend on neither systemd nor dbus. I once posted, on this > list, a thumb drive plugin detector/mounter, and somebody else on > the list improved on it. Sorry, I must have missed that. Do you have a link to the software? nik >>> >>> No, sorry. Best way to find it is to search posts from Steve Litt >>> body-containing the string "inotify". Once you've found the right one, >>> look at that tree to find the improvement by the other DNG inhabitant, >>> whose name I've forgotten. >>> >>> Please do me a favor if you find it, and repost it here. I apparently >>> have lost the software (probably a small shellscript). >>> >>> SteveT >> Amounter, maybe? >> >> https://github.com/stevelitt/amounter >> >> Aitor. >> >> >> > Steves hint to "inotify" made it. To sum it up, it's just "inotifywait > --monitor /dev| ..." - didn't search the archives, it's so simple :) > > > Nik > Steve's original announcement with the title 'Preferred automounter behavior?' dates back from 2015 archived at https://lists.dyne.org/lurker/thread/20151227.073016.5fc97e4f.en.html#20151227.073016.5fc97e4f. In this thread it is mentioned that for use as a daemon you better user the python-inotify module because just piping inotify does have unexpected behavior like with runinit and s6. grtz Nick signature.asc Description: OpenPGP digital signature ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
Le 16/09/2020 à 22:30, Steve Litt a écrit : > On Wed, 16 Sep 2020 09:53:14 +0200 > "Dr. Nikolaus Klepp" wrote: > >> Anno domini 2020 Wed, 16 Sep 02:11:57 -0400 >> Steve Litt scripsit: >>> In addition, I don't see why Unix design isn't a good fit for modern >>> demands. Edward and Aitor have already made >>> do-one-thing-and-do-it-well graphical automounters that, as far as >>> I know, depend on neither systemd nor dbus. I once posted, on this >>> list, a thumb drive plugin detector/mounter, and somebody else on >>> the list improved on it. >> Sorry, I must have missed that. Do you have a link to the software? >> >> nik > > No, sorry. Best way to find it is to search posts from Steve Litt > body-containing the string "inotify". Once you've found the right one, > look at that tree to find the improvement by the other DNG inhabitant, > whose name I've forgotten. > > Please do me a favor if you find it, and repost it here. I apparently > have lost the software (probably a small shellscript). I wrote a graphical mounter which depends only on GTK+-2, and Linux kernel version higher than 2.6.something - I don't rember at the moment. It also depends, obviously, on the presence of a C library. It's called "hopman" and was announced on this list. I found a bug about 1 year ago: it happens to consume 100% of a cpu when a loop device is created. I didn't take the time to debug it because I feel tired - I'm 70 and have several few other concerns. I started to internationalize it but didn't find a satisfactory way to manage the internationalization files and integrate them to the build process. For all these reasons, it hasn't been debianized. As it is, it is the only tool I use to mount USB sticks. It gives me full satisfaction on everyday use, and I think this is the one Steve uses. It is based on inotify watching /dev and /dev/disk/by-label, and a custom recursive function designed to browse /sys. -- Didier ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
Hi, Hendrik Boom writes: > On Wed, Sep 16, 2020 at 02:11:57AM -0400, Steve Litt wrote: >> >> Speaking of Netowrk manager, am I the only one who hates it messing >> with /etc/resolv.conf? > > No. You are not the only one. Same here. apt purge network-manager solved it for me ;-) Eh, perhaps I should mention that I also did a apt install netplug wpasupplicant ifupdown and tinkered a bit to get my interfaces(5) and wpa_supplicant.conf(5) snippets in working order. Hope this helps, -- Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9 Support Free Softwarehttps://my.fsf.org/donate Join the Free Software Foundation https://my.fsf.org/join ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
On Thu, 17 Sep 2020 10:07:42 +0200 Didier Kryn wrote: > Le 16/09/2020 à 22:30, Steve Litt a écrit : > > On Wed, 16 Sep 2020 09:53:14 +0200 > > "Dr. Nikolaus Klepp" wrote: > > > >> Anno domini 2020 Wed, 16 Sep 02:11:57 -0400 > >> Steve Litt scripsit: > >>> In addition, I don't see why Unix design isn't a good fit for > >>> modern demands. Edward and Aitor have already made > >>> do-one-thing-and-do-it-well graphical automounters that, as far as > >>> I know, depend on neither systemd nor dbus. I once posted, on this > >>> list, a thumb drive plugin detector/mounter, and somebody else on > >>> the list improved on it. > >> Sorry, I must have missed that. Do you have a link to the software? > >> > >> nik > > > > No, sorry. Best way to find it is to search posts from Steve Litt > > body-containing the string "inotify". Once you've found the right > > one, look at that tree to find the improvement by the other DNG > > inhabitant, whose name I've forgotten. > > > > Please do me a favor if you find it, and repost it here. I > > apparently have lost the software (probably a small shellscript). > > > I wrote a graphical mounter which depends only on GTK+-2, and > Linux kernel version higher than 2.6.something - I don't rember at > the moment. It also depends, obviously, on the presence of a C > library. It's called "hopman" and was announced on this list. I found > a bug about 1 year ago: it happens to consume 100% of a cpu when a > loop device is created. I didn't take the time to debug it because I > feel tired - I'm 70 and have several few other concerns. I started to > internationalize it but didn't find a satisfactory way to manage the > internationalization files and integrate them to the build process. > For all these reasons, it hasn't been debianized. > > As it is, it is the only tool I use to mount USB sticks. It gives me > full satisfaction on everyday use, and I think this is the one Steve > uses. > > It is based on inotify watching /dev and /dev/disk/by-label, and a > custom recursive function designed to browse /sys. > I was given hopman to test on my Void box and got it compiled with some help from (I think) Aitor. It was much more mature than my amounter was. I don't know why I quit using it --- maybe my mind went on to other things. By the way, if you use amounter, change all the mount and unmount to pmount and pumount so it can be done by a normal user. I'm not going to have time to fix amounter's Git until late November. I think hopman is a package in Devuan, so everybody can use it. SteveT Steve Litt Autumn 2020 featured book: Thriving in Tough Times http://www.troubleshooters.com/thrive ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
On Thu, 17 Sep 2020 20:34:31 +0900 Olaf Meeuwissen via Dng wrote: > Hi, > > Hendrik Boom writes: > > > On Wed, Sep 16, 2020 at 02:11:57AM -0400, Steve Litt wrote: > >> > >> Speaking of Netowrk manager, am I the only one who hates it messing > >> with /etc/resolv.conf? > > > > No. You are not the only one. > > Same here. > > apt purge network-manager > > solved it for me ;-) :-) I've never been afraid to kludge when it comes to packages, so my solution was: chattr i /etc/resolv.conf :-) Back in 2010-2013 when I used Ubuntu, I renamed the plymouth executable to get rid of plymouth. I know my methods don't work for most people, and aren't the right way to do it. Do as I say, not as I do. SteveT Steve Litt Autumn 2020 featured book: Thriving in Tough Times http://www.troubleshooters.com/thrive ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] mounting and automounting
I have nothing new to say, but I thought it was time to change the subject line of this thread to make it more easily findable. -- hendrik On Thu, Sep 17, 2020 at 08:33:46AM -0400, Steve Litt wrote: > On Thu, 17 Sep 2020 10:07:42 +0200 > Didier Kryn wrote: > > > Le 16/09/2020 à 22:30, Steve Litt a écrit : > > > On Wed, 16 Sep 2020 09:53:14 +0200 > > > "Dr. Nikolaus Klepp" wrote: > > > > > >> Anno domini 2020 Wed, 16 Sep 02:11:57 -0400 > > >> Steve Litt scripsit: > > >>> In addition, I don't see why Unix design isn't a good fit for > > >>> modern demands. Edward and Aitor have already made > > >>> do-one-thing-and-do-it-well graphical automounters that, as far as > > >>> I know, depend on neither systemd nor dbus. I once posted, on this > > >>> list, a thumb drive plugin detector/mounter, and somebody else on > > >>> the list improved on it. > > >> Sorry, I must have missed that. Do you have a link to the software? > > >> > > >> nik > > > > > > No, sorry. Best way to find it is to search posts from Steve Litt > > > body-containing the string "inotify". Once you've found the right > > > one, look at that tree to find the improvement by the other DNG > > > inhabitant, whose name I've forgotten. > > > > > > Please do me a favor if you find it, and repost it here. I > > > apparently have lost the software (probably a small shellscript). > > > > > > I wrote a graphical mounter which depends only on GTK+-2, and > > Linux kernel version higher than 2.6.something - I don't rember at > > the moment. It also depends, obviously, on the presence of a C > > library. It's called "hopman" and was announced on this list. I found > > a bug about 1 year ago: it happens to consume 100% of a cpu when a > > loop device is created. I didn't take the time to debug it because I > > feel tired - I'm 70 and have several few other concerns. I started to > > internationalize it but didn't find a satisfactory way to manage the > > internationalization files and integrate them to the build process. > > For all these reasons, it hasn't been debianized. > > > > As it is, it is the only tool I use to mount USB sticks. It gives me > > full satisfaction on everyday use, and I think this is the one Steve > > uses. > > > > It is based on inotify watching /dev and /dev/disk/by-label, and a > > custom recursive function designed to browse /sys. > > > > I was given hopman to test on my Void box and got it compiled with some > help from (I think) Aitor. It was much more mature than my amounter > was. I don't know why I quit using it --- maybe my mind went on to > other things. > > By the way, if you use amounter, change all the mount and unmount to > pmount and pumount so it can be done by a normal user. I'm not going to > have time to fix amounter's Git until late November. > > I think hopman is a package in Devuan, so everybody can use it. > > SteveT > > > Steve Litt > Autumn 2020 featured book: Thriving in Tough Times > http://www.troubleshooters.com/thrive > ___ > 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] Danger: Debian POSIX hostility
On 9/16/20 3:45 PM, Hendrik Boom wrote: >> Speaking of Netowrk manager, am I the only one who hates it messing >> with /etc/resolv.conf? > No. You are not the only one. tito already wrote the solution for nm in this thread : " This feature could be disabled by adding this to the [main] section: dns=none in /etc/NetworkManager/NetworkManager.conf " so you can use local dns caching, unbound, dnsmasq, other... signature.asc Description: OpenPGP digital signature ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
On 2020-09-17 20:34, Olaf Meeuwissen via Dng wrote: > apt install netplug wpasupplicant ifupdown I happen to dislike ifupdown almost as much as NetworkManager. It is a poorly documented opaque mess. The fact that it's a debian invention (AFAIK) and not an import from RH-land is about the only significant point in its favor. The most straightforward networking setup these days, IMO, is just running a global instance (ie. not per-interface) of dhcpcd. dhcpcd is quite smart enough to do such things as bringing iterfaces "up" and setting up routes by itself. It can even spawn wpasupplicant kids when necessary. -- Ian ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
Quoting Steve Litt (sl...@troubleshooters.com): > Speaking of Netowrk manager, am I the only one who hates it messing > with /etc/resolv.conf? You know what I'd like? I'd like > /etc/resolv.conf to be a symlink to one of many files, such as > resolv.dhcp, which *could* be modified by the network manager, and all > sorts of others that can be switched in and out by a shellscript. http://linuxmafia.com/faq/Network_Other/resolvconf.html -- Cheers, "My hot flight attendant asked how I like my coffee. Rick Moen And that's when she told me: 'That's cute, honey, but r...@linuxmafia.com the coffee's free. You don't have to pay for it, here." McQ! (4x80)(seen on Twitter) ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
Quoting Steve Litt (sl...@troubleshooters.com): > I've never been afraid to kludge when it comes to packages, so my > solution was: > > chattr i /etc/resolv.conf > > :-) Without the '+', that is not a solution, just a syntax error. ;-> ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
On Wed, Sep 16, 2020 at 08:45:06AM -0400, Hendrik Boom wrote: > On Wed, Sep 16, 2020 at 02:11:57AM -0400, Steve Litt wrote: > > > > Speaking of Netowrk manager, am I the only one who hates it messing > > with /etc/resolv.conf? > > No. You are not the only one. I prefer ifupdown, but I like Network Manager for laptops. This particular behaviour can be managed, which is useful for me given that I have various ways I need to manage resolv.conf on different systems. For what it's worth, here's an excerpt from the NetworkManager.conf(5) man page - take special note of the last paragraph: dns Set the DNS (resolv.conf) processing mode. If the key is unspecified, default is used, unless /etc/resolv.conf is a symlink to /run/systemd/resolve/stub-resolv.conf, /run/systemd/resolve/resolv.conf, /lib/systemd/resolv.conf or /usr/lib/systemd/resolv.conf. In that case, systemd-resolved is chosen automatically. default: NetworkManager will update /etc/resolv.conf to reflect the nameservers provided by currently active connections. dnsmasq: NetworkManager will run dnsmasq as a local caching nameserver, using a "split DNS" configuration if you are connected to a VPN, and then update resolv.conf to point to the local nameserver. It is possible to pass custom options to the dnsmasq instance by adding them to files in the "/etc/NetworkManager/dnsmasq.d/" directory. Note that when multiple upstream servers are available, dnsmasq will initially contact them in parallel and then use the fastest to respond, probing again other servers after some time. This behavior can be modified passing the 'all-servers' or 'strict-order' options to dnsmasq (see the manual page for more details). unbound: NetworkManager will talk to unbound and dnssec-triggerd, providing a "split DNS" configuration with DNSSEC support. /etc/resolv.conf will be managed by dnssec-trigger daemon. systemd-resolved: NetworkManager will push the DNS configuration to systemd-resolved none: NetworkManager will not modify resolv.conf. This implies rc-manager unmanaged -- Mason Loring Bliss ma...@blisses.org Ewige Blumenkraft! awake ? sleep : random() & 2 ? dream : sleep; -- Hamlet, Act III, Scene I signature.asc Description: PGP signature ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
On Thu, Sep 17, 2020 at 04:48:06PM +0300, Dimitris via Dng wrote: > tito already wrote the solution for nm in this thread : Ah, this'll teach me not to read the whole thread before I reply. > so you can use local dns caching, unbound, dnsmasq, other... FWIW, I've been using BIND for this role lately, and it's been quite pleasant. -- Mason Loring Bliss ma...@blisses.orghttp://blisses.org/ For more enjoyment and greater efficiency, consumption is being standardized. signature.asc Description: PGP signature ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Danger: Debian POSIX hostility
Hi Steve, On 17/9/20 14:33, Steve Litt wrote: I was given hopman to test on my Void box and got it compiled with some help from (I think) Aitor. It was much more mature than my amounter was. I don't know why I quit using it --- maybe my mind went on to other things. My help was installing simple-netaid-cdkin Void Linux, the ncurses interface for simple-netaid: https://git.devuan.org/aitor_czr/simple-netaid-cdk I seem to remember. It required to build from source ifupdown (which -as someone has pointed out in this thread- has its origin in Debian), and also libiw and libcdk5. By the way, if you use amounter, change all the mount and unmount to pmount and pumount so it can be done by a normal user. I'm not going to have time to fix amounter's Git until late November. I think hopman is a package in Devuan, so everybody can use it. No, it isn't a package in Devuan so far. But i really think Didier has done a very great job to keep in mind. I cloned his repository and read it time ago, being one of my priorities to contribute to it. Cheers, Aitor. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng