Home  >  Article  >  System Tutorial  >  How to set wallpaper in linux

How to set wallpaper in linux

下次还敢
下次还敢Original
2024-04-11 18:15:20823browse

There are two ways to set wallpaper in Linux: Use the graphical interface: right-click a blank area of ​​the desktop and select "Change Background" or "Set Background". Select "Pictures", add and select the desired image. Adjust the zoom and position and click "Set as Wallpaper". Using the command line: Open a terminal and use the base64 command to convert the image to a Base64 encoded string. Copies the output to the clipboard. Set the wallpaper using the gsettings command, replacing the encoded string with YOUR_ENCODED_IMAGE_STRING.

How to set wallpaper in linux

How to set wallpaper in Linux system

Method 1: Using the graphical interface

For For Linux distributions using the GNOME desktop environment, follow these steps to set the wallpaper:

  1. Right-click an empty area of ​​the desktop and select "Change Background."
  2. In the "Background" window, select "Picture".
  3. Click the "Add Image" button and select the image you want to use for your wallpaper.
  4. Select the desired scaling and positioning options.
  5. Adjust the size and position of the preview image until you are satisfied.
  6. Click the "Set as Wallpaper" button to apply changes.

For Linux distributions using the KDE Plasma desktop environment, follow these steps to set the wallpaper:

  1. Right-click an empty area of ​​the desktop and select Set Background.
  2. In the "Desktop & Wallpapers" section, select "Add Wallpaper."
  3. Select an image to use as wallpaper.
  4. Select the desired scaling and positioning options.
  5. Click the "OK" button to apply the changes.

Method 2: Using the command line

For all Linux distributions, you can also set the wallpaper using the following command line command:

  1. Open a terminal window.
  2. Convert the image to a Base64 encoded string using the following command:
<code class="bash">base64 image.jpg</code>
  1. Copy the output to the clipboard.
  2. Set the wallpaper using the following command:
<code class="bash">gsettings set org.gnome.desktop.background picture-uri "data:image/jpeg;base64,YOUR_ENCODED_IMAGE_STRING"</code>

Replace YOUR_ENCODED_IMAGE_STRING with the Base64 encoded string copied from step 2.

The above is the detailed content of How to set wallpaper in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn