Skip to content

Instantly share code, notes, and snippets.

View MakiseKurisu's full-sized avatar

牧瀬紅莉栖 MakiseKurisu

View GitHub Profile
@MakiseKurisu
MakiseKurisu / espressobin.sh
Last active March 8, 2020 05:49
ESPRESSObin Arch Linux ARM setup
# Install dependency for yay
su << EOF
root
pacman-key --init
pacman-key --populate archlinuxarm
pacman -Syu base-devel git go --noconfirm --needed
echo "alarm ALL=(ALL) ALL" >> /etc/sudoers
EOF
# Install yay
@MakiseKurisu
MakiseKurisu / setup.sh
Last active April 29, 2021 06:44
Manjaro setup
#!/bin/bash
sudo systemctl enable --now sshd
sudo timedatectl set-ntp true
echo "HandleLidSwitch=ignore" | sudo tee -a /etc/systemd/logind.conf > /dev/null
sudo sed -i 's/DisplayCommand/#DisplayCommand/g' /etc/sddm.conf
sudo sed -i 's/DisplayStopCommand/#DisplayStopCommand/g' /etc/sddm.conf
yay -Syu optimus-manager
sudo systemctl disable bumblebeed
@MakiseKurisu
MakiseKurisu / pmxcfs.sh
Last active January 30, 2024 12:11
Mount pmxcfs
mkdir ./mnt
mount /dev/pve/root ./mnt
cd mnt
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
cd ..
chroot ./mnt ./bin/bash
pmxcfs
/bin/nano /etc/pve/nodes/{node name}/qemu-server/100.conf
@MakiseKurisu
MakiseKurisu / SymmetricDS.sh
Created December 19, 2018 17:43
Setup SQL Server to MariaDB replication with SymmetricDS
#!/bin/bash
# 1. Prepare Environment
apt update; apt upgrade -y
apt install unzip default-jre -y
wget https://netcologne.dl.sourceforge.net/project/symmetricds/symmetricds/symmetricds-3.9/symmetric-server-3.9.14.zip
cd /opt/
su -c "fallocate -l 2G /swapfile; chmod 600 /swapfile; mkswap /swapfile; swapon /swapfile; echo '/swapfile none swap defaults 0 0' >> /etc/fstab; reboot"
su -c "pacman-key --init; pacman-key --populate archlinuxarm; pacman -Syu --noconfirm base-devel python git cpio unzip rsync wget bc"; git clone git://git.buildroot.net/buildroot; cd buildroot; make raspberrypi3_64_defconfig; make
wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
apt install -y lsb-release
dpkg -i mysql-apt-config_0.8.10-1_all.deb
rm mysql-apt-config_0.8.10-1_all.deb
apt update
apt upgrade -y
apt install -y mysql-server mysql-client
mysql_secure_installation
@MakiseKurisu
MakiseKurisu / setup.sh
Last active December 12, 2023 15:53
Proxmox VE 6 GPU Passthrough
#!/bin/bash
# Reference guides:
# https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF
# https://pve.proxmox.com/wiki/Pci_passthrough
# https://pve.proxmox.com/wiki/Nested_Virtualization
# Remember to turn on SVM in BIOS and disable CSM
# Update packages