Showing posts with label Softwares-Tutorials. Show all posts

GIMP tutorial, How to take a screenshot in GIMP

GIMP-Logo-Large

Being able to capture what is on your screen can be useful at time (one example can be this tutorial in which I had to use pictures of my screen). Taking a screenshot is fairly simple and straight-forward in GIMP. All you have to do is goto File > Create > Screenshot....

GIMP-Screenshot-create-image-from-a-screen-shot-menu

Following the menu as shown in the above picture will open the following window that will help you take the screenshot. From here on all you have to do is choose the right option.

GIMP-Screenshot-Dialog-Box

The window shown in the above figure provide three options (all of them doing exactly what they say):

  • Take a screenshot of a single window
  • Take a screenshot of the entire screen
  • Select a region to grab

Take a screenshot of a single window

If you want to capture only a single window just select this option and click snap. Doing so will allow you to capture any single window that in visible on the screen just by clicking on it.

This option provides a sub-option as well: Include window decoration. You may or may not check it depending on what you want to do. The name is very self explanatory, if you want to include window borders while taking the screenshot select this option and vice versa.

Take a screenshot of the entire screen

Choosing this option will allow you to take the screenshot of the entire desktop. Using the sub-option: Include mouse pointer, you may or may not capture mouse arrow (if normally opt not to capture mouse arrow).

Select a region to grab

If you have to take screenshot of multiple windows or prefer not to capture the entire screen, you can can select this option. It allows the user to capture any portion of the screen. Simple click and drag across the screen and select an area to capture.

What is delay?

There is a sweet little option at the end of the window labeled as delay. Delay can be used to set the time between the moment you press the Snap button and the moment at which the screenshot is taken. Delay option is available while using the options: Take a screenshot of a single window, Take a screenshot of the entire screen

How to install Linux softwares from source code



Many Linux softwares come with easy to use package installer and dependency resolver that make software installation a lot easier and pain-free for the users. But, even with all the modern day utilities it is sometimes necessary or even advisable to compile/build the software from the source code. One reason for that is the packaged version of the program may not be available (yes! it still happens even these days) or sometimes building softwares from the source is rather preferable specially when building security critical applications.
Installing softwares from the source code is rather frowned upon, more than anything. Many people say it is confusing and hard, but all those are just myths. If you follow the instructions given within the source code you can install the software quickly and more easily. Most of the source codes can be built/compiled using the standard configure-make-make install method mentioned in this post, but it is always preferable to read the documentation of the software.

Tools needed for building/compiling from the source code

There are two categories of programs that you may need to build your softwares from the source code:
  1. Essential development tools required in all Linux systems
  2. Specific libraries or utilities on which the program, you are compiling, depends
Following are some standard development tools that you may need to build your software from the source code:

GNU coreutils

This is a large collection of essential system utilities: shellutils, fileutils, and textutils. (See http://www.gnu.org/software/coreutils/ for more info on coreutils.)

GNU binutils

Utilities releated to binary files (Details at http://www.gnu.org/software/binutils/).

gcc

GNU compiler collection, containing C, C++, Objective-C, Fortran, Java, and Ada, and libraries for these languages.

GNU tar

Archiving utility for source tarballs; these end in .tar.

gunzip

Compression utility often paired with tar. These end in .tar.gz.

bunzip2

A super-compression format for packing and unpacking tarballs; these end in .bz2.

make

This does the work of reading your configuration options and building the actual program files.
Note: Most of the Linux distributions have an option to install Core Development Tools so that you don't have to install them separately.
Files on which the program is dependent will be listed some where in the documentation of the source code.

The installation process

The standard way to compile and build a software, from source code, which comes in either tar.gz and tar.bz2 packages is as follow (again note that it is same in most of the softwares but documentation MUST be referred to before going any further.):
  • tar zxvf package-1.0.tar.gz (or tar jxvf package-1.0.tar.bz2)
  • cd package-1.0
  • ls
  • less README
  • less INFO
  • ./configure —help
  • ./configure
  • make
  • make install | tee install-output-makeinstall (this stores the installation output in the text install-output-makeinstall)
The above standard steps will help you install most of the softwares available, but you need to study your configure options carefully. So, make sure to read the configuration help file (using ./configure —help) before trying to install the software.

Advantages/Disadvantages of Compiling from the source

Advantages

  • You can set the exact configuration options
  • You can optimize the program for your specific architecture
  • You get ultimate control over the installation

Disadvantages

  • Updating or removing the softwares can be very hard
  • Dependency resolving can be very painful
  • Compiling the programs might take a lot of time

Printing out files in PDF from any application using Cups-PDF

PDF-File-Icon-3D

Both Windows and Mac OS X support exporting various file formats to PDF, by creating a virtual printer that actually exports files as PDFs. The same functionality can be achieved on Linux using a very useful package 'Cups-PDF'. Cups-PDF can be found in the repositories of most of the distributions, if not you can get it from the official website. I will be using Ubuntu 10.04 LTS - the Lucid Lynx in this demonstration.

Go to the package manager of your distribution and search for Cups-PDF and install it. In Ubuntu you can either use Synaptic Package Manger to download Cups-PDF or you can simple open terminal and type the following command:

sudo apt-get install cups-pdf

Once Cups-PDF is installed on your distribution, it will add a virtual printer to your operating system. Now to print a file to PDF, simply open your application software and click on the print option you will see a printer named PDF in the list along with your other printer (if any). Now, print the file using PDF printer it will put the generated PDF to the PDF folder present in your home.

Note: If the printer is not added in your distribution automatically after downloading the Cups-PDF you may need to add the printer manually. Add a printer via the add printer wizard, add a local printer select Generic under the Manufacturer field, and choose postscript color printer as Model.

Managing and editing your photos using F-Spot, Tutorials and Tricks

F-Spot-Logo

F-Spot is photo manager designed to work on GNOME desktop. If you have got many personal photos or you are just into photography, then you got to use F-Spot. People tend to store photos in folders and try to manage them manually now that is alright for a few hundred images but once the number increase this becomes hard. Photos become hard to search and adding more photos becomes tough as well. So, if you have got lot many pictures or you don't want the labor work of managing them or simple you are just too lazy (like me), don't worry F-Spot will save the day for you.

My first impression of F-Spot was that the interface was really sweet. Sweet in terms of simplicity and ease of use, not much buttons not much confusion. There are two panes, the one on the left shows tags (by default) and can be switched to either one of metadata, Edit, and Folders (each one explained later), and the right pane shows the thumbnails to images. In addition to the two panes there is a very cool timeline, a tool-bar, and a standard menu-bar.

F-Spot currently supports 16 different image formats, so one expects not to have any trouble opening any image that a digital camera takes. It is the default picture manager in Ubuntu and is also available on the package repository of nearly all the major Linux distributions making it easily available to install if not preloaded.

Installing F-Spot

As mentioned above nearly all major linux distributions have got F-Spot on their repositories, so you can use your package manager to install F-Spot on your machine. But, if your linux distribution does not have it in its repository then you will have to do the installation manually.

I will advice you to first look into your package manager and search for F-Spot, in case you can't find it go to F-Spot website. Once you are on the website click on the download option on top bar or visit the download page directly. Under the release section you will see the link to download the package, click it and download the package. Once the package is downloaded extract it in a desired folder. Once extracted, open that folder in terminal and type the following commands in order.

./configure
make
make install

Note: if you are still unable to install, check the readme file or drop in a comment or mail me personally.

How to import photos in F-Spot

When you will run F-Spot for the first time you will be prompted for photo import by F-Spot itself, but if you manually want to import more photos in F-Spot later, like from a camera or some other device, you can do it by pressing the big import button just below the menu bar in the top left corner.

Managing and your photos using F-Spot, How to import photos

When you will press the import button a screen will pop up in front of you, the same screen comes up when you start F-Spot for the first time.

Managing and your photos using F-Spot, How to import photos from a source

Once the above screen comes up, click on the import source to either select a folder or some external media to import images from once you have selected the folder that has the images press import button and the images will start to load.

Once the images are loaded into the window you can press the import button to import them into F-Spot. But, here are a few options you should consider of before importing images:

Managing and your photos using F-Spot, How to import photos from a source
  • Detect Duplicates (Select this option if you don't want to include duplicate photos.)
  • Copy files to the Photo folder (If files are being imported from an external media like camera this option must be selected so that the photos are automatically imported to the hard disk.)
  • Include Subfolders (I prefer this option so that all of the folders are scanned.)

Photo Editing with F-Spot

While in the browser mode double click a photo to enter into the edit mode here in the edit mode you can do some basic (yet useful editing to your photos). F-Spot allows you to do following editing to your image (we will discuss some in detail):

  • Crop
  • Straighten
  • Adjust Colors
  • AutoColor
  • Desaturate
  • Sepia
  • Remove Red-Eye
  • Soft Focus
  • Sharpen
  • Describe
  • Adjust Time

Croping Photos in F-Spot

Croping a photo is like cutting a piece of it, it is good if you want to use the part of the picture only. Like in this whole post images have been cut into pieces just to show you the main parts.

Croping photos using F-Spot

To crop a photo first double click a photo to go into edit mode, and then click on the crop button on in the left pane. Now just click on the photo and keep clicking to select an area that you want to crop. You may also select constraints from the left pane if you prefer.

Straighten Photos in F-Spot

If you took an image that is not straight dont worry F-Spot will correct it. Straighten effect is a tool to level a photo, quite helpful for landscapes taken without a tripod. This tool rotates an image by a specified angle and automagically crops the resulted image, so that you always see a perfect rectangle and a straight photo.

Croping photos using F-Spot

to Straighten a photo just select straighten from left pane (in edit mode). and move the bar to select the number of degrees to straighten the image.

Adjust Colors of Photos in F-Spot

It is another useful option, you can do color correction and even change the white balance. So, if you think the image colors are not good and need a but of adjustment go for this option. If you are creative enough you can make the image look artistic.

Adjust Colors of Photos in F-Spot

AutoColor, Desaturate, Sepia Tone in F-Spot

These are basic option not much selection to make just select them from the left pane in the edit mode and click on the button to apply them. Auto Color will adjust the color of the image. Desaturate will wash the colors away, Sepia Tone will add Sepia effect to it.

AutoColor, Desaturate, Sepia Tone in F-Spot Screenshot

Sharpen a Photo in F-Spot

To sharpen a photo first open picture in edit mode. Then, click 'edit' in the menu bar and select sharpen

Sharpen a Photo in F-Spot in F-Spot Screenshot

Now you will see a preview of the image and a small window through which you can adjust the values to modify the image.

Sharpen a Photo in F-Spot Screenshot

Shortcuts in F-Spot

Global Shortcuts

KeyAction
[Rotate the selected photos to the left
]Rotate the selected photos to the right
DelRemove selected photos from F-Spot's catalogue
Shift + DelDelete selected photos permanently from the drive. If possible, they will moved to trash
tView or edit tags for selected photos
F11Full screen view
Ctrl + IDisplays information about the photo
Ctrl + =Zoom-in
Ctrl + -Zoom-out
Ctrl + NImport photos
Alt + (0 to 5)Alt plus a number from 0 to 5 rate the selected picture(s)

Browse Mode Shortcuts

KeyAction
Ctrl+ASelect all
Ctrl+Shift+AUn-Select all
Arrow keys or H, J, K, LMove focus
Ctrl-Arrow keyMove the focus without changing the selection
SpacebarSelect or unselect the focused photo
Shift+Arrow keyAdd/Remove all photos in the row, in the direction pressed, to the selection
Ctrl+Shift+Left arrow or Right arrowDisplays information about the photo
VPops up a larger preview of the picture pointed by the mouse
Ctrl + VZoom-out
Ctrl + NPops up a larger preview and a color histogram of the picture pointed by the mouse

Tag Shortcuts

KeyAction
F2Rename selected tag
Ctrl+TAdd tags to selected photos

Edit Mode Shortcuts

KeyAction
Page Up, Backspace, BGo to Previous Photo
Page Down, Spacebar, NGo to Next Photo
Arrow keys or H, J, K, LGo to Previous/Next photo or move around a zoomed photo
RGo to a random photo
fFull screen view
0Fit the image to the screen
1Zoom Factor to 1.0 (1 screen pixel per image pixel)
2Zoom Factor to 2.0 (4 screen pixels per image pixel)
EscapeReturns to Browser mode
V/td>Examine photo with magnifying glass (Loupe). Doubleclick on the Loupe, or type v again to close it.
Shift-MousewheelFaster filmstrip scrolling
iToggle infobox visibility ''(only when in full screen)''

Quickest way to send emails in Linux

mail-icon-with-@-sign-on-it-blue-in-color

Too busy to open the email client, or you are just too lazy to make some clicks. Both ways you will find this tip useful to send emails without making a lot of effort. This method works for both KDE and GNOME, just press "alt + F2" and in the dialog box that appears just type in the following command:

mailto:address@host.com 

Once you have added your desired address press enter and you will be directed to your email client either KMail (on KDE Desktop) or Evolution (in case of GNOME). Now simply speak your mind out and you are ready to press the big send button.

How to upload photos to Facebook Album using F-Spot


F-Spot is the default picture manager that come with Ubuntu, a very useful software that can help manage you photos, tagging them, import from a device, and many more. F-Spot can also be used to upload photos directly to your Facebook albums.

The Facebook upload feature is not activated by default (for some unknown reason). To upload your photos via F-Spot, open F-Spot. Go to "Edit -> Manage Extensions". Click on the '+' beside "Export" option, then click on the "Facebook export" option and click Enable.

Facebook extension f-spot screenshot

Go beck to the F-Spot gallery select the photos that you would like to upload to Facebook. Go to "File -> Export to -> Facebook".

Export to Facebook f-spot screenshot

Now hit the big login button to login to your Facebook account.

Export to Facebook login page f-spot screenshot

Once login via F-Spot you will be able to create albums, manage photos, add photos to existing albums etc.

How to install Monitorix in Ubuntu

Monitorix-Logo-ubuntu

Monitorix is a free, open source, lightweight system monitoring tool designed to monitorize as many services as possible. At this time it monitors from the CPU load and temperatures to the users using the system. Network devices activity, network services demand and even the devices’ interrupt activity are also monitored, and more. The current status of any corporate server with Monitorix installed can be accessed via a web browser.

It has been designed to be used under production UNIX/Linux servers, but due its simplicity and small size you may also use it to monitor embedded devices.

All its development was initially created for monitoring Red Hat, Fedora and CentOS Linux systems, so this project was made keeping in mind these distributions. Today it runs on different Linux distributions and even in other UNIX systems like FreeBSD.

Monitorix Features

The monitorization includes:

  • System core (CPU load and temperatures, active processes and memory allocation).
  • Global or per-processor/core kernel usage (user, nice, system, idle and i/o wait).
  • Temperatures (HP ProLiant IML Agent and LM-Sensors with HDDtemp support).
  • Mounted filesystems and disk i/o.
  • Activity of up to 5 network devices.
  • Use of SMTP, SSH, FTP, Telnet, Samba, NetAtalk, VirusMail, FAX, POP3 and HTTP services.
  • Complete MTA statistics including anti-spam, anti-virus and greylisting.
  • Activity of up to 12 predefined network ports.
  • Devices interrupt activity (APIC support with up to 256 different interrupts).
  • Support for HP Insight Management Agents for ProLiant servers.
  • Support for Samba v2 and v3, Sendmail, Postfix, NetAtalk, Qpopper and Hylafax status logs.
  • Support for the Nginx web server statistics.
  • Support for remote servers monitorization (Multihost feature).
  • Silent mode to be able to retrieve the graphs from scripts or other programs.
  • Traffic statistics are stored on disk into RRD format fixed-size databases.
  • Possibility to view statistics per day, week, month or year.
  • Possibility to view statistics with rendered graphs or in plain text.
  • Each picture can be zoomed in to see the graph in more detail.
  • Monthly traffic activity report via email can be sent to LAN users.
  • It warns if some selected network port is not listening.
  • Alert capability if CPU load average reaches or exceeds a threshold value for an specified amount of time.
  • Web interface offers minimal learning, ubiquitous access.
  • Configuration with only one text-plain file.
  • Perl and Shell Script based (lightweight tool).
  • Requires the RRDtool package and a CGI capable web server.

Install Monitorix in Ubuntu Server

Install ubuntu LAMP server follow these steps:

Preparing your system

Install the following packages

sudo apt-get install rrdtool librrds-perl libwww-perl

Now you need to download Monitorix source package from here or use the following command

$ wget http://www.monitorix.org/monitorix-1.5.0.tar.gz
$ tar -zxvf monitorix-1.5.0.tar.gz

Go to the Monitorix directory and execute the install script.

$ cd monitorix-1.5.0
$ sudo ./install.sh

Welcome to Monitorix v1.5.0 installation process.

The install script has detected that this is a Linux operating system.

Currently Monitorix supports only the following Linux distributions:
1 - RedHat/Fedora/CentOS
2 - Generic
3 - Debian (Ubuntu)
4 - Gentoo
5 - Slackware

Please select your option:

Choose the option number 3 (Debian).

The following is a list of the default paths where the Monitorix components
will be installed:

1 - /usr/bin
2 - /etc
3 - /etc/init.d
4 - /var/lib
5 - /usr/share/doc
6 - /var/www
7 - /usr/lib/cgi-bin
8 - /usr/share/man/man5

Last chance to stop the installation.
Are you sure to install Monitorix on the paths shown? [y/n]:

The list of paths should be correct. Press y.

Finally start Monitorix.

sudo service monitorix start

Now wait for a while and then go to http://localhost/monitorix/

Orignal Source

How to make Firefox work faster

Fire-Fox-Logo-Mixed-With-Tux

If you are of the many people who think the response time of Firefox is less or consider it to be slow then you might want to try the following:

  • Open Firefox and in the address bar type about:config.
  • Click on "I’ll be careful, I promise".
  • Use the search bar above to look for network.http.pipelining and double click on it to set it’s value to True.
  • Create a new boolean value named network.http.pipelining.firstrequest and set that to True, as well.
  • Find network.http.pipelining.maxrequests, double click on it, and change its value to 8.
  • Look for network.http.proxy.pipelining and set it to True.
  • Create two new integers named nglayout.initialpaint.delay and content.notify.interval, set them to 0.
  • Restart your browser.

    Once you are done. You will see the speed of Firefox would have increased to a greater extent

    How to convert eBooks from one format to another

    Photo-of-Amazon-Kindle-for-reading-e-books

    Suppose you have brought home an Amazone Kindle or a Barnes and Noble Nook, or may be someone gifted it to you (your lucky day, who knows?). Now the problem is you would need to convert you ebooks to .EPUB or .MOBI format, No panic readers because all you have to do is to install Calibre. With this little piece of software you can actually convert between EPUB, FB2, LIT, LRF, MOBI, OEB, PDB, PDF, PML, RB, RTF, TCR, TXT, HTML and more. Even CBR and CBZ (comic book formats) are supported.

    The syntax to the command is fairly simple.

    ebook-convert input_format output_format

    For example, if you want to convert a comic book archive to something readable on an e-ink screen, use

    ebook-convert filename.cbz filename.epub

    or

    ebook-convert filename.cbz filename.pdf

    Not only will ebook-convert convert the file, but it will also trim the white spaces around the page so they will better fit the small screen of an electronic eBook reader.