Coming from this Post, this Post and also this PostRSH wrote:I'm now going a very different way. Instead of remastering the OS again and again, I do edit the init Script in initrd.gz, inserting Functions to get automatically Information from a config File at boot partition and executing a Script doing Jobs based on that Information from the config File.
I'm trying to provide smart functions to make the user able to configure the Puppy by a external .cfg File. Setting up a new Wallpaper, Startup Sound, load SFS Modules at boot (also to a top layer), install .pet packages automatically and execute Applications automatically after X appears on the screen plus many more...
Booting up a completely different setup Puppy Linux without to use a save file or to do a remaster first.
Currently these Options are available:
# Sleep Time - wait until script zzz_z_auto_execute will be executed
MYSLEEPTIME=2
# Window Manager - set a new window manager, load from SFS, load to a top layer
MYWINDOWMANAGER=jwm
MYWMSFSLOADOPT=1
MYWMSFSTOPLAYEROPT=1
MYWINDOWMANAGERSFS=LP3_WM-Flux-Ice-0.1.sfs
# Num Lock - disable/enable numlock of the numerical block
MYNUMLOCKOPT=1
# Interface - boot directly into new interface: da, de, es, fi, fr, it, nl, pt & tr
MYINTERFACE=de
# Timezone - currently unused
MYTIMEZONE=
# Keyboard Layout - set keyboard layout also needed when using $MYINTERFACE
MYKBDLAYOUT=de
RESTARTAFTERX=1
# Mount all HD and USB Flash Drives - mount all or only listed drives automatically
MOUNTALLMYDRIVES=1
MOUNTMYDRIVES=""
# Welcome First Boot - enable/disable welcome first boot GUI
MYWELCOMEFIRSTBOOT=0
# Personal Settings PopUp - enable/disable the Personal Settings PopUp
MYPERSONALSETTINGSPOPUP=0
# Desktop Icons - enable/disable the Desktop Icons
MYDESKTOPICONS=1
# Drive Icons - enable/disable the Drive Icons (only if $MYDESKTOPICONS is used)
MYDRIVEICONS=1
# Wallpapers - set a new wallpaper for a use
MYWALLPAPERDIRECTORY=Dateien/Wallpaper/RSH
MYWALLPAPER=Michaela.png
# Startup Sound - set a new startup sound (no longer barking)
MYSTARTUPSOUND=studio1337-bootsound.wav
# Install Packages - install .pet packages automatically from directory
MYPKGINSTALLDIROPT=1
MYPKGINSTALLDIR=InstallMe
# Global Directory to load SFS Files from - currently only for my private LazY Puppy
MYGLOBALSFSDIR=
# Auto-Load of SFS Modules at /etc/profile.local - load SFS Modules listed at boot up, load to top layer also
MYBOOTSFSLOADLISTOPT=0
MYBOOTSFSTOPLAYEROPT=0
MYBOOTSFSLOADLIST=""
# Auto-Load of SFS Modules at /root/Startup - load SFS Modules listed after X appears on the screen (only to normal layer)
MYSFSLOADLISTOPT=1
MYSFSLOADLIST=""
# Auto-Start of Applications - execute listed applications automatically and from list in simple text file
MYAUTOSTARTAPPS=""
MYAUTOSTARTAPPSLISTFILE=precise_5.7.1-autostart.lst
# Startup Script - execute a user's startup script
RUNMYSTARTUPSCRIPT=0
RUNMYSTARTUPSCRIPTBOOTCONTENT=0
MYSTARTUPSCRIPT=StartUp
Please, test and do make suggestions or offer parts of your own work - if there is any.
Downloads:
Download initrd.gz for Precise 5.7.1, Slacko 5.9.3 and Tahr 6.0 CE.
It's a .tar.gz file and it contains the initrd.gz files for the named Puppy Systems plus a config file example for each of them
Download Updated Files for Precise 5.7.1
Download Super Lucid 4 initrd.gz plus a config file example.
Download Edit-Initrdgz-1.5.pet to edit initrd, initrd.gz and initrd.xz Archives.
Name-Specification:
$DISTRO_FILE_PREFIX_$DISTRO_VERSION.cfg
It can handle additions (free to define) to the File Name.
Example: $DISTRO_FILE_PREFIX_$DISTRO_VERSION-monday.cfg
So in this here case: precise_5.7.1.cfg or even precise_5.7.1-monday.cfg
Usage:
Boot Parameter setup for a use: pconfig
- pconfig=no (or No or NO or n or N) ---> don't load a config file
- pconfig=monday --> loads the precise_5.7.1-monday.cfg
- no pconfig submitted loads the default config, which is: precise_5.7.1.cfg
As for Options, $MYWALLPAPER and $MYSTARTUPSOUND:
- possible Locations for $MYWALLPAPER:
- - /usr/share/backgrounds, Boot Partition, Boot Directory, Sub Directory of Boot Partition or Boot Directory
- possible Locations for $MYSTARTUPSOUND:
- - /usr/share/audio, Boot Partition, Boot Directory
Usually if there are equal named Files in Boot Partition as well as in Boot Directory, the Boot Directory is the preferred Choice. More Information, Description and Comments in the Config File which shows clearly what has been solved so far.
Additional Directories and Files inside of the initrd.gz:
desk_icons_hide.desktop
desk_icons_show.desktop
zzz_z_auto_execute
zzz_z_auto_execute.desktop
/usr/sbin/mount_a_drive
/usr/sbin/sfs_load_top_layer
Images/Screenshots:
Precise 5.7.1 booted into DE with Enlightenment e17 Window Manager
Precise 5.7.1 booted into DE with L.A.S.S.I.E.'s Window Manager (JWM)
Super Lucid 4 booted into DE with L.A.S.S.I.E.'s Window Manager (JWM)
---
Note 1: Slacko 5.9.3 can't boot into DE interface or even DE keyboard layout if booting from vfat partition. Also can't connect to the web since they forgot to include the files for gprs modems.
Note 2: Could not test Tahr in complete since my machine seems to be too old for this OS. Graphics and Mouse issues here.