Skip to main content

Posts

Showing posts from July, 2010

25 Linux tips for Windows switchers

Don't see what all the Windows 7 fuss is about and thinking of jumping ship to Linux? The experience of switching to Linux needn't be a traumatic one. Here are 25 things you need to know that will make your transition to an open source OS easy. The basics 1. What's a distribution? Linux isn't sold as a single package like Windows or MacOS. There are lots of variations on the basic operating system put together by different people for different reasons. Some might be hardware specific - designed to run on netbooks, for example - while some might be tailored towards particular uses, like general desktops, webservers or multimedia workstations. Think of them as like the different versions of Vista, but with many more apps in each package. Each of these different bundles is called a 'distribution'. The pain-free guide to switching Linux distros 2. How are they different? The most obvious differences between distributions are the number and type of applic...

VIM Faster Navigation

Sometimes even the simplest of tasks like navigating through a single file can be optimized. Vim offers several methods of navigation within a file, which can adapt to the contents of the file and how it is organized. Some of these methods are obvious, while others are more complex. Mostly, the files we are editing are well structured. If our files are text, then this structure can be in the form of paragraphs, sentences, and words, or at other times code with functions, blocks, and code lines. Vim supports jumping around the file, according to the structure in the file, and has key bindings that make it easy to go to the exact place in the file where you want to go. Moving within a text file You are working on a normal text file and in the middle of a sentence you realize that you have forgotten to make the first letter in the paragraphs uppercase. You could of course, use the arrow-keys or the h/j/k/l navigation keys to move to the beginning of the paragraph to cor...

Boot up ubuntu faste

Ubuntu reached the 10 second boot time with Lucid Lynx. what if your system isn’t quite reaching that point? You can speed it up using profiling option. To do this follow these steps: 1.At your boot screen press “e” (for edit). 2.Use your arrow key and move down to the entry beginning with “kernel”. 3.Press “e” again. 4.Add “profile” (no quotes) at the end of this line. 5.Hit Enter. 6.Click “b” (for boot). The firs time you boot with profile it will take a little longer. What this is doing is profiling your boot process so it knows what files are accessed and then sorts them according to how they are stored on your drive. Your next boot should be considerably faster.

How To Display / Delete IP Route Cache on Linux

How to display the route cache ip route show cache A sample entry from the list is: 217.212.227.18 from 172.16.0.69 via 192.168.0.1 dev eth2 src 172.16.0.50 cache mtu 1500 advmss 1460 hoplimit 64 iif eth0 This tells us that all requests from 172.16.0.69 (my machine's IP) to 217.212.227.18 (Akamai machine) gets routed via eth2 interface using the gateway 192.168.0.1 (Tata Indicom Broadband). How to delete the route cache ip route flush cache

How To: Load Balancing & Failover With Dual/ Multi WAN / ADSL / Cable Connections on Linux

Requirements for Load Balancing multiple ADSL / Cable Connections 1. Obviously you need to have multiple (A)DSL or Cable connections in the first place. Login as root for this job. 2. Find out the LAN / internal IP address of the modems. They may be same like 1921.168.1.1. Check if the internal / LAN IP address of both (or multiple) modems are same. In that use the web / telnet interface of the modems to configure one of the modems to have a different internal IP address preferably in different networks like 192.168.0.1 or 192.168.2.1 etc. If you are using multiple modems then you should configure each of them to have different subnets. This is important because now you can easily access the different modems from their web interface and you don't have to bother connecting to a modem through a particular interface. It is also important because now you can easily configure the interfaces to be associated with different netmasks / sub-network. 3. Connect each modem to the computer...