Set “NASA Picture of the Day” as Wallpaper In Ubuntu

Set NASA Picture of the Day as Wallpaper In Ubuntu

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 this tool – “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:

touch /etc/cron.d/cron-bg-changer

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.

That’s it. If you like this guide, share it on your social networks and support OSTechNix.



Thanks for stopping by!

How can I benefit from this blog:

Have a Good day!!

You may also like...

2 Responses

  1. Moyo Freeman says:

    seems not to be working in ubuntu 17.10
    Cannot add PPA: ‘ppa:~aljimohamed/ubuntu/ppa’.
    ERROR: ‘~aljimohamed’ user or team does not exist.

  2. Mike Schoon says:

    Same results in 18.04. Has the PPA changed? This is a very cool little app.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.