diff --git a/arch_linux_host_install/readme.md b/arch_linux_host_install/readme.md index b253d0d..703c223 100644 --- a/arch_linux_host_install/readme.md +++ b/arch_linux_host_install/readme.md @@ -97,18 +97,17 @@ So if theres boot menu option choose non-uefi. `mkswap /swapfile`
`nano /etc/fstab`
*/swapfile none swap defaults 0 0* -* enable colors in pacman.conf
- `nano /etc/pacman.conf`
- *Color* * reboot
`reboot` -# SSH, ZSH, Docker, and other goodies +# SSH, ZSH, Docker, AUR From now on its login as non-root user. ### Setup SSH access +[wiki](https://wiki.archlinux.org/index.php/OpenSSH) + * install openssh package
`sudo pacman -S openssh` * edit sshd_config
@@ -120,6 +119,8 @@ From now on its login as non-root user. ### ZSH shell +[wiki](https://wiki.archlinux.org/index.php/zsh) + I like [Zim](https://github.com/zimfw/zimfw), it's the fastest zsh framework and out of the box setup nicely @@ -128,6 +129,21 @@ it's the fastest zsh framework and out of the box setup nicely * install zim, it changes users default shell to zsh
`curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh` +##### Adding stuff to .zshrc + +`export EDITOR=nano` + +for ctrl+f prepending sudo + +```bash +add_sudo (){ + BUFFER="sudo $BUFFER" + zle -w end-of-line +} +zle -N add_sudo +bindkey "^f" add_sudo +``` + ### Setup docker [Wiki](https://wiki.archlinux.org/index.php/docker) @@ -139,26 +155,55 @@ it's the fastest zsh framework and out of the box setup nicely * add non-root user to the docker group
`sudo gpasswd -a bastard docker` +### Access to AUR -### Extra stuff +Using [Yay](https://github.com/Jguer/yay). -* `sudo pacman -S vim git cronie curl htop lm_sensors nnn bind-tools borg python-llfuse` -* install yay for access to AUR packages
+* install git package
+ `sudo pacman -S git` +* install yay
`git clone https://aur.archlinux.org/yay-bin.git`
`cd yay-bin && makepkg -si`
`cd .. && rm -rf yay-bin`
-`ctop` and `inxi` are good packages from yay +`ctop` and `inxi` are good AUR packages. -### Adding stuff to .zshrc +# Extra stuff -* `export EDITOR=vim` -* for ctrl+f prepending sudo - ```bash - add_sudo (){ - BUFFER="sudo $BUFFER" - zle -w end-of-line - } - zle -N add_sudo - bindkey "^f" add_sudo - ``` +[wiki - general general recommendations](https://wiki.archlinux.org/index.php/general_recommendations)
+[wiki - improving performance](https://wiki.archlinux.org/index.php/Improving_performance)
+ +### Some packages + +Tools + +* `sudo pacman -S cronie fuse curl wget vim nnn bind-tools borg python-llfuse` + +Monitoring and testing + +* `sudo pacman -S htop lm_sensors iotop powertop iproute2` + +### Performance and maintenance + +* if ssd enable periodic trim
+ `sudo pacman -S util-linux`
+ `sudo systemctl enable --now fstrim.timer` +* set noatime in fstab to prevent unnecessary keep of read times
+ `sudo nano /etc/fstab`
+ *UUID=cdd..addb / ext4 rw,noatime 0 1* +* enable use of all cpu cores for makepkg jobs and disable compression
+ `sudo nano /etc/makepkg`
+ *MAKEFLAGS="-j$(nproc)"*
+ *PKGEXT='.pkg.tar'* +* clean up old packages weekly, keep last 3
+ `sudo pacman -S pacman-contrib`
+ `sudo systemctl enable --now paccache.timer` +* use reflector to get the fastes mirrors based on country `-c `
+ `sudo pacman -S reflector`
+ `sudo reflector -l 200 -n 20 -c SK -c CZ -p http --sort rate --save /etc/pacman.d/mirrorlist` + +### Comfort + +* enable colors in pacman.conf
+ `sudo nano /etc/pacman.conf`
+ *Color*