October 23, 2016

CentOS 7 - This Wallpapers Not For Changing

In a business and under other circumstances you may  wish to keep a constant look and feel for your desktop and not allow users to change the desktop wallpaper and screen shield. Let us make this happen.

Open a terminal and enter the command line below and press ENTER on the keyboard.

sudo vim /etc/dconf/db/local.d/00-background

Once open, insert the text below.

[org/gnome/desktop/background]

picture-uri='file:///usr/share/backgrounds/gnome/
yourimage.filename'
picture-options='zoom'
primary-color='000000'

secondary-color='000000'

[org/gnome/desktop/screensaver]
picture-uri='file:///usr/share/backgrounds/gnome/
yourimage.filename'
picture-options='zoom'


Note: Change yourimage.filename to the image file of your choosing. If it is a custom image, be sure to copy it to the path above or one of your choice.

Once done. Save and exit the file.

Next we need to lock the settings and not allow changes by the user.

Open a terminal and enter the command line below and press ENTER on the keyboard.

sudo vim /etc/dconf/db/local.d/locks/background

Once open, insert the text below.

/org/gnome/desktop/background/picture-uri
/org/gnome/desktop/background/picture-options
/org/gnome/desktop/background/primary-color
/org/gnome/desktop/background/secondary-color
/org/gnome/desktop/screensaver/picture-uri
/org/gnome/desktop/screensaver/picture-options


Once done. Save and exit the file.

Now we have added the necessary files, we must update dconf.

Still in the terminal. Enter the command line below and press ENTER on the keyboard.

sudo dconf update

Finally we need to reboot.

Still in the terminal. Enter the command line below and press ENTER on the keyboard.

sudo reboot

Once rebooted, users will no longer be able to change their desktop wallpaper or screen shield.

No comments:

Post a Comment