'Linux' Category

  • encryption with gpg

    December 31, 2014
    1. Generate a private key. gpg –gen-key 2. Generate an ASCII version of your public key. gpg –armor –output pubkey.txt –export ‘Your Name’ 3. Register your key with public keyservers gpg –send-keys ‘Your Name’ 4. Encrypt a file gpg –encrypt –recipient ‘Your Name’ foo.txt 5. Decrypt file gpg –output foo.txt –decrypt foo.txt.gpg
  • Copy Disk structure for RAID

    April 15, 2014
    Use that command to copy the structure of sda to sdd: sfdisk -d /dev/sda | sfdisk /dev/sdd