Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:random_background [2011/05/23 13:37] – [View Random Images] Guy | wiki:random_background [2011/05/24 14:59] (current) – [Random Background Image] Guy | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ==== Random Background Image ==== | ==== Random Background Image ==== | ||
| - | You may have a number of images, and like a random background image each time you start the computer. Following is a guide on how this can be set up. | + | You may have a number of images, and like a random background image each time you start the computer. You need persistent opt. Following is a guide on how this can be set up. | 
| Copy images to / | Copy images to / | ||
| Line 26: | Line 26: | ||
| </ | </ | ||
| - | Save this as pic.sh in /opt. | + | Save this file as pic.sh in /opt. | 
| Open the terminal and type | Open the terminal and type | ||
| Line 32: | Line 32: | ||
| < | < | ||
| - | If you have persistent opt, and don't backup opt, add the following to / | + | Add the following to / | 
| < | < | ||
| - | |||
| - | If you backup opt, add the above code to / | ||
| Restart the computer. | Restart the computer. | ||
| Line 43: | Line 41: | ||
| You will now have a random background image each time you start the computer. | You will now have a random background image each time you start the computer. | ||
| + | |||
| + | If you use backup, and this is not working, set up persistent opt. | ||
| ==== View Random Images ==== | ==== View Random Images ==== | ||
| - | You may set it up to change random images at predetermined time intervals. The default is 10 seconds. | + | You may set it up to change random images at regular | 
| This could be used to display photos. | This could be used to display photos. | ||
| Line 53: | Line 53: | ||
| < | < | ||
| - | # This changes the background image at regular | + | # This changes the background image at regular intervals. | 
| #!/bin/sh | #!/bin/sh | ||
| Line 64: | Line 64: | ||
| </ | </ | ||
| - | Save this as view.sh in /opt. | + | Save this file as view.sh in /opt. | 
| Open the terminal and type | Open the terminal and type | ||
| < | < | ||
| + | |||
| + | Add the following line to / | ||
| + | |||
| + | < | ||
| + | |||
| + | Restart the computer. | ||
| To view random images, open the terminal and type | To view random images, open the terminal and type | ||
| - | < | + | < | 
| To stop images changing (with the terminal open), press Ctrl+c. | To stop images changing (with the terminal open), press Ctrl+c. | ||
| Line 102: | Line 108: | ||
| ==== Names with Spaces or Unusual Characters ==== | ==== Names with Spaces or Unusual Characters ==== | ||
| - | You cannot load an image with a space in it's name, or certain other characters, such as brackets. If an image file has a space, brackets, or other unusual characters, rename it, excluding these, and it will work. | + | You cannot load an image with a space in it's name, or certain other characters, such as brackets. If an image file has a space, brackets, or other unusual characters, rename it, excluding these. | 



