Saturday, October 6, 2007

Error in compiling

Somehow I assumed that I would be able to compile a basic C program on any linux box - I mean unices are useful like that, right? So I was a bit surprised when I decided to compile a bit of C just now and was faced with the following errors:

arvind@lovely:gcc-4.1 try.c -o try.out

try.c:1:18: error: stdio.h: No such file or directory
try.c:2:22: error: sys/types.h: No such file or directory
try.c: In function ‘main’:
try.c:5: warning: incompatible implicit declaration of built-in function ‘printf’

So what kind of unix comes with make and a compiler, but none of the required dev libraries and headers required to make any normal C program work? Well a brief google yielded the following solution.. Yup, you guessed it.. you need to install a dev package:

sudo apt-get install build-essential

it works...........

Installing SAMBA

At the prompt enter the following command to install the SAMBA server applications:

sudo apt-get install samba 

To mount Windows filesystems using SMB, you will also need smbfs. Enter the command:

sudo apt-get install smbfs 





Error like E:Unable to check......

If you are tired with the error like

E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory
on updating or anything like arvind@lovely:~$ sudo apt-get update

then do the following

1-) sudo chmod 777 /var/lib/apt/lists/

then delete or cut and paste the lock file in another place and then try

2-) sudo apt-get update

there will error free updating or any processing...........

Friday, October 5, 2007

New To J2ME

New to J2ME....dont worry it is really great for you now....
just click and download the book for beginners

beginning J2ME: From Novice to Professional


Thursday, October 4, 2007

Key Combination For BASH Script

Key or key combinationFunction
Ctrl+AMove cursor to the beginning of the command line.
Ctrl+CEnd a running program and return the prompt, see
Ctrl+DLog out of the current shell session, equal to typing exit or logout.
Ctrl+EMove cursor to the end of the command line.
Ctrl+HGenerate backspace character.
Ctrl+LClear this terminal.
Ctrl+R
Ctrl+ZSuspend a program, see
ArrowLeft and ArrowRightMove the cursor one place to the left or right on the command line, so that you can insert characters at other places than just at the beginning and the end.
ArrowUp and ArrowDownBrowse history. Go to the line that you want to repeat, edit details if necessary, and press Enter to save time.
Shift+PageUp and Shift+PageDownBrowse terminal buffer (to see text that has "scrolled off" the screen).
TabCommand or filename completion; when multiple choices are possible, the system will either signal with an audio or visual bell, or, if too many choices are possible, ask you if you want to see them all.
Tab TabShows file or command completion possibilities.

Basic Terminal Command for Beginners

CommandMeaning
aproposSearch information about a command or subject.
catShow content of one or more files.
cdChange into another directory.
exitLeave a shell session.
fileGet information about the content of a file.
infoRead Info pages about a command.
logoutLeave a shell session.
lsList directory content.
manRead manual pages of a command.
passwdChange your password.
pwdDisplay the current working directory.