VirtualTam's bookmarks
10 bookmarks found
Page 1 of 1
-
Etching PCBs at Home for Fun and Profit
2024-10-26 -
Fighting spam for fun and profit
2018-11-16 -
ccache & distcc w/ clang – oliver hu
2018-10-06 - https://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html
- https://petereisentraut.blogspot.com/2011/09/ccache-and-clang-part-2.html
- http://peter.eisentraut.org/blog/2014/12/01/ccache-and-clang-part-3/
- https://pspdfkit.com/blog/2015/ccache-for-fun-and-profit/
- https://pspdfkit.com/blog/2017/crazy-fast-builds-using-distcc/
-
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!
-
SSH tunnelling for fun and profit: Autossh
2017-08-18 - https://apple.stackexchange.com/questions/132223/autossh-not-forwarding-regular-ssh-tunnel-does
- https://unix.stackexchange.com/questions/190026/persistent-ssh-port-forward-without-public-keys
- https://serverfault.com/questions/414008/how-to-create-a-persistent-port-forwarding-using-ssh
- https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding
-
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 :)
-
Git your life for fun & profit
2015-03-23 -
La survie de l’espèce, ou pas… : Reflets
2013-09-30
Page 1 of 1