Wednesday, August 29, 2012

[ubuntu]How to Mount a VirtualBox(VDI) image

Simple...simple...
#1 First install qemu package

sudo apt-get instll qemu-kvm
#2 Enable nbd
sudo modprobe nbd

#3 Lets Enable in Blockdevice
$ sudo qemu-nbd -c /dev/nbd0 <image>.vdi

$mkdir vb

#4 mount partitions....try nbd0p1,p2,p3..etc..
$ sudo mount  -o noatime,noexec /dev/nbd0p1 vb


Then U can access data in "vb" folder  3;)

After all u have done.....do not forget this..;)

#Unmount all dat shits 3:)


$ sudo umount vb
$ sudo qemu-nbd -d /dev/nbd0

Tuesday, August 14, 2012

Customise Ur Terminal

                                                         Hey,Guys now I'm in Ubuntu 11.10...I think its a good day to start again My Blog .....Ok..Lets Customize our Terminal...(gnome-terminal or Bash)....
Step 1:Open terminal (Alt + Ctrl + T)

Step 2:Type  in "gedit   .bashrc"

 Step 3:Add the Following at the end....some thing like this
           echo "#######################################################


                      Black Beards   Ru13zzzzzzzzzzzzzzzzzzzzzzzzzzzz.........................
                   
                 
                     ########################################################"

Now Save and Close Start Terminal...again.....Voila.....3:)

U Can add any Custom commands...U wish...........like
 "banner blackbeards"

Thats it..;)
                                   

Monday, May 7, 2012

How to create a Backup For Your Installed Apps in Ubuntu or any Ubuntu based System


I.Backup
1. Ctrl + Alt + T(Opens Terminal)
2.Get root access (i) Type "sudo su" then press Enter (ii)Give Your Password
3. Install Require Packages (i)apt-get install fakeroot
(ii)apt-get install dpkg-repack
4.cd to Your Backup directory For example ,Say U have a Thumbdrive and created a folder backup "cd /media/usb/backup"
5.Run the Following in terminal
fakeroot -u dpkg-repack `dpkg --get-selections | grep install | cut -f1`
II.Restore
Steps to reinstall packages
1.Ctrl + Alt +T(Opens Terminal)
2.cd to the "backup" directory
"cd /media/usb/backup"
3.Run the Following in terminal
sudo dpkg -i *.deb

Hope This Helps,Good Day ;) Note:Tested With Ultimate Edition Live USB Created DEBs of all Applications ;)