Showing posts with label OPENSUSE 12.X. Show all posts
Showing posts with label OPENSUSE 12.X. Show all posts

Sunday, 12 May 2013

Razor-qt desktop on openSUSE 12.3

Razor-qt is desktop which a KDE-ish
  • highly configurable,
  • easy-to-use,
  • light weight(low hardware requirements),
  • fast desktop environment based on Qt.
Razor-qt cosists of various components:-
  • Panel -you can add plugins, behave like GNOME 2.X applets
  • Desktop with icons support
  • Application launcher(razor-runner)
  • Settings (Configuration center)
  • Sessions
 Razor-qt works with various WMs, but Openbox seems to be the preferred window manager.
 I have openSUSE 12.3/ GNOME 3.6 installed, the following procedure was used to install Razor-qt.
 First i turned-off Autologin , created "new" user and used this new user for logging into Razor-qt. For details see User Management on GNOME 3.X
Installation using YaST
Add repo
Add the following additional repo using YaST:-
Install Packages
Install the following packages using YaST Installer
  • Base packages
    • razorqt
    • pavucontrol -simple GTK based "mixer" for PulseAudio
  • Additional packages
    • qtdesktop - Will pull in various "Must have" Qt applications :-
      • juffed - Simple tabbed text editor
      • nomacs - Lightweight image viewer
      • qlipper - Lightweight clipboard history
      • qterminal - Advanced terminal emulator
      • quiterss - QuiteRSS - RSS/Atom aggregator
      • qupzilla - Web browser based on WebKit core
      • qxkb - Qt keyboard layout switcher
      • qpdfview - Tabbed PDF Viewer
      • screengrab - Screen grabber
      • clementine - A cross-platform Music Player based on Amarok 1
      • smplayer - Complete Frontend for MPlayer
      • speedcrunch - A calculator with history display
      • vlc - multimedia player for various audio and video formats
      • qbittorrent - A Bittorrent Client built with C++ / Qt4
Installation using zypper
Add repo
open comman launcher(Alt+F2) and open terminal using command ("gnome-terminal") and run following command:-
sudo zypper ar -c -f -n 'QtDesktop_openSUSE_12.3' QtDesktop_openSUSE_12.3
Install Packages
Run in the following command in terminal to install the desktop
sudo zypper in razorqt pavucontrol qtdesktop
Razor-qt Overview
 At first time login, Razor-qt provides a dialogue box with a list of window managers and I chose Openbox
Razor-qt choose Window manager,Openbox
The default desktop looks conservative with a touch of gloss. The analog clock adds a nice touch to the desktop.
Razor-qt default desktop
We see a traditional main menu (Alt+F1)
Razor-qt Main Menu
 Lot of plugins / applets can be added to panel by right clicking on it. We can see Application Menu, Quick Launch, Task Manager, Colour Picker, Lock Tool, CPU Usage tool, Network Usage tool, Show Desktop tool etc.. added in the screenshot below
Razor-qt Panel
 Each plugin on panel can be customised. Task Manager can be customised to make opened applications look like squares instead of rectangles.
Razor-qt Task Manager Customize
  Desktop icons / items can be added by creating launchers inside ~/Desktop folder by using commands like "gnome-desktop-item-edit 1.desktop"
 Razor-qt Create Desktop Icons
  Razor runner makes launching applications keyboard friendly (Alt+F2).
 Razor-qt Razor Runner Application Launcher
Razor Configuration Center
 The Razor Settings applet / plugin on the panel is very useful in configuring the desktop. "Razor Session Configurator" can be used to make applications like Artha(Dictionary tool) to start along with the desktop.
Razor-qt Razor Session Configurator
 To change themes we need to use both "Openbox Configuration Manager" as well as "Razor Appearance Configuration" .
Razor-qt Change Theme
 "Razor Shortcut Configuration" can be used to create keyboard shortcuts to launch applications easily using keyboard.
Razor-qt Keyboard Shortcuts
Qt Applications
 SpeedCrunch is a cool calculator which has lot of inbuilt formulae
Razor-qt Speedcrunch
 qBittorrent makes a powerful torrent downloader. qpdfview is a cool lightweight pdf viewer with "tabs" support.
qBittorrent and qpdfview
 JuffEd is a good text editor and NoMacs does a good job as image viewer
JuffEd and NoMacs
 QupZilla makes a wonderful webkit based browser and has variety of features like AdBlock, RSS reader, Cookie Manager and web inspector. It also has a good collection of inbuilt themes.
 SMPlayer and VLC (Audio & Video players) play almost anything you throw at them.
SMPlayer and VLC

Saturday, 4 May 2013

Changing mouse settings from command line

 To configure mouse settings from command line we can use an utility called "xinput". The manual for xinput defines it as a utility to list available input devices, query information about a device and change input device settings. i.e. xinput can be used to configure a variety of input devices like mouse, keyboard etc...
List Connected Devices
 On a GNOME 3.x desktop we can open command launcher (Alt+F2) and then use the command "gnome-terminal" to open terminal.
 To list all the devices connected to a machine we can run the following command in terminal xinput --list. In the following screenshot you can find that an optical mouse is connected to the machine and assigned a "device id 8".
List input Devices
Enable and Disable the device
 Sometimes we don't want mouse movement to bring up a machine from sleep. To disable the input device(mouse), we find the device id by listing all devices as shown above. After finding the device id of the mouse (8) we can run the following command in terminal to disable the mouse xinput --disable 8. Similarly to enable mouse again we can run the command xinput --enable 8. To make things more convenient we can set keyboard shortcuts for these commands as shown below
Keyboard shortcut disable enable mouse
Switch mouse buttons from right handed to left handed
 I for one use, "left handed" mouse settings . I find that on some "light weight" desktops, GUI based mouse settings are often not available which makes changing mouse settings a hassle. xinput comes to the rescue in these cases. To get the default mouse button mapping the following command can be used :- xinput get-button-map 8. To change the default mapping from right to left you can use the command xinput set-button-map 8 3 2 1. The following screenshot shows the demo.
Change Mouse mapping
 The above setting made through terminal will last only for one login session but, we can "apply" this setting every time we login by plugging the relevant command into the ~/.profile file in "home" directory as shown below.
.profile file xinput

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

Image resize and rotate using Nautilus on openSUSE 12.3, GNOME 3.6

 The Nautilus-Image-Converter is an extension that allows you to resize / rotate images from Nautilus. This extension is very useful when uploading images to websites (size limitations), creating thumbnails etc.
Installation & Usage
Step 1:- We need to Configure Community Repositories in YaST, GNOME 3.6, openSUSE 12.3
Step 2:- Launch command launcher(Alt+F2) and open terminal using command "gnome-terminal".
Step3:- Using zypper we can install the relevant extension using command "sudo -u root zypper in nautilus-image-converter".
 Step4:- Use the context menu (or) right click menu to "rotate" and resize images. The extension automatically appends a ".resized" and ".rotated" string to the names of newly created files, lest the original file gets overwritten.
Screenshot showing Nautilus "resize". Resize supports "resize to pixels", "scaling" and "custom size" functions.
Nautilus Resize
Screenshot showing Nautilus "rotate". Rotate supports "pre-defined rotations" and "custom angle" functions.
Nautilus Rotate

Graphical frontend for Systemd on openSUSE 12.3, GNOME 3.6

For the UN-initiated :-
  • systemd, init - systemd system and service manager
  • systemctl - Control the systemd system and service manager
Sample usage of systemd :- Restart Network Service using Systemd
 If you are not comfortable with running systemctl / systemd commands from console / terminal then you can install "systemd-ui" which acts like a Graphical front-end for systemd system and acts like a service manager.
Install and Use systemd-ui
Step 1:- We need to Configure Community Repositories in YaST, GNOME 3.6, openSUSE 12.3
Step 2:- Launch command launcher(Alt+F2) and open terminal using command "gnome-terminal".
Step3:- Now, it is possible to install systemd-ui using the command "sudo -u root zypper in systemd-ui".
Zypper Install Systemd-ui
Step 4:- Launch the systemd-ui using the command "gnomesu systemadm"
Step5:- Using this tool you can
  • Check Current status of the Service,
  • View Service dependencies,
  • Start Service,
  • Stop Service,
  • Restart Service,
  • In-activate Service etc..
Systemd System Manager

Thursday, 4 April 2013

Download Favourite pictures from Flickr on openSUSE 12.3, GNOME 3.6

 To download pictures that you have marked favourite from the popular Photo sharing site Flickr you can use an application called "FlickrFaves". It is a Java based application which means that  you need to have openJDK or Sun/Oracle JRE installed on your system.
Getting Started
Downloading and Installing FlickrFaves:-
 There is no need to install anything except that you need to setup up Java/JRE on you system. All you need to do is download the jar which is marked / labelled as "executable "and "launch the jar" to use it.
Use FlickrFaves
 Open a quick command launcher (Alt+F2) and open the terminal using command "gnome-terminal".
Step 2:-
Launch jar using the following command from terminal
java -jar /home/<ProfileName>/Downloads/FlickrFaves-2.0.4.jar
 On pressing "Authorize" button it will open the default web browser and take you to a page where you need to "Login" and "Authorize" the application to enable FlickrFaves to use Flickr.
After successful Authorisation you will see a success page
Step 4:-
 Comeback to FlickrFaves application and click on "Complete Authorization".
Step 5:-
 Configure your download folder and other settings like "number of files to download" and start downloading your stuff.
After downloading your pictures it will show a download successful message like this
Add FlickrFaves to GNOME Activities
Step 1:-
 Open command launcher(Alt+F2) and use the command "alacarte" to open GNOME 3.X menu editor
Step 2:-
 Add the relevant command(java -jar <Path>FlickrFaves-2.0.4.jar) and create a menu item as show below
You can now locate FlickrFaves in Activities

Thursday, 28 March 2013

Nautilus Tips and Tweaks,openSUSE 12.3, GNOME 3.6

 Nautilus has undergone massive changes in recent versions and it is going to be a challenge figuring out a few things. The following long winded article would be useful in figuring out various "Hidden" functionalities of Nautilus. But before doing anything, do Configure Community Repositories openSUSE 12.3
Where are Preferences / settings in Nautilus?
 After opening Nautilus you need to click on the Nautilus icon on top panel to pull down the various settings / preferences.
 Do you need nautilus to confirm with you before executing each script and provide an option to run in a terminal?
If yes then you can enable using following menu in preferences
How can i sort icons ?
 By clicking on the drop down button next to the "Wheel" like button on the menu bar, you can access functions like :-
  • Zoom in / out which allows us to increase and decrease icon sizes.
  • Reload which allows us to refresh Nautilus. (keyboard : F5).
  • Allows Sorting and reverse sort of icons by:-
    • Name
    • Size
    • Type
    • Modification Date
  • Hide / Show Hidden files & folders (Names starts with a dot (.) )
 How can i Bookmark various folders ?
  Bookmarking folders in Nautilus makes them appear in the "pane" on the left hand side of Nautilus. You can use the wheel / Gears like button on top right hand side of Nautilus to :-
  • Bookmark Folders (keyboard : Ctrl+B) so that they appear on "left pane".
  • Open New Tab in Nautilus (keyboard : Ctrl+T)
  • Create New Folder in present working directory.
  • Selecting all matching items (keyboard : Ctrl+S). You can select all png files in a folder using this functionality.
Where are "New File" and "Refresh" Context / Right click menus ?
  They have ahem! been "removed". We can easily restore these functions by using "Nautilus Actions". I would take a look at this post (Nautilus Actions?) before coming back here to read further.
Use "touch" command to create a "New File"
 Install "xdotool" (sudo zypper in xdotool) to simulate key presses. Now, all we need to do is simulate F5 key press to add refresh functionality to context menu.
Restored "NewFile" and "Refresh" Menu items
How can I preview files ?
 Preview functionality in Nautilus allows you "preview" contents of all files without actually opening them. You can even play video and audio tracks using this functionality. It can be accessed by ensuring that you have the following packages installed:-
  • Install "sushi" (Quick Previewer for Nautilus) sudo zypper in sushi
  • Install "unoconv" (Allows us to preview doc,ppt,xls,docx,odt,odf etc) sudo zypper in unoconv
  • Install "nautilus-evince"(Allows previewing pdfs) sudo zypper in nautilus-evince
  • Install Gstearmer libs (Allows previewing Audio and Video files) sudo zypper in gstreamer* (Will pull in lot of packages :) ).
 After installing above stuff you may restart system and to preview files you can press "spacebar". You can "preview" virtually any file now :). You can see preview samples here:- Audio,video and doc preview features in Nautilus
Also chekout :- Image resize,create thumbnail and image rotate using Nautilus on openSUSE 12.3, GNOME 3.6


Related Posts Plugin for WordPress, Blogger...