Arch Misc Tweaks - tnballo/notebook GitHub Wiki
Random, bite-sized configuration changes for a better Arch experience.
reflector can overwrite /etc/pacman.d/mirrorlist with the most current mirrors, sorted by speed.
-
Backup the existing mirror list in case something goes wrong:
sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
-
Install and run reflector, populating your list with the 200 most recently synced mirrors sorted by download rate:
-
sudo pacman -S reflector -
sudo reflector --verbose -l 200 -p http --sort rate --save /etc/pacman.d/mirrorlist
-
Change pacman's (package manager) progress bar to a colorful ASCII Pacman (game character) eating power pills:
-
Open
/etc/pacman.conffor editing. -
Find the
# Misc Optionsheader. Uncomment the line#Colorunderneath. -
Still underneath
# Misc Options, add the lineILoveCandy. -
Once finished, your
# Misc Optionssection might look something like:
# Misc options
#UseSyslog
Color
ILoveCandy
#TotalDownload
CheckSpace
#VerbosePkgLists
ufw is a simple CLI for configuring the netfilter firewall.
-
Install ufw:
sudo pacman -S ufw
-
Configure ufw to deny all incoming traffic (silent drop), and allow all outgoing traffic:
-
sudo ufw default deny incoming -
sudo ufw default allow outgoing
-
-
Apply settings and verify that ufw is indeed running:
-
sudo ufw enable -
sudo ufw status verbose
-
-
Enable ufw as a service, so that it starts with these settings every boot:
sudo systemctl enable ufw