Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

Search:

CA216      CA249      CA318

CA400      CA651      CA668


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. Dublin 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.



Feeds      w2mind.org

On Internet since 1987.