Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 19 Sep 2019, 06:32
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Getting closer... or ...editing the initrd.gz (Closed)
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 4 [50 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Mon 24 Nov 2014, 12:55    Post subject:  

Hi stemsee,

I don't know an official definition of xonclock when in use - perhaps a running applet.

Swapicons is, I repeat, fast and flexible and it actually handles desktop drive icons properly.

Try it.
shots-1&3.png
 Description   
 Filesize   138.88 KB
 Viewed   586 Time(s)

shots-1&3.png

shot-2.png
 Description   
 Filesize   114.09 KB
 Viewed   599 Time(s)

shot-2.png

Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Tue 25 Nov 2014, 03:42    Post subject:  

I have attached updated 'init' and 'auto_execute' Scripts.

Attachments are at the End of the first Post.

Changes:

- option $MYDESKTOPICONS is now working, so booting into a clean desktop is possible.

RSH
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2456
Location: In The Way

PostPosted: Tue 25 Nov 2014, 09:29    Post subject:  

Thanks @RSH

I have downloaded and I will first scan the scripts then try them out, over the next few days.

stemsee
Back to top
View user's profile Send private message MSN Messenger 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Tue 25 Nov 2014, 14:58    Post subject:  

stemsee wrote:
Thanks @RSH

I have downloaded and I will first scan the scripts then try them out, over the next few days.

stemsee

Make sure to examine the updated 'init' script. I have overseen to mark (# RSH) a needed Line inside of the 'init' script inside initrd.gz. This line is needed for PSUBDIR.

Here it is:

basedirpupsfs="`dirname $PUPSFSFILE`"

Btw.:

I have added this successful to the initrd.gz of Precise 5.7.1 and it worked out of the box. Also Tahr 5.8.1.5 and Tahr 6.0 CE, but I need to refine the Wallpaper Option for both of them.

Wallpaper Option currently uses default.jpg and will fail if different name is setup and/or if .png file is used.

RSH
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Tue 25 Nov 2014, 20:45    Post subject:  

http://murga-linux.com/puppy/viewtopic.php?p=810062#810062
RSH wrote:
Beyond this everything seems to be possible using a fresh, clean and un-remastered version of any Puppy Linux.

Ok, I have made some Progress, I have gone beyond! Cool

Now I'm able to boot a fresh, clean and un-remastered Puppy Linux directly into DE Interface using a different Window Manager which is loaded by SFS at boot up process - NOT at /root/StartUp

Just by using the Config File and using the new boot option pinterface from L.A.S.S.I.E. 003.

Options that are currently available AND working:

# Sleep Time - new
# Window Manager - new
# Window Manager SFS to load - new
# Keyboard Layout
# Mount all HD and USB Flash Drives
# Mount only selected HD and USB Flash Drives
# Personal Settings PopUp
# Desktop Icons
# Drive Icons - new
# Wallpapers
# Startup Sound
# Auto-Installation of Packages from Directory (deb, pet, *.gz, rpm, txz & xz) - new added after doing this here Post
# Auto-Load of SFS Modules (/etc/profile.local) - new added after doing this here Post
# Auto-Load of SFS Modules (/root/Startup)
# Auto-Start of Applications
# Startup Script

Since I can't boot Slacko 5.9.3 into DE Interface or even DE Keyboard (won't find the puppy sfs) I will continue this work using a fresh, clean and un-remastered version of precise 5.7.1.

Uploading a precise 5.7.1 initrd.gz File later.

Very Happy

RSH
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2456
Location: In The Way

PostPosted: Wed 26 Nov 2014, 06:55    Post subject:  

I think you are from 'beyond' RSH Very Happy

This is game changing stuff ... very exciting! I will wait for it!
Back to top
View user's profile Send private message MSN Messenger 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Wed 26 Nov 2014, 21:05    Post subject:  

stemsee wrote:
I think you are from 'beyond' RSH Very Happy

Oh... Shocked

So I need to refine my statement:

Ok, I have made some Progress, I have gone here! Cool

Laughing

stemsee wrote:
This is game changing stuff ... very exciting! I will wait for it!

Yes!

This is changing everything - especially for my own developments!

However, I have made again some progress. Added Option to load Window Manager SFS and SFS files listed to load at boot up to a top layer.

Now going to try to include the new L.A.S.S.I.E.'s pinterface option into the config file. After doing this -successfully or even not- I will build a GUI to setup the config file from within a GtkDialog GUI.

Hopefully I can upload a ready for use initrd.gz for precise 5.7.1 on Friday afternoon or Friday at night.

Don't refuse to learn...

Edit:

Attached Image shows a clean, fresh and un-remastered precise 5.7.1 booted straight into Enlightenment e17 Window Manager loaded to top layer, wine-1.5.28-i486-2-s14-patched.pet and Wine-MimeType.pet installed automatically and PortableApps Starter immediately working! Gimp Painter 2.8.7 and its PlugIns SFS loaded from /root/Startup to normal layer.
e17.jpg
 Description   !!! PRECISE 5.7.1 !!!
No SaveFile in use - not remastered or altered in any way!
 Filesize   88.19 KB
 Viewed   367 Time(s)

e17.jpg


_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Thu 27 Nov 2014, 01:32    Post subject:  

Success! Very Happy

Added option pinterface to the config file! Cool

Now going to sleep and later building the config GUI.
precise-571-using-LASSIEs-WMs-and-LazY-Puppy-SFS.jpg
 Description   
 Filesize   162.71 KB
 Viewed   364 Time(s)

precise-571-using-LASSIEs-WMs-and-LazY-Puppy-SFS.jpg


_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2456
Location: In The Way

PostPosted: Thu 27 Nov 2014, 04:17    Post subject:  

Totally awesome dude! Congratulations!

I know that you don't generally use savefiles, but many of us do. So if a savefile is used what happens? Does the config also allow for uninstalling/unloading a pet/sfs? Just thinking about it, not trying to dampen down the euphoria, by making inane requests as is usual when someone reaches a milestone here!!!


stemsee
Back to top
View user's profile Send private message MSN Messenger 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Thu 27 Nov 2014, 20:21    Post subject:  

stemsee wrote:
Totally awesome dude! Congratulations!

I know that you don't generally use savefiles, but many of us do. So if a savefile is used what happens? Does the config also allow for uninstalling/unloading a pet/sfs? Just thinking about it, not trying to dampen down the euphoria, by making inane requests as is usual when someone reaches a milestone here!!!

stemsee

Never mind!

None of the Forum Members/Puppy users really will be able to dampen down my euphoria and/or fun in Puppy Linux. Usually it is sufficient if I do know for myself that my work is just good! Very Happy

Ok, personal storage files aka savefiles:

- unloading .sfs will work as usual since sfs_load is used, except
- .sfs loaded to top layer will not unload during the running session

- un-installing .pet files will not work since petget isn't used for that (petget is uncomfortable for automated installs since you need to confirm installation of each package)

Using a save file combined with the new config file options should work generally - or at least should not crash the boot process.

E.g.: as long as the new wallpaper set for a use is inside the Puppy it will be used. But you cant' access /mnt/sdc1 (e.g. boot partition) when using a save file since it will be /mnt/home then and wallpapers from within the boot partition/directory currently won't be found then - needs refining some code.

New startup sound is equal to this.

Loading .sfs to top layer is equal to this also.

However, I can't see any advantage for this when using a save file since there is very much more to set up as covered by the config file by now.

In my opinion the use of a save file should be deprecated. Go have a look at the Lucid 528 thread (the original by playdayz). You'll find hundred of pages where dozens of people worked for months just to get 'sound not working when using a save file' problem solved. This huge amount of effort better had be going into development of a external config file. At least they did solve the issue, but that didn't solve any of the frequently arising save file issues in general. These issues are still arising -more or less- in each new puppy developed and published forcing a new user to run straight into such issues over and over again.

Instead of listening and watching (external config file was suggested already earlier multiple times by several users and was already used in Arch Pup (iirc)) they invent the save to folder option forcing a user to run straight into new save file related issues.

Give to the user a external config file plus a config script for the config file plus added some functions to create symbolic links to HDD for the use of e.g. saving browsers content etc.pp.

Of course, you can do a mess that way as well but just need to remove the symbolic link (or not to create it at boot up) and your OS will boot and run. You cant do this with save file in use. All you can do is to boot in RAM (PUPMODE=5) and trying to copy some files out of the save file, to put them into a new one after creating a new save file.

However, want to have this working in complete for the use of a save file?

Just join into the one man RSH development team and add/change related code for it.

_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2456
Location: In The Way

PostPosted: Thu 27 Nov 2014, 21:49    Post subject:  

Code:
durr=`mount | grep dev_ro2 | cut -f1 -d ' ' | cut -f3 -d '/'`
dorr=`mount | grep dev_save | cut -f1 -d ' ' | cut -f3 -d '/'`


Code:
   if [[ $durr = $drive ]]; then
   drive="Home"
   elif [[ $dorr = $drive ]]; then
   drive="home"
   fi


Code:
#normal pups
   . /etc/DISTRO_SPECS
   . /etc/rc.d/PUPSTATE
   if [[ $durr = "`echo $PUPSFS | cut -c 1-4,11-40 | cut -f1,2 -d '/' | cut -f1 -d '/'`" ]]; then
   echo $PUPSFS | cut -c 1-4,11-40 | cut -f1,2 -d '/' | sed -e 's|'$durr'|Home|' > /tmp/sfs
   elif [[ $dorr = "`echo $PUPSFS | cut -c 1-4,11-40 | cut -f1,2 -d '/' | cut -f1 -d '/'`" ]];  then
   echo $PUPSFS | cut -c 1-4,11-40 | cut -f1,2 -d '/'  | sed -e 's|'$dorr'|home|' > /tmp/sfs
   else
   echo $PUPSFS | cut -c 1-4,11-40 | cut -f1,2 -d '/' > /tmp/sfs
   fi
   sed -i 's|^|boot=|' /tmp/sfs
   . /tmp/sfs
[/code]
Back to top
View user's profile Send private message MSN Messenger 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Thu 27 Nov 2014, 23:32    Post subject:  

Laughing

Knocked out!

This is a good example and could be used as a proof/evidence that I'm not a programmer!

It won't work this way. Offering such kind of code to me without any advice what to do with it, will knock me out - completely!

Here is how it could work:

After finishing the config GUI (currently already working on it) I will publish a ready to use initrd.gz for precise 5.7.1.
Use this one to add your code and/or to change mine and to testing it using a precise 5.7.1.
Send your edited files to me by PM (LazY Puppy, NOT RSH !!!)
Don't forget to mark your code (code sections) with # stemsee either at beginning and end of code section or per line, so I can find it easily to put it into my file/s (since I'm obviously continuing to work on it).

If we would get close to a point, where you could use it all to be built into the initrd.gz of the your created OS, send it (the initrd.gz) to me (PM, LazY Puppy, NOT RSH !!!) and I will put it in for you.

What do you think?

_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2456
Location: In The Way

PostPosted: Fri 28 Nov 2014, 02:54    Post subject:  

It is proof that I am NOT a programmer. It is a reliable mech to deal with 'home' and I add 'Home' for /initrd/dev_save and /initrd/dev_ro2 respectively, in case they use the same partitiion, or different partitions or no partitions at all.

It is the way I translate /initrd/mnt/dev_save to 'home'
and /initrd/mnt/dev_ro2 to 'Home' . So in /mnt/ there exists 'Home' and 'home' ...

Just sharing a loose idea ...

I will follow your idea.
Back to top
View user's profile Send private message MSN Messenger 
LazY Puppy


Joined: 21 Nov 2014
Posts: 2007
Location: Germany

PostPosted: Fri 28 Nov 2014, 20:12    Post subject:  

Ok.

I have uploaded the initrd.gz for precise 5.7.1 plus the new config file (you'll need to edit this for your purposes).

Therefor I've changed the first post where you can find the link. It's all packaged into a .tar.gz file.

Note: it doesn't contain the PConfig GUI Script since this is currently still in DE only and I need to pause this for some days due to real life issues.

Just play with it and check what you can do for the use with a save file until I return to this.

Have fun.

_________________
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) Laughing

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! Wink
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 2456
Location: In The Way

PostPosted: Sat 29 Nov 2014, 08:36    Post subject:  

I can read DE no problem!
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 2 of 4 [50 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0625s ][ Queries: 13 (0.0114s) ][ GZIP on ]