cat >/etc/systemd/system/battery-charge-limit@.service <<'EOF'
[Unit]
Description=Set battery charge limit to %i%%
After=multi-user.target
[Service]
Type=oneshot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The `0b05:19b6` N-KEY device ID is the key detail here. Let me check if asusctl supports this specific PID.Good findings. Here's the clear picture: | |
| ## Your USB PID `0b05:19b6` — what it means | |
| Two things are confirmed: | |
| 1. **`rogauracore` explicitly supports `0b05:19b6`** (listed as GA503) — a libusb-based CLI tool that directly talks to the N-KEY USB HID device. | |
| 2. **`asusctl` also recognizes `0b05:19b6`** and the README states it "may work without tweaks" — however, as seen from the GA605WI issue report, asusd may log a warning that `aura_support.ron` has no entry for your exact model string and fall back to a default profile. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| ARG TZ=Asia/Tehran | |
| # For ubuntu, do not use dash. | |
| RUN which dash &> /dev/null && (\ | |
| echo "dash dash/sh boolean false" | debconf-set-selections && \ | |
| DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash) || \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create initramfs without compression | |
| # Run this command from within the rootfs directory; it will generate `initrd.cpio` in the parent directory. | |
| find . | cpio -o -H newc >../initrd.cpio | |
| # Create initramfs with gzip compression | |
| # Run this command from within the rootfs directory; it will generate `initrd.cpio` in the parent directory. | |
| find . | cpio -o -H newc | gzip >../initrd.gz | |
| # Extract initramfs archive to current directory | |
| cpio --extract --make-directories --format=newc --no-absolute-filenames < rootfs.cpio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| qemu-system-aarch64 \ | |
| -M virt \ | |
| -cpu cortex-a72 \ | |
| -m 256 \ | |
| -kernel ./Image \ | |
| -initrd initrd.cpio \ | |
| -append "console=ttyAMA0 maxcpus=1 rdinit=/init" \ | |
| -nographic |
Certainly! Here’s a step-by-step guide for setting up the DNS-01 challenge with Cloudflare using Certbot, focusing on the API key setup and configuration.
- Generate a Cloudflare API Token:
- Log in to your Cloudflare account and navigate to My Profile (found under your account icon).
- Go to the API Tokens tab.
- Click Create Token.
- Use the Edit Zone DNS template, which provides limited access, ideal for security.
- Permissions: Set as follows:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # For CIDR IP range | |
| ipset create bypass hash:net hashsize 4096 maxelem 16384 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://askubuntu.com/questions/1254364/how-to-control-fans-on-an-asus-laptop/1398098#1398098 | |
| cat << EOF >>~/.bashrc | |
| alias fan-turbo='cd /sys/devices/platform/asus-nb-wmi; sudo sh -c "echo 1 >> fan_boost_mode"; sudo sh -c "echo 1 >> throttle_thermal_policy"; source ~/.bashrc; cd ~;' | |
| alias fan-performance='cd /sys/devices/platform/asus-nb-wmi; sudo sh -c "echo 0 >> fan_boost_mode"; sudo sh -c "echo 0 >> throttle_thermal_policy"; source ~/.bashrc; cd ~;' | |
| alias fan-silent='cd /sys/devices/platform/asus-nb-wmi; sudo sh -c "echo 2 >> fan_boost_mode"; sudo sh -c "echo 2 >> throttle_thermal_policy"; source ~/.bashrc; cd ~;' | |
| EOF | |
| source ~/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update && sudo apt-get -y upgrade | |
| sudo apt-get install -y git cups samba build-essential automake libcups2-dev | |
| sudo usermod -a -G lpadmin pi | |
| sudo cupsctl --remote-any | |
| sudo systemctl restart cups | |
| # Build Canon capt driver | |
| cd /tmp | |
| git clone https://github.com/agalakhov/captdriver.git captdriver |