如何在Ubuntu 22.04中禁用文件索引(Tracker3)
当前,我们的新Ubuntu 22.04台式机和 tracker3> tracker3 文件索引。 我们有一个共享家庭服务器导出用户房屋,该服务器由于文件索引(Tracker-Miner-FS-3进程)而在cosntant负载下。因此,我想完全停用它。
我已经尝试过:(参见 link )
) SystemCtl - 使用者蒙版Tracker-tracktract-3.Service Tracker-Miner-FS-FS-FS-FS-FS-FS-FS-FS-FS-33.Service Tracker-Miner-RSS-33.Service Tracker-WriteBack-3.Service Tracker-xdg-portal-portal-33 fs -control -3.Service
和
tracker3 reset -s -r
(给出找到0个pids…
)
并创建 〜/.config/autostart/tracker-miner-fs-3.desktop
但这
[Desktop Entry]
Hidden=true
并不能解决问题。
tracker3守护程序
给出:
root@:~# tracker3 daemon
Miners:
01 Jul 2022, 12:04:45: ✗ File System - Not running or is a disabled plugin
但是该过程在重新启动并消耗ressources后仍在运行... 有人对如何完全禁用索引有一个想法吗?
非常感谢!
currently we have problems with our new Ubuntu 22.04 desktops and the tracker3 file indexing.
We have a shared home server exporting the user homes, which is under cosntant load due to the file indexing (tracker-miner-fs-3 process). Therefore, I would like to deactivate it completely.
I already tried this: (see LINK)
systemctl --user mask tracker-extract-3.service tracker-miner-fs-3.service tracker-miner-rss-3.service tracker-writeback-3.service tracker-xdg-portal-3.service tracker-miner-fs-control-3.service
and
tracker3 reset -s -r
(which gives Found 0 PIDs…
)
and creating~/.config/autostart/tracker-miner-fs-3.desktop
with
[Desktop Entry]
Hidden=true
But this does not do the trick.
tracker3 daemon
gives:
root@:~# tracker3 daemon
Miners:
01 Jul 2022, 12:04:45: ✗ File System - Not running or is a disabled plugin
But the process is still running after reboot and consuming ressources...
Does anyone have an idea on how to disable the indexing completely?
Thank you very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我在Ubuntu 22.04.1 LTS上也遇到了同样的问题,喜欢您,使用“ SystemCtl”或“ Tracker3 Reset”的网络内容都没有。
我解决了将某些文件制作的非可执行文件的解决:
然后重新启动
我知道这有点疯狂,但对我有用
I was with the same problem on Ubuntu 22.04.1 LTS and like you, none of the web stuff using 'systemctl' or 'tracker3 reset' was worked.
I solved making some files non executables with:
Then reboot
I know it's a little bit crazy but it's worked for me
在Ubuntu 22.04上禁用Tracker3并避免更新:
撤消:
此解决方案是解决方法。但这有效。
如果要检查当前用户的Tracker3的所有设置,请运行命令:
在此设置中,可以启用或禁用Tracker3的特定目录。
To disable Tracker3 on Ubuntu 22.04 and avoid updates:
To undo:
This solution is a workaround. But it works.
If you want to check all settings of Tracker3 for the current user, run the command:
In this settings it is possible to enable or disable the Tracker3 for specific directories.
我认为可以将以下内容视为答案,因为它可以在不完全禁用跟踪器的情况下解决OP的原始问题。
在我的Ubuntu 22.04上,
编辑索引目录的列表
我发现我可以使用窗口弹出
,您可以导航到/org/freedesktop/tracker/miner/files ,然后更改文件索引回复directive-directories和index single-directories。
此外,文件的解释忽略了目录,请让我了解我可以让tracker3忽略任何包含 eg eg 的目录
.trackerignore文件或.git文件。如果需要,这似乎是一种方便的方式来避免进行一些重大跟踪。我不确定是否有.git 目录而不是.git file 是否会产生相同的效果,因此我决定将.trackerignore文件放在包含我的文件夹中GIT项目。
但是,我尝试了另一条途径来编辑索引回复 - 目录和索引单式目录的配置:
这是tracker3 index命令。
在没有任何标志的情况下运行,它显示了带有递归/非收回信息的索引目录,但我没有设法使用这些选项来更改这些选项,
我希望这些小信息可以帮助任何人降落在这里。
I think the following can be considered an answer, as it might solve the OP's original problem without totally disabling tracker.
On my Ubuntu 22.04,
I discovered that I can edit the list of indexed directories using
a window pops up and you can navigate to /org/freedesktop/tracker/miner/files
and then alter the files index-recursive-directories and index-single-directories.
Moreover, the explanations for the file ignore-directory-with-content let me understand that I can have tracker3 ignore any directory containing e.g.
a .trackerignore file or .git file. This seems to be a handy way to avoid some heavy tracking if needed. I am not sure if having a .git directory instead of .git file would have the same effect, so I decided to put a .trackerignore file in the folder that contains my git projects.
However, I tried another path to edit the index-recursive-directories and index-single-directories configurations:
this was the tracker3 index command.
Run without any flag, it displays the indexed directories with the recursive/non-recursive info but I didn't manage to alter these options with the options proposed by
I hope this little information can help anyone landing here.
您可以通过使用 dpkg-divert 重命名服务文件。这样,当跟踪器软件包升级时,将保留重命名:
以这种方式删除转移:
You can do this in a way that will survive package upgrades by using dpkg-divert to rename the service files. This way when the tracker packages are upgraded the renaming will be preserved:
Remove the diversions this way: