diff --git a/salt/common/files/analyst/00-background b/salt/common/files/analyst/00-background new file mode 100644 index 000000000..3d3fff72e --- /dev/null +++ b/salt/common/files/analyst/00-background @@ -0,0 +1,12 @@ +# Specify the dconf path +[org/gnome/desktop/background] + +# Specify the path to the desktop background image file +picture-uri='file:///usr/local/share/backgrounds/so-wallpaper.jpg' +# Specify one of the rendering options for the background image: +# 'none', 'wallpaper', 'centered', 'scaled', 'stretched', 'zoom', 'spanned' +picture-options='scaled' +# Specify the left or top color when drawing gradients or the solid color +primary-color='000000' +# Specify the right or bottom color when drawing gradients +secondary-color='FFFFFF' \ No newline at end of file diff --git a/files/analyst/README b/salt/common/files/analyst/README similarity index 100% rename from files/analyst/README rename to salt/common/files/analyst/README diff --git a/salt/common/files/analyst/so-lockscreen.jpg b/salt/common/files/analyst/so-lockscreen.jpg new file mode 100644 index 000000000..f6ad9b94f Binary files /dev/null and b/salt/common/files/analyst/so-lockscreen.jpg differ diff --git a/salt/common/files/analyst/so-wallpaper.jpg b/salt/common/files/analyst/so-wallpaper.jpg new file mode 100644 index 000000000..822463b4b Binary files /dev/null and b/salt/common/files/analyst/so-wallpaper.jpg differ diff --git a/salt/common/tools/sbin/so-analyst-install b/salt/common/tools/sbin/so-analyst-install index a8631fab2..311c380e5 100755 --- a/salt/common/tools/sbin/so-analyst-install +++ b/salt/common/tools/sbin/so-analyst-install @@ -218,6 +218,33 @@ yum -y install https://github.com/Security-Onion-Solutions/securityonion-docker- chmod +x /bin/chaosreader; cp ../files/analyst/README /; +mkdir /usr/local/share/backgrounds/; +cp ../files/analyst/so-wallpaper.jpg /usr/local/share/backgrounds/; +cp ../files/analyst/so-lockscreen.jpg /usr/local/share/backgrounds/; + +# Set background wallpaper +cat << EOF >> /etc/dconf/db/local.d/00-background +# Specify the dconf path +[org/gnome/desktop/background] + +# Specify the path to the desktop background image file +picture-uri='file:///usr/local/share/backgrounds/wallpaper.jpg' +# Specify one of the rendering options for the background image: +# 'none', 'wallpaper', 'centered', 'scaled', 'stretched', 'zoom', 'spanned' +picture-options='scaled' +# Specify the left or top color when drawing gradients or the solid color +primary-color='000000' +# Specify the right or bottom color when drawing gradients +secondary-color='FFFFFF' +EOF + +# Set screen shield +cat << EOF >> /etc/dconf/db/gdm.d/01-screensaver +[org/gnome/desktop/screensaver] +picture-uri='file:///usr/local/share/backgrounds/so-lockscreen.jpg' +EOF + +dconf update; echo echo "Analyst workstation has been installed!"