Riddle me this: grep / regx experts
by R. G. Newbury
A bug in regx handling???
I am cleaning up some html code, using sed to standardize the
formatting. I was searching for specific instances of code to amend
using grep.
I was looking for instances like <a name="s1s1">
Example text in a file: ( here named, quite originally, temp )
<p class="section-f"></a><a name="s8"></a>8.</b></a>
And # grep -h '[0-9]s[0-9]*">' temp
Returns nothing (which is the expected result: there are no
[0-9]s[0-9}"> instances.
BUT!!!
# grep -h '[0-9]*s[0-9]*">' temp
Returns the example line with the 's[0-9]">' highlighted.
Note that the character before the 's' is either " or #
Can anyone explain what is happening?. This isn't politics so the group
[0-9] should not equal [0-9"#]. Or even [0-9\"\#].
--
R. Geoffrey Newbury
954 Owenwood Drive
Mississauga, Ontario, L5H 3J2
t905-271-9600 newbury(a)mandamus.org
5 years, 7 months
secure boot disabled
by AV
I installed Fed 27 on a Dell XPS 13 9370 using Fed 27 Live
on a usb stick after deleting Ubuntu 16.04 LTS that came
installed on the device.
I checked that secure boot + necessary conditions were
set to 'enabled' in UEFI.
However after install I find 'secure boot disabled'.
$ dmesg | grep -i secure
[ 0.000000] secureboot: Secure boot disabled
[ 5.630671] Loaded UEFI:MokListRT cert 'Fedora Secure Boot CA:
fde32599c2d61db1bf5807335d7b20e4cd963b42' linked to secondary sys
keyring
$ ls -l /sys/firmware/efi/efivars/Secure*
-rw-r--r--. 1 root root 5 Jan 31 16:33
/sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-
00e098032b8c
Can this have anything to do with the fact that this notebook
only has Thunderbolt 3 and USB 3.1 (C) ports so that I had to use
an adapter cable ?
As I did not expect this I did not check what happened under Ubuntu.
(Aside from some probably neglectable ACPI hiccups everything else
seems to be working OK).
AV
5 years, 7 months
Organising photos visually
by Patrick O'Callaghan
Looking for some advice here. I have a large set of old slides
(transparencies) which I'm currently scanning for the family, but of
course many of them are out of order. Clearly they don't have EXIF
information (they were taken in the 70s and 80s). I'm looking for a way
to order them *visually* after scanning, but the usual apps (Digikam,
Shotwell, Lightroom) don't seem to be able to do this. They only
understand machine-readable sorting, e.g. by the file mod date, size,
exposure data etc., none of which is useful in this case.
Any ideas?
poc
5 years, 7 months
Re: Testers for LCD Panel Self Refresh on laptops with Intel graphics
wanted
by Hans de Goede
Hi,
On 01-02-18 15:59, Don Zickus wrote:
> On Thu, Feb 01, 2018 at 12:34:50PM +0100, Hans de Goede wrote:
>> Hi All,
>>
>> For the "Improved Laptop Battery Life" feature:
>> https://fedoraproject.org/wiki/Changes/ImprovedLaptopBatteryLife
>>
>> I'm working on for Fedora 28 I would like to also try and enable
>> Panel Self Refresh on laptops with Intel graphics, some quick tests
>> have shown this to save another 0.5W (when idle / nothing on the
>> screen changes). This is currently off be default because it is
>> known to cause issues on some devices. So I think we will probably
>> need a white- or black-list. But first we need more data on this.
>>
>> If you can spare 10 minutes, please see my blogpost for how to test
>> this and send me a mail with the info request in the blogpost:
>> https://hansdegoede.livejournal.com/18653.html
>
> Hi Hans,
>
> I didn't exactly play with the psr like you asked, but your blog intrigued
> me to play with powertop again.
>
> On my Dell 5510 laptop, which has two graphics chips (intel for display,
> nvidia for external displays), setting the following to good:
>
> Runtime PM for PCI Device NVIDIA Corporation GM107GLM [Quadro M1000M]
>
> dropped me from 14W down to 6-7W. And doubled my battery life. Considering
> I normally don't connect up the external display, I find this a huge
> savings.
>
> So indirectly I want to say thank you!
Interesting, nouveau.runpm defaults to 1, so I wonder why it is not doing
this by default on your system. Can you file a bug against xorg-x11-drv-nouveau
please and put the following people in the Cc:
Ben Skeggs <bskeggs(a)redhat.com>
Lyude Paul <lyude(a)redhat.com>
Hans de Goede <hdegoede(a)redhat.com>
Note Lyude works from the Westford office, not sure where you are located,
but if you're also in Westford you might just want to drop by her desk :)
Regards,
Hans
5 years, 7 months
Re: Easily add text and arrows on images: what is the best tool?
by Alex Aycinena
>
>
> 5. Re: Easily add text and arrows on images: what is the best tool?
> (Tom Horsley)
>
> ---------- Forwarded message ----------
> From: Tom Horsley <horsley1953(a)gmail.com>
> To: users(a)lists.fedoraproject.org
> Cc:
> Bcc:
> Date: Thu, 1 Feb 2018 08:44:30 -0500
> Subject: Re: Easily add text and arrows on images: what is the best tool?
> On Thu, 1 Feb 2018 13:46:05 +0100
> Frédéric wrote:
>
> > I would like to arrows/shapes + text on pictures. What is the best
> > tool for that? With gimp, it is easy to add text but the arrow is
> > difficult. Any tool?
>
> Gimp works for me:
>
> Find an arrow you like in an image with a transparent background,
> paste as new layer, move around and rotate as you please.
>
Import the image into a blank Libreoffice Draw document and scale it. Then
add text and arrows.
5 years, 7 months
how to audit chmod syscall system wide? a wired problem of home
directory group write permission got set
by mr.cheng
my Linux laptop started to have a problem of setting my home directory with group write permission
$ ls -ld $HOMEdrwxr-x--- 34 user users 4096 Jan 30 21:45 /home/user
to:
$ ls -ld $HOMEdrwxrwx--- 34 user users 4096 Jan 30 21:45 /home/user
This usually doesn't cause a problem but since recently it started settings group write on servers as well which I did ssh login; and once logout, the next time it doesn't allow re-login from server side sshd audit logs, says because of group write permission is set it doesn't allow my account to login;
this wired problem has started settings multiple ssh servers, either at home Linux server, or Linux server in the cloud,but it isn't always reproducible, in past 30 days it happened 3 times to 4 different servers
I suspect current Linux laptop has a software virus or something because it has been in use for 2 years; I re-installed the laptop with latest Fedora 27 and all started as fresh, but 2 weeks later right now, the group write permission is set again to one of my servers;
I checked all bash_history and system logs, didn't see any explicit bash call of "chmod g+w ..." ; so I suspect some software is calling by chmod syscall, so I wonder anyone knows how to set a system wide chmod audit? and if a whole hard drive anti-virus scan is necessary, which anti-virus scan software do you recommend?
It's weird that nothing worse than a group write permission set. No damage to system, no malfunctioning. The newly installed Linux system just functions perfect if without that.But I am kind of pretty sure it's this laptop, because whenever this laptop is down time, I use another newer laptop I bought a few months ago, nothing bad happens yet during this current 3years old laptop downtime.
Thanks;
5 years, 7 months
Fedora 27 curl 7.55.1 ignore self-signed certificates
by Kleber Rocha
Hi,
I have a problema with curl, in Fedora 26, I imported the certificate into
the /etc/pki/ca-trust/source/anchors/, and after I run the command:
update-ca-trust extract, after that, curl trust on the self-signed
certificate.
But, in Fedora 27, I do the same configuration, but curl don't trust in the
self-signed certificate.
Thank you
5 years, 7 months