AimerNeige / pullcheck.sh
Naposledy aktivní
1 | if [[ $(git fetch origin 2>&1) ]]; then |
2 | echo "WARNING! pull the newest code before build" |
3 | exit 1 |
4 | fi |
anduin / How to Compile and Update to a Custom Linux Kernel on AnduinOS
Naposledy aktivní
In this guide, we will walk through the steps to download, configure, compile, and install a custom Linux kernel on an Ubuntu system. We’ll cover everything from installing necessary tools to building the kernel and updating the bootloader to use the new kernel. This process allows you to customize the kernel for specific hardware, performance, or feature requirements.
Prerequisites
Before you start, you’ll need to have a few tools and libraries installed on your Ubuntu system. These tools will allow you to compile and configure the kernel source.
-
Install Required Packages
Open a terminal and run the following command to install the essential development tools:
anduin / 监控服务器实时IP流量
Naposledy aktivní
1 | #!/bin/bash |
2 | |
3 | function monitor_traffic() { |
4 | if [ -z "$1" ]; then |
5 | echo "Usage: $0 <network_interface>" |
6 | echo "Available network interfaces:" |
7 | ip link show | awk -F': ' '/^[0-9]+: /{print $2}' |
8 | exit 1 |
9 | fi |
anduin / My Virtual Machine
Naposledy aktivní
1 | <domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm"> |
2 | <name>win11</name> |
3 | <uuid>6f6d22e6-34a1-4aa0-88d6-60ffcb9d2ab4</uuid> |
4 | <metadata> |
5 | <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"> |
6 | <libosinfo:os id="http://microsoft.com/win/11"/> |
7 | </libosinfo:libosinfo> |
8 | </metadata> |
9 | <memory unit="KiB">16777216</memory> |
10 | <currentMemory unit="KiB">16777216</currentMemory> |
AimerNeige / ubuntu-drivers.sh
Naposledy aktivní
1 | ubuntu-drivers devices |
2 | sudo ubuntu-drivers autoinstall |
AimerNeige / TTY Fonts
Naposledy aktivní
Change the font or the font size in the TTY (console)
1 | # https://askubuntu.com/questions/173220/how-do-i-change-the-font-or-the-font-size-in-the-tty-console |
2 | |
3 | sudo dpkg-reconfigure console-setup |
4 | |
5 | # UTF-8 |
6 | # Combined - Latin, ... |
7 | # Terminus |
8 | # Set Font Size |
AimerNeige / Rotate the screen in a tty
Naposledy aktivní
1 | # https://bbs.archlinux.org/viewtopic.php?id=94059 |
2 | |
3 | # monitor rotated 90 degrees clockwise |
4 | echo 3 > /sys/class/graphics/fbcon/rotate_all |
5 | |
6 | # monitor 90 degrees counter clockwise |
7 | echo 1 > /sys/class/graphics/fbcon/rotate_all |
AimerNeige / openwrt-services.md
Naposledy aktivní
- luci-app-wechatpush
- luci-app-ddns-go
- luci-app-frpc
- luci-app-frps
- luci-app-upnp
- luci-app-qos
- adguardhome
anduin / apt-mirror
Naposledy aktivní
1 | #!/usr/bin/perl |
2 | |
3 | =pod |
4 | |
5 | =head1 NAME |
6 | |
7 | apt-mirror - apt sources mirroring tool |
8 | |
9 | =head1 SYNOPSIS |