Dr. Mark Humphrys

School of Computing. Dublin City University.

Online coding site: Ancient Brain

coders   JavaScript worlds

Search:

Free AI exercises


Lab - active desktop

Get activedesktop working on DCU Linux.


Start with this base


 url=WEBCAMURL
 file=$HOME/webcam.jpg


Recipe - For 40%

  1. Change WEBCAMURL to point to a JPEG from a webcam that exists now. e.g. Aberdeen City Council.
  2. You will have to find the URL not of the webpage, but of the JPEG image itself. (How?)
  3. Use wget to download the JPEG to the file. The format should be like:
    wget -q -O - REMOTEJPEG > LOCALJPEG
    
  4. Check that it works. (Double-click on the JPEG downloaded.)


For 60%

  1. When the above is working: Use gsettings to set the JPEG as the background image.
  2. Check that it works, and it does set the background image.
  3. When the above is working: Insert the "sleep" and the "while" loop.


For 100% - Demo it

  1. Start with blank background.
  2. Show me how to launch it detached.
  3. Show me how to find it with ps.
  4. Hint: Find the "sleep" process. Look at the parent process (PPID) of the "sleep" process.
  5. Show me how to kill it.



ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.      New 250 G VPS server.

Note: Links on this site to user-generated content like Wikipedia are highlighted in red as possibly unreliable. My view is that such links are highly useful but flawed.