Sunday, 28 April 2013

What is dconf editor, how is it useful ?

Dconf is
  • low-level configuration system whose main purpose is to provide a backend to GSettings on GNOME 3.X desktops.
  • dconf is a simple key-based configuration system. Keys exist in an unstructured database.
  • dconf system can be considered as a kind of replacement for gconf system which was used in GNOME 2.X series desktop.
  • dconf-editor is a Graphical Editor for Simple key-based configuration system which is dconf.
Install dconf Editor
Launch dconf Editor
  • To launch dconf Editor open command launcher (Alt+F2) and run command "dconf-editor".
    Alt + F2 ==> dconf-editor
  • Alternatively you can press left "Win" key or (Alt+F1) to open "Activities" and type "dconf" upon which you can see dconf Editor appearing grouped under "Applications".
dconf Editor Essentials
Find keys
 The various keys can be found by invoking search settings from top panel and then plugging in appropriate "search string" as shown below
dconf-editor Find Keys
 dconf Editor is a very useful configuration editing tool and the inner "workings" are as follows:-
  • All the settings are categorised broadly under Schemas.
  • All the Keys that logically belong together are grouped together under Schemas.
  • The various key's values can be changed by double clicking on them and entering new values. To save new settings we need to press return key .
  • To restore original values we can always use the "Set to default" button at the bottom of the tool.
dconf Editor Usage
The tool can be used for many purposes like:-
  • Changing preferences/settings for many native GNOME applications settings. Example:- Get Totem working again after crash by changing schema "org.gnome.totem"
  • Perform some advanced settings which is sometimes not possible to do from even the applications. It is possible to reduce inbox refresh time to 30 seconds in Evolution. In this case it is accomplished by changing schema "org.gnome.evolution.mail"
    Evolution interface allows minimum refresh rate of 1 minute
    Evolution set inbox refresh rate
    dconf Editor allows reduction of refresh rate to 30 seconds.
    dconf-editor Evolution set inbox 30 sec refresh rate
  • Change default directory where the screenshots are stored if "Print Screen" button is pressed. In this case schema that is modified is "org.gnome.gnome-screenshot"
    Print Screen default Save Folder
  • We can change mouse button modifier (Modifier to use for modified window click actions) from <SUPER> or "Win" key to <ALT>. You can use "Alt" key and click on any open window to "drag" it around. The schema to be changed in this case is "org.gnome.desktop.wm.preferences".
    dconf-editor mouse button modifier <Alt>
  • It can serve as a replacement / alternative for "gnome-tweak-tool" and "gnome-control-center". Most of the settings in Tweak tool are available / changed using dconf Editor.
  • Change mouse from left to right click by editing the schema "org.gnome.settings-daemon.peripherals.mouse" as shown below.
    dconf-editor left handed mouse button settings

Saturday, 13 April 2013

Why should we install mozplugger on openSUSE 12.3, GNOME 3.6 ?

 MozPlugger is a generic Mozilla plug-in that allows the use of standard Linux programs as plug-ins for media types on the Internet. MozPlugger will help the Mozilla / Gecko based browsers to handle a variety of file formats like pdf, office formats (xls, xlsx, ppt, pptx, doc, docx), LibreOffice file formats etc. Without installing mozplugger we find that very few file types are present in "Helper Applications" window in both SeaMonkey and Firefox.
SeaMonkey with few content types in Helper Applications
SeaMonkey Before Mozplugger Installation
Firefox also shows only a few content types in Application preferences
Firefox Before Mozplugger Installation
When i try to open a sample xls file hosted online SeaMonkey tries to download and open it outside the browser.
SeaMonkey open with xls before mozplugger installation
Download and Install Mozplugger
Step 1:- First step would be to Configure Community Repositories in YaST 
Step 2 :- Before we proceed to download the rpms we need to understand what type of rpms we need. 32 bit Vs 64 bit OS architecture in Linux
Step 3 :- Since i use a 64bit OS I downloaded the following rpms
  • mozplugger-1.14.3-3.fc18.x86_64.rpm from link
  • mozilla-filesystem-1.9-8.fc18.x86_64.rpm from link
Step 4 :- I dumped these rpms into a directory and Converted the directory into a repository using YaST
Step 5 :- I open terminal (Alt+F2 ==> gnome-terminal) and install mozplugger using command "sudo zypper in mozplugger"
Post installation lot of content types are present in Helper Applications window
SeaMonkey Helper Applications After Mozplugger Installation
Post installation, I can open same xls "inside" SeaMonkey . LibreOffice opens the file in embedded mode inside the browser.
SeaMonkey LibreOffice opesn xls in embedded mode after mozplugger installation

Converting a Plain RPM Directory into a repository using YaST

 The following are the steps involved in converting a "Plain RPM Directory" into a repository using GTK-YaST on openSUSE 12.3, GNOME 3.6 :-
  • Dump all the rpm files you have in a suitable directory under your "Home" directory. I have all my rpms in directory "~/Software/rpms"
  • Press Left "win" key / Alt+F1 to bring up Activities window / launcher.
  • Then type "install" and it will bring up an application called "Install/Remove Software". Click on that to open YaST Software Manager.
  • Click on menu Configuration==>Repositories to navigate to "Repositories" window
  • Click on the add button in this window and it will take you to "MediaType" window where you need to choose "Local Directory" and press on "Next" button.
  • In the next window provide appropriate "Repository Name" and "Path to Directory" where your rpms are present. Also choose the option "Plain RPM Directory." and press on "Next" to complete the process.
  • You will now find  the "rpms" repository in the main window of YaST software Manager.
Screencast showing creating local repository using YaST
Note:- The trick for converting Nautilus Pathbar to textual input entry is to press Ctrl+L