Tag Archives: gnome

Gnome File Indexing

Tracker is a file indexing and search tool for Linux. Gnome makes use of it for some of its functionality, and as a result, Tracker is installed by default.

The tool speeds up searching and enables full-text search in the Files app, makes the metadata-based batch rename feature to work in the Files app, and enables file and folder search in the Activities Overview. There are some GNOME apps that depend on it too (and don't work at all without it), like Music or Photos. Without Tracker, you'll lose these features, so take this into consideration before completely disabling Tracker.

While it brings a number of useful features to the GNOME desktop, Tracker can also have a performance impact in some cases. These performance issues are supposedly fixed. But there are still users encountering performance issues with Tracker, or users who consider it too resource intensive.

The official way of disabling Tracker on Gnome desktops is to go to Settings -> Search, and turn off the switch from the search settings headerbars (top of the window). There are users however, claiming that this does not disable it, so I decided to try it out, and after turning this option off and a system reboot, tracker status claimed it has more than 100000 files in its index, and it's currently indexing files. But you can give this a try if you wish, and see if it has any impact on your system.

So how to completely disable Tracker, so it no longer indexes any files, and stop having any Tracker process running in the background? You can mask the Tracker systemd services to completely disable it for your current user using this command:

systemctl --user mask tracker-store.service tracker-miner-fs.service tracker-miner-rss.service tracker-extract.service tracker-miner-apps.service tracker-writeback.service

After this, reset Tracker:

tracker reset --hard

CAUTION: This process may irreversibly delete data.
Although most content indexed by Tracker can be safely reindexed, it can’t be assured that this is the case for all data. Be aware that you may be incurring in a data loss situation, proceed at your own risk.

Are you sure you want to proceed? [y|N]: y
Found 3 PIDs…
Killed process 1357 — “tracker-miner-fs”
Killed process 2614 — “tracker-extract”
Killed process 42269 — “tracker-store”
_g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
Setting database locations
Checking database directories exist
Checking database version
Checking whether database files exist
Removing all database/storage files
Removing database:'/home/cdstealer/.cache/tracker/meta.db'
Removing db-locale file:'/home/cdstealer/.cache/tracker/db-locale.txt'
Removing journal:'/home/cdstealer/.local/share/tracker/data/tracker-store.journal'
Removing db-version file:'/home/cdstealer/.cache/tracker/db-version.txt'

You could opt to uninstall the tracker completely, but it could be problematic. So instead, I disabled as above as I'm the only user. It never caused any real issues, but I don't need that level of indexing as I almost never use gnome search.

My desktop has 32Gb of RAM and was always full of cache generated by Tracker. So after disabling Tracker, I ran the following command (as root) to clear the cache in RAM.

sync; echo 1 > /proc/sys/vm/drop_caches

Gnome Terminal

Gnome terminal doesn't like to obey the "normal" locale file.  It uses "/etc/X11/gdm/locale.alias", and therefore usually has the incorrect character encoding.  eg.

instead of:

The way to solve this is to create a symlink to the correct locale.

1) Backup the original file:

mv /etc/X11/gdm/locale.alias /etc/X11/gdm/locale.alias.bak

2) Create the symlink:

ln -s /etc/locale.gen /etc/X11/gdm/locale.alias

It's also worth noting that I only have the following in my file:

en_GB ISO-8859-1
en_GB.UTF-8 UTF-8

 

 

Gnome3 overlay install

Can't wait for Gnome3 to the portage? The below steps a basically what I completed to upgrade gnome-light.

Follow these "simple" steps:

edit $HOME/.config/autostart/compiz.desktop and change "X-GNOME-Autostart-enabled=false" to "X-GNOME-Autostart-enabled=false".  Compiz is NOT compatible with Gnome3 and will just prevent you from logining in.

edit /usr/portage/profiles/package.mask and comment out the following.  (This will need to be done every time you sync.)

>=gnome-base/gdm-2.26
>=x11-wm/metacity-2.34
>=media-gfx/gthumb-2.13
>=gnome-extra/nautilus-open-terminal-0.19
>=x11-misc/notification-daemon-0.7

Add the following to /etc/portage/package.keywords

# Gnome3-light
app-arch/file-roller
app-editors/gedit
app-text/gnome-doc-utils
app-text/poppler
dev-lang/vala
dev-libs/atk
dev-libs/gjs
dev-libs/glib
dev-libs/gobject-introspection
dev-libs/json-glib
dev-libs/libgweather
dev-libs/libunique
dev-libs/nss
dev-python/pygobject
dev-util/gtk-doc-am
gnome-base/dconf
gnome-base/gdm
gnome-base/gnome-applets
gnome-base/gnome-control-center
gnome-base/gnome-core-libs
gnome-base/gnome-desktop
gnome-base/gnome-fallback
gnome-base/gnome-keyring
gnome-base/gnome-light
gnome-base/gnome-menus
gnome-base/gnome-panel
gnome-base/gnome-session
gnome-base/gnome-settings-daemon
gnome-base/gnome-shell
gnome-base/gsettings-desktop-schem
gnome-base/gvfs
gnome-base/libgnome-keyring
gnome-base/libgnomekbd
gnome-base/nautilus
gnome-extra/evolution-data-server
gnome-extra/gconf-editor
gnome-extra/gnome-media
gnome-extra/gnome-power-manager
gnome-extra/gnome-screensaver
gnome-extra/gnome-shell-extensions
gnome-extra/gnome-tweak-tool
gnome-extra/gnome-user-share
gnome-extra/gnome-utils
gnome-extra/nm-applet
gnome-extra/polkit-gnome
gnome-extra/zenity
media-fonts/cantarell
media-gfx/eog
media-libs/clutter
media-libs/clutter-gst
media-libs/clutter-gtk
media-libs/gst-plugins-base
media-libs/gstreamer
media-libs/libcanberra
media-libs/libexif
media-plugins/gst-plugins-*
media-plugins/gst-plugins-ogg
media-plugins/gst-plugins-pango
media-plugins/gst-plugins-theora
media-video/cheese
media-video/gnome-video-effects
net-dialup/ppp
net-im/pidgin
net-im/telepathy-logger
net-libs/libnice
net-libs/libsocialweb
net-libs/libsoup
net-libs/rest
net-libs/telepathy-glib **
net-libs/xulrunner
net-misc/networkmanager
net-print/cups
net-print/cups-pk-helper
net-voip/telepathy-haze
net-wireless/gnome-bluetooth
sys-apps/accountsservice
sys-apps/gnome-disk-utility
sys-auth/polkit
sys-fs/udev
www-client/epiphany
www-client/firefox
x11-libs/gdk-pixbuf
x11-libs/gnome-pty-helper
x11-libs/gtk+
x11-libs/libwnck
x11-libs/libxklavier
x11-libs/mx
x11-libs/pango
x11-libs/vte
x11-terms/gnome-terminal
x11-themes/gnome-icon-theme
x11-themes/gnome-icon-theme-extras
x11-themes/gnome-icon-theme-symbol
x11-themes/gnome-themes-standard
x11-wm/metacity
x11-wm/mutter

# Gnome3 Empathy
net-im/empathy
app-misc/geoclue
dev-libs/folks
media-libs/libchamplain
net-libs/telepathy-farsight

# Gnome Fallback
dev-lang/lua
app-cdr/brasero
app-crypt/seahorse
app-text/evince
dev-libs/gmime
dev-libs/libburn
dev-libs/libisofs
dev-libs/totem-pl-parser
gnome-base/gnome-core-apps
gnome-extra/gnome-user-docs
gnome-extra/yelp
gnome-extra/yelp-xsl
media-libs/quvi
media-libs/taglib
media-video/totem
net-libs/farsight2
net-libs/libsoup-gnome

execute 'echo "-introspection" >> /etc/portage/profile/use.mask

OK, now 'emerge layman'.  Once complete, execute 'echo "source /var/lib/layman/make.conf" >> /etc/make.conf'.  Now execute 'layman -a gnome'

This is where the fun begins.. this is NOT flawless, but hopefully the errors will be easy enough to remedy.

eg.  You may need to unmerge gnome-themes-extras gnome-themes gdm gnome-panel gnome-netstatus to prevent blocked packages.

Now just run 'emerge -puvND world'  if you are happy with the result, remove the 'p' switch.

To checkout the newest upstream, run layman -S.

You can always check what has been updated and when by going here

If you want to have legacy menu's then emerge gnome-fallback.  This will install more apps that you probably don't use that are "standard" in gnome.