Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread David
On Sun, 1 Sep 2019 at 00:39, The Wanderer wrote: > On 2019-08-31 at 10:07, Roberto C. Sánchez wrote: > > On Sat, Aug 31, 2019 at 09:26:49AM -0400, The Wanderer wrote: > >> On 2019-08-31 at 09:02, Roberto C. Sánchez wrote: > >> > >>> The only time you need to change the syntax is to add something >

Pulse error using module-loopback

2019-08-31 Thread Aidan Gauland
Hi, I'm trying to follow a guide on setting up PulseAudio sinks for setup with Open Broadcast Studio , but the "pactl load-module module-loopback" step fails with the error "Failure: Module initialization failed". 

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread David Wright
On Sat 31 Aug 2019 at 11:19:38 (-0400), Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 10:02:43AM -0500, David Wright wrote: > > On Sat 31 Aug 2019 at 10:07:01 (-0400), Roberto C. Sánchez wrote: > > > On Sat, Aug 31, 2019 at 09:26:49AM -0400, The Wanderer wrote: > > > > > > > It also loses an

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread David Wright
On Sat 31 Aug 2019 at 11:31:34 (-0400), Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 10:26:34AM -0500, David Wright wrote: > > On Sat 31 Aug 2019 at 11:11:43 (-0400), Roberto C. Sánchez wrote: > > > On Sat, Aug 31, 2019 at 10:39:00AM -0400, The Wanderer wrote: > > > > On 2019-08-31 at 10:07,

Re: Another "useless us of cat" discussion

2019-08-31 Thread David Wright
On Sat 31 Aug 2019 at 11:43:09 (-0400), The Wanderer wrote: > On 2019-08-31 at 11:16, David Wright wrote: > > On Sat 31 Aug 2019 at 10:40:52 (-0400), The Wanderer wrote: > >> On 2019-08-31 at 10:32, Teemu Likonen wrote: > > >>> Discussions about "useless use of cat" have wasted far more > >>> reso

Re: Cannot boot after distro upgrade

2019-08-31 Thread Pascal Hambourg
Le 01/09/2019 à 01:04, Miroslav Skoric a écrit : # dmesg | tail reported (among the other): EXT4-fs (dm-6): couldn't mount as ext3 due to feature incompatibilities EXT4-fs (dm-5): couldn't mount as ext3 due to feature incompatibilities # mount reported that /, /usr, and /var were there, but n

Re: Cannot boot after distro upgrade

2019-08-31 Thread Miroslav Skoric
On 8/31/19 3:26 PM, Étienne Mollier wrote: Maybe a check of the memory and SMART data, if those options are available from your BIOS, could be welcome, especially SMART since some messages were mentioning checking the disk. I checked the system memory and hard disk self test (quick test and

Re: Shutdown delay with LVM and disk encryption (SysV, buster)

2019-08-31 Thread Bill Brelsford
On Sat Aug 31 2019 at 03:40 PM +0200, Stefan Krusche wrote: > Am Freitag, 30. August 2019 schrieb Bill Brelsford: > > My 64-bit buster installation was created using its installer, with > > / and /home partitions in an encrypted logical volume (sda3_crypt). > > On shutdown, it pauses near the end w

Re: Where did my gateway go?

2019-08-31 Thread Lee
On 8/31/19, deloptes wrote: >>> you can not have two default gateways. >> >> You can, but if both have the same metric the chances are pretty good >> you're going to have weird network problems. I've got different >> metrics & haven't noticed any problems: >> root@hpg60:~# route >> Kernel IP rout

Re: Where did my gateway go?

2019-08-31 Thread Ulf Volmer
On 31.08.19 01:14, Charlie Gibbs wrote: > On 30/08/19 03:42 PM, to...@tuxteam.de wrote: >> Try "traceroute pop.surfnaked.ca", that might shed some light > > traceroute to pop.surfnaked.ca (216.113.192.36), 30 hops max, 60 byte > packets >  1  gateway (192.168.0.1)  95.588 ms  95.547 ms  95.517 ms

Re: Where did my gateway go?

2019-08-31 Thread deloptes
Lee wrote: > On 8/31/19, deloptes wrote: >> Charlie Gibbs wrote: >> >>> Destination Gateway Genmask Flags Metric RefUse >>> Iface >>> default gateway 0.0.0.0 UG0 00 >>> wlp3s0 >>> default gateway 0.0.0.0 UG

Re: Where did my gateway go?

2019-08-31 Thread Lee
On 8/31/19, deloptes wrote: > Charlie Gibbs wrote: > >> Destination Gateway Genmask Flags Metric RefUse >> Iface >> default gateway 0.0.0.0 UG0 00 >> wlp3s0 >> default gateway 0.0.0.0 UG0 00 >>

Re: tasksel

2019-08-31 Thread Paul Sutton
On 31/08/2019 08:11, Paul Sutton wrote: > > On 30/08/2019 18:11, Greg Wooledge wrote: >> On Fri, Aug 30, 2019 at 05:31:50PM +0100, Paul Sutton wrote: >>> What tool is used to produce the graphical interface for programs such >>> as tasksel >> A program named dialog, or whiptail which is basically

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread The Wanderer
On 2019-08-31 at 11:56, Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 11:38:59AM -0400, The Wanderer wrote: >> Just because I only type the command once doesn't mean that I want >> to type a more complex command than I need to. > > Whereas I'd rather front-load the complexity for the repea

Sponge [was: Delete all after a pattern]

2019-08-31 Thread tomas
On Sat, Aug 31, 2019 at 12:20:37PM -0400, The Wanderer wrote: > On 2019-08-31 at 12:02, Jonas Smedegaard wrote: [on sponge] > Now *that* is interesting, and at least at a glance, solves a problem > I've been nervous about many times in the past. Me too, I didn't know about sponge. Small, nifty u

Re: Delete all after a pattern

2019-08-31 Thread The Wanderer
On 2019-08-31 at 12:02, Jonas Smedegaard wrote: > Quoting The Wanderer (2019-08-31 14:39:56) > >> In practice, I'd either use this with 'sed -i [the above >> expression] filename' or (more likely) with 'cat filename | sed >> [the above expression] > newfilename'. > > While wandering(!) off of th

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread tomas
On Sat, Aug 31, 2019 at 11:56:48AM -0400, Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 11:38:59AM -0400, The Wanderer wrote: [...] > > I don't suppose you know of any shells which have that behavior, even as > > an option? > > > I am not aware of such a shell, though I have a vague recoll

Re: Delete all after a pattern

2019-08-31 Thread Michael Howard
On 31/08/2019 17:02, Jonas Smedegaard wrote: Quoting The Wanderer (2019-08-31 14:39:56) In practice, I'd either use this with 'sed -i [the above expression] filename' or (more likely) with 'cat filename | sed [the above expression] > newfilename'. While wandering(!) off of the original topic, t

Re: Delete all after a pattern

2019-08-31 Thread Jonas Smedegaard
Quoting The Wanderer (2019-08-31 14:39:56) > In practice, I'd either use this with 'sed -i [the above expression] > filename' or (more likely) with 'cat filename | sed [the above > expression] > newfilename'. While wandering(!) off of the original topic, there is also this: cat filename | sed [

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread Roberto C . Sánchez
On Sat, Aug 31, 2019 at 11:38:59AM -0400, The Wanderer wrote: > > I don't think I'd prefer it, because it would mean I'd have to remember > where I left the cursor last time rather than being able to just assume > it will always be in a particular position, but I can see that being > just a result

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread The Wanderer
On 2019-08-31 at 11:38, The Wanderer wrote: > On 2019-08-31 at 11:11, Roberto C. Sánchez wrote: >> Don't misunderstand me. I sometimes start interactive command >> lines with 'cat' followed by a pipe. When I do that it is out of >> convenience more than anything else. However, if I am writing

SOLVED !! Re: Delete all after a pattern

2019-08-31 Thread Computer Planet
Thanks Roberto and Wanderer: $ sed 's/config=.*$/config=/g' file.txt was the solution...!! > On 2019-08-31 at 07:58, Roberto C. Sánchez wrote: > > > On Sat, Aug 31, 2019 at 01:49:20PM +0200, Computer Planet wrote: > > > >> Hi guys! Is It possible, with "sed" erase all after a pattern? I'm > >> t

Re: Another "useless us of cat" discussion

2019-08-31 Thread The Wanderer
On 2019-08-31 at 11:16, David Wright wrote: > On Sat 31 Aug 2019 at 10:40:52 (-0400), The Wanderer wrote: > >> On 2019-08-31 at 10:32, Teemu Likonen wrote: >>> Discussions about "useless use of cat" have wasted far more >>> resources than the actual use of cat command. >> >> Agreed. I'm sorry f

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread The Wanderer
On 2019-08-31 at 11:11, Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 10:39:00AM -0400, The Wanderer wrote: > >> On 2019-08-31 at 10:07, Roberto C. Sánchez wrote: >> >> I actually think this is good behavior. The only obvious places to >> put the cursor when doing command history are at th

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread Roberto C . Sánchez
On Sat, Aug 31, 2019 at 10:26:34AM -0500, David Wright wrote: > On Sat 31 Aug 2019 at 11:11:43 (-0400), Roberto C. Sánchez wrote: > > On Sat, Aug 31, 2019 at 10:39:00AM -0400, The Wanderer wrote: > > > On 2019-08-31 at 10:07, Roberto C. Sánchez wrote: > > > > > > I actually think this is good beha

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread David Wright
On Sat 31 Aug 2019 at 11:11:43 (-0400), Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 10:39:00AM -0400, The Wanderer wrote: > > On 2019-08-31 at 10:07, Roberto C. Sánchez wrote: > > > > I actually think this is good behavior. The only obvious places to put > > the cursor when doing command h

Re: Another "useless us of cat" discussion

2019-08-31 Thread Roberto C . Sánchez
On Sat, Aug 31, 2019 at 10:40:52AM -0400, The Wanderer wrote: > On 2019-08-31 at 10:32, Teemu Likonen wrote: > > > The Wanderer [2019-08-31T08:39:56-04] wrote: > > > >> (Yes, that's technically a "senseless use of cat". I do it anyway, > >> because always using pipes at every stage makes it easy

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread Roberto C . Sánchez
On Sat, Aug 31, 2019 at 10:02:43AM -0500, David Wright wrote: > On Sat 31 Aug 2019 at 10:07:01 (-0400), Roberto C. Sánchez wrote: > > On Sat, Aug 31, 2019 at 09:26:49AM -0400, The Wanderer wrote: > > > > > It also loses an important benefit when building and tweaking such > > > pipelines by hand:

Re: Another "useless us of cat" discussion

2019-08-31 Thread David Wright
On Sat 31 Aug 2019 at 10:40:52 (-0400), The Wanderer wrote: > On 2019-08-31 at 10:32, Teemu Likonen wrote: > > The Wanderer [2019-08-31T08:39:56-04] wrote: > > > >> (Yes, that's technically a "senseless use of cat". I do it anyway, > >> because always using pipes at every stage makes it easy to ad

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread Roberto C . Sánchez
On Sat, Aug 31, 2019 at 10:39:00AM -0400, The Wanderer wrote: > On 2019-08-31 at 10:07, Roberto C. Sánchez wrote: > > I actually think this is good behavior. The only obvious places to put > the cursor when doing command history are at the beginning of the line > and at the end, and for convenienc

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread David Wright
On Sat 31 Aug 2019 at 10:07:01 (-0400), Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 09:26:49AM -0400, The Wanderer wrote: > > On 2019-08-31 at 09:02, Roberto C. Sánchez wrote: > > > > > The only time you need to change the syntax is to add something > > > before sed. But then, that's why

Re: Another "useless us of cat" discussion

2019-08-31 Thread The Wanderer
On 2019-08-31 at 10:32, Teemu Likonen wrote: > The Wanderer [2019-08-31T08:39:56-04] wrote: > >> (Yes, that's technically a "senseless use of cat". I do it anyway, >> because always using pipes at every stage makes it easy to add or >> remove filtering stages without having to adjust the syntax i

Re: Delete all after a pattern

2019-08-31 Thread David Wright
On Sat 31 Aug 2019 at 09:02:07 (-0400), Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 08:39:56AM -0400, The Wanderer wrote: > > On 2019-08-31 at 07:58, Roberto C. Sánchez wrote: > > > On Sat, Aug 31, 2019 at 01:49:20PM +0200, Computer Planet wrote: > > > > > >> Hi guys! Is It possible, with

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread The Wanderer
On 2019-08-31 at 10:07, Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 09:26:49AM -0400, The Wanderer wrote: > >> On 2019-08-31 at 09:02, Roberto C. Sánchez wrote: >> >>> The only time you need to change the syntax is to add something >>> before sed. But then, that's why shells have I/O r

Another "useless us of cat" discussion

2019-08-31 Thread Teemu Likonen
The Wanderer [2019-08-31T08:39:56-04] wrote: > (Yes, that's technically a "senseless use of cat". I do it anyway, > because always using pipes at every stage makes it easy to add or > remove filtering stages without having to adjust the syntax in another > part of the pipeline, and because it's ea

Re: Cannot boot after distro upgrade

2019-08-31 Thread Étienne Mollier
Misko, on 2019-08-31: > On 8/31/19 3:26 PM, Étienne Mollier wrote: > > If operations here over do not make any difference, then you > > really should consider creating a Rescue drive on an USB thumb. > > I have had a good experience with SystemRescueCD over the > > years: > > > > http://www.sys

Re: cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread Roberto C . Sánchez
On Sat, Aug 31, 2019 at 09:26:49AM -0400, The Wanderer wrote: > On 2019-08-31 at 09:02, Roberto C. Sánchez wrote: > > > The only time you need to change the syntax is to add something > > before sed. But then, that's why shells have I/O redirection: > > > > (sed 's/config=.*$/config=/g' | tr -d

Re: Delete all after a pattern

2019-08-31 Thread tomas
On Sat, Aug 31, 2019 at 02:17:30PM +0200, Computer Planet wrote: > Yes, something like this > $ sed -E 's/(.*config=).*/\1/' > but something I had already tried but not work... Well, for me it works: echo "some text before config=mumble mumble" | sed -e 's/\(^.*config=\).*/\1/' => some t

Re: Cannot boot after distro upgrade

2019-08-31 Thread Miroslav Skoric
On 8/31/19 3:26 PM, Étienne Mollier wrote: Perhaps you can attempt a boot in "Recovery Mode", see the "Advanced Boot Options" at the Grub menu stage of the boot. It could have a positive effect if a faulty kernel module is loaded and causes this loop in the boot sequence. Maybe a check of the

Re: Cannot boot after distro upgrade

2019-08-31 Thread Reco
On Sat, Aug 31, 2019 at 03:41:12PM +0200, Miroslav Skoric wrote: > On 8/31/19 3:26 PM, Reco wrote: > > > > > Boot with init=/bin/bash kernel commandline parameter, remount root > > filesystem read-write, fix your /etc/fstab (systemd is picky about > > filesystems it's not able to mount, and no, "

Re: Cannot boot after distro upgrade

2019-08-31 Thread Miroslav Skoric
On 8/31/19 3:26 PM, Reco wrote: Boot with init=/bin/bash kernel commandline parameter, remount root filesystem read-write, fix your /etc/fstab (systemd is picky about filesystems it's not able to mount, and no, "noauto" won't fix it), reboot once more. Reco Hi, Sorry for my ignorance, but

Re: Shutdown delay with LVM and disk encryption (SysV, buster)

2019-08-31 Thread Stefan Krusche
Am Freitag, 30. August 2019 schrieb Bill Brelsford: > My 64-bit buster installation was created using its installer, with > / and /home partitions in an encrypted logical volume (sda3_crypt). > On shutdown, it pauses near the end with > > Stopping remaining crypto disks... sda3_crypt (busy) sda3_

Re: Cannot boot after distro upgrade

2019-08-31 Thread Étienne Mollier
Misko, on 2019-08-31: > After upgrading the old laptop from jessie to strech, it worked > well for few days (although more slowly than it was with > jessie). But after last proper shutdown, it does not boot > anymore. In fact, it starts to boot until it comes to a point > where it says: > > "You ar

cat and pipelines, mostly (was Re: Delete all after a pattern)

2019-08-31 Thread The Wanderer
On 2019-08-31 at 09:02, Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 08:39:56AM -0400, The Wanderer wrote: >> Or perhaps >> >> sed 's/config=.*$/config=/g' >> >> ? >> >> Less elegant and idiomatic, but could also get the job done. >> > OK. > >> The 'g' at the end is in case there can

Re: Cannot boot after distro upgrade

2019-08-31 Thread Reco
Hi. On Sat, Aug 31, 2019 at 02:00:18PM +0200, Miroslav Skoric wrote: > Any idea what to do? Thanks. Boot with init=/bin/bash kernel commandline parameter, remount root filesystem read-write, fix your /etc/fstab (systemd is picky about filesystems it's not able to mount, and no, "noauto" w

Re: Delete all after a pattern

2019-08-31 Thread Curt
On 2019-08-31, The Wanderer wrote: > > (And may I say that it's annoying to need to explain this every time, in > order to forestall being called out for "senseless use of cat"? Not that > I get called out for that here very much, but it does seem to happen > virtually every time I don't include a

Re: Delete all after a pattern

2019-08-31 Thread Roberto C . Sánchez
On Sat, Aug 31, 2019 at 08:39:56AM -0400, The Wanderer wrote: > On 2019-08-31 at 07:58, Roberto C. Sánchez wrote: > > > On Sat, Aug 31, 2019 at 01:49:20PM +0200, Computer Planet wrote: > > > >> Hi guys! Is It possible, with "sed" erase all after a pattern? I'm > >> trying in all way but I can't..

Re: Delete all after a pattern

2019-08-31 Thread The Wanderer
On 2019-08-31 at 07:58, Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 01:49:20PM +0200, Computer Planet wrote: > >> Hi guys! Is It possible, with "sed" erase all after a pattern? I'm >> trying in all way but I can't... I'd like to erase all after the >> pattern "config=" but only in the sam

Re: Delete all after a pattern

2019-08-31 Thread Roberto C . Sánchez
On Sat, Aug 31, 2019 at 02:17:30PM +0200, Computer Planet wrote: > Yes, something like this > $ sed -E 's/(.*config=).*/\1/' > but something I had already tried but not work... > > On Saturday, 31-08-2019 at 13:58 Roberto C. Sánchez wrote: > > On Sat, Aug 31, 2019 at 01:49:20PM +0200, Computer Pla

Re: Delete all after a pattern

2019-08-31 Thread Computer Planet
Yes, something like this $ sed -E 's/(.*config=).*/\1/' but something I had already tried but not work... On Saturday, 31-08-2019 at 13:58 Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 01:49:20PM +0200, Computer Planet wrote: > > Hi guys! > > Is It possible, with "sed" erase all after a patt

Cannot boot after distro upgrade

2019-08-31 Thread Miroslav Skoric
Hello, After upgrading the old laptop from jessie to strech, it worked well for few days (although more slowly than it was with jessie). But after last proper shutdown, it does not boot anymore. In fact, it starts to boot until it comes to a point where it says: "You are in emergency mode. A

Re: Delete all after a pattern

2019-08-31 Thread Roberto C . Sánchez
On Sat, Aug 31, 2019 at 01:49:20PM +0200, Computer Planet wrote: > Hi guys! > Is It possible, with "sed" erase all after a pattern? > I'm trying in all way but I can't... > I'd like to erase all after the pattern "config=" but only in the same line, > regardless of where it is located inside in a f

Delete all after a pattern

2019-08-31 Thread Computer Planet
Hi guys! Is It possible, with "sed" erase all after a pattern? I'm trying in all way but I can't... I'd like to erase all after the pattern "config=" but only in the same line, regardless of where it is located inside in a file. Can somebody help me please? Thank in advance for reply. e.g.: after

Re: starting a new trail for a pi3b.

2019-08-31 Thread Étienne Mollier
Gene, on 2019-08-30: > I found the u-sd card with a debian-arm buster net-install on it. And I > generally like what I see. Then I noticed there was a newer kernel > marked preempt-rt. What the hell, give it a shot, and installed it along > with the mesa-utils pkgs. > > rebooted, runs fine. Ran gl

Re: tasksel

2019-08-31 Thread Paul Sutton
On 30/08/2019 18:11, Greg Wooledge wrote: > On Fri, Aug 30, 2019 at 05:31:50PM +0100, Paul Sutton wrote: >> What tool is used to produce the graphical interface for programs such >> as tasksel > > A program named dialog, or whiptail which is basically "dialog lite". > Both of these are in packa