Tuesday, February 9, 2010

Low Glare Televisions

GRUB2 ISO images

I used an old pendrive 2GB to be able to enter a couple of ISO CD could be useful.
  • Identify what is the device that associates with ubuntu pendrive
  • $ sudo fdisk-l
  • formatting the pendrive is not mandatory, you can go directly to the installation phase of GRUB2
  • format the pendrive with a label and mount it to install GRUB (the two variables VOL (volume label on the pendrive) and DEV (device discovered in the previous step) are used for convenience
  • $ VOL = BootMii
  • $ DEV = / dev / sdg
  • $ sudo mkfs.vfat-n $ {VOL} $ {DEV} 1
  • if filesystem is mounted on the DEV command generates an error, once the filesystem is created with the previous command you can mount the USB stick via the Resources menu GUI (which will mount the device under / media ) or manually.
  • with grub-install installs everything you need to start the pendrive
  • $ sudo grub-install - no-floppy - root-directory = / media / $ {VOL} $ {dev}
The USB stick is ready to be selected as the boot device in the BIOS, before you use it you must copy the ISO GRUB will make available from its menu and instruct him through the grub.cfg .
in the card is present the folder / boot / grub grub with modules that can be loaded to access the different devices and filesystems .
file to configure GRUB2 (in GRUB menu.lst v1.x was called) is / boot / grub / grub.cfg .
ISO and BIN images can be placed anywhere in the key; In this case reside in / boot / images :
/ boot/images/dsl-4.4.10.iso DamnSmalLinux
/ boot / images / memtest86 +-4.00.bin Memory Test
/ boot/images/ubuntu-9.10-desktop-i386.iso Ubuntu Karmi Koala
Open up / boot / grub / grub.cfg with a text editor. Since this particular
GRUB will load files on a FAT filesystem as its own configuration file I took the liberty of simplifying the extreme configuration including only what interests me:

menuentry "Linux - Ubuntu 9.10 32bit Karmi Koala "{
loopback loops boot/images/ubuntu-9.10-desktop-i386.iso
linux (loop) / casper / vmlinuz boot = casper iso-scan/filename = / boot/images/ubuntu-9.10- desktop-i386.iso noeject noprompt -
initrd (loop) / casper / initrd.lz
}

menuentry 'Linux - Damn Small Linux 4.4.10 " {
loopback loop /boot/images/dsl-4.4.10.iso
linux (loop)/boot/isolinux/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 toram nomce
initrd (loop)/boot/isolinux/minirt24.gz
}
menuentry "TEST - Memory test (memtest86+) v4.00" {
linux16 /boot/images/memtest86+-4.00.bin
}
menuentry "TEST / Memory test (memtest86+, serial console 115200n8)" {
linux16 /boot/images/memtest86+.bin console=ttyS0,115200n8
} The

loopback command allows you to mount and access the ISO9660 filesystem contained in the ISO file.
I do not need to load other modules using insmod to access filesystems such as ext3, NTFS or HPFS because I have everything on the stick.

Monday, February 8, 2010

Best Wishes Bachelorette Sign Card

Obtain IP from a MAC address

does not happen often but if I know which IP took a network device which, for some reason, I can not access directly but which I know the MAC Address I could use the following steps:
  • (Clearing the ARP cache )
  • $ ip neigh flush all
  • (Launch PING across the sub- with fping)
  • $ fping-c 1-g-q 192.168.1.0/24
  • (use grep to search and filter MAC)
  • $ arp-n