From 5d49716c4b641960d1cdbdfe39cd2ccb4d72e7a4 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 27 May 2023 18:58:51 +0200 Subject: [PATCH 1/3] shorten arch install --- distros/arch/basic-install.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/distros/arch/basic-install.md b/distros/arch/basic-install.md index e2235de..07d4a98 100644 --- a/distros/arch/basic-install.md +++ b/distros/arch/basic-install.md @@ -1,6 +1,6 @@ --- title: "basic-install" -tags: [ "Documentation", "distros" ] +tags: [ "Documentation", "arch" ] --- Keyboard layout changed. @@ -109,12 +109,11 @@ Ping some sites to make sure the network's working > umount -R /mnt -Remove retarded beep sound: - -> sudo echo "blacklist pcspkr" >> /etc/modprobe.d/nobeep.conf +Remove that awful beep sound: > rmmod pcspkr -# Fonts +...and make the change permanent: + +> sudo echo "blacklist pcspkr" >> /etc/modprobe.d/nobeep.conf -sudo pacman -S ttf-hack ttf-font-awesome ttf-fira-mono From 3972ece3c911b4ecc326b42d544dda3ec2ec5bf4 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 27 May 2023 19:00:40 +0200 Subject: [PATCH 2/3] remove out of date black arch material --- distros/arch/blackarch.md | 50 --------------------------------------- distros/arch/blackarch.sh | 26 -------------------- 2 files changed, 76 deletions(-) delete mode 100644 distros/arch/blackarch.md delete mode 100644 distros/arch/blackarch.sh diff --git a/distros/arch/blackarch.md b/distros/arch/blackarch.md deleted file mode 100644 index 657cb51..0000000 --- a/distros/arch/blackarch.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: "blackarch" -tags: [ "Documentation", "distros" ] ---- - -## Basics - -List Blackarch Packages - -> sudo pacman -Sgg | grep blackarch | cut -d' ' -f2 | sort -u - -Install all with - -> sudo pacman -S blackarch - -List availalble groups with - -> sudo pacman -Sg | grep blackarch | cut -d- -f2 - -Install a group with - -> sudo pacman blackarch-$thing - -e.g. - -> sudo blackarch-cracker - -## Install from Source - -First install blackman. - -> sudo pacman -S blackman - -List categories: - -> blackman -l - -Then install all from a category with: - -> sudo blackman -p [ category ] - -Or install from source with: - -> sudo blackman -g [ group name] - -or - -> sudo blackman -i [ package ] - - diff --git a/distros/arch/blackarch.sh b/distros/arch/blackarch.sh deleted file mode 100644 index 26ef12d..0000000 --- a/distros/arch/blackarch.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Just tested - working fine so far. - -# update - -pacman -Syyu - -curl -O https://blackarch.org/strap.sh - -sh="$(sha1sum strap.sh)" - -echo "Does $sh equal 9f770789df3b7803105e5fbc19212889674cd503 ?" - -read ent - -if [ ! $(echo $ent | grep -c y ) ] ; then - echo bye - exit 1 -fi - -chmod +x strap.sh - -./strap.sh - -echo Finished - From 42767fe41f86761b7ce67838e7cb3c34c0a998f6 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 27 May 2023 19:07:26 +0200 Subject: [PATCH 3/3] add pacdiff tool to arch --- distros/arch/pacman.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/distros/arch/pacman.md b/distros/arch/pacman.md index 80cddc7..89cbe79 100644 --- a/distros/arch/pacman.md +++ b/distros/arch/pacman.md @@ -36,3 +36,14 @@ If you're constantly getting 'everything corrupted, nothing upgraded', try runni List all orphaned packages: > sudo pacman -Qtdq + +## Cleaning Config Files + +Arch does not overwrite your changes to configuration files. +Instead, it updates them by adding the `.pacnew` suffix. + +So when `/etc/pacman.conf` receives an update, this will be placed in `/etc/pacman.conf.pacnew`. +These changes must be merge manually. + +Install the `pacdiff` tool to make this easier, from the `pacman-contrib` package, then simply run `sudo pacdiff` to sort through the various mergers. +