Skip to content

Instantly share code, notes, and snippets.

@denis2glez
denis2glez / build_and_test_linux_kernel.md
Last active November 20, 2021 13:14
Build and test a Linux kernel
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root!"
exit 1
fi
# Synchronizes the repository databases and updates the system's packages, excluding "local"
# packages
sudo pacman -Syu
@denis2glez
denis2glez / arch_tweaks.md
Last active January 23, 2022 17:59
A collection of customizations gathered over time.

Arch Linux tweaks

A collection of customizations gathered over time. Several of them come from different parts of the great ArchWiki.

To keep an up-to-date list of explicitly installed packages

Create the hook /etc/pacman.d/hooks/pkg-list.hook

[Trigger]
Operation = Install
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "⚠️ This script must be run as root! Please, try again."
exit 1
fi
echo "✔️ Getting the latest updates..."
apt-get update
apt-get upgrade -y