Linux

How can I make bash my login shell?

Every time, I do SSH to my Linux box, the default shell comes as: csh, but I want to, use the bash shell automatically from PuTTY. For making bash as the default login shell, first we need to find out, the path of the bash shell, by using:

which bash

If your login shell is csh or tcsh, and you have installed bash in /bin/bash then create a ~/.login file and add the following line:

Passwordless SSH Using Key Based Authentication with Putty

SSH (Secure Shell) is a protocol for connecting two computers securely. It provides secure authentication as well as encryption. If you use Linux, most distros have ssh installed by default.

You can log to a Linux machine using SSH protocol from a putty client by entering the username and password. But if, both the machines are yours only, and no one else uses those machines, it makes a hindrance to enter the username and password, every time you do SSH to that server.

How to add "Command Prompt Here" to Nautilus/Gnome?

Command Prompt Here: Windows developers are familiar with the tiny utility "Command Prompt Here" which allows them to open the command prompt from the windows explorer, with the working directory set to the current directory selected in the windows explorer.

Run Commands Effectively in Linux

There are various ways to launch applications and run commands in Linux. Which method is best is a matter of personal taste and individual productivity needs. Here I will discuss some of the best methods available in Linux to do the common quotidian tasks easier and faster.

Command Prompt

The basic method of running commands is through the gnome-terminal, i.e. the command prompt in the Windows language. To run gnome-terminal, just press ALT+F2, type "gnome-terminal" and press the enter key.

How to install the latest Adobe flash player in Linux?

Adobe® Flash® Player 10, introduces new expressive features and visual performance improvements that allow interactive designers and developers to build the richest and most immersive Web experiences.

Introduction to Ubuntu

Ubuntu is a community developed, free and popular Linux distribution for desktops, laptops, and servers, forked from Debian and sponsored by Mark Shuttleworth. The name of the distribution comes from the African concept of ubuntu which may be rendered roughly as "humanity toward others", "we are people because of other people", or "I am who I am because of who we all are", though other meanings have been suggested.

How to set command alias in Linux?

I came from the Windows world and uses cls to clear the terminal screen. So, I wanted to add a global alias for the cls command. To add the alias, you have to make an entry to the .bashrc file in the Home folder.

global_keybindings not working in Ubuntu 9.04

You can create hotkeys for the most commonly used programs in Linux by following the steps:
  • Launch gconf-editor by typing in a terminal: gconf-editor.
  • In gconf-editor choose apps » metacity » global_keybindings.

How to check whether two files are equal in Linux?

There are so many ways to check whether two binary files are equal. One of the way, is to calculate the MD5 Hash of the file and compare it with the MD5 hash of the another file.

md5sum first.so
md5sum second.so

The other slightly better is to do the diff of the files, using the diff command.

diff first.so second.so

How to check dependencies of any executable file?

In Windows, you can use the Dependency Walker to scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules. For each module found, it lists all the functions that are exported by that module, and which of those functions are actually being called by other modules.