Re: 3.3 gigs in /var/cache/PackageKit/24/metadata after dnf system-upgrade

2016-12-28 Thread Tim
Dario Lesca:
>> Why not use the same cache of dnf?

Matthew Miller:
> That is work in progress. Both systems use the cache a little
> differently and grew up independently, so there is some work to align
> them. 

Separate caching for the metadata, but pooled caching (and automated
purging control) for the massively huge packages cache, would be a good
interim solution.

-- 
[tim@localhost ~]$ uname -rsvp
Linux 3.9.10-100.fc17.x86_64 #1 SMP Sun Jul 14 01:31:27 UTC 2013 x86_64

Boilerplate:  All mail to my mailbox is automatically deleted, there is
no point trying to privately email me, I only get to see the messages
posted to the mailing list.

less is more when playing with your cat...


___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Changing lvmcache mode

2016-12-28 Thread Raman Gupta
On 12/28/2016 06:55 PM, Rick Stevens wrote:
> On 12/28/2016 03:46 PM, Raman Gupta wrote:
>> On 12/28/2016 06:35 PM, Rick Stevens wrote:
>>> On 12/28/2016 03:14 PM, Raman Gupta wrote:
 On 12/28/2016 04:24 PM, Rick Stevens wrote:
> On 12/28/2016 10:33 AM, Raman Gupta wrote:
>> I would like to change the cache mode of an existing lvm cache volume.
>>
>> I see the following in the man page:
>>
>> `With the --cachemode option, the cache mode can be set when creating
>> a cache LV, or changed on an existing cache LV.`
>>
>> However, it does not seem to work:
>>
>> # lvs -o cache_mode vg_raid10/lv_var
>>   CacheMode
>>   writethrough
>> # lvconvert --cachemode writeback vg_raid10/lv_var
>> # lvs -o cache_mode vg_raid10/lv_var
>>   CacheMode
>>   writethrough
>>
>> (Fedora 23, 4.8.14)
>>
>> The `lvconvert` command produces no output, and there is nothing in
>> dmesg or the journal.
>
> Have you tried adding the "-v" or "--verbose" flags to see if there
> is an issue?

 No change:

 # lvconvert --verbose --cachemode writeback vg_raid10/lv_var
 # lvs -o cache_mode vg_raid10/lv_var
   CacheMode
   writethrough
>>>
>>> Looking at the man page for lvconvert (at least under F24 and F25), the
>>> "--type cache" flag is necessary to specify the "--cachemode writeback"
>>> option:
>>>
>>> # lvconvert --verbose --type cache --cachemode writeback 
>>> vg_raid10/lv_var
>>>
>>> You might have to specify the cache pool stuff as well. Not sure. I've
>>> never done this.
>>
>> Yup, that's what I tried in the first place, but that doesn't work either:
>>
>> # lvconvert --verbose --type cache --cachemode writeback vg_raid10/lv_var
>>   --cache requires --cachepool.
>>   Run `lvconvert --help' for more information.
>>
>> Ok fine:
>>
>> # lvconvert --verbose --type cache --cachepool
>> vg_raid10/lv_cache_pool_var --cachemode writeback vg_raid10/lv_var
>> Executing: /usr/sbin/modprobe dm-cache-mq
>> Executing: /usr/sbin/modprobe dm-cache-smq
>>   Cache is not supported with cache segment type of the original
>> logical volume vg_raid10/lv_var.
>>
>> Argh.
> 
> Did you follow the examples in "man lvmcache" when you set this up?
> Something isn't right with the way the cache pool is set up.

I did -- and the caching itself seems to be working just fine:

# lvs -o lv_name,vg_name,pool_lv,cache_read_hits,cache_read_misses
vg_raid10/lv_var
  LV VGPoolCacheReadHitsCacheReadMisses
  lv_var vg_raid10 [lv_cache_pool_var]9610527540

> As I said, I've never done LVM cache stuff. I'd have to tinker with it
> at home tonight (not risking my production machines here at the
> office).

Appreciate the help.

Regards,
Raman
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Google Chrome generates many audit type 1326 messages

2016-12-28 Thread Alchemist
2016-12-28 14:44 GMT+02:00 Patrick O'Callaghan :

> On Tue, 2016-12-27 at 21:17 +0200, Alchemist wrote:
> > 2016-12-27 21:00 GMT+02:00 Patrick O'Callaghan :
> >
> > > On Tue, 2016-12-27 at 08:48 -0500, Tom Horsley wrote:
> > > > On Tue, 27 Dec 2016 13:35:09 +
> > > > Patrick O'Callaghan wrote:
> > > >
> > > > > b) can be turned off?
> > > >
> > > > Edit grub.cfg and put audit=0 on the kernel command line.
> > > > Disable the auditd service.
> > > > No more audit messages from anything :-).
> > >
> > > Wasn't really the question. I want to know what it's telling me before
> > > I decide whether to turn it off.
> > >
> > >
> > >
> >
> > http://billauer.co.il/blog/2015/08/linux-google-chrome-aw-snap-seccomp/
>
> Thanks, I had used ausearch to confirm these are SECCOMP errors, i.e.
> problems with Chrome sandboxing (which apparently have been around for
> a long time). However the URL above recommends just running Chrome
> without the sandbox, which a) isn't a solution and b) is no longer
> supported.
>
> Now that I know what it is, I can just ignore the audit errors.
>
>
Yes, or you may add something like

-a exclude,always -F msgtype=1326
or
-a exclude,always -F exe=/opt/google/chrome/chrome

to /etc/audit/audit.rules
systemctl restart auditd

see man auditctl

Because depending on Your Chrome usage, it could flood logs and make
difficult to search something truly important.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Changing lvmcache mode

2016-12-28 Thread Rick Stevens
On 12/28/2016 03:46 PM, Raman Gupta wrote:
> On 12/28/2016 06:35 PM, Rick Stevens wrote:
>> On 12/28/2016 03:14 PM, Raman Gupta wrote:
>>> On 12/28/2016 04:24 PM, Rick Stevens wrote:
 On 12/28/2016 10:33 AM, Raman Gupta wrote:
> I would like to change the cache mode of an existing lvm cache volume.
>
> I see the following in the man page:
>
> `With the --cachemode option, the cache mode can be set when creating
> a cache LV, or changed on an existing cache LV.`
>
> However, it does not seem to work:
>
> # lvs -o cache_mode vg_raid10/lv_var
>   CacheMode
>   writethrough
> # lvconvert --cachemode writeback vg_raid10/lv_var
> # lvs -o cache_mode vg_raid10/lv_var
>   CacheMode
>   writethrough
>
> (Fedora 23, 4.8.14)
>
> The `lvconvert` command produces no output, and there is nothing in
> dmesg or the journal.

 Have you tried adding the "-v" or "--verbose" flags to see if there
 is an issue?
>>>
>>> No change:
>>>
>>> # lvconvert --verbose --cachemode writeback vg_raid10/lv_var
>>> # lvs -o cache_mode vg_raid10/lv_var
>>>   CacheMode
>>>   writethrough
>>
>> Looking at the man page for lvconvert (at least under F24 and F25), the
>> "--type cache" flag is necessary to specify the "--cachemode writeback"
>> option:
>>
>>  # lvconvert --verbose --type cache --cachemode writeback 
>> vg_raid10/lv_var
>>
>> You might have to specify the cache pool stuff as well. Not sure. I've
>> never done this.
> 
> Yup, that's what I tried in the first place, but that doesn't work either:
> 
> # lvconvert --verbose --type cache --cachemode writeback vg_raid10/lv_var
>   --cache requires --cachepool.
>   Run `lvconvert --help' for more information.
> 
> Ok fine:
> 
> # lvconvert --verbose --type cache --cachepool
> vg_raid10/lv_cache_pool_var --cachemode writeback vg_raid10/lv_var
> Executing: /usr/sbin/modprobe dm-cache-mq
> Executing: /usr/sbin/modprobe dm-cache-smq
>   Cache is not supported with cache segment type of the original
> logical volume vg_raid10/lv_var.
> 
> Argh.

Did you follow the examples in "man lvmcache" when you set this up?
Something isn't right with the way the cache pool is set up.

As I said, I've never done LVM cache stuff. I'd have to tinker with it
at home tonight (not risking my production machines here at the
office).
--
- Rick Stevens, Systems Engineer, AllDigitalri...@alldigital.com -
- AIM/Skype: therps2ICQ: 226437340   Yahoo: origrps2 -
--
- The world is coming to an end ... SAVE YOUR FILES!!!   -
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Changing lvmcache mode

2016-12-28 Thread Raman Gupta
On 12/28/2016 06:35 PM, Rick Stevens wrote:
> On 12/28/2016 03:14 PM, Raman Gupta wrote:
>> On 12/28/2016 04:24 PM, Rick Stevens wrote:
>>> On 12/28/2016 10:33 AM, Raman Gupta wrote:
 I would like to change the cache mode of an existing lvm cache volume.

 I see the following in the man page:

 `With the --cachemode option, the cache mode can be set when creating
 a cache LV, or changed on an existing cache LV.`

 However, it does not seem to work:

 # lvs -o cache_mode vg_raid10/lv_var
   CacheMode
   writethrough
 # lvconvert --cachemode writeback vg_raid10/lv_var
 # lvs -o cache_mode vg_raid10/lv_var
   CacheMode
   writethrough

 (Fedora 23, 4.8.14)

 The `lvconvert` command produces no output, and there is nothing in
 dmesg or the journal.
>>>
>>> Have you tried adding the "-v" or "--verbose" flags to see if there
>>> is an issue?
>>
>> No change:
>>
>> # lvconvert --verbose --cachemode writeback vg_raid10/lv_var
>> # lvs -o cache_mode vg_raid10/lv_var
>>   CacheMode
>>   writethrough
> 
> Looking at the man page for lvconvert (at least under F24 and F25), the
> "--type cache" flag is necessary to specify the "--cachemode writeback"
> option:
> 
>   # lvconvert --verbose --type cache --cachemode writeback 
> vg_raid10/lv_var
> 
> You might have to specify the cache pool stuff as well. Not sure. I've
> never done this.

Yup, that's what I tried in the first place, but that doesn't work either:

# lvconvert --verbose --type cache --cachemode writeback vg_raid10/lv_var
  --cache requires --cachepool.
  Run `lvconvert --help' for more information.

Ok fine:

# lvconvert --verbose --type cache --cachepool
vg_raid10/lv_cache_pool_var --cachemode writeback vg_raid10/lv_var
Executing: /usr/sbin/modprobe dm-cache-mq
Executing: /usr/sbin/modprobe dm-cache-smq
  Cache is not supported with cache segment type of the original
logical volume vg_raid10/lv_var.

Argh.

Regards,
Raman
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Shell question

2016-12-28 Thread JD



On 12/28/2016 06:14 AM, Andy Blanchard wrote:

On 27 December 2016 at 22:49, JD  wrote:

Reading lines from 2 files in such a way that each iteration
lets me read the next line from each file so that the items
read from each file are in sync as far as line number is concerned.
Is this "doable"?

Maybe a little out of the box, but far simpler than the other
solutions so far if it'll do what you need:

egrep -Hn .   | sort -t: -k2 | cut -d: -f3-

It'll work with any number of input files, wildcards, and you play
with the sort/cut parts to get more descriptive output if you want as
well, e.g:

egrep -Hn .   ...  | sort -t: -k2 | cut -d: -f1,3-


Andy

Does not work :(
it outputs first all the lines in file 1, followed by all the lines in 
file2.

In my case the sort and the cut are not even needed.
Jon LaBadie's example worked like a charm

exec 5< .kshrc
exec 6< .profile

while read -u 5 one && read -u 6 two
do
echo $one
echo $two
done
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Shell question

2016-12-28 Thread JD



On 12/28/2016 05:55 AM, Robert Nichols wrote:

On 12/28/2016 01:02 AM, Joachim Backes wrote:

On 12/27/2016 11:49 PM, JD wrote:

Reading lines from 2 files in such a way that each iteration
lets me read the next line from each file so that the items
read from each file are in sync as far as line number is concerned.
Is this "doable"?

For a single file, indexing to next line is automatic, visa vis
while read line; do
echo $line
done < some_file.txt

for when more than 1 file is involved, it is not so easy ...


JD,

If using the bash, you could introduce file descriptors for each file 
you are reading from ( set the fie descriptor by using the exec 
command) and then read using the -u option for each file.


Indeed!  I was just working on a script that has lines like:
exec 3< <(gunzip -fc "$Infile_1z" | tr '\0' '\n')
exec 4< "$Infile_2"
...
while [[ various_conditions ]]; do
read -r -u 3 Data1 || break
read -r -u 4 Data2 || { echo "EOF on $Infile_2"; exit 1; }
...
done

The reads stay in sync just fine.


Ala Jon LaBadie's example:

exec 5< .kshrc
exec 6< .profile while read -u 5 one && read -u 6 two
do
echo $one
echo $two
done


___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Changing lvmcache mode

2016-12-28 Thread Rick Stevens
On 12/28/2016 03:14 PM, Raman Gupta wrote:
> On 12/28/2016 04:24 PM, Rick Stevens wrote:
>> On 12/28/2016 10:33 AM, Raman Gupta wrote:
>>> I would like to change the cache mode of an existing lvm cache volume.
>>>
>>> I see the following in the man page:
>>>
>>> `With the --cachemode option, the cache mode can be set when creating
>>> a cache LV, or changed on an existing cache LV.`
>>>
>>> However, it does not seem to work:
>>>
>>> # lvs -o cache_mode vg_raid10/lv_var
>>>   CacheMode
>>>   writethrough
>>> # lvconvert --cachemode writeback vg_raid10/lv_var
>>> # lvs -o cache_mode vg_raid10/lv_var
>>>   CacheMode
>>>   writethrough
>>>
>>> (Fedora 23, 4.8.14)
>>>
>>> The `lvconvert` command produces no output, and there is nothing in
>>> dmesg or the journal.
>>
>> Have you tried adding the "-v" or "--verbose" flags to see if there
>> is an issue?
> 
> No change:
> 
> # lvconvert --verbose --cachemode writeback vg_raid10/lv_var
> # lvs -o cache_mode vg_raid10/lv_var
>   CacheMode
>   writethrough

Looking at the man page for lvconvert (at least under F24 and F25), the
"--type cache" flag is necessary to specify the "--cachemode writeback"
option:

# lvconvert --verbose --type cache --cachemode writeback 
vg_raid10/lv_var

You might have to specify the cache pool stuff as well. Not sure. I've
never done this.
--
- Rick Stevens, Systems Engineer, AllDigitalri...@alldigital.com -
- AIM/Skype: therps2ICQ: 226437340   Yahoo: origrps2 -
--
-"Hello. My PID is Inigo Montoya.  You `kill -9'-ed my parent-
- process.  Prepare to vi."  -
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Shell question

2016-12-28 Thread JD



On 12/28/2016 12:02 AM, Joachim Backes wrote:

On 12/27/2016 11:49 PM, JD wrote:

Reading lines from 2 files in such a way that each iteration
lets me read the next line from each file so that the items
read from each file are in sync as far as line number is concerned.
Is this "doable"?

For a single file, indexing to next line is automatic, visa vis
while read line; do
echo $line
done < some_file.txt

for when more than 1 file is involved, it is not so easy ...


JD,

If using the bash, you could introduce file descriptors for each file 
you are reading from ( set the fie descriptor by using the exec 
command) and then read using the -u option for each file.


Kind regards

Joachim Backes




Hypothetical (of course, non-working example):

export index=1
while true do;
file_A_line=`read line$index`  # Read from file A
file_B_line=`read line$index`  # read from file B
[ x$file_A_line = x -o x$file_B_line = x ] && break

index=`expr $index + 1`
done

So how can the reading from 2 files be accomplished and keep the index
to next line in sync?

I know it is a no brainer with a C program.

Thanx.

Yep.
Jon LaBadie introduced me to:

exec 5< .kshrc
exec 6< .profile
while read -u 5 one && read -u 6 two; do
echo $one
echo $two
done
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Changing lvmcache mode

2016-12-28 Thread Raman Gupta
On 12/28/2016 04:24 PM, Rick Stevens wrote:
> On 12/28/2016 10:33 AM, Raman Gupta wrote:
>> I would like to change the cache mode of an existing lvm cache volume.
>>
>> I see the following in the man page:
>>
>> `With the --cachemode option, the cache mode can be set when creating
>> a cache LV, or changed on an existing cache LV.`
>>
>> However, it does not seem to work:
>>
>> # lvs -o cache_mode vg_raid10/lv_var
>>   CacheMode
>>   writethrough
>> # lvconvert --cachemode writeback vg_raid10/lv_var
>> # lvs -o cache_mode vg_raid10/lv_var
>>   CacheMode
>>   writethrough
>>
>> (Fedora 23, 4.8.14)
>>
>> The `lvconvert` command produces no output, and there is nothing in
>> dmesg or the journal.
> 
> Have you tried adding the "-v" or "--verbose" flags to see if there
> is an issue?

No change:

# lvconvert --verbose --cachemode writeback vg_raid10/lv_var
# lvs -o cache_mode vg_raid10/lv_var
  CacheMode
  writethrough


Regards,
Raman
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Changing lvmcache mode

2016-12-28 Thread Rick Stevens
On 12/28/2016 10:33 AM, Raman Gupta wrote:
> I would like to change the cache mode of an existing lvm cache volume.
> 
> I see the following in the man page:
> 
> `With the --cachemode option, the cache mode can be set when creating
> a cache LV, or changed on an existing cache LV.`
> 
> However, it does not seem to work:
> 
> # lvs -o cache_mode vg_raid10/lv_var
>   CacheMode
>   writethrough
> # lvconvert --cachemode writeback vg_raid10/lv_var
> # lvs -o cache_mode vg_raid10/lv_var
>   CacheMode
>   writethrough
> 
> (Fedora 23, 4.8.14)
> 
> The `lvconvert` command produces no output, and there is nothing in
> dmesg or the journal.

Have you tried adding the "-v" or "--verbose" flags to see if there
is an issue?
--
- Rick Stevens, Systems Engineer, AllDigitalri...@alldigital.com -
- AIM/Skype: therps2ICQ: 226437340   Yahoo: origrps2 -
--
-  Any sufficiently advanced technology is indistinguishable from a  -
-  rigged demo.  -
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Gigabyte GeForce GT 740

2016-12-28 Thread Heinz Diehl
On 27.12.2016, Ahmad Samir wrote: 

> I have an nVidia gtx 770 and it works well on F25 GNOME with the
> proprietary driver (from the negativo17 repo). When I tried the open
> source nouveau driver it had some issues (e.g. vertical sync).

With the proprietary nvidia driver, you can improve vsync/tearing
using nvidia-settings:

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { 
ForceCompositionPipeline = On }"

You can also make this permanent in Xorg.conf.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Shell question

2016-12-28 Thread Samuel Sieb

On 12/27/2016 02:49 PM, JD wrote:

Reading lines from 2 files in such a way that each iteration
lets me read the next line from each file so that the items
read from each file are in sync as far as line number is concerned.
Is this "doable"?

For a single file, indexing to next line is automatic, visa vis
while read line; do
echo $line
done < some_file.txt


You can use the paste command to do the merging:
paste -d '\n' file1 file2
Then it depends on how you want to read the lines, but you could do:
done < <(paste -d '\n' file1 file2)
The first read will get the first line from the first line and the 
second read will get the first line from the second file and so on.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Changing lvmcache mode

2016-12-28 Thread Raman Gupta
I would like to change the cache mode of an existing lvm cache volume.

I see the following in the man page:

`With the --cachemode option, the cache mode can be set when creating
a cache LV, or changed on an existing cache LV.`

However, it does not seem to work:

# lvs -o cache_mode vg_raid10/lv_var
  CacheMode
  writethrough
# lvconvert --cachemode writeback vg_raid10/lv_var
# lvs -o cache_mode vg_raid10/lv_var
  CacheMode
  writethrough

(Fedora 23, 4.8.14)

The `lvconvert` command produces no output, and there is nothing in
dmesg or the journal.

Regards,
Raman
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: fedora25 mate - samsung scx4623f - no xsane backends - frontends

2016-12-28 Thread Louis Lagendijk
On Wed, 2016-12-28 at 12:47 +, johans...@telkomsa.net wrote:
> good day, Installed fedora25 - fully updated -installed xsane from
> repo - samsung scx4623f - works fine on various othet linux installed
> distros - multi boot setup.
> No detection by xsane scanner - xsane from repo but no front or
> backends on system - unable to locate any installable software.
> Kindly assist to get scanner working. Printer works fine.
> Thanks.  Johan.
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
check if you have all relevant sane packges installed:
[louis@travel ~]$ rpm -qa |grep sane
xsane-common-0.999-20.fc24.x86_64
libsane-hpaio-3.16.11-3.fc25.x86_64
sane-backends-1.0.25-4.fc25.x86_64
sane-backends-daemon-1.0.25-4.fc25.x86_64
xsane-0.999-20.fc24.x86_64
sane-backends-libs-1.0.25-4.fc25.x86_64
sane-backends-drivers-scanners-1.0.25-4.fc25.x86_64
[louis@travel ~]$ 

and check http://zmodemz.blogspot.nl/2011/04/setting-up-samsung-scx-462
3f-under.html
and check if a line
usb 0x04e8 0x3434
is included in /etc/sane.d/xerox_mfp.conf

/Louis
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: 3.3 gigs in /var/cache/PackageKit/24/metadata after dnf system-upgrade

2016-12-28 Thread Matthew Miller
On Wed, Dec 28, 2016 at 03:21:06PM +0100, Dario Lesca wrote:
> > That cache _is_ the packagekit database. You can remove it safely.
> Why not use the same cache of dnf?

That is work in progress. Both systems use the cache a little
differently and grew up independently, so there is some work to align
them. 

-- 
Matthew Miller

Fedora Project Leader
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: 3.3 gigs in /var/cache/PackageKit/24/metadata after dnf system-upgrade

2016-12-28 Thread Dario Lesca
Il giorno mar, 27/12/2016 alle 11.42 -0500, Matthew Miller ha scritto:
> That cache _is_ the packagekit database. You can remove it safely.

Why not use the same cache of dnf?

In this way when someone use dnf install something the cache will be
removed.

IMHO Two cache of same (BIG!) things is not a good solution.

-- 
Dario Lesca
(inviato dal mio Linux Fedora 24 Workstation)
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Shell question

2016-12-28 Thread Andy Blanchard
On 27 December 2016 at 22:49, JD  wrote:
> Reading lines from 2 files in such a way that each iteration
> lets me read the next line from each file so that the items
> read from each file are in sync as far as line number is concerned.
> Is this "doable"?

Maybe a little out of the box, but far simpler than the other
solutions so far if it'll do what you need:

   egrep -Hn .   | sort -t: -k2 | cut -d: -f3-

It'll work with any number of input files, wildcards, and you play
with the sort/cut parts to get more descriptive output if you want as
well, e.g:

   egrep -Hn .   ...  | sort -t: -k2 | cut -d: -f1,3-


Andy
-- 

The only person to have all his work done by Friday was Robinson Crusoe
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Shell question

2016-12-28 Thread Robert Nichols

On 12/28/2016 01:02 AM, Joachim Backes wrote:

On 12/27/2016 11:49 PM, JD wrote:

Reading lines from 2 files in such a way that each iteration
lets me read the next line from each file so that the items
read from each file are in sync as far as line number is concerned.
Is this "doable"?

For a single file, indexing to next line is automatic, visa vis
while read line; do
echo $line
done < some_file.txt

for when more than 1 file is involved, it is not so easy ...


JD,

If using the bash, you could introduce file descriptors for each file you are 
reading from ( set the fie descriptor by using the exec command) and then read 
using the -u option for each file.


Indeed!  I was just working on a script that has lines like:
exec 3< <(gunzip -fc "$Infile_1z" | tr '\0' '\n')
exec 4< "$Infile_2"
...
while [[ various_conditions ]]; do
read -r -u 3 Data1 || break
read -r -u 4 Data2 || { echo "EOF on $Infile_2"; exit 1; }
...
done

The reads stay in sync just fine.

--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


fedora25 mate - samsung scx4623f - no xsane backends - frontends

2016-12-28 Thread johansche
good day, Installed fedora25 - fully updated -installed xsane from repo - 
samsung scx4623f - works fine on various othet linux installed distros - multi 
boot setup.
No detection by xsane scanner - xsane from repo but no front or backends on 
system - unable to locate any installable software.
Kindly assist to get scanner working. Printer works fine. Thanks.  Johan.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Google Chrome generates many audit type 1326 messages

2016-12-28 Thread Patrick O'Callaghan
On Tue, 2016-12-27 at 21:17 +0200, Alchemist wrote:
> 2016-12-27 21:00 GMT+02:00 Patrick O'Callaghan :
> 
> > On Tue, 2016-12-27 at 08:48 -0500, Tom Horsley wrote:
> > > On Tue, 27 Dec 2016 13:35:09 +
> > > Patrick O'Callaghan wrote:
> > > 
> > > > b) can be turned off?
> > > 
> > > Edit grub.cfg and put audit=0 on the kernel command line.
> > > Disable the auditd service.
> > > No more audit messages from anything :-).
> > 
> > Wasn't really the question. I want to know what it's telling me before
> > I decide whether to turn it off.
> > 
> > 
> > 
> 
> http://billauer.co.il/blog/2015/08/linux-google-chrome-aw-snap-seccomp/

Thanks, I had used ausearch to confirm these are SECCOMP errors, i.e.
problems with Chrome sandboxing (which apparently have been around for
a long time). However the URL above recommends just running Chrome
without the sandbox, which a) isn't a solution and b) is no longer
supported.

Now that I know what it is, I can just ignore the audit errors.

poc
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Fedora 25 GUI Problem

2016-12-28 Thread Patrick O'Callaghan
On Mon, 2016-12-26 at 16:45 +, Patrick O'Callaghan wrote:
> On Mon, 2016-12-26 at 21:56 +0800, Ed Greshko wrote:
> > 
> > On 12/26/16 20:37, Patrick O'Callaghan wrote:
> > > On Mon, 2016-12-26 at 07:55 +0800, Ed Greshko wrote:
> > > > For some reason there is no "Waiting for process" in the failing case.  
> > > > So, it would seem,
> > > > either the PID being checked had already finished but another one had 
> > > > started and locked
> > > > the database but somehow dnf is unaware of it and tries to move forward 
> > > > with the installation.
> > > 
> > > So a race condition. Definitely looks like a dnf bug.
> > > 
> > 
> > Or, in this case, how the python3-dnf-plugins-extras-tracer is implemented.
> 
> Well I'm including the plugins as a dnf catchall. Anyway, do you want
> to report it? You did more poking at it than I did.

It happened again with the latest Nvidia update. I found this BZ
report: https://bugzilla.redhat.com/show_bug.cgi?id=1317685 and added a
comment.

poc
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Screen rapidly blanking on and off

2016-12-28 Thread Ted Roche
OP once again, attempting to wrest back the topic to a simple Inspiron
5558 i5 laptop, no second adapter, running Intel 5500 graphics.
Previously, while updating F23's updates, including many Intel drivers
and kernel 4.7.7, I continue to see the blanking behavior, in the
console before loading the desktop GNOME system.

One again, invoking xrandr in a terminal within GNOME and issuing
xrandr -r 48 (at the native 1920x1080 resolution) stops the screen
from blanking 1 second after each keystroke. Issuing xrandr -r 60
causes the blanking to restart, and reinssuing the -r 48 restores the
screen to normal operation.

Also, cold shutdown and restart will also clear the behavior. Perhaps
on reboot, the video driver is left in an unstable state.

Update: updated to F24 due to F23 EOL, and running GNOME on Wayland,
not X with this version:

 4.8.15-200.fc24.x86_64 #1 SMP Thu Dec 15 23:09:22 UTC 2016 x86_64
x86_64 x86_64 GNU/Linux

installed the latest updates via "Software" and upon reboot, the
machine was blinking again. Initial grub screen is fine and stable,
but dialog for LUKS password, sddm login screen, and GNOME on Wayland
are all blinking.

The xrandr trick no longer works, since Wayland isn't X. Cold shutdown
and restart did resolve the issue.

I find BZ fairly hostile. Can anyone suggest an existing bug report,
or the proper component to post this to?



On Tue, Oct 11, 2016 at 3:25 PM, Ted Roche  wrote:
> OP, here. The Inspiron (5558) has built-in Intel 5500 graphics.
>
> Plugging in an HDMI external monitor and enabling it with the
> "Display" applet in Settings causes the internal display to return to
> the blanking behavior.The external monitor does not blink.
>
> Using GNOME 3.18.2.
>
> Playing a Youtube video in Chromium on the external monitor causes the
> internal laptop display to stop blanking. Scrolling down the page
> until the video is no longer visible, and the blanking starts
> immediately.
>
> Thinking this is some "blank on inactive" timer gone wild. Any
> suggestions on what to look at or poke around in?
>
>
>
>
>
> On Tue, Oct 11, 2016 at 2:32 PM, Rick Stevens  wrote:
>> On 10/11/2016 11:19 AM, Tim Evans wrote:
>>> On 10/11/2016 10:55 AM, Roberto Ragusa wrote:
 On 10/10/2016 09:30 PM, Tim Evans wrote:
> On 10/10/2016 02:59 PM, Ted Roche wrote:
>
> I regularly see something *somewhat* similar on my Lenovo T530.
> Specifically, after running for a couple of days, it begins blanking
> the screen after a reliable 15 seconds of inactivity.
>
> At first, I thought this might be a hardware issue with the
> lid/on-off switch, since I do close the lid when I'm away from the
> system. However, I don't see this in Windows 10 on this dual-boot
> laptop.
>
> Interestingly, when the screen returns from black after I touch a
> key, it often returns to a different window (e.g., I was reading mail
> in Thunderbird when it blanked, but Chrome appears when it lights
> back up).  AND, after a second or two, the screen switches back to
> the original window (e.g., t-bird). This tends to suggest something
> X-related.

 In my case I see instants of black screen on a Lenovo P50 with
 Fedora 24, using Intel graphics.

 Looks like a refresh problem, or maybe something related to switching
 the panel to the right gfx adapter (there is a dormant nvidia too,
 with nouveau blacklisted).

 My compositor is kwin.

>>>
>>> Thank you, Roberto.  My T530 also has Intel graphics, but I have not
>>> installed the Nvidia drivers--only the Nouveau that was installed at
>>> install time. Not sure what you mean about "switching" adaptors.
>>
>> He means that if you have multiple graphics adapters, does switching
>> your display to one of the other adapters exhibit the same problem.
>> Since your T530 only has one graphics adapter, that doesn't apply. I
>> guess you could try using an external monitor and see if the problem
>> persists.
>> --
>> - Rick Stevens, Systems Engineer, AllDigitalri...@alldigital.com -
>> - AIM/Skype: therps2ICQ: 226437340   Yahoo: origrps2 -
>> --
>> -Overweight:  When you step on your dog's tail...and it dies.-
>> --
>> ___
>> users mailing list -- users@lists.fedoraproject.org
>> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>
>
>
> --
> Ted Roche
> Ted Roche & Associates, LLC
> http://www.tedroche.com



-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org


Re: Docker storage on Fedora 25?

2016-12-28 Thread Daniel J Walsh


On 12/27/2016 10:55 AM, Dave Johansen wrote:
> On Tue, Dec 27, 2016 at 5:16 AM, Daniel J Walsh  > wrote:
>
>
>
> On 12/26/2016 08:39 PM, Matthew Miller wrote:
> > On Mon, Dec 26, 2016 at 12:37:46PM -0700, Dave Johansen wrote:
> >>
> 
> http://www.projectatomic.io/blog/2015/06/notes-on-fedora-centos-and-docker-storage-drivers/
> 
> 
> >> Does the above recommendation still hold true with Fedora
> 25/Docker 1.12.5?
> >> If so, is the configuration the same?
> > Quick glance, yeah, looks still basically right. You have a new
> option,
> > overlay2, which is a newer Docker driver for OverlayFS and generally
> > preferred. See
> >
> https://docs.docker.com/engine/userguide/storagedriver/selectadriver/
> 
>
>  
> F25 now uses docker-storage-setup, so the right way to select the
> driver was a bit different, but this instructions showed how to do it:
> https://access.redhat.com/documentation/en/red-hat-enterprise-linux-atomic-host/7/paged/managing-containers/chapter-1-managing-storage-with-docker-formatted-containers#overlay_graph_driver
>
> > *But*, I'm not sure offhand if SELinux support is complete -- I
> know it
> > *was being worked on.
> >
> SELinux should work fine on F25.  We are working to change the default
> in F26 to the overlay2 driver.
>
>
> That's good to hear. Do I need to add the :z or :Z when mounting a
> host directory for SELinux to work? If so, will that cause any
> problems when running on Mac/Windows?
>
If you want to share the volume on an SELinux system then you need :z
and :Z, on a non SELinux system these options will be ignored.  If you
are using a docker client on Mac/Windows and a docker daemon on an
SELinux system, then these options should work fine.
> Thanks for the help,
> Dave
>
>
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org