Friday, March 18, 2011

Repository dpkg Lock error

E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
This happens if installation is still going on and you are trying to install another package or may be you have killed the ongoing installation.

Therefore for this write on terminal as:
sudo rm /var/lib/dpkg/lock
Now you can use sudo apt normally.

distribution installation through bin

1>Just go to bin and write ./filename   like in ocrep
2> If it doesnot work write  :
chmod 755 <file name>.bin

Also u have to do sudo to do this.
like sudo ./filename

Thursday, March 17, 2011

Compiz Fusion

For making eye candy 3D look to our desktop we use compiz fusion application.
More details can be found Here.

Wireless in Ubuntu 10.04

sudo apt-get install broadcom or for more info refer the following link.
here

Sunday, February 20, 2011

Recovering your Firefox Bookmark

Windows:
1> Goto : C:/Application Data/Mozilla/Firefox/Profile/../Bookmark backup
       save this profile folder to some other location.
2> After reinstalling Mozilla again copy Bookmark backup to same location
3> Open Mozilla -> Open Bookmarks tab -> click on Organize Bookmark -> goto import and backup tab -> restore ->add file.

Similarily in Ubuntu      

Saturday, February 19, 2011

Check the version of shell

1> echo $SHELL   (Since it is an environment variable)
    /bin/bash
2>/bin/bash --version
   this will give the version of shell as output.

SSH

SSH : is know as secure shell used to secure remote login over insecure network.
You can login to other machine, assuming ssh server is running on machine you want to login.
1> install ssh (sudo apt-get install ssh)
2>remote login:
     - Let us say remote system is: bharatj@nsl-32.cse.iitb.ac.in or bharatj@ipaddress
     - Write on terminal as follows:
     - ssh bharatj@nsl-32.cse.iitb.ac.in
     - Ask for password (enter your remote system password)
     - Now you are on remote machine which can be seen as
     - bharatj@nsl-32$ (terminal prompt)
     - Now you can browse through the contents using cd etc commands.

Copying file from remote machine to local machine:
1>Write command on terminal as follows:
     scp bharatj@nsl-32.cse.iitb.ac.in:sourcepath/source-file destination-path
     For ex: source path is /users1/pg09/bharatj/Desktop
                 source file is tracker.c
                 destination path /home/bharatj/Desktop
     So after this tracker.c will be copied on local machine on desktop location.

                     
Copying directory from Remote machine to Local machine:
1> Write on terminal :
      scp -r bharatj@nsl-32.cse.iitb.ac.in: /users1/pg09/bharatj/Desktop/experiment /home/bharatj/Desktop
     This will copy directory experiment from remote machine to local machine on Desktop.

Note: scp -------------- for file transfer
          scp -r -------------for directory

Copying file from Local machine to Remote machine:
1> scp file.pdf bharatj@nsl-32.cse.iitb.ac.in:/users1/pg09/bharatj/Desktop
      This will copy file file.pdf from Local machine to remote machine on Desktop.

Copying directory from Local to Remote Machine:
1>scp -r MTP bharatj@nsl-32.cse.iitb.ac.in:/user1/pg09/bharatj/Desktop
    This will copy directory MTP from local machine to Remote machine Desktop.