Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: meo on April 04, 2009, 07:35:21 AM

Title: Persistent wallpaper
Post by: meo 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
Title: Re: Persistent wallpaper
Post by: netzen 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:
(http://farm4.static.flickr.com/3634/3412261548_71c638dc57.jpg)

Pict 2:
(http://farm4.static.flickr.com/3630/3411454853_ebe4428c48.jpg)

Pict 3:
(http://farm4.static.flickr.com/3634/3412261086_3927e56156.jpg)


[ 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
Title: Re: Persistent wallpaper
Post by: roberts 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.

Title: Re: Persistent wallpaper
Post by: meo 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
Title: Re: Persistent wallpaper
Post by: jpeters 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. 
Title: Re: Persistent wallpaper
Post by: curaga 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..
Title: Re: Persistent wallpaper
Post by: jpeters 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....
Title: Re: Persistent wallpaper
Post by: Guy 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 (http://[removed due to policy violation)
Title: Re: Persistent wallpaper
Post by: roberts 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.

Title: Re: Persistent wallpaper
Post by: junan 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 ...
Title: Re: Persistent wallpaper
Post by: Guy on May 26, 2009, 01:15:31 PM
Clarify

How do I make a tcz extension?
Title: Re: Persistent wallpaper
Post by: robc 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 (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.
Title: Re: Persistent wallpaper
Post by: roberts 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.
Title: Re: Persistent wallpaper
Post by: Guy 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 (http://[removed due to policy violation)