Tips for OpenSUSE (Tumbleweed)
You’ll find in this article, somes tips about the OpenSUSE Tumbleweed distribution.
The tips cover :
- Zypper : Command line package management
- KDE : Desktop environment
- Btrfs : OpenSuse default file system
- NFS : Network file system
- VirtualBox : Virtualization software
- …
Tips about OpenSuse system
Zypper
- Install a package :
sudo zypper in --no-recommend package
- Remove a package :
sudo zypper rm --clean-deps package
- Refresh repositories :
sudo zypper ref
orsudo zypper ref -f
- Update packages :
sudo zypper up
- Upgrade Distribution :
sudo zypper dup
- Search packages :
sudo zypper se package
orsudo zypper se -is package
- Lock packages :
sudo zypper al package
Note: replace package by the package name
Some usefull links :
Message :
1Removal of ***********(@System) failed :
2Error: Subprocess failed. Error: RPM failed: error: package ********** is not installed
You have to rebuild the RPM database : sudo rpm --rebuilddb
File system btrfs
Rollback
To rollback from a bootable snapshot :
- Start the system. In the startup menu, choose the “Bootable snapshots” option and select the snapshot you want to boot from.
- Log in. Check that everything is working as expected.
- If you want to perform the rollback, run
sudo snapper rollback
and then restart. - On the boot screen, choose the default boot entry to reboot on the restored system.
Issues
- If btrfs-cleaner use 100% of your CPU and freeze your computer, you can stop it with the command :
sudo btrfs quota disable /
- To disable the btrfs service (if you don’t use the filesystem) :
systemctl disable btrfsmaintenance-refresh
Service chrony
To disable chrony service startup : systemctl disable chrony-wait
Manage update manually (remove PackageKit)
To remove PackageKit : sudo zypper rm PackageKit* && sudo zypper al PackageKit*
Sound service (Pulseaudio)
To restart pulseaudio, use : pulseaudio -k
Network service
To restart network service use : sudo rcnetwork restart network_interface
Note: replace network_interface by your interface name (used
ifconfig
)
Configuration of the file fstab (with ntfs drive)
For each drive :
- Create the following folder :
mkdir /mnt/<name>
- change the folder owner :
chown anybody:wheel /mnt/<name>
- update the fstab file
sudo vi /etc/fstab
with the following line :/dev/<drive> /mnt/<name> ntfs rw,nosuid,nodev,relatime 0 0
Some usefull command :
- list partitions :
sudo fdisk -l
- list block devices :
lsblk
- list uuid :
sudo blkid
Configuration of the NFS client
- Discover the shared volumes on the NFS server :
showmount -e <ip>
- Mount a shared volume from the NFS server (manually) :
sudo mount -t nfs <ip>:<repnfs> <replocal>
- Mount a shared volume from the NFS server (automatically) :
sudo vi /etc/fstab
and add the line<ip>:<repnfs> <replocal> nfs rw,noauto,_netdev 0 0
- Mount all the fstab (reload) :
mount -a
- ip of the NFS server
- repnfs : path/folder on the NFS server
- replocal : path/folder on the NFS client
Delete the boot screen (plymouth)
- Remove and lock the package plymouth :
sudo zypper rm plymouth* && sudo zypper al plymouth*
Systemd information
- Information on the duration of the start of services :
systemd-analyze blame
Modify the mouse configuration
- Search the list of devices :
xinput list
- Retrieving the configuration of a device :
xinput list-props <number>
- Modifying a device property :
xinput set-prop <number> <prop> <values>
- Example for adjusting the mouse speed :
xinput set-prop 8 157 0.500000, 0.000000, 0.000000, 0.000000, 0.500000, 0.000000, 0.000000, 0.000000, 1.000000
- number : Device number
- prop : Property number or name
- values : New values
Some tips about the KDE desktop
Configure Bind to Switch Desktop and Quick tile Window
1. Go to System Settings > Shortcuts > Global Shortcuts > System Settings or Kwin
Action | Global |
---|---|
Quick Tile Window to the Bottom | Meta+Num+2 |
Quick Tile Window to the Bottom Left | Meta+Num+1 |
Quick Tile Window to the Bottom Right | Meta+Num+3 |
Quick Tile Window to the Left | Meta+Num+4 |
Quick Tile Window to the Right | Meta+Num+6 |
Quick Tile Window to the Top | Meta+Num+8 |
Quick Tile Window to the Top Left | Meta+Num+7 |
Quick Tile Window to the Top Right | Meta+Num+9 |
Switch One Desktop Down | Meta+Down |
Switch One Desktop to the Left | Meta+Left |
Switch One Desktop to the Right | Meta+Right |
Switch One Desktop Up | Meta+Up |
Full screen Window | Meta+f |
2. Right Click on the desktop wallpaper > Configure Desktop > Mouse Actions > Remove action “Switch Desktop” for “Vertical-Scroll”
Autostart (KDE)
- With command line : Copy a file org.kde.*.desktop in the folder ~/.config/autostart
You could find them in the folder
/usr/share/applications
- With GUI : Go in System Settings > Startup and Shutdown > Autostart
Reset KDE Session
- Reset the current KDE session (kill all process & logout) :
pkill -kill -u username
Note : replace username by the name of the choosen one
Some tips about software
Konsole config
In Settings > Edit Current Profile
- General > Profile name > Users
- General > Command > /bin/bash
- Appearance > Color Scheme & Background > Monokai-Flat
- Keyboard > Linux console
Firefox configuration
The file places.sqlite in $HOME/.mozilla/firefox/%.default contains bookmarks and history.
List of interesting addons :
- Ublock Origin
- HTTPS Everywhere
- Canvasblocker
- Cookie autodelete
- Css exfil protection
- DecentralEyes
- Firefox Containers
- Redirector
- Select context search
- Awesome RSS
- Privacy Badger
- No Coin
Latte Dock configuration
List of interesting widgets :
- Application Menu
- Pager
- Justify Splitter
- Latte plasmoid
- Justify Splitter
- System Tray
- Digital Clock
- Lock/Logout
You need to download and add manually the widget “redshift”
To restore plasma config (panel) :
kquitapp plasmashell
sleep 10s
cp <plasma_files_backup> $HOME/.config/.
plasmashell &
Polybar install error
If you can’t install Polybar with Zypper (libjsoncpp.so.19 error), you can try the following step :
- Install libjsoncpp21 :
sudo zypper in libjsoncpp21
- Find where is the file libjsoncpp.so.21 :
sudo find / -name "libjsoncpp.so.21"
- Copy the file libjsoncpp.so.21 with the name libjsoncpp.so.19 :
sudo cp /usr/lib64/libjsoncpp.so.21 /usr/lib64/libjsoncpp.so.19
- Install Polybar :
sudo zypper in polybar
Some tips about virtualization
WMware
- Listing of shared folder :
vmware-hgfsclient
- Mount a shared folder :
vmhgfs-fuse -o allow_other .host: /mnt/
- Unmount a shared folder :
fusermount -uz /mnt/
orumount -f /mnt/
VirtualBox
Install VBoxGuestAdditions :
- insert file VBoxGuestAdditions*.iso in the cdrom
sudo mkdir -p /media/cdrom
sudo mount -t iso9660 /dev/cdrom /media/cdrom
cd /media/cdrom
sudo ./VBoxLinuxAdditions.run
Install VirtualBox package :
sudo zypper in virtualbox-guest-tools virtualbox-guest-x11
Cleaning of disk image vdi :
vboxmanage modifymedium disk "./opensuse.vdi" --compact