Skip to content

Instantly share code, notes, and snippets.

View jacky9813's full-sized avatar

JackyCCChen jacky9813

  • Nextlink Technology
View GitHub Profile
@jacky9813
jacky9813 / convert-to-efi.chroot.sh
Created April 20, 2024 09:49
[Linux] Convert boot mode to UEFI
#!/bin/bash
#
# Convert to EFI
#
# IMPORTANT NOTES:
# * This script CAN ONLY BE running in a chrooted environment.
# * This script will install shim, but still secure boot may fail.
#
# Tested for CentOS 7, but should have a similar process for all other
# Linux distros, at least for RHEL for its derivatives.
@jacky9813
jacky9813 / [email protected]
Last active February 9, 2025 07:25
Minecraft Server
[Unit]
Description=Minecraft Server in /opt/minecraft-server/%i
After=network-online.target
Requires=network-online.target
[Service]
Type=simple
KillSignal=SIGINT
ExecStart=/opt/minecraft-server/%i/run.sh --nogui
WorkingDirectory=/opt/minecraft-server/%i
@jacky9813
jacky9813 / install-nv-driver-fc41.md
Created October 31, 2024 01:47
Install NVIDIA proprietary driver on Fedora 41

There are some steps that is not documented in the RPMFusion's installation guide. Here's how I install NVIDIA driver on Fedora 41.

  1. Update all packages and reboot
  2. Install akmod-nvidia from RPMFusion, optionally with packages for CUDA or NVENC.
  3. For some reason, after akmod installation, I didn't see modeset=1 on kernel option, so:
#!/bin/bash
@jacky9813
jacky9813 / AWS-RunPatchBaseline.stderr.txt
Last active March 18, 2025 09:22
Terraform Provider AWS - aws_ssm_patch_baseline issue
Retrieving snapshot failed.failed to run commands: exit status 143