Making Fedora search smarter
by cen
On stock Fedora, searching for "sound" brings up the sound and volume
control. I recently installed Audacity and since then, searching for
"sound" brings audacity as the top result. Since then I've mistakenly
launched audacity several times because of muscle memory. This is kinda
annoying.. if I needed audacity I'd simply type "audacity". My
assumption would be that search orders by alphabet.
The first point I would make that placing the exact match on top and a
system utility at that would make more sense.
Another simple improvement would be to place more used programs on top.
If I launch Sound 30 times a month and audacity 1 times you could use
that information to order them appropriately. Something in the sense of
Firefox top sites that accumulate on your blank page according to page
visits except in this case to influence the order of results.
Are there any system settings to influence the search behavior right now?
6 years, 1 month
Re: Organising photos visually
by Philip Rhoades
Richard,
> Date: Tue, 30 Jan 2018 10:54:22 -0600
> From: Richard Shaw <hobbes1069(a)gmail.com>
> Subject: Re: Organising photos visually
> To: phil(a)pricom.com.au, Community support for Fedora users
> <users(a)lists.fedoraproject.org>
> Message-ID:
> <CAN3TeO03gOP2KvH=L5MPbAryFez+w3s9CzrRafdt8hrhH2xmkA(a)mail.gmail.com>
> Content-Type: multipart/alternative;
> boundary="001a113c3c4cf77d4d0564013689"
>
> --001a113c3c4cf77d4d0564013689
> Content-Type: text/plain; charset="UTF-8"
>
> On Tue, Jan 30, 2018 at 10:45 AM, Philip Rhoades <phil(a)pricom.com.au>
> wrote:
>
>> Richard,
>>
>> On Fedora 27 x86_64:
>>
>> Traceback (most recent call last):
>> File "/bin/photini", line 6, in <module>
>> from pkg_resources import load_entry_point
>> File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
>> line
>> 3037, in <module>
>> @_call_aside
>> File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
>> line
>> 3021, in _call_aside
>> f(*args, **kwargs)
>> File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
>> line
>> 3050, in _initialize_master_working_set
>> working_set = WorkingSet._build_master()
>> File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
>> line
>> 655, in _build_master
>> ws.require(__requires__)
>> File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
>> line
>> 969, in require
>> needed = self.resolve(parse_requirements(requirements))
>> File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
>> line
>> 855, in resolve
>> raise DistributionNotFound(req, requirers)
>> pkg_resources.DistributionNotFound: The 'appdirs>=1.3' distribution
>> was
>> not found and is required by Photini
>
>
> Just saw that a little while ago, I missed some requires. I've uploaded
> a
> new RPM (same URL)
Now (had to "rpm --erase . ." first and then install the new version -
which installed a lot more stuff):
Traceback (most recent call last):
File "/bin/photini", line 11, in <module>
load_entry_point('Photini==2017.12.0', 'gui_scripts', 'photini')()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 2649, in load_entry_point
return ep.load()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 2303, in load
return self.resolve()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 2309, in resolve
module = __import__(self.module_name, fromlist=['__name__'],
level=0)
File "/usr/lib/python3.6/site-packages/photini/editor.py", line 35, in
<module>
from photini.bingmap import BingMap
File "/usr/lib/python3.6/site-packages/photini/bingmap.py", line 29,
in <module>
from photini.photinimap import PhotiniMap
File "/usr/lib/python3.6/site-packages/photini/photinimap.py", line
30, in <module>
from photini.imagelist import DRAG_MIMETYPE
File "/usr/lib/python3.6/site-packages/photini/imagelist.py", line 42,
in <module>
from photini.metadata import Metadata
File "/usr/lib/python3.6/site-packages/photini/metadata.py", line 48,
in <module>
from photini.pyqt import QtCore, QtGui
File "/usr/lib/python3.6/site-packages/photini/pyqt.py", line 52, in
<module>
from PyQt5 import QtWebKit, QtWebKitWidgets
ImportError: cannot import name 'QtWebKit'
P.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
6 years, 1 month
Re: Organising photos visually
by Cameron Simpson
[ Brought back on list, since Jon is very correct. - Cameron ]
On 30Jan2018 05:09, Jon LaBadie <jon(a)jgcomp.com> wrote:
>On Tue, Jan 30, 2018 at 08:53:32PM +1100, Cameron Simpson wrote:
>> Run a small shell script like this (untested, but happy to help debug):
>>
>> cd your-staging-directory
>> n=1
>> while :
>> do
>> for f in *.jpg
>> do
>> [ -s "$f" ] || continue
>> while :
>> do
>> target=$( printf 'your-ordered-directory/%05d-%s' "$n" "$f" )
>> [ -e "$target" ] || break
>> n=$((n+1))
>> done
>> mv "$f" "$target"
>> done
>> sleep 1
>> done
>
>I think all the files will be named 00001-<orig_name>
>When there is no name collision you skip the increment.
Yes. Need to increment after the "mv" as well. Good call.
Thanks,
Cameron Simpson <cs(a)cskk.id.au> (formerly cs(a)zip.com.au)
6 years, 1 month
rfc2307 with winbind?
by Jeff Sadowski
I have centos 6.9 working this way but I was trying to get fedora27
working with the same smb.conf file I used for centos 6.9 and ubuntu
16.04.
authconfig --updateall --smbrealm ${SUBDOMAIN}.${DOMAIN} --krb5realm
${SUBDOMAIN}.${DOMAIN} --enablewinbindauth --enablewinbind
--enablecache --enablewinbindkrb5 --enablewinbindoffline
cp domain.smb.conf /etc/samba/smb.conf
restart smbd
restart winbind
[root@fedora27 ~]# cat /etc/samba/smb.conf| sed
"s/${SUBDOMAIN}/SUBDOMAIN/g" | sed "s/${DOMAIN}/DOMAIN/g"
[global]
security = ads
realm = SUBDOMAIN.DOMAIN
workgroup = SUBDOMAIN
idmap config * : backend = tdb
idmap config * : range = 2000-7999
idmap config SUBDOMAIN:backend = ad
idmap config SUBDOMAIN:schema_mode = rfc2307
idmap config SUBDOMAIN:range = 8000-9999999
winbind nss info = rfc2307
winbind use default domain = yes
# so that the users show up in getent
winbind enum users = yes
# so that the groups show up in getent
winbind enum groups = yes
restrict anonymous = 2
#added the following 2 for the Badlock updates that change the defaults
#to no longer work with my domain controllers
ldap server require strong auth = no
client ldap sasl wrapping = plain
Expected result:
root@ubuntu16:~# getent passwd jefftest
jefftest:*:11507:8004:Jeff Test:/nfsmount/jefftest:/bin/bash
Fedora27 result:
[root@fedora27 ~]# getent passwd jefftest
jefftest:*:11507:8513::/home/SUBDOMAIN/jefftest:/bin/false
6 years, 1 month
Suspend to Ram Issues
by InvalidPath
Fully updated F27, Dell XPS 15 9550.
So last year on F26 I could safely and reliably suspend to ram from the
menu, then after the upgrade to F27 all that stopped. I just dealt with it
until last night.
So Google let em down again with the VAST majority.. if not damned near all
of the results centered around Hibernation. It seems as if Suspending to
ram just magically works for most people.
So I know that using the menu (KDE Plasma) Suspend to Ram in all fairness
just shuts down.
Now testing last night I could 'sudo systemctl suspend' and it worked.
First tkme for a minute, second time for 10 and the third overnight.
Fast-forward to this evening, I ran 'sudo systemctl suspend' upon leaving
the office. Get home and about an hour later I open the lid and it's shut
down and rebooted yet again.
So my question is, where are the most effective places (logs, config files)
to look to troubleshoot WTF is happening?
Thanks!
6 years, 1 month
Re: Organising photos visually
by Philip Rhoades
Richard,
On 2018-01-31 03:23, users-request(a)lists.fedoraproject.org wrote:
> Date: Tue, 30 Jan 2018 08:44:50 -0600
> From: Richard Shaw <hobbes1069(a)gmail.com>
> Subject: Re: Organising photos visually
> To: Community support for Fedora users <users(a)lists.fedoraproject.org>
> Message-ID:
> <CAN3TeO3_gXh=GOJVE4=Zq_Bt=T+pGZv=0-eDzt1g4oeLYQz_kA(a)mail.gmail.com>
> Content-Type: multipart/alternative;
> boundary="001a113c3c4cb25e410563ff6767"
>
> --001a113c3c4cb25e410563ff6767
> Content-Type: text/plain; charset="UTF-8"
>
>> From what I could tell searching google, you best bet is to plug in
>> the
> info you need into the EXIF data and then rename the files based on the
> EXIF data.
>
> I've never used this before but it only took me about 10 minutes to
> package:
>
> https://hobbes1069.fedorapeople.org/Photini-2017.12.0-1.fc27.noarch.rpm
>
> If someone finds it useful (for this or in general) I may be willing to
> submit a review request to include it in Fedora.
On Fedora 27 x86_64:
Traceback (most recent call last):
File "/bin/photini", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 3037, in <module>
@_call_aside
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 3021, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 3050, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 655, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 969, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py",
line 855, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'appdirs>=1.3' distribution was
not found and is required by Photini
P.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
6 years, 1 month
any reliable recipe for full install for hyperledger development?
by Robert P. J. Day
fedora-using colleague just asked me how easy it would be to install
everything necessary to start playing with linux foundation's
hyperledger (blockchain), apparently including hyperledger fabric and
composer, and whatever else can be crammed onto a fully-updated fedora
27 system.
i poked around, found this:
https://hyperledger.github.io/composer/installing/installing-index
so i just tried to follow along but i am by no means a node.js expert,
and when i tried to install composer-cli with "npm" globally:
$ sudo npm install -g composer-cli
i get various warnings about deprecated modules, about a bazillion
warnings that i have no permission ...
"to access the dev dir
/usr/lib/node_modules/composer-rest-server/node_modules/pkcs11js/.node-gyp/8.9.4"
and warnings like:
"ajv-keywords(a)2.1.1 requires a peer of ajv(a)^5.0.0 but none is
installed. You must install peer dependencies yourself"
which makes me nervous that i have no freaking clue what i'm doing
here, and have no idea which warnings are significant and which
aren't.
i'm sure i can tease all this out eventually, but has anyone already
gone through this exercise and written it up somewhere?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
6 years, 1 month
re: node.js, am i safe to delete nodejs, npm and node_modules/?
by Robert P. J. Day
followup to last query, since i have never *knowingly* done anything
with nodejs, i'm wondering how safe i am to try to wipe every trace of
it from my own fedora 27 system, then re-install.
first, it *appears* that from a package perspective, no other
*packages* appear to depend on nodejs other than the npm management
package:
$ rpm -q --whatrequires nodejs
npm-5.6.0-1.8.9.4.2.fc27.x86_64
$ rpm -q --whatrequires npm
no package requires npm
$
which suggests i can remove those two.
as for what i just installed with "npm", i tried both a local and a
global ("-g") install with npm, and the end result appeared to be
simply dumping content into a "node_modules/" directory, either in my
current directory or under /usr/lib. and there are also new
directories in my home directory, .npm/ and .node-gyp. am i safe to
just remove all of the above to pretend none of this ever happened?
thanks muchly.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
6 years, 1 month
Watchdog timer and slow shutdown
by Patrick O'Callaghan
On rebooting today my system took an age to shutdown, for no apparent
reason but possibly related to NFS mounts. Anyway, I looked at the
journal and spotted this snippet:
Jan 24 11:47:59 bree systemd[1]: Shutting down.
Jan 24 11:47:59 bree systemd[1]: Hardware watchdog 'iTCO_wdt', version
0
Jan 24 11:47:59 bree systemd[1]: Set hardware watchdog to 10min.
Jan 24 11:47:59 bree kernel: watchdog: watchdog0: watchdog did not
stop!
Jan 24 11:47:59 bree systemd-shutdown[1]: Sending SIGTERM to remaining processes...
So apparently systemd is setting a watchdog timer for 10 minutes, for
some reason best known to itself. How can I change this to (say) 5
seconds, which would be more than enough for my setup?
Also, I don't know what 'watchdog did not stop!' is supposed to mean.
poc
6 years, 1 month
Fedora27: NFS v4 terrible write performance
by Terry Barnaby
When doing a tar -xzf ... of a big source tar on an NFSv4 file system
the time taken is huge. I am seeing an overall data rate of about 1
MByte per second across the network interface.
If I copy a single large file I see a network data rate of about 110
MBytes/sec which is about the limit of the Gigabit Ethernet interface I
am using.
Now, in the past I have used the NFS "async" mount option to help with
write speed (lots of small files in the case of an untar of a set of
source files).
However, this does not seem to speed this up in Fedora27 and also I
don't see the "async" option listed when I run the "mount" command. When
I use the "sync" option it does show up in the "mount" list.
The question is, is the "async" option actually working with the NFS v4
in Fedora27 ?
6 years, 1 month