5

I'm annoyed by the 'lock screen' wallpaper of KALI SANA 2.0. This is the default 'lock screen' wallpaper:

enter image description here

I have seen many tutorials on how to change the 'login screen' wallpaper/background but didn't find any about changing the 'lock screen' wallpaper/background picture.

Is there anyone that can guide me through the process of changing the 'lock screen' wallpaper in KALI Sana 2.0?

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
dryleaf
  • 196
  • 2
  • 4
  • 12

4 Answers4

3

Try this. Make a file called /usr/share/images/desktop-base/lockscreen.xml, somewhat like this:

<background>
  <static>
    <duration>8640000.0</duration>
    <file>
      <size width="1920" height="1080">/path/to/wallpaper.jpg</size>
    </file>
  </static>
</background>

Then link the file like so: ln -sfv /usr/share/images/desktop-base/lockscreen.xml /etc/alternatives/desktop-background.xml

As root, run this: /etc/init.d/gdm3 restart or just reboot. That should do it. That was the process in older versions of Gnome, so as long as it hasn't changed, you should be good to go.

ryanpcmcquen
  • 201
  • 2
  • 5
2

I also struggled with this for a little while, but what worked for me was annoyingly simple (and it also works for a custom desktop image):

  • have your file in a file-explorer window ready to click on.
  • right-click on the desktop and select Change Desktop Background
  • select the lock-screen to customise (or the desktop) for a list of pictures available
  • drag the image from the file-explorer window and drop it into to list of pictures shown in the last step (the cursor should change to have a small + visible
  • the new picture appears in the list and can be selected
Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
n1k31t4
  • 163
  • 1
  • 1
  • 8
0

As root:
nano /etc/alternatives/gdm3.css

When the file opens:
control w Type: lockDialogGroup Press: Enter

To find:
#lockDialogGroup {
background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }

Change the lines into:
#lockDialogGroup {
background: #2c001e url(file:///SOMEPATHTOSOMEFILE);
background-repeat: no-repeat;
background-size: cover;
background-position: center; }

Restart and that should do it!

Michael Prokopec
  • 2,202
  • 7
  • 21
  • 1
    I appreciate you reaching out in 2018 but the distribution has changed a lot since 2015 and lots of bugs have been fixed. (Now already using Kali Rolling Kernel 4.18.0, GNOME 3.30.1) – dryleaf Nov 17 '18 at 19:57
  • 1
    You're welcome. I used info known to work as of today on gdm3, that is why I just thought why not. Have a great day! :) – Michael Prokopec Nov 17 '18 at 20:01
-2

My laptops runs Kali Linux with the Gnome DE. Here's how I just changed the lockscreen & login screen backgrounds:

  1. open terminal, type in su root then your password,

  2. type in, cd /usr/share/images/desktop-base then press enter.

  3. type ls and find the png file that says kali wallpaper that fits your screen size and type in mv filename.png filename.png.bak to make a backup file.

  4. Then type ls to see changed results then put your desired image in that folder, then label it with the same name as original ending with .png ext.

  5. then lock the screen, and see results.

Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227