WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Persistent wallpaper  (Read 6755 times)

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Persistent wallpaper
« on: April 04, 2009, 07:35:21 AM »
Hello everyone!

I have found a wallpaper that I'd like to make persistent in TC. I have tried different ways but haven't had any success. So, how can I make this wallpaper persist after reboot? I'll be very grateful for any hints of how this can be accomplished. Thanks beforehand!

Have fun wherever you reside,
meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

Offline netzen

  • Newbie
  • *
  • Posts: 34
Re: Persistent wallpaper
« Reply #1 on: April 04, 2009, 01:10:40 PM »
Hi,

I started TC two weeks ago, so I don't have yet knowledge to answer your doubt the correct way. Instead, I will put here some diagrams that I'm working on to complement the TC documentation, it may help you.

The following 3 picts are related to the page: http://www.tinycorelinux.com/concepts.html

Pict 1:


Pict 2:


Pict 3:



[ Wallpaper persistent ]
My current understanding is that there are 2 files you need to "persist" (save):
1) First one, the image that resides in /opt/.backgrounds
2) The information about the image to use as wallpaper. This info is inside the file /home/tc/.jwmrc, so you have to "persist" this information, or, "persist" this whole file (.jwmrc).

By invoking the boot option "restore=myharddisk" [pict 3] (where myharddisk is the device), you should have both files "persisted" (preserved).
If it don't work, take a look at the following topic: http://forum.tinycorelinux.net/index.php?topic=997.0
you have some information that may leads you to persistent wallpaper.

Valter

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Persistent wallpaper
« Reply #2 on: April 04, 2009, 01:30:17 PM »
1. Copy images to /opt/.backgrounds
2. Use control panel -> Backgrounds
3. Select background and press Install

By default /opt/.backgrounds is listed in .filetool.sh so it is included in backup
The image or color is automatically inserted to ~/.jwmrc via the background tag
By default .jwmrc is included in the backup/restore.

« Last Edit: April 04, 2009, 05:15:34 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline meo

  • Hero Member
  • *****
  • Posts: 651
Re: Persistent wallpaper
« Reply #3 on: April 04, 2009, 03:51:56 PM »
Hello again!

Thanks a lot Robert! I had made a "cleanup" in the filetool.lst to make the backup-file smaller. Naturally I didn't have jwmrc in it. But now it works perfect. I'm trying out TC-1.3rc1 and up to now I haven't found any critical issues. So, THANKS AGAIN!

Have fun with TC or whatewer OS you like,
meo
"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Persistent wallpaper
« Reply #4 on: April 04, 2009, 06:21:54 PM »
1. Copy images to /opt/.backgrounds
2. Use control panel -> Backgrounds
3. Select background and press Install

By default /opt/.backgrounds is listed in .filetool.sh so it is included in backup
The image or color is automatically inserted to ~/.jwmrc via the background tag
By default .jwmrc is included in the backup/restore.

What...no graphics? Maybe we could have buttons on the messages to perform the requested tasks, so that users don't have to learn anything. 
« Last Edit: April 04, 2009, 06:25:45 PM by jpeters »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Persistent wallpaper
« Reply #5 on: April 05, 2009, 04:09:52 AM »
@jpeters: the only thing a default install of TC won't do automatically/graphically is the copying of the images..
The only barriers that can stop you are the ones you create yourself.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Persistent wallpaper
« Reply #6 on: April 05, 2009, 04:41:35 AM »
@jpeters: the only thing a default install of TC won't do automatically/graphically is the copying of the images..

That's good news....

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Persistent wallpaper
« Reply #7 on: May 25, 2009, 11:25:00 AM »
Here are two methods for having a persistent background image.

1. Already mentioned. Copy images to /opt/.backgrounds.

2. Make a module for background images.

/background.html][removed due to policy violation]/background.html
« Last Edit: August 30, 2009, 12:30:48 PM by Guy »
Many people see what is. Some people see what can be, and make a difference.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Persistent wallpaper
« Reply #8 on: May 25, 2009, 11:37:23 PM »
I wouldn't call it modules, that conflicts with kernel modules. Makes it confusing.
I call it a personal extension, it is just a tarred file with name extension .tce
add to your tce directory and your static collection of background images will be loaded and ready.

I always promote users to factor out large static item, so that their backup will work fast.

10+ Years Contributing to Linux Open Source Projects.

Offline junan

  • Jr. Member
  • **
  • Posts: 88
Re: Persistent wallpaper
« Reply #9 on: May 26, 2009, 12:50:21 AM »
Guy : maybe you need one more step

Code: [Select]

advdef -z4 background.tce


just curious , what happen if background.tce repackage to
tcz extension. ok test ... and test it again ...
fun and fearless ...

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Persistent wallpaper
« Reply #10 on: May 26, 2009, 01:15:31 PM »
Clarify

How do I make a tcz extension?
Many people see what is. Some people see what can be, and make a difference.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: Persistent wallpaper
« Reply #11 on: May 26, 2009, 01:28:33 PM »
This page on the wiki explains how to create extensions:
http://www.tinycorelinux.com/wiki/tiki-index.php?page=Creating+Extensions

To make a tcz you can use commands like the following:
Code: [Select]
TCZDIR=`mktemp -d tcz.XXXXXX`
cd $TCZDIR
tar zxf ../extension.tce
cd ..
mkfs.cramfs $TCZDIR extension.tcz
md5sum extension.tcz > extension.tcz.md5.txt

The command
Code: [Select]
advdef -z4 background.tcewill further compress the extension

For a faster boot time use a tcz extension with your background information. But this also makes it more difficult to change later.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Persistent wallpaper
« Reply #12 on: May 26, 2009, 01:39:23 PM »
If your wallpapers are now in an extension then don't forget to remove the
opt/.backgrounds
from /opt/.filetool.lst to stop the backup of them.
10+ Years Contributing to Linux Open Source Projects.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Persistent wallpaper
« Reply #13 on: May 28, 2009, 08:41:30 AM »
This has now been updated to include a tcz extension for background images.

/background.html][removed due to policy violation]/background.html
« Last Edit: August 30, 2009, 12:30:08 PM by Guy »
Many people see what is. Some people see what can be, and make a difference.