Tuesday, 26 February 2013

Configure And use Scanner on openSUSE 12.2,GNOME 3.4.2

 It is very easy to configure and use scanner on  openSUSE 12.2, GNOME 3.4.2 thanks to YaST.
Connect the scanner
 I own a HP scanjet 2300c flatbed Scanner. I connect the scanner to the power adapter. Then i use the USB connector cable to connect the scanner and the computer. I ensure that the light in scanner bed is glowing.
Configure the scanner in YaST
 I proceed to open GNOME Activities using left "Win" key or by pressing "Alt+F1". Then type in the search query as "YaST" and YaST should appear grouped under "Applications". On opening YaST we will be prompted to enter administrative password which we must provide.
GNOME ACTIVITIES YaST
 In YaST we need to locate scanner settings by searching for scanner applet.
YAST GNOME SCANNER
 In the scanner configuration window it is recommended that we click on the edit button and reconfigure the scanner even though you may see a default scan driver showing up in the menu.
SCANNER CONFIGURATION
 In the setup wizard we can type in the scanner model and search for the relevant scanner driver and apply the settings using the "Next" button at the bottom of the window. The YaST wizard will save the settings and you can exit the Scanner Configurator by pressing the "OK" button.
Search For Model Apply Scanner Driver
Scan Documents
 In order to start scanning i go back to GNOME activities by pressing left "Win" key or by pressing "Alt+F1". Then i type in the search query "Simple Scan" and Scanner application will show up grouped under applications.
Simple Scan Activities GNOME openSUSE
 I am using my old stamp collection as test subject and I placed the stamp album page facing the light / glass on the scanner. Then I click on "Single Page" sub menu under "Scan" menu and viola the scanner could scan the pages. Thank you openSUSE :-)
Scan Stamp Collection

Sunday, 24 February 2013

How to check which applications are using your bandwidth ?

 With default installation of openSUSE 12.2 , GNOME 3.4 it is difficult to ascertain as to which application is consuming how much of your internet bandwidth. We need to install an application / package called "nethogs" to check bandwidth consumed by each application. It is essentially a Network Bandwidth Usage Monitor.
 NetHogs is a small command line based 'net top' tool. It groups bandwidth by process. This tool makes it easy to identify programs that have gone wild and are suddenly taking up your bandwidth.
Install NetHogs
Method 1 (1 Click)
 Navigate to this openSUSE AppStore page and click on relevant 1 Click Install link to install the tool.
NetHogs 1 Click One Click install
Method 2 (YaST)
 Using YaST you can add the appropriate repos and install the relevant packages. For more details about YaST usage, check out the links provided below.
Repo for openSUSE 12.1
http://download.opensuse.org/repositories/network:/utilities/openSUSE_12.1/
Repo for openSUSE 12.2
http://download.opensuse.org/repositories/network:/utilities/openSUSE_12.2/
Video demo on addition Of custom repo to YaST installer
YaST Installer Package Installation Video Demo
Method 3 (zypper)
 open command launcher(Alt+F2), open GNOME terminal (gnome-terminal) and then using zypper you can add the relevant repos and then install "nethogs" package.
Repo for openSUSE 12.1
http://download.opensuse.org/repositories/network:/utilities/openSUSE_12.1/network:utilities.repo
Repo for openSUSE 12.2
http://download.opensuse.org/repositories/network:/utilities/openSUSE_12.2/network:utilities.repo
Add repo
sudo zypper ar -f http://download.opensuse.org/repositories/network:/utilities/openSUSE_12.2/network:utilities.repo
Install nethogs
sudo zypper in nethogs
Notes:- sudo is used to switch to super user mode; zypper is package manager; ar option adds repo; -f option sets the repository flag as auto refreshed; in option is for installation.
NetHogs Usage
 open command launcher(Alt+F2), open GNOME terminal (gnome-terminal) and then launch nethogs as shown below. NetHogs will clearly show you which program is using up your bandwidth.
sudo /usr/sbin/nethogs
NetHogs Usage

Wednesday, 20 February 2013

Simple Bookmarklet to get webpage link and title

 If are posting an article and if you want to "link" any any webpage or website from your blog or website then you need manually create a html anchor tag and you will need plugin:-
  • Webpage url
  • Webpage title
 To simplify things I have written some bookmarklets which you can easily create in your browsers bookmarks toolbar. You can plugin the below codes in location / url textbox when creating a bookmark or favourites. In Firefox, SeaMonkey and Opera "ctrl+D" is the shortcut to create bookmarks. After creating the bookmarklet all you need to do is navigate to the relevant webpage and then click on the bookmarlet to get the anchor tag in a popup / alert window.
  • Get Link with title for webpage.
    javascript:window.alert("<a%20href=\""+document.location.href+"\">"+document.title+"</a>");
  • Get Link with title and a nofollow tag for a webpage. javascript:window.alert("<a%20rel=\"nofollow\"%20href=\""+document.location.href+"\">"+document.title+"</a>"); 
  • Get Link with title no follow and open in new tab or window for a webpage.
    javascript:window.alert("<a%20rel=\"nofollow\"%20target=\"_blank\"%20href=\""+document.location.href+"\">"+document.title+"</a>");  

 The below screenshot shows as to how to create the bookmarklet in SeaMonkey / Firefox after pressing Ctrl+D .
SeaMonkey create bookmarklet bookmarks toolbar
After creation of bookmarlet click on it to get webpage link
Click bookmarklet get webpage link