Page 1 of 1

Create a background during bootup

Posted: Tue 12 Apr 2016, 00:21
by don570
Create a background during bootup

Warning! You must install a recent version of mtpaint

mtpaint now has the ability to create a detailed image without launching the GUI.

I've found an interesting and useful application for this feature.

An operating system doesn't need to have a stored background image ,
instead it can be generated during bootup. See the images for
examples. Yellow and Blue images are shown. Many other colors are possible.

Image
Image

The method is simple.
Warning! You must install a recent version of mtpaint
version 3.44.89 or better.

Here's the procedure step by step...

1) Use your wallpaper program to change current background
to /usr/share/backgrounds/default.jpg
This will change at least two files (perhaps more).
/root/.config/rox.sourceforge.net/ROX-Filer/PuppyPin
~/.config/wallpaper/bg_img

This ensures that /usr/share/backgrounds/default.jpg will
be your desktop background when you bootup next time.


2) Go to the folder /usr/share/backgrounds/
and delete default.jpg. If you wish you can delete all the other
images in that folder to save space.

3) Change the file --> /etc/init.d/00sys_logger

Here's an example. Remove the fake extension.

Warning! The font you use is very important since it must be available to the operating system.
I suggest...

Code: Select all

font='DejaVu Sans'
or

Code: Select all

font='Nimbus Sans L'
___________________________________________________

Benefits:

Carefully examine the mtpaint command and you will see
how flexible this method is.

Text characters can be changed. --> name of distro and version number
Size of text can be changed.
Position of text and gradient can be changed
Colors of gradient and text can be changed.

Posted: Tue 12 Apr 2016, 23:53
by don570
I made the font grey ---> a=9
Reduced the font size ---> 70 to 50

Text characters ---> Fatdog Arm 4

Changed the position of text --> 700,500

It's also possible to change the color and angle of the gradient,
but I'll leave that up to people to experiment with.

Image

___________________________________

Posted: Thu 23 Jun 2016, 01:42
by BarryK
I had a look at 00sys_logger, fascinating that you can now do all that on the commandline!

Posted: Thu 23 Jun 2016, 18:32
by don570
Warning! If you put a changing SVG image on top of gradient like the clock in the current
fatdog arm

Image


Two of mtpaint's disk clipboards are used over and over (every two minutes).
This could confuse mtpaint users.

So I will change the code to use clipboard 8 and clipboard 9 rather than
the more common clipboard 1 and clipboard 2.
______________________________________________________

Posted: Fri 24 Jun 2016, 20:30
by wjaguar
don570 wrote:Two of mtpaint's disk clipboards are used over and over (every two minutes).
This could confuse mtpaint users.
You could have used layers as temporary storage instead. No real need to save/load clipboards at all.

Posted: Wed 29 Jun 2016, 23:07
by don570
You could have used layers as temporary storage instead.
Thanks for the tip.

I'll revise the code in my next fatdog arm version.
_____________________________________