Archive for 'Open Source'

Keeping your SSH sessions alive

I recently noticed that ssh connections from my mac laptop to my server would time out and disconnect if I left the connection idle for a long period of time. This could turn out to be really annoying sometimes.

Add the following line to your ssh config file $HOME/.ssh/config:

ServerAliveInterval 180
ServerAliveCountMax 5

That will fix the time out problem …

Read the complete article »

Linux VI Editor

Since the 70’s, Vi is one of the programmer’s best friend. Nevermind you’re new to Vi or not, here’s a big list of more than 100 useful commands, organized by topic, which will make your coder life better :

Search
/word Search “word” from top to bottom
?word Search “word” from bottom to top
/jo[ha]n Search “john” or “joan”
/\<> …

Read the complete article »

USB Drives – Security threat to you and your company

Mostly people think that viruses, worms and hackers are the security threat for them or their company but it is not true.
USB Drives are very small and compact device which is used for storing data and carrying it around from one computer to another with ease but there are some features that make it convenient enough to be the

Read the complete article »

HTTP/Apache status/error codes

HTTP stands for Hyper Text Transfer Protocol. This is an application level protocol used for serving web pages with the help of different web servers.
When a Web server respond to any request from a browser or any web client, the response consists of status line, some reponse headers, a blank line and a document. Example:

HTTP/1.1 200 OK…

Read the complete article »

Creating local YUM Repository(repo)

If you are working in an organization where you have lots of linux users and/or you have several computers to update via yum then you should consider creating a local repository. This will not even conserve bandwidth (updates are downloaded only once on the local reposotory) but it improves the speed of yum for installing additional programs as yum download …

Read the complete article »