Tuesday, December 6, 2011

Installing VLC in BackTrack 5 R1


There  are only 4 easy steps to install VLC and run in BackTrack --->

Step 1. Open Terminal type -
                   apt-get install vlc

Step 2. Now Open VLC with hexedit -
                   hexedit /usr/bin/vlc

Step 3. Now press 'Tab' and search for 'geteuid' and replace that with 'getppid'

Step 4. Now press 'Ctrl+X' to save that file.

Now you can run VLC .

Wednesday, November 16, 2011

GRUB2 REINSTALLATION


Using Live CD :>>>

This is one of the simplest method for restoring a broken system's GRUB 2 files. The problem partition is located and mounted from the LiveCD. The files are then copied from the broken system's /boot/grub directory to the proper locations and MBR. There are many other methods also...
  1. Boot with the LiveCD and go to Try Now.
  2. Mount the partition with your Ubuntu installation.
    1. From the Places menu, select and click the partition containing your Ubuntu installation to mount it.
      • grub2.places.devices.png
      • If the partition isn't recognized, look for one of the appropriate size or label.
      • Once mounted, the user should see Ubuntu system directories such as /boot
  3. Open a terminal.
  4. Run the grub-setup -d command as described below. This will reinstall the GRUB 2 files on the mounted partition to the proper location and to the MBR of the designated device.
    1. Determine the mount point by referring to the location box in Places. Replace XXXX in the command with the UUID, or replace /media/XXXX with the correct location if the partition is not mounted in /media. The designation may be a UUID, or a label, if the user has created one.
    2. If the location window is not in the format shown, click on the icon to the left to change the presentation.
      • grub2.places.location.png
    3. When ready to copy the UUID/location, by highlighting it with the mouse. Paste it into the terminal.
    4. The device/drive is designated by sdX, with X being the device designation. sda is the first device, sdb is the second, etc. For most users the MBR should be installed to sda, the first drive on their system.
      sudo grub-setup -d /media/XXXX/boot/grub /dev/sda
      Example:
      sudo grub-setup -d /media/7848138a-41a0-4eba-8aed-d1b625ac8759/boot/grub /dev/sda
    5. If the user gets a "error: Cannot open /boot/grub/device.map" message, add the -m switch and path to the device.map to the command as follows:
      sudo grub-setup -d /media/XXXXX/boot/grub -m /media/XXXXX/boot/grub/device.map /dev/sda
      Example:
      sudo grub-setup -d /media/7848138a-41a0-4eba-8aed-d1b625ac8759/boot/grub -m /media/7848138a-41a0-4eba-8aed-d1b625ac8759/boot/grub/device.map /dev/sda
    6. Other switches are available for use with the grub-setup command. In a terminal, type grub-setup --help for a list of available options.
    7. You may find you get a repeated "error: Cannot open /boot/grub/device.map" message. If this happens try rebooting. The UUID method may actually work but throws an error message falsely. Using the label name does not seem to evoke the same repeated error message.
  5. Reboot