Skip to Content

Revision of Random useless Linux (Gentoo) tips from Mon, 17/01/2005 - 7:14pm

The revisions let you track differences between multiple versions of a post.

emerge mplayer add to ~/.bashrc : idmedia(){ mplayer -identify -frames 0 -ao null -vo null -vc dummy "$@" 2>/dev/null | grep ID_ } ID_AUDIO_ID=0 ID_FILENAME=/media/mp3/Mortal love - All the beauty - 07 - I want to die.mp3 ID_AUDIO_CODEC=mp3 ID_AUDIO_FORMAT=85 ID_AUDIO_BITRATE=192000 ID_AUDIO_RATE=44100 ID_AUDIO_NCH=2 ID_LENGTH=591

cat some.iso | aespipe -H sha256 -e aes256 > some-encrypted.iso burn it with cdrecord (or losetup /dev/loop0 some-encrypted.iso) cryptsetup -c aes -s 256 -h sha256 create cdrom /dev/loop0 Password: (the password you used with aespipe) mount /dev/mapper/cdrom /mnt/cdrom and voila! of course you need device-mapper, dm-crypt target in the kernel, aes in cryptography.

USE=softemu emerge qemu qemu -cdrom /path/to/my.iso -boot d

USE=softemu emerge qemu qemu -kernel /bath/to/bzImage -initrd /path/to/initrd -append "kernel cmdline" -hda /dev/hda -snapshot -hda/-hdb/-hdc/-hdd are either actual devices so the kernel can use or images -snapshot so any modifications done to the harddisk(s) wont be saved. More to come later..

Comments

YoussefAssad's picture

First one is cool. -- Pan

First one is cool.

--

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Dr. Radut | book