VirtualTam's bookmarks

  1. Here are the steps I used to migrate a CentOS 7 VM from (presumably?) an ESXi server, to a local VirtualBox environment.

    The LVM volumes were not detected at boot, and after the boot timeout, the OS fell back to the Dracut emergency shell.

    • get a CentOS minimal installation CD
    • check the VM's resources and peripherals:
      • ensure there are no floppy drives (!)
      • setup CPU and RAM resources
      • check virtual drives
      • add an SCSI optical drive if needed
    • optional: convert the virtual drive images from VMDK to VDI
    • mount the CentOS installation disc
    • boot on the installation disc:
      • select "Troubleshooting", then "Rescue"
      • let the rescue utility detect filesystems and mountpoints
    • $ chroot to the detected environment
    • backup files:
      • /etc/fstab
      • /boot/grub/grub.cfg
    • under /boot, backup the initrd and initramfs for the current configuration (these will be overwritten)
    • compare the current /etc/fstab with the output of $ lsblk and $ blkid
    • if needed, manually edit /etc/fstab to use the appropriate block device UUIDs, identifiers and mountpoints
    • regenerate GRUB configuration:
      • $ grub2-mkconfig -o /boot/grub2/grub.cfg
    • if needed, reinstall GRUB:
      • $ grub-install /dev/sda
    • rebuild initrd:
      • $ mkinitrd --force /boot/<initrd_image> <kernel_version>
    • rebuild initramfs:
      • $ dracut --force <kernel_version>
    • exit the chroot
    • unmount the installation disc
    • reboot
    • optional but highly recommended: cross your fingers
    • ...
    • profit!
  2.  1# setup a transifex virtualenv
     2virtualenv2 VENV; source VENV/bin/activate; pip install transifex-client
     3
     4# global config: ~/.transifexrc
     5# this step can be omitted, as 'tx init' will create the file if it doesn't exist
     6[https://www.transifex.com]
     7username = User
     8token =
     9password = un54f3_p4ssw0rd!
    10hostname = https://www.transifex.com
    11
    12# setup example project
    13mkdir example; cd example
    14tx init
    15tx set --auto-remote https://www.transifex.com/projects/p/my-project/
    16
    17# get the files
    18tx pull -l pt_BR
    19
    20# edit things
    21poedit / linguist-qt4
    22
    23# push to transifex
    24tx push -t
    
  3.  1# first, clone the repository
     2git clone REPO REPO2
     3cd REPO2
     4# remove all unneeded files from this version
     5git filter-branch -f --prune-empty --index-filter "git rm --cached --ignore-unmatch FILES_AND_DIRS_TO_DELETE"
     6git gc --aggressive --prune=1day
     7git fsck --unreachable
     8# refresh the remote
     9git remote rm origin
    10git remote add origin ssh://HOST/REPO
    11# broforce push!
    12git push -f origin master
    13
    14# cleanup our original repository
    15cd REPO
    16git filter-branch -f --prune-empty --index-filter "git rm --cached --ignore-unmatch OTHER_FILES_AND_DIRS_TO_DELETE"
    17git gc --aggressive --prune=1day
    18git fsck --unreachable
    19# broforce push!
    20git push -f origin master
    
  4. The Linux world grew by yet another distribution this summer, as Paris Hilton announced the release of Tinkerbell Linux. [...] Tinkerbell Linux is based on Slutware Linux and will be distributed on Paris Hilton's next music CD entitled "Crontab for Love.