Wednesday, June 17, 2015

no common cd rom drive was detected

When installing Debian from external USB harddisk, you might encounter
this error message:

"no common cd rom drive was detected"

Just enter "No" and enter "/dev/sdb"

Reference:

-
https://forums.kali.org/showthread.php?3928-No-common-cd-rom-drive-detected-installing-from-USB-HDD

Monday, June 15, 2015

how to restore grub with encrypted partition (dm-crypt)

If you have an encrypted parition with dm-crypt for "/" and your GRUB
is corrupted (or wiped after installing other operating system onto the
same computer), please follow these tips.

- grub-install and update-grub need to be executed under chroot'ed.

This is the most important tip. You must chroot into the encrypted
partition first.

- cryptsetup luksOpen /dev/sda3 csda3
- mount /dev/mapper/csda3 /mnt/system
- (assuming csda3 is /)
- (assuming sda2 contains an unencrypted /boot for this operating
system)
- mount /dev/sda2 /mnt/system/boot
- mount -o bind /dev/ /mnt/system/dev/
- mount -o bind /proc/ /mnt/system/proc/
- chroot /mnt/system
- grub-install /dev/sda
- update-grub

https://pzolee.blogs.balabit.com/2010/07/grub-helyreallitas-titkositott-es-lvm-particiok-eseten/

Friday, June 12, 2015

Friday, June 5, 2015

Super Cool configuration for VIM

http://sheerun.net/2014/03/21/how-to-boost-your-vim-productivity/

Thursday, May 28, 2015

muttator - quicksheet

compose: insert mode, ctrl+i
archive: ctrl+s

Thursday, May 14, 2015

how to convert flv into mp4 with ffmpeg

ffmpeg -i filename.flv -c:v libx264 -crf 19 filename.mp4

Monday, May 4, 2015

The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources

When apt-get upgrade-ing and you get the below error message,

# apt-get upgrade
Reading package lists... Done
E: The value 'stable' is invalid for APT::Default-Release as such a
release is not available in the sources

Please try commenting the line below in /etc/apt/apt.conf.d/70debconf .

APT::Default-Release "stable";

Monday, March 30, 2015

how to generate ssl certificate request file

% openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out
example.com.csr

Friday, January 23, 2015