User Tools

Site Tools


opensuse

This is an old revision of the document!


openSUSE basic usage

Installation process tl;dr

Install options to deblote!! It is also worth concidering getting rid of Discover altogether and favor Myrlyn and Bazaar.

  1. Install system with EN (UK)
  2. In the installer\*, on the final screen before installation starts, change security to AppArmor
  3. Click on “Software”, which will bring up a package selection screen
  4. Untick “KDE Applications” pattern (assuming you chose the KDE desktop when the installer asked previously, but it should be the same logic if you chose GNOME or Xfce)
  5. Re-tick “KDE Base” pattern (this gets unselected in the step above)
  6. Then click on “Details” and install a few more packages, I would suggest “spectacle” for the KDE screenshot program, “konsole” for the KDE terminal (otherwise you just get xterm) and “discover”. Read more below.
  7. Install
  8. Remove zypper hook from Discover
  9. Move Flatpaks to user space

Flatpaks

Flatpaks are installed in root.

To move to user space:

  1. `sudo flatpak list` and make a note of the apps.
  2. `sudo flatpak remote-delete flathub`
  3. `flatpak remote-add –user –if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo`
  4. Reinstall apps. `flatpak install …`
  5. Not needed, will be pulled in when needed: `flatpak install org.freedesktop.Platform`

Or just accept that they are in root. Bazaar forces it. Discover however, does not!!

Discover

Always update with commandline: `sudo zypper dup`!!!!!

To that end, it's advantageous to remove zypper hook into Discover. Native packages should not be updated with it and notifications become useless:

sudo zypper remove -u PackageKit-backend-zypp && sudo zypper addlock PackageKit-backend-zypp

Possibly this is needed aswell:

sudo zypper addlock discover6-backend-packagekit

Regarding bloat

Even if installing debloated, patterns can force back installs later on. Locks are needed.

sudo zypper addlock MozillaFirefox

Decoration

Ned Aurorae by jomada. or

sudo zypper in oxygen6

Steam permissions

Fuck SELinux and install with AppArmor instead. Btw: Install to fix context menu

libdbusmenu-qt5-2-32bit

of Steam in the tray.

SELinux

Issue with exec permissions

sudo zypper in selinux-policy-targeted-gaming

To be able to start games?

However that one is already installed. So:

  • temp fix:
    sudo setsebool selinuxuser_execmod 1
  • perm fix:
    sudo setsebool -P selinuxuser_execmod 1

However it only seem to be semi temporary. https://en.opensuse.org/Portal:MicroOS/SELinux

Permanently disable it in Grub

Swap

The default 2 GB can easily be filled, causing freezes with 16 GB RAM. Add more swap!

The default 2GB is not enough. Add more swap space for medium to low RAM:

Add/change swap (btrfs)

sudo btrfs subvolume create /swap
sudo btrfs filesystem mkswapfile --size 8G /swap/swapfile
sudo swapon /swap/swapfile

Make permanent by adding a row in `/etc/fstab`

/swap/swapfile none swap defaults 0 0

Change the swap file size:

sudo swapoff /swap/swapfile
sudo rm /swap/swapfile
sudo btrfs filesystem mkswapfile --size 16G /swap/swapfile
sudo swapon /swap/swapfile

Swapfile will be added to the total swap (including partitions) seamlessly by btrfs.

zswap

Compresses before storing in RAM. When RAM is full, decompresses and store on disc. This is recommended. Add to bootloader parameters using YaST:

zswap.enabled=1

More detailed but mostly unecessary:

zswap.enabled=1 zswap.compressor=lzo zswap.max_pool_percent=25

- [https://linuxblog.io/zswap-better-than-zram/|Linux Blod: zswap better than zram]

zram

Do not mix with zswap! zram is an older way of using compressed RAM as swap, not recommended anymore.

sudo zypper in systemd-zram-service
systemctl enable --now zramswap.service

Upgrade NVidia drivers

Note: Make sure there's a password for root!! Mokutils (for NVidia w/ secureboot) asks for root password!!

* Upgrade from 580 to 595 * openSUSE documentation on NVidia drivers Note: Use Myrlyn! 580-packages needs to be removed one by one since it was not installed from the start using meta package. Install 595 meta package. From now on it will also be easier to switch.

https://sndirsch.github.io/nvidia/2025/07/16/nvidia-drivers.html

nvidia-smi

For some reason, some games doesn't detect NVidia card unless nvidia-smi is run in the terminal.

Best work around is to create a call of `nvidia-smi` as an autostart .desktop file.

Migrate rolling release plan (TW/Slowroll)

I have had bad luck with this. Would recommend reinstalling altogether.

https://en.opensuse.org/Portal:Slowroll

sudo zypper in opensuse-migration-tool
sudo opensuse-migration-tool --dry-run
sudo opensuse-migration-tool
sudo reboot
opensuse.1785070186.txt · Last modified: by mathog

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki