mirror of
https://github.com/tiyn/wiki.git
synced 2025-11-06 21:21:16 +01:00
Merge branch 'master' of github:/tiyn/wiki
This commit is contained in:
@@ -30,3 +30,10 @@ Tools, programs and guides to manage the power usage and improve battery life ar
|
||||
|
||||
The viewing of temperatures of coolers aswell as the selection of RGB-settings can be achieved by
|
||||
using [liquidctl](https://github.com/liquidctl/liquidctl).
|
||||
|
||||
## Temperature
|
||||
|
||||
To check the temperature the command `sensors` can be used which (on most distributions) is a part
|
||||
of the `lm_sensors` package.
|
||||
It will then display all the available temperature sensors available aswell as many other sensors
|
||||
like the RPM for fans.
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
# Kernel
|
||||
|
||||
The [Linux](/wiki/linux.md) kernel is an open-source Unix-like computer operating system kernel.
|
||||
|
||||
## Versions
|
||||
|
||||
There are a few possible kernel version.
|
||||
|
||||
### Stable-Version: `linux`
|
||||
|
||||
The stable version of the [Linux](/wiki/linux.md) kernel can usually be found in a package called
|
||||
`linux` and is usually installed from the start or in the recommended setup.
|
||||
|
||||
### Zen-Version: `linux-zen`
|
||||
|
||||
The zen kernel is a collaborative project of kernel hackers to provide the best
|
||||
[Linux](/wiki/linux.md) kernel for everyday systems.
|
||||
Especially the response time of the system under load
|
||||
[is said to be better](https://github.com/zen-kernel/zen-kernel/wiki/Detailed-Feature-List#zen-kernel-improvements).
|
||||
This will - for example - make the system less stuttery when something is compiled.
|
||||
Desktop and gaming systems will benefit the most.
|
||||
|
||||
To setup the zen kernel do the following. Firstly install the packages `linux-zen` and
|
||||
`linux-zen-header`.
|
||||
Afterwards open the file `boot/loader/entries/arch.conf` and change the following lines.
|
||||
|
||||
```txt
|
||||
linux /vmlinuz-linux
|
||||
initrd /initramfs-linux.img
|
||||
```
|
||||
|
||||
To look like the following lines.
|
||||
|
||||
```txt
|
||||
linux /vmlinuz-linux-zen
|
||||
initrd /initramfs-linux-zen.img
|
||||
```
|
||||
|
||||
If you want to switch the backup to Zen too, the backup file in `boot/loader/entries/` has to be
|
||||
changed too.
|
||||
Afterwards the system should be rebooted for the change to take effect.
|
||||
@@ -1,8 +1,68 @@
|
||||
# mkinitcpio
|
||||
|
||||
`mkinitcpio` is a script to create an initial ramdisk environment.
|
||||
This environment provides the [Linux](/wiki/linux.md) kernel, containing essential drivers and
|
||||
utilities required at boot.
|
||||
|
||||
## Usage
|
||||
## Kernel Versions
|
||||
|
||||
There are a few possible kernel version that can be used by `mkinitcpio`.
|
||||
|
||||
### Stable-Version: `linux`
|
||||
|
||||
The stable version of the [Linux](/wiki/linux.md) kernel can usually be found in a package called
|
||||
`linux` and is usually installed from the start or in the recommended setup.
|
||||
|
||||
### Zen-Version: `linux-zen`
|
||||
|
||||
The zen kernel is a collaborative project of kernel hackers to provide the best
|
||||
[Linux](/wiki/linux.md) kernel for everyday systems.
|
||||
Especially the response time of the system under load
|
||||
[is said to be better](https://github.com/zen-kernel/zen-kernel/wiki/Detailed-Feature-List#zen-kernel-improvements).
|
||||
This will - for example - make the system less stuttery when something is compiled.
|
||||
Desktop and gaming systems will benefit the most.
|
||||
|
||||
To setup the zen kernel do the following. Firstly install the packages `linux-zen` and
|
||||
`linux-zen-header`.
|
||||
Afterwards open the file `boot/loader/entries/arch.conf` and change the following lines.
|
||||
|
||||
```txt
|
||||
linux /vmlinuz-linux
|
||||
initrd /initramfs-linux.img
|
||||
```
|
||||
|
||||
To look like the following lines.
|
||||
|
||||
```txt
|
||||
linux /vmlinuz-linux-zen
|
||||
initrd /initramfs-linux-zen.img
|
||||
```
|
||||
|
||||
If you want to switch the backup to Zen too, the backup file in `boot/loader/entries/` has to be
|
||||
changed too.
|
||||
Afterwards the system should be rebooted for the change to take effect.
|
||||
|
||||
## Usage
|
||||
|
||||
The following addresses various usage and configuration choices for mkinitcpio.
|
||||
|
||||
### Default and Fallback Images
|
||||
|
||||
It is recommended to have at least one default and one fallback version for kernels.
|
||||
After the initial generation of the kernel the configuration file can be found in the
|
||||
`/etc/mkinitcpio.d` directory.
|
||||
For the [`linux`-kernel](#stable-version-linux) it would contain `linux.preset` and for the
|
||||
[`linux-zen`-kernel](#zen-version-linux-zen) `linux-zen.preset`.
|
||||
Inside these preset files the following line manages the generation of a default or fallback image.
|
||||
|
||||
```txt
|
||||
PRESETS=('default' 'fallback')
|
||||
```
|
||||
|
||||
Notice that the options are separated only by a space.
|
||||
To just build a fallback image remove `'default'` or vice versa.
|
||||
|
||||
Afterwards the initial ramdisk has to be [rebuild](#manually-generate-initial-ramdisk).
|
||||
|
||||
### Manually Generate Initial Ramdisk
|
||||
|
||||
@@ -20,6 +80,22 @@ But it is also possible to (re-)generate all available presets with the followin
|
||||
mkinitcpio -P
|
||||
```
|
||||
|
||||
### Enable/Disable Compression
|
||||
|
||||
To save space on the boot partition the kernel images can be compressed.
|
||||
To enable compression activate it in `/etc/mkinitcpio.conf` under `COMPRESSION=`.
|
||||
In the configuration file some compression algorithms are recommended.
|
||||
Additionally compression options can be set under `COMPRESSION_OPTIONS=`.
|
||||
An easily usable example for this is the following line.
|
||||
|
||||
```txt
|
||||
COMPRESSION_OPTIONS=(-v -5 --long)
|
||||
```
|
||||
|
||||
To disable compression remove the corresponding lines.
|
||||
After enabling and disabling of the compression the initial ramdisk has to be
|
||||
[rebuild](#manually-generate-initial-ramdisk).
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
This section addresses various errors that can happen when using mkinitcpio.
|
||||
@@ -47,3 +123,9 @@ A simple table that shows firmware modules and corresponding
|
||||
[Arch Linux](/wiki/linux/arch-linux.md) packages is shown on the
|
||||
[Arch Linux wiki](https://wiki.archlinux.org/title/Mkinitcpio#Possibly_missing_firmware_for_module_XXXX).
|
||||
|
||||
### `No space left on device`
|
||||
|
||||
If this error or one similar to this is shown the boot partition is filled up completely during the
|
||||
generation of the initial ramdisk.
|
||||
This can be fixed by either [compressing the image](#enabledisable-compression) or by
|
||||
[disabling unused fallbacks](#default-and-fallback-images).
|
||||
|
||||
@@ -19,22 +19,36 @@ It features the same syntax.
|
||||
|
||||
This section addresses various usages of the arch linux package managers.
|
||||
|
||||
#### Downgrading Packages
|
||||
#### Ignoring Packages
|
||||
|
||||
Packages can be ignored by adding the package in `/etc/pacman.conf` under `IgnorePkg`.
|
||||
In the following example `waybar` is ignored from updates.
|
||||
To add more packages just add them separated by spaces.
|
||||
|
||||
```txt
|
||||
IgnorePkg = waybar
|
||||
```
|
||||
|
||||
To unignore the package from updates remove it from this line.
|
||||
|
||||
#### Downgrading Packages
|
||||
|
||||
Packages of the AUR can be downgraded by using the
|
||||
[Downgrade](https://github.com/archlinux-downgrade/downgrade) program.
|
||||
This program can then easily be used to an AUR package.
|
||||
This works like the following assuming the package `v4l2loopback-dmks` needs to be downgraded.
|
||||
|
||||
```sh
|
||||
```sh
|
||||
sudo downgrade v4l2loopback-dmks
|
||||
```
|
||||
|
||||
Afterwards the target version can be selected and the downgrading process will conclude.
|
||||
After the downgrade of a package you will get asked if you want to
|
||||
[ignore future updates](#ignoring-packages).
|
||||
|
||||
#### Manual Installation of a `PKGBUILD` File
|
||||
|
||||
A `PKGBUILD` file is a [shell](/wiki/linux/shell.md) script that contains the installation
|
||||
A `PKGBUILD` file is a [shell](/wiki/linux/shell.md) script that contains the installation
|
||||
information that is required by the Arch Linux.
|
||||
Using the `makepkg` command it can be installed like the following command shows.
|
||||
|
||||
@@ -80,7 +94,7 @@ paccache -rvuk0
|
||||
|
||||
Since `yay` mirrors the usage of `pacman` it can be used the same way and will clean both caches.
|
||||
|
||||
```sh
|
||||
```sh
|
||||
yay -Sc
|
||||
```
|
||||
|
||||
@@ -295,3 +309,18 @@ This is especially the case on [Arch Linux-systems](/wiki/linux/arch-linux.md) b
|
||||
packages are also installed via [Pacman or Yay](#arch-linux-pacman-and-yay).
|
||||
In this case the global Version has to be changed to `system` or the package installed to the
|
||||
non-system Python version.
|
||||
|
||||
#### Error `exists in filesystem`
|
||||
|
||||
This section is based on a
|
||||
[reddit post by 194668PT](https://www.reddit.com/r/archlinux/comments/17jempk/pacman_exists_in_filesystem_errors/).
|
||||
|
||||
If an error shows up that describes that a file of a package `exists in filesystem` usually a
|
||||
permission/owner error happened.
|
||||
This can happen when running `pacman -Syyu`.
|
||||
To update the package either way the following command can be used.
|
||||
`<package name>` should be exchanged for the package that throws the error.
|
||||
|
||||
```sh
|
||||
sudo pacman -S --overwrite "*" <package name>
|
||||
```
|
||||
|
||||
@@ -6,7 +6,10 @@ for LaTeX using the BibTeX format.
|
||||
|
||||
## Setup
|
||||
|
||||
Papis can be installed on most distributions by acquiring the `papis` package.
|
||||
Papis can be installed on most [Linux](/wiki/linux.md) distributions by acquiring the `papis`
|
||||
package.
|
||||
On some distributions there may be problems installing this from the official repository.
|
||||
Another option to install papis is to use [pip](/wiki/programming_languages/python.md).
|
||||
Alternatively it can be downloaded from [the GitHub page](https://github.com/papis/papis).
|
||||
|
||||
### Configuration
|
||||
|
||||
@@ -48,11 +48,26 @@ plymouth-set-default-theme --list
|
||||
```
|
||||
|
||||
One of the listed themes can then be installed like the following command does.
|
||||
`<theme>` needs to be replaced with a theme that is included in the listed themes (like `fade-in`).
|
||||
|
||||
```sh
|
||||
plymouth-set-default-theme fade-in
|
||||
plymouth-set-default-theme <theme>
|
||||
```
|
||||
|
||||
If this command is run the
|
||||
[initramfs needs to be rebuild](/wiki/linux/mkinitcpio.md#manually-generate-initial-ramdisk).
|
||||
A command that includes the rebuilding process is the following.
|
||||
|
||||
```sh
|
||||
plymouth-set-default-theme -R <theme>
|
||||
```
|
||||
|
||||
Other themes can be found in online sources like the
|
||||
[AUR](/wiki/linux/arch-linux.md#package-manager-and-aur) or websites like
|
||||
[Gnome-Look.org](https://www.gnome-look.org/browse?cat=108).
|
||||
|
||||
The following are recommended themes.
|
||||
|
||||
- [Arch10](https://github.com/eromatiya/plymouth-theme-arch10) is a theme for
|
||||
[Arch Linux](/wiki/linux/arch-linux.md) similar to the boot splash screen of
|
||||
[Windows](/wiki/windows.md) 10.
|
||||
|
||||
@@ -222,3 +222,12 @@ It is related to a terminal line setting problem.
|
||||
```sh
|
||||
stty sane
|
||||
```
|
||||
|
||||
### Error `cannot open shared object file: No such file or directory`
|
||||
|
||||
This section is based on a
|
||||
[Github issue by stephenson](https://github.com/rubygems/rubygems/issues/7523).
|
||||
This error can occur for many different programs and with many different commands which is why it
|
||||
is listed in the shell entry.
|
||||
To fix it the most common and most effective way is to [reinstall](/wiki/linux/package_manager.md)
|
||||
the program that throws the error.
|
||||
|
||||
Reference in New Issue
Block a user