Notes:
- Unfortunately the process is not as simple as I'd have expected it, that's why I wrote this little step-by-step instruction.
- My setup is/was:
- OSX 10.9.4
- VirtualBox 4.3.12
- VMware Fusion 6.0.4
- OS as VM to migrate: Ubuntu 10.04.4 LTS
| #!/bin/sh | |
| case "$1" in | |
| # update the file 'partman-base.postinst' with our filesystem "installer" | |
| installer) | |
| #sed -i 's/partman/\/tmp\/lvm.sh partman/' /var/lib/dpkg/info/partman-base.postinst | |
| sed -i 's/partman/\/tmp\/lvm.sh destroy; \/tmp\/lvm.sh partman/' /var/lib/dpkg/info/partman-base.postinst | |
| logger -t lvm.sh modified partman-base.postinst | |
| ;; |
| # Customize BASH PS1 prompt to show current GIT repository and branch. | |
| # by Mike Stewart - http://MediaDoneRight.com | |
| # SETUP CONSTANTS | |
| # Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
| # I don't remember where I found this. o_O | |
| # Reset | |
| Color_Off="\[\033[0m\]" # Text Reset |
| > cd /Applications/VMware Fusion.app/Contents/Library/VMware OVF Tool | |
| > ./ovftool --acceptAllEulas /Users/marco/Documents/Virtual\ Machines.localized/Windows\ 8.1\ x64.vmwarevm/Windows\ 8.1\ x64.vmx /Users/marco/Desktop/Win81.ova |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| #!/bin/bash | |
| # (c) [email protected] | |
| # | |
| # This script tries to reregister QEMU's binfmt_misc handlers with the | |
| # fix-binary (F) flag in order to be usable with 'docker buildx' to build | |
| # multi-architecture images. | |
| # For more information see: | |
| # https://nexus.eddiesinentropy.net/2020/01/12/Building-Multi-architecture-Docker-Images-With-Buildx/ | |
| function remove_binfmt() { |
| #!/bin/bash | |
| # (c) [email protected] | |
| # | |
| # This script checks if all software requirements are met in a Linux environment | |
| # in order to use 'docker buildx' to build multi-architecture images. | |
| # For more information see: | |
| # https://nexus.eddiesinentropy.net/2020/01/12/Building-Multi-architecture-Docker-Images-With-Buildx/ | |
| function error() { | |
| echo "ERROR: $*" |
| #!/bin/sh | |
| # based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
| # delete all evicted pods from all namespaces | |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff state from all namespaces | |
| kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |