Pages

Showing posts with label Linux Tools. Show all posts
Showing posts with label Linux Tools. Show all posts

Friday, March 4, 2016

Putty network error software caused connection abort

It has been 4 years since I published my post. This is one of the posts that was left as draft in 2012.

Working on remote machines machine can be a pain. Putty can be life saver for windows folks. There are so many useful settings that are hardly touched upon in our daily use. One of them is connection settings.

If you have seen this error 'Network error software caused connection abort putty' every time you went for lunch or tea, then it is time to get rid of it.



It turns out the setting is on the putty not the server side. 

1. Start Putty.
2. “Load” your session.
3. Click on “Connection”.
4. On the section that says “Sending of null packets to keep session active”, put some value there. I changed mine to 300 secs.



Explanation:
"Some network routers and firewalls need to keep track of all connections through them. Usually, these firewalls will assume a connection is dead if no data is transferred in either direction after a certain time interval. This can cause PuTTY sessions to be unexpectedly closed by the firewall if no traffic is seen in the session for some time.

The keepalive option (‘Seconds between keepalives’) allows you to configure PuTTY to send data through the session at regular intervals, in a way that does not disrupt the actual terminal session. If you find your firewall is cutting idle connections off, you can try entering a non-zero value in this field. The value is measured in seconds; so, for example, if your firewall cuts connections off after ten minutes then you might want to enter 300 seconds (5 minutes) in the box." 


Sources:

1. http://superuser.com/questions/294824/putty-network-error-software-caused-connection-abort



Monday, September 19, 2011

Installing C/C++ plugin(or CDT) in Eclipse


Problem : Eclipse does not have C/C++ project by default.

Solution:
Install Eclipse CDT (C/C++ Development Tooling)from Synaptic Manager or Terminal

1)  Install the package eclipse-cdt
     sudo apt-get install eclipse-cdt

What is CDT ?
The CDT Project provides a fully functional C and C++ Integrated Development Environment based on the Eclipse platform. Features include: support for project creation and managed build for various toolchains, standard make build, source navigation, various source knowledge tools, such as type hierarchy, call graph, include browser, macro definition browser, code editor with syntax highlighting, folding and hyperlink navigation, source code refactoring and code generation, visual debugging tools, including memory, registers, and disassembly viewer

Refrences:
http://www.eclipse.org/cdt/

Tuesday, August 30, 2011

Comapre File Line By Line

 1. Check whether tool "diff" is installed in your system by typing "diff" in terminal.
    If the output is similar to the below one then diff tool is not installed in your system

   diff: missing operand after `diff'
   diff: Try `diff --help' for more information.

2. If the tool diff is not installed, install it using synaptic or terminal(sudo apt-get install diff)

3. Type the following command in the terminal

   diff filename1 filename2

  The above command will print the difference between the two files on the screen.
 You can also direct the output to another file using following command.

  diff filename1 filename2 >> filename3

  You can also ignore case of file contents using follwoing command

  diff -i --ignore-case filename1 filename2 >>filename3

4. For more options of diff
    Type(in terminal) :

    man diff