LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2020, 09:27 AM   #1
blue-whale
LQ Newbie
 
Registered: Aug 2020
Location: Cambridge UK.
Distribution: Debian buster + mate desktop
Posts: 10

Rep: Reputation: Disabled
MATE search tool cannot find text files with known content


I run Debian buster with the Mate desktop - recently upgraded from stretch. If I launch mate-search-tool from the panel, I get the message "No files found". I experimented with launching from the command line - obtained via mate-terminal. Here are the results:

Code:
~$ mate-search-tool                           NONE found
~$ whereis mate-search-tool
mate-search-tool: /usr/bin/mate-search-tool
 
~$ /usr/bin/mate-search-tool                  NONE found 
~$ cd /usr/bin
/usr/bin$ mate-search-tool                    NONE found
/usr/bin$ sudo mate-search-tool  
[sudo] password for geoff: ****               FOUND as expected
I wonder if other users of debian mate mate-search-tool have had this experience? The manual for mate-search-tool just repeats what is on the GUI, and dconf has little to add. There are no relevant mate-search-tool related configuration files in my ~$/.config directory.

I am hoping that someone knows of a config file that may need tuning?
 
Old 08-31-2020, 06:43 PM   #2
individual
Member
 
Registered: Jul 2018
Posts: 315
Blog Entries: 1

Rep: Reputation: 233Reputation: 233Reputation: 233
From the man page:
Quote:
MATE Search Tool uses the find, grep, and locate UNIX commands.
Have you tried running updatedb and then running mate-search-tool? Also, did mate-search-tool actually return results when you ran it as root?
 
1 members found this post helpful.
Old 09-01-2020, 09:45 AM   #3
blue-whale
LQ Newbie
 
Registered: Aug 2020
Location: Cambridge UK.
Distribution: Debian buster + mate desktop
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks individual for your two comments. To answer in reverse order:

I get a root terminal using
Code:
Mate->Applications->System Tools->Root Terminal
added to the panel. This did actually return correct results. When the search is completed, the terminal shows an error message:
Code:
(mate-search-tool:6497): EggSMClient-WARNING **: 14:54:52.281: 
Failed to connect to the session manager: 
None of the authentication protocols specified are supported
In my original post the sudo search also worked.

For your other question, I do not have the updatedb command available. This is provided by the packages dlocate and mlocate, neither of which are installed on my system. I am wondering which is better for my simple requirements - basically searching through the file system looking for particular bits of text?

I have been doing a bit of digging, as apart from this mate-search-tool issue I also have GUI issues in pluma. I sometimes find a huge number of errors reported in .xsession-errors, many associated with mate and I wonder if those are relevant? But I think those issues should be in different thread.

Just one more thing: the root terminal is launched from gksu , and it turns out that gksu is obsoleted. It is used in several of the mate utilities.
 
Old 09-03-2020, 11:56 AM   #4
blue-whale
LQ Newbie
 
Registered: Aug 2020
Location: Cambridge UK.
Distribution: Debian buster + mate desktop
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by individual View Post
From the man page: Have you tried running updatedb and then running mate-search-tool?
I have now installed the package dlocate. This provides a perl script and some manuals:
Code:
/usr/share/dlocate/updatedb
/usr/share/man/man1/dlocate.1.gz
/usr/share/man/man8/update-dlocatedb.8.gz
But there is no mention of the command updatedb in either of the above manuals.

I wonder if I have the right package?

What exactly is updatedb supposed to do?
 
Old 09-04-2020, 04:06 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
updatedb updates the db (sic) that the locate cmd uses

I never rely on that because it's only right immediately after a run (from cron usually) daily.

I just use good old 'find', which is slower because it actually goes and searches the disk immediately, but I usually have at least a rough idea where stuff is, so I rarely search the whole disk.
 
Old 09-05-2020, 06:52 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by blue-whale View Post
Code:
~$ mate-search-tool                           NONE found
~$ whereis mate-search-tool
mate-search-tool: /usr/bin/mate-search-tool
 
~$ /usr/bin/mate-search-tool                  NONE found 
~$ cd /usr/bin
/usr/bin$ mate-search-tool                    NONE found
/usr/bin$ sudo mate-search-tool  
[sudo] password for geoff: ****               FOUND as expected
This looks like you're paraphrasing, not like the actual terminal output.
Please show us the actual terminal output.
Also add
Code:
ls -l /usr/bin/mate-search-tool
 
Old 09-06-2020, 12:27 PM   #7
blue-whale
LQ Newbie
 
Registered: Aug 2020
Location: Cambridge UK.
Distribution: Debian buster + mate desktop
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
This looks like you're paraphrasing, not like the actual terminal output.
Please show us the actual terminal output.
Also add
Code:
ls -l /usr/bin/mate-search-tool
I am aware of the dangers of paraphrasing, and for this reason showed the exact terminal output. When you run from the terminal, the search dialogue is displayed. When the search is completed, the terminal is waiting for further input. On closing the dialogue, the command completes.

However, rerunning the experiments, I went one step further to see the command result. I have repeated all the experiments. They give the same results and I have shown just the first and last here. I have added your request and shown the command result as well - all copied as is from the terminal .

Code:
~$ ls -lF /usr/bin/mate-search-tool
-rwxr-xr-x 1 root root 171968 Apr 27  2019 /usr/bin/mate-search-tool*

~$ mate-search-tool
~$ echo $?
0
NONE FOUND

~$ cd /usr/bin
/usr/bin$ sudo mate-search-tool
[sudo] password for geoff: 
/usr/bin$ echo $?
0
FOUND AS EXPECTED
 
Old 09-06-2020, 03:37 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ OK, thanks for explaining it better.
What are you searching for?
Possibly you (normal user) just don't have permission to look inside the files that contain it.

BTW, running a GUI tool as root can mess things up. Try not to do it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Please suggest appropriate software tool to search a text/string across multiple different files shelja.fet@mriu.edu.in Linux - Newbie 16 01-19-2016 12:41 PM
LXer: Ubuntu MATE 15.04 Arrives With MATE Desktop 1.8.2 and MATE Tweak LXer Syndicated Linux News 0 05-15-2015 09:30 AM
[SOLVED] Find Text After String Search in Text File redir Linux - Newbie 12 08-02-2011 03:57 PM
[SOLVED] How to search text in all text files of all the sub-directories ? moicpit Linux - Newbie 7 04-21-2010 08:45 AM
Search tools (Affinity, Tracker Search Tool, etc.) not working - don't find any files Adamantus Linux - Newbie 1 03-29-2009 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration