Take screenshot in Linux with Shutter

Shutter is a free screenshot manager for Linux that can grab your screen, well that’s what every snapshot tool does. Exciting thing about Shutter is that it also allows you to take snapshot of specific area, a particular window or even a website. Right from that window, you can make changes to screenshot to highlight something or draw a pointer to anything you wish. Shutter is written in Perl. Its feature list also includes sending image to photo editors, uploading to websites and auto-thumbnailing.

Shutter is actually 0.7 version of a previously known screenshot manager called GScrot. This Linux only app is of great use to bloggers, technical writers and all those who like showing off their Linux desktop.

How to install Shutter?

Debian / Ubuntu based distro users can execute following command to install Shutter:

user@computer:$ sudo apt-get install shutter

And, for RHEL/Fedora/CentOS users can do it with this command:

user@computer:$ yum install shutter

Screenshot:

Shutter

 

How to start Shutter?

From GUI view, it can be started as follows:

Applications > Accessories > Shutter

Or to do it CLI way, following command will start the app and will grab the whole screen automatically.

shutter --full

To start shutter in window selection mode:

shutter --window

To start in selection mode (in which you can select the part of screen to be grabbed with your mouse):

shutter --selection

To see the help section of shutter:

shutter --help

NO DEFRAGMENTATION NEEDED IN LINUX

defragment in linux

We all must have heard about defragmenting our hard drives to speed up performance. Sound of that similar to windows users but we don’t have any defragment utility, hell, we don’t need to defragment! And why is that? Lets find out-

I remember when I was new to Linux, a friend of mine came with a hard disk and asked me to defragment it (yeah, we all have faced it).  It was easy in windows, how hard it could be in Linux?  I connected the spare bus to his hard disk and then started a mission to defragment via Linux. I can’t stress this enough that I was new to Linux and didn’t know much about how things work. After trying every bit I knew, looked up the mighty google and it came like a bolt from the blue- NO DEFRAGMENTATION NEEDED IN LINUX. </chitchat>

What do you mean by fragmentation of hard disk?

I’ll cover it in as short as possible; your hard disk is divided into sectors. These sectors are capable of storing small pieces of data. So, when the size of file is more than size of a sector then the file is saved over multiple sectors, as simple as that. As the new file comes, it is saved next to previous sector. But, when the size of first file increases, it might not find free sectors near original file so it will be saved few sectors apart, this goes on and on. While reading this file, the head will have to skip physical locations which ultimately will make things slower. Defragmentation is the process in which file is put back in continuous fashion so that there is no skipping of sectors.

Note: Defragmenting is not recommended for SSD drives. They have a different theory, doing so will reduce their life.

How it works in case of Linux?

Linux’s file systems deal with fragmentation in an intelligent way. Instead of placing files next to each other, it keeps a lot of space between the sectors of two files therefore leaving space for these files to grow. This keeps fragmentation far away, yet not impossible. Even if there are fragments, file system attempts to move the files thereby reducing the fragmentation. The system is designed to avoid fragmentation in normal use. You might face some fragmentation when your space fills up, may be 80% or 90%. The more suitable method to deal with it is to get a new hard drive with more space else you can copy your files to other drive, delete original files and then copy them back- they will be arranged automatically.

Linux kernel 3.6 released

It has been just two months or so since Linux 3.5 was unleashed, another update was released as Linux 3.6 on October 1st, 2012.

Torvalds said

“There haven’t been any huge new architectures or filesystems, it’s all ‘solid progress.’ That may not sound all that exciting, but the devil is in the details, and there’s a lot of small fixes all over.”

The most important and talked-about changes in Linux 3.6 are as follows:

1. Hybrid sleep

It now offers a mode which can be categorised as a hybrid of sleep mode and Hibernation. It first copies the contents of RAM on Hard Drive as it does in hibernate mode and then goes into sleep mode. What we get from this mode? The system won’t just resume quickly but no data will be lost on loosing power.

If the system power gets cut-off somehow, the system will resume from hibernated image, else the resume process will go normally as always and the hibernate image will be discarded.

2. TCP Fast Open

This feature was developed by Google, it helps in creating a TCP connection quickly in some cases. What we actually get from it? As per release notes, you will see improved page load times on popular websites. In Linux 3.6, client side is now supporting this feature. Server side coming soon.

3. Better drivers

In all Linux kernel updates, a lot of drivers are added to improve hardware support; this update is no different. This update primarily targets Sony and Apple devices.

4. Better memory management

Several changes were made for the betterment of memory management, a new feature is introduced which allows swap read-ahead IOPS (input/output operations per second) which promises more throughput along with lower CPU utilization.

Another good news is that now you can enjoy playing casino games online from your home. For that you can go to PartyCasino. You’ll love it, and perhaps you will win some money too! So try it now. Have a good day!

How to display a digital clock in Linux terminal?

 

A clock is nothing special, we have tons of it but when it comes to linux the joy of accomplishing anything on command line is heavenly. In this document we are going to see how to display a digital clock in terminal (which updates). You can see the current data/time with Linux’s default command date. We will be playing with this very command to do the intended. To retrieve only the time from date command, we can add “+%r” or “+%T”    to date command.

 

With this “data” command you can print the system time. The logic behing building a digital clock is to get continuos output.  One way to do this is to use “watch” command along with “date” command. Thus to get a continuous digital clock you can execute following code:

watch -n 1 date +%r

 

You will find following result:

 

date linuxstall

 

Now, if you want a clear and formatted output of current time then you can go for this second method. This time we are going to use “echo” command  to display the date and in addition to that, we will put it in infinite loop which will update every 1 second- giving a feel of continuous digital clock.

The code goes like this:

clear; while true; do echo -e \\b\\b\\b\\b\\b\\b\\b\\b`date +%T`\\c ; sleep 1; done

 

You will see something similar to this:

 

 

 

 

Lets break our code down:

 

“echo” is used for displaying the output of “date” command.

\\b is to delete the previous output. We have used “%T “ with date which gives 8 characters long output. That is why we have used \\b 8 times. In case you wish to use “%r”, you will have to use \\b for 11 times as it produces detailed output.

\\c is used to check “echo” from creating new line.

How to update twitter from Pidgin?

update twitter from pidgin

Pidgin is one of the best chat client available on Linux (and on Windows as well). Most Linux distros are shipping with pre-installed Pidgin as default chat client. The major advantage of using Pidgin is that it supports multiple protocols. One can chat on Facebook, gmail, irc, AIM, yahoo, etc. from the single window. Pidgin has gathered all the platforms together but Twitter. Here we are fixing that up! (Credit goes to developer)

We can use a plug-in called “pidgin-microblog” which will enable the twitter integration with Pidgin. Post installation you can update or get twitter-feed from the very Pidgin. Not just Twitter but Identi.ca, status.net, etc. With this plug-in, You get a notification when you have a new update in twitter.

If you are on debian based distro then you can always fire up thet terminal and run following command to install the plug-in.

 

user@computer:$ sudo apt-get install pidgin-microblog

 

Once you are done with the installation, go to “Accounts” and select “Manage Account”. Then click on “Add” which will navigate you to “Add accounts” window. Select “TwitterIM” and you are very much done.

Last thing you need to do is to authenticate yourself and you can go tweeting all you want right from you little Pidgin.

 

Linux doesn’t need no antivirus. A Myth!

linux antivirus

First advantage over Windows which every one claims is, Linux is free from virus so it doesn’t need any antivirus…WRONG!

Don’t live in a ‘fool’s paradise’, they also have Linux in their sights!
Only problem is, there are so many distros, they don’t know where to start…lol!

 

Jokes apart, Linux antivirus products do exist, its just that the number is far too low when compared to those of Windows. Have a look at few major reasons behind this:

  • Why would a virus writer spend a considerable amount of time is writing a virus which no one (read: less) would notice? Attention is all they want. Since the major market share is acquired by Windows users so it is the first choice to hit upon.
  • In comparison to Linux users, windows users are more prone to committing mistakes and allowing virus to damage their systems.
  • This is quite debatable but it’s true that Windows has more exploitable security loop holes.
  • If a loop hole is discovered in Linux, it is patched before anyone notices. The code is analyzed and updated by a large number of programmers due to its open source nature, in comparison to windows.

It would not be correct to say Linux machines are never infected; they are vulnerable to “rootkit”. Rootkits allow attacker to get top level access to victim’s machine and have full control and during attack user is never alerted about this. Rootkit can spy or modify data and even run applications in background. Some other threats to Linux machines are poisoned DNS entries, spam gateways, backdoor botnets, etc.

You can have a look over the list of viruses here:
http://en.wikipedia.org/wiki/List_of_Linux_computer_viruses#Threats

Microsoft blocks Chrome and Firefox in Windows 8

Microsoft blocks chrome and firefox on windows 8

You can listen to high pitch cries of Microsoft with this attempt to save Internet Explorer from hitting the dumps. It tends to do so by not improving own product but suppressing others making use of its monopolistic position. This time they are restricting competitor browsers like Firefox and Chrome in ARM version of Windows 8. It is called RT edition of Windows 8. Its in news already that they restricted linux from booting on their hardware.

Mozilla made a claim on their blog that “Windows RT will have two environments, a Windows Classic environment and a Metro environment for apps. However, Windows on ARM prohibits any browser except for Internet Explorer from running in the privileged ‘Windows Classic’ environment.”

Mozilla made another point, “What it means that only Internet Explorer will be able to perform many of the advanced computing functions vital to modern browsers in terms of speed, stability, and security to which users have grown accustomed. Given that IE can run in Windows on ARM, there is no technical reason to conclude other browsers can’t do the same.”

Microsoft blocks chrome and firefox on windows 8

Image from: ZDNet

 

Looks like Microsoft trying to block them only because it can’t beat them!

How to connect Ubuntu Server to Dropbox account

dropbox ubuntu

I was looking for a solution to share some of my files in my Ubuntu server to others and while thinking of “cloud computing” at that time, I am thinking if i can try to share my files by linking my box to my existing dropbox account or not. Thus, i give a try and it seem it works. Here are the steps how to do it.

dropbox ubuntu

Step 1. Download and extract the dropbox client

For 32-bit:

chankey@linuxstall:$ $ wget -O dropbox.tar.gz "http://www.dropbox.com/download?plat=lnx.x86"

For 64-bit:

chankey@linuxstall:$ $ wget -O dropbox.tar.gz "http://www.dropbox.com/download?plat=lnx.x86_64"

Step 2. Extract the file

chankey@linuxstall:$ tar -xzvf dropbox.tar.gz

Step 3. Run the dropbox client deamon wiht the following command:

chankey@linuxstall:$ $ ~/.dropbox-dist/dropboxd

Step 4. Since the server is not link to any dropbox account yet, so you will see the following message keep showing every few second:

This client is not linked to any account…
Please visit https://www.dropbox.com/cli_link?host_id=ed2986f99681f0a7b0bf1cd36c79d3e9&amp;cl=en_US to link this machine.
This client is not linked to any account…
Please visit https://www.dropbox.com/cli_link?host_id=ed2986f99681f0a7b0bf1cd36c79d3e9&amp;cl=en_US to link this machine.

Step 5. You may now copy & paste the link to any browser by using any computer so that it will start to link this machine to your dropbox account. You will be asking to provide your username & password in order to link this to your dropbox account.

Step 6. Once it’s successful, you will see the the following message in your Ubuntu linux machine:

chankey@linuxstall:$ $ Client successfully linked, Welcome Chankey!

Step 7. Now you may press CTRL + C to terminate the deamon process now.

Step 8. You can manually start the service by running the following command:

chankey@linuxstall:$ $ ~/.dropbox-dist/dropbox

Step 9. You may start to snyc and copy any file to your dropbox folder now.

Ubuntu 12.04 LTS (Precise Pangolin) released!

Ubuntu 12.04 LTS released

Ubuntu 12.04 LTS released

Imagination is as vital to any advance in science as learning and precision are essential for starting points. – Percival Lowell

The Ubuntu team is very pleased to announce the release of Ubuntu 12.04 LTS (Long-Term Support) for Desktop, Server, Cloud, and Core products.

Codenamed “Precise Pangolin”, 12.04 continues Ubuntu’s proud tradition of integrating the latest and greatest open source technologies into a high-quality, easy-to-use Linux distribution. The team has been hard at work through this cycle, introducing a few new features and improving quality control.

To be a bit more precise about what we’re releasing today…

There are 54 product images and 2 cloud images being shipped with this 12.04 LTS release, with translations available in 41 languages. The Ubuntu project’s 12.04 archive currently has 39,226 binary packages in it, built from 19,179 source packages, so lots of good starting points for your imagination!

For PC users, Ubuntu 12.04 supports laptops, desktops, and netbooks with a unified look and feel based on an updated version of the desktop shell called “Unity”, which introduces “Head-Up Display” search capabilities.

Finding and installing software using the Ubuntu Software Centre is now easier thanks to improvements in speed, search and usability.

Ubuntu Server 12.04 has made it much easier to provision, deploy, host, manage, and orchestrate enterprise data centre infrastructure services with the introduction of new technologies such as “Metal as a Service” (MAAS), the Juju Charm Store, and the latest OpenStack version, codenamed Essex. These technologies further position Ubuntu Server as the best OS for scale-out computing.

Read more about the new features of Ubuntu 12.04 in the following press releases:

http://www.canonical.com/content/ubuntu-server-1204-lts-certified-available-and-ready-hyperscale-world
http://www.canonical.com/content/ubuntu-1204-lts-aims-conquer-enterprise-desktop

Long term support maintenance updates will be provided for Ubuntu 12.04 for five years, through April 2017. For those working on the ARM architecture, an 18 month supported release is also provided for the ARM server using the ARM Hard Float (HF) architecture.

Thanks to the efforts of the global translation community, Ubuntu is now available in 41 languages. For a list of available languages and detailed translation statistics for these and other languages, see:

http://people.canonical.com/~dpm/stats/ubuntu-12.04-translation-stats.html

The newest Kubuntu 12.04 (LTS), Edubuntu 12.04 (LTS), Xubuntu 12.04 (LTS), Mythbuntu 12.04, Lubuntu 12.04 and Ubuntu Studio 12.04 are also being released today. More details can be found in their announcements:

Kubuntu: http://kubuntu.org/news/12.04-release
Xubuntu: http://xubuntu.org/news/12-04-release
Edubuntu: http://edubuntu.org/news/12.04-release
Mythbuntu: http://mythbuntu.org/12.04/release
Lubuntu: https://wiki.ubuntu.com/Lubuntu/Announcement/12.04
Ubuntu Studio: https://wiki.ubuntu.com/UbuntuStudio/12.04release_notes

To get Ubuntu 12.04
———————

In order to download Ubuntu 12.04, visit:

http://www.ubuntu.com/download

Users of Ubuntu 11.10 will be offered an automatic upgrade to 12.04 via Update Manager. For further information about upgrading, see:

http://www.ubuntu.com/download/desktop/upgrade

As always, upgrades to the latest version of Ubuntu are entirely free of charge.

We recommend that all users read the release notes, which document caveats, workarounds for known issues, as well as more in-depth notes on the release itself. They are available at:

http://www.ubuntu.com/getubuntu/releasenotes

Find out what’s new in this release with a graphical overview:

http://www.ubuntu.com/ubuntu/whats-new
http://www.ubuntu.com/ubuntu/features

If you have a question, or if you think you may have found a bug but aren’t sure, you can try asking in any of the following places:

#ubuntu on irc.freenode.net
http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
http://www.ubuntuforums.org
http://askubuntu.com

Help Shape Ubuntu
——————–

If you would like to help shape Ubuntu, take a look at the list of ways you can participate at:

http://www.ubuntu.com/community/get-involved

About Ubuntu
—————

Ubuntu is a full-featured Linux distribution for desktops, laptops, netbooks and servers, with a fast and easy installation and regular releases. A tightly-integrated selection of excellent applications is included, and an incredible variety of add-on software is just a few clicks away.

Professional services including support are available from Canonical and hundreds of other companies around the world. For more information about support, visit:

http://www.ubuntu.com/support

More Information
——————

You can learn more about Ubuntu and about this release on our website listed below:

http://www.ubuntu.com

To sign up for future Ubuntu announcements, please subscribe to Ubuntu’s very low volume announcement list at:

http://lists.ubuntu.com/mailman/listinfo/ubuntu-announce

On behalf of the Ubuntu Release Team,
Kate Stewart

Ubuntu Online Tour
——————–

Enjoy the simplicity of Ubuntu’s stylish, intuitive interface. Take Ubuntu for a test drive with our online tour and download when you’re ready!

URL: http://www.ubuntu.com/tour/en/

How to install GIMP 2.8 RC1 on Ubuntu 12.04

GIMP 2.8 on Ubuntu

GIMP 2.8 RC1 was released on April 8, 2012. The details of this new release are on the official site. Here in this article I’ll show how to install GIMP 2.8 on Ubuntu 12.04.

GIMP 2.8 on Ubuntu

Image credit: Ubuntu Vibes

A PPA for GIMP is now available, we’ll use it for easy installation of GIMP 2.8 RC1. Open up your terminal and type the commands given below:

chankey@linuxstall:$ sudo add-apt-repository ppa:otto-kesselgulasch/gimp
chankey@linuxstall:$ sudo apt-get update
chankey@linuxstall:$ sudo apt-get install gimp

and you’re done. GIMP 2.8 RC1 has been successfully installed on your Ubuntu 12.04.