30 November, 2010

fork bomb explained...

  Don't try this @ your home ....Injurious to your computer's health, else  you will be... Defining the fork bomb . . .                    A fork bomb is simply a line of some characters entered into the command line of a Unix system, and when the enter key is pressed, within seconds the computer will crash... The little program we entered in to the bash shell act as a process & make multiple...
Read rest of entry

28 November, 2010

How to share /home directory between two linux installations

            Frequent re-installations of operating system due to crashes  is always been a problem for many of the linux users, and my case is also the same.... Everytime i start with doing something like trying some new commands or editing some configuration files and finally ends up with an 'OS crash' and a fresh installation thereafter. Now it's been a very usual matter that i may have to install a fresh copy of linux distro probably...
Read rest of entry

26 November, 2010

Choosing the right laptop for my friend

                       Last week i was looking out for a laptop for my friend. I had been instructed to check out for a notebook that cost below 50,000/-. He suggested me to checkout for a Dell or Vaio. The brand name is nowadays a big factor for any product and first word like 'dell' or 'vaio' from consumer is nothing because of this brand effect. He was looking for a professional + entertainment...
Read rest of entry

23 November, 2010

Easiest way to add nautilus scripts in Ubuntu

                  Here is a bit tutorial for adding nautilus scritps in ubuntu that will help you to increase the system accessibility. These scripts can be run by simply clicking the right mouse button and selecting any from the 'scripts' menu. The imporatnt advantage of the nautilus scripts is its easiness, for example we dont need a an image processing standalone application to rotate an image or convert it to...
Read rest of entry

22 November, 2010

Basic javascript programs

 1. A javascript to implement variable usage <html> <title>Variable Using Script</title> <body> <script>       var greetings;       greetings='Hi, How are you?';       alert(greetings); </script> </body> </html> 2. A javascript to implement the pop-up boxes <html> <title>Script for prompt</title> <script> var username; var greeting; username...
Read rest of entry

a Javascript a day | my javascript tutorial . . .

                 Here i share my basic experimentsi had done with javascript. Its not enough for making a geekness with that, but only for making the first lessons of javascript ... What is javascript ? JavaScript is a scripting language that will allow you to add real programming to your webpages. You can create small application type processes with JavaScript, like a calculator or a primitive game of some sort. Important...
Read rest of entry

21 November, 2010

My first java applet program

              This is a blog about embedding a simple java applet inside a web page. A java applet is actually a runnable java program that can be embedded in a website for showing some graphics or making the web page interactive. It all runs by itself and any modern web browser with java plugin can run applets. So we create a sample java program first and then compile it to make the .class file ie the runnable. Then this runnable...
Read rest of entry

08 November, 2010

C program in UNIX to for TCP communication through sockets

Here is a C program in  Unix that introduces the basics of tcp communication by creating sockets. Here the cleint program and server programs communicates by passing messages to the sockets.  Inorder to run this program store each program in  separate C files and compile it. Inorder to make it working run the programs simultaneosly in two terminals.  tcp client program /*program to create tcp client*/#include<stdio.h>#include<sys/types.h>#include<sys/socket.h>#include<arpa/inet.h>#include<string.h>#include<unistd.h>#include<netinet/in.h>#include<stdlib.h>#include<sys/ipc.h>#include<limits.h>#include<fcntl.h>#include<sys/shm.h>main(){   ...
Read rest of entry

18 October, 2010

Download flash videos in Ubuntu without any application

Here is a simple trick that you can use to download your favourite flash videos from Youtube or metacafe without any application. You can stop your search for an apt application for downloading youtube videos... installing it on linux...Just leave everything... Just login to the youtube and click on some videos to play it. While the video is streaming, check the /tmp folder in the Ubuntu's file system. There you can see the same video file being updated with filename like Flash26YGf2.flv You...
Read rest of entry

14 October, 2010

How to add sudo to last command typed in bash terminal

Its most common that you might forget to type in the 'sudo' command along with some other commands. I have faced this problem many times and usually end up by typing the entire command with sudo keyword again. Here is a technique that we can use to avoid retyping the command again after typing sudo. Consider that i have to install a package called blueman system with the apt package manager via the terminal. Here i am not adding the sudo command before the apt command Then type the following...
Read rest of entry

11 October, 2010

Troubleshooting Network problems in Ubuntu

                Internet connectivity is one of the important means of communication in todays life. So troubleshooting the problems in our own networks or reconfiguring it for the easiness is not to be praised as a "geekness". In my opinion you don't need to be a geek for setting an internet connection or recovering your machine from a network problem. Before getting into more troubles just checkout wheather the physical...
Read rest of entry
Pages (28)123 Next
 

Terminal Diary | techblog Copyright © 2009 Gadget Blog is Designed by jintu jacob Powered by Blogger