update archlinux

main
hau 2020-08-12 00:00:24 +07:00
parent c15d913042
commit 7ec14e9d60
3 changed files with 44 additions and 28 deletions

View File

@ -0,0 +1,13 @@
# [TLP](https://github.com/linrunner/TLP)
| Distribution | Package |
| ------------ | ------- |
| Arch Linux | `tlp` |
| Ubuntu | `tlp` |
## Thinkpads only
| Distribution | Package |
| ------------ | ---------------- |
| Arch Linux | `acpi_call` |
| Ubuntu | `acpi-call-dkms` |

View File

@ -1,4 +1,4 @@
# systemd/Journal # systemd-journald
Edit `/etc/systemd/journald.conf.d/00-journal-size.conf`: Edit `/etc/systemd/journald.conf.d/00-journal-size.conf`:
@ -7,7 +7,7 @@ Edit `/etc/systemd/journald.conf.d/00-journal-size.conf`:
SystemMaxUse=50M SystemMaxUse=50M
``` ```
After editing, restart service: Restart service:
```sh ```sh
systemctl restart systemd-journald.service systemctl restart systemd-journald.service

View File

@ -78,9 +78,15 @@ mkdir -p /mnt/home
mount /dev/xxxY /mnt/home mount /dev/xxxY /mnt/home
``` ```
### Installation
```sh
pacstrap /mnt base linux linux-firmware base-devel neovim intel-ucode
```
### Boot loader ### Boot loader
[systemd-boot](https://wiki.archlinux.org/index.php/Systemd-boot) [systemd-boot](Applications/System/systemd-boot.md)
## [General recommendations](https://wiki.archlinux.org/index.php/General_recommendations) ## [General recommendations](https://wiki.archlinux.org/index.php/General_recommendations)
@ -88,20 +94,33 @@ Always remember to check **dependencies** when install packages.
### System administration ### System administration
Read [Users and groups](https://wiki.archlinux.org/index.php/Users_and_groups). Add user:
Read [Sudo/Using visudo](https://wiki.archlinux.org/index.php/Sudo#Using_visudo).
```sh ```sh
useradd -m -G additional_groups -s login_shell username useradd -m -G additional_groups -s login_shell username
``` ```
| abstract | implement | Set password:
```sh
passwd username
```
Enable sudo:
```sh
EDITOR=nvim visudo
# Uncomment group wheel
```
| Pseudo | Real |
| ------------------- | ----------- | | ------------------- | ----------- |
| `additional_groups` | `wheel` | | `additional_groups` | `wheel` |
| `login_shell` | `/bin/bash` | | `login_shell` | `/bin/bash` |
| `username` | `joker` |
### Graphical user interface and Networking ### Desktop Environment
Install [Xorg](https://wiki.archlinux.org/index.php/Xorg): Install [Xorg](https://wiki.archlinux.org/index.php/Xorg):
@ -112,17 +131,11 @@ pacman -Syu xorg-server
Install [GNOME](https://wiki.archlinux.org/index.php/GNOME): Install [GNOME](https://wiki.archlinux.org/index.php/GNOME):
```sh ```sh
pacman -Syu \ pacman -Syu gnome-shell gdm gnome-control-center gnome-tweak-tool
gnome-shell \
gdm \
networkmanager gnome-keyring \ networkmanager gnome-keyring \
gnome-control-center gnome-tweak-tool \
nautilus xdg-user-dirs-gtk \ nautilus xdg-user-dirs-gtk \
file-roller p7zip unrar \ file-roller p7zip unrar \
gnome-terminal \ gnome-terminal gnome-backgrounds gnome-screenshot
gnome-backgrounds \
gnome-screenshot \
``` ```
Enable services: Enable services:
@ -132,21 +145,11 @@ systemctl enable gdm.service
systemctl enable NetworkManager.service systemctl enable NetworkManager.service
systemctl enable bluetooth.service
timedatectl set-ntp true timedatectl set-ntp true
``` ```
### Optimization
Read [Improving performance/Watchdogs](https://wiki.archlinux.org/index.php/Improving_performance#Watchdogs).
Read [Improving performance/Staggered spin-up](https://wiki.archlinux.org/index.php/Improving_performance/Boot_process#Staggered_spin-up).
Read [Silent boot](https://wiki.archlinux.org/index.php/Silent_boot).
### Appearance
Read [Fonts](https://wiki.archlinux.org/index.php/Fonts).
## [List of applications](https://wiki.archlinux.org/index.php/List_of_applications) ## [List of applications](https://wiki.archlinux.org/index.php/List_of_applications)
### [pacman](https://wiki.archlinux.org/index.php/pacman) ### [pacman](https://wiki.archlinux.org/index.php/pacman)