Skip to content

Instantly share code, notes, and snippets.

View B83C's full-sized avatar
🤔
Seeking the truth

Law Heng Yi B83C

🤔
Seeking the truth
View GitHub Profile
#!/bin/bash
BASE=/usr/local/bin
RELAY_PIN=17
VPATH=/srv/ftp
if [ "$1" == "-r" ]; then
sudo rm $BASE/relay.sh
sudo rm $BASE/videoloop.sh
sudo rm /etc/cron.d/videoloop
@B83C
B83C / alpine_on_oracle
Last active May 18, 2022 23:36
Alpine Linux on oracle cloud
wget https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/alpine-virt-3.15.0-aarch64.iso -O alpine.iso #or whatever versions suits you best
dd if=alpine.iso of=/dev/sda
mkdir /media/setup
cp -a /media/sda/* /media/setup
mkdir /lib/setup
cp -a /.modloop/* /lib/setup
/etc/init.d/modloop stop
umount /dev/sda
mv /media/setup/* /media/sda/
@B83C
B83C / Void Linux on ORACLE A1 FLEX
Last active January 10, 2022 14:27
Running void linux on Oracle Cloud aarch64 free tier
#The steps are simple
#You would need to get the machine to boot into a live os in ram so as to allow
#modifications from within the machine without having to set up using another.
#One way to do it is to boot an alpine img:
wget https://dl-cdn.alpinelinux.org/alpine/v3.14/releases/aarch64/alpine-virt-3.14.2-aarch64.iso -O alpine.iso #or whatever versions suits you best
dd if=alpine.iso of=/dev/sda
#Now you have to reboot the system. If 'sudo reboot' doesn't work, try hard
#reboot from the OCI Console