distros:arch_linux_server
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
distros:arch_linux_server [2016/10/23 03:31] – Sean Rhone | distros:arch_linux_server [2021/06/18 02:38] (current) – removed Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Information ====== | ||
- | * Arch Linux ((https:// | ||
- | * Server | ||
- | |||
- | ===== Prerequisites ===== | ||
- | |||
- | * [[distros: | ||
- | |||
- | ====== Software ====== | ||
- | |||
- | ===== Update ===== | ||
- | |||
- | **** | ||
- | |||
- | sudo pacman -Syyuu | ||
- | |||
- | ===== General ===== | ||
- | |||
- | **** | ||
- | |||
- | sudo pacman -S aria2 hdparm hidepid htop p7zip ufw unrar wget unzip python3 | ||
- | |||
- | ====== Settings ====== | ||
- | |||
- | ===== Uncomplicated Firewall ===== | ||
- | |||
- | **** | ||
- | |||
- | sudo ufw reset && sudo ufw default deny && sudo ufw limit ' | ||
- | |||
- | ===== Boot Loader ===== | ||
- | |||
- | ==== GRUB ==== | ||
- | |||
- | **** | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | ==== Deadline I/O Scheduler ==== | ||
- | |||
- | * Rotational disks | ||
- | |||
- | elevator=deadline | ||
- | |||
- | ==== Disable NMI watchdog ==== | ||
- | |||
- | **** | ||
- | |||
- | nmi_watchdog=0 | ||
- | |||
- | ==== Disable Webcam and Bluetooth ==== | ||
- | |||
- | **** | ||
- | |||
- | modprobe.blacklist=uvcvideo, | ||
- | |||
- | ===== Kernel Hardening ===== | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | kernel.dmesg_restrict = 1 | ||
- | kernel.kptr_restrict = 1 | ||
- | |||
- | ===== Pacman Hooks ===== | ||
- | |||
- | ==== systemd Initramfs Regenerate ==== | ||
- | |||
- | * https:// | ||
- | |||
- | sudo mkdir -p '/ | ||
- | |||
- | [Trigger] | ||
- | Operation = Upgrade | ||
- | Type = Package | ||
- | Target = systemd | ||
- | | ||
- | [Action] | ||
- | Description = Generating initramfs... | ||
- | Depends = linux | ||
- | When = PostTransaction | ||
- | Exec = / | ||
- | |||
- | ===== Secure Shell ===== | ||
- | |||
- | * See [[Clients: | ||
- | |||
- | ====== Computer-specific ====== | ||
- | |||
- | ===== Kraityn ===== | ||
- | |||
- | ==== hdparm Tweaks ==== | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | [Unit] | ||
- | Description=hdparm Tweaks | ||
- | | ||
- | [Service] | ||
- | Type=oneshot | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | | ||
- | [Install] | ||
- | WantedBy=multi-user.target | ||
- | |||
- | ====== Automatic Updates ====== | ||
- | |||
- | ===== Service ===== | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | [Service] | ||
- | Type=oneshot | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | |||
- | ===== Timer ===== | ||
- | |||
- | * See [[Information: | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | [Unit] | ||
- | Description=Software Package Maintenance and Updater | ||
- | After=NetworkManager-wait-online.service | ||
- | | ||
- | [Timer] | ||
- | OnCalendar=*-*-* 06:10:00 | ||
- | Persistent=true | ||
- | | ||
- | [Install] | ||
- | WantedBy=timers.target | ||
- | |||
- | ====== Pacman Mirrorlist ====== | ||
- | |||
- | * https:// | ||
- | |||
- | ===== Service ===== | ||
- | |||
- | * Grabs US mirrors (IPv4, HTTPS) | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | [Service] | ||
- | Type=oneshot | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | |||
- | ===== Timer ===== | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | [Unit] | ||
- | Description=Pacman Mirrorlist Generator | ||
- | After=NetworkManager-wait-online.service | ||
- | | ||
- | [Timer] | ||
- | OnCalendar=weekly | ||
- | Persistent=true | ||
- | | ||
- | [Install] | ||
- | WantedBy=timers.target | ||
- | |||
- | ====== Steven Black' | ||
- | |||
- | * https:// | ||
- | |||
- | ===== Service ===== | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | [Service] | ||
- | Type=oneshot | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | ExecStart='/ | ||
- | |||
- | ===== Timer ===== | ||
- | |||
- | sudo -e '/ | ||
- | |||
- | [Unit] | ||
- | Description=Hosts File Protection Updater | ||
- | After=NetworkManager-wait-online.service | ||
- | | ||
- | [Timer] | ||
- | OnCalendar=weekly | ||
- | Persistent=true | ||
- | | ||
- | [Install] | ||
- | WantedBy=timers.target | ||
- | |||
- | ====== Notable Folders and Commands ====== | ||
- | |||
- | ===== Show CPU Frequency ===== | ||
- | |||
- | grep ' | ||
- | |||
- | watch -n 0.1 grep \'cpu MHz\' '/ | ||
- | |||
- | ===== Partition Information ===== | ||
- | |||
- | **** | ||
- | |||
- | df -hT | ||
- | |||
- | ===== Optimal GCC compiler flags ===== | ||
- | |||
- | **** | ||
- | |||
- | gcc -v -E -x c -march=native -mtune=native - < /dev/null 2>&1 | grep cc1 | perl -pe 's/ -mno-\S+// |
/srv/www/wiki/data/attic/distros/arch_linux_server.1477207887.txt.gz · Last modified: (external edit)