Sunday, November 28, 2010

Installing *.deb package from terminal

1. Install:
$ sudo dpkg -i package_file.deb

2. uninstall:
$ sudo dpkg -r package_name

Saturday, November 27, 2010

Mounting Hard drive via SSH

do following steps...

1. you should be sudo user.
         $ sudo su


2. displaying available hard drives in your system.
           fdisk -l


3. Suppose you want to mount /dev/sda1 drive, make some directory where do you want mount it.
        # mkdir /home/megh/HD1


4. mounting drive( assuming NTFS).
      #  sudo mount -t ntfs-3g /dev/sda1 /home/megh/HD1


5. done !!! browse directory HD1


(NOTE: if it's FAT32 swap out 'ntfs-3g' for 'vfat')

Monday, October 11, 2010

scheduling tasks to be executed at a certain time in Ubuntu.

Here is useful tip for ubuntu users who wants to execute certain scripts periodically, like monitoring disks, updates, certain logs, periodic backup, periodic rsync and more..

Corn is daemon which will allow you to  schedule and execute certain tasks you assigned. Here is link to CornHowTo

Thursday, September 23, 2010

Restore original appearance and theme

Restoring default Ubuntu theme and appearance after installing some nasty themes which slows down performance of system.

Open up a terminal
Applications -> Accessories -> Terminal

We need to remove all these sections, they store gnome settings
The folders to remove are: .gconf, .gconfd, .gnome, .gnome2, etc.

So do this command:

$rm -Rf .gconf .gconfd .gnome .gnome2

Then log out and log back in (or reboot if you prefer)

Wednesday, September 1, 2010

C editing with VIM

Hi,


Here is some good references for improving your VIM editor for 'C' and 'C++' programming. I have also attached my vimrc file. have a fun !!!


Link1

link2

Saturday, August 21, 2010

LDD(Linux Device Driver)

I am doing some LDD experimentations, so what ever I found useful for LDD I am posting here, It might be useful for people interested in LDD.

Basic Tutorials: Free Basic Tute       Link2       Link3     Link4       Link5

Compilation steps: Only up to compilation(do not follow for installation)

Compilation and installation: link1( this adds our custom kernel as default kernel, unless u r sure don't do  this)

For Ubuntu 10.04 -  working



Thursday, August 12, 2010

Dropbox in ubuntu (behind proxy)

Download Dropbox from link bellow:

Download Dropbox here

After installation download the experimental build of Dropbox:
For X86 :
$wget -c http://dl.getdropbox.com/u/17/dropbox-lnx.x86-0.6.491.tar.gz
For x86_64 : 
$wget -c http://dl.getdropbox.com/u/17/dropbox-lnx.x86_64-0.6.491.tar.gz



                            OR 


put above URL in firefox for manual download
put dropbox-lnx.x86-0.6.491.tar.gz in Home Folder.


untar using following command:


$tar xzf dropbox-lnx.x86-0.6.491.tar.gz # or x86_64


Run:


$killall nautilus
$ sh .dropbox-dist/dropboxd


Then tray icon will appear on top panel, right-click on it -> preferences -> Network proxy. then give your proxy details, close it.


Again run shell-script 'dropboxd' It will ask for your account detail, enter the same and you are done!!!


(NOTE: If not run properly logout after proxy setting and re-login and run shell script 'dropboxd' again.)