Setup Cgi on Debian with Apache2

1 /********************************************************* 2 C Programming in Linux 3 demo.c 4 *********************************************************/ 5 #include <stdio.h> 6 7 int main(int argc, char *argv[]) 8 { 9 int i=0; 10 printf("Content-type:text/plain\n\n"); 11 printf("Hello World!\n"); 12 printf("Number of arguments to the main function:%d\n",argc); 13 for(i=0; i<argc; i++) 14 { 15 printf("argument number %d is %s\n", i, argv[i]); 16 } 17 return 0; 18 } gcc -o demo demo.c sudo cp demp /usr/lib/cgi-bin sudo a2enmod cgi Enabling module cgi. To activate the new configuration, you...

Read More →

Create a Linux desktop entry

How to create a Linux desktop menu item. Sometimes we may need to install software in a fashion other than the package manager. One of these programs is the newest or the latest Eclipse IDE. Let's go through the process of installing the latest Eclipse IDE. Go to https://www.eclipse.org/downloads/ to download the latest Eclipse.   https://www.eclipse.org/downloads/ We need to locate the downloaded file, and we need to unzip this file. When we install a program via the package manager, we...

Read More →