VirtualTam's bookmarks
42 bookmarks found
-
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!
-
Apache Ivy ™
2018-03-05 -
- https://github.com/docker-library/official-images#architectures-other-than-amd64
- https://hub.docker.com/u/arm32v7/
- https://forums.docker.com/t/automated-build-raspberry-pi-based-image-on-docker-hub/4155/7
- https://www.ecliptik.com/Cross-Building-and-Running-Multi-Arch-Docker-Images/
- https://stackoverflow.com/questions/44925788/dockerfile-compile-in-local-machine-but-fails-in-docker-hub-for-automated-build
- https://github.com/alexellis/docker-arm
- https://github.com/resin-io-projects/armv7hf-debian-qemu
- https://github.com/cmosh/alpine-arm
-
PyCharm + Windows
2017-04-17 PyCharm setup
- https://www.jetbrains.com/pycharm/download/download-thanks.html?platform=windows&code=PCC
- https://www.jetbrains.com/help/pycharm/2017.1/git.html
- https://confluence.jetbrains.com/display/PYH/Using+PyCharm%27s+Git+integration+locally
- https://www.jetbrains.com/help/pycharm/2017.1/run-debug-configuration-tox.html
- https://www.jetbrains.com/help/pycharm/2017.1/configuring-colors-and-fonts.html
- https://training.talkpython.fm/courses/explore_pycharm/mastering-pycharm-ide
Environment
- doesn't work with Git from Cygwin
- https://git-for-windows.github.io/
- https://www.python.org/downloads/
- https://github.com/jkaving/intellij-colors-solarized
- http://ethanschoonover.com/solarized
- https://fonts.google.com/specimen/Noto+Sans
- https://www.microsoft.com/en-us/download/details.aspx?id=44266
Packages
-
-
IonicaBizau/git-stats · GitHub
2015-09-09 A GitHub-like contributions calendar, but locally, with all your git commits
-
Awesome-Selfhosted
2015-07-13 A list of software which can be hosted locally.
See https://prism-break.org/ for a more complete list
-
Pro: no need to setup a DNS server to test virtualhosts Con: keep in mind that all "fake" hosts will point to 127.0.0.1!
- Use /etc/hosts to declare test hosts / domains / subdomains
#<ip-address> <hostname.domain.org> <hostname> 127.0.0.1 localhost.localdomain localhost 127.0.0.1 host.localdomain host 127.0.0.1 sub.host.localdomain sub.host ::1 localhost.localdomain localhost
- Allow per-user virtualhost definition in either (depending on your distro)
/etc/httpd/conf/httpd.conf
/etc/apache2/apache2.conf
Include
/home/albert/.httpd/*.conf
- Profit! Create virtualhosts with local hostnames :)
-
electric-indent has been activated by default in emacs 24
to disable it for Python: (add-hook 'python-mode-hook (lambda () (set (make-local-variable 'electric-indent-functions) (list (lambda (arg) 'no-indent)))))
-
1# Global 2/etc/environment 3 4# X Session 5/var/lib/AccountsService/users/<username> 6~/.dmrc 7~/.xinitrc 8~/.xprofile 9 10# Session 11/etc/profile 12/etc/profile.d/*.sh 13~/.profile 14 15# Bash 16/etc/bash.bashrc 17~/.bash_profile 18~/.bashrc 19 20# ZSH 21/etc/zsh/zprofile 22~/.zshrc 23 24# Locales 25/etc/locale.conf 26/etc/locale.gen 27~/.config/locale 28 29# Superusers 30/etc/login.defs 31/etc/sudoers (use visudo to edit) 32 33# SSH 34/etc/ssh/sshd_config (server-side, can allow the client to pass variables) 35/etc/ssh/ssh_config (client-side, can send variables to servers) 36 37# SaltStack 38/etc/default/salt-minion (not always included in the distro's packages)
-
Gitolite SSH PATH hack
2014-06-09 in
GITOLITE_USER/.gitolite.rc
:$ENV{PATH} = "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:$ENV{PATH}"