How Kubuntu22.04 uses the Wallpaper Engine for Kde plugin to improve the desktop

How Kubuntu22.04 uses the Wallpaper Engine for Kde plugin to improve the desktop

  • step
    • 1. Install the Kubuntu22.04 operating system
      • 1.1. It is recommended to install the native Kubuntu system (History of Blood and Tears)
    • 2. Install the Wallpaper Engine Kde Plugin
      • 2.1 Method 1 (Installation of the system’s own wallpaper plug-in) (not recommended: domestic networks generally cannot be installed):
      • 2.2 Method 2 (download the installation package from the official website of Wallpaper Engine Kde Plugin and install it manually) (recommended):
    • 3. Download and build the Wallpaper Engine for Kde engine
      • 3.1 Download and build, install a higher version of python (3.5 + )? ==very important==
      • 3.2 Build and install Wallpaper Engine for Kde
      • 3.3 Uninstall Wallpaper Engine for Kde engine (optional)
    • 4. Install Steam
      • 4.1 There is Steam in the Kubuntu software store, you can search for it and install it directly
      • 4.2 Go to Steam official website to download the deb package
    • 5. Download Wallpaper Engine
      • 5.1 Open Steam Play
      • 5.2 Install Wallpaper Engine and start it
      • 5.3 Configure wallpaper

references
1. Use wallpaper engine on KDE https://www.bilibili.com/video/BV14k4y1E7qa/?spm_id_from=333.1007.top_right_bar_window_custom_collection.content.click
2. ubuntu install python3.7 and soft link switch python3 and pip3 unsuccessful solution https://blog.csdn.net/mygugu/article/details/97170477
3. python error on ubuntu22.04 (stupid ubuntu #162 https://github.com/catsout/wallpaper-engine-kde-plugin/issues/162

Steps

1. Install the Kubuntu22.04 operating system

1.1. It is recommended to install the original Kubuntu system (History of Blood and Tears)

1.1.1 If you install kubuntu-desktop on the Ubuntu system, there are many pitfalls for you to step on. For example, if the parameter is not selected correctly, you will suddenly be unable to enter the system, or the login interface may log in repeatedly.
1.1.2 And Kubuntu is installed with Nvidia driver, if it is Ubuntu, Nvidia driver should be installed, stepping on more pitfalls

If you have already installed kubuntu-desktop, then omit all the above words; if not, and your system is just installed, then it is strongly recommended to reinstall the Kubuntu system, one step in place

Kubuntu download URL: https://kubuntu.org/getkubuntu/

2. Install the Wallpaper Engine Kde Plugin

2.1 Method 1 (installation of the system’s own wallpaper plug-in) (not recommended: the domestic network generally cannot be installed):

2.1.1 Switch to desktop
2.1.2 Right mouse button to configure desktop and wallpaper
2.1.3 Click to get new plug-ins

2.1.4 Find Wallpaper Engine Kde Plugin, click to install Please add a picture description

2.2 Method 2 (download the installation package from the official website of Wallpaper Engine Kde Plugin and install it manually) (recommended):

(Download plug-in installation package: choose one of the two)
2.2.1 Download from the official website of the plug-in (not recommended, the installation package cannot be downloaded from the domestic network): https://store.kde.org/p/1475528

Please add a picture description

2.2.2 Baidu Netdisk (recommended): https://pan.baidu.com/s/1WJtrUJkJTLb8PZRP3t11Sw?pwd=linx
Password: linx

Here the directory where I downloaded the installation package is: ~/Download
Enter the following command to install the plugin

cd ~/Download
// install the plugin
kpackagetool5 -t Plasma/Wallpaper -i we-kde-0.5.4.tar.gz

3. Download and build Wallpaper Engine for Kde engine

3.1 download and build, install a higher version of python (3.5 + )? very important

Description: The python that comes with kubuntu22.04 is python3.10, but the required python is 3.5 + , if you use the python that comes with kubuntu , there will be some problems later, such as some wallpapers cannot be played at all, etc., but this problem will not occur if you switch to the required version of python.

Warning: Do not uninstall the python3.10 that comes with the system. Many system programs depend on python3.10. If you uninstall it, the system will not be able to enter (I stepped on a big hole!!!)

Please add a picture description

3.1.1 Since the highest and safe version of python is 3.9, I choose python3.9.16 to download

Official website URL: https://www.python.org/downloads/release/python-3916/

Please add a picture description

3.1.2 Unzip after downloading the installation package, you can right-click on the graphical interface to unzip

Tips: The –prefix parameter is used to specify the installation directory of the software. If this parameter is added, executable files, library files, modules, etc. will be placed in the modified directory; if not added, it can be executed Files, library files, modules, etc. will be split by default and installed in the /usr/local/bin and /usr/local/lib directories of the system

3.1.3 build python3.9.16

cd into the decompressed python folder
./configure --prefix=/usr/local/python3 --enable-optimizations
make
sudo make install

So python3.9.16 is installed
Tips: The software we install ourselves is generally placed in the /usr/local directory

Tips: We usually use the python command in the terminal to call the python file in the /usr/bin directory, and this file is usually a soft link file, which is equivalent to a pointer, which is also understandable It is a shortcut under the Windows system. The python soft link file is used to call the actual python file, so that we can directly enter the python environment by typing python in the terminal. If there is no python file under /usr/bin, then you enter python is There will be no response. At this time, you can enter python3.10 to enter the python environment, because there is a python3.10 file under /usr/bin in this system. Generally, /usr/bin is added to the $PATH environment variable. , which is equivalent to Windows, right click on the computer, advanced, the Path environment variable under the system environment, so that commands can be executed at any terminal.

3.1.4 Create soft links of python3 and pip3

// Delete the python3 and pip3 soft link files under the original /usr/bin
rm -rf /usr/bin/python3
rm -rf /usr/bin/pip3
//Add a soft link, and then enter python3 or pip3 to enter the environment
//Add a soft link to python3
ln -s /usr/local/python3/bin/python3.9 /usr/bin/python3
//Add the soft link of pip3
ln -s /usr/local/python3/bin/pip3.9 /usr/bin/pip3

Enter python3 -V and pip3 -V to check whether it is installed

Lenovo-Legion-R7000P2020H:~$ python3 -V
Python 3.9.16
Lenovo-Legion-R7000P2020H:~$ pip3 -V
pip 22.0.4 from /usr/local/python3/lib/python3.9/site-packages/pip(python 3.9)

3.2 Build and install Wallpaper Engine for Kde

Project URL: https://github.com/catsout/wallpaper-engine-kde-plugin
The specific steps are available on the official website of the project above, and the following is a summary

3.2.1 Installation related dependencies

//Download and install related dependencies
sudo apt install build-essential libvulkan-dev plasma-workspace-dev gstreamer1.0-libav \
liblz4-dev libmpv-dev python3-websockets qtbase5-private-dev \
libqt5x11extras5-dev\
qml-module-qtwebchannel qml-module-qtwebsockets cmake

3.2.2 Pull source code

Need a proxy, if there is no proxy, half of the download will time out, the tcp link will be broken for you directly, the previous download is for nothing, if there is no proxy server, please read other tutorials

// git configures the proxy, only a proxy can be configured
git config --global http.proxy http://server:port number
git config --global https.proxy https://server:port number
// switch to home directory
cd ~
// Download the source code
git clone https://github.com/catsout/wallpaper-engine-kde-plugin.git
// switch directory
cd wallpaper-engine-kde-plugin
// Download the submodule (glslang)
git submodule update --init
// configuration
// 'USE_PLASMAPKG=ON': using plasmapkg2 tool to install plugin
mkdir build & & cd build
cmake .. -DUSE_PLASMAPKG=ON
// Start compiling, $(nproc) is an environment variable, representing the total CPU core of the computer, you can use echo $(nproc) to view
make -j$(nproc)
// Install package (ignore if USE_PLASMAPKG=OFF for system-wide installation)
make install_pkg
// Install
sudo make install

3.3 Uninstall Wallpaper Engine for Kde engine (optional)

3.3.1 Delete the files in the wallpaper-engine-kde-plugin/build/install_manifest.txt text, wallpaper-engine-kde-plugin just started to pull the code the folder of
3.3.2 Enter plasmapkg2 -r ~/.local/share/plasma/wallpapers/com.github.casout.wallpaperEngineKde

Tips: After uninstalling the Wallpaper Engine for Kde engine, the Wallpaper Engine Kde Plugin will also be uninstalled together

4. Install Steam

Choose one of the following two methods

4.1 Kubuntu has Steam in the software store, you can search and install it directly

Please add a picture description

4.2 Go to Steam official website to download the deb package

Please add a picture description
4.2.1 Install Steam

cd to the directory where the deb package was downloaded
// -i means install installation
The deb package downloaded by sudo dpkg -i

5. Download Wallpaper Engine

5.1 Open Steam Play

5.1.1 After logging in to the account, mark two √ in the Steam Play in the Steam settings, otherwise you will not be able to download Wallpaper Engine. Steam Play is a function developed for Linux, allowing users to play Steam games on the Windows platform on the Linux system. If it is not enabled, you can only download and run games that have been adapted to Linux by Steam, such as CSGO, which can be downloaded directly. If Steam Play is turned on, other games can be downloaded, but they may not run successfully.
Please add a picture description

5.2 Install Wallpaper Engine and start

Wallpaper Engine will automatically download wallpapers to the local

5.3 Configure wallpaper

5.3.1 Switch to the desktop, click to configure the desktop wallpaper
5.3.2 Switch the wallpaper type to Wallpaper Engine for Kde
Please add a picture description

Tips: If you see a bunch of error codes similar to the picture below

This is the wrong version of the websockets package in python. The function definition parameters inside may have changed. Update it

// run the following code
pip3 install --upgrade websockets

5.3.3 Configure wallpaper directory
5.3.3.1 Click Library, select the directory where Wallpaper Engine downloads and stores wallpapers, the default is ~/.local/share/Steam, if you choose this directory, but the wallpaper does not appear It may be that you have found the wrong directory. At this time, go to Wallpaper Engine right click and select Manage, Browse local files
Please add picture description

Please add a picture description
Find a file in the opened folder to check the path, and find out if it is the same as the default ~/.local/share/Steam path of the wallpaper, then the path of your computer to store the wallpaper is above The icon is red for this path, select it. In addition, folders starting with . are hidden folders, you can use ctrl + h to show hidden folders.

5.3.3.2 The wallpaper will be displayed, select the wallpaper and click Apply Description”>
Please add a picture description

After testing, all the wallpapers I have can be used, and most wallpapers should be able to be used

It is not easy to sort out the information, if you find it useful, give me a thumbs up -owo-