notebook/IT/Linux/index.md
2022-10-09 17:11:12 +02:00

57 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Linux
![linux](../img/linux.png)
## retrouvé date t'instalation
`ls -lct /etc | tail -1 | awk '{print $6, $7, $8}'`
## enable Wayland support
- execute `ln -s /dev/null /etc/udev/rules.d/61-gdm.rules` to avoid that gnome test your nvidia Driver
- add `nvidia-drm.modeset=1` to GRUB_CMDLINE_LINUX_DEFAULT in*/etc/default/grub*
- update grub config `grub-mkconfig -o /boot/grub/grub.cfg` in root
- add nvidia module to mkinitcpio.cong:
`MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)`
- create pacman hook:
```ini
[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia
Target=linux
# Change the linux part above and in the Exec line if a different kernel is used
[Action]
Description=Update Nvidia module in initcpio
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'
```
## see if you run on wayland
`loginctl show-session $(loginctl G $USERNAME|awk '{print $1}') -p Type`
## boot in emergency target
1. (Re)boot the machine
2. Wait for the grub menu to appear, then hit “e”,
3. scroll down to the “linux16” line then press the end key
4. type the following:
systemd.unit=emergency.target
5. press ctrl+x
6. put root writable with `mount -o rw,remount /`
## disable IPV6
`sysctl -b net.ipv6.conf.all.disable_ipv6=1`