Firefox

Update Firefox to v 15 in Ubuntu [12.04] / Linux Mint [13]

Firefox 15 is available, with a lot of cool new features and improvements, specially related to 3D performance (compressed textures for better performance, with WebGL) and better memory usage for plugins/add-ons (optimized memory use! vow!!! that’s really a great improvement, memory hungry add-ons makes browsing slow and painful sometimes).

Some of the new features/improvements are –firefox-logo

  • silent, background updates
  • support for SPDY v2
  • WebGL enhancements
  • html 5 related improvemens (native support for Opus, audio/video elements etc)
  • available in a new Local language – Maithili (it’s my native language :) )

Updating to Firefox 15

In Ubuntu 12.04 or similar distributions such as Linux Mint, you can get the latest version of firefox – with a normal update. So you don’t need to add any external PPA or download/install it manually, unless you also want to try beta versions or daily builds. So just open the Update Manager and click on Install Updates to update all programs (recommended) or just select the Firefox browser from the list and update.

To update Firefox from Terminal, just execute the commands –

sudo apt-get update
sudo apt-get install firefox

Recommended Link(s)

Firefox

Firefox or Google Chrome ? What’s your primary browser in Ubuntu 12.04 ? [Poll]

Mozilla Firefox is one of the most popular web browser on the Planet, it’s a free and open source browser, available for all platforms. In Ubuntu 12.04 LTS (Precise Pangolin), Firefox comes installed by default (it’s also true for most GNU/Linux distributions).

In last few years – Google Chrome has also become very popular. For Ubuntu users there are lot of open source web browsers available such as – Mozilla Firefox, Google Chrome, Chromium (The base project, on which the Chrome is based on), Midori, Konqueror Browser (Default browser for KDE based distributions), Opera etc.

So what’s your most favorite browser in Ubuntu [12.04] or similar Linux distro such as Linux Mint, Kubuntu, Xubuntu etc ? Firefox, Chrome or what ? VOTE for your primary browser – the one you use often, more than any other browsers.


Ruby 2.0 is out!

How to execute/run Ruby program/script on Ubuntu [12.04/12.10]

Ruby is one of the most popular programming language, it’s a scripting language – like Perl, Python or PHP. Ruby is very easy to learn, it’s also very Human Friendly – so for beginners – it’s a good one to begin with. Ruby has become very popular, mostly in web development, with the Rails framework (most popular and easy to learn web application development framework for ruby).

If you want to learn ruby or may be just started, with Ubuntu (most probably – 12.04 LTS, if you prefer latest stable release), then this post may help you in setting up the ruby environment (on Ubuntu/Linux Mint/other_similar_distributions) and running your first ruby program; you should also checkout the recommended links section for some best free online tutorials (for ruby).

Install Ruby : Getting Ready for Fun

You can install ruby from the system package – using the apt-get or from Synaptic Package Manager but you’re recommended to use RVM (Ruby Version Manager) for installing ruby( instead of  apt-get install ruby1.9.1). RVM is a great tool that allows you to manage multiple versions of ruby – without any hassle, so the rvm way may seems unnecessary at this point but it’s better in long run.

I’ve already explained about installing ruby on Ubuntu/Linux Mint and I’m not going to repeat that again, Just go through this link – installing ruby on rails in Ubuntu 12.04 and follow the steps 1-3 (leave the 4th step because you just want the ruby right now).

Write your first Ruby program

Open the gedit and write the following lines of code

#! /usr/bin/env ruby
puts "Hello, Ruby"
# it just prints Hello, Ruby on the screen (comment)

Now, save the file as hello_world.rb (Ruby source code has the extension .rb ) in your Home directory (~).

Run/Execute Your first ruby program

Open a terminal and type the commands –

cd ~
chmod +x hello_world.rb
ruby hello_world.rb

This video might give you some additional hints if you need.

Recommended Link(s) for Learning Ruby (Free Online Resources)

Learning Rails ?

Check out this interactive video course on Ruby on Rails at Treehouse.

Linux Mint 13 : Cinnamon Desktop

Unity vs Cinnamon

Unity is the default Desktop environment of Ubuntu 12.04 – Precise Pangolin, LTS (from the last few versions, before that GNOME was the default desktop). On the other hand, Cinnamon is the Default Desktop Environment of Linux Mint 13 (Maya) Cinnamon Edition (Linux Mint 13 also comes with other Desktop Environment such as MATE, KDE, XFCE etc).

Although, both Unity and Cinnamon is based on GNOME 3 but Cinnamon is more closer as it also uses Gnome Shell as its core. Cinnamon and Unity, both of the Desktop is available independently, so any one can try it in any other (supported) Linux distributions such as Fedora, Debian etc.

Linux Mint 13 : Cinnamon Desktop

Desktop Environments : Unity vs Cinnamon

1. Ease of use

Cinnamon is gaining more popularity because it’s GNOME 3 – with the feel and experience of GNOME 2. So most people, using GNOME 2 from years feel more comfortable with Cinnamon Desktop. Unity has also improved – but it’s certainly not so easy as Cinnamon, specially for Linux beginners.

2. Customization Options

Both are based on GNOME 3 so you can easily customize using some simple tools like Gnome Tweak Tool.

Cinnamon is more easily customizable because of the cool applications available such as Cinnamon Settings; you can customize a lot of things such as Themes, Panel, Fonts, Desktop/Window Effects, Extension etc in few clicks. You can also customize your panel (very similar to GNOME 2), using Panel Edit Mode.

Unity does have some simple tweak tool such as MyUnity but it doesn’t provide so many options, in such a user friendly way.

3. stability

Cinnamon entered into the market when users were looking for an alternative to Unity and Gnome Shell. So Cinnamon is a relatively new project as compare to Unity. Both have bugs – Cinnamon freezes sometimes while Unity panel behaves strangely (sometimes I can’t find the active apps on panel). After the continuous development cycles, Unity seems to be little more stable (in Ubuntu 12.04) and mature Desktop environment as compare to Cinnamon.

4. Productivity

Cinnamon follows the conventional style layout so obviously the users (specially the GNOME 2 users) feels more comfortable with Cinnamon. It is like a GNOME shell desktop with GNOME 2 style windows, panels and more. Expo view allows users to manage work-spaces in much easier way. Unity can also be made productive if you use the shortcuts and new features such as HUD, But Cinnamon does that by being more simple!

Conclusion : Cinnamon wins!

Now, VOTE for your favorite Desktop Environment and explain the reason with a comment!

<a href=”http://polldaddy.com/poll/6478329/”>What’s Your Favorite ? Unity or Cinnamon</a>

compiling-executing-c-program

How to Compile ‘n’ Execute/Run C/C++ program in Ubuntu 12.04

Now a Days, Ubuntu is one of the most popular OS among programmers (not only nerds but also the beginners who just entered into the programming world) but for a beginner Ubuntu user coming from Windows may feel some problem in programming with Ubuntu.

On Windows they use nice GUI based IDE, but in Ubuntu things are little different. In Ubuntu it’s better to use Terminal (specially for the beginners), instead of GUI based IDEs such as Eclipse, Netbeans etc for compiling programs. In fact, the command line approach is much easier and efficient, due to the powerful shell such as bash, zsh etc.

So, in this post – you will learn – how to compile and execute (run) C/C++ programs in Ubuntu 12.04 (Precise Pangolin)/12.10(Quantal Quetzal) or other Linux distributions such as Linux Mint 13 (Maya). You don’t need to install any extra applications or tools other than the compiler. The default text editor – gedit will work fine for source code editing (unless you have a preferred source editor such as Emacs, Vim, Nano, Kate or something else).

#1. Install the C/C++ Compiler

First make sure that you have GCC (GNU Compiler Collection, for C language) and G++ (for C++ language) installed on your system. If not, then install it by typing the following commands on Terminal –

For C

sudo apt-get install gcc

For C++

sudo apt-get install g++

#2. Write the Program (Source Code)

Open gedit and write the following lines of code (it’s a simple program that contains one print line and one comment, just for explanation purpose) –

#include<stdio.h>

void main()
{
	printf("Hello! Human!\n");
	/* Do something more if you want */
}

Then save the file as hello_human.c on your Home Directory (~). If you ae writing a c++ program, then give it the extension as .cpp (and of course you will also have to change the command accordingly during compilation)

#3. Compile it

The command structure is :

gcc source_file_name.c -o executable_file_name

if leave the -o option (name of the output file) then by default a.out will be created as the executable output file.

To execute the above example program, open a terminal and type –

cd ~
gcc hello_human.c -o hello_human

[In case of C++, just replace gcc with g++, rest of the things are same, e.g g++ source_file.cpp -o executable_file]

#4. Execute It

On Terminal, type (from the same directory where you have the executable file, in this case, it’s Home Directory(~) ) –

First make the script executable (sometimes, it may not be necessary)

chmod +x hello_human

Then run the program using the command –

./hello_human

Now you should get the output –

Hello! Human!