Update: This app is discontinued and no longer works. Please find other alternatives.
There are plenty of tools out there to change the desktop backgrounds of Linux desktop periodically. While hunting to new desktop wallpaper changer utilities, I found a tool named "BG-Changer". It is a simple shell script that can be used to set NASA Picture of the day as wallpaper in Ubuntu and its derivatives. I have tested this script in Ubuntu 16.04 LTS desktop. It worked fine as I expected. Would you like to set NASA image of the day as your Ubuntu desktop's wallpaper? Great! Read on.
Set "NASA Picture of the Day" as Wallpaper In Ubuntu
The developer has made a PPA to ease the installation of this script in Ubuntu and its derivatives such as Linux Mint, Elementary OS etc.
Add BG-Changer PPA using command:
$ sudo add-apt-repository ppa:aljimohamed/ppa
Update the repository lists:
$ sudo apt-get update
Finally, run the following command to install BG-Changer in Ubuntu.
$ sudo apt install bg-changer
Once you installed BG-Changer, open your Terminal and run the following command:
$ sudo bg-changer
Wait for few seconds. BG-Changer will scan the NASA website and set "NASA image of the day" as wallpaper in your Ubuntu desktop.
Here is my Ubuntu 16.04 LTS desktop wallpaper:
Beautiful, isn't it? You can verify the NASA image of the day from this link - NASA Image of the Day.
If you want a daily update, create cron job file as shown below:
And run this command to run BG-Changer automatically everyday:
echo "02 18 * * * root bash /usr/bin/bg-changer" > /etc/cron.d/cron-bg-changer
Now, your Ubuntu desktop wallpaper will be automatically updated everyday.