Monday, October 21, 2024

Opensuse Tumbleweed

 



https://youtu.be/ttG2NFkKPRM?si=SuAC-XRueX6k_p9g

https://youtu.be/MnlRpH9sPBM?si=HXrk69GGOfiqbQz4

https://youtu.be/KW7hzWehuDo?si=dDaPA0haS8pimA7D

zram vs suspend to disk?

Optimize mirrors:

zypper in mirrorsorcerer
sudo mirrorsorcerer -x
systemctl enable --now mirrorsorcerer 
reboot

 Edit zypp.conf:

sudo micro /etc/zypp/zypp.conf 
 
parallel downloads=5
download.min_download_speed = 20000
 
Install opi:
sudo zypper install opi
sudo zypper install -t pattern devel_basis

Install Pycharm:

sudo zypper in libgthread-2_0-0 gcc-fortran gnome-disk-utility texlive
sudo opi pycharm
sudo zypper in python3-pandas python3-suds python3-colorama python3-reportlab python3-svglib

sudo pip3 install chess --break-system-packages

sudo opi micro
 

Rstudio-desktop:

sudo zypper in R-base-devel
sudo opi rstudio-desktop

opi version is outdated, so can also download Opensuse rpm from: https://posit.co/download/rstudio-desktop/ 
then:  sudo zypper in [downloaded rpm file]
You also need to: sudo zypper in openssl-1_1
If you manually install rstudio, zypper will want to downgrade....so run sudo zypper al rstudio.....which locks the package (sudo zypper removelock rstudio to remove lock)

 sudo opi rjava (after installing java-21-openjdk-devel pcre2-devel lzma-sdk-devel libbz2-devel)

Install Insync:

sudo rpm --import https://d2t3ff60b2tol4.cloudfront.net/repomd.xml.key
sudo zypper ar -f http://yum.insync.io/opensuse-tumbleweed/rolling/ Insync
sudo zypper refresh
sudo zypper in insync

Enable dnf:

sudo zypper in dnf rpm-repos-openSUSE-Tumbleweed
 
add to /etc/dnf/dnf.conf:
fastestmirror=True
max_parallel_downloads=10
defaultyes=True

Install Flatpak:

sudo dnf in fastfetch eza dropbox flatpak fish
sudo opi fisher
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install sqlitebrowser
 
Install Codecs:
opi codecs
 

Right way to update:

sudo zypper refresh
sudo zypper dup --allow-vendor-change

Nvidia:

inxi -G     to see what driver is loaded

https://en.opensuse.org/SDB:NVIDIA_drivers

zypper addrepo --refresh https://download.nvidia.com/opensuse/tumbleweed NVIDIA

sudo zypper install-new-recommends --repo NVIDIA    or....

sudo zypper in nvidia-video-G06

Security Audit System:

sudo dnf in lynis && sudo lynis audit system

Virt Manager:

https://samanpavel.medium.com/kvm-vms-with-virt-manager-on-opensuse-f4370165c03d

sudo usermod -aG libvirt hugh
sudo dnf in libvirt 
sudo systemctl start libvirtd.service 
NO NEED TO CHOOSE SECURE BOOT....just use default UEFI 

Some Interesting Set up scripts including fix for Gigabyte motherboard sleep issue

https://github.com/DAK404/OpenSUSE-Setup-Scripts


OpenRGB:

To install OpenRGB with hardware access on openSUSE Tumbleweed, follow these steps:

1. Install OpenRGB from the official repositories:

```bash
sudo zypper install OpenRGB
```

2. Install the i2c-tools package, which is needed for accessing certain RGB devices:

```bash
sudo zypper install i2c-tools
```

3. Load the necessary kernel modules:

```bash
sudo modprobe i2c-dev
sudo modprobe i2c-piix4  # For AMD systems
# OR
sudo modprobe i2c-i801   # For Intel systems
```

4. To make these modules load automatically on boot, create a new file:

```bash
sudo nano /etc/modules-load.d/openrgb.conf
```

Add the following lines to the file:

```
i2c-dev
i2c-piix4  # For AMD systems
# OR
i2c-i801   # For Intel systems
```

5. Install the OpenRGB kernel patches:

```bash
sudo zypper install i2c-openrgb-kmp-default
```

6. Reboot your system to apply the changes.

7. Run OpenRGB with sudo privileges:

```bash
sudo openrgb
```

If you want to run OpenRGB without sudo, you can add your user to the i2c group:

```bash
sudo usermod -aG i2c $USER
```

Then log out and log back in for the changes to take effect.

sudo zypper ref
sudo zypper install OpenRGB
sudo zypper in i2c-tools
sudo usermod -aG i2c hugh
sudo modprobe i2c-dev
sudo modprobe i2c-piix4
cd /etc/modules-load.d/
sudo touch /etc/modules-load.d/i2c.conf
sudo sh -c 'echo "i2c-dev" >> /etc/modules-load.d/i2c.conf'
sudo sh -c 'echo "i2c-piix4" >> /etc/modules-load.d/i2c.conf'

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

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

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

App indicator needed for Dropbox (and nice to have for Insync):
sudo dnf install gnome-shell-extension-appindicator
sudo dnf install libappindicator-gtk3
sudo gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com

go to Gnome extensions web page and turn on appindicator

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
sudo dnf in 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

Always have grub menu show
sudo grub2-editenv - unset menu_auto_hide

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

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...