Thursday, 31 May 2012

How to install dos2unix on Linux

DOS-based text files use a pair of carriage return (CR) and line feed (LF) as a new-line delimiter. On the other hand, UNIX-based text files simply use LFs to terminate each line. In order to convert a text file from DOS format to UNIX format, you can install the following package.Read more »

How to change hostname without reboot on Linux

In order to change hostname on Linux, you need to update a configuration file containing hostname, and then let the kernel know that hostname has been changed. The latter step is needed since the kernel still remembers an old hostname until the next reboot. In order to change hostname without reboot, do the following.Read more »

How to install iftop on Linux

iftop is a command line tool that shows a list of active network connections between local host and any remote host, sorted by their bandwidth usage. The list of top-ranking network connections (in terms of bandwith usage) is periodically refreshed in a text-based user interface. Using iftop, you can visually check the bidirectional bandwidth usage of different network connections in real time. In order to install iftop on Linux, follow the instructions below.Read more »

How to check Linux version

Knowing which version of Linux kernel you are running is important because many software or libraries require certain kernel subsystems and features be available in order to run properly. Knowing the kernel version can also be helpful in diagnosing systems or debugging software problems.Read more »

Wednesday, 30 May 2012

How to add a static route permanently on Linux

A static route is defined by statically configuring a next-hop router IP address for a specific destination network. You can add a static route by using "route add" command. However, a static route so added is not persistent across reboots. If you would like to add a static route permanently on Linux, do the following. In this example, I assume that you wish to define a static route for network 10.10.0.0/16 via 10.10.5.5 on eth0.Read more »

How to install Google Chrome on Linux

Google Chrome is a free web browser based on WebKit layout rendering engine. Since its public release in 2008, Google Chrome has steadily grown its user base, and now it drives approximately one-third of all web browsing activities worldwide, largely thanks to its lightning fast speed and strong security protection. If you would like to install Google Chrome on Linux, you can follow these instructions below.Read more »

How to install Eclipse on Linux

Eclipse is a software development environment with extensible plug-ins, toolkits, and run-time libraries, supporting development in Java as well as other languages such as C/C++ and PHP. In order to install Eclipse SDK on Linux, you can do the following.Read more »