Better tutorial (a little bit more complicated): https://gist.github.com/karolba/a3f1c5f8d50c67f5a19e6c8f38e53e12
- Download the "virtual" type aarch64 ISO file from https://www.alpinelinux.org/downloads/ with wget
- Execute
sudo dd if=alpine.iso of=/dev/sda
- On the Oracle Cloud panel, setup a console connection and connect to the serial console.
- Execute
sudo reboot
- When Alpine is launched and you are logged in as root, execute these commands in the serial console:
Use this better tutorial: https://gist.github.com/karolba/a3f1c5f8d50c67f5a19e6c8f38e53e12
- Reboot into the rescue image
- Then execute these commands:
cd /dev/shm
mkdir alpine
cd alpine
$ mkdir /tmp/a | |
$ cd /tmp/a | |
$ unsquashfs /media/sd**/boot/modloop-lts | |
$ mv squashfs-root/ lib | |
$ tar -xzvf /etc/apk/cache/zfs-lts-*.apk | |
$ depmod -b /tmp/a | |
$ mksquashfs lib/ modloop-lts -noappend -always-use-fragments | |
$ mount -o rw,remount /media/sd** | |
# do backup but not as /filename or /boot/filename, alpine will be use it) | |
$ mv /tmp/a/modloop-lts /media/sd**/boot/modloop-lts |
Download the extended release from https://www.alpinelinux.org/downloads/ as only it contains the zfs kernel mods at the time of this writing (2020.07.10)
Write it to a USB and boot from it.
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
#!/bin/bash | |
#change working directory to Desktop | |
cd ~/Desktop | |
# remove any previously existing compressed files | |
rm -f WeChat_history* | |
# generate the new updated | |
tar -vczf ~/Desktop/WeChat_history$(date +%F_%R).tgz ~/Library/Containers/com.tencent.xinWeChat/Data/Library/Application\ Support/com.tencent.xinWeChat |
This component has moved to https://github.com/oxan/esphome-stream-server.