Split fedora and manjaro playbooks
Split playbooks to better accomodate development of both.
This commit is contained in:
126
framework_fedora.md
Normal file
126
framework_fedora.md
Normal file
@@ -0,0 +1,126 @@
|
||||
# Fedora on the Framework
|
||||
|
||||
Mostly stolen from https://mutschler.eu/linux/install-guides/fedora-post-install/
|
||||
|
||||
## Dual Boot with Fingerprint Scanner Issues
|
||||
|
||||
https://community.frame.work/t/fingerprint-scanner-compatibility-with-linux-ubuntu-fedora-etc/1501/206
|
||||
|
||||
## Revert Kernel (if needed)
|
||||
|
||||
```bash
|
||||
# Find the kernels you have installed
|
||||
sudo rpm -qa kernel
|
||||
|
||||
# Revert to a previous kernel
|
||||
grubby --set-default /boot/vmlinuz-5.14.10-300.fc35.x86_64
|
||||
```
|
||||
|
||||
## Make DNF Fast
|
||||
|
||||
```bash
|
||||
echo 'fastestmirror=1' | sudo tee -a /etc/dnf/dnf.conf
|
||||
echo 'max_parallel_downloads=10' | sudo tee -a /etc/dnf/dnf.conf
|
||||
echo 'deltarpm=true' | sudo tee -a /etc/dnf/dnf.conf
|
||||
cat /etc/dnf/dnf.conf
|
||||
```
|
||||
|
||||
## Set Hostname
|
||||
|
||||
```bash
|
||||
hostnamectl set-hostname ducolaptop
|
||||
```
|
||||
|
||||
## BTRFS Optimizations
|
||||
|
||||
```bash
|
||||
sudo vim /etc/fstab
|
||||
# subvol=root,x-systemd.device-timeout=0,ssd,noatime,space_cache,commit=120,compress=zstd,discard=async 0 0
|
||||
# subvol=home,x-systemd.device-timeout=0,ssd,noatime,space_cache,commit=120,compress=zstd,discard=async 0 0
|
||||
|
||||
sudo vim /etc/crypttab
|
||||
# luks-fcc669e7-32d5-43b2-ba03-2db6a7f5b33d UUID=fcc669e7-32d5-43b2-ba03-2db6a7f5b33d none discard
|
||||
|
||||
sudo systemctl enable fstrim.timer
|
||||
```
|
||||
|
||||
## Install updates
|
||||
|
||||
```bash
|
||||
sudo dnf upgrade --refresh
|
||||
sudo dnf check
|
||||
sudo dnf autoremove
|
||||
sudo fwupdmgr get-devices
|
||||
sudo fwupdmgr refresh --force
|
||||
sudo fwupdmgr get-updates
|
||||
sudo fwupdmgr update
|
||||
sudo reboot now
|
||||
```
|
||||
|
||||
## Install Fish
|
||||
|
||||
```bash
|
||||
sudo dnf install -y fish util-linux-user
|
||||
chsh -s /usr/bin/fish
|
||||
```
|
||||
|
||||
```bash
|
||||
mkdir -p /home/$USER/.local/bin
|
||||
set -Ua fish_user_paths /home/$USER/.local/bin
|
||||
```
|
||||
|
||||
## ISCSI
|
||||
|
||||
```bash
|
||||
# Login to portal
|
||||
sudo iscsiadm -m discovery -t st -p freenas.dnet
|
||||
|
||||
# Mount all targets
|
||||
sudo iscsiadm -m node --targetname iqn.2022-02.freenas.dnet:framework-backup -p freenas.dnet:3260 -l
|
||||
|
||||
# Mount at boot
|
||||
vim /etc/iscsi/nodes/iqn.2022-02.freenas.dnet:manjaro-backup/10.1.2.200,3260,1
|
||||
(/var/lib/iscsi/nodes/iqn.2022-02.freenas.dnet:manjaro-backup/10.1.2.200,3260,1/default) on fedora
|
||||
|
||||
node.startup = automatic
|
||||
|
||||
# Log out of all sessions
|
||||
sudo iscsiadm -m node -u
|
||||
```
|
||||
|
||||
## Gnome Tweaks
|
||||
|
||||
1. Fonts -> Monospace Text -> Fira Code Regular
|
||||
2. Keyboard & Mouse -> Acceleration Profile -> Flat
|
||||
3. Keyboard & Mouse -> Mouse Click Emulation -> Fingers
|
||||
4. Top Bar -> Activities Overview Hot Corner -> Off
|
||||
5. Top Bar -> Battery Percentage -> On
|
||||
6. Top Bar -> Clock -> Weekday -> On
|
||||
7. Top Bar -> Clock -> Seconds -> On
|
||||
8. Windows -> Center New Windows -> On
|
||||
|
||||
## Flatpack
|
||||
|
||||
```bash
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
flatpak update
|
||||
```
|
||||
|
||||
## Snap
|
||||
|
||||
```bash
|
||||
sudo dnf install -y snapd
|
||||
sudo ln -s /var/lib/snapd/snap /snap # for classic snap support
|
||||
ln -s /var/lib/snapd/desktop/applications ~/.local/share/applications/snap # make apps show up in gnome
|
||||
sudo reboot now
|
||||
```
|
||||
|
||||
## AppImage Launcher
|
||||
|
||||
Download RPM from https://github.com/TheAssassin/AppImageLauncher/releases/tag/v2.2.0
|
||||
|
||||
## Ansible
|
||||
|
||||
```bash
|
||||
ansible-playbook --ask-become-pass ansible/framework_fedora.yml
|
||||
```
|
||||
Reference in New Issue
Block a user