So I had replaced my home router with VyOS. Set everything up and Internet can reach my servers in LAN via port-forwarding (destination NAT), all fine and dandy. Until I tried using the public domain name to access my web server from LAN. Nope, I get connection reset. 繼續閱讀
So got a switch that only runs HTTP & telnet interfaces and no way to transfer firmware / config via web UI. Needs to use tftp for that.
On a CentOS 7 box:
# yum install tftp-server
# /usr/sbin/in.tftpd -L -c -s /tmp
Then the switch happily copies its firmware and config using tftp. Make sure to kill the process afterward.
This was tested on a ThinkPad X61s using BIOS/MBR boot by migrating an installation from a ext4 part.
- you’ll need an ext4 as /boot (toggle boot flag)
- mount f2fs at /sysimage and ext4 at /sysimage/boot
- rsycn everything across (I usually do this on a live image)
- bind (mount -B) /sys /proc /dev into /sysimage
- chroot into /sysimage
- grub-install /dev/sda
- update fstab for root partition path (maybe swap as well?)
- include the following in /etc/initramfs-tools/modules: f2fs crc32_generic libcrc32c (good idea to include lz4 and lz4_compress as well for zswap)
Something like that…
Since upgrading to Mojave, my MacBook Pro’s system clock frequently drift significantly up to 90 seconds in a few weeks. Unchecking and checking the time server option in System Preferences has no effect. The clock is only “fixed" when the MBP is rebooted.
Until Apple fixes this or I dig deeper into the issue, the clock can be set manually using the sntp command:
sudo sntp -Ss time.asia.apple.com
# /etc/netplan/99-kvm-bridge.yaml network: ethernets: eno1: match: name: eno1 bridges: br0: interfaces: [eno1] addresses: - 10.181.0.71/16 dhcp4: false gateway4: 10.181.0.1 nameservers: addresses: - 10.181.0.1 search:  version: 2