Thursday, 31 October 2013

Screenshot tour of Ubuntu 13.10 Saucy Salamander

Here is the screenshot tour for the Ubuntu 13.10 Saucy Salamander. Ubuntu 13.10 comes with great look and some improved design. Upgrade or download and enjoy Ubuntu 13.10 !!!












Thursday, 18 July 2013

Mogrify : An ImageMagic command line tool for various Image operation in Ubuntu

Mogrify is the command line tool from ImageMagic and used to do various image operation from terminal. So it is widely prefer by the designer who need to do batch operation. I came to know about this tool when I need to scale, change the quality and to change the format of the number of images during my Android development. In Android, you need to build 4 types of images of this ratio 3:4:6:8. So it helps me a lot.

Hence I'm writing some useful commands and provide reference to their guide for detailed imformation.

Resize an image : 
  • mogrify -resize 75% image.jpg     [resize it to 75% of its current resolution]
  • mogrify -resize 256x256 image.jpg     [resize it by 256x256 of fix resolution]

Change the format of an image : 
  • mogrify -format png image.jpg     [convert image.jpg to image.png]
  • mogrify -format png *     [covert all image to png format in current directory]

Change the quality of jpg image : 
  • mogrify -quality 50 image.jpg     [downgrade the quality of image by half]

Rotate an image : 
  • mogrify -rotate 90 image.jpg     [rotate image clockwise by 90 degree]

Strip metadata and comments : 
  • mogrify -strip image.jpg     [use to strip all metadata - mainly used to reduce the physical size of an image]


There are many others command which used to do other things with images. The main benefit of this tool is that you can easily use it for batch processing using * at place of your image name. It takes all the files in present directory.

Here is the reference where you can find each command with detail.

Mogrify : http://www.imagemagick.org/script/command-line-options.php




Sunday, 24 February 2013

How to get Hex code of any Color using GIMP in Ubuntu

First open GIMP using Unity dash or type gimp command in terminal [ctrl + alt + t]. Then open Toolbox if it is not open using 'Windows -> Toolbox' or press Ctrl + b. Now click on background and foreground color as shown in following figure.


Now in new dialog box, click on eyedropper as shown in following screenshot.


Then click on the object from where you need to get hex code of color. It will display the hex code of selected color on left textbox.


Here is the video of it for more detail.

Sunday, 2 December 2012

How to install Joomla 3.0.1 on Ubuntu 12.10

In this tutorial, you can learn how to install Joomla 3.0.1 on Ubuntu.

Version of the software we used in this tutorial.
  • Ubuntu 12.10
  • Joomla 3.0.1
  • XAMPP 1.8.1
Here is the video for it.


First download and extract Joomla .zip file [example - 'Joomla_3.0.1-Stable-Full_Package.zip'] to your htdocs folder or your linked folder to htdocs.

    unzip Joomla_3.0.1-Stable-Full_Package.zip -d joomla



Then make its permission to executable [755 or 777].

    sudo chmod -R 777 joomla

Then in browser, open your folder in htdocs in URL. Here is 'http://localhost/joomla'. It will prompt you the following screen.


In first phase "Configuration", you have to provide information like site name, email username and password of administrator. Then click next it will give you the following page.


In second phase "Database", enter the details of your database like database name, hostname ['localhost' if local machine], username, password and prefix for tables and click next. It will give you the following page.


In third phase of "FTP", skip this phase initially you don't need to setup this settings at this time. Just click next will show you the following page.


For beginners, it is recommended to install any of the sample data in "Overview" phase and click next. It will start creating database and install sample data to your server as shown in picture.


After installing it will show you the following page. In which they show the option for remove installation directory so that every time it does not open.


Now remove installation directory by clicking on yellow button or manually. In Ubuntu if you do not change permission to 755 or 777 then it might happen you do not remove this directory from here because it needs root access, so in that case remove it from terminal using 'sudo rm -rf' command.


Noe you can see your homepage by clicking on site or giving path of your joomla directory. You can also access administrator area called joomla control panel by clicking on administrator or your path to joomla directory and then type '/administrator', it will prompt for username password which is already set in the first 'main configuration' phase.

This is th homepage of website.


This is administrator area of website.


After successfully login it will show you the control panel.


Sunday, 18 November 2012

How to calculate Checksum of any file in Ubuntu

In this tutorial, you can learn how to calculate checksum of any file in Ubuntu. Checksum is used to check the file is same or not. If checksum is matched at both ends than your file is correct. There are many types of algorithm you can use for calculating checksum. Most used are md5, sha1, sha256, sha384, sha512.

Now you can watch the video of it or follow the steps given below the video.



First open your terminal and goto your directory where your file is stored. Then first write name of checksum algorithm you want to use following the filename.

If your filename is 'name.pdf' then the various checksum can be calculate by following commands.

    md5sum name.pdf

    output : <checksum value> name.pdf

    sha1sum name.pdf

    output : <checksum value> name.pdf

    sha256sum name.pdf

    output : <checksum value> name.pdf


    sha384sum name.pdf

    output : <checksum value> name.pdf


    sha512sum name.pdf

    output : <checksum value> name.pdf

See the above video for more information.

Friday, 19 October 2012

How to install Ubuntu 12.10 [Screenshot Tour]

It takes less than 15 minutes to install. Here is the screesnshot tour of the installation of fresh Ubuntu 12.10.

















Friday, 31 August 2012

How to set environment variable JAVA_HOME in Ubuntu

We have to set the environment variable in Ubuntu like JAVA_HOME after installing jdk for first time. In Ubuntu for setting up the environment variable follow the following instruction.

First open your terminal [Ctrl + Alt + t], then enter the following command to open the .bashrc file as shown in snapshot.

sudo gedit ~/.bashrc

Now it will open .bashrc file into your gedit text editor, scroll the file to the end and add your environment variable after 'export' keyword and save file.





Now check those environment variable by printing them in terminal using echo keyword.



Now your environment variable are ready for work.

Friday, 10 August 2012

How to establish internet connection using bluetooth in Ubuntu

Here is the tutorial for establishing new internet connection using your bluetooth enabled mobile device to your computer or laptop in Ubuntu.


First plugin your bluetooth or if you have in-built then start your bluetooth.



Then click on bluetooth symbol on the top panel as shown in below screenshot. It opens a menu, click on "Set Up New Device...". And one dialog box will be shown.



Now click on continue. Then it searches for your bluetooth device[mobile] and display your device. Make sure that bluetooth is enabled on your mobile also. Select your device and click on continue.




Now it shows you a 6 digit code enter this code to your mobile and in new dialog box check that check box "Access the internet using your mobile phone [DUN]". Then it open new setup dialog box as shown in screenshot.





Now select your country, service provider and your internet plan or subscription by APN address and click continue as shown in below screenshots. 







Now you are one step far to your connection. Click on internet connection symbol on your top panel. It shows you your connection name as you gave before during setup click on that and enjoy internet.