Saturday, April 28, 2012

Nepomuk Semantic desktop in Ubuntu

If you want to read about what Nepomuk is, go here.


  1. Install Dolphin, Nepomuk and KDE System Settings (Dolphin already has all needed dependencies, including Nepomuk, so no need to specify explicitly):
    sudo apt-get install dolphin systemsettings gtk2-engines-qtcurve


  2. Try to call "nepomukserver" from terminal, just to make sure it is installed and works. It should give many outputs, which mean that it started indexing files.

  3. Add "nepomukserver" command to Startup Applications

  4. Restart Gnome session - Nepomuk will start automatically and run Strigi indexer


The indexing takes quite some time, depending on the number of files and folders under indexer. For my computer it took several hours, because I had large collection of music, films and books. There should appear and icon in the tray, which indicates the indexing process. You may open a menu on this icon, select "Configure File Indexer" and watch the current process of indexing. You can also choose, which folders Strigi must index, in the same dialog window. Another way to open this window is from KDE System Settings -> Desktop Search, which can be issued from terminal with "systemsettings" command. You may find useful to leave Desktop Search window open to watch the indexing process until it is finished.

In the meantime, run Dolphin, select some file (e.g. MP3) and press F11 - it will show a side panel with all meta-information about selected file. Until the indexing process is finished you may see strange incorrect information in Dolphin for imported file properties. For example, ID3 tags may contain something like ":aksdfh". This should change to normal when the indexing is over. You can control the indexing process from Desktop Search dialog described above.

The indexer also still contains some bugs. It may fail on some files. You can see, which file is problematic, by watching the indexing process in Desktop Search dialog. If you find that some folder with files cannot be indexed and Strigi fails on this folder, then you can exclude this folder from indexing from the same dialog, then click Apply and indexing process will start again (no worries, it will quickly skip all already indexed files and concentrate on not yet indexed ones).

Gnomifying Dolphin

While the search is going on, you can make Dolphin look more like a GNOME native GTK-based application (similar to how Nautilus looks like).


  1. Run in terminal: kbuildsycoca4 --noincremental
    Don't pay attention to warnings it will give you.

  2. Run systemsettings command from Terminal or from Alt-F2.

  3. Open Application Appearance.

  4. In section Style change Widget style to GTK+

  5. In section Icons select something related to the current Ubuntu theme in Gnome. For example, I chose "Ubuntu-Mono-Dark"

  6. Apply changes

  7. Open Dolphin and make sure it looks like other applications in Gnome


Making Dolphin A Default File Manager

Since we now use Dolphin, you can make it a default file manager in your Ubuntu desktop.

  1. Right click on Applications / Places / System menu, select "Edit Menus"

  2. In the section Other change commands in both "File Manager" and "Open Folder" items from what they currently have to just "dolphin"

  3. That's all. Open Places -> Home Folder to make sure it is now opened in Dolphin


After Indexing Is Finished

When the Desktop Search dialog shows that indexing finished, you may try Nepomuk in action.

  1. Open Dolphin, choose some file (e.g. MP3) and remember its properties. Then type the value of one property in the "Search..." box and see if the file appears in the list

  2. Assign several tags to a group of different files and search for the tags

  3. Search for text content in one of your PDF or office documents


Now you can organize your media collections using existing properties and custom tags, group files by their meaning, assign comment to files, rate them and so on. Potentially its possible to integrate different applications, not only Dolphin, with Nepomuk, but this is a topic for another post.

THANKS: Nuclear Passion

 


Friday, April 27, 2012

Add users to existing groups

Good posting from Libarian Geek http://www.liberiangeek.net/2011/10/add-users-to-existing-groups-in-ubuntu-11-10-oneiric-ocelot-2/


Wednesday, April 18, 2012

Use Gnome-Shell 3.0 themes with Gnome-Shell 3.2

In order to use 3.0 themes instead of 3.2 theme, you need to add theses few lines at the beginning of gnome-shell.css file in the particular gnome-shell theme folder :

.icon-grid {
spacing: 36px;
-shell-grid-item-size: 118px;
}

.contact-grid {
spacing: 36px;
-shell-grid-item-size: 272px; /* 2 * -shell-grid-item-size + spacing */
}

.icon-grid .overview-icon {
icon-size: 96px;
}


You can now use search engine in Activities View without freezes.

Gnome-Shell Animation Speed Control

Found a neat Gnome-Shell extension based upon this hack

You can check it out from git:
git clone https://github.com/bboozzoo/gnome-shell-extension-animation-speed-control.git

Then do the following:
cp -r animation-speed-control@bboozzoo.gmail.com into ~/.local/share/gnome-shell/extensions


mv org.gnome.shell.extensions.animation-speed-control.gschema.xml to /usr/share/glib-2.0/schemas

Run as root:

glib-compile-schemas /usr/share/glib-2.0/schemas

Enable extension using gnome-tweak-tool

Usage:

By default the animation speed is unchanged, the slow down in Shell toolkit (St) is set to 1.0 (default speed).

To increase the animation speed (i.e. apply inverse slowdown), set the speed value to less than default 1.0.

For example, to have the animations run at double speed, run:
gsettings set org.gnome.shell.extensions.animation-speed-control speed 0.5

For animations to be twice longer:
gsettings set org.gnome.shell.extensions.animation-speed-control speed 2

For almost ‘instant’ animations:
gsettings set org.gnome.shell.extensions.animation-speed-control speed 0.001

NOTE: running glib-compile-schemas resulted in this error message
warning: undefined reference to
warning: undefined reference to
warning: undefined reference to
warning: undefined reference to

This is because of a bug in glabels.

You can fix it manually by doing this
gksudo gedit org.gnome.glabels-3.gschema.xml

and changing reference to glabels in lines 6-9 to glabels-3


Swop Windows View and Applications View in Gnome Shell

If you want to avoid the annoying lag between Windows View and Applications View in Gnome Shell, try this hack:

Open viewSelector.js
gksudo gedit /usr/share/gnome-shell/js/ui/viewSelector.js

At line 407:
 addViewTab: function(id, title, pageActor, a11yIcon) {
let viewTab = new ViewTab(id, title, pageActor, a11yIcon);
this._tabs.push(viewTab);
this._tabBox.add(viewTab.title);
this._addTab(viewTab);
this._activeTab= viewTab;
},


And line number 469:
 _switchDefaultTab: function() {
if (this._tabs.length > 0)
this._switchTab(this._tabs[1]);
},


Save and reset Gnome-Shell

Alt-F2 r



Tuesday, April 10, 2012

Configure Gnome Shell Extensions (Themes) with gsettings


Get all current Gnome Shell extensions settings:




gsettings list-recursively |grep "org.gnome.shell.extensions"



Example output:


org.gnome.shell.extensions.alternate-tab behaviour 'all_thumbnails'
org.gnome.shell.extensions.alternate-tab first-time false
org.gnome.shell.extensions.dock autohide true
org.gnome.shell.extensions.dock hide-effect 'resize'
org.gnome.shell.extensions.dock hide-effect-duration 0.29999999999999999
org.gnome.shell.extensions.dock position 'left'
org.gnome.shell.extensions.dock size 48
org.gnome.shell.extensions.auto-move-windows application-list @as []
org.gnome.shell.extensions.native-window-placement strategy 'natural'
org.gnome.shell.extensions.native-window-placement use-more-screen true
org.gnome.shell.extensions.native-window-placement window-captions-on-top true
org.gnome.shell.extensions.icon-manager desaturation-factor 1.0
org.gnome.shell.extensions.icon-manager top-bar @as []
org.gnome.shell.extensions.user-theme name ''



Modify settings with following command:




gsettings set org.gnome.shell.extensions.[name] [key] [value]



Example


gsettings set org.gnome.shell.extensions.dock size 60