Tuesday, October 15, 2024

Fedora Install Notes

 

Many of the steps in setting up Fedora are the same as I do for Arch.  My preferred install is Fedora Rawhide.  You are better off with the default "Gnome" desktop than trying the KDE spin (seems to be the best integrated experience with few/no hardware/GPU issues).

Helpful notes to me:

Initial "get started" installs:
sudo dnf in duf wget fastfetch git btrfs-assistant gnome-disk-utility libcurl-devel java-latest-openjdk-devel freetype-devel libpng-devel libtiff-devel libjpeg-devel fribidi-devel bat micro gnome-tweaks ptyxis gnome-extensions-app python3-ipykernel lftp llvm-devel tcl8-devel tcl8 tk8-devel tk8 python3-pip python3-colorama R fish xsane sqlitebrowser

Snapper:
sudo dnf copr enable kylegospo/grub-btrfs
sudo dnf in grub-btrfs

do rollback:
Use sudo snapper ls to list all available snapshots and their corresponding numbers.
Note the number of the snapshot you want to revert to.

Open a terminal and use the following command: sudo snapper rollback <snapshot_number>.
Replace <snapshot_number> with the actual number of the snapshot you want to rollback to.

You might need to use the --ambit option with the classic value if you encounter an error about an unknown default volume. The command would then be for example: sudo snapper --ambit classic rollback 5

After the rollback is complete, reboot your system to boot into the restored state.
On the boot screen, choose the default boot entry to reboot into the reinstated system.
A snapshot of the file system status before the rollback is created.
The default subvolume for root will be replaced with a fresh read-write snapshot.

Microsoft Edge:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo dnf config-manager addrepo --set=baseurl=https://packages.microsoft.com/yumrepos/edge
sudo dnf in microsoft-edge-beta

Rstudio:
download nightly build for Fedora and then sudo dnf install xxxx.rpm from Downloads directory

Onedrive:
sudo dnf in onedrive

eza:
sudo dnf copr enable alternateved/eza
sudo dnf in eza

Enable non-free repos:
sudo dnf install dnf-plugins-core

Dropbox:
sudo dnf in dropbox (after enabling copr repos?)
sudo dnf copr enable @neurofedora/neurofedora-extra

Zed:
curl -f https://zed.dev/install.sh | ZED_CHANNEL=preview sh
install ruff extension and modify settings file per: https://docs.astral.sh/ruff/editors/setup/#zed

Warp Terminal:

Insync:
download rpm from https://www.insynchq.com/downloads/linux.... then

sudo dnf install xxxxxxDOWNLOADED.rpm

Kmymoney:
sudo dnf in kmymoney

Pycharm:
sudo dnf copr enable phracek/PyCharm
sudo dnf install pycharm-community

need to install chess and svglib using pip3 install chess and then same for svglib

fisher for fish terminal:
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher

Whatsapp
sudo dnf copr enable nunodias/whatsapp-for-linux

multimedia codecs (free):
sudo dnf -y groupinstall multimedia


Set up Windows on KVM/QEMU: (https://medium.com/@nkav2447/run-virtual-machines-on-fedora-40-kvm-qemu-setup-aaaa20a50460)
sudo dnf group install --with-optional virtualization

Then follow https://archsetup.blogspot.com/2023/11/install-windows-11-on-virt-manager.html

Disable a repo (dnf5):
sudo dnf config-manager setopt insync.enabled=false 

Also can delete from yum.d directory.

Format to add a repo(dnf5):
sudo dnf config-manager addrepo --set=baseurl=https://packages.microsoft.com/yumrepos/edge

Nvidia drivers problematic on Rawhide:

Reinstall kernels:
sudo dnf reinstall kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra

Map mouse button to SUPER_L:
sudo dnf install input-remapper
sudo systemctl enable --now input-remapper
"KEY_LEFTMETA" is the super key you need

Specify specific kernel (if latest Rawhide kernel not supporting your hardware)

sudo sh -c 'grep title /boot/loader/entries/* | cut -d " " -f2-' 
sudo micro /etc/default/grub    set GRUB_DEFAULT to your preferred kernel in quotes (full name from previous command)

Probably also want to sudo micro /etc/dnf/dnf.conf  and write installonly_limit=6 under 
"[main]" to increase the number of kernels kept so your working kernel doesn't disappear during an update

Downgrade from Rawhide to 42 (need to disable RPM fusion repos first):
sudo dnf distro-sync --releasever=42 --refresh --disablerepo rawhide \ --enablerepo fedora --allowerasing --best

Will probably need to reinstall kernels (see above) and get rid of old kernels: sudo dnf remove kernel\*-6.*
 followed by sudo grub2-mkconfig -o /boot/grub2/grub.cfg

No comments:

Post a Comment

RTL-SDR On Opensuse Tumbleweed

Notes on setting up RTL-SDR V4 in Opensuse Tumbleweed: opi sdrpp sudo zypper in rtl-sdr sudo usermod -a -G rtlsdr $(whoami)  #then logout an...