I am building a Custom ISO of Ubuntu 18.04 LTS using CUBIC and I'd like to change the default background and lock screen image.
I added the backgrounds in /usr/share/backgrounds
, changed the background in /usr/share/gnome-background-properties/ubuntu-wallpapers.xml
file, but it does not seems to affect new users (for example the OEM user).
Also, I did not find any way to change the lock screen image.
Best Answer
your approach of copying the images to
/usr/share/backgrounds/
and editing/usr/share/gnome-background-properties/ubuntu-wallpapers.xml
will allow you to show them in Settings-->Bakcground-->Wallpapers and Settings-->Lock Screen-->Wallpapersbut the
gsettings
for these two are set towarty-final-ubuntu.png
So, you need to compile these values after editing
/usr/share/glib-2.0/schemas/10_ubuntu-settings.gschema.override
file.Run the command
sudo nano /usr/share/glib-2.0/schemas/10_ubuntu-settings.gschema.override
and edit the content for background and screensavers as below, changing to your actual image paths:Save the changes and run this command to compile the schemas:
Now you can check the gsettings value for these two wallpapers
you are done. Restart the computer for the changes to take effect.
Please have a look of below Images which are self explanatory as I did it personally with Ubuntu 18.04.2 ISO with Ubuntu 18.04.2 as my OS
Booted with live USB and the resulting pictures are